fix(godot3.6): fixed inventory background

This commit is contained in:
2024-08-25 12:28:35 +02:00
parent 3d3e7220ec
commit 26328155df
4 changed files with 7 additions and 6 deletions

View File

@@ -89,6 +89,11 @@ margin_right = 1186.0
margin_bottom = 90.0 margin_bottom = 90.0
size_flags_horizontal = 3 size_flags_horizontal = 3
[node name="inventory_bg" type="Polygon2D" parent="CanvasLayer/ui/HBoxContainer"]
position = Vector2( 0, -964 )
color = Color( 0.156863, 0.0627451, 0, 1 )
polygon = PoolVector2Array( 0, 875, 1280, 875, 1280, 1047, 0, 1047 )
[node name="inventory_ui" parent="CanvasLayer/ui/HBoxContainer" instance=ExtResource( 1 )] [node name="inventory_ui" parent="CanvasLayer/ui/HBoxContainer" instance=ExtResource( 1 )]
anchor_right = 0.0 anchor_right = 0.0
anchor_bottom = 0.0 anchor_bottom = 0.0

View File

@@ -20,10 +20,6 @@ inventory_ui_container = NodePath("FloatingInventory/panel/MarginContainer/Scrol
[node name="FloatingInventory" type="CanvasLayer" parent="."] [node name="FloatingInventory" type="CanvasLayer" parent="."]
[node name="Polygon2D" type="Polygon2D" parent="FloatingInventory"]
color = Color( 0.156863, 0.0627451, 0, 1 )
polygon = PoolVector2Array( -3, 578, 1280, 578, 1280, 752, -3, 757 )
[node name="panel" type="TextureRect" parent="FloatingInventory"] [node name="panel" type="TextureRect" parent="FloatingInventory"]
anchor_left = 1.0 anchor_left = 1.0
anchor_top = 1.0 anchor_top = 1.0

View File

@@ -1046,8 +1046,8 @@ esc_show_debug_prompt={
} }
switch_action_verb={ switch_action_verb={
"deadzone": 0.5, "deadzone": 0.5,
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":4,"pressed":false,"doubleclick":false,"script":null) "events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":4,"canceled":false,"pressed":false,"doubleclick":false,"script":null)
, Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":5,"pressed":false,"doubleclick":false,"script":null) , Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":5,"canceled":false,"pressed":false,"doubleclick":false,"script":null)
] ]
} }
ui_show_hints={ ui_show_hints={