View Single Post
Old 06-23-13, 11:58 AM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by divingbluefrog View Post
I need some help from the UI's gurus...
I don't figure, neither find any hint in the various threads about menu_1024_768, how a clickable zone, or button, in a given page xxx.ini file can load another page.
It's done everywhere, but no clue about the "how". And I don't believe in magic...
Take a big picture look at the problem you are having and you will realize the error in your thinking. A page is never loaded by a button click. Almost all the pages are loaded at game start. To load a page that isn't integral to the game you have to tell the game to load it (using ScriptManagerManaged.MakeSureIsLoaded). What else can make a page hide/show (think big picture - hint: inherited ScriptManager method)?

Quote:
Originally Posted by divingbluefrog View Post
Yes I do. And I'm almost sure now that it's done via the text entry :
when a clickable zone, or a button is referenced with a text=x line in the Page file,
and it's displayed as string : [x]UPPERCASE in the Item Text zone (last one) of
the menu Editor, it's in fact a call to the Page xyz.ini file.
I think that the link between UPPERCASE name and xyz name is harcoded somewhere, cause I can't find a file giving it.

But there is another feature that bothers me now (I know, the more you learn, the more you discover the extent of your ignorance).
Let me prepare a clear explanation and I will post it soon.
Almost all the pages that have no .py files for them are hard coded in the game. The game code updates all the menu item's text properties, bitmap state, checked state, etc. The problem you are having is you fail to understand how the menu items work (and the inherited methods they have). Examine the .ini files and the inherited ScriptManager methods for the menu items using the ScriptManager edit in game. Your answer lies in the entries for each menu entry and how the inherited ScriptManager methods works with those.

Quote:
Originally Posted by divingbluefrog View Post
In various items description you find a line text=1, which is reported as String : [0001]GO TO GAME in the Item text display.
And of course, when the game is running, it displays the proper name.
And the question is the same as the previous one : How?
I do this same thing with my UIs mod. Once again see above

Last edited by TheDarkWraith; 06-23-13 at 12:10 PM.
TheDarkWraith is offline   Reply With Quote