displayRegisteredPane
This commit is contained in:
parent
8122cc3e7f
commit
00eeb4a809
@ -23,6 +23,13 @@ LuaCallbacks LuaBindings::makeInterfaceCallbacks(MainInterface* mainInterface) {
|
||||
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 {
|
||||
return GuiContext::singleton().interfaceScale();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user