mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user