Export textures shortcut

This commit is contained in:
luboslenco
2019-10-18 11:52:12 +02:00
parent fbfbf7d556
commit dca4f067f7
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -87,6 +87,7 @@ class Config {
raw.keymap.file_reload_assets = "ctrl+r";
raw.keymap.file_import_assets = "ctrl+i";
raw.keymap.file_export_textures = "ctrl+e";
raw.keymap.file_export_textures_as = "ctrl+shift+e";
raw.keymap.edit_undo = "ctrl+z";
raw.keymap.edit_redo = "ctrl+shift+z";
raw.keymap.edit_prefs = "ctrl+k";
+1 -1
View File
@@ -70,7 +70,7 @@ class UIMenu {
if (ui.button("Reload Assets", Left, Config.keymap.file_reload_assets)) Project.reloadAssets();
if (ui.button("Import Assets...", Left, Config.keymap.file_import_assets)) Project.importAsset();
ui.fill(0, 0, sepw, 1, ui.t.ACCENT_SELECT_COL);
if (ui.button("Export Textures...", Left, Config.keymap.file_export_textures)) BoxExport.showTextures();
if (ui.button("Export Textures...", Left, Config.keymap.file_export_textures_as)) BoxExport.showTextures();
if (ui.button("Export Mesh...", Left)) BoxExport.showMesh();
ui.fill(0, 0, sepw, 1, ui.t.ACCENT_SELECT_COL);
if (ui.button("Exit", Left)) System.stop();
+1
View File
@@ -455,6 +455,7 @@ class UITrait {
}
else textureExport = true;
}
else if (Operator.shortcut(Config.keymap.file_export_textures_as)) BoxExport.showTextures();
else if (Operator.shortcut(Config.keymap.file_import_assets)) Project.importAsset();
else if (Operator.shortcut(Config.keymap.edit_prefs)) BoxPreferences.show();