public void ShowAddOrientationDialog() { inputDialog.Open("Create new named orientation", "Please set name of the new orientation", "Name", "", () => AddOrientation(inputDialog.GetValue()), () => inputDialog.Close()); }
public void ShowRenameDialog() { inputDialog.Open("Rename action point", "", "New name", CurrentActionPoint.Data.Name, () => RenameActionPoint(inputDialog.GetValue()), () => inputDialog.Close()); }
public void ShowAddOrientationDialog() { inputDialog.Open("Create new named orientation", "Please set name of the new orientation", "Name", CurrentActionPoint.GetFreeOrientationName(), () => AddOrientation(inputDialog.GetValue(), (string)RobotsList.GetValue()), () => inputDialog.Close()); }
public void ShowAddObjectDialog(string type) { inputDialog.Open("Add object of type " + type, "", "Object name", SceneManager.Instance.GetFreeAOName(type), () => AddObject(type, inputDialog.GetValue()), () => inputDialog.Close()); }
public void ShowRenameDialog() { InputDialog.Open("Rename action object", "", "New name", CurrentObject.Data.Name, () => RenameObject(InputDialog.GetValue()), () => InputDialog.Close()); }
public void ShowNewSceneDialog() { InputDialog.Open("Create new scene", null, "Name", "", () => NewScene(InputDialog.GetValue()), () => InputDialog.Close()); }
public void ShowBuildPackageDialog() { InputDialog.Open("Build package", "", "Package name", Base.ProjectManager.Instance.ProjectMeta.Name + DateTime.Now.ToString("yyyy-dd-M--HH-mm-ss"), () => BuildPackage(InputDialog.GetValue()), () => InputDialog.Close()); }
public void ShowRenameDialog() { inputDialog.Open("Rename scene", "", "New name", sceneTile.GetLabel(), () => RenameScene(inputDialog.GetValue()), () => inputDialog.Close()); }
public void ShowRenameDialog() { inputDialog.Open("Rename project", "", "New name", projectTile.GetLabel(), () => RenameProject(inputDialog.GetValue()), () => inputDialog.Close()); }
public void ShowAddActionPointDialog() { inputDialog.Open("Create action point", "Type action point name", "Name", Scene.Instance.GetFreeAPName(CurrentObject.Data.Name), () => CreateNewAP(inputDialog.GetValue()), () => inputDialog.Close()); }
// TODO: add validation once the rename rename package RPC has dryRun parameter public void ShowRenameDialog() { inputDialog.Open("Rename package", "", "New name", packageTile.GetLabel(), () => RenamePackage(inputDialog.GetValue()), () => inputDialog.Close(), validateInput: ValidateProjectName); }
public async void ShowRenameDialog() { if (!await WriteLockProjectOrScene(projectTile.ProjectId)) { return; } inputDialog.Open("Rename project", "", "New name", projectTile.GetLabel(), () => RenameProject(inputDialog.GetValue()), () => inputDialog.Close(), validateInput: ValidateProjectNameAsync); }
public async void ShowRenameDialog() { if (!await WriteLockProjectOrScene(sceneTile.SceneId)) { return; } inputDialog.Open("Rename scene", "", "New name", sceneTile.GetLabel(), () => RenameScene(inputDialog.GetValue()), () => CloseRenameDialog(), validateInput: ValidateSceneNameAsync); }