From 344408f23ccfcc680b126abd5ed992cdb0a49254 Mon Sep 17 00:00:00 2001 From: oier Date: Sat, 16 Sep 2023 14:45:49 +0200 Subject: [PATCH] replaced inventory bg with colored polygon --- .../inventory/inventory_ui.tscn | 34 ++++++------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/gymkhana/addons/escoria-ui-return-monkey-island/inventory/inventory_ui.tscn b/gymkhana/addons/escoria-ui-return-monkey-island/inventory/inventory_ui.tscn index f851727b..b20f4b01 100644 --- a/gymkhana/addons/escoria-ui-return-monkey-island/inventory/inventory_ui.tscn +++ b/gymkhana/addons/escoria-ui-return-monkey-island/inventory/inventory_ui.tscn @@ -1,8 +1,7 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=3 format=2] [ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/inventory/inventory_ui.gd" type="Script" id=1] [ext_resource path="res://addons/escoria-core/ui_library/inventory/esc_inventory_container.gd" type="Script" id=3] -[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/images/inventory-bg.png" type="Texture" id=4] [node name="inventory_ui" type="Control"] anchor_right = 0.5 @@ -21,38 +20,27 @@ inventory_ui_container = NodePath("FloatingInventory/panel/MarginContainer/Scrol [node name="FloatingInventory" type="CanvasLayer" parent="."] -[node name="paper" type="TextureRect" parent="FloatingInventory"] -anchor_right = 1.0 -anchor_bottom = 1.0 -margin_top = 500.0 -margin_right = 2053.0 -margin_bottom = 631.0 -rect_scale = Vector2( 0.39, 0.29 ) -mouse_filter = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 -texture = ExtResource( 4 ) -stretch_mode = 1 +[node name="Polygon2D" type="Polygon2D" parent="FloatingInventory"] +color = Color( 0.156863, 0.0627451, 0, 1 ) +polygon = PoolVector2Array( -3, 532, 1279, 532, 1279, 752, -3, 757 ) [node name="panel" type="TextureRect" parent="FloatingInventory"] anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -margin_left = -516.0 +margin_left = -1276.0 margin_top = -160.0 rect_min_size = Vector2( 0, 160 ) size_flags_horizontal = 3 size_flags_vertical = 3 expand = true -__meta__ = { -"_edit_use_anchors_": false -} [node name="MarginContainer" type="MarginContainer" parent="FloatingInventory/panel"] anchor_right = 1.0 anchor_bottom = 1.0 -margin_left = -500.0 +margin_left = -4.0 +margin_top = 2.0 margin_right = -16.0 size_flags_horizontal = 3 size_flags_vertical = 3 @@ -63,15 +51,15 @@ custom_constants/margin_bottom = 20 [node name="ScrollContainer" type="ScrollContainer" parent="FloatingInventory/panel/MarginContainer"] margin_left = 20.0 -margin_top = 80.0 -margin_right = 980.0 -margin_bottom = 80.0 +margin_top = 79.0 +margin_right = 1244.0 +margin_bottom = 79.0 size_flags_horizontal = 3 size_flags_vertical = 6 scroll_vertical_enabled = false [node name="container" type="HBoxContainer" parent="FloatingInventory/panel/MarginContainer/ScrollContainer"] -margin_right = 960.0 +margin_right = 1224.0 size_flags_horizontal = 3 size_flags_vertical = 3 custom_constants/separation = 20