mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-16 23:31:54 +00:00
refactor: move Common to Platform/Common
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user