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

From Second Life Wiki
Jump to navigation Jump to search
(Split the page into pieces.)
Line 14: Line 14:
*In source file llui/lliconctrl.cpp
*In source file llui/lliconctrl.cpp
*Used by floater, panel, layout_stack, layout_panel, multi_floater, and widgetset.
*Used by floater, panel, layout_stack, layout_panel, multi_floater, and widgetset.
====Common parameters====
*'''[[Skinning HowTo/Common XUI XML parameters#Used by all XUI elements|General]]:'''  name, mouse_opaque, tool_tip, control_name, enabled, visible, use_bounding_rect, default_tab_group
*'''[[Skinning HowTo/Common XUI XML parameters#Positioning|Positioning]]:'''  width, height, left, right, left_delta, bottom, top, bottom_delta, follows, rect_control
*'''[[Skinning HowTo/Common XUI XML parameters#Text|Text]]:'''  label
*'''Others:''' [[Skinning HowTo/Common XUI XML parameters#border|border]]
====Specific parameters====


===== image_name =====
===== image_name =====
Line 19: Line 27:


String: <code>image_name="myicon.png"</code>
String: <code>image_name="myicon.png"</code>
===== bottom =====
 
''Optional.''
===== bottom_delta =====
''Optional.''
===== top =====
''Optional.''
===== left =====
''Optional.''
===== left_delta =====
''Optional.''
===== right =====
''Optional.''
===== follows =====
''Optional.''
===== name =====
''Optional.''
===== color =====
===== color =====
''Optional.''
''Optional.''
===== enabled =====
 
''Optional.''
===== height =====
''Optional.''
===== width =====
''Optional.''
===== mouse_opaque =====
''Optional.''
===== bg_alpha_color =====
===== bg_alpha_color =====
''Optional.''
===== border =====
''Optional.''
''Optional.''
===== scale_image =====
===== scale_image =====
''Optional.''
''Optional.''
===== auto_resize =====
===== auto_resize =====
''Optional.''
===== visible =====
''Optional.''
===== label =====
''Optional.''
===== tool_tip =====
''Optional.''
''Optional.''



Revision as of 15:33, 13 September 2009

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. You can find attributes for the other XUI elements at:

and you can find more general information at Skinning HowTo/Basics

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 XML parameters.

icon parameters


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

Common parameters

  • 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

Specific parameters

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 parameters


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

Optional.

bottom_delta

Optional.

left

Optional.

left_delta

Optional.

follows
height
width
mouse_opaque
name
sort_order
label

Optional.

enabled

Optional.

locate and pad parameters


These are two tags that mean the same thing.

  • Class LLUICtrlLocate : LLUICtrl : LLView
  • In source file llui/lluictrlfactory.cpp
  • Used by floater and panel.
bottom_delta
height
left_delta
name
width

progress_bar parameters


  • Class LLProgressBar : LLView
  • In source file llui/llprogressbar.cpp
  • Used by layout_panel.
name
color
height
bottom
left
right
follows

search_editor parameters


  • Class LLSearchEditor : LLUICtrl : LLView
  • In source file llui/lllineeditor.cpp
  • Used by floater.
bottom
left
follows
height
width
label

Optional.

mouse_opaque
name
enabled

Optional.

string parameters


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

Optional.

view_border parameters


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

Optional.

border_thickness

Optional.

bottom_delta

Optional.

bottom

Optional.

left_delta

Optional.

left

Optional.

right

Optional.

follows
height
width
mouse_opaque

Optional.

name

Optional.

blevel_style

Optional.

border

Optional.

web_browser parameters


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

Optional.

left
right

Optional.

follows
font

Optional.

name
border_visible

Optional.

width

Optional.

height

Optional.

caret_color

Optional.

start_url

Optional.

embedded_items

Optional.

max_length

Optional.

mouse_opaque

Optional.

word_wrap

Optional.

ignore_ui_scale

Optional.