mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
Minimap, hotkeys and lot of other changes
* Begin working on a new layout system for UIMinimap and later UIMap, this new layout system allows to add widgets to the minimap * Add option to disable motd * Rework hotkey binding * Lots of fixes in hotkeys manager * Add fullmap view using Ctrl+Shift+M * Prevent some crashs in ThingType draw * Add function to load minimap from PNG files * Fixes in minimap saving * Fixes in Tile::isClickable * Add UIMapAnchorLayout, new layout for maps * Fix freezes in win32 when pressing alt key
This commit is contained in:
@@ -289,8 +289,12 @@ bool luavalue_cast(int index, OTMLNodePtr& node)
|
||||
g_lua.pushNil();
|
||||
while(g_lua.next(index < 0 ? index-1 : index)) {
|
||||
std::string cnodeName;
|
||||
if(!g_lua.isNumber(-2))
|
||||
cnodeName = g_lua.toString(-2);
|
||||
if(g_lua.isString(-2)) {
|
||||
g_lua.pushValue(-2);
|
||||
cnodeName = g_lua.toString();
|
||||
g_lua.pop();
|
||||
} else
|
||||
assert(g_lua.isNumber());
|
||||
if(g_lua.isTable()) {
|
||||
OTMLNodePtr cnode;
|
||||
if(luavalue_cast(-1, cnode)) {
|
||||
|
Reference in New Issue
Block a user