displayRegisteredPane
This commit is contained in:
parent
8122cc3e7f
commit
00eeb4a809
@ -22,6 +22,13 @@ LuaCallbacks LuaBindings::makeInterfaceCallbacks(MainInterface* mainInterface) {
|
|||||||
return pane->makePaneCallbacks();
|
return pane->makePaneCallbacks();
|
||||||
return {};
|
return {};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
callbacks.registerCallback("displayRegisteredPane", [mainInterface](String const& registeredPaneName) {
|
||||||
|
auto pane = MainInterfacePanesNames.getLeft(registeredPaneName);
|
||||||
|
auto paneManager = mainInterface->paneManager();
|
||||||
|
if (paneManager->maybeRegisteredPane(pane))
|
||||||
|
paneManager->displayRegisteredPane(pane);
|
||||||
|
});
|
||||||
|
|
||||||
callbacks.registerCallback("scale", [mainInterface]() -> int {
|
callbacks.registerCallback("scale", [mainInterface]() -> int {
|
||||||
return GuiContext::singleton().interfaceScale();
|
return GuiContext::singleton().interfaceScale();
|
||||||
|
Loading…
Reference in New Issue
Block a user