adding Level Open and Save
This commit is contained in:
parent
d670208e56
commit
e913cde094
|
|
@ -3,7 +3,7 @@
|
|||
#include <NazaraEditor/Core/Core.hpp>
|
||||
#include <NazaraEditor/Core/Application/Action.hpp>
|
||||
#include <NazaraEditor/Core/Application/ActionStack.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Level_New.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Level.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Log_Clear.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Log_CopyToClipboard.hpp>
|
||||
#include <NazaraEditor/Core/Application/Actions/EditorAction_Editor.hpp>
|
||||
|
|
|
|||
|
|
@ -58,6 +58,20 @@ int WinMain(int argc, char* argv[])
|
|||
.shortcut = Nz::Shortcut::Create(Nz::Keyboard::VKey::N, true, true),
|
||||
.icon = Nz::Texture::LoadFromFile(app.GetResourceFolder() / "file_new.png", texParams)
|
||||
});
|
||||
app.RegisterAction<Nz::EditorAction_Level_Open>({
|
||||
.description = "LOC_EDITOR_ACTION_LEVEL_OPEN_DESC",
|
||||
.path = { "LOC_EDITOR_MENU_FILE", "LOC_EDITOR_MENU_LEVEL", "LOC_EDITOR_MENU_OPEN" },
|
||||
.category = "General",
|
||||
.shortcut = Nz::Shortcut::Create(Nz::Keyboard::VKey::O, true, true),
|
||||
.icon = Nz::Texture::LoadFromFile(app.GetResourceFolder() / "file_open.png", texParams)
|
||||
});
|
||||
app.RegisterAction<Nz::EditorAction_Level_Save>({
|
||||
.description = "LOC_EDITOR_ACTION_LEVEL_SAVE_DESC",
|
||||
.path = { "LOC_EDITOR_MENU_FILE", "LOC_EDITOR_MENU_LEVEL", "LOC_EDITOR_MENU_SAVE" },
|
||||
.category = "General",
|
||||
.shortcut = Nz::Shortcut::Create(Nz::Keyboard::VKey::S, true, true),
|
||||
.icon = Nz::Texture::LoadFromFile(app.GetResourceFolder() / "file_save.png", texParams)
|
||||
});
|
||||
app.RegisterAction<Nz::EditorAction_Log_Clear>({
|
||||
.description = "LOC_EDITOR_ACTION_LOG_CLEAR_DESC",
|
||||
.path = { "LOC_EDITOR_MENU_LOG_CLEAR" },
|
||||
|
|
|
|||
Loading…
Reference in New Issue