www.wisonauts.de

 

Add a "row highlight" to the Main Menu?
Click here to go to the original topic
Goto page 1, 2  Next
 
       www.wisonauts.de Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
thugHack
Guest





Posted: Tue Aug 09, 2005 04:30    Post subject: Add a "row highlight" to the Main Menu?  

Is it possible to add a "row highlight" to the Main Menu?

I've tried using the code below, but it never appears.
Code:
   <item>
      <type>rect</type>
      <relX>-3</relX>
      <relY>0</relY>
      <width>260</width>
      <height>15</height>
      <fillcolor>ff000000</fillcolor>
      <color>ff000000</color>
   </item>


I've also tried adding a "showID" of 0, 1, and 2, but I would assume those aren't needed since the menu doesn't have a "showID".

Any advice? :?
Back to top  
WiSo
Guest


Joined: 08 Jul 2004
Posts: 1290
Location: Gütersloh

Posted: Tue Aug 09, 2005 09:18    Post subject:  

You've encountered a bug ;-)
relY/relX are only working with a showid but it is not set. I'll fix this for 0.6.9 which will probably be released this week.
Back to top  
thugHack
Guest





Posted: Wed Aug 10, 2005 17:35    Post subject: Still broken in 0.6.9  

This still appears to be broken.
Back to top  
WiSo
Guest


Joined: 08 Jul 2004
Posts: 1290
Location: Gütersloh

Posted: Wed Aug 10, 2005 21:11    Post subject:  

I tested it with the item snippet you had provided and it worked fine. Just add showID 1 to it.
Back to top  
iamrock
Guest


Joined: 01 Aug 2005
Posts: 24
Location: Parker, CO

Posted: Thu Aug 11, 2005 01:22    Post subject: Same problem in Game Manager  

I've tested this in the main menu and it works. However, the Game Manager and DiskCopy have the same problem.
Back to top  
thugHack
Guest





Posted: Thu Aug 11, 2005 04:16    Post subject: Also in File Manager's sub-menus  

The row highlights also do not work in the File Manager's sub-menus. If you try to add them to the Options or Directory menus, they appear in the upper-left corner of the screen instead of the relX and relY of which row is selected in the sub-menu.
Back to top  
WiSo
Guest


Joined: 08 Jul 2004
Posts: 1290
Location: Gütersloh

Posted: Thu Aug 11, 2005 09:36    Post subject:  

Damn I really test it badly. Gamemanager and discopy have the same bug with no showID set internally and the file manager submenus got no coordinates. Not sure if I get this fixed before my vacation.
Back to top  
iamrock
Guest


Joined: 01 Aug 2005
Posts: 24
Location: Parker, CO

Posted: Thu Aug 11, 2005 18:00    Post subject:  

Don't beat yourself up over testing, that's what we're here for. Hopefully they'll be quick fixes. Keep up the good work!

Hope you have a GREAT vacation! :D

IamRock
Back to top  
WiSo
Guest


Joined: 08 Jul 2004
Posts: 1290
Location: Gütersloh

Posted: Thu Aug 11, 2005 19:15    Post subject:  

Ok fixed it for 0.7.0. Game manager and submenus of file manager were broken but diskcopy was working ;-)
Back to top  
thugHack
Guest





Posted: Thu Aug 11, 2005 20:59    Post subject: Can you please explain the showID's  

WiSo wrote: I tested it with the item snippet you had provided and it worked fine. Just add showID 1 to it.

I think I understand the basic concept of showIDs, but when should you add showID 1?
1. Do you add it whenever another item does not have a showID?
2. Can you change an item's showID if the other items that should display at the same time also have matching showIDs? Or does your code require the showID to remain unchanged?

Sorry if these are stupid questions, but I want to understand how these work. :oops:
Back to top  
WiSo
Guest


Joined: 08 Jul 2004
Posts: 1290
Location: Gütersloh

Posted: Thu Aug 11, 2005 21:03    Post subject:  

I tried to explain it here: http://wiki.ws0.org/wakka.php?wakka=d2xskin&v=atw#h179-13

Ask if it's still not clear. In general you have to take the showID's which are in the default skin.
Back to top  
thugHack
Guest





Posted: Thu Aug 11, 2005 21:18    Post subject:  

So if no items in the xml have a showID, do you add showId 1? For instance, in the viewer, the menu item does not have a showID, but the rect item that highlights the selected row has a showID of 1.
Back to top  
WiSo
Guest


Joined: 08 Jul 2004
Posts: 1290
Location: Gütersloh

Posted: Thu Aug 11, 2005 23:54    Post subject:  

It isn't consistent. In the code the viewer has a showid of 1 but it isn't needed in the xml since it is the only "menu".
Maybe someone could add the valid showID's (taken from the default skin) to the wiki.
Back to top  
iamrock
Guest


Joined: 01 Aug 2005
Posts: 24
Location: Parker, CO

Posted: Sat Aug 13, 2005 16:37    Post subject:  

WiSo wrote: ... the file manager submenus got no coordinates....

Hey WiSo,
The game menu in the Game Manager (showID=2222) has the same problem that the File Manger's submenus had. The row highlight appears in the upper-left corner of the screen instead of the relX and relY of which row is selected in the sub-menu.
Back to top  
WiSo
Guest


Joined: 08 Jul 2004
Posts: 1290
Location: Gütersloh

Posted: Mon Sep 05, 2005 20:04    Post subject:  

Sure? Thought I've tested this. Ok I'll have a look.
Back to top  
 
       www.wisonauts.de Forum Index -> Bug Reports Goto page 1, 2  Next
Page 1 of 2


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.22 © 2001, 2002 phpBB Group