Controls

From ESOUI Wiki

(Difference between revisions)
Jump to: navigation, search
(100017)
m (introduction duplicated.)
Line 11: Line 11:
This is the list of the different functions ''(methods)'' of the '''UI Objects''' of Elder Scrolls Online.
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''' can be defined throught '''XML''' or in '''Lua'''
-
 
-
 
-
 
-
 
-
 
-
Objects creation throught XML :
 
-
 
-
<source lang="lua">
 
-
<!-- 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>
 
-
</source>
 
-
 
-
 
-
Objects creation throught Lua:
 
-
 
-
<source lang="lua">
 
-
-- Will create a new control without any parent.
 
-
CreateControl("ControlName", CT_LABEL ) -- See http://wiki.esoui.com/Globals#ControlType
 
-
</source>
 
-
 
-
 
-
 
-
Then, you can call any of the methods listed under :
 
-
 
-
For our '''LabelControl''' :
 
-
 
-
<source lang="lua">
 
-
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.
 
-
</source>
 
-
 
-
 
-
 
-
==Objects Types and their methods==
 
-
 
-
==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 :
 
-
 
-
<source lang="lua">
 
-
<!-- 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>
 
-
</source>
 
-
 
-
 
-
Objects creation throught Lua:
 
-
 
-
<source lang="lua">
 
-
-- Will create a new control without any parent.
 
-
CreateControl("ControlName", CT_LABEL ) -- See http://wiki.esoui.com/Globals#ControlType
 
-
</source>
 
-
 
-
 
-
 
-
Then, you can call any of the methods listed under :
 
-
 
-
For our '''LabelControl''' :
 
-
 
-
<source lang="lua">
 
-
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.
 
-
</source>
 
-
 
-
 
-
 
-
==Objects Types and their methods==
 
-
 
-
==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 :
 
-
 
-
<source lang="lua">
 
-
<!-- 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>
 
-
</source>
 
-
 
-
 
-
Objects creation throught Lua:
 
-
 
-
<source lang="lua">
 
-
-- Will create a new control without any parent.
 
-
CreateControl("ControlName", CT_LABEL ) -- See http://wiki.esoui.com/Globals#ControlType
 
-
</source>
 
-
 
-
 
-
 
-
Then, you can call any of the methods listed under :
 
-
 
-
For our '''LabelControl''' :
 
-
 
-
<source lang="lua">
 
-
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.
 
-
</source>
 
-
 
-
 
-
 
-
==Objects Types and their methods==
 
-
 
-
==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'''
 
-
 
-
 

Revision as of 17:00, 4 September 2016

Page up-to-date to API Version 100017




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