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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user