Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add main menu server join entry to Enchanced Multiplayer Menu (SOG) #164

Merged
merged 1 commit into from
May 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions addons/main_menu/CfgMenus.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

class EMM_mainMenu_CfgMenus {
class VN {
class menus {
class MainMenu;
class MultiplayerVN: MainMenu {
items[] = {"ArmaForces", "ServerBrowser", "SOGPrairieFire", "MikeForce", "Exit"};

class ServerBrowser;
class ArmaForces: ServerBrowser {
action = QUOTE(_this call (uiNamespace getVariable QQFUNC(join)));
text = CSTRING(SpotlightHeader);
};
};
};
};
};
1 change: 1 addition & 0 deletions addons/main_menu/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ class CfgPatches {

#include "CfgEventHandlers.hpp"
#include "CfgMainMenuSpotlight.hpp"
#include "CfgMenus.hpp"
3 changes: 3 additions & 0 deletions addons/main_menu/functions/fnc_join.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ if (isNil "CBA_fnc_log") then {
CBA_fnc_log = uiNamespace getVariable "CBA_fnc_log";
};

// Disable Enchanced Multiplayer Menu for compatiblity with this script
uiNamespace setVariable ["EMM_multiplayerMenu_enabled", false];

INFO("Auto joining to ArmaForces server");

GVAR(serverAddress) = "server.armaforces.com";
Expand Down