mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 04:42:20 +02:00
Create App "tools" menu implementation
Create App "tools" menu implementation
This commit is contained in:
parent
21eee3c24e
commit
7d364add66
1 changed files with 22 additions and 0 deletions
|
@ -381,7 +381,29 @@ EntityListTool = function(shouldUseEditTabletApp) {
|
|||
});
|
||||
} else if (data.type === 'saveColumnsConfigSetting') {
|
||||
Settings.setValue(SETTING_EDITOR_COLUMNS_SETUP, data.columnsData);
|
||||
} else if (data.type === 'importFromFile') {
|
||||
importEntitiesFromFile();
|
||||
} else if (data.type === 'importFromUrl') {
|
||||
importEntitiesFromUrl();
|
||||
} else if (data.type === 'setCameraFocusToSelection') {
|
||||
setCameraFocusToSelection();
|
||||
} else if (data.type === 'alignGridToSelection') {
|
||||
alignGridToSelection();
|
||||
} else if (data.type === 'alignGridToAvatar') {
|
||||
alignGridToAvatar();
|
||||
} else if (data.type === 'toggleGridVisibility') {
|
||||
toggleGridVisibility();
|
||||
} else if (data.type === 'toggleSnapToGrid') {
|
||||
if (!grid.getSnapToGrid()) {
|
||||
grid.setSnapToGrid(true);
|
||||
emitJSONScriptEvent({ "type": "setSnapToGrid", "snap": true });
|
||||
} else {
|
||||
grid.setSnapToGrid(false);
|
||||
emitJSONScriptEvent({ "type": "setSnapToGrid", "snap": false });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
webView.webEventReceived.connect(onWebEventReceived);
|
||||
|
|
Loading…
Reference in a new issue