Bind environment and advertising to confirmed engine actions (by Codex)
This commit is contained in:
1 parent
dcf42f2da7
commit
e9483048f4
19 files changed
+395
-23
No files matched your search
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
bool App::advertising_action(const std::string &action, Rml::Element *target) {
|
||||
if (!action.starts_with("ad-")) return false;
|
||||
if (engine_mode_) return engine_commerce_action(action, target);
|
||||
if (menu_ != "advertising" || !source_ || !world_) return true;
|
||||
if (action == "ad-contract" && target) {
|
||||
const int slot = target->GetAttribute<int>("data-id", -1);
|
||||
|
||||
Reference in new issue
Block a user