![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Medic
![]() Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
|
![]()
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... ![]() |
![]() |
![]() |
![]() |
#2 |
Lieutenant
![]() Join Date: Mar 2010
Location: South Atlantic
Posts: 262
Downloads: 673
Uploads: 2
|
![]()
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! |
![]() |
![]() |
![]() |
#3 |
Medic
![]() Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
|
![]()
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 : 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.... Last edited by divingbluefrog; 06-18-13 at 02:56 AM. |
![]() |
![]() |
![]() |
#4 |
Navy Seal
![]() |
![]()
Are you using the menu editor to check
![]() ![]() |
![]() |
![]() |
![]() |
#5 |
Medic
![]() Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
|
![]()
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. Last edited by divingbluefrog; 06-18-13 at 01:54 PM. |
![]() |
![]() |
![]() |
#6 |
Medic
![]() Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
|
![]() 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? |
![]() |
![]() |
![]() |
#7 | |||
Black Magic
![]() |
![]() Quote:
Quote:
Quote:
![]() Last edited by TheDarkWraith; 06-23-13 at 12:10 PM. |
|||
![]() |
![]() |
![]() |
|
|