mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
add numpad keys in lua const
This commit is contained in:
@@ -186,6 +186,7 @@ void OTClient::registerLuaFunctions()
|
||||
g_lua.bindClassStaticFunction<Game>("open", std::bind(&Game::open, &g_game, _1, _2));
|
||||
g_lua.bindClassStaticFunction<Game>("use", std::bind(&Game::use, &g_game, _1));
|
||||
g_lua.bindClassStaticFunction<Game>("useWith", std::bind(&Game::useWith, &g_game, _1, _2));
|
||||
g_lua.bindClassStaticFunction<Game>("useHotkey", std::bind(&Game::useHotkey, &g_game, _1, _2));
|
||||
g_lua.bindClassStaticFunction<Game>("walk", std::bind(&Game::walk, &g_game, _1));
|
||||
g_lua.bindClassStaticFunction<Game>("forceWalk", std::bind(&Game::forceWalk, &g_game, _1));
|
||||
g_lua.bindClassStaticFunction<Game>("attack", std::bind(&Game::attack, &g_game, _1));
|
||||
|
@@ -39,7 +39,10 @@ void UIItem::draw()
|
||||
std::string count = Fw::tostring(m_item->getData());
|
||||
m_font->renderText(count, Rect(m_rect.topLeft(), m_rect.bottomRight() - Point(3, 0)), Fw::AlignBottomRight, Color(231, 231, 231));
|
||||
}
|
||||
|
||||
//m_font->renderText(Fw::unsafeCast<std::string>(m_item->getId()), m_rect);
|
||||
}
|
||||
|
||||
|
||||
drawChildren();
|
||||
}
|
||||
|
Reference in New Issue
Block a user