feat(color): add Slider & Choice widget option types (#5518)
This commit is contained in:
@@ -1418,3 +1418,17 @@ bool isRadioScriptTool(const char * filename)
|
||||
const char * ext = getFileExtension(filename);
|
||||
return ext && !strcasecmp(ext, SCRIPT_EXT);
|
||||
}
|
||||
|
||||
void l_pushtableint(lua_State* ls, const char * key, int value)
|
||||
{
|
||||
lua_pushstring(ls, key);
|
||||
lua_pushinteger(ls, value);
|
||||
lua_settable(ls, -3);
|
||||
}
|
||||
|
||||
void l_pushtablebool(lua_State* ls, const char * key, bool value)
|
||||
{
|
||||
lua_pushstring(ls, key);
|
||||
lua_pushboolean(ls, value);
|
||||
lua_settable(ls, -3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user