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="."]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user