FreeOrion

Forums for the FreeOrion project
It is currently Thu May 23, 2013 2:10 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [PATCH] slot controls tool tips
PostPosted: Sun Jan 15, 2012 4:06 am 
Offline
Space Floater

Joined: Thu Oct 20, 2011 10:14 pm
Posts: 27
From the wiki:
Add tooltips to SlotControls. PartControls (in the parts list, or after being dropped into a SlotControl) have tooltips indicating what kind of part they are. Empty SlotControls (in the middle panel where parts can be dropped after selecting a hull) could also have a tooltip indicating what kind of slot they are. This should be fairly simple to do by copying what's done for PartControls. Make sure that SlotControl tooltips are replaced by PartControl tooltips when a PartControl is dropped into a SlotControl, though, or modify the PartControl tooltip when it is in a SlotControl, to indicate what kind of slot the part is in (this would be preferred).

Added tool tips for slot controls when empty. And when theres a part in it, (slot type) follows the part name.


Attachments:
SlotToolTips.patch [2.95 KiB]
Downloaded 6 times
Top
 Profile  
 
 Post subject: Re: [PATCH] slot controls tool tips
PostPosted: Sun Jan 15, 2012 4:29 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7891
Location: Vancouver, BC
Instead of storing a string for the slot type name, can't you just pass the appropriate string to the IconTextBrowseWnd constructor?


Top
 Profile  
 
 Post subject: Re: [PATCH] slot controls tool tips
PostPosted: Sun Jan 15, 2012 4:40 am 
Offline
Space Floater

Joined: Thu Oct 20, 2011 10:14 pm
Posts: 27
Geoff the Medio wrote:
Instead of storing a string for the slot type name, can't you just pass the appropriate string to the IconTextBrowseWnd constructor?


Ah yea that would be a better idea since its only used twice.


Attachments:
SlotToolTips.patch [2.3 KiB]
Downloaded 6 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group