mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-17 08:50:29 +02:00
Switched new Scenario buttons to checkboxes.
This commit is contained in:
+47
-12
@@ -391,6 +391,10 @@ int MapEditClass::Save_Scenario(void)
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool pickscenerio_faction[4] = { false, false, false, false };
|
||||||
|
bool pickscenerio_sides[2] = { false, false };
|
||||||
|
bool pickscenerio_version[4] = { false, false, false, false };
|
||||||
|
|
||||||
void Imgui_PickScenerio_Dialog(void) {
|
void Imgui_PickScenerio_Dialog(void) {
|
||||||
/*
|
/*
|
||||||
** Dialog & button dimensions
|
** Dialog & button dimensions
|
||||||
@@ -496,27 +500,58 @@ void Imgui_PickScenerio_Dialog(void) {
|
|||||||
//ImGui::InputText("Version", &verionsId[0], sizeof(verionsId));
|
//ImGui::InputText("Version", &verionsId[0], sizeof(verionsId));
|
||||||
ImGui::Text("Version");
|
ImGui::Text("Version");
|
||||||
{
|
{
|
||||||
ImGui::Button("A");
|
if (ImGui::Checkbox("A", &pickscenerio_version[0])) {
|
||||||
|
memset(pickscenerio_version, 0, sizeof(pickscenerio_version));
|
||||||
|
pickscenerio_version[0] = true;
|
||||||
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Button("B");
|
if (ImGui::Checkbox("B", &pickscenerio_version[1])) {
|
||||||
|
memset(pickscenerio_version, 0, sizeof(pickscenerio_version));
|
||||||
|
pickscenerio_version[1] = true;
|
||||||
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Button("C");
|
if (ImGui::Checkbox("C", &pickscenerio_version[2])) {
|
||||||
|
memset(pickscenerio_version, 0, sizeof(pickscenerio_version));
|
||||||
|
pickscenerio_version[2] = true;
|
||||||
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Button("D");
|
if (ImGui::Checkbox("D", &pickscenerio_version[3])) {
|
||||||
}
|
memset(pickscenerio_version, 0, sizeof(pickscenerio_version));
|
||||||
|
pickscenerio_version[3] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
ImGui::Text("Side");
|
ImGui::Text("Side");
|
||||||
{
|
{
|
||||||
ImGui::Button("East");
|
if (ImGui::Checkbox("East", &pickscenerio_sides[0])) {
|
||||||
|
memset(pickscenerio_sides, 0, sizeof(pickscenerio_sides));
|
||||||
|
pickscenerio_sides[0] = true;
|
||||||
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::Button("West");
|
if (ImGui::Checkbox("West", &pickscenerio_sides[1])) {
|
||||||
|
memset(pickscenerio_sides, 0, sizeof(pickscenerio_sides));
|
||||||
|
pickscenerio_sides[1] = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::Text("Faction");
|
ImGui::Text("Faction");
|
||||||
ImGui::Button("North (Spain)");
|
|
||||||
ImGui::Button("South(Greece)");
|
|
||||||
ImGui::Button("USSR");
|
if (ImGui::Checkbox("North (Spain)", &pickscenerio_faction[0])) {
|
||||||
ImGui::Button("Multiplayer");
|
memset(pickscenerio_faction, 0, sizeof(pickscenerio_faction));
|
||||||
|
pickscenerio_faction[0] = true;
|
||||||
|
}
|
||||||
|
if (ImGui::Checkbox("South(Greece)", &pickscenerio_faction[1])) {
|
||||||
|
memset(pickscenerio_faction, 0, sizeof(pickscenerio_faction));
|
||||||
|
pickscenerio_faction[1] = true;
|
||||||
|
}
|
||||||
|
if (ImGui::Checkbox("USSR", &pickscenerio_faction[2])) {
|
||||||
|
memset(pickscenerio_faction, 0, sizeof(pickscenerio_faction));
|
||||||
|
pickscenerio_faction[2] = true;
|
||||||
|
}
|
||||||
|
if (ImGui::Checkbox("Multiplayer", &pickscenerio_faction[3])) {
|
||||||
|
memset(pickscenerio_faction, 0, sizeof(pickscenerio_faction));
|
||||||
|
pickscenerio_faction[3] = true;
|
||||||
|
}
|
||||||
ImGui::NewLine();
|
ImGui::NewLine();
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user