Skip to content
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
4 changes: 4 additions & 0 deletions example_community_patch_settings_en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ chattitledisplayhooks = true
dailyfactionbulkclaimhooks = true
doubleclickassignshiphooks = true
forbiddentechconfirmhooks = true
forbiddentechshipnamehooks = true
freeresizehooks = true
galacticanomalytimerhooks = true
game_version = true
Expand Down Expand Up @@ -733,6 +734,9 @@ only_show_first_popup = false
# Show the newest Haven help-history entries first.
reverse_haven_history = true

# Show the equipped ship below the Forbidden Tech header, including ships without a dock.
forbidden_tech_ship_name = true

# Subgroup: Auto Confirm
# ----------------------

Expand Down
4 changes: 4 additions & 0 deletions mods/src/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,8 @@ void Config::Load()
get_config_or_default(config, parsed, "patches", "doubleclickassignshiphooks", DCP::doubleclickassignshiphooks, write_config);
this->installForbiddenTechConfirmationHooks =
get_config_or_default(config, parsed, "patches", "forbiddentechconfirmhooks", DCP::forbiddentechconfirmhooks, write_config);
this->installForbiddenTechShipNameHooks = get_config_or_default(
config, parsed, "patches", "forbiddentechshipnamehooks", DCP::forbiddentechshipnamehooks, write_config);
this->installRevealConfirmationHooks =
get_config_or_default(config, parsed, "patches", "revealconfirmhooks", DCP::revealconfirmhooks, write_config);
this->installQueueAddressGuardHooks = get_config_or_default(
Expand Down Expand Up @@ -1215,6 +1217,8 @@ void Config::Load()
this->auto_confirm_ft_upgrade =
get_config_or_default(config, parsed, "ui", "auto_confirm_ft_upgrade",
DCU::auto_confirm_ft_upgrade, write_config);
this->forbidden_tech_ship_name = get_config_or_default(
config, parsed, "ui", "forbidden_tech_ship_name", DCU::forbidden_tech_ship_name, write_config);
this->auto_confirm_reveal_ability =
get_config_or_default(config, parsed, "ui", "auto_confirm_reveal_ability",
DCU::auto_confirm_reveal_ability, write_config);
Expand Down
2 changes: 2 additions & 0 deletions mods/src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ class Config final
NotificationSound alert_armada_battle_lost = NotificationSound::None;
bool auto_open_bulk_claim_flyout;
bool auto_confirm_ft_upgrade;
bool forbidden_tech_ship_name;
bool auto_confirm_reveal_ability;
bool auto_confirm_alliance_contribution;

Expand Down Expand Up @@ -307,6 +308,7 @@ class Config final
bool installLoadingTipHooks;
bool installDoubleClickAssignShipHooks;
bool installForbiddenTechConfirmationHooks;
bool installForbiddenTechShipNameHooks;
bool installRevealConfirmationHooks;
bool installInstantWarpConfirmationHooks;
bool installAudioEventHooks;
Expand Down
2 changes: 2 additions & 0 deletions mods/src/defaultconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ namespace Patches
constexpr bool loadingtiphooks = true;
constexpr bool doubleclickassignshiphooks = true;
constexpr bool forbiddentechconfirmhooks = true;
constexpr bool forbiddentechshipnamehooks = true;
constexpr bool audioeventhooks = true;
constexpr bool actionqueuerecoveryhooks = true;
constexpr bool queueaddressguardhooks = true;
Expand Down Expand Up @@ -268,6 +269,7 @@ namespace UI
constexpr bool dock_syncmanagement = true;
constexpr bool auto_confirm_discovery = true;
constexpr bool auto_confirm_ft_upgrade = false;
constexpr bool forbidden_tech_ship_name = true;
constexpr bool auto_confirm_reveal_ability = false;
constexpr bool auto_confirm_alliance_contribution = false;
constexpr bool auto_open_bulk_claim_flyout = false;
Expand Down
Loading
Loading