DICE PACKS BUNDLE
  1. #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>
    as I want to change the size of the control I've changed the <bounds> properties, but it seems like FG ignores these parameters. I'm digging around with no success.

    Any idea about this?

  2. #2
    phantomwhale's Avatar
    Join Date
    Aug 2007
    Location
    Melbourne, Australia
    Posts
    1,370
    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.

  3. #3
    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

  4. #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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in