| 30 | } |
| 31 | |
| 32 | void addButtonDef(const Abyss::UI::ButtonDef &def) { |
| 33 | if (buttonDefs.contains(def.name)) |
| 34 | throw std::runtime_error("ButtonDef already exists"); |
| 35 | |
| 36 | buttonDefs.emplace(def.name, def); |
| 37 | } |
| 38 | |
| 39 | void removeButtonDef(const std::string_view name) { |
| 40 | const auto it = buttonDefs.find(name); |