Skyline Lua API  Version 1.0 RC1
Lua Script Reference for Skyline Game Engine.
LUA_API_UI.h
Go to the documentation of this file.
1 // | _ ____ __ _
2 // | / \ _ _ _ __ __ _/ ___| ___ / _| |_
3 // | / _ \| | | | '__/ _` \___ \ / _ \| |_| __|
4 // | / ___ \ |_| | | | (_| |___) | (_) | _| |_
5 // | /_/ \_\__,_|_| \__,_|____/ \___/|_| \__|
6 // |
7 // | Aurasoft UK 2008 - 2016 http://www.aurasoft.co.uk
8 // |
9 // | Skyline Game Engine Lua API Documentation
10 // |
11 // | This file belongs to Aurasoft UK for the Skyline Game Engine of all versions.
12 // | This file is not for use in any other software that is not owned by Aurasoft UK and cannot be used by any other
13 // | person outside of the Skyline Game Engine development team.
14 // |
15 // | Copyright - Aurasoft UK & Skyline Game Engine 2008 - 2016
16 // |
17 
18 // SKYLINE LUA CLASS FOR API DOCUMENTATION
19 
87 class ui
88 {
89 public:
90 
104  void newText(string lable_ID, posx, posy);
105 
118  void text(string lable_ID, string text);
119 
139  void setFontSize(int size);
140 
157  int setColor(string lable_ID, float r, float g, float b);
158 
170  int enableDefaultUI(int state);
171 
184  int setLayerVisible(string lable_ID, int state);
185 
197  int setLayer(string layer_ID);
198 
210  void newLayer(string layer_ID);
211 
224  void deleteLayer(string layer_ID);
225 };
void newText(string lable_ID, posx, posy)
This function creates a new text lable set to the position passed in the argument.
void deleteLayer(string layer_ID)
Delete the specified layer.
int setColor(string lable_ID, float r, float g, float b)
Sets the color of the text to the color specified in the arguments rgb.
void setFontSize(int size)
Sets the font to a new size.
int setLayer(string layer_ID)
By calling this function you set the layer to be used for any proceeding text processes.
int enableDefaultUI(int state)
Use this function to set the visibility of the Default Editor UI.
void text(string lable_ID, string text)
Change the lables text to the contents passed in the argument text.
Definition: LUA_API_States.h:28
int setLayerVisible(string lable_ID, int state)
This function can set the visibility of the text lable.
Definition: LUA_API_UI.h:87
void newLayer(string layer_ID)
Use this function to create a new text layer. Once created any new text opertations will be performed...