Difference between revisions of "Skinning HowTo/XUI Other Widgets"

From Second Life Wiki
Jump to navigation Jump to search
 
(106 intermediate revisions by 4 users not shown)
Line 1: Line 1:
These are the XML elements and parameters used to define the floaters, panels, and so forth, that make up the viewer user interface.  They are used by the [[Skinning How To/The XML files and what they do | XUI files]] in the '''\skins\default\xui''' folders.  See [[Skinning HowTo/Basics]] for an explanation of how these are used.
{{XUI Nav}}
== Overview ==
This page describes the XML attributes for the XUI widgets that don't fit into any other category below.  These are some of the XML elements and parameters used within the floaters, panels, and so forth, that make up the viewer user interface.  They are used by the [[Skinning How To/The XML files and what they do | XUI files]] in the '''\skins\default\xui''' folders.   


== Common parameters ==
Many XUI elements share the same parameters.  Rather than repeatedly describing them, we just list their names here and describe them at [[Skinning HowTo/Common XUI attributes]].


The most common parameters are described here and are just listed under the elements that use them.
== icon ==


===== name =====
*Class LLIconCtrl : LLUICtrl : LLView
''Required.'' The XML name of this element. The name must be unique to the floater you are editing.  
*In source file llui/lliconctrl.cpp
*Used by floater, panel, layout_stack, layout_panel, multi_floater, and widgetset.


* IMPORTANT: As noted above, do not re-name XML elements, even for localization. Many of the element names are looked up by the viewer. If the viewer cannot find an element name it expects, it will crash.
<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
    height="80" left="551" min_height="80" min_width="250" mouse_opaque="true"
    name="example_icon" tab_stop="false" title="icon" width="250">
    <icon bottom="20" color="1 0.5 0 1" enabled="true" height="30" left="10"
        mouse_opaque="false" name="icon" tab_stop="false" width="223"
        image_name="icon_day_cycle.tga" />
</floater></xml>


String: <code>name="input_first_name"</code>
===Common attributes===
===== width =====
*'''[[Skinning HowTo/Common XUI attributes#Used by all XUI elements|General]]:'''  name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
''Required.'' The width of the element, in pixels.
*'''[[Skinning HowTo/Common XUI attributes#Positioning|Positioning]]:'''  width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
*'''[[Skinning HowTo/Common XUI attributes#Text|Text]]:'''  label
*'''Others:''' [[Skinning HowTo/Common XUI attributes#border|border]]


For text, this defines the visible text as well as the clickable area. If the width of a text element is not sufficient to hold the text, the text will be truncated. This is most likely what you will widen when localizing the viewer.
===Special attributes===


For most other elements, this describes the dimensions of an element, such as a button, icon, panel, text_area, etc.
==== image_name ====
 
* Tip: See the bounding boxes of all XML elements in the viewer: ''Advanced'' menu > UI > Debug Views.
 
Integer: <code>width="140"</code>
===== height =====
''Required.'' The height of the element, in pixels.
 
For text, this defines the visible text as well as the clickable area. If the height of a text element is not sufficient to hold the text, the text will be truncated. This is most likely what you will lengthen when localizing the viewer.
 
For most other elements, this describes the dimensions of an element, such as a button, icon, panel, text_area, etc.
 
Integer: <code>height="24"</code>
===== left =====
''Optional.'' Sets the position in the x dimension of the ''element's'' <u>left edge</u> relative to the container's '''left''' edge. Positive and negative values are accepted. A negative value will set the position relative to the '''right''' edge of the container.
 
Integer: <code> left="6"</code>
 
===== right =====
''Optional.'' Sets the position in the x dimension of the ''element's'' <u>right edge</u> relative to the container's '''left''' edge. Positive and negative values are accepted.  A negative value will set the position relative to the '''right''' edge of the container.  Best used to align something to the right.
* For example, given a floater with a width of 500 and a button we wish to right align in the floater, we can set the <code>right</code> to 490 -- this puts the right edge of the button 10 pixels away from the right border of the floater.
 
Integer: <code> right="6"</code>
 
===== left_delta =====
''Optional. (use instead of <code>left</code>)'' Sets the position in the x dimension of the element's left edge relative to the previous element, or, for the first widget, the left edge of the container. Positive and negative values are accepted. Best used to left-align the current element with the previous element.
* For example, given Button B with a width of 100, a previous Button A with a width of 50 and a distance between elements of 6, we would set the <code>left_delta</code> to -106, putting the left edge of Button B 106 pixels to the left of Button A. We use a negative number to move left, and a positive number to move right.
 
Integer: <code> left_delta="-106"</code>
 
===== right_delta =====
''Optional. (use instead of <code>right</code>)'' Sets the position in the x dimension of the element's right edge relative to the previous element, or, for the first widget, the left edge of the container. Positive and negative values are accepted. Best used to right-align the current element with the previous element.
* For example, given Button B with a width of 100, a previous Button A with a width of 50 and a distance between elements of 6, we would set the <code>right_delta</code> to 106, putting the left edge of Button B 106 pixels to the left of Button A.
 
Integer: <code> left_delta="106"</code>
 
===== bottom =====
''Optional.'' Sets the position in the y dimension of the element's bottom edge relative to the container. Positive and negative values are accepted. For example, given a floater with a height of 300 and a title 20 pixels tall and we want , we can set the <code>bottom</code> to (NEED TO DO MATH, LOL) -- putting the bottom edge of the title 40 pixels away from the top border of the floater.
 
Integer: <code> bottom="(NEED TO DO MATH, LOL)"</code>
 
===== bottom_delta =====
 
===== follows =====
''Optional.'' Sets which edge(s) an element follows when the containing element is resized. Specifying all edges results in an element that can dynamically resize itself with its container.
 
Values: left, top, right, bottom. String multiple values together using pipes.
 
The following example sets an element to follow both the left and the top, such as a floater's title may be designed:
String: <code>follows="left|top"</code>
 
===== font =====
''Optional.'' Sets which size and style of the application font to use. The default is SansSerifSmall for <code>text</code> elements and SansSerif for controls (such as <code>check_box</code> and <code>button</code>.
 
Values: SansSerifSmall, SansSerif, SansSerifBig, SansSerifBold, Monospace
 
String: <code>font="SansSerifSmall"</code>
 
== Widget Parameters ==
 
 
=== floater parameters ===
----
===== can_close =====
===== can_drag_on_left =====
===== can_minimize =====
===== can_resize =====
''Required.''
===== height =====
===== width =====
===== max_height =====
===== min_height =====
===== min_width =====
===== name =====
''Required.''
===== rect_control =====
===== title =====
===== bottom =====
===== left =====
===== can_tear_off =====
===== enabled =====
===== mouse_opaque =====
===== control_name =====
===== follows =====
===== border =====
===== default_tab_group =====
===== label =====
===== border_drop_shadow_visible =====
===== border_visible =====
===== border_style =====
===== border_thickness =====
===== border_bevel =====
===== bevel_style =====
===== short_title =====
===== sound_flags =====
 
=== multi_floater parameters ===
----
===== can_close =====
''Required.''
===== can_drag_on_left =====
''Required.''
===== can_minimize =====
''Required.''
===== can_resize =====
''Required.''
===== height =====
''Required.''
===== width =====
''Required.''
===== min_height =====
===== min_width =====
===== name =====
''Required.''
===== rect_control =====
''Required.''
===== title =====
''Required.''
===== bottom =====
===== left =====
===== enabled =====
===== follows =====
===== mouse_opaque =====
===== title_bar =====
 
=== panel parameters ===
----
===== border =====
===== bottom =====
===== bottom_delta =====
===== top =====
===== left =====
===== left_delta =====
===== right =====
===== enabled =====
===== follows =====
===== height =====
===== width =====
===== label =====
===== mouse_opaque =====
===== name =====
===== background_opaque =====
===== background_visible =====
===== bevel_style =====
===== bg_alpha_color =====
===== bg_opaque_color =====
===== can_resize =====
===== filename =====
===== tab_group =====
===== default_tab_group =====
===== placeholder =====
===== border_drop_shadow_visible =====
===== border_visible =====
===== border_style =====
===== border_thickness =====
===== border_color =====
===== tool_tip =====
===== title =====
===== auto_resize =====
===== user_resize =====
===== use_bounding_rect =====
===== bg_visible =====
===== can_close =====
===== can_minimize =====
===== left_in_finder =====
===== select =====
===== visible =====
 
=== menu parameters ===
----
===== bottom_delta =====
===== bottom =====
===== left =====
===== drop_shadow =====
===== height =====
===== width =====
===== label =====
===== mouse_opaque =====
===== opaque =====
===== name =====
===== tear_off =====
===== enabled =====
===== color =====
===== create_jump_keys =====
===== visible =====
===== hidden =====
 
=== menu_bar parameters ===
----
===== bottom =====
===== left =====
===== drop_shadow =====
===== follows =====
===== height =====
===== width =====
===== mouse_opaque =====
===== opaque =====
===== name =====
===== enabled =====
===== tear_off =====
 
 
=== pie_menu parameters ===
----
===== name =====
===== label =====
===== enabled =====
 
=== mimetypes parameters ===
----
===== name =====
 
=== icon parameters ===
----
===== image_name =====
''Required.'' Specifies the name of the image to load for this icon.
''Required.'' Specifies the name of the image to load for this icon.


String: <code>image_name="myicon.png"</code>
String: <code>image_name="myicon.png"</code>


===== bottom =====
==== color ====
===== bottom_delta =====
''Optional.''
===== top =====
===== left =====
===== left_delta =====
===== right =====
===== follows =====
===== name =====
===== color =====
===== enabled =====
===== height =====
===== width =====
===== mouse_opaque =====
===== bg_alpha_color =====
===== border =====
===== scale_image =====
===== auto_resize =====
===== visible =====
===== label =====
===== tool_tip =====
 
=== button parameters ===
----
===== scale_image =====
''Optional.'' Specifies whether to scale the button art as its container/floater is resized. As of 1.18.x, all button art has this property set to <code>true</code> where the button size is not equal to 32x128.
 
Boolean: <code>scale_image="true"</code>
 
===== label =====
''Optional.'' Label is the text on the button's face. Without a specified label (and no <code>image_overlay</code> declared), your button will be labeled "Button".
String: <code>label="Click Me!" </code>
===== label_selected =====
''Optional.'' Label is the text on the button's face when pressed into an 'on' state. Your button will inherit the <code> label</code> if you omit this property.
String: <code>label_selected="I've been clicked." </code>
===== font =====
(under construction)
===== font_style =====
''Optional.'' Styles the text. Allows multiple style selections. As of 1.18.x, the style options are:
 
* normal: Apply the default styles of the selected font. (For example, SansSerifBold has a default bold style applied to it.)
* bold: Bolds the text.
* italic: Italicizes the text.
* underline: Underlines the text.
* drop_shadow: Old-style 1px offset of black under the text.
* drop_shadow_soft: New-style 3px offset of blurred shadow under the text.
 
String: <code>font_style="bold|underline|drop_shadow_soft"</code>
 
===== halign =====
''Optional.'' Controls horizontal alignment of label on button face.  Options are "left", "center" and "right".
 
===== image_unselected =====
''Optional.'' Overrides the default button art for the unselected/up and enabled button state. Art must be located in the <code>..\skins\textures</code> directory within the Second Life application folder (on a Mac, this is inside the package at <code>Contents/MacOS/Resources/skins/textures</code>). Art must also be named in <code>textures.xml</code> with an assigned UUID. By default, the button art is stretched to fit the specified button size.
 
String: <code>image_unselected="btn_square_32x128.tga"</code>
 
===== image_selected =====
''Optional.'' Overrides the default button art for the selected/down button state. Art must be located in the <code>..\skins\[SKIN]\textures</code> directory within the Second Life application folder (on a Mac, this is inside the package at <code>Contents/MacOS/Resources/skins/textures</code>). By default, the button art is stretched to fit the specified button size.
 
String: <code>image_selected="btn_square-down_32x128.tga"</code>
 
===== image_hover_selected =====
''Optional.'' Overrides the default button art for the selected/down and mouseover/hover button state. Art must be located in the <code>..\skins\textures</code> directory within the Second Life application folder (on a Mac, this is inside the package at <code>Contents/MacOS/Resources/skins/[SKIN]/textures</code>). Art must also be named in <code>textures.xml</code> with an assigned UUID. By default, the button art is stretched to fit the specified button size.
 
String: <code>image_unselected="btn_square-down-hover_32x128.tga"</code>
 
===== image_hover_unselected =====
''Optional.'' Overrides the default button art for the unselected/up and mouseover/hover button state. Art must be located in the <code>..\skins\[SKIN]\textures</code> directory within the Second Life application folder (on a Mac, this is inside the package at <code>Contents/MacOS/Resources/skins/[SKIN]/textures</code>). Art must also be named in <code>textures.xml</code> with an assigned UUID. By default, the button art is stretched to fit the specified button size.
 
String: <code>image_unselected="btn_square-up-hover_32x128.tga"</code>
 
===== image_disabled =====
''Optional.'' Overrides the default button art for the disabled button state. Art must be located in the <code>..\skins\textures</code> directory within the Second Life application folder (on a Mac, this is inside the package at <code>Contents/MacOS/Resources/skins/[SKIN]/textures</code>). Art must also be named in <code>textures.xml</code> with an assigned UUID. By default, the button art is stretched to fit the specified button size.
 
String: <code>image_unselected="btn_square-disabled_32x128.tga"</code>
 
===== image_disabled_selected =====
''Optional.'' Overrides the default button art for the disabled and selected/down button state. Art must be located in the <code>..\skins\[SKIN]\textures</code> directory within the Second Life application folder (on a Mac, this is inside the package at <code>Contents/MacOS/Resources/skins/textures</code>). Art must also be named in <code>textures.xml</code> with an assigned UUID. By default, the button art is stretched to fit the specified button size.
 
String: <code>image_unselected="btn_square-down-disabled_32x128.tga"</code>
 
===== image_overlay =====
''Optional.'' Applies an overlay image to the button. The button art will be sized to fit. As of 1.18.x, these icons should be 16 pixels high at maximum on a standard height 24px button to minimize scaling artifacts. Can be used with or without text. Art must be located in the <code>..\skins\[SKIN]\textures</code> directory within the Second Life application folder (on a Mac, this is inside the package at <code>Contents/MacOS/Resources/skins/[SKIN]/textures</code>). Art must also be named in <code>textures.xml</code> with an assigned UUID. See [[#image_overlay_alignment|image_overlay_alignment]] for alignment options.
 
String: <code>image_overlay="icn_media-play_16.tga"</code>
 
===== image_overlay_alignment =====
''Optional.'' Sets the alignment of the <code>image_overlay</code> icon.
 
Values:
* left: left-aligns the art on the button. This standard is used for new button art with text in the Dazzle branch.
* right: right-aligns the the art on the button.
* center: centers the art on the button. This standard is used for new button art without text in the Dazzle branch.
 
String: <code>image_overlay_alignment="left"</code>
 
===== toggle =====
''Optional.'' Determines whether the button is a toggle button or not. The Fly/Stop Flying button is a toggle button, for example.
 
Boolean: <code>toggle="false"</code>
 
===== bottom =====
===== bottom_delta =====
===== left =====
===== left_delta =====
===== right =====
===== enabled =====
===== follows =====
===== height =====
===== width =====
===== mouse_opaque =====
===== name =====
===== tool_tip =====
===== visible =====
===== tab_group =====
===== pad_right =====
===== hidden =====
===== tab_stop =====
===== help_url =====
===== sound_flags =====
===== auto_resize =====
===== user_resize =====
===== valign =====
===== default =====
===== index =====
===== text =====
===== ignore =====
===== control_name =====
===== label_width =====
===== image =====
=== text_editor parameters ===
----
<text_editor> creates a multi-line text box
===== max_length =====
===== embedded_items =====
===== font =====
===== word_wrap =====
===== hide_scrollbar =====
===== cursor_color =====
===== text_color =====
===== text_readonly_color =====
===== bg_readonly_color =====
===== bg_writeable_color =====
===== bg_focus_color =====
 
 
=== line_editor parameters ===
----
<line_editor> creates a single line text box
===== label =====
===== max_length =====
===== font =====
===== bevel_style =====
* none
* in
* out
* bright
* line
* texture
===== border_style =====
===== border_thickness =====
===== select_on_focus =====
===== select_all_focus_received =====
===== handle_edit_keys_directly =====
===== cursor_color =====
===== text_color =====
===== text_readonly_color =====
===== bg_readonly_color =====
===== bg_writeable_color =====
===== bg_focus_color =====
===== bottom =====
===== left =====
===== right =====
===== enabled =====
===== follows =====
===== handle_edit_keys_directly =====
===== height =====
===== width =====
===== mouse_opaque =====
===== name =====
===== bottom_delta =====
===== tool_tip =====
===== left_delta =====
===== tab_group =====
===== commit_on_focus_lost =====
===== hidden =====
===== is_unicode =====
===== increment =====
===== initial_val =====
===== max_val =====
===== min_val =====
===== visible =====
===== bg_visible =====
===== border_drop_shadow_visible =====
===== border_visible =====
===== drop_shadow_visible =====
===== h_pad =====
===== halign =====
===== prevalidate =====
===== v_pad =====
===== word_wrap =====
===== control_name =====
 
=== string parameters ===
----
===== name =====
===== word_wrap =====
 
=== tab_container parameters ===
----
===== enabled =====
===== follows =====
===== height =====
===== left =====
===== right =====
===== top =====
===== bottom =====
===== bottom_delta =====
===== mouse_opaque =====
===== name =====
===== tab_position =====
===== width =====
===== tab_width =====
===== tab_min_width =====
===== tab_max_width =====
===== border =====
===== tab_group =====
===== hide_tabs =====
 
 
 
 
=== text parameters ===
----
===== type =====
===== length =====
===== width =====
===== height =====
===== bg_visible =====
===== border_drop_shadow_visible =====
===== drop_shadow_visible =====
===== border_visible =====
===== bottom =====
===== bottom_delta =====
===== top =====
===== left =====
===== left_delta =====
===== right =====
===== enabled =====
===== follows =====
===== font =====
===== h_pad =====
===== halign =====
===== v_pad =====
===== valign =====
===== mouse_opaque =====
===== name =====
===== visible =====
===== hidden =====
===== tool_tip =====
===== tab_stop =====
===== initial_value =====
===== label =====
===== radio_style =====
===== word_wrap =====
===== control_name =====
===== font_size =====
===== font_style =====
===== font-style =====
===== bevel_style =====
===== border_style =====
===== border_thickness =====
===== is_unicode =====
===== max_length =====
===== hover =====
===== hover_cursor =====
===== hover_color =====
===== text_color =====
===== align =====
===== text_wrap =====
===== text_enabled_color =====
===== allow_html =====
===== bg_readonly_color =====
===== embedded_items =====
===== hide_border =====
===== hide_scrollbar =====
===== line_spacing =====
===== disabled_color =====
 
=== message parameters ===
----
===== name =====
 
=== message_set parameters ===
----
===== name =====
 
=== action parameters ===
----
===== description =====
===== longdescription =====
===== name =====
===== value =====
 
=== action_set parameters ===
----
===== description =====
===== name =====
 
=== progress_bar parameters ===
----
===== name =====
===== color =====
===== height =====
===== bottom =====
===== left =====
===== right =====
===== follows =====
 
=== slider_bar parameters ===
----
===== bottom =====
===== enabled =====
===== follows =====
===== height =====
===== width =====
===== increment =====
===== initial_val =====
===== left =====
===== max_val =====
===== min_val =====
===== mouse_opaque =====
===== name =====
 
=== locate parameters ===
----
===== bottom_delta =====
===== height =====
===== left_delta =====
===== name =====
===== width =====
 
=== context parameters ===
----
===== key =====
 
=== input parameters ===
----
===== name =====
===== type =====
 
=== form parameters ===
----
===== name =====
 
=== url parameters ===
----
===== option =====
===== name =====
 
=== usetemplate parameters ===
----
===== name =====
===== yestext =====
===== notext =====
===== canceltext =====
===== ignoretext=====
 
=== notification parameters ===
----
===== functor =====
===== icon =====
===== name =====
===== label =====
===== type =====
===== priority =====
===== sound =====
===== duration =====
 
=== ignore parameters ===
----
===== text =====
===== name =====
===== save_option =====
 
=== template parameters ===
----
===== name =====
 
=== global parameters ===
----
===== name =====
 
=== mimetype parameters ===
----
===== name =====
===== menu =====
 
=== scheme parameters ===
----
===== name =====
 
=== playtip parameters ===
----
===== name =====
 
=== tooltip parameters ===
----
===== name =====


=== label parameters ===
==== bg_alpha_color ====
----
''Optional.''
===== name =====
==== scale_image ====
''Optional.''
==== auto_resize ====
''Optional.''


=== widgetset parameters ===
== inventory_panel ==
----
===== name =====


=== on_check parameters ===
*Class LLInventoryPanel : LLPanel : LLUICtrl : LLView
----
*In source file newview/llinventoryview.cpp
===== function =====
*Used by floater, panel, and tab_container.
===== userdata =====
===== control =====


=== on_visible parameters ===
<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
----
<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
===== function =====
    can_resize="false" can_tear_off="false" enabled="true" follows="left|top"
    height="300" left="550" min_height="300" min_width="250" mouse_opaque="true"
    name="example_inventory_panel" tab_stop="false" title="inventory_panel"
    width="250">
    <inventory_panel allow_multi_select="true" border="true" bottom="20" enabled="true" height="250"
        left="20" mouse_opaque="true" name="inventory_panel" tab_stop="false"
        width="215" />
</floater></xml>


=== on_enable parameters ===
===Common attributes===
----
*'''[[Skinning HowTo/Common XUI attributes#Used by all XUI elements|General]]:'''  name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
===== function =====
*'''[[Skinning HowTo/Common XUI attributes#Positioning|Positioning]]:'''  width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
===== userdata =====
*'''[[Skinning HowTo/Common XUI attributes#Text|Text]]:'''  label
===== name =====
*'''Others:''' [[Skinning HowTo/Common XUI attributes#border|border]]


=== tearoff_menu parameters ===
===Special attributes===
----
===== bottom =====
===== enabled =====
===== height =====
===== label =====
===== left =====
===== mouse_opaque =====
===== name =====
===== width =====


=== font_size parameters ===
==== allow_multi_select ====
----
==== sort_order ====
===== name =====
===== comment =====
===== size =====


=== os parameters ===
== locate  ==
----
===== name =====


=== font parameters ===
These are two tags that mean the same thing.
----
===== name =====
===== comment =====
===== font_style =====


=== joystick_turn parameters ===
*Class LLUICtrlLocate : LLUICtrl : LLView
----
*In source file llui/lluictrlfactory.cpp
===== bottom =====
*Used by floater and panel.
===== left =====
===== enabled =====
===== follows =====
===== halign =====
===== height =====
===== width =====
===== image_selected =====
===== image_unselected =====
===== mouse_opaque =====
===== name =====
===== quadrant =====
===== scale_image =====
===== tool_tip =====


=== joystick_slide parameters ===
<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
----
<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
===== bottom =====
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
===== left =====
    height="150" left="550" min_height="150" min_width="250" mouse_opaque="true"
===== enabled =====
    name="example_locate" tab_stop="false" title="locate" width="250">
===== follows =====
    <locate bottom="100" enabled="true" left="20" mouse_opaque="false"
===== halign =====
        name="locate" tab_stop="false" />
===== height =====
    <icon color="1 0.5 0 1" enabled="true" height="30"
===== width =====
        mouse_opaque="false" name="icon" tab_stop="false" width="210"
===== image_selected =====
        image_name="icon_day_cycle.tga" />
===== image_unselected =====
</floater></xml>
===== mouse_opaque =====
===== name =====
===== quadrant =====
===== scale_image =====
===== tool_tip =====


=== menu_item_check parameters ===
'''NOTE''': The pad element is deprecated and not used in Viewer2.
----
===== bottom_delta =====
===== bottom =====
===== left =====
===== control_name =====
===== height =====
===== width =====
===== label =====
===== mouse_opaque =====
===== name =====
===== enabled =====
===== shortcut =====


=== menu_item_separator parameters ===
<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
----
<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
===== bottom_delta =====
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
===== bottom =====
    height="150" left="550" min_height="150" min_width="250" mouse_opaque="true"
===== left =====
    name="example_pad" tab_stop="false" title="pad" width="250">
===== height =====
    <pad bottom="100" enabled="true" left="20" mouse_opaque="false"
===== width =====
        name="pad" tab_stop="false" />
===== label =====
    <icon color="1 0.5 0 1" enabled="true" height="30"
===== mouse_opaque =====
        mouse_opaque="false" name="icon" tab_stop="false" width="210"
===== name =====
        image_name="icon_day_cycle.tga" />
===== enabled =====
</floater></xml>


=== menu_item_call parameters ===
===Common attributes===
----
*'''[[Skinning HowTo/Common XUI attributes#Used by all XUI elements|General]]:'''  name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
===== bottom_delta =====
*'''[[Skinning HowTo/Common XUI attributes#Positioning|Positioning]]:'''  width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
===== bottom =====
===== left =====
===== height =====
===== width =====
===== label =====
===== mouse_opaque =====
===== name =====
===== enabled =====
===== shortcut =====
===== useMacCtrl =====
===== visible =====
===== hidden =====


=== on_click parameters ===
== progress_bar ==
----
===== filter =====
===== function =====
===== userdata =====
===== name =====


=== search_editor parameters ===
*Class LLProgressBar : LLView
----
*In source file llui/llprogressbar.cpp
===== bottom =====
*Used by layout_panel.
===== left =====
===== follows =====
===== height =====
===== width =====
===== label =====
===== mouse_opaque =====
===== name =====
===== enabled =====


=== name_editor parameters ===
<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
----
<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
===== bevel_style =====
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
===== bg_readonly_color =====
    height="100" left="550" min_height="100" min_width="250" mouse_opaque="true"
===== border_style =====
    name="example_progress_bar" tab_stop="false" title="progress_bar"
===== border_thickness =====
    width="250">
===== bottom =====
    <progress_bar bottom="20" enabled="true" height="50" left="20" mouse_opaque="false"
===== left_delta =====
        name="progress_bar" width="200" />
===== follows =====
</floater></xml>
===== font =====
===== height =====
===== width =====
===== max_length =====
===== mouse_opaque =====
===== name =====
===== text_readonly_color =====
===== enabled =====
===== is_unicode =====


=== web_browser parameters ===
===Common attributes===
----
*'''[[Skinning HowTo/Common XUI attributes#Used by all XUI elements|General]]:'''  name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
===== bottom =====
*'''[[Skinning HowTo/Common XUI attributes#Positioning|Positioning]]:'''  width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
===== top =====
===== left =====
===== right =====
===== follows =====
===== font =====
===== name =====
===== border_visible =====
===== width =====
===== height =====
===== caret_color =====
===== start_url =====
===== embedded_items =====
===== max_length =====
===== mouse_opaque =====
===== word_wrap =====
===== ignore_ui_scale =====


=== view_border parameters ===
===Special attributes===
----
===== bevel_style =====
===== border_thickness =====
===== bottom_delta =====
===== bottom =====
===== left_delta =====
===== left =====
===== right =====
===== follows =====
===== height =====
===== width =====
===== mouse_opaque =====
===== name =====
===== blevel_style =====
===== border =====


=== multi_slider parameters ===
==== color ====
----
===== allow_overlap =====
===== bottom =====
===== left =====
===== can_edit_text =====
===== control_name =====
===== decimal_digits =====
===== draw_track =====
===== follows =====
===== height =====
===== width =====
===== increment =====
===== initial_val =====
===== label =====
===== max_sliders =====
===== max_val =====
===== min_val =====
===== mouse_opaque =====
===== name =====
===== show_text =====
===== use_triangle =====
===== value =====


=== scroll_container parameters ===
== search_editor ==
----
===== bottom =====
===== left =====
===== follows =====
===== height =====
===== width =====
===== mouse_opaque =====
===== opaque =====
===== name =====


=== color_swatch parameters ===
*Class LLSearchEditor : LLUICtrl : LLView
----
*In source file llui/lllineeditor.cpp
===== border_color =====
*Used by floater.
===== bottom =====
===== bottom_delta =====
===== left =====
===== left_delta =====
===== can_apply_immediately =====
===== color =====
===== height =====
===== width =====
===== label =====
===== mouse_opaque =====
===== name =====
===== tool_tip =====
===== visible =====
===== control_name =====
===== enabled =====


=== radio_item parameters ===
<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
----
<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
===== type =====
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
===== length =====
    height="80" left="550" min_height="80" min_width="250" mouse_opaque="true"
===== height =====
    name="example_search_editor" tab_stop="false" title="search_editor"
===== width =====
    width="250">
===== bottom =====
    <search_editor bottom="20" enabled="true" height="20" left="20" mouse_opaque="true"
===== bottom_delta =====
        name="search_editor" tab_stop="true" width="200" />
===== left =====
</floater></xml>
===== left_delta =====
===== follows =====
===== mouse_opaque =====
===== name =====


=== radio_group parameters ===
===Common attributes===
----
*'''[[Skinning HowTo/Common XUI attributes#Used by all XUI elements|General]]:'''  name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
===== bottom =====
*'''[[Skinning HowTo/Common XUI attributes#Positioning|Positioning]]:'''  width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
===== bottom_delta =====
*'''[[Skinning HowTo/Common XUI attributes#Text|Text]]:'''  label
===== left =====
===== left_delta =====
===== right =====
===== control_name =====
===== draw_border =====
===== follows =====
===== height =====
===== width =====
===== mouse_opaque =====
===== name =====
===== tool_tip =====
===== label =====
===== text_disabled_color =====
===== enabled =====
===== visible =====
===== enabled =====
===== tool_tip =====


=== flyout_button_item parameters ===
== string  ==
----
===== value =====
===== name =====


=== flyout_button parameters ===
*member of LLPanel : LLUICtrl : LLView
----
*In source file llui/llpanel.cpp
===== bottom =====
*Used by floater, panel, and multi_floater.
===== bottom_delta =====
===== left =====
===== left_delta =====
===== follows =====
===== height =====
===== halign =====
===== width =====
===== label =====
===== label_selected =====
===== list_position =====
===== mouse_opaque =====
===== name =====
===== tool_tip =====
===== font =====
===== auto_resize =====
===== user_resize =====
===== enabled =====


=== layout_panel parameters ===
<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
----
<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
===== border =====
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
===== bottom =====
    height="200" left="550" min_height="50" min_width="50" mouse_opaque="true"
===== left =====
    name="example_string" tab_stop="false" title="string" width="250">
===== top_delta =====
    <string name="string">String</string>
===== default_tab_group =====
</floater></xml>
===== height =====
===== min_height =====
===== width =====
===== min_width =====
===== name =====
===== auto_resize =====
===== can_resize =====
===== user_resize =====
===== filename =====
===== visible =====
===== follows =====
===== background_visible =====
===== mouse_opaque =====
===== use_bounding_rect =====


=== layout_stack parameters ===
==== name ====
----
==== word_wrap ====
===== border =====
''Optional.''
===== bottom =====
===== top =====
===== left =====
===== right =====
===== follows =====
===== height =====
===== min_height =====
===== width =====
===== min_width =====
===== orientation =====
===== name =====
===== tab_group =====
===== border_size =====
===== mouse_opaque =====
===== use_bounding_rect =====


=== inventory_panel parameters ===
== view_border  ==
----
===== allow_multi_select =====
===== border =====
===== bottom =====
===== bottom_delta =====
===== left =====
===== left_delta =====
===== follows =====
===== height =====
===== width =====
===== mouse_opaque =====
===== name =====
===== sort_order =====
===== label =====
===== enabled =====


=== slider parameters ===
*Class LLViewBorder : LLView
----
*In source file llui/llviewborder.cpp
===== bottom_delta =====
*Used by panel.
===== bottom =====
===== left_delta =====
===== left =====
===== right =====
===== follows =====
===== height =====
===== width =====
===== increment =====
===== initial_val =====
===== label =====
===== label_width =====
===== max_val =====
===== min_val =====
===== name =====
===== show_text =====
===== control_name =====
===== decimal_digits =====
===== can_edit_text =====
===== enabled =====
===== mouse_opaque =====
===== value =====
===== tool_tip =====
===== volume =====
===== edit_text =====


=== pad parameters ===
<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
----
<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
===== height =====
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
===== width =====
    height="80" left="550" min_height="80" min_width="250" mouse_opaque="true"
===== bottom =====
    name="example_view_border" tab_stop="false" title="view_border" width="250">
===== left =====
    <view_border bottom="20" enabled="true" height="20" left="20" mouse_opaque="false"
        name="view_border" width="200" bevel_style="out" />
</floater></xml>


=== volume_ slider parameters ===
===Common attributes===
----
*'''[[Skinning HowTo/Common XUI attributes#Used by all XUI elements|General]]:'''  name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
===== bottom =====
*'''[[Skinning HowTo/Common XUI attributes#Positioning|Positioning]]:'''  width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
===== bottom_delta =====
*'''Others:''' [[Skinning HowTo/Common XUI attributes#border|border]]
===== left =====
===== left_delta =====
===== follows =====
===== height =====
===== width =====
===== increment =====
===== initial_val =====
===== max_val =====
===== min_val =====
===== name =====
===== mouse_opaque =====
===== hidden =====
===== enabled =====
===== tool_tip =====
===== control_name =====


=== scroll_list parameters ===
===Special attributes===
----
===== bottom =====
===== bottom_delta =====
===== top =====
===== left =====
===== right =====
===== can_resize =====
===== column_padding =====
===== column_widths =====
===== draw_heading =====
===== draw_stripes =====
===== draw_border =====
===== follows =====
===== multi_select =====
===== name =====
===== search_column =====
===== sort_column =====
===== background_visible =====
===== height =====
===== width =====
===== mouse_opaque =====
===== enabled =====
===== tab_group =====
===== bg_selected_color =====
===== fg_disable_color =====
===== fg_selected_color =====
===== fg_unselected_color =====
===== tool_tip =====
===== font =====
===== heading_font =====
===== heading_height =====
===== allow_calling_card_drop =====
===== tab_stop =====
===== user_resize =====
===== sort_ascending =====


=== spinner parameters ===
==== bevel_style ====
----
''Optional.''
===== bottom =====
==== border_thickness ====
===== bottom_delta =====
''Optional.''
===== left =====
==== blevel_style ====
===== left_delta =====
''Optional.''
===== right_delta =====
===== decimal_digits =====
===== enabled =====
===== follows =====
===== halign =====
===== height =====
===== width =====
===== increment =====
===== initial_val =====
===== max_val =====
===== min_val =====
===== name =====
===== tool_tip =====
===== label =====
===== label_width =====
===== mouse_opaque =====
===== control_name =====
===== can_edit_text =====
===== visible =====
===== allow_text_entry =====
===== text_enabled_color =====
===== text_disabled_color =====
===== bg_visible =====
===== border_drop_shadow_visible =====
===== border_visible =====
===== drop_shadow_visible =====
===== font =====
===== h_pad =====
===== v_pad =====


=== texture_picker parameters ===
== web_browser  ==
----
===== allow_no_texture =====
===== bottom =====
===== bottom_delta =====
===== left =====
===== left_delta =====
===== right =====
===== can_apply_immediately =====
===== default_image_name =====
===== enabled =====
===== follows =====
===== height =====
===== width =====
===== label =====
===== mouse_opaque =====
===== name =====
===== tool_tip =====
===== visible =====


=== combo_item parameters ===
*Class LLWebBrowserCtrl : LLUICtrl : LLView
----
*In source file newview/llwebbrowserctrl.cpp
===== name =====
*Used by floater, panel, and layout_panel.
===== value =====
===== type =====
===== length =====
===== enabled =====


=== combo_box parameters ===
<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>
----
<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
===== allow_text_entry =====
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
===== bottom =====
    height="400" left="350" min_height="150" min_width="150" mouse_opaque="true"
===== bottom_delta =====
    name="example_web_browser" tab_stop="false" title="web_browser" width="550">
===== left =====
    <web_browser bottom="20" enabled="true" height="350" left="20" mouse_opaque="false"
===== left_delta =====
        name="web_browser" tab_stop="true" width="500" start_url="www.secondlife.com" follows="all" />
===== right =====
</floater></xml>
===== enabled =====
===== follows =====
===== height =====
===== width =====
===== length =====
===== max_chars =====
===== mouse_opaque =====
===== name =====
===== visible =====
===== tool_tip =====
===== label =====
===== tab_group =====
===== control_name =====
===== font =====
===== initial_value =====
===== halign =====
===== max_length =====
===== bg_readonly_color =====
===== text_readonly_color =====


=== column parameters ===
===Common attributes===
----
*'''[[Skinning HowTo/Common XUI attributes#Used by all XUI elements|General]]:'''  name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
===== name =====
*'''[[Skinning HowTo/Common XUI attributes#Positioning|Positioning]]:'''  width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
===== label =====
*'''[[Skinning HowTo/Common XUI attributes#Text|Text]]:'''  font, font_size, font_style
===== sort =====
===== width =====
===== dynamicwidth =====
===== relwidth =====
===== image =====
===== tool_tip =====
===== user_resize =====


=== name_list parameters ===
===Special attributes===
----
===== allow_calling_card_drop =====
===== background_visible =====
===== bottom =====
===== bottom_delta =====
===== left =====
===== left_delta =====
===== column_padding =====
===== draw_border =====
===== draw_heading =====
===== draw_stripes =====
===== enabled =====
===== follows =====
===== height =====
===== width =====
===== mouse_opaque =====
===== multi_select =====
===== name =====
===== name_column_index =====
===== heading_font =====
===== heading_height =====
===== tool_tip =====
===== bg_selected_color =====
===== fg_selected_color =====
===== fg_disable_color =====
===== fg_unselected_color =====
===== background_opaque =====
===== bg_alpha_color =====
===== bg_opaque_color =====


=== check_box parameters ===
==== border_visible ====
----
''Optional.''
===== bottom =====
==== caret_color ====
===== bottom_delta =====
''Optional.''
===== left =====
==== start_url ====
===== left_delta =====
''Optional.''
===== right =====
==== embedded_items ====
===== enabled =====
''Optional.''
===== follows =====
==== max_length ====
===== font =====
''Optional.''
===== height =====
==== word_wrap ====
===== width =====
''Optional.''
===== initial_value =====
==== ignore_ui_scale ====
===== label =====
''Optional.''
===== mouse_opaque =====
===== name =====
===== radio_style =====
===== tool_tip =====
===== tab_stop =====
===== control_name =====
===== visible =====
===== tab_group =====
===== halign =====
===== border_drop_shadow_visible =====
===== hidden =====
===== max_length =====

Latest revision as of 23:11, 24 May 2010

Overview

This page describes the XML attributes for the XUI widgets that don't fit into any other category below. These are some of the XML elements and parameters used within the floaters, panels, and so forth, that make up the viewer user interface. They are used by the XUI files in the \skins\default\xui folders.

Many XUI elements share the same parameters. Rather than repeatedly describing them, we just list their names here and describe them at Skinning HowTo/Common XUI attributes.

icon

  • Class LLIconCtrl : LLUICtrl : LLView
  • In source file llui/lliconctrl.cpp
  • Used by floater, panel, layout_stack, layout_panel, multi_floater, and widgetset.

<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
    height="80" left="551" min_height="80" min_width="250" mouse_opaque="true"
    name="example_icon" tab_stop="false" title="icon" width="250">
   <icon bottom="20" color="1 0.5 0 1" enabled="true" height="30" left="10"
        mouse_opaque="false" name="icon" tab_stop="false" width="223"
        image_name="icon_day_cycle.tga" />
</floater></xml>

Common attributes

  • General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
  • Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
  • Text: label
  • Others: border

Special attributes

image_name

Required. Specifies the name of the image to load for this icon.

String: image_name="myicon.png"

color

Optional.

bg_alpha_color

Optional.

scale_image

Optional.

auto_resize

Optional.

inventory_panel

  • Class LLInventoryPanel : LLPanel : LLUICtrl : LLView
  • In source file newview/llinventoryview.cpp
  • Used by floater, panel, and tab_container.

<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="false" can_tear_off="false" enabled="true" follows="left|top"
    height="300" left="550" min_height="300" min_width="250" mouse_opaque="true"
    name="example_inventory_panel" tab_stop="false" title="inventory_panel"
    width="250">
   <inventory_panel allow_multi_select="true" border="true" bottom="20" enabled="true" height="250"
        left="20" mouse_opaque="true" name="inventory_panel" tab_stop="false"
        width="215" />
</floater></xml>

Common attributes

  • General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
  • Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
  • Text: label
  • Others: border

Special attributes

allow_multi_select

sort_order

locate

These are two tags that mean the same thing.

  • Class LLUICtrlLocate : LLUICtrl : LLView
  • In source file llui/lluictrlfactory.cpp
  • Used by floater and panel.

<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
    height="150" left="550" min_height="150" min_width="250" mouse_opaque="true"
    name="example_locate" tab_stop="false" title="locate" width="250">
   <locate bottom="100" enabled="true" left="20" mouse_opaque="false"
        name="locate" tab_stop="false" />
   <icon color="1 0.5 0 1" enabled="true" height="30"
        mouse_opaque="false" name="icon" tab_stop="false" width="210"
        image_name="icon_day_cycle.tga" />
</floater></xml>

NOTE: The pad element is deprecated and not used in Viewer2.

<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
    height="150" left="550" min_height="150" min_width="250" mouse_opaque="true"
    name="example_pad" tab_stop="false" title="pad" width="250">
   <pad bottom="100" enabled="true" left="20" mouse_opaque="false"
        name="pad" tab_stop="false" />
   <icon color="1 0.5 0 1" enabled="true" height="30"
        mouse_opaque="false" name="icon" tab_stop="false" width="210"
        image_name="icon_day_cycle.tga" />
</floater></xml>

Common attributes

  • General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
  • Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control

progress_bar

  • Class LLProgressBar : LLView
  • In source file llui/llprogressbar.cpp
  • Used by layout_panel.

<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
    height="100" left="550" min_height="100" min_width="250" mouse_opaque="true"
    name="example_progress_bar" tab_stop="false" title="progress_bar"
    width="250">
   <progress_bar bottom="20" enabled="true" height="50" left="20" mouse_opaque="false"
        name="progress_bar" width="200" />
</floater></xml>

Common attributes

  • General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
  • Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control

Special attributes

color

search_editor

  • Class LLSearchEditor : LLUICtrl : LLView
  • In source file llui/lllineeditor.cpp
  • Used by floater.

<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
    height="80" left="550" min_height="80" min_width="250" mouse_opaque="true"
    name="example_search_editor" tab_stop="false" title="search_editor"
    width="250">
   <search_editor bottom="20" enabled="true" height="20" left="20" mouse_opaque="true"
        name="search_editor" tab_stop="true" width="200" />
</floater></xml>

Common attributes

  • General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
  • Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
  • Text: label

string

  • member of LLPanel : LLUICtrl : LLView
  • In source file llui/llpanel.cpp
  • Used by floater, panel, and multi_floater.

<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
    height="200" left="550" min_height="50" min_width="50" mouse_opaque="true"
    name="example_string" tab_stop="false" title="string" width="250">
   <string name="string">String</string>
</floater></xml>

name

word_wrap

Optional.

view_border

  • Class LLViewBorder : LLView
  • In source file llui/llviewborder.cpp
  • Used by panel.

<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
    height="80" left="550" min_height="80" min_width="250" mouse_opaque="true"
    name="example_view_border" tab_stop="false" title="view_border" width="250">
   <view_border bottom="20" enabled="true" height="20" left="20" mouse_opaque="false"
        name="view_border" width="200" bevel_style="out" />
</floater></xml>

Common attributes

  • General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
  • Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
  • Others: border

Special attributes

bevel_style

Optional.

border_thickness

Optional.

blevel_style

Optional.

web_browser

  • Class LLWebBrowserCtrl : LLUICtrl : LLView
  • In source file newview/llwebbrowserctrl.cpp
  • Used by floater, panel, and layout_panel.

<xml><?xml version="1.0" encoding="utf-8" standalone="yes" ?>

<floater bottom="400" can_close="true" can_drag_on_left="false" can_minimize="true"
    can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
    height="400" left="350" min_height="150" min_width="150" mouse_opaque="true"
    name="example_web_browser" tab_stop="false" title="web_browser" width="550">
   <web_browser bottom="20" enabled="true" height="350" left="20" mouse_opaque="false"
        name="web_browser" tab_stop="true" width="500" start_url="www.secondlife.com" follows="all" />
</floater></xml>

Common attributes

  • General: name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
  • Positioning: width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
  • Text: font, font_size, font_style

Special attributes

border_visible

Optional.

caret_color

Optional.

start_url

Optional.

embedded_items

Optional.

max_length

Optional.

word_wrap

Optional.

ignore_ui_scale

Optional.