Shifts the tools messageboxes to be distinct from any messageboxes in the main game

Reorged the canvas handling of gamepad inputs for the axis and triggers to use the SI_ versions in the right spots
Fixed issue where pause menu would be hidden and not display again
Made the pause menu active from the gamepad start button rather than back
This commit is contained in:
Areloch 2020-07-24 00:40:03 -05:00
parent ef4cc8b573
commit 5b289bce5e
57 changed files with 217 additions and 217 deletions

View file

@ -346,7 +346,7 @@ function CreateNewNavMeshDlg::create(%this)
%name = %this-->MeshName.getText();
if(%name $= "" || nameToID(%name) != -1)
{
MessageBoxOk("Error", "A NavMesh must have a unique name!");
toolsMessageBoxOk("Error", "A NavMesh must have a unique name!");
return;
}
@ -356,7 +356,7 @@ function CreateNewNavMeshDlg::create(%this)
{
if(!isObject(getScene(0)))
{
MessageBoxOk("Error", "You must have a Scene to use the mission bounds function.");
toolsMessageBoxOk("Error", "You must have a Scene to use the mission bounds function.");
return;
}
// Get maximum extents of all objects.

View file

@ -132,7 +132,7 @@ function NavEditorPlugin::onActivated(%this)
if(!isObject(ServerNavMeshSet))
new SimSet(ServerNavMeshSet);
if(ServerNavMeshSet.getCount() == 0)
MessageBoxYesNo("No NavMesh", "There is no NavMesh in this level. Would you like to create one?" SPC
toolsMessageBoxYesNo("No NavMesh", "There is no NavMesh in this level. Would you like to create one?" SPC
"If not, please use the Nav Editor to create a new NavMesh.",
"Canvas.pushDialog(CreateNewNavMeshDlg);");
NavTreeView.open(ServerNavMeshSet, true);

View file

@ -122,7 +122,7 @@ function NavEditorGui::deleteSelected(%this)
case "SelectMode":
// Try to delete the selected NavMesh.
if(isObject(NavEditorGui.selectedObject))
MessageBoxYesNo("Warning",
toolsMessageBoxYesNo("Warning",
"Are you sure you want to delete" SPC NavEditorGui.selectedObject.getName(),
"NavEditorGui.deleteMesh();");
case "TestMode":
@ -277,7 +277,7 @@ function NavEditorGui::followObject(%this)
{
eval("%obj = " @ %text);
if(!isObject(%obj))
MessageBoxOk("Error", "Cannot find object" SPC %text);
toolsMessageBoxOk("Error", "Cannot find object" SPC %text);
}
if(isObject(%obj))
%this.getPlayer().followObject(%obj, NavEditorOptionsWindow-->TestProperties->FollowRadius.getText());