mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-16 16:43:27 +00:00
Fix not setting dataType when loading menus
This commit is contained in:
1 parent
502e134ed8
commit
e56fa67e46
2 files changed
+2
No files matched your search
@@ -944,6 +944,7 @@ namespace IW4
|
||||
ApplyFlag(item->window.staticFlags, commonItem.m_auto_wrapped, WINDOW_FLAG_AUTO_WRAPPED);
|
||||
ApplyFlag(item->window.staticFlags, commonItem.m_horizontal_scroll, WINDOW_FLAG_HORIZONTAL_SCROLL);
|
||||
item->type = ConvertItemType(commonItem.m_type);
|
||||
item->dataType = item->type;
|
||||
item->window.border = commonItem.m_border;
|
||||
item->window.borderSize = static_cast<float>(commonItem.m_border_size);
|
||||
item->visibleExp = ConvertVisibleExpression(&item->window, commonItem.m_visible_expression.get(), &parentMenu, &commonItem);
|
||||
|
||||
@@ -948,6 +948,7 @@ namespace IW5
|
||||
ApplyFlag(item->window.staticFlags, commonItem.m_auto_wrapped, WINDOW_FLAG_AUTO_WRAPPED);
|
||||
ApplyFlag(item->window.staticFlags, commonItem.m_horizontal_scroll, WINDOW_FLAG_HORIZONTAL_SCROLL);
|
||||
item->type = ConvertItemType(commonItem.m_type);
|
||||
item->dataType = item->type;
|
||||
item->window.border = commonItem.m_border;
|
||||
item->window.borderSize = static_cast<float>(commonItem.m_border_size);
|
||||
item->visibleExp = ConvertVisibleExpression(&item->window, commonItem.m_visible_expression.get(), &parentMenu, &commonItem);
|
||||
|
||||
Reference in new issue
Block a user