Bind {un,}lockVisibleFloor to lua
This commit is contained in:
parent
2498129ff3
commit
ed24a0735a
|
@ -610,6 +610,8 @@ void Client::registerLuaFunctions()
|
||||||
g_lua.bindClassMemberFunction<UIMap>("setMaxZoomIn", &UIMap::setMaxZoomIn);
|
g_lua.bindClassMemberFunction<UIMap>("setMaxZoomIn", &UIMap::setMaxZoomIn);
|
||||||
g_lua.bindClassMemberFunction<UIMap>("setMaxZoomOut", &UIMap::setMaxZoomOut);
|
g_lua.bindClassMemberFunction<UIMap>("setMaxZoomOut", &UIMap::setMaxZoomOut);
|
||||||
g_lua.bindClassMemberFunction<UIMap>("setMultifloor", &UIMap::setMultifloor);
|
g_lua.bindClassMemberFunction<UIMap>("setMultifloor", &UIMap::setMultifloor);
|
||||||
|
g_lua.bindClassMemberFunction<UIMap>("lockVisibleFloor", &UIMap::lockVisibleFloor);
|
||||||
|
g_lua.bindClassMemberFunction<UIMap>("unlockVisibleFloor", &UIMap::unlockVisibleFloor);
|
||||||
g_lua.bindClassMemberFunction<UIMap>("setVisibleDimension", &UIMap::setVisibleDimension);
|
g_lua.bindClassMemberFunction<UIMap>("setVisibleDimension", &UIMap::setVisibleDimension);
|
||||||
g_lua.bindClassMemberFunction<UIMap>("setViewMode", &UIMap::setViewMode);
|
g_lua.bindClassMemberFunction<UIMap>("setViewMode", &UIMap::setViewMode);
|
||||||
g_lua.bindClassMemberFunction<UIMap>("setAutoViewMode", &UIMap::setAutoViewMode);
|
g_lua.bindClassMemberFunction<UIMap>("setAutoViewMode", &UIMap::setAutoViewMode);
|
||||||
|
|
|
@ -47,6 +47,8 @@ public:
|
||||||
void setMaxZoomIn(int maxZoomIn) { m_maxZoomIn = maxZoomIn; }
|
void setMaxZoomIn(int maxZoomIn) { m_maxZoomIn = maxZoomIn; }
|
||||||
void setMaxZoomOut(int maxZoomOut) { m_maxZoomOut = maxZoomOut; }
|
void setMaxZoomOut(int maxZoomOut) { m_maxZoomOut = maxZoomOut; }
|
||||||
void setMultifloor(bool enable) { m_mapView->setMultifloor(enable); }
|
void setMultifloor(bool enable) { m_mapView->setMultifloor(enable); }
|
||||||
|
void lockVisibleFloor(int floor) { m_mapView->lockFirstVisibleFloor(floor); }
|
||||||
|
void unlockVisibleFloor() { m_mapView->unlockFirstVisibleFloor(); }
|
||||||
void setVisibleDimension(const Size& visibleDimension);
|
void setVisibleDimension(const Size& visibleDimension);
|
||||||
void setViewMode(MapView::ViewMode viewMode) { m_mapView->setViewMode(viewMode); }
|
void setViewMode(MapView::ViewMode viewMode) { m_mapView->setViewMode(viewMode); }
|
||||||
void setAutoViewMode(bool enable) { m_mapView->setAutoViewMode(enable); }
|
void setAutoViewMode(bool enable) { m_mapView->setAutoViewMode(enable); }
|
||||||
|
|
Loading…
Reference in New Issue