![]() |
[TEC]linking Pages files
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...:D |
I implemented my Enigma simulator based on these two threads:
http://www.subsim.com/radioroom/showthread.php?t=163118 http://www.subsim.com/radioroom/showthread.php?t=165968 ...and of course some previous programming knowledge. Hope this helps! |
Thanks SkyBaron, unfortunately I've already read those and many others without finding the answer.
Perhaps should I have been more precise in my question. Take this as an example : http://www.subsim.com/radioroom/pict...pictureid=6749 This is a view of the Page Crew.ini displayed in game. When you click on the text "torpedo", which is in fact a button, the game loads the Page Guns.ini where this tab is discribed. But, in Page Crew.ini, the only reference to this button is : [G61 I6] Name=TorpedoBtn Type=1032;Button ItemID=0x61040008 ParentID=0x61040000 Pos=613,-28,296,34 Zone= 663 693 296 34 2 1 0x6104000C 0.5 -0.5 0x61040008 -0.5 0.5 0 0 StyleSheetNames=GrayTabButton Materials=4 Display=0;No stretch Font=30 Text=6411 TextFlags=0x5 StatesColors=0xEDBF72FF, 0x747474FF, 0xE0E0E0FF, 0xEDBF72FF And that's all! Where is the link? How the game knows to load the Page Guns.ini and not the UZO page? It doesn't come from the associated .py files as they are empty. ParentID=0x61040000 is nothing more than the menu group that describes the page layout. EDIT :I think it could only be related to menu.txt, the capital letters entries must be harcoded somewhere. Must practice some tests to validate.... |
|
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. |
http://www.subsim.com/radioroom/pict...pictureid=6750
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? |
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 12:27 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.