the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2
3#include "XUI_Ctrl_LoadingProgress.h"
4#include "..\..\Minecraft.h"
5#include "..\..\ProgressRenderer.h"
6
7int CXuiCtrlLoadingProgress::GetValue()
8{
9 int currentValue = 0;
10
11 Minecraft *pMinecraft=Minecraft::GetInstance();
12 currentValue = pMinecraft->progressRenderer->getCurrentPercent();
13 //printf("About to render progress of %d\n", currentValue);
14 return currentValue;
15}
16
17void CXuiCtrlLoadingProgress::GetRange(int *pnRangeMin, int *pnRangeMax)
18{
19 *pnRangeMin = 0;
20 *pnRangeMax = 100;
21}