From 60b85c933e94849b44210c9545de9833e8b6ecf7 Mon Sep 17 00:00:00 2001 From: penev92 Date: Fri, 25 Feb 2022 01:38:48 +0200 Subject: [PATCH] Reorder asset browser UI's asset list and filters --- mods/cnc/chrome/assetbrowser.yaml | 30 +++++++++++++------------- mods/common/chrome/assetbrowser.yaml | 32 ++++++++++++++-------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/mods/cnc/chrome/assetbrowser.yaml b/mods/cnc/chrome/assetbrowser.yaml index a94dac0982..dcf827136d 100644 --- a/mods/cnc/chrome/assetbrowser.yaml +++ b/mods/cnc/chrome/assetbrowser.yaml @@ -40,9 +40,23 @@ Container@ASSETBROWSER_PANEL: Height: 25 Font: Bold Text: Asset types + Label@FILENAME_DESC: + X: 15 + Y: 95 + Width: 195 + Height: 25 + Font: TinyBold + Align: Center + Text: Filter by name + TextField@FILENAME_INPUT: + X: 15 + Y: 120 + Width: 195 + Height: 25 + Type: Filename ScrollPanel@ASSET_LIST: X: 15 - Y: 100 + Y: 155 Width: 195 Height: PARENT_BOTTOM - 205 CollapseHiddenChildren: True @@ -60,20 +74,6 @@ Container@ASSETBROWSER_PANEL: Height: 25 TooltipContainer: TOOLTIP_CONTAINER TooltipTemplate: SIMPLE_TOOLTIP - Label@FILENAME_DESC: - X: 15 - Y: PARENT_BOTTOM - HEIGHT - 74 - Width: 195 - Height: 25 - Font: TinyBold - Align: Center - Text: Filter by name - TextField@FILENAME_INPUT: - X: 15 - Y: PARENT_BOTTOM - HEIGHT - 50 - Width: 195 - Height: 25 - Type: Filename Label@SPRITE_SCALE: X: PARENT_RIGHT - WIDTH - 440 Y: 31 diff --git a/mods/common/chrome/assetbrowser.yaml b/mods/common/chrome/assetbrowser.yaml index 173e4b2792..9e691570e0 100644 --- a/mods/common/chrome/assetbrowser.yaml +++ b/mods/common/chrome/assetbrowser.yaml @@ -35,11 +35,25 @@ Background@ASSETBROWSER_PANEL: Height: 25 Font: Bold Text: Asset types + Label@FILENAME_DESC: + X: 20 + Y: 115 + Width: 195 + Height: 25 + Font: TinyBold + Align: Center + Text: Filter by name + TextField@FILENAME_INPUT: + X: 20 + Y: 140 + Width: 195 + Height: 25 + Type: Filename ScrollPanel@ASSET_LIST: X: 20 - Y: 120 + Y: 170 Width: 195 - Height: PARENT_BOTTOM - 255 + Height: PARENT_BOTTOM - 250 CollapseHiddenChildren: True Children: ScrollItem@ASSET_TEMPLATE: @@ -55,20 +69,6 @@ Background@ASSETBROWSER_PANEL: Height: 25 TooltipContainer: TOOLTIP_CONTAINER TooltipTemplate: SIMPLE_TOOLTIP - Label@FILENAME_DESC: - X: 20 - Y: 471 - Width: 195 - Height: 25 - Font: TinyBold - Align: Center - Text: Filter by name - TextField@FILENAME_INPUT: - X: 20 - Y: PARENT_BOTTOM - 105 - Width: 195 - Height: 25 - Type: Filename Label@SPRITE_SCALE: X: PARENT_RIGHT - WIDTH - 440 Y: 60