Inventory always visible
This commit is contained in:
@@ -6,9 +6,10 @@ var inventory_visible: bool = false
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
$FloatingInventory/panel.rect_position.x = ProjectSettings.get_setting("display/window/size/width") - $FloatingInventory/panel.rect_size.x
|
||||
# Hide inventory by default
|
||||
$FloatingInventory/panel.rect_position.x = \
|
||||
ProjectSettings.get_setting("display/window/size/width")
|
||||
# $FloatingInventory/panel.rect_position.x = \
|
||||
# ProjectSettings.get_setting("display/window/size/width")
|
||||
|
||||
func _on_inventory_button_pressed():
|
||||
if $FloatingInventory/InventoryTween.is_active():
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/images/inventory_icon.png" type="Texture" id=6]
|
||||
|
||||
[node name="inventory_ui" type="Control"]
|
||||
visible = false
|
||||
anchor_right = 0.4
|
||||
anchor_bottom = 0.4
|
||||
margin_right = 768.0
|
||||
@@ -24,9 +25,6 @@ inventory_ui_container = NodePath("FloatingInventory/panel/MarginContainer/Scrol
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="inventory_button" type="TextureButton" parent="HBoxContainer"]
|
||||
margin_right = 1280.0
|
||||
@@ -47,9 +45,6 @@ size_flags_vertical = 3
|
||||
texture = ExtResource( 5 )
|
||||
expand = true
|
||||
stretch_mode = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="FloatingInventory" type="CanvasLayer" parent="."]
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
:action1
|
||||
say player "Es naranja" [!i/i_bombona]
|
||||
say player "Es el segundo bolsillo más grande que he visto" [i/i_bombona]
|
||||
say player "Es el segundo bolsillo más grande que he visto nunca" [i/i_bombona]
|
||||
|
||||
:action2
|
||||
> [!i/i_bombona]
|
||||
|
||||
@@ -62,7 +62,7 @@ script = ExtResource( 2 )
|
||||
position = Vector2( 1476, 363 )
|
||||
scale = Vector2( 0.634168, 0.634168 )
|
||||
frames = SubResource( 2 )
|
||||
frame = 3
|
||||
frame = 1
|
||||
playing = true
|
||||
flip_h = true
|
||||
|
||||
@@ -70,7 +70,6 @@ flip_h = true
|
||||
position = Vector2( 1018, 333 )
|
||||
scale = Vector2( 0.867751, 0.867751 )
|
||||
frames = SubResource( 2 )
|
||||
frame = 2
|
||||
playing = true
|
||||
offset = Vector2( -0.09375, 20.0582 )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user