mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 12:53:36 +00:00
19 lines
622 B
C++
19 lines
622 B
C++
#include "../../Minecraft.World/Platform/stdafx.h"
|
|
|
|
#include "XUI_Ctrl_LoadingProgress.h"
|
|
#include "../../Minecraft.Client/Minecraft.h"
|
|
#include "../../Minecraft.Client/Rendering/EntityRenderers/ProgressRenderer.h"
|
|
|
|
int CXuiCtrlLoadingProgress::GetValue() {
|
|
int currentValue = 0;
|
|
|
|
Minecraft* pMinecraft = Minecraft::GetInstance();
|
|
currentValue = pMinecraft->progressRenderer->getCurrentPercent();
|
|
// printf("About to render progress of %d\n", currentValue);
|
|
return currentValue;
|
|
}
|
|
|
|
void CXuiCtrlLoadingProgress::GetRange(int* pnRangeMin, int* pnRangeMax) {
|
|
*pnRangeMin = 0;
|
|
*pnRangeMax = 100;
|
|
} |