gfurst
Warlord
Hehe, I'm not a real programer, relaxIts not completely clear what is unclear, and I hesitate to tell a real programmer how to read code...
Yeah, i lacked focus yesterday, i guess was just tired.What exactly do you wanna do with this, then?
It is exactly that, adding one new slider above the others, keeping the usual CommercePercent stuff the same. It's just a question of flavor wether to add it to city screen and maybe others(financial screen), but that is less important.Yeah, do that. So there should be one tax slider and four investment sliders, then? But since the investment sliders are already present as the default commerce sliders, then you only need to add the new tax slider? Like above the others...? Is the main tax slider available in the city screen or only outside of it? While the investment sliders are only available in city view...?
Thanks for the detail of the code, that was illuminating. Just found this
Code:
def updateGameDataStrings( self ):
The way i figured is the previous code serve only to display the strings, while this other updates them(get's information from the object written by the DLL)( i really wouldn't know, the part relating to the percent stuff is almost the same).
So both should be altered for our purpose, just adding bits of code to display one additional slider, or perhaps adding the TaxPercent as a commerce type. The latter could be easier, but may change a lot of other stuff and be unpredictable.
I will ask more on the BUG forums, since they may already have the hang on this stuff.
Code:
szOutText = u"<font=2>%c:%d%%</font>" %(gc.getCommerceInfo(eCommerce).getChar(), gc.getPlayer(ePlayer).getCommercePercent(eCommerce))
This may be how they get the data from the DLL, gc being an general gamecore object passed to the python via memory address.
I'm almost getting out of focus again? , gonna make a jar of coffee, be right back