2026-03-01 12:16:08 +08:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
|
|
#include "XUI_Ctrl_LoadingProgress.h"
|
2026-04-14 16:47:37 -05:00
|
|
|
#include "../../Minecraft.h"
|
|
|
|
|
#include "../../ProgressRenderer.h"
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|