Controls

From ESOUI Wiki

(Difference between revisions)
Jump to: navigation, search
(100019)
(Introduction)
Line 12: Line 12:
'''Objects''' can be defined throught '''XML''' or in '''Lua'''
'''Objects''' can be defined throught '''XML''' or in '''Lua'''
 +
===Object creation===
 +
====XML====
-
Objects creation throught XML :
+
<source lang="xml">
-
 
+
-
<source lang="lua">
+
<!-- Basic -->
<!-- Basic -->
<Label name="objectName" />
<Label name="objectName" />
 +
<!-- With few elements -->
<!-- With few elements -->
Line 27: Line 28:
</source>
</source>
-
 
+
====LUA====
-
Objects creation throught Lua:
+
-
 
+
<source lang="lua">
<source lang="lua">
-- Will create a new control without any parent.
-- Will create a new control without any parent.
Line 46: Line 45:
local text = ControlName:GetText() -- Object defined in the Lua snippet.
local text = ControlName:GetText() -- Object defined in the Lua snippet.
</source>
</source>
-
 
-
 
==Objects Types and their methods==
==Objects Types and their methods==

Revision as of 12:46, 4 June 2017

Page up-to-date to API Version 100019




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

Object creation

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>

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