XML Révisions de Taborea: 5 août 2026
Éléments XML actuels, types de schéma, widgets et méthodes natives de widgets disponibles pour les addons.
Les arguments de méthode facultatifs sont marqués par ?.
Éléments XML
Structure et script
<Frame><Frames><Layer><Layers><LayoutFrame><Script><Scripts><Trigger><Triggers><Ui>
Géométrie et disposition
<AbsDimension><AbsInset><AbsValue><Anchor><Anchors><BackgroundInsets><EdgeSize><HitRectInsets><maxResize><minResize><Offset><PushedTextOffset><RelDimension><RelInset><RelValue><ResizeBounds><Size><TextInsets><TileSize>
Types de widgets
<Button><CheckButton><DropDownButton><EditBox><FontString><GameTooltip><ListBox><MessageFrame><Model><RadioButton><RepeatButton><ScrollFrame><Slider><StatusBar><Texture>
Éléments imbriqués
<Backdrop><FontHeight><Menu><ScrollChild><ThumbButton><TitleRegion>
Couleurs et rendu
<BarColor><CaretColor><Color><Coords><FogColor><HighlightColor><Shadow><TexCoords>
États de texte
<DisabledHighlightText><DisabledText><HighlightText><NormalHighlightText><NormalText><PlaceholderString><PushedHighlightText><PushedText>
États de texture
<BarTexture><CheckedHighlightTexture><CheckedTexture><DisabledCheckedHighlightTexture><DisabledCheckedTexture><DisabledHighlightTexture><DisabledTexture><DisabledUnCheckedHighlightTexture><DisabledUnCheckedTexture><FocusedTexture><HighlightTexture><NormalHighlightTexture><NormalTexture><PushedHighlightTexture><PushedTexture><ThumbTexture><UnCheckedHighlightTexture><UnCheckedTexture>
Énumérations et types simples
ALPHAMODE
ADDALPHAKEYBLENDDISABLELUMINANCE
DRAWLAYER
ARTWORKARTWORKAFTERBACKGROUNDBACKGROUNDAFTERBORDERBORDERAFTERHIGHLIGHTHIGHLIGHTAFTEROVERLAYOVERLAYAFTERTOPOVERLAYTOPOVERLAYAFTER
FRAMEPOINT
BOTTOMBOTTOMLEFTBOTTOMRIGHTCENTERLEFTRIGHTTOPTOPLEFTTOPRIGHT
FRAMESTRATA
BACKGROUNDDIALOGHIGHLOWMEDIUMTOOLTIP
INSERTMODE
BOTTOMTOP
JUSTIFYHTYPE
CENTERLEFTRIGHT
JUSTIFYVTYPE
BOTTOMMIDDLETOP
ORIENTATION
HORIZONTALVERTICAL
OUTLINETYPE
NONENORMALTHICK
PIXELPERFECTTYPE
DISABLEENABLEPARENT
PLAYERMODELBONE
BODYHEAD
SLIDERMODETYPE
FLOATINT
TRIGGERTYPE
EnabledToVisibilityScrollChildRectToMinMaxValueSliderValueToVerticalScrollVerticalScrollToValueVisibilityToCollapseVisibilityToVisibility
WEIGHTTYPE
BOLDNORMALTHIN
Types simples
BytesType- Type simple XML BytesType basé sur int avec 1 restriction.ColorFloat- Type simple XML ColorFloat basé sur float avec 2 restrictions.MaxLinesType- Type simple XML MaxLinesType basé sur int avec 1 restriction.NumericFormatType- Type simple XML NumericFormatType basé sur string avec 1 restriction.TexCoordsFloat- Type simple XML TexCoordsFloat basé sur float avec 2 restrictions.
Widgets
<Layout>
API de base pour l'identité, la géométrie allouée, les ancres, la visibilité, la couleur, l'alpha, l'échelle et le style.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | dependencies |
boolean |
facultatif | false |
|
| attribut | height |
float |
facultatif | |
|
| attribut | hidden |
boolean |
facultatif | false |
|
| attribut | inherits |
string |
facultatif | |
|
| attribut | moneyType |
int |
facultatif | -1 |
|
| attribut | name |
string |
facultatif | |
|
| attribut | newSystem |
boolean |
facultatif | false |
|
| attribut | parent |
string |
facultatif | |
|
| attribut | pixelPerfect |
PIXELPERFECTTYPE |
facultatif | PARENT |
|
| attribut | scale |
float |
facultatif | 1.0 |
|
| attribut | virtual |
boolean |
facultatif | false |
|
| attribut | width |
float |
facultatif | |
|
| enfant | Anchor |
|
|
0..illimité | |
| enfant | Anchors |
|
|
0..illimité | |
| enfant | Offset |
Dimension |
|
0..illimité | |
| enfant | Size |
Dimension |
|
0..illimité | |
| enfant | Trigger |
|
|
0..illimité | |
| enfant | Triggers |
|
|
0..illimité |
Méthodes
void Layout:ChangeStyle(number StyleID)void Layout:ClearAllAnchors()number Alpha = Layout:GetAlpha()string Point, string RelativePoint, string RelativeTo, number X, number Y = Layout:GetAnchor(number Index?)number X, number Y = Layout:GetAnchorOffset(number Index?)number AnchorsCount = Layout:GetAnchorsCount()number Bottom = Layout:GetBottom()number X, number Y = Layout:GetCenter()number Red, number Green, number Blue = Layout:GetColor()number Height = Layout:GetHeight()number Left = Layout:GetLeft()number MoneyType = Layout:GetMoneyType()string Name = Layout:GetName()Layout Parent = Layout:GetParent()boolean PixelPerfect = Layout:GetPixelPerfect()number X, number Y = Layout:GetPos()number RealScale = Layout:GetRealScale()number Width, number Height = Layout:GetRealSize()number Left, number Top, number Right, number Bottom = Layout:GetRectangle()number Right = Layout:GetRight()number Scale = Layout:GetScale()Layout ScrollParent = Layout:GetScrollParent()number Width, number Height = Layout:GetSize()number Top = Layout:GetTop()integer TypeID = Layout:GetType()string TypeName = Layout:GetTypeName()integer TypeID = Layout:GetUiElementType()number Width = Layout:GetWidth()void Layout:Hide()boolean Visible = Layout:IsVisible(boolean Visible)void Layout:Moving(number X?, number Y?)void Layout:SetAlpha(number Alpha)void Layout:SetAnchor(string Point, string RelativePoint?, Layout RelativeTo?, number X?, number Y?)void Layout:SetAnchorOffset(number X, number Y)void Layout:SetColor(number Red, number Green, number Blue)void Layout:SetHeight(number Height)void Layout:SetHexColor(string ColorStr)void Layout:SetMoneyType(number MoneyType)void Layout:SetPixelPerfect(boolean PixelPerfect)void Layout:SetPos(number X, number Y)void Layout:SetScale(number Scale)void Layout:SetScrollParent(Layout ScrollParentlayout)void Layout:SetSize(number Width, number Height)void Layout:SetVisible(boolean Visible)void Layout:SetWidth(number Width)void Layout:Show()
<FontString>
API de texte rendu pour le contenu, les polices, l'alignement, le retour à la ligne, l'espacement et la taille d'affichage mesurée. Hérite de Layout.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | autoSize |
boolean |
facultatif | false |
|
| attribut | bytes |
BytesType |
facultatif | 1023 |
|
| attribut | font |
string |
facultatif | |
|
| attribut | fontHeight |
int |
facultatif | 16 |
|
| attribut | justifyH |
JUSTIFYHTYPE |
facultatif | CENTER |
|
| attribut | justifyV |
JUSTIFYVTYPE |
facultatif | MIDDLE |
|
| attribut | outline |
OUTLINETYPE |
facultatif | NONE |
|
| attribut | spacing |
float |
facultatif | 0 |
|
| attribut | text |
string |
facultatif | |
|
| attribut | weight |
WEIGHTTYPE |
facultatif | NORMAL |
|
| attribut | wrappedAutoSize |
boolean |
facultatif | false |
|
| enfant | Color |
ColorType |
|
0..illimité | |
| enfant | FontHeight |
Value |
|
0..illimité | |
| enfant | Shadow |
ShadowType |
|
0..illimité |
Méthodes
number Height = FontString:GetDisplayHeight()number Width = FontString:GetDisplayWidth()string FontName = FontString:GetFontName()string FontOutline = FontString:GetFontOutline()number FontSize = FontString:GetFontSize()string FontWeight = FontString:GetFontWeight()string JustifyHType = FontString:GetJustifyHType()string JustifyVType = FontString:GetJustifyVType()number PaintLines = FontString:GetPaintLines()number Spacing = FontString:GetSpacing()string Text = FontString:GetText()number WrappedSize = FontString:GetWrappedSize()void FontString:HideLastDot()boolean DrawDot = FontString:IsDrawDot()number RTL = FontString:IsRTL()void FontString:ResizeText()void FontString:SetBaseFontSize(integer BaseFontSize)boolean Result = FontString:SetFont(string FontFile, integer FontSize, string Weight?, string Outline?, boolean HighResolution?)void FontString:SetFontName(string FontFile)void FontString:SetFontOutline(string Outline?)void FontString:SetFontSize(integer FontSize)void FontString:SetFontWeight(string Weight?)void FontString:SetHexColor(string ColorStr)void FontString:SetHyperlinkUnderline(boolean Enabled)void FontString:SetJustifyHType(string Key)void FontString:SetJustifyVType(string Key)void FontString:SetRTL(boolean RTL)void FontString:SetScissorRect(boolean Enable, Layout RectSource)void FontString:SetSpacing(number Spacing)void FontString:SetText(string Text?)
<Texture>
API d'image pour les fichiers, les coordonnées de texture, la rotation, les masques, l'animation, les temps de recharge et les bordures extensibles. Hérite de Layout.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | alphaMode |
ALPHAMODE |
facultatif | BLEND |
|
| attribut | animationSpeed |
float |
facultatif | |
|
| attribut | file |
string |
facultatif | |
|
| attribut | sizeToTexCoords |
boolean |
facultatif | false |
|
| attribut | slice9 |
boolean |
facultatif | false |
|
| enfant | Color |
ColorType |
|
0..illimité | |
| enfant | Coords |
CoordsType |
|
0..illimité | |
| enfant | TexCoords |
TexCoordsType |
|
0..illimité |
Méthodes
void Texture:AddTexCoord()number AlphaMode = Texture:GetAlphaMode()number AnimationProgress = Texture:GetAnimationProgress()string File = Texture:GetFile()number Luminance = Texture:GetLuminance()string MaskFile = Texture:GetMaskFile()boolean ReverseState = Texture:GetReverseState()number Rotate = Texture:GetRotate()boolean Slice9 = Texture:GetSlice9()number Left, number Right, number Top, number Bottom = Texture:GetTexCoord()number TexCoordCount = Texture:GetTexCoordCount()void Texture:PlayAnimation()void Texture:Reload()void Texture:SetAlphaMode(string AlphaMode)void Texture:SetAnimation(string File, number Speed, number Disw, number Index, number Count, boolean Shrink?)void Texture:SetCooldown(number StartTime, number Duration)void Texture:SetDottedLine()void Texture:SetFile(string File?)void Texture:SetLuminance(boolean Luminance)void Texture:SetMaskFile(string MaskFile?)void Texture:SetReverseState(boolean ReverseState)void Texture:SetRotate(number Rotate?)void Texture:SetSelectTexCoord(number SelectTexCoord)void Texture:SetSlice9(boolean Slice9)void Texture:SetTexCoord(number Left, number Right, number Top, number Bottom)void Texture:SetTexture(Layout Texture)
<Frame>
API de conteneur pour les événements, les scripts, les entrées, les enfants, les couches, les strates de frame et le niveau de frame. Hérite de Layout.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | alpha |
float |
facultatif | 1.0 |
|
| attribut | autoSizeToChild |
boolean |
facultatif | false |
|
| attribut | clickIsDisabled |
boolean |
facultatif | false |
|
| attribut | disabled |
boolean |
facultatif | false |
|
| attribut | disableOffscreen |
boolean |
facultatif | false |
|
| attribut | enableKeyboard |
boolean |
facultatif | false |
|
| attribut | enableMouse |
boolean |
facultatif | false |
|
| attribut | frameLevel |
int |
facultatif | 0 |
|
| attribut | frameStrata |
FRAMESTRATA |
facultatif | MEDIUM |
|
| attribut | id |
int |
facultatif | 0 |
|
| attribut | movable |
boolean |
facultatif | false |
|
| attribut | resizable |
boolean |
facultatif | false |
|
| attribut | sendEventToParent |
boolean |
facultatif | false |
|
| attribut | toplevel |
boolean |
facultatif | false |
|
| enfant | Backdrop |
BackdropType |
|
0..illimité | |
| enfant | Frames |
FramesType |
|
0..illimité | |
| enfant | HitRectInsets |
Inset |
|
0..illimité | |
| enfant | Layers |
LayersType |
|
0..illimité | |
| enfant | ResizeBounds |
ResizeBoundsType |
|
0..illimité | |
| enfant | Scripts |
ScriptsType |
|
0..illimité | |
| enfant | TitleRegion |
LayoutFrameType |
|
0..illimité |
Méthodes
void Frame:Disable()void Frame:Enable()table Children = Frame:GetChildList(boolean TopChild?)boolean EventRequireVisible = Frame:GetEventRequireVisible(string Event)integer Level = Frame:GetFrameLevel()string FrameStrata = Frame:GetFrameStrata()number ID = Frame:GetID()integer Layers = Frame:GetLayersCount()boolean Enable = Frame:IsEnable()boolean KeyboardEnable = Frame:IsKeyboardEnable()boolean MouseEnable = Frame:IsMouseEnable()boolean MouseOver = Frame:IsMouseOver()void Frame:Locked()void Frame:RegisterEvent(string Event, boolean RequireVisible?)void Frame:RegisterForClicks()void Frame:RegisterForDrag()void Frame:ResetFrameOrder()void Frame:SetBackdrop()void Frame:SetBackdropEdgeAlpha(number BackdropEdgeAlpha?)void Frame:SetBackdropEdgeColor(number Color)void Frame:SetBackdropTileAlpha(number BackdropTileAlpha?)void Frame:SetBackdropTileColor(number Color)void Frame:SetCapture()void Frame:SetEnable(boolean Enable)void Frame:SetEventRequireVisible(string Event, boolean RequireVisible)void Frame:SetFrameLevel(integer FrameLevel)void Frame:SetFrameStrata(string Strata)void Frame:SetID(integer ID)void Frame:SetKeyboardEnable(boolean KeyboardEnable)void Frame:SetLayers(integer Layer, Layout Layout)void Frame:SetMaxBounds(number M_x, number M_y)void Frame:SetMinBounds(number M_x, number M_y)void Frame:SetMouseEnable(boolean MouseEnable)void Frame:SetParent(Layout Parent)void Frame:SetScissorRect(boolean Enable, Layout RectSource)void Frame:SetScripts(string EventScriptName, string Func)void Frame:SetScrollParent(Layout ScrollParent)void Frame:SetUpdateWhenOff(boolean UpdateWhenOff)void Frame:SizeToChild()void Frame:StartMoving()void Frame:StartSizing(string AnchorPoint)void Frame:StopMovingOrSizing()void Frame:Unlocked()void Frame:UnregisterEvent(string Event)
<Button>
API de contrôle cliquable pour les métriques d'étiquette, les styles de texte, les textures et les états visuels du bouton. Hérite de Frame.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | text |
string |
facultatif | |
|
| attribut | useAlphaCollision |
boolean |
facultatif | false |
|
| enfant | DisabledHighlightText |
FontStringType |
|
0..illimité | |
| enfant | DisabledHighlightTexture |
TextureType |
|
0..illimité | |
| enfant | DisabledText |
FontStringType |
|
0..illimité | |
| enfant | DisabledTexture |
TextureType |
|
0..illimité | |
| enfant | HighlightText |
FontStringType |
|
0..illimité | |
| enfant | HighlightTexture |
TextureType |
|
0..illimité | |
| enfant | NormalHighlightText |
FontStringType |
|
0..illimité | |
| enfant | NormalHighlightTexture |
TextureType |
|
0..illimité | |
| enfant | NormalText |
FontStringType |
|
0..illimité | |
| enfant | NormalTexture |
TextureType |
|
0..illimité | |
| enfant | PushedHighlightText |
FontStringType |
|
0..illimité | |
| enfant | PushedHighlightTexture |
TextureType |
|
0..illimité | |
| enfant | PushedText |
FontStringType |
|
0..illimité | |
| enfant | PushedTextOffset |
Dimension |
|
0..illimité | |
| enfant | PushedTexture |
TextureType |
|
0..illimité |
Méthodes
FontString DisabledText = Button:GetDisabledText()Texture DisabledTexture = Button:GetDisabledTexture()FontString HighlightText = Button:GetHighlightText()Texture HighlightTexture = Button:GetHighlightTexture()FontString NormalText = Button:GetNormalText()Texture NormalTexture = Button:GetNormalTexture()Texture PushedTexture = Button:GetPushedTexture()string Text = Button:GetText()number TextHeight = Button:GetTextHeight()number TextWidth = Button:GetTextWidth()boolean UseAlphaCollision = Button:GetUseAlphaCollision()boolean ButtonPushed = Button:IsButtonPushed(string Str)boolean LockHighlight = Button:IsLockHighlight()boolean LockPushed = Button:IsLockPushed()void Button:LockHighlight()void Button:LockNormal()void Button:LockPushed()void Button:RemoveDisabledTexture()void Button:SetDisabledTexture(Layout Texture)void Button:SetHighlightTexture(Layout Texture)void Button:SetNormalTexture(Layout Texture)void Button:SetPushedTexture(Layout Texture)void Button:SetText(string Text?)void Button:SetTextAnchor()void Button:SetTextColor(number TextColor)void Button:SetUseAlphaCollision(boolean UseAlphaCollision)void Button:UnlockHighlight()void Button:UnlockNormal()void Button:UnlockPushed()
<CheckButton>
API de bouton à bascule pour l'état coché et les textures de coche. Hérite de Button.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | autoChecked |
boolean |
facultatif | true |
|
| attribut | checked |
boolean |
facultatif | false |
|
| attribut | firstPaintCheckButton |
boolean |
facultatif | false |
|
| enfant | CheckedHighlightTexture |
TextureType |
|
0..illimité | |
| enfant | CheckedTexture |
TextureType |
|
0..illimité | |
| enfant | DisabledCheckedHighlightTexture |
TextureType |
|
0..illimité | |
| enfant | DisabledCheckedTexture |
TextureType |
|
0..illimité | |
| enfant | DisabledUnCheckedHighlightTexture |
TextureType |
|
0..illimité | |
| enfant | DisabledUnCheckedTexture |
TextureType |
|
0..illimité | |
| enfant | UnCheckedHighlightTexture |
TextureType |
|
0..illimité | |
| enfant | UnCheckedTexture |
TextureType |
|
0..illimité |
Méthodes
Texture CheckedTexture = CheckButton:GetCheckedTexture()Texture DisabledCheckTexture = CheckButton:GetDisabledCheckTexture()boolean Checked = CheckButton:IsChecked()void CheckButton:SetChecked(boolean Checked)
<RadioButton>
API de bouton mutuellement exclusif pour la configuration du groupe et du frame de recherche. Hérite de CheckButton.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | groupId |
int |
facultatif | 0 |
Méthodes
Frame ButtonSearchFrame = RadioButton:GetButtonSearchFrame()number GroupId = RadioButton:GetGroupId()void RadioButton:SetButtonSearchFrame(Layout ButtonSearchFrame)void RadioButton:SetGroupId(number GroupId)
<RepeatButton>
API de bouton à maintien pour la temporisation de répétition. Hérite de Button.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | repeatTime |
float |
facultatif | 1.0 |
Méthodes
number RepeatTime = RepeatButton:GetRepeatTime()void RepeatButton:SetRepeatTime(number RepeatTime)
<DropDownButton>
API de bascule de liste déroulante pour la temporisation d'ouverture. Hérite de CheckButton.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | openedTime |
float |
facultatif | 3.0 |
|
| enfant | Menu |
FrameType |
|
0..illimité |
Méthodes
number OpenedTime = DropDownButton:GetOpenedTime()void DropDownButton:SetOpenedTime(number OpenedTime)
<EditBox>
API de saisie de texte pour le contenu, le focus, le curseur, la sélection, l'historique, les limites numériques, le texte multiligne et RTL. Hérite de Frame.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | autoFocus |
boolean |
facultatif | true |
|
| attribut | historyLines |
int |
facultatif | 0 |
|
| attribut | letters |
int |
facultatif | 255 |
|
| attribut | multiLine |
boolean |
facultatif | false |
|
| attribut | numeric |
boolean |
facultatif | false |
|
| attribut | numericFormat |
NumericFormatType |
facultatif | |
|
| attribut | numericMax |
double |
facultatif | |
|
| attribut | numericMin |
double |
facultatif | |
|
| attribut | password |
boolean |
facultatif | false |
|
| attribut | placeholderText |
string |
facultatif | |
|
| enfant | CaretColor |
ColorType |
|
0..illimité | |
| enfant | FocusedTexture |
TextureType |
|
0..illimité | |
| enfant | FontString |
FontStringType |
|
0..illimité | |
| enfant | HighlightColor |
ColorType |
|
0..illimité | |
| enfant | NormalTexture |
TextureType |
|
0..illimité | |
| enfant | PlaceholderString |
FontStringType |
|
0..illimité | |
| enfant | TextInsets |
Inset |
|
0..illimité |
Méthodes
void EditBox:AddHistoryLine(string Text)void EditBox:ClearFocus()number Red, number Green, number Blue = EditBox:GetCaretColor()boolean CheckNumericLimit = EditBox:GetCheckNumericLimit()number EmojiCount = EditBox:GetEmojiCount()number EmojiCountMax = EditBox:GetEmojiCountMax()number LettersLimit = EditBox:GetLettersLimit()number MultiFirstLine = EditBox:GetMultiFirstLine()number MultiMaxLines = EditBox:GetMultiMaxLines()number MultiRangeLines = EditBox:GetMultiRangeLines()number Number = EditBox:GetNumber()boolean Numeric = EditBox:GetNumeric()number NumericClampDelaySeconds = EditBox:GetNumericClampDelaySeconds()string NumericFormat = EditBox:GetNumericFormat()number NumericMax = EditBox:GetNumericMax()number NumericMin = EditBox:GetNumericMin()number PlaceCaret = EditBox:GetPlaceCaret()string Text = EditBox:GetText()void EditBox:HighlightText(integer Start, integer End)void EditBox:InsertChar(string Character?)void EditBox:InsertText(string Text?)void EditBox:SetCaretAtEnd()void EditBox:SetCaretAtStart()void EditBox:SetCaretColor(number CaretColor)void EditBox:SetCheckNumericLimit(boolean CheckNumericLimit)void EditBox:SetFocus()void EditBox:SetKeyboardInputEnable(boolean KeyboardInputEnable)void EditBox:SetLettersLimit(integer LettersLimit)void EditBox:SetMaxMultiline(integer MaxMultiline)void EditBox:SetMultiFirstLine(integer MultiFirstLine)void EditBox:SetNumber(string Ws?)void EditBox:SetNumeric(boolean Numeric)void EditBox:SetNumericClampDelaySeconds(number NumericClampDelaySeconds)void EditBox:SetNumericFormat(string Ws?)void EditBox:SetNumericMax(number NumericMax)void EditBox:SetNumericMin(number NumericMin)void EditBox:SetPasswordMode(boolean PasswordMode)void EditBox:SetPlaceCaret(number PlaceCaret)void EditBox:SetRTL(boolean RTL)void EditBox:SetText(string Text?)void EditBox:SetTextColor(number TextColor)void EditBox:SetTextInset()
<ListBox>
API de liste pour les éléments, la sélection, les lignes cochées, la position de la fenêtre d'affichage et le dimensionnement des lignes. Hérite de Frame.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | fadeDuration |
float |
facultatif | 3.0 |
|
| attribut | insertMode |
INSERTMODE |
facultatif | BOTTOM |
|
| enfant | FontString |
|
|
0..illimité | |
| enfant | TextInsets |
Inset |
|
0..illimité |
Méthodes
void ListBox:Clear()number CurrentItem = ListBox:GetCurrentItem()number ItemHeight = ListBox:GetItemHeight()number ItemSize = ListBox:GetItemSize()number TopItem = ListBox:GetTopItem()void ListBox:InsertItem(string Text, number Pos?)boolean ItemChecked = ListBox:IsItemChecked(integer ItemChecked)void ListBox:RemoveItem(integer Index)void ListBox:SetItemChecked(integer Index, boolean Checked)void ListBox:SetItemHeight(number ItemHeight)void ListBox:SetTopItem(integer TopItem)
<MessageFrame>
API de discussion et de journal pour les messages, les nombres de lignes, le défilement, l'estompage, la durée et les paramètres de police internes. Hérite de Frame.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | autoResize |
boolean |
facultatif | false |
|
| attribut | bytes |
BytesType |
facultatif | 1023 |
|
| attribut | displayDuration |
float |
facultatif | 10.0 |
|
| attribut | fade |
boolean |
facultatif | true |
|
| attribut | fadeDuration |
float |
facultatif | 3.0 |
|
| attribut | maxLines |
MaxLinesType |
facultatif | 10 |
|
| enfant | FontString |
|
|
0..illimité | |
| enfant | TextInsets |
Inset |
|
0..illimité |
Méthodes
void MessageFrame:AddMessage(string Text?, number Color?)void MessageFrame:ClearText()void MessageFrame:EnableHyperlink(boolean Hyperlink)boolean AutoResize = MessageFrame:GetAutoResize()number DisplayDuration = MessageFrame:GetDisplayDuration()number FadeDuration = MessageFrame:GetFadeDuration()FontString Font = MessageFrame:GetFontString()number LastLine = MessageFrame:GetLastLine()number LineBytes = MessageFrame:GetLineBytes()integer Lines = MessageFrame:GetLines()number MaxLines = MessageFrame:GetMaxLines()number PageLines = MessageFrame:GetPageLines()number Position = MessageFrame:GetPosition()void MessageFrame:ResetTime()void MessageFrame:ScrollBottom()void MessageFrame:ScrollDown()void MessageFrame:ScrollTop()void MessageFrame:ScrollUp()void MessageFrame:SetAutoResize(boolean AutoResize)void MessageFrame:SetDisplayDuration(number DisplayDuration)void MessageFrame:SetFadeDuration(number FadeDuration)void MessageFrame:SetFontSize(integer FontSize)void MessageFrame:SetLastLine(integer LastLine)void MessageFrame:SetLineBytes(integer LineBytes)void MessageFrame:SetMaxLines(integer MaxLines)void MessageFrame:SetPosition(integer Position)
<Model>
API de modèle 3D pour les modèles, les poupées de papier, les matériaux, les composants, la caméra, les os, les teintures et le mouvement. Hérite de Frame.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | file |
string |
facultatif | |
|
| attribut | fogFar |
float |
facultatif | 1.0 |
|
| attribut | fogNear |
float |
facultatif | 0.0 |
|
| attribut | maskFile |
string |
facultatif | |
|
| attribut | targetBone |
PLAYERMODELBONE |
facultatif | HEAD |
|
| enfant | FogColor |
ColorType |
|
0..1 |
Méthodes
void Model:Build()boolean CanDye, boolean Slot1, boolean Slot2, boolean Slot3, boolean Slot4 = Model:CanDyeFXColors(integer CanDyeFXColors?)void Model:CardModelDiffuse(boolean Obtained)number Scale|boolean False = Model:GetBoneScale(number BoneIndex)number MaterialCount = Model:GetMaterialCount()number Color1|boolean False, number Color2? = Model:GetPaperdollColor(number PartIndex)string Part|boolean False = Model:GetPaperdollPart(number PartIndex)boolean Model = Model:HasModel()void Model:InserLinkFrame(string PName, number X, number Y, number Z)boolean Paperdoll = Model:IsPaperdoll()void Model:PlayMotion(string PMotion)void Model:ReleaseModel()void Model:SetAlignmentFrames(string SourceFrame, string TargetFrame, number X, number Y)void Model:SetBoneScale(number BoneIndex, number BoneScale)void Model:SetCameraPosition(number M_x, number M_y, number M_z)void Model:SetComponent(string PPartName, string PComponentName)void Model:SetComponentColors(string PPartName, number R, number G, number B, number R, number G, number B)void Model:SetDefaultTexture(Layout DefaultTexture)void Model:SetDummyFemale()void Model:SetDummyMale()void Model:SetDyeFXColors(integer Color1, integer Color2, integer Color3, integer Color4)void Model:SetEntity(string ACTWorld)void Model:SetGuildHouseBuilding(integer Id)boolean Result = Model:SetHanger(number ItemDBID, boolean BFitting)string Result = Model:SetItemLink(string PItemLink)void Model:SetMaskFile(string MaskFile)void Model:SetModel(number ItemID)void Model:SetModelOffset(number M_x?, number M_y?, number M_z?)void Model:SetPaperdollColor(number PartIndex, number PartColor1, number PartColor2)void Model:SetPaperdollPart(number PartIndex, string PartName)void Model:SetPet(integer Index)void Model:SetPlayerModel(string FriendName)void Model:SetServant(number Index)void Model:SetServantHire(integer Index)void Model:SetTargetBone(string TargetBone)void Model:SetTargetRotate(number TargetRotate)void Model:SetUnit(string Sprite, boolean ShowWeapon, boolean ShowChangeShape)void Model:TakeOffAll()void Model:TakeOffWeapon()
<ScrollFrame>
API de conteneur de défilement pour les décalages, les plages, le mouvement cible, la vitesse, la fluidité et les limites de l'enfant. Hérite de Frame.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | scrollSpeed |
float |
facultatif | 5.0 |
|
| enfant | ScrollChild |
ScrollChildType |
|
0..1 |
Méthodes
number HorizontalScroll = ScrollFrame:GetHorizontalScroll()number Horizontal, number Vertical = ScrollFrame:GetScrollRange()number ScrollSmoothness = ScrollFrame:GetScrollSmoothness()number ScrollSpeed = ScrollFrame:GetScrollSpeed()number Horizontal, number Vertical = ScrollFrame:GetTargetScrollOffset()number VerticalScroll = ScrollFrame:GetVerticalScroll()void ScrollFrame:ResetScrollPosition()void ScrollFrame:SetHorizontalScroll(number HorizontalScroll)void ScrollFrame:SetScrollRange(number Horizontal, number Vertical)void ScrollFrame:SetScrollSmoothness(number ScrollSmoothness)void ScrollFrame:SetScrollSpeed(number ScrollSpeed)void ScrollFrame:SetTargetScrollOffset(number Horizontal, number Vertical)void ScrollFrame:SetVerticalScroll(number VerticalScroll)void ScrollFrame:UpdateScrollChildRect()
<Slider>
API de curseur pour la valeur actuelle, la plage, le pas et les incréments. Hérite de Frame.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | defaultValue |
float |
facultatif | 0.0 |
|
| attribut | incrementValue |
float |
facultatif | 0.0 |
|
| attribut | largeStep |
float |
facultatif | 0.0 |
|
| attribut | maxValue |
float |
facultatif | 0.0 |
|
| attribut | minValue |
float |
facultatif | 0.0 |
|
| attribut | orientation |
ORIENTATION |
facultatif | VERTICAL |
|
| attribut | smallStep |
float |
facultatif | 0.0 |
|
| attribut | stepMode |
SLIDERMODETYPE |
facultatif | FLOAT |
|
| enfant | ThumbButton |
ButtonType |
|
0..illimité | |
| enfant | ThumbTexture |
TextureType |
|
0..illimité |
Méthodes
void Slider:DecrementValue()number IncrementValue = Slider:GetIncrementValue()number MaxValue = Slider:GetMaxValue()number Minimum, number Maximum = Slider:GetMinMaxValues()number MinValue = Slider:GetMinValue()number Value = Slider:GetValue()string ValueStepMode = Slider:GetValueStepMode()void Slider:IncrementValue()void Slider:SetIncrementValue(number IncrementValue)void Slider:SetMaxValue(number MaxValue)void Slider:SetMinMaxValues(number Minimum, number Maximum)void Slider:SetMinValue(number Minimum, boolean SendEvent?)void Slider:SetValue(number Value, boolean SendEvent?)void Slider:SetValueStepMode(string Mode)
<StatusBar>
API de barre de progression pour la valeur actuelle, la plage et la couleur de remplissage. Hérite de Frame.
Champs XML
| Type | Nom | Type | Exigence | Défaut | Occurrence |
|---|---|---|---|---|---|
| attribut | defaultValue |
float |
facultatif | |
|
| attribut | maxValue |
float |
facultatif | |
|
| attribut | minValue |
float |
facultatif | |
|
| attribut | reverse |
boolean |
facultatif | false |
|
| enfant | BarColor |
ColorType |
|
0..illimité | |
| enfant | BarTexture |
TextureType |
|
0..illimité |
Méthodes
number Red, number Green, number Blue, number Alpha = StatusBar:GetBarColor()number MaxValue = StatusBar:GetMaxValue()number MinValue = StatusBar:GetMinValue()number Value = StatusBar:GetValue()void StatusBar:SetBarColor(number Color)void StatusBar:SetMaxValue(number MaxValue)void StatusBar:SetMinValue(number MinValue)void StatusBar:SetValue(number Value)
<Tooltip>
API d'infobulle pour la propriété, la construction de lignes, le texte et les sources de détails d'objets de jeu. Hérite de Frame.
Méthodes
void Tooltip:AddCustomTooltipLine(string Str?)void Tooltip:AddDoubleEqualLine(string TextL?, string TextR?, number RL?, number GL?, number BL?, number RR?, number GR?, number BR?, number AnchorType?, number AlignL?, number AlignR?, boolean Warp?)void Tooltip:AddDoubleIconLine(string TextL?, string TextR?, number RL?, number GL?, number BL?, number RR?, number GR?, number BR?, number IconLeftRow?, number IconRightRow?, boolean ShowR?, boolean Warp?, boolean IsNarrow?)void Tooltip:AddDoubleLine(string TextL?, string TextR?, number RL?, number GL?, number BL?, number RR?, number GR?, number BR?)void Tooltip:AddIconLine(string Text?, number R?, number G?, number B?, number IconRow?, boolean Warp?)void Tooltip:AddLine(string Text?, number R?, number G?, number B?, boolean Warp?, number MinWidthType?, number Align?)void Tooltip:AddSeparator()void Tooltip:AddStatusBar(number StartValue?, number EndValue?, number R?, number G?, number B?, number A?, string BarText?)void Tooltip:ClearLines()boolean Owned = Tooltip:IsOwned(Layout Owner)void Tooltip:SetAbility(integer DBID)void Tooltip:SetAccountBagItem(integer Info)void Tooltip:SetActionItem(integer Index)void Tooltip:SetAssignItem(integer AssignItem)void Tooltip:SetATFTitleItem(integer Idx)void Tooltip:SetATFTitleTipItem(integer Idx, integer Type, integer Rare)void Tooltip:SetATFUseItem(integer Idx)void Tooltip:SetAuctionBidItem(integer Index)void Tooltip:SetAuctionBrowseItem(integer Index)void Tooltip:SetAuctionItem()void Tooltip:SetAuctionSellItem(integer Index)void Tooltip:SetBagItem(integer Index)void Tooltip:SetBankItem(integer Index)void Tooltip:SetBootyItem(integer Item)void Tooltip:SetCardItem(integer Index)void Tooltip:SetCoolCloth(string Link?)void Tooltip:SetCraftItem(integer IRecpiteGUID, integer IButtonID)void Tooltip:SetCraftItemRuneHole(integer IRecpiteGUID)void Tooltip:SetCraftQueueRequestItem(integer IItemGUID)void Tooltip:SetCraftRequestItem(integer IRecpiteGUID, integer ICraftRequestItemIndex)void Tooltip:SetEquipmentItem(integer Index)void Tooltip:SetExtraActionItem(integer Item)void Tooltip:SetFusionStone(integer Ability1, integer Ability2, integer Ability3)void Tooltip:SetGameBarItem(integer Index)void Tooltip:SetHistoryItem(integer Info)void Tooltip:SetHouseItem(number ContainerID?, number Index?)void Tooltip:SetHyperLink(string Link?, boolean ForceHideCompareTooltip?)void Tooltip:SetImplementActionItem(integer Index)void Tooltip:SetInboxItem(integer Index, number ItemPos?)void Tooltip:SetInventoryItem(string Unit?, number Index?)void Tooltip:SetItemDB(integer OrgObjID)void Tooltip:SetItemMall(integer Guid)void Tooltip:SetLootItem(integer Serial)void Tooltip:SetMagicBaseDB(integer OrgObjID)void Tooltip:SetMagicCollectDB(integer OrgObjID, number G_GameTooltip_SkillPoint?, boolean CurrentLevel?, boolean NextLevel?, boolean MaxLevel?)void Tooltip:SetMerchantItem(integer Index)void Tooltip:SetOwner(Layout Relative, string Str, number X, number Y)void Tooltip:SetPartnerItem(integer Index)void Tooltip:SetPet(string Link?)void Tooltip:SetPetActionItem(integer PetItem)void Tooltip:SetPetEquipmentItem(integer Index, string Position)void Tooltip:SetPetFeedFoodItem()void Tooltip:SetPetFeedFoodItemTmp(integer Index)void Tooltip:SetPetProductItem(integer Index, number Position?, number ItemIndex?)void Tooltip:SetPetSkillItem(integer Index, integer Position)void Tooltip:SetPetTalentSkillItem(integer PetIndex, integer SkillIndex)void Tooltip:SetPhantom(string Link?, boolean G_GameTooltip_IsPhantomSkill?)void Tooltip:SetQuestItem(integer Type, integer ID)void Tooltip:SetRecipeStoreItem(integer Index)void Tooltip:SetRTL(boolean RTL)void Tooltip:SetRuneExChangeItem(integer Index)void Tooltip:SetSendMailItem(number Index?)void Tooltip:SetServant(string Link?)void Tooltip:SetShoppingCartItem(integer Index)void Tooltip:SetSkillItem(integer SkillType, integer SkillID, number G_GameTooltip_SkillPoint?, boolean CurrentLevel?, boolean NextLevel?, boolean MaxLevel?)void Tooltip:SetSkillItem_LevelUp(integer SkillType, integer SkillID, integer SkillPoint, boolean CurrentLevel?, boolean NextLevel?, boolean MaxLevel?)void Tooltip:SetStoreItem(string State, integer Index)void Tooltip:SetSuitSkillEquipmentItem(integer Index)void Tooltip:SetSuitSkillListItem(integer Index)void Tooltip:SetSuitSkillPlateItem(integer Index)void Tooltip:SetSuitSkillSkillItem(integer Index)void Tooltip:SetText(string Text?, number Red?, number Green?, number Blue?, boolean Wrap, number Align?, number MinWidthType?)void Tooltip:SetTextWithHeader(string Text?, number R?, number G?, number B?, boolean Warp, number MinWidthType?)void Tooltip:SetTitle(integer NTitleID)void Tooltip:SetTradePlayerItem(integer Index)void Tooltip:SetTradeTargetItem(integer Index)void Tooltip:SetUnitBuff(string Unit, integer Index)void Tooltip:SetUnitDebuff(string Unit, integer Index)void Tooltip:SetWorldMapNPC(integer OrgObjID, number X?, number Z?, string Name?, number ZoneID?)void Tooltip:SetZone(string Link?)