Thread: Size Matters?
-
January 12th, 2013, 20:10 #1
Size Matters?
I've noticed that in the SW3.3.1 Deluxe ruleset the Icons "change size" when the FG window is expanded. Yet in the Graphics files there seems to be only one size of icon.
Anyone know how this feat of magic is accomplished? I'd like to get more real estate from the 3.5 ruleset editions and if I can shink and expand these icons it would be great!Aliens.... Go fig?
-
January 13th, 2013, 00:57 #2
You mean the tool icons on the right-hand side ?
These are "windowreferencecontrols", which has the method setIcons to set it's unpressed and pressed state icons. When these controls have there size (static bounds) altered, the icons resize themselves accordingly.
The magic for all of this is in desktopmanager.lua which was inherited from the original D20 ruleset so I'd imagine it was part of 3.5 too.Former SW ruleset / Deadlands extension author. Now I just wanna play a few games. And maybe hack. A little.
-
January 13th, 2013, 01:06 #3
Not part of 3.5 unfortunately. and the "banners" if the screenisn't maximized, offers no extra room for spiffy new icons.
Aliens.... Go fig?
-
January 13th, 2013, 01:12 #4
You're right that it *was* in the original d20 rules, though. Must have been taken out for some reason.
Aliens.... Go fig?
-
January 14th, 2013, 21:37 #5
So how would you go about adding an icon? I know you haveto place the button on the icon dock (the sidebar) in desktop.lua but where do you place the code that actually places the graphic on the screen.
I can currently get a "magic zone," in which when I click the button's response code comes out, but I'm missing the graphic component.
Any help would be appreciatedAliens.... Go fig?
-
January 14th, 2013, 22:12 #6Originally Posted by S FergusonPrivate Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
January 14th, 2013, 22:46 #7
And I assume it's the same for the Dock items as well?
Aliens.... Go fig?
-
January 14th, 2013, 23:01 #8Originally Posted by S Ferguson
The DesktopManager.registerStackShortcut is used to enable the smaller buttons in the top right of the sidebar (mod, init, etc.) and the larger more graphical buttons (story, images, etc.). It all depends on the actual .png image which is used as part of the registerStackShortcut command.
Check out a few of the commands and the underlying graphics files to see how it is used.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
January 14th, 2013, 23:13 #9
The DesktopManager has ".stack" and ".dock" routines. The first places an Icon in the top right hand "rectangle" bars like Lighting. The second controls the right hand panels like Personalities and Vehicles.
I would like to add a button on the ".dock". Like I said before the space has a mouse hover mode, and you can even press the area for effect, but the icon itself isn't displaying.Aliens.... Go fig?
-
January 14th, 2013, 23:24 #10
Sorry, I've been cross-eyed before and never actually noticed the different "stack" and "dock". Essentially they are very similar:
Code:DesktopManager.registerStackShortcut("button_light", "button_light_down", "Lighting", "lightingselection"); DesktopManager.registerDockShortcut("button_vehicles", "button_vehicles_down", "Vehicles", "vehiclelist", "vehicle");
Code:registerStackShortcut(iconNormal, iconPressed, tooltipText, className, recordName, index) registerDockShortcut(iconNormal, iconPressed, tooltipText, className, recordName, useSubdock, index)
Both of these functions use iconNormal and iconPressed to define the graphic used. As mentioned above, these 2 names link to a physical graphics file in the graphics_sidebar.xml file. If all else fails do a search in files for "button_vehicles" to see where it is defined.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks