mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-18 10:47:57 -05:00
Add item scope sequences for expressions and menueventhandlerset
This commit is contained in:
@ -4,9 +4,11 @@
|
||||
#include <string>
|
||||
|
||||
#include "Generic/GenericColorPropertySequence.h"
|
||||
#include "Generic/GenericExpressionPropertySequence.h"
|
||||
#include "Generic/GenericFloatingPointPropertySequence.h"
|
||||
#include "Generic/GenericIntPropertySequence.h"
|
||||
#include "Generic/GenericKeywordPropertySequence.h"
|
||||
#include "Generic/GenericMenuEventHandlerSetPropertySequence.h"
|
||||
#include "Generic/GenericStringPropertySequence.h"
|
||||
#include "Parsing/Menu/Matcher/MenuMatcherFactory.h"
|
||||
|
||||
@ -321,4 +323,136 @@ void ItemScopeSequences::AddSequences(FeatureLevel featureLevel)
|
||||
state->m_current_item->m_game_message_window_mode = value;
|
||||
}));
|
||||
AddSequence(std::make_unique<SequenceDecodeEffect>());
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywordAndBool("visible", [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_visible_expression = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywordAndBool("disabled", [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_disabled_expression = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "disabled"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_disabled_expression = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "text"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_text_expression = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "material"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_material_expression = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "material"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_material_expression = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "rect", "X"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_rect_x_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "rect", "Y"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_rect_y_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "rect", "W"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_rect_w_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "rect", "H"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_rect_h_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "forecolor", "R"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_forecolor_expressions.m_r_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "forecolor", "G"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_forecolor_expressions.m_g_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "forecolor", "B"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_forecolor_expressions.m_b_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "forecolor", "A"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_forecolor_expressions.m_a_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "forecolor", "RGB"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_forecolor_expressions.m_rgb_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "glowcolor", "R"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_glowcolor_expressions.m_r_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "glowcolor", "G"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_glowcolor_expressions.m_g_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "glowcolor", "B"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_glowcolor_expressions.m_b_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "glowcolor", "A"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_glowcolor_expressions.m_a_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "glowcolor", "RGB"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_glowcolor_expressions.m_rgb_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "backcolor", "R"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_backcolor_expressions.m_r_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "backcolor", "G"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_backcolor_expressions.m_g_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "backcolor", "B"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_backcolor_expressions.m_b_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "backcolor", "A"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_backcolor_expressions.m_a_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(GenericExpressionPropertySequence::WithKeywords({"exp", "backcolor", "RGB"}, [](const MenuFileParserState* state, std::unique_ptr<ICommonExpression> value)
|
||||
{
|
||||
state->m_current_item->m_backcolor_expressions.m_rgb_exp = std::move(value);
|
||||
}));
|
||||
AddSequence(std::make_unique<GenericMenuEventHandlerSetPropertySequence>("onFocus", [](const MenuFileParserState* state, std::unique_ptr<CommonEventHandlerSet> value)
|
||||
{
|
||||
state->m_current_item->m_on_focus = std::move(value);
|
||||
}));
|
||||
AddSequence(std::make_unique<GenericMenuEventHandlerSetPropertySequence>("leaveFocus", [](const MenuFileParserState* state, std::unique_ptr<CommonEventHandlerSet> value)
|
||||
{
|
||||
state->m_current_item->m_on_leave_focus = std::move(value);
|
||||
}));
|
||||
AddSequence(std::make_unique<GenericMenuEventHandlerSetPropertySequence>("mouseEnter", [](const MenuFileParserState* state, std::unique_ptr<CommonEventHandlerSet> value)
|
||||
{
|
||||
state->m_current_item->m_on_mouse_enter = std::move(value);
|
||||
}));
|
||||
AddSequence(std::make_unique<GenericMenuEventHandlerSetPropertySequence>("mouseExit", [](const MenuFileParserState* state, std::unique_ptr<CommonEventHandlerSet> value)
|
||||
{
|
||||
state->m_current_item->m_on_mouse_exit = std::move(value);
|
||||
}));
|
||||
AddSequence(std::make_unique<GenericMenuEventHandlerSetPropertySequence>("mouseEnterText", [](const MenuFileParserState* state, std::unique_ptr<CommonEventHandlerSet> value)
|
||||
{
|
||||
state->m_current_item->m_on_mouse_enter_text = std::move(value);
|
||||
}));
|
||||
AddSequence(std::make_unique<GenericMenuEventHandlerSetPropertySequence>("mouseExitText", [](const MenuFileParserState* state, std::unique_ptr<CommonEventHandlerSet> value)
|
||||
{
|
||||
state->m_current_item->m_on_mouse_exit_text = std::move(value);
|
||||
}));
|
||||
AddSequence(std::make_unique<GenericMenuEventHandlerSetPropertySequence>("action", [](const MenuFileParserState* state, std::unique_ptr<CommonEventHandlerSet> value)
|
||||
{
|
||||
state->m_current_item->m_on_action = std::move(value);
|
||||
}));
|
||||
AddSequence(std::make_unique<GenericMenuEventHandlerSetPropertySequence>("accept", [](const MenuFileParserState* state, std::unique_ptr<CommonEventHandlerSet> value)
|
||||
{
|
||||
state->m_current_item->m_on_accept = std::move(value);
|
||||
}));
|
||||
}
|
||||
|
Reference in New Issue
Block a user