Polyphase Game Engine
Loading...
Searching...
No Matches
ProgressBar_Lua.h
Go to the documentation of this file.
1#pragma once
2
3#include "EngineTypes.h"
4#include "Log.h"
5
7
9
10#if LUA_ENABLED
11
12#define PROGRESSBAR_LUA_NAME "ProgressBar"
13#define PROGRESSBAR_LUA_FLAG "cfProgressBar"
14#define CHECK_PROGRESSBAR(L, arg) (ProgressBar*)CheckNodeLuaType(L, arg, PROGRESSBAR_LUA_NAME, PROGRESSBAR_LUA_FLAG);
15
16struct ProgressBar_Lua
17{
18 // Value
19 static int SetValue(lua_State* L);
20 static int GetValue(lua_State* L);
21 static int SetMinValue(lua_State* L);
22 static int GetMinValue(lua_State* L);
23 static int SetMaxValue(lua_State* L);
24 static int GetMaxValue(lua_State* L);
25 static int GetRatio(lua_State* L);
26
27 // Display
28 static int SetShowPercentage(lua_State* L);
29 static int IsShowingPercentage(lua_State* L);
30
31 // Visual
32 static int SetBackgroundColor(lua_State* L);
33 static int GetBackgroundColor(lua_State* L);
34 static int SetFillColor(lua_State* L);
35 static int GetFillColor(lua_State* L);
36 static int SetTextColor(lua_State* L);
37 static int GetTextColor(lua_State* L);
38
39 // Children
40 static int GetBackgroundQuad(lua_State* L);
41 static int GetFillQuad(lua_State* L);
42 static int GetTextWidget(lua_State* L);
43
44 static void Bind();
45};
46
47#endif