Right click mouse context menu in editor will close the editor menu if in root editor menu. Scenario Editor button workflow will no longer play music initially. Fixes to map placement dialog.

This commit is contained in:
Justin Marshall
2020-06-23 20:31:18 -07:00
parent 96bc8e95ff
commit e76e8ed828
3 changed files with 14 additions and 8 deletions
+3
View File
@@ -1594,6 +1594,9 @@ void MapEditClass::Main_Menu(void)
Show_Mouse();
if (UnknownKey==KN_ESC || g_globalKeyNumType == KN_RMOUSE) {
// jmarshall - consume the RMOUSE DOWN
Buttons->Input();
// jmarshall end
break;
}
+1 -6
View File
@@ -70,7 +70,7 @@ void ImGui_Placement_Editor(void) {
ImGuiStyle& style = ImGui::GetStyle();
style.FramePadding = ImVec2(0, 0);
ImGui::SetNextWindowSize(ImVec2(480, 220));
ImGui::SetNextWindowPos(ImVec2(0, 150));
ImGui::SetNextWindowPos(ImVec2(0, 0));
ImGui::Begin("Place Object", &toolActive, ImGuiWindowFlags_AlwaysAutoResize /*| ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoBackground*/);
ImGui::Columns(3, "outer", true);
ImGui::LabelText("Test", "Object Name");
@@ -429,8 +429,6 @@ int MapEditClass::Placement_Dialog(void)
g_globalKeyFlags = 0;
UserInput.Process_Input();
Device_Present();
/*
** Refresh display if needed
*/
@@ -442,9 +440,6 @@ int MapEditClass::Placement_Dialog(void)
Hide_Mouse();
// Dialog_Box(D_DIALOG_X, D_DIALOG_Y, D_DIALOG_W, D_DIALOG_H);
// Draw_Caption(TXT_PLACE_OBJECT, D_DIALOG_X, D_DIALOG_Y, D_DIALOG_W);
// jmarshall - temp render a black background here so the tool works.
LogicPage->Fill_Rect(D_DIALOG_X, D_DIALOG_Y, D_DIALOG_X + D_DIALOG_W, D_DIALOG_Y + D_DIALOG_H, 0);
// jamrshall end
/*
** Display the current object:
+10 -2
View File
@@ -63,6 +63,7 @@
#ifdef WIN32
#include "tcpip.h"
#include "ccdde.h"
#include "audiomix.h"
extern bool SpawnedFromWChat;
#endif
@@ -421,12 +422,19 @@ bool Start_Scenario(char * name, bool briefing)
Show_Mouse();
Play_Movie(Scen.ActionMovie, Scen.TransitTheme);
}
}
Debug_SkipBriefing = false;
}
if (Scen.TransitTheme == THEME_NONE) {
Theme.Queue_Song(THEME_FIRST);
}
// jmarshall
// If we are skipping the briefing, pausing the music(assuming in editor mode).
if (Debug_SkipBriefing) {
AudMix_SetMusicState(false);
}
// jmarshall end
Debug_SkipBriefing = false;
/*
** Set the options values, since the palette has been initialized by Read_Scenario