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_ProgressCtrlBase.h"
4
5HRESULT CXuiCtrlProgressCtrlBase::OnGetSourceDataText(XUIMessageGetSourceText *pGetSourceTextData, BOOL& bHandled)
6{
7 // The Xui backend calls GetSourceDataText every frame to get the text for the indexed label
8 // We don't want to change the label, but take this opportunity to send out a message to ourself
9 // to update the value of the progress bar
10 this->SetValue( GetValue() );
11
12 int min, max;
13 this->GetRange( &min, &max );
14 this->SetRange( min, max );
15
16 pGetSourceTextData->szText = L"";
17 pGetSourceTextData->bDisplay = FALSE;
18
19 bHandled = TRUE;
20
21 return S_OK;
22}