- Aug 28, 2013
- 2.414
- 8.556
So there are two issues here, one is a misunderstanding of the data system and another is something that is not in the released version of the game yet.Sorry, it probably works, I just mean I cant figure out how to scope it correctly lol. Thank you for taking time to answer these questions.
I tried both this method with localization, but also directly using [PREV.Var('test_var_1').GetValue] inside text = "". - with the scopes Phlopsi suggested (SCOPE,THIS,PREV,ROOT) and tried InGameTopbar.GetPlayer as well.Code:textbox = { name = "new_stat_test" position = { 72 3 } using = MarbleButtonFont autoresize = yes text = "var_testing" tooltip = "tooltip_test" widgetanchor = top|hcenter }
My localization:
Code:var_testing:0 "[PREV.Var('test_var_1').GetValue]"
The misunderstanding is that you have no PREV or SCOPE etc. there. All you have is whatever InGameTopbar gives you and what is globally accessible. There is no PREV or SCOPE to give you anything so you've got to work with what you have there.
What you would need to type for the localisation is [InGameTopbar.GetPlayer.MakeScope.Var( 'test_var_1' ).GetValue], which brings us to the second issues. In the release version you cannot chain to anything after MakeScope, it can only be the last link in a chain. This is something I have changed for an upcoming patch, probably 1.1 but no guarantees.