mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 14:03:26 +02:00
major UIWidget rewrite with new features
This commit is contained in:
@@ -40,6 +40,10 @@ bool luavalue_cast(int index, int& i);
|
||||
void push_luavalue(double d);
|
||||
bool luavalue_cast(int index, double& d);
|
||||
|
||||
// float
|
||||
inline void push_luavalue(float f) { push_luavalue((double)f); }
|
||||
inline bool luavalue_cast(int index, float& f) { double d; bool r = luavalue_cast(index, d); f = d; return r; }
|
||||
|
||||
// int8
|
||||
inline void push_luavalue(int8 v) { push_luavalue((int)v); }
|
||||
inline bool luavalue_cast(int index, int8& v) { int i; bool r = luavalue_cast(index, i); v = i; return r; }
|
||||
|
Reference in New Issue
Block a user