Skinning HowTo/XUI Text

From Second Life Wiki
< Skinning HowTo
Revision as of 11:21, 20 June 2009 by Fiddler Jones (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Alerts

alerts


Fonts

fonts


Can contain font and font_size.

font_size parameters


Used by fonts.

name
comment
size

font parameters


Used by fonts. Can contain file and os.

name
comment
font_style

Optional.

os parameters


Used by font. Can contain file.

name

file


Used by font and os.



Mimetypes

mimetypes parameters


name

defaultlabel


Used by mimetypes.

defaultwidget


Used by mimetypes.

defaultimpl


Used by mimetypes.

scheme parameters


Used by mimetypes. Can contain label and widgettype.

name

widgetset parameters


Used by mimetypes. Can contain allow_looping, allow_resize, default_type, icon, label, playtip, and tooltip.

name

mimetype parameters


Used by mimetypes. Can contain impl, label, and widgettype.

name
menu

Optional.

impl


Used by mimetype.

widgettype


Used by scheme and mimetype.

label parameters


Used by widgetset, scheme, mimetype.

name

allow_resize


Used by widgetset.

allow_looping


Used by widgetset.

default_type


Used by widgetset.

playtip parameters


Used by widgetset.

name

tooltip parameters


Used by widgetset.

name

icon parameters


Used by floater, panel, layout_stack, layout_panel, multi_floater, and widgetset.

image_name

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

String: image_name="myicon.png"

bottom

Optional.

bottom_delta

Optional.

top

Optional.

left

Optional.

left_delta

Optional.

right

Optional.

follows

Optional.

name

Optional.

color

Optional.

enabled

Optional.

height

Optional.

width

Optional.

mouse_opaque

Optional.

bg_alpha_color

Optional.

border

Optional.

scale_image

Optional.

auto_resize

Optional.

visible

Optional.

label

Optional.

tool_tip

Optional.



Notifications

notifications


Can contain global, notification, and template.


global parameters


Used by notifications.

name

template parameters


Used by notifications. Can contain form.

name

notification parameters


Used by notifications. Can contain form, unique, url, and usetemplate.

functor

Optional.

icon
name
label

Optional.

type
priority

Optional.

sound

Optional.

duration

Optional.

form parameters


Used by template and notification. Can contain button, ignore, and input.

name

Optional.

ignore parameters


Used by form.

text
name

Optional.

save_option

Optional.

input parameters


Used by form.

name
type

button parameters


Used by floater, panel, layout_stack, layout_panel, and form.

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 true where the button size is not equal to 32x128.

Boolean: scale_image="true"

label

Optional. Label is the text on the button's face. Without a specified label (and no image_overlay declared), your button will be labeled "Button". String: label="Click Me!"

label_selected

Optional. Label is the text on the button's face when pressed into an 'on' state. Your button will inherit the label if you omit this property. String: label_selected="I've been clicked."

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: font_style="bold|underline|drop_shadow_soft"

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 ..\skins\textures directory within the Second Life application folder (on a Mac, this is inside the package at Contents/MacOS/Resources/skins/textures). Art must also be named in textures.xml with an assigned UUID. By default, the button art is stretched to fit the specified button size.

String: image_unselected="btn_square_32x128.tga"

image_selected

Optional. Overrides the default button art for the selected/down button state. Art must be located in the ..\skins\[SKIN]\textures directory within the Second Life application folder (on a Mac, this is inside the package at Contents/MacOS/Resources/skins/textures). By default, the button art is stretched to fit the specified button size.

String: image_selected="btn_square-down_32x128.tga"

image_hover_selected

Optional. Overrides the default button art for the selected/down and mouseover/hover button state. Art must be located in the ..\skins\textures directory within the Second Life application folder (on a Mac, this is inside the package at Contents/MacOS/Resources/skins/[SKIN]/textures). Art must also be named in textures.xml with an assigned UUID. By default, the button art is stretched to fit the specified button size.

String: image_unselected="btn_square-down-hover_32x128.tga"

image_hover_unselected

Optional. Overrides the default button art for the unselected/up and mouseover/hover button state. Art must be located in the ..\skins\[SKIN]\textures directory within the Second Life application folder (on a Mac, this is inside the package at Contents/MacOS/Resources/skins/[SKIN]/textures). Art must also be named in textures.xml with an assigned UUID. By default, the button art is stretched to fit the specified button size.

String: image_unselected="btn_square-up-hover_32x128.tga"

image_disabled

Optional. Overrides the default button art for the disabled button state. Art must be located in the ..\skins\textures directory within the Second Life application folder (on a Mac, this is inside the package at Contents/MacOS/Resources/skins/[SKIN]/textures). Art must also be named in textures.xml with an assigned UUID. By default, the button art is stretched to fit the specified button size.

String: image_unselected="btn_square-disabled_32x128.tga"

image_disabled_selected

Optional. Overrides the default button art for the disabled and selected/down button state. Art must be located in the ..\skins\[SKIN]\textures directory within the Second Life application folder (on a Mac, this is inside the package at Contents/MacOS/Resources/skins/textures). Art must also be named in textures.xml with an assigned UUID. By default, the button art is stretched to fit the specified button size.

String: image_unselected="btn_square-down-disabled_32x128.tga"

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 ..\skins\[SKIN]\textures directory within the Second Life application folder (on a Mac, this is inside the package at Contents/MacOS/Resources/skins/[SKIN]/textures). Art must also be named in textures.xml with an assigned UUID. See image_overlay_alignment for alignment options.

String: image_overlay="icn_media-play_16.tga"

image_overlay_alignment

Optional. Sets the alignment of the image_overlay 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: image_overlay_alignment="left"

toggle

Optional. Determines whether the button is a toggle button or not. The Fly/Stop Flying button is a toggle button, for example.

Boolean: toggle="false"

bottom

Optional.

bottom_delta

Optional.

left

Optional.

left_delta

Optional.

right

Optional.

enabled

Optional.

follows

Optional.

height

Optional.

width

Optional.

mouse_opaque

Optional.

name
tool_tip

Optional.

visible

Optional.

tab_group

Optional.

pad_right

Optional.

hidden

Optional.

tab_stop

Optional.

help_url

Optional.

sound_flags

Optional.

auto_resize

Optional.

user_resize

Optional.

valign

Optional.

default

Optional.

index

Optional.

text

Optional.

ignore

Optional.

control_name

Optional.

label_width

Optional.

image

Optional.

url parameters


Used by notification.

option
name

usetemplate parameters


Used by notification.

name
yestext
notext

Optional.

canceltext

Optional.

ignoretext

Optional.

unique


Used by notification.

context parameters


Used by unique.

key


Role Actions

role_actions


Can contain action_set.

action_set parameters


Used by role_actions. Can contain action.

description
name

action parameters


Used by action_set.

description
longdescription
name
value


Strings

strings


Can contain string.

string parameters


Used by floater, panel, multi_floater, and strings.

name
word_wrap

Optional.



Teleport Messages

teleport_messages


Can contain message_set.

message_set parameters


Used by teleport_messages. Can contain message.

name

message parameters


Used by message_set.

name


XUI Version

xui_version