fix(menu): allow IW4 columns without alignment (#932)

* fix(menu): allow IW4 columns without alignment

* feat: also make alignment optional for iw5 menus

* chore: move menu sequences to anonymous namespace if possible

---------

Co-authored-by: Jan Laupetin <[email protected]>
This commit is contained in:
mo
2026-07-26 23:02:13 +02:00
committed by GitHub
co-authored by Jan Laupetin
parent 8686b42120
commit f99726d62f
7 changed files with 284 additions and 237 deletions
@@ -14,7 +14,7 @@
using namespace menu;
namespace menu
namespace
{
enum class ExpectedScriptToken
{
@@ -195,14 +195,9 @@ namespace menu
});
}
};
} // namespace menu
namespace menu::event_handler_set_scope_sequences
{
class SequenceCloseBlock final : public MenuFileParser::sequence_t
{
static constexpr auto CAPTURE_TOKEN = 1;
public:
SequenceCloseBlock()
{
@@ -922,9 +917,7 @@ namespace menu::event_handler_set_scope_sequences
});
}
};
} // namespace menu::event_handler_set_scope_sequences
using namespace event_handler_set_scope_sequences;
} // namespace
EventHandlerSetScopeSequences::EventHandlerSetScopeSequences(std::vector<std::unique_ptr<MenuFileParser::sequence_t>>& allSequences,
std::vector<MenuFileParser::sequence_t*>& scopeSequences)