mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Add menu eventhandlerset sequences for if, elseif and else
This commit is contained in:
@ -3,7 +3,13 @@
|
||||
using namespace menu;
|
||||
|
||||
MenuFileParserState::EventHandlerConditionState::EventHandlerConditionState(CommonEventHandlerCondition* condition)
|
||||
: EventHandlerConditionState(condition, false)
|
||||
{
|
||||
}
|
||||
|
||||
MenuFileParserState::EventHandlerConditionState::EventHandlerConditionState(CommonEventHandlerCondition* condition, const bool autoSkip)
|
||||
: m_in_condition_elements(true),
|
||||
m_auto_skip(autoSkip),
|
||||
m_condition(condition)
|
||||
{
|
||||
}
|
||||
@ -22,12 +28,12 @@ MenuFileParserState::MenuFileParserState(const FeatureLevel featureLevel)
|
||||
MenuFileParserState::MenuFileParserState(const FeatureLevel featureLevel, const MenuAssetZoneState* zoneState)
|
||||
: MenuFileParserState(featureLevel)
|
||||
{
|
||||
for(const auto& function : zoneState->m_functions)
|
||||
for (const auto& function : zoneState->m_functions)
|
||||
{
|
||||
m_functions_by_name.emplace(std::make_pair(function->m_name, function.get()));
|
||||
}
|
||||
|
||||
for(const auto& menu : zoneState->m_menus)
|
||||
for (const auto& menu : zoneState->m_menus)
|
||||
{
|
||||
m_menus_by_name.emplace(std::make_pair(menu->m_name, menu.get()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user