mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 13:00:11 -07:00
Update SohMenu.cpp
This commit is contained in:
parent
9924ebbd05
commit
243cd32f6c
1 changed files with 12 additions and 2 deletions
|
@ -80,14 +80,24 @@ SohMenu::SohMenu(const std::string& consoleVariable, const std::string& name)
|
||||||
: Menu(consoleVariable, name, 0, UIWidgets::Colors::LightBlue) {
|
: Menu(consoleVariable, name, 0, UIWidgets::Colors::LightBlue) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef ENABLE_REMOTE_CONTROL
|
||||||
|
void SohMenu::AddMenuNetwork() {
|
||||||
|
// Add Network Menu
|
||||||
|
AddMenuEntry("Network", CVAR_SETTING("Menu.NetworkSidebarSection"));
|
||||||
|
|
||||||
|
WidgetPath path = { "Network", "Info", SECTION_COLUMN_1 };
|
||||||
|
AddSidebarEntry("Network", path.sidebarName, 2);
|
||||||
|
|
||||||
|
AddWidget(path, ICON_FA_EXCLAMATION_TRIANGLE " The Network features are unavailable because SoH was compiled without network support (\"ENABLE_REMOTE_CONTROL\" build flag).", WIDGET_TEXT).Options(TextOptions().Color(Colors::Orange));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void SohMenu::InitElement() {
|
void SohMenu::InitElement() {
|
||||||
Ship::Menu::InitElement();
|
Ship::Menu::InitElement();
|
||||||
AddMenuSettings();
|
AddMenuSettings();
|
||||||
AddMenuEnhancements();
|
AddMenuEnhancements();
|
||||||
AddMenuRandomizer();
|
AddMenuRandomizer();
|
||||||
#ifdef ENABLE_REMOTE_CONTROL
|
|
||||||
AddMenuNetwork();
|
AddMenuNetwork();
|
||||||
#endif
|
|
||||||
AddMenuDevTools();
|
AddMenuDevTools();
|
||||||
|
|
||||||
if (CVarGetInteger(CVAR_SETTING("Menu.SidebarSearch"), 0)) {
|
if (CVarGetInteger(CVAR_SETTING("Menu.SidebarSearch"), 0)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue