Bind player negotiations and release cancelled contract quotes (by Codex)
This commit is contained in:
1 parent
e9483048f4
commit
622973c2cf
18 files changed
+381
-28
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
void App::close_contracts(bool focus) {
|
||||
if (engine_mode_) { engine_contracts_close(focus); return; }
|
||||
auto restore = contracts_return_focus_;
|
||||
if (focus && !restore.empty()) {
|
||||
const auto snapshot = snap();
|
||||
@@ -22,6 +23,7 @@ void App::close_contracts(bool focus) {
|
||||
|
||||
bool App::contracts_action(const std::string &action, Rml::Element *target) {
|
||||
if (menu_ != "contracts") return false;
|
||||
if (engine_mode_) return engine_contracts_action(action, target);
|
||||
constexpr std::array<std::string_view, 10> actions = {"contracts-tab", "contract-player", "contract-close",
|
||||
"contract-term", "contract-salary", "contract-submit", "contract-insurance",
|
||||
"contract-insure", "contracts-bonuses", "contract-bonus"};
|
||||
|
||||
Reference in new issue
Block a user