mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-07-26 18:00:38 +00:00
fix: apply menu item origin as an offset (#917)
Add `origin` values to the existing item rectangle instead of replacing its coordinates.
This commit is contained in:
@@ -255,8 +255,8 @@ namespace menu::item_scope_sequences
|
||||
{
|
||||
assert(state->m_current_item);
|
||||
|
||||
state->m_current_item->m_rect.x = MenuMatcherFactory::TokenNumericExpressionValue(state, result);
|
||||
state->m_current_item->m_rect.y = MenuMatcherFactory::TokenNumericExpressionValue(state, result);
|
||||
state->m_current_item->m_rect.x += MenuMatcherFactory::TokenNumericExpressionValue(state, result);
|
||||
state->m_current_item->m_rect.y += MenuMatcherFactory::TokenNumericExpressionValue(state, result);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user