Example #1
0
	static int l_remove(lua_State *l) {
		UI::Box *b = LuaObject<UI::Box>::CheckFromLua(1);
		UI::Context *c = b->GetContext();
		UI::Widget *w = UI::Lua::CheckWidget(c, l, 2);
		b->Remove(w);
		return 0;
	}
Example #2
0
	static int l_remove(lua_State *l) {
		UI::Box *b = LuaObject<UI::Box>::CheckFromLua(1);
		UI::Widget *w = LuaObject<UI::Widget>::CheckFromLua(2);
		b->Remove(w);
		return 0;
	}