Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 09:55:08 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)HUD regression in current SVN
Pages: [1]
Print
Author Topic: HUD regression in current SVN  (Read 1397 times)
hawkwind
Getting respectable
***
Offline Offline

Posts: 363



View Profile Email
« on: 18. December 2006, 09:13:54 pm »

All

   I updated my source last night and several of my HUD based classes now fail. The HUD code assumes, as best I can tell, that all widgets have a container that is the HUD.  In WidgetBase (I think)  there is a getHUD() method that is called during an update().    In my code I have Panels, within Panels, within Frame.  None of the intermediate Panels seem to have the "container" variable set.  The getHUD() recurses looking for a container, and in my cases returns a 'null'.  With nested components this is failing.

This is a recent change, perhaps within the last week.  Is there a way to pull ..historical updates, can I get back to last weeks source via SVN Eclipse plugin??
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 18. December 2006, 09:52:33 pm »

All

   I updated my source last night and several of my HUD based classes now fail. The HUD code assumes, as best I can tell, that all widgets have a container that is the HUD.  In WidgetBase (I think)  there is a getHUD() method that is called during an update().    In my code I have Panels, within Panels, within Frame.  None of the intermediate Panels seem to have the "container" variable set.  The getHUD() recurses looking for a container, and in my cases returns a 'null'.  With nested components this is failing.

Well, I'm currently working on a massive HUD fix. It already works very good here. I will test this case of panel-in-panel, too. I will commit it within the next hours and post here.

This is a recent change, perhaps within the last week.  Is there a way to pull ..historical updates, can I get back to last weeks source via SVN Eclipse plugin??

Yes. Simply watch the SVN history (Team->Show Histroy) to see, which revision has been committed when (and what is contained) and checkout this revision.

Marvin
Logged
hawkwind
Getting respectable
***
Offline Offline

Posts: 363



View Profile Email
« Reply #2 on: 18. December 2006, 11:29:15 pm »

cool...thanx for the effort.   I have shifted my entire game to HUD base UI, life is nice. 

I have created two widgets that may be usable to a wider audience. 

One shifts from a initial location to a target destination whenever the mouse enters it.  I use this to have a set of buttons mostly hidden that can "slide into the game" when the user needs to select an item, it slides back to the initial location when the mouse exits.

The second does a similar shift, only for a time duration before sliding back, no mouse involved.  I use this to "popup" informational dialogs, long enough to be read before sliding back.

They are currently "prototyped"  I can send the source if you want to rework them to make the code style fit the other widgets.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 18. December 2006, 11:44:55 pm »

I have created two widgets that may be usable to a wider audience. 

One shifts from a initial location to a target destination whenever the mouse enters it.  I use this to have a set of buttons mostly hidden that can "slide into the game" when the user needs to select an item, it slides back to the initial location when the mouse exits.

The second does a similar shift, only for a time duration before sliding back, no mouse involved.  I use this to "popup" informational dialogs, long enough to be read before sliding back.

They are currently "prototyped"  I can send the source if you want to rework them to make the code style fit the other widgets.

Please send them Smiley. I'm very interested.

Is the seconds one to be understood as a tooltip or as a real popup menu?

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 19. December 2006, 03:32:08 am »

I've committed the HUD update. Please checkout from SVN (xith3d and xith-tk). There's a new Button on the HUD, that should pop up a Frame matching your situation and it works. Please tell me, if it really matches your situation.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic