Controls

From ESOUI Wiki

(Difference between revisions)
Jump to: navigation, search
(100018)
(ButtonControl)
Line 578: Line 578:
* SetShowingHighlight('''boolean''' ''showingHighlight'')
* SetShowingHighlight('''boolean''' ''showingHighlight'')
-
* SetState('''number''' ''newState'', '''boolean''' ''locked'')
+
* SetState('''[[ButtonState]]''' ''newState'', '''boolean''' ''locked'')
* SetText('''string''' ''text'')
* SetText('''string''' ''text'')
Line 587: Line 587:
* SetVerticalAlignment('''number''' ''verticalAlign'')
* SetVerticalAlignment('''number''' ''verticalAlign'')
-
 
===ColorSelectControl===
===ColorSelectControl===

Revision as of 11:56, 24 February 2017

Page up-to-date to API Version 100018




Contents

Introduction

This is the list of the different functions (methods) of the UI Objects of Elder Scrolls Online. Objects can be defined throught XML or in Lua


Objects creation throught XML :

<!-- Basic -->
<Label name="objectName" />
 
<!-- With few elements -->
<Label name="Name" font="ZoFontGame" verticalAlignment="CENTER">
	<Dimensions x="350" y="48" />
	<Anchor point="TOPLEFT" relativeTo="$(parent)" />
</Label>


Objects creation throught Lua:

-- Will create a new control without any parent.
CreateControl("ControlName", CT_LABEL ) -- See http://wiki.esoui.com/Globals#ControlType


Then, you can call any of the methods listed under :

For our LabelControl :

objectName:SetText("Something") -- Object defined in the XML snippet.
Name:SetColor(1, 1, 1) -- Object defined in the XML snippet.
local text = ControlName:GetText() -- Object defined in the Lua snippet.


Objects Types and their methods

AddOnManager


AnimationManager


AnimationObject

Objects that inherit behavior from AnimationObject


AnimationObject3DRotate


AnimationObject3DTranslate


AnimationObjectAlpha


AnimationObjectColor


AnimationObjectCustom


AnimationObjectScale


AnimationObjectScroll


AnimationObjectSize


AnimationObjectTexture


AnimationObjectTextureRotate


AnimationObjectTextureSlide


AnimationObjectTranslate


AnimationTimeline


BackdropControl


ButtonControl

ColorSelectControl


CompassDisplayControl


Control

Objects that inherit behavior from Control


CooldownControl


DebugTextControl


EditControl


FontObject


LabelControl


LineControl


MapDisplayControl


RootWindow

ScrollControl


SliderControl


StatusBarControl


TextBufferControl


TextureCompositeControl


TextureControl


TooltipControl


TopLevelWindow


WindowManager

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox