Skip to content

Commit 8aaa653

Browse files
authored
Merge pull request #217 from cortex-command-community/remove-multiplayer-ui
Removed Multiplayer UI
2 parents 4eaec74 + 51b5af7 commit 8aaa653

File tree

6 files changed

+12
-33
lines changed

6 files changed

+12
-33
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
260260

261261
<details><summary><b>Removed</b></summary>
262262

263+
- Removed multiplayer. The existing multiplayer implementation was terrible and broken, and can be done better with multiple keyboard+mouse support plus an external client like Parsec or Steam Remote Play Together. In future, we will investigate whether it's feasible to build in a proper and more capable multiplayer solution.
264+
263265
- All music-related functionality from AudioMan has been removed due to the addition of the MusicMan. Generic DynamicSongs have been put in to use instead.
264266
Mod activities that used to queue up all the vanilla music should now instead call, for example, `MusicMan:PlayDynamicSong("Generic Battle Music")`
265267

266268
- The Signal Hunt activity no longer has a preview image, as it was not formatted correctly and spoiled the interior structure of the cave.
267269

268-
- Removed `GAScripted` Lua script method `SceneTest()` as the new Lua function `IsCompatibleScene(scene)` is more capable.
269-
Removed `GAScripted` C++ functionality that would scan the Lua script file to determine which areas are required. `AddRequiredArea` in the INI should be used instead.
270+
- Removed `GAScripted` Lua script method `SceneTest()` as the new Lua function `IsCompatibleScene(scene)` is more capable.
271+
Removed `GAScripted` C++ functionality that would scan the Lua script file to determine which areas are required. `AddRequiredArea` in the INI should be used instead.
270272
Removed `Scene` Lua function `GetOptionalArea` as it functioned identically to `GetArea` aside from triggering the aforementioned (and now removed) Lua script file scanning.
271273

272274
- Removed `AHuman` property `MaxCrouchRotation`. `CrouchRotAngleTarget` is now used instead.

Data/Base.rte/GUIs/MainMenuGUI.ini

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,11 @@ Name = ButtonMainToSkirmish
5757
Anchor = Left, Top
5858
Text = Scenario Battle
5959

60-
[ButtonMainToMultiplayer]
61-
ControlType = BUTTON
62-
Parent = MainScreen
63-
X = 0
64-
Y = 40
65-
Width = 240
66-
Height = 20
67-
Visible = True
68-
Enabled = True
69-
Name = ButtonMainToMultiplayer
70-
Anchor = Left, Top
71-
Text = Online Multiplayer
72-
7360
[ButtonSaveOrLoadGame]
7461
ControlType = BUTTON
7562
Parent = MainScreen
7663
X = 0
77-
Y = 60
64+
Y = 40
7865
Width = 240
7966
Height = 20
8067
Visible = True
@@ -87,7 +74,7 @@ Text = Saved Games
8774
ControlType = BUTTON
8875
Parent = MainScreen
8976
X = 0
90-
Y = 80
77+
Y = 60
9178
Width = 110
9279
Height = 20
9380
Visible = True
@@ -100,7 +87,7 @@ Text = Settings
10087
ControlType = BUTTON
10188
Parent = MainScreen
10289
X = 0
103-
Y = 100
90+
Y = 80
10491
Width = 160
10592
Height = 20
10693
Visible = True
@@ -113,7 +100,7 @@ Text = Mod Manager
113100
ControlType = BUTTON
114101
Parent = MainScreen
115102
X = 0
116-
Y = 120
103+
Y = 100
117104
Width = 170
118105
Height = 20
119106
Visible = True
@@ -126,7 +113,7 @@ Text = Game Editors
126113
ControlType = BUTTON
127114
Parent = MainScreen
128115
X = 0
129-
Y = 140
116+
Y = 120
130117
Width = 100
131118
Height = 20
132119
Visible = True
@@ -139,7 +126,7 @@ Text = Credits
139126
ControlType = BUTTON
140127
Parent = MainScreen
141128
X = 0
142-
Y = 160
129+
Y = 140
143130
Width = 55
144131
Height = 20
145132
Visible = True
@@ -152,7 +139,7 @@ Text = Exit
152139
ControlType = BUTTON
153140
Parent = MainScreen
154141
X = 0
155-
Y = 180
142+
Y = 160
156143
Width = 200
157144
Height = 20
158145
Visible = True

Data/Base.rte/Scenes.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,6 @@ AddScene = Scene
346346
PresetName = Editor Scene
347347

348348

349-
AddScene = Scene
350-
CopyOf = Null Scene
351-
PresetName = Multiplayer Scene
352-
353-
354349
///////////////////////////////////////////////////////////////////////
355350
// Scenes
356351

Source/Menus/MainMenuGUI.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ void MainMenuGUI::CreateMainScreen() {
9292

9393
m_MainMenuButtons[MenuButton::MetaGameButton] = dynamic_cast<GUIButton*>(m_MainMenuScreenGUIControlManager->GetControl("ButtonMainToMetaGame"));
9494
m_MainMenuButtons[MenuButton::ScenarioButton] = dynamic_cast<GUIButton*>(m_MainMenuScreenGUIControlManager->GetControl("ButtonMainToSkirmish"));
95-
m_MainMenuButtons[MenuButton::MultiplayerButton] = dynamic_cast<GUIButton*>(m_MainMenuScreenGUIControlManager->GetControl("ButtonMainToMultiplayer"));
9695
m_MainMenuButtons[MenuButton::SaveOrLoadGameButton] = dynamic_cast<GUIButton*>(m_MainMenuScreenGUIControlManager->GetControl("ButtonSaveOrLoadGame"));
9796
m_MainMenuButtons[MenuButton::SettingsButton] = dynamic_cast<GUIButton*>(m_MainMenuScreenGUIControlManager->GetControl("ButtonMainToOptions"));
9897
m_MainMenuButtons[MenuButton::ModManagerButton] = dynamic_cast<GUIButton*>(m_MainMenuScreenGUIControlManager->GetControl("ButtonMainToModManager"));
@@ -423,9 +422,6 @@ void MainMenuGUI::HandleMainScreenInputEvents(const GUIControl* guiEventControl)
423422
}
424423
} else if (guiEventControl == m_MainMenuButtons[MenuButton::ScenarioButton]) {
425424
m_UpdateResult = MainMenuUpdateResult::ScenarioStarted;
426-
} else if (guiEventControl == m_MainMenuButtons[MenuButton::MultiplayerButton]) {
427-
m_UpdateResult = MainMenuUpdateResult::ActivityStarted;
428-
g_GUISound.BackButtonPressSound()->Play();
429425
} else if (guiEventControl == m_MainMenuButtons[MenuButton::SaveOrLoadGameButton]) {
430426
SetActiveMenuScreen(MenuScreen::SaveOrLoadGameScreen);
431427
} else if (guiEventControl == m_MainMenuButtons[MenuButton::SettingsButton]) {

Source/Menus/MainMenuGUI.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ namespace RTE {
7474
enum MenuButton {
7575
MetaGameButton,
7676
ScenarioButton,
77-
MultiplayerButton,
7877
SaveOrLoadGameButton,
7978
SettingsButton,
8079
ModManagerButton,

Source/System/GameVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace RTE {
66

77
#pragma region Game Version
8-
static constexpr const char* c_VersionString = "6.2.2";
8+
static constexpr const char* c_VersionString = "7.0.0";
99
static const version::Semver200_version c_GameVersion = version::Semver200_version(c_VersionString);
1010
#pragma endregion
1111
} // namespace RTE

0 commit comments

Comments
 (0)