NetRoom/SelectBase/Music lua objects. Scrolling with lua funcs and binded to ctrl+pg up/down. Show prev msgs, binded to pg up/down. Music wheel move, selectmusic screen's select current song, chatbox visibility, input en/disabling and UserList visibility lua functions. (#1394)

This commit is contained in:
Nickito12
2017-02-10 09:58:23 -03:00
committed by Colby Klein
parent 6225e114ad
commit d96bcae8de
9 changed files with 571 additions and 24 deletions
+26
View File
@@ -194,6 +194,32 @@ unsigned int RoomWheel::GetNumItems() const
return m_CurWheelItemData.size() - m_offset;
}
// lua start
#include "LuaBinding.h"
class LunaRoomWheel : public Luna<RoomWheel>
{
public:
static int Move(T* p, lua_State *L)
{
if (lua_isnil(L, 1)) { p->Move(0); }
else
{
p->Move(IArg(1));
}
return 1;
}
LunaRoomWheel()
{
ADD_METHOD(Move);
}
};
LUA_REGISTER_DERIVED_CLASS(RoomWheel, WheelBase)
// lua end
/*
* (c) 2004 Josh Allen
* All rights reserved.