GUI-Related Classes
UserInterface Class
Gui Class
UNIGINE | UNIGINE 2 |
---|---|
GUI_DRAG_DROP | GUI_DRAG_DROP See remarks below. |
GUI_ACTIVATED | Removed |
GUI_DEACTIVATED | Removed |
int getNumChilds() | int getNumChildren() See remarks below. |
Remarks:
- A callback can receive dragged widgets inside additional arguments. Clicked or pressed callbacks receive a mouse button or a key inside an additional callback argument.
- The int getNumChilds() function is depricated. It is provided to keep your code working until the next release. Please, replace it with int getNumChildren().
New Functions and Variables
Widget Class
UNIGINE | UNIGINE 2 |
---|---|
int getNumChilds() | int getNumChildren() See remarks below. |
Remarks:
- The int getNumChilds() function is depricated. It is provided to keep your code working until the next release. Please, replace it with int getNumChildren().
New Functions
- int getIntersection (int x, int y)
- void setCallback(int callback, variable function, variable data_0 = 0, variable data_1 = 0, variable data_2 = 0)
- void setCallback(int callback, variable function, variable data_0 = 0, variable data_1 = 0)
- void setCallback(int callback, variable function, variable data_0 = 0)
- void setCallback(int callback, variable function)
WidgetCanvas Class
UNIGINE | UNIGINE 2 | Comments |
---|---|---|
vec3 getTextPosition(int text) | vec2 getTextPosition(int text) | |
void setTextPosition(int text, vec3 position) | void setTextPosition(int text, vec2 position) |
New Functions
- int addLineIndex(int line, int index)
- int addPolygonIndex(int polygon, int index)
- void clearLineIndices(int line)
- void clearPolygonIndices(int polygon)
- int getLineIndex(int line, int num)
- int getNumLineIndices(int line)
- int getNumPolygonIndices(int polygon)
- int getPolygonIndex(int polygon, int num)
- int getPolygonTwoSided(int polygon)
- void removeLineIndex(int line, int num)
- void removePolygonIndex(int polygon, int num)
- void setPolygonTwoSided(int polygon, int two_sided)
WidgetComboBox Class
WidgetDialog Class
WidgetGroupBox Class
WidgetIcon Class
UNIGINE | UNIGINE 2 |
---|---|
WidgetIcon(Gui gui) WidgetIcon(Gui gui, string texture) | WidgetIcon(Gui gui, string texture, int width = 0, int height = 0) |
WidgetListBox Class
WidgetMenuBar Class
WidgetMenuBox Class
UNIGINE | UNIGINE 2 |
---|---|
WidgetMenuBox getItemMenu(int item) | Removed |
void setItemMenu(int item, WidgetMenuBox menu) | Removed |
New Functions
- string getItemData(int item)
- WidgetMenuBox getItemMenu(int item)
- string getItemToolTip(int item)
- int getItemSpace(int item)
- void setItemData(int item, string data)
- void setItemMenu(int item, WidgetMenuBox menu)
- void setItemSpace(int item, int space)
- void setItemToolTip(int item, string tooltip)
- Widget getItemWidget(int item)
- int isItemSelectable(int item)
- void setItemSelectable(int item, int selectable)
- void setItemWidget(int item, Widget widget)
WidgetTabBox Class
WidgetSlider Class
WidgetSpriteMaterial Class
The class has been removed.
WidgetSpin Class
WidgetTreeBox Class
UNIGINE | UNIGINE 2 |
---|---|
int getNumItemChilds(int item) | int getNumItemChildren(int item) See remarks below. |
Remarks:
- The int getNumItemChilds(int item) function is depricated. It is provided to keep your code working until the next release. Please, replace it with int getNumItemChildren(int item).
New Functions
Last update: 03.07.2017
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter