Work on full profile and on switching the window state
This commit is contained in:
@@ -122,14 +122,12 @@ custom_name = "Idle"
|
|||||||
|
|
||||||
[sub_resource type="BTProbability" id="BTProbability_gc1l4"]
|
[sub_resource type="BTProbability" id="BTProbability_gc1l4"]
|
||||||
children = [SubResource("BTWait_8lwgx")]
|
children = [SubResource("BTWait_8lwgx")]
|
||||||
_enabled = false
|
|
||||||
|
|
||||||
[sub_resource type="BTAction" id="BTAction_jq6fo"]
|
[sub_resource type="BTAction" id="BTAction_jq6fo"]
|
||||||
script = ExtResource("2_fe6jf")
|
script = ExtResource("2_fe6jf")
|
||||||
|
|
||||||
[sub_resource type="BTProbability" id="BTProbability_8lwgx"]
|
[sub_resource type="BTProbability" id="BTProbability_8lwgx"]
|
||||||
children = [SubResource("BTAction_jq6fo")]
|
children = [SubResource("BTAction_jq6fo")]
|
||||||
_enabled = false
|
|
||||||
|
|
||||||
[sub_resource type="BTProbabilitySelector" id="BTProbabilitySelector_mtixs"]
|
[sub_resource type="BTProbabilitySelector" id="BTProbabilitySelector_mtixs"]
|
||||||
children = [SubResource("BTProbability_s3kkm"), SubResource("BTProbability_1441p"), SubResource("BTProbability_gc1l4"), SubResource("BTProbability_8lwgx")]
|
children = [SubResource("BTProbability_s3kkm"), SubResource("BTProbability_1441p"), SubResource("BTProbability_gc1l4"), SubResource("BTProbability_8lwgx")]
|
||||||
|
|||||||
@@ -32,6 +32,13 @@ func setup_visitor_ui(spawner: VisitorSpawner)-> void:
|
|||||||
func end_shift() -> void:
|
func end_shift() -> void:
|
||||||
active = false
|
active = false
|
||||||
panel.switch_panel(active)
|
panel.switch_panel(active)
|
||||||
|
var window = get_window()
|
||||||
|
window.mode = Window.MODE_WINDOWED
|
||||||
|
window.position = Vector2i(800,800)
|
||||||
|
window.content_scale_size = Vector2i(345,500)
|
||||||
|
top_menu.hide()
|
||||||
|
panel.get_parent().global_position = Vector2i(5,5)
|
||||||
|
window.size = Vector2i(345,500)
|
||||||
|
|
||||||
func notice(msg : String, time : float = 1) -> void:
|
func notice(msg : String, time : float = 1) -> void:
|
||||||
panel.notice(msg, time)
|
panel.notice(msg, time)
|
||||||
|
|||||||
4
guild.gd
4
guild.gd
@@ -24,6 +24,10 @@ var members : Array[AdventurerData] = []
|
|||||||
var quests : Dictionary[Quest,bool] = {}
|
var quests : Dictionary[Quest,bool] = {}
|
||||||
var hall : Guildhall = null
|
var hall : Guildhall = null
|
||||||
var visitor_spawner : VisitorSpawner = null
|
var visitor_spawner : VisitorSpawner = null
|
||||||
|
var gold : int
|
||||||
|
var vault : Array = []
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
var file = FileAccess.open("res://data/names/surnames.txt", FileAccess.READ)
|
var file = FileAccess.open("res://data/names/surnames.txt", FileAccess.READ)
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ func approach(pos : Vector2) -> void:
|
|||||||
|
|
||||||
func approach_and_interact(obj : Interactable) -> void:
|
func approach_and_interact(obj : Interactable) -> void:
|
||||||
var t : Vector2 = obj.global_position
|
var t : Vector2 = obj.global_position
|
||||||
if obj.has("queue") and obj.queue != null:
|
if "queue" in obj and obj.queue != null:
|
||||||
t = obj.queue.global_position
|
t = obj.queue.global_position
|
||||||
set_movement_target(obj.global_position)
|
set_movement_target(obj.global_position)
|
||||||
nav_agent.target_desired_distance = interaction_range - 5
|
nav_agent.target_desired_distance = interaction_range - 5
|
||||||
|
|||||||
1
profile_window.gd
Normal file
1
profile_window.gd
Normal file
@@ -0,0 +1 @@
|
|||||||
|
extends Window
|
||||||
1
profile_window.gd.uid
Normal file
1
profile_window.gd.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://dpws8rq811nt8
|
||||||
142
profile_window.tscn
Normal file
142
profile_window.tscn
Normal file
@@ -0,0 +1,142 @@
|
|||||||
|
[gd_scene load_steps=2 format=3 uid="uid://djhq68y24p5px"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://biir7hjo6b4nl" path="res://adventurer-profile-pic.png" id="1_4aa5t"]
|
||||||
|
|
||||||
|
[node name="Profile Window" type="Window"]
|
||||||
|
oversampling_override = 1.0
|
||||||
|
size = Vector2i(210, 265)
|
||||||
|
wrap_controls = true
|
||||||
|
unresizable = true
|
||||||
|
popup_window = true
|
||||||
|
|
||||||
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||||
|
anchors_preset = -1
|
||||||
|
offset_right = 40.0
|
||||||
|
offset_bottom = 50.0
|
||||||
|
theme_override_constants/margin_left = 3
|
||||||
|
theme_override_constants/margin_top = 4
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = 0
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="TextureRect" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("1_4aa5t")
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = -4
|
||||||
|
|
||||||
|
[node name="ClassLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/line_spacing = 0
|
||||||
|
text = "Class"
|
||||||
|
|
||||||
|
[node name="LevelLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Lv ##"
|
||||||
|
|
||||||
|
[node name="ExpLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/line_spacing = 0
|
||||||
|
text = "Exp: ##/##"
|
||||||
|
|
||||||
|
[node name="LifeLabel" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||||
|
custom_minimum_size = Vector2(100, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Life: ####/####"
|
||||||
|
|
||||||
|
[node name="EnergyLabel" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/line_spacing = 0
|
||||||
|
text = "Energy: ####/####"
|
||||||
|
|
||||||
|
[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||||
|
custom_minimum_size = Vector2(100, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = -8
|
||||||
|
|
||||||
|
[node name="STRLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer2/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Stat: ##"
|
||||||
|
|
||||||
|
[node name="INTLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer2/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Stat: ##"
|
||||||
|
|
||||||
|
[node name="DEXLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer2/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Stat: ##"
|
||||||
|
|
||||||
|
[node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||||
|
custom_minimum_size = Vector2(100, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = -8
|
||||||
|
|
||||||
|
[node name="CHALabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer2/VBoxContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Stat: ##"
|
||||||
|
|
||||||
|
[node name="FAILabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer2/VBoxContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Stat: ##"
|
||||||
|
|
||||||
|
[node name="LUKLabel" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer2/VBoxContainer2"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Stat: ##"
|
||||||
|
|
||||||
|
[node name="HBoxContainer3" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="WeaponIcon" type="TextureRect" parent="MarginContainer/VBoxContainer/HBoxContainer3"]
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("1_4aa5t")
|
||||||
|
|
||||||
|
[node name="ArmorIcon" type="TextureRect" parent="MarginContainer/VBoxContainer/HBoxContainer3"]
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("1_4aa5t")
|
||||||
|
|
||||||
|
[node name="AccessoryIcon" type="TextureRect" parent="MarginContainer/VBoxContainer/HBoxContainer3"]
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("1_4aa5t")
|
||||||
|
|
||||||
|
[node name="ConsumableList" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="TextureRect" parent="MarginContainer/VBoxContainer/ConsumableList"]
|
||||||
|
custom_minimum_size = Vector2(32, 32)
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("1_4aa5t")
|
||||||
|
expand_mode = 1
|
||||||
|
|
||||||
|
[node name="Sprite2D2" type="TextureRect" parent="MarginContainer/VBoxContainer/ConsumableList"]
|
||||||
|
custom_minimum_size = Vector2(32, 32)
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("1_4aa5t")
|
||||||
|
expand_mode = 1
|
||||||
|
|
||||||
|
[node name="Sprite2D3" type="TextureRect" parent="MarginContainer/VBoxContainer/ConsumableList"]
|
||||||
|
custom_minimum_size = Vector2(32, 32)
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("1_4aa5t")
|
||||||
|
expand_mode = 1
|
||||||
|
|
||||||
|
[node name="Sprite2D4" type="TextureRect" parent="MarginContainer/VBoxContainer/ConsumableList"]
|
||||||
|
custom_minimum_size = Vector2(32, 32)
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("1_4aa5t")
|
||||||
|
expand_mode = 1
|
||||||
|
|
||||||
|
[node name="Sprite2D5" type="TextureRect" parent="MarginContainer/VBoxContainer/ConsumableList"]
|
||||||
|
custom_minimum_size = Vector2(32, 32)
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("1_4aa5t")
|
||||||
|
expand_mode = 1
|
||||||
@@ -24,7 +24,8 @@ Game="*res://game_manager.gd"
|
|||||||
window/size/viewport_width=1920
|
window/size/viewport_width=1920
|
||||||
window/size/viewport_height=1080
|
window/size/viewport_height=1080
|
||||||
window/size/resizable=false
|
window/size/resizable=false
|
||||||
window/stretch/mode="canvas_items"
|
window/size/maximize_disabled=true
|
||||||
|
window/stretch/mode="viewport"
|
||||||
|
|
||||||
[dotnet]
|
[dotnet]
|
||||||
|
|
||||||
@@ -37,6 +38,11 @@ project/assembly_name="pomchronicles"
|
|||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194332,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194332,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
test={
|
||||||
|
"deadzone": 0.2,
|
||||||
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194333,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
[limbo_ai]
|
[limbo_ai]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user