-
November 14th, 2011, 15:59 #1
Problem with desktop_dockitem template
Hi,
I'm trying to modify the size of the sidebar buttons (story,maps, etc) in the 3.5E 2.8 ruleset. I've seen these are created from the desktop_dockitem template:
Code:<template name="desktop_dockitem"> <windowreferencecontrol> <bounds>0,0,100,95</bounds> <nodrag /> <closetoggle /> </windowreferencecontrol> </template>
Any idea about this?
-
November 14th, 2011, 22:57 #2
From memory of coding around these for Savage Worlds, I think they are dynamically sized to fit the sidebar. E.g. when I added a new dock tool too, everything got smaller to fit it into the dock.
Perhaps the bounds only serves as a maximum size ?Former SW ruleset / Deadlands extension author. Now I just wanna play a few games. And maybe hack. A little.
-
November 14th, 2011, 23:03 #3
- Join Date
- Jul 2010
- Location
- orlando
- Posts
- 270
you must widen the panel to accommodate the template.
unfortunatly if you are makig the change in an EXT panels can not be over ridden from extensions.
you canfind the panels in desktop_panels.xml
-
November 15th, 2011, 07:55 #4
well, it was only the first part of the problem. The second one was the following array in manager_desktop.lua:
dockiconsize = { 84, 80 };
it serves as a constant width-height reference value to the updateControls() function in order to dinamically resize, acomodate and stack all the controls within the shortcuts panel.
Thank you very much for your help.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks