User:Jacek Antonelli/UI Classes

From Second Life Wiki
Jump to navigation Jump to search

Partial list. Will clean this up and post it somewhere later. Jacek Antonelli 17 January 2008

LLView

Name Description Data Type Note
rect_control String
left Location of left edge Integer
left_delta Integer
bottom Location of bottom edge Integer
bottom_delta Integer
right Location of right edge Integer
top Location of top edge Integer
width Element width Integer
height Element height Integer
follows Which edges resize along with the parent element String A pipe-separated list of one or more: all, bottom, left, right, top
control_name String
tool_tip String
enabled Bool
visible Bool
hidden Bool
default_tab_group Integer
font Text font family String
halign Text horizontal alignment String One of: left, right, center
valign Text vertical alignment String One of: left, right, center
style Text style String One of: normal, bold, italic, underline
tab_stop Bool

LLUICtrl

<button> (LLButton)

Name Description Data Type Note
name Used to refer to element from C++ String
label Label text String
label_selected Label text while selected String
image_unselected String Can be name of file (e.g. foo.tga) or control
image_selected String ibid.
image_hover_selected String ibid.
image_disabled_selected String ibid.
image_disabled String ibid.
image_overlay String ibid.
image_overlay_alignment String One of: left, right, center (?)
border_width Integer
border_height Integer
halign Label text horiz. alignment String One of: left, right, center
scale_image Stretch image to fit size Bool
help_url String

<check_box> (LLCheckBoxCtrl)

Name Description Data Type Note
name Used to refer to element from C++ String
label Label text String
radio_style Use radio-style (round) buttons Bool
initial_value Checked or unchecked initially Bool
text_enabled_color Color
text_disabled_color Color

<combo_box> (LLComboBox)

Name Description Data Type Note
name Used to refer to element from C++ String
label Label text String
allow_text_entry Allow typing in new values Bool
max_chars Maximum characters allowed Integer
<combo_item>
Name Description Data Type Note
value Value of the item String
enabled Item can be selected Bool

<line_editor> (LLLineEditor)

Name Description Data Type Note
name Used to refer to element from C++ String
max_length Maximum characters allowed Integer
bevel_style String One of: none, in, out, bright
border_style String One of: line, texture
border_thickness Integer
cursor_color Color
text_color Color
text_readonly_color Color
text_tentative_color Color
bg_readonly_color Color
bg_writeable_color Color
bg_focus_color Color
select_on_focus Bool
select_on_focus_received Bool
handle_edit_keys_directly Bool
commit_on_focus_lost Bool
prevalidate Prevalidate input as a certain type String One of:
  • ascii
  • float
  • int
  • positive_s32
  • non_negative_s32
  • alpha_num
  • alpha_num_space
  • printable_not_pipe
  • printable_no_space

<panel> (LLPanel)

Name Description Data Type Note
name Used to refer to element from C++ String
label Label text String
background_visible Bool
background_opaque Bool
bg_opaque_color Color
bg_alpha_color Color
border Element has a border Bool
border_style String One of: line, texture
border_thickness Integer
filename String
orientation String One of: vertical, horizontal
rect_control String
<floater> (LLFloater)
<radio_group> LLRadioGroup

<text> (LLTextBox)

<text_editor> (LLTextEditor)