Hi,
Looking for some help in trying to find a way to display some custom cvar values in one of the UI windows.
I haven't been able to find any way to reference custom cvars in the Windows.xml file.
However, I did (briefly) find a workaround by using the localization.txt as a source.
As a very simple example, I added a line such as the following into one of the windows in Windows.XML:
<label depth="10" name="cvartest" text_key="cvartest"/>
And added an entry like this one into the localization.txt file:
cvartest,progression,Skills,,,My Cvar: {cvar($mycustomcvar)},,,,,,,,,,,,,,
The infuriating thing is that this was working and displaying my cvar value properly when I first tried it.
After making some very minor changes, this has, of course, stopped working for me.
Fast forward hours later and I just can't get it to work again. All I get now is the text from the localization: My Cvar: {cvar($mycustomcvar)}
Any thoughts? Any help would be appreciated.
TIA
Looking for some help in trying to find a way to display some custom cvar values in one of the UI windows.
I haven't been able to find any way to reference custom cvars in the Windows.xml file.
However, I did (briefly) find a workaround by using the localization.txt as a source.
As a very simple example, I added a line such as the following into one of the windows in Windows.XML:
<label depth="10" name="cvartest" text_key="cvartest"/>
And added an entry like this one into the localization.txt file:
cvartest,progression,Skills,,,My Cvar: {cvar($mycustomcvar)},,,,,,,,,,,,,,
The infuriating thing is that this was working and displaying my cvar value properly when I first tried it.
After making some very minor changes, this has, of course, stopped working for me.
Fast forward hours later and I just can't get it to work again. All I get now is the text from the localization: My Cvar: {cvar($mycustomcvar)}
Any thoughts? Any help would be appreciated.
TIA