Difference between revisions of "Skinning How To/Things you can and cannot do with the toolbar"

From Second Life Wiki
Jump to navigation Jump to search
(Removing all content from page)
 
Line 1: Line 1:
= Introduction =


The toolbar is a strange part of the xui code in that it ignores certain alterations to its xml files. Attempting to display the toolbar in any fashion different than the "standard" view will usually result in errors as you run into hardcoded limits. For example, pixel width is not actually honored in panel_toolbar.xml. Instead, it is displayed as a ratio of the total width to the width of toolbar itself. This is a rough guide of what's possible and what's not.
= Cannot do with the toolbar =
* Change the chatbar or the media/voice controls panel locations. Settings in the xml files will be ignored. This is a major impediment to skinning, and will pretty much kill all your skin plans for the toolbar.
* Set accurate widths for panel_toolbar.xml. As stated above, the screen real estate of a width setting in panel_toolbar.xml depends on a ratio of the background panel width to the width of the toolbar panel. For example, in the "standard" toolbar, setting your background panel width to < 1024 will result in a wider toolbar. Setting your background panel width > 1024 will shrink it. The same for the toolbar panel width setting, although there is a lower limit after which both settings must be changed.
* Set spaces between panel_toolbar.xml buttons without using a spacer texture; pixel location settings are ignored by the viewer.
* Change the toolbar from horizontal to vertical. (I have not found a way to get this to display correctly as of yet, although I'm still trying).
* Align a toolbar that does not span your entire screen length to a corner aside from the lower left.
= Can do with the toolbar =
* Change the order in which the buttons display.
* Change the size of the buttons. The setting <code>auto_resize="false"</code> can be used to change the size of the buttons for panel_toolbar.xml when it doesn't span the entire screen length.
* Change the height of the toolbar and its icons.
* Display more than one row of toolbar icons. This can be done by using multiple layout_stack entries.
That is all I've figured out at the moment. Attempting to use a toolbar other than the "standard" configuration will pretty much fail since the chatbar location cannot be changed, and there is no guarantee the rest of the toolbar will display correctly on someone's screen anyway. Clearly, a refactoring of the toolbar UI code is in order.
[[Category:Skinning]]

Latest revision as of 17:23, 28 April 2008