示例#1
0
	static int l_set_enabled(lua_State *l) {
		UI::Widget *w = LuaObject<UI::Widget>::CheckFromLua(1);
		const bool enable = lua_toboolean(l, 2);
		if (enable) {
			w->Enable();
		} else {
			w->Disable();
		}
		return 0;
	}
示例#2
0
		static int l_enable(lua_State *l)
		{
			UI::Widget *w = LuaObject<UI::Widget>::CheckFromLua(1);
			w->Enable();
			return 0;
		}