Cambiados los aspectos visuales del juego a algo gotico
This commit is contained in:
1 parent
ec7e35ddf6
commit
967b3a286d
205 files changed
+7056
-1630
No files matched your search
@@ -0,0 +1,16 @@
|
||||
extends Control
|
||||
|
||||
## Mantiene las esquinas del marco a su proporcion original y despeja los controles.
|
||||
## Solo adapta la presentacion; las tres fracciones de vida siguen en el jefe.
|
||||
func _ready() -> void:
|
||||
get_viewport().size_changed.connect(_layout_frame)
|
||||
_layout_frame()
|
||||
|
||||
|
||||
func _layout_frame() -> void:
|
||||
var viewport_size: Vector2 = get_viewport_rect().size
|
||||
var factor: float = minf(1.0, maxf(0.2, (viewport_size.x - 48.0) / 880.0))
|
||||
size = Vector2(880.0, 140.0)
|
||||
scale = Vector2.ONE * factor
|
||||
position = Vector2(roundf((viewport_size.x - 880.0 * factor) * 0.5),
|
||||
roundf(viewport_size.y - 30.0 - 140.0 * factor))
|
||||
@@ -11,6 +11,8 @@ extends CanvasLayer
|
||||
@onready var health_label: Label = $HUD/HealthBar/HealthLabel
|
||||
@onready var effects_label: Label = $HUD/EffectsLabel
|
||||
@onready var warning_label: Label = $HUD/WarningLabel
|
||||
@onready var portrait: TextureRect = $HUD/Emblem
|
||||
@onready var identity_label: Label = $HUD/Title
|
||||
|
||||
var player_ref: Node
|
||||
var _received_health: bool = false
|
||||
@@ -27,6 +29,7 @@ func _ready() -> void:
|
||||
return
|
||||
# Los hijos ejecutan _ready antes que Player; su senal inicial llegara despues de esta conexion.
|
||||
player_ref.connect(&"health_changed", _on_health_changed)
|
||||
call_deferred("_update_identity")
|
||||
effects_label.visible = false
|
||||
# Tambien funciona si el HUD se instancia despues de _ready del jugador.
|
||||
if player_ref.is_node_ready():
|
||||
@@ -67,7 +70,7 @@ func _process(delta: float) -> void:
|
||||
]:
|
||||
var bonus: float = float(player_ref.get(effect[1]))
|
||||
if bonus > 0.0:
|
||||
active.append("%s +%d%% | HASTA GOLPE" % [effect[0], roundi(bonus * 100.0)])
|
||||
active.append("%s +%d%% HASTA GOLPE" % [effect[0], roundi(bonus * 100.0)])
|
||||
|
||||
var shield_hits: int = int(player_ref.get("_shield_hits"))
|
||||
if shield_hits > 0:
|
||||
@@ -88,3 +91,22 @@ func _on_health_changed(current_health: int, max_health: int) -> void:
|
||||
health_bar.highlighted = low_health and amount > 0
|
||||
warning_label.visible = low_health or amount == 0
|
||||
warning_label.text = "SIN VIDA" if amount == 0 else "PELIGRO"
|
||||
|
||||
|
||||
## Retrato derivado del arte del personaje seleccionado; no modifica su estado.
|
||||
func _update_identity() -> void:
|
||||
if not is_instance_valid(player_ref):
|
||||
return
|
||||
var data: CharacterData = player_ref.get("character_data") as CharacterData
|
||||
if data == null:
|
||||
return
|
||||
identity_label.text = data.display_name.to_upper()
|
||||
var portrait_path: String = "res://assets/ashen/portraits/%s.png" % data.id
|
||||
if ResourceLoader.exists(portrait_path, "Texture2D"):
|
||||
var source: Texture2D = load(portrait_path) as Texture2D
|
||||
var bust := AtlasTexture.new()
|
||||
bust.atlas = source
|
||||
bust.region = Rect2(20, 0, 88, 88)
|
||||
portrait.texture = bust
|
||||
elif data.sprite_frames != null and data.sprite_frames.has_animation(&"idle"):
|
||||
portrait.texture = data.sprite_frames.get_frame_texture(&"idle", 0)
|
||||
@@ -1,11 +1,28 @@
|
||||
[gd_scene load_steps=7 format=3]
|
||||
[gd_scene load_steps=8 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://ui/hud/player_health_hud.gd" id="1_hud"]
|
||||
[ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"]
|
||||
[ext_resource type="Script" path="res://ui/hud/thrash_meter.gd" id="meter"]
|
||||
[ext_resource type="Theme" path="res://ui/hud/thrash_hud_theme.tres" id="theme"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_plate.svg" id="plate"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_skull.svg" id="skull"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/ui/hud_frame.png" id="frame"]
|
||||
|
||||
[sub_resource type="Shader" id="PortraitMask"]
|
||||
code = "shader_type canvas_item;
|
||||
render_mode unshaded;
|
||||
varying vec2 portrait_uv;
|
||||
void vertex() {
|
||||
portrait_uv = VERTEX / vec2(78.0,78.0);
|
||||
}
|
||||
void fragment() {
|
||||
vec2 p = portrait_uv * 2.0 - 1.0;
|
||||
if (dot(p,p) > 1.0) discard;
|
||||
vec4 source = texture(TEXTURE, UV);
|
||||
COLOR = vec4(mix(vec3(0.045,0.036,0.039), source.rgb, source.a), 1.0);
|
||||
}
|
||||
"
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="PortraitMaterial"]
|
||||
shader = SubResource("PortraitMask")
|
||||
|
||||
[node name="PlayerHealthHUD" type="CanvasLayer"]
|
||||
layer = 90
|
||||
@@ -24,84 +41,90 @@ grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("theme")
|
||||
|
||||
[node name="Emblem" type="TextureRect" parent="HUD"]
|
||||
material = SubResource("PortraitMaterial")
|
||||
layout_mode = 0
|
||||
offset_left = 43.0
|
||||
offset_top = 44.0
|
||||
offset_right = 121.0
|
||||
offset_bottom = 122.0
|
||||
mouse_filter = 2
|
||||
texture_filter = 1
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="HUD"]
|
||||
layout_mode = 0
|
||||
offset_left = 137.0
|
||||
offset_top = 68.0
|
||||
offset_right = 409.0
|
||||
offset_bottom = 88.0
|
||||
mouse_filter = 2
|
||||
max_value = 30.0
|
||||
value = 30.0
|
||||
show_percentage = false
|
||||
script = ExtResource("meter")
|
||||
fill_color = Color(0.62, 0.09, 0.16, 1)
|
||||
segment_count = 12
|
||||
|
||||
[node name="HealthLabel" type="Label" parent="HUD/HealthBar"]
|
||||
layout_mode = 0
|
||||
offset_left = 162.0
|
||||
offset_top = -32.0
|
||||
offset_right = 266.0
|
||||
offset_bottom = -10.0
|
||||
mouse_filter = 2
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "30 / 30"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="HUD"]
|
||||
layout_mode = 0
|
||||
offset_left = 18.0
|
||||
offset_top = 18.0
|
||||
offset_right = 362.0
|
||||
offset_bottom = 82.0
|
||||
offset_top = 16.0
|
||||
offset_right = 450.0
|
||||
offset_bottom = 160.0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("plate")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Emblem" type="TextureRect" parent="HUD"]
|
||||
layout_mode = 0
|
||||
offset_left = 29.0
|
||||
offset_top = 26.0
|
||||
offset_right = 69.0
|
||||
offset_bottom = 66.0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("skull")
|
||||
texture_filter = 1
|
||||
texture = ExtResource("frame")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Title" type="Label" parent="HUD"]
|
||||
layout_mode = 0
|
||||
offset_left = 84.0
|
||||
offset_top = 25.0
|
||||
offset_right = 152.0
|
||||
offset_bottom = 45.0
|
||||
offset_left = 139.0
|
||||
offset_top = 36.0
|
||||
offset_right = 221.0
|
||||
offset_bottom = 54.0
|
||||
mouse_filter = 2
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "VIDA"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="WarningLabel" type="Label" parent="HUD"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 154.0
|
||||
offset_top = 25.0
|
||||
offset_right = 212.0
|
||||
offset_bottom = 45.0
|
||||
offset_left = 249.0
|
||||
offset_top = 38.0
|
||||
offset_right = 313.0
|
||||
offset_bottom = 54.0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(1, 0.52, 0.42, 1)
|
||||
theme_override_colors/font_color = Color(0.98, 0.44, 0.36, 1)
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "PELIGRO"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="HUD"]
|
||||
layout_mode = 0
|
||||
offset_left = 84.0
|
||||
offset_top = 48.0
|
||||
offset_right = 346.0
|
||||
offset_bottom = 68.0
|
||||
mouse_filter = 2
|
||||
max_value = 50.0
|
||||
value = 50.0
|
||||
show_percentage = false
|
||||
script = ExtResource("meter")
|
||||
fill_color = Color(0.84, 0.18, 0.25, 1)
|
||||
segment_count = 12
|
||||
|
||||
[node name="HealthLabel" type="Label" parent="HUD/HealthBar"]
|
||||
layout_mode = 0
|
||||
offset_left = 132.0
|
||||
offset_top = -23.0
|
||||
offset_right = 262.0
|
||||
offset_bottom = -3.0
|
||||
mouse_filter = 2
|
||||
text = "50 / 50"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="EffectsLabel" type="Label" parent="HUD"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 22.0
|
||||
offset_top = 160.0
|
||||
offset_right = 362.0
|
||||
offset_bottom = 300.0
|
||||
offset_left = 34.0
|
||||
offset_top = 169.0
|
||||
offset_right = 420.0
|
||||
offset_bottom = 281.0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(0.85, 0.9, 0.64, 1)
|
||||
theme_override_colors/font_color = Color(0.79, 0.72, 0.57, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = ""
|
||||
horizontal_alignment = 0
|
||||
|
||||
@@ -48,4 +48,5 @@ func _on_special_charge_changed(current_charge: int, max_charge: int) -> void:
|
||||
status_label.text = "LISTO"
|
||||
else:
|
||||
status_label.text = "CARGANDO"
|
||||
status_label.add_theme_color_override("font_color", Color("e4f39a") if charged else Color("93a3a0"))
|
||||
status_label.visible = charged or not available
|
||||
status_label.add_theme_color_override("font_color", Color("c6ae78") if charged else Color("829795"))
|
||||
@@ -1,11 +1,9 @@
|
||||
[gd_scene load_steps=7 format=3]
|
||||
[gd_scene load_steps=5 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://ui/hud/special_charge_hud.gd" id="1_hud"]
|
||||
[ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"]
|
||||
[ext_resource type="Script" path="res://ui/hud/thrash_meter.gd" id="meter"]
|
||||
[ext_resource type="Theme" path="res://ui/hud/thrash_hud_theme.tres" id="theme"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_plate.svg" id="plate"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ui/hud/thrash_bolt.svg" id="bolt"]
|
||||
|
||||
[node name="SpecialChargeHUD" type="CanvasLayer"]
|
||||
layer = 95
|
||||
@@ -24,83 +22,67 @@ grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("theme")
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="HUD"]
|
||||
layout_mode = 0
|
||||
offset_left = 18.0
|
||||
offset_top = 86.0
|
||||
offset_right = 362.0
|
||||
offset_bottom = 150.0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("plate")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Emblem" type="TextureRect" parent="HUD"]
|
||||
layout_mode = 0
|
||||
offset_left = 29.0
|
||||
offset_top = 94.0
|
||||
offset_right = 69.0
|
||||
offset_bottom = 134.0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("bolt")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="Title" type="Label" parent="HUD"]
|
||||
layout_mode = 0
|
||||
offset_left = 84.0
|
||||
offset_top = 93.0
|
||||
offset_right = 155.0
|
||||
offset_bottom = 113.0
|
||||
offset_left = 139.0
|
||||
offset_top = 118.0
|
||||
offset_right = 193.0
|
||||
offset_bottom = 136.0
|
||||
mouse_filter = 2
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_colors/font_color = Color(0.72, 0.69, 0.55, 1)
|
||||
text = "SOLO"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="HUD"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 158.0
|
||||
offset_top = 93.0
|
||||
offset_right = 270.0
|
||||
offset_bottom = 113.0
|
||||
offset_left = 222.0
|
||||
offset_top = 120.0
|
||||
offset_right = 321.0
|
||||
offset_bottom = 134.0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(0.57, 0.64, 0.63, 1)
|
||||
theme_override_colors/font_color = Color(0.52, 0.6, 0.59, 1)
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "CARGANDO"
|
||||
horizontal_alignment = 1
|
||||
horizontal_alignment = 0
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="SpecialBar" type="ProgressBar" parent="HUD"]
|
||||
layout_mode = 0
|
||||
offset_left = 84.0
|
||||
offset_top = 116.0
|
||||
offset_right = 346.0
|
||||
offset_bottom = 134.0
|
||||
offset_left = 139.0
|
||||
offset_top = 102.0
|
||||
offset_right = 373.0
|
||||
offset_bottom = 112.0
|
||||
mouse_filter = 2
|
||||
max_value = 100.0
|
||||
value = 0.0
|
||||
show_percentage = false
|
||||
script = ExtResource("meter")
|
||||
fill_color = Color(0.74, 0.89, 0.27, 1)
|
||||
fill_color = Color(0.25, 0.54, 0.57, 1)
|
||||
segment_count = 16
|
||||
activation_ratio = 0.25
|
||||
show_damage_trail = false
|
||||
|
||||
[node name="SpecialLabel" type="Label" parent="HUD/SpecialBar"]
|
||||
layout_mode = 0
|
||||
offset_left = 192.0
|
||||
offset_top = -23.0
|
||||
offset_right = 262.0
|
||||
offset_bottom = -3.0
|
||||
offset_left = 182.0
|
||||
offset_top = 16.0
|
||||
offset_right = 234.0
|
||||
offset_bottom = 34.0
|
||||
mouse_filter = 2
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "0%"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="ThresholdLabel" type="Label" parent="HUD"]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 84.0
|
||||
offset_top = 136.0
|
||||
offset_right = 244.0
|
||||
offset_bottom = 146.0
|
||||
offset_left = 139.0
|
||||
offset_top = 138.0
|
||||
offset_right = 373.0
|
||||
offset_bottom = 150.0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(0.66, 0.71, 0.64, 1)
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "MIN 25 PT"
|
||||
@@ -7,9 +7,9 @@
|
||||
[resource]
|
||||
default_font = ExtResource("pixel_font")
|
||||
default_font_size = 16
|
||||
Label/colors/font_color = Color(0.91, 0.91, 0.82, 1)
|
||||
Label/colors/font_color = Color(0.86, 0.81, 0.68, 1)
|
||||
Label/colors/font_shadow_color = Color(0.02, 0.03, 0.04, 1)
|
||||
Label/constants/shadow_offset_x = 1
|
||||
Label/constants/shadow_offset_y = 1
|
||||
Label/constants/shadow_offset_x = 2
|
||||
Label/constants/shadow_offset_y = 2
|
||||
ProgressBar/styles/background = SubResource("EmptyBar")
|
||||
ProgressBar/styles/fill = SubResource("EmptyBar")
|
||||
+22
-43
@@ -3,11 +3,11 @@ class_name ThrashMeter
|
||||
extends ProgressBar
|
||||
|
||||
## Medidor visual compartido por vida y especial; no conoce al jugador ni modifica el combate.
|
||||
## Conserva el contrato de ProgressBar (value/max_value) y dibuja segmentos de amplificador.
|
||||
## Conserva el contrato de ProgressBar (value/max_value) y dibuja un deposito continuo de sangre o luz espectral.
|
||||
## Solo este componente visual se ejecuta en el editor; los controladores del HUD no son @tool.
|
||||
|
||||
@export_group("Thrash Appearance")
|
||||
## Color de los segmentos llenos. La escena de vida usa rojo y la de especial, verde acido.
|
||||
## Color de los segmentos llenos. La escena de vida usa carmesi y la de especial, turquesa espectral.
|
||||
@export var fill_color: Color = Color("d73949"):
|
||||
set(new_value):
|
||||
fill_color = new_value
|
||||
@@ -145,49 +145,28 @@ func _draw() -> void:
|
||||
if size.x < 8.0 or size.y < 6.0:
|
||||
return
|
||||
var shown: float = clampf(value / maxf(max_value, 1.0), 0.0, 1.0) if Engine.is_editor_hint() else _display_ratio
|
||||
var inner := Rect2(Vector2(2, 2), size - Vector2(4, 4))
|
||||
var count: int = maxi(segment_count, 1)
|
||||
var step_width: float = inner.size.x / float(count)
|
||||
var cell_width: float = maxf(step_width - 2.0, 1.0)
|
||||
draw_rect(Rect2(Vector2.ZERO, size), Color("05090b"))
|
||||
draw_rect(Rect2(Vector2.ZERO, size), Color("3b464b"), false, 1.0)
|
||||
for index: int in range(count):
|
||||
var cell := Rect2(inner.position + Vector2(float(index) * step_width, 0), Vector2(cell_width, inner.size.y))
|
||||
_draw_segment(cell, 1.0, Color("202b30"))
|
||||
if show_damage_trail and not Engine.is_editor_hint():
|
||||
_draw_segment(cell, clampf(_trail_ratio * count - index, 0.0, 1.0), Color("a99774"))
|
||||
var fraction: float = clampf(shown * count - index, 0.0, 1.0)
|
||||
_draw_segment(cell, fraction, fill_color)
|
||||
if fraction > 0.0:
|
||||
# Bisel iluminado y una linea de sombra dentro de cada segmento.
|
||||
var bevel: float = minf(3.0, cell.size.x * 0.25)
|
||||
var length: float = (cell.size.x - bevel) * fraction
|
||||
draw_line(cell.position + Vector2(bevel, 1), cell.position + Vector2(bevel + length, 1), fill_color.lightened(0.45), 1.0)
|
||||
draw_line(cell.position + Vector2(0, cell.size.y - 1), cell.position + Vector2(length, cell.size.y - 1), fill_color.darkened(0.4), 1.0)
|
||||
|
||||
var inner := Rect2(Vector2(1, 1), size - Vector2(2, 2))
|
||||
draw_rect(Rect2(Vector2.ZERO, size), Color("100e13"))
|
||||
draw_rect(inner, Color("21181e"))
|
||||
if show_damage_trail and not Engine.is_editor_hint() and _trail_ratio > shown:
|
||||
draw_rect(Rect2(inner.position, Vector2(floorf(inner.size.x * _trail_ratio), inner.size.y)), Color("b99874"))
|
||||
var filled_width: float = floorf(inner.size.x * shown)
|
||||
if filled_width > 0.0:
|
||||
var fill := Rect2(inner.position, Vector2(filled_width, inner.size.y))
|
||||
draw_rect(fill, fill_color.darkened(0.3))
|
||||
draw_rect(Rect2(fill.position, Vector2(filled_width, maxf(1.0, floorf(fill.size.y * 0.55)))), fill_color)
|
||||
draw_line(fill.position, fill.position + Vector2(filled_width, 0), fill_color.lightened(0.45), 1.0)
|
||||
draw_line(fill.position + Vector2(0, 2), fill.position + Vector2(filled_width, 2), fill_color.lightened(0.15), 1.0)
|
||||
# Pequenias incisiones de metal reflejan luz; el nivel de carga sigue continuo.
|
||||
for x: int in range(11, int(filled_width), 37):
|
||||
draw_rect(Rect2(Vector2(x, maxf(2.0, size.y - 4.0)), Vector2(2, 1)), fill_color.lightened(0.2))
|
||||
if activation_ratio >= 0.0:
|
||||
var marker_x: float = inner.position.x + inner.size.x * clampf(activation_ratio, 0.0, 1.0)
|
||||
draw_line(Vector2(marker_x, 1), Vector2(marker_x, size.y - 1), Color(0.94, 0.94, 0.79, 0.65), 1.0)
|
||||
draw_colored_polygon(PackedVector2Array([
|
||||
Vector2(marker_x, size.y), Vector2(marker_x - 3, size.y + 4), Vector2(marker_x + 3, size.y + 4)
|
||||
]), Color("e7e7ca"))
|
||||
var marker_x: float = floorf(inner.position.x + inner.size.x * clampf(activation_ratio, 0.0, 1.0))
|
||||
draw_line(Vector2(marker_x, 1), Vector2(marker_x, size.y - 1), Color(0.85, 0.77, 0.56, 0.7), 1.0)
|
||||
if highlighted:
|
||||
var strength: float = 0.7
|
||||
var strength: float = 0.4
|
||||
if animations_enabled and not Engine.is_editor_hint():
|
||||
strength = 0.65 + sin(_pulse_phase) * 0.2
|
||||
draw_rect(Rect2(Vector2(-1, -1), size + Vector2(2, 2)), Color(fill_color, strength), false, 1.0)
|
||||
strength = 0.35 + sin(_pulse_phase) * 0.13
|
||||
draw_line(Vector2(1, 0), Vector2(maxf(filled_width, 1.0), 0), Color(fill_color.lightened(0.7), strength), 1.0)
|
||||
if _damage_flash > 0.0 and animations_enabled and not Engine.is_editor_hint():
|
||||
draw_rect(Rect2(Vector2.ZERO, size), Color(1.0, 0.87, 0.76, _damage_flash * 1.5))
|
||||
|
||||
|
||||
## Recorta cada segmento en diagonal sin texturas adicionales ni shaders.
|
||||
func _draw_segment(rect: Rect2, fraction: float, color: Color) -> void:
|
||||
if fraction <= 0.0:
|
||||
return
|
||||
var bevel: float = minf(3.0, rect.size.x * 0.25)
|
||||
var length: float = (rect.size.x - bevel) * fraction
|
||||
var origin: Vector2 = rect.position
|
||||
draw_colored_polygon(PackedVector2Array([
|
||||
origin + Vector2(bevel, 0), origin + Vector2(bevel + length, 0),
|
||||
origin + Vector2(length, rect.size.y), origin + Vector2(0, rect.size.y)
|
||||
]), color)
|
||||
@@ -0,0 +1,29 @@
|
||||
[gd_scene load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/environment/abbey_back.png" id="background"]
|
||||
|
||||
[sub_resource type="Shader" id="Vignette"]
|
||||
code = "shader_type canvas_item;
|
||||
render_mode unshaded;
|
||||
void fragment() {
|
||||
vec4 art = texture(TEXTURE, UV);
|
||||
vec2 p = SCREEN_UV * 2.0 - 1.0;
|
||||
float vignette = 1.0 - smoothstep(0.3, 1.45, length(p));
|
||||
float shade = 0.26 + 0.50 * vignette;
|
||||
COLOR = vec4(art.rgb * shade * vec3(0.90,0.90,1.0), art.a);
|
||||
}
|
||||
"
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="VignetteMaterial"]
|
||||
shader = SubResource("Vignette")
|
||||
|
||||
[node name="AshenBackdrop" type="TextureRect"]
|
||||
material = SubResource("VignetteMaterial")
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
mouse_filter = 2
|
||||
texture_filter = 1
|
||||
texture = ExtResource("background")
|
||||
expand_mode = 1
|
||||
stretch_mode = 6
|
||||
@@ -2,7 +2,7 @@ class_name CharacterCard
|
||||
extends Button
|
||||
|
||||
## Una tarjeta es un boton completo: imagen y etiquetas no interceptan el tacto.
|
||||
## Su retrato usa el primer idle del mismo SpriteFrames que se vera durante la partida.
|
||||
## Retrato derivado del primer idle; el SpriteFrames sigue siendo el fallback del editor.
|
||||
signal character_chosen(character: CharacterData)
|
||||
@export var character_data: CharacterData
|
||||
|
||||
@@ -11,11 +11,14 @@ func _ready() -> void:
|
||||
if character_data == null:
|
||||
disabled = true
|
||||
return
|
||||
$Content/Layout/Name.text = character_data.display_name
|
||||
$Content/Layout/Name.text = character_data.display_name.to_upper()
|
||||
$Content/Layout/Role.text = character_data.role_name
|
||||
var frames: SpriteFrames = character_data.sprite_frames
|
||||
if frames != null and frames.has_animation(&"idle") and frames.get_frame_count(&"idle") > 0:
|
||||
$Content/Layout/Portrait.texture = frames.get_frame_texture(&"idle", 0)
|
||||
var portrait_path: String = "res://assets/ashen/portraits/%s.png" % character_data.id
|
||||
if ResourceLoader.exists(portrait_path, "Texture2D"):
|
||||
$Content/Layout/Portrait.texture = load(portrait_path) as Texture2D
|
||||
tooltip_text = character_data.display_name + " - " + character_data.role_name
|
||||
pressed.connect(_choose)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
[ext_resource type="Script" path="res://ui/menu/character_card.gd" id="script"]
|
||||
|
||||
[node name="CharacterCard" type="Button"]
|
||||
custom_minimum_size = Vector2(140, 184)
|
||||
custom_minimum_size = Vector2(220, 216)
|
||||
size_flags_horizontal = 3
|
||||
script = ExtResource("script")
|
||||
|
||||
@@ -13,10 +13,10 @@ anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
mouse_filter = 2
|
||||
theme_override_constants/margin_left = 12
|
||||
theme_override_constants/margin_top = 8
|
||||
theme_override_constants/margin_right = 12
|
||||
theme_override_constants/margin_bottom = 10
|
||||
theme_override_constants/margin_left = 24
|
||||
theme_override_constants/margin_top = 16
|
||||
theme_override_constants/margin_right = 24
|
||||
theme_override_constants/margin_bottom = 16
|
||||
|
||||
[node name="Layout" type="VBoxContainer" parent="Content"]
|
||||
layout_mode = 2
|
||||
@@ -24,7 +24,7 @@ mouse_filter = 2
|
||||
theme_override_constants/separation = 4
|
||||
|
||||
[node name="Portrait" type="TextureRect" parent="Content/Layout"]
|
||||
custom_minimum_size = Vector2(0, 112)
|
||||
custom_minimum_size = Vector2(0, 128)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
@@ -35,13 +35,14 @@ stretch_mode = 5
|
||||
[node name="Name" type="Label" parent="Content/Layout"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_font_sizes/font_size = 22
|
||||
theme_override_font_sizes/font_size = 24
|
||||
text = "PERSONAJE"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="Content/Layout"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_font_sizes/font_size = 14
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_colors/font_color = Color(0.60, 0.57, 0.48, 1)
|
||||
text = "INTEGRANTE"
|
||||
horizontal_alignment = 1
|
||||
@@ -15,6 +15,7 @@ script = ExtResource("script")
|
||||
[node name="LevelName" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_colors/font_color = Color(0.64, 0.60, 0.51, 1)
|
||||
text = "Elige quien entra en el nivel"
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 3
|
||||
|
||||
@@ -149,7 +149,7 @@ func _update_screen() -> void:
|
||||
cancel_button.visible = _screen == Screen.CONFIRM_EXIT
|
||||
match _screen:
|
||||
Screen.PAUSED:
|
||||
heading.add_theme_color_override("font_color", Color(0.9, 0.96, 0.61))
|
||||
heading.add_theme_color_override("font_color", Color(0.88, 0.79, 0.60))
|
||||
heading.text = "PAUSA"
|
||||
description.text = "Partida en pausa. Puedes continuar o abandonar el intento."
|
||||
Screen.CONFIRM_EXIT:
|
||||
@@ -158,11 +158,11 @@ func _update_screen() -> void:
|
||||
description.text = "Perderás el avance de esta pantalla y los objetos raros aún no confirmados."
|
||||
confirm_button.text = "SI, IR AL SELECTOR" if _exit_to_levels else "SI, IR AL TITULO"
|
||||
Screen.DEFEAT:
|
||||
heading.add_theme_color_override("font_color", Color(1.0, 0.52, 0.49))
|
||||
heading.add_theme_color_override("font_color", Color(0.83, 0.34, 0.32))
|
||||
heading.text = "HAS MUERTO..."
|
||||
description.text = "El intento ha terminado. Puedes volver a empezar o elegir otro nivel."
|
||||
Screen.VICTORY:
|
||||
heading.add_theme_color_override("font_color", Color(0.82, 0.97, 0.57))
|
||||
heading.add_theme_color_override("font_color", Color(0.88, 0.78, 0.52))
|
||||
heading.text = "¡VICTORIA!"
|
||||
if _next_level_path.is_empty():
|
||||
description.text = "¡Nivel completado! No quedan mas niveles disponibles por ahora."
|
||||
|
||||
@@ -1,26 +1,34 @@
|
||||
[gd_scene load_steps=5 format=3]
|
||||
[gd_scene load_steps=7 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://ui/menu/level_navigation.gd" id="script"]
|
||||
[ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"]
|
||||
[ext_resource type="Theme" path="res://ui/menu/menu_theme.tres" id="theme"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="ResultPanel"]
|
||||
content_margin_left = 0.0
|
||||
content_margin_top = 0.0
|
||||
content_margin_right = 0.0
|
||||
content_margin_bottom = 0.0
|
||||
bg_color = Color(0.095, 0.115, 0.145, 0.98)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color(0.56, 0.67, 0.49, 1)
|
||||
corner_radius_top_left = 12
|
||||
corner_radius_top_right = 12
|
||||
corner_radius_bottom_left = 12
|
||||
corner_radius_bottom_right = 12
|
||||
shadow_color = Color(0, 0, 0, 0.55)
|
||||
shadow_size = 12
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="plate"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="ResultPanel"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 36.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 36.0
|
||||
texture_margin_bottom = 16.0
|
||||
content_margin_left = 12.0
|
||||
content_margin_top = 10.0
|
||||
content_margin_right = 12.0
|
||||
content_margin_bottom = 10.0
|
||||
modulate_color = Color(0.86, 0.76, 0.58, 1)
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="PausePlate"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 24.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 36.0
|
||||
texture_margin_bottom = 16.0
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 8.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 8.0
|
||||
modulate_color = Color(0.67, 0.62, 0.52, 0.9)
|
||||
|
||||
[node name="LevelNavigation" type="CanvasLayer"]
|
||||
process_mode = 3
|
||||
@@ -39,16 +47,21 @@ mouse_filter = 2
|
||||
theme = ExtResource("theme")
|
||||
|
||||
[node name="Pause" type="Button" parent="Overlay"]
|
||||
custom_minimum_size = Vector2(148, 60)
|
||||
custom_minimum_size = Vector2(72, 48)
|
||||
layout_mode = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -164.0
|
||||
offset_top = 16.0
|
||||
offset_right = -16.0
|
||||
offset_bottom = 76.0
|
||||
offset_left = -90.0
|
||||
offset_top = 18.0
|
||||
offset_right = -18.0
|
||||
offset_bottom = 66.0
|
||||
grow_horizontal = 0
|
||||
text = "II PAUSA"
|
||||
theme_override_styles/normal = SubResource("PausePlate")
|
||||
theme_override_styles/hover = SubResource("PausePlate")
|
||||
theme_override_styles/pressed = SubResource("PausePlate")
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "II"
|
||||
tooltip_text = "Pausa (Esc)"
|
||||
|
||||
[node name="Pending" type="Label" parent="Overlay"]
|
||||
visible = false
|
||||
@@ -61,7 +74,7 @@ offset_right = -16.0
|
||||
offset_bottom = 150.0
|
||||
grow_horizontal = 0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(1, 0.8, 0.35, 1)
|
||||
theme_override_colors/font_color = Color(0.86, 0.70, 0.44, 1)
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/shadow_offset_x = 2
|
||||
theme_override_constants/shadow_offset_y = 2
|
||||
@@ -79,7 +92,7 @@ anchor_bottom = 0.5
|
||||
offset_top = -32.0
|
||||
offset_bottom = 48.0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(1, 0.9, 0.55, 1)
|
||||
theme_override_colors/font_color = Color(0.91, 0.81, 0.62, 1)
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/shadow_offset_x = 2
|
||||
theme_override_constants/shadow_offset_y = 2
|
||||
@@ -94,7 +107,7 @@ anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
mouse_filter = 0
|
||||
color = Color(0.015, 0.02, 0.028, 0.85)
|
||||
color = Color(0.018, 0.013, 0.022, 0.83)
|
||||
|
||||
[node name="Dialog" type="CenterContainer" parent="Overlay"]
|
||||
visible = false
|
||||
@@ -109,7 +122,7 @@ offset_bottom = -12.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="Overlay/Dialog"]
|
||||
custom_minimum_size = Vector2(540, 0)
|
||||
custom_minimum_size = Vector2(580, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
@@ -117,9 +130,9 @@ theme_override_styles/panel = SubResource("ResultPanel")
|
||||
|
||||
[node name="Margin" type="MarginContainer" parent="Overlay/Dialog/Panel"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 28
|
||||
theme_override_constants/margin_left = 36
|
||||
theme_override_constants/margin_top = 24
|
||||
theme_override_constants/margin_right = 28
|
||||
theme_override_constants/margin_right = 36
|
||||
theme_override_constants/margin_bottom = 24
|
||||
|
||||
[node name="Options" type="VBoxContainer" parent="Overlay/Dialog/Panel/Margin"]
|
||||
@@ -128,8 +141,8 @@ theme_override_constants/separation = 10
|
||||
|
||||
[node name="Heading" type="Label" parent="Overlay/Dialog/Panel/Margin/Options"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 34
|
||||
theme_override_colors/font_color = Color(0.9, 0.96, 0.61, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_colors/font_color = Color(0.88, 0.79, 0.60, 1)
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 3
|
||||
text = "PAUSA"
|
||||
|
||||
+12
-2
@@ -1,11 +1,12 @@
|
||||
extends Control
|
||||
|
||||
## Menu provisional, coleccion persistente y selector de niveles sin lista manual.
|
||||
## Menu de la abadia, coleccion persistente y selector de niveles sin lista manual.
|
||||
## Solo descubre escenas directamente dentro de levels, nunca sus subcarpetas.
|
||||
const LEVEL_DIRECTORY: String = "res://levels"
|
||||
|
||||
@onready var characters_panel: VBoxContainer = $Margin/Layout/Characters
|
||||
@onready var title_label: Label = $Margin/Layout/Title
|
||||
@onready var brand: TextureRect = $Margin/Layout/Brand
|
||||
@onready var home_panel: VBoxContainer = $Margin/Layout/Home
|
||||
@onready var levels_panel: VBoxContainer = $Margin/Layout/Levels
|
||||
@onready var level_list: VBoxContainer = $Margin/Layout/Levels/Scroll/LevelList
|
||||
@@ -26,6 +27,7 @@ var _selected_level_path: String = ""
|
||||
|
||||
func _ready() -> void:
|
||||
set_process(false)
|
||||
$KeyboardHint.visible = not DisplayServer.is_touchscreen_available()
|
||||
# Volver desde una meta o abandonar exige una nueva eleccion, no un guardado de personaje.
|
||||
var session: RunSessionState = get_node_or_null("/root/RunSession") as RunSessionState
|
||||
var open_levels: bool = session != null and session.show_levels_on_menu_entry
|
||||
@@ -78,6 +80,8 @@ func _show_home() -> void:
|
||||
loading_panel.hide()
|
||||
error_label.hide()
|
||||
title_label.text = "INICIO"
|
||||
title_label.hide()
|
||||
brand.show()
|
||||
play_button.grab_focus()
|
||||
|
||||
|
||||
@@ -95,7 +99,7 @@ func _show_levels() -> void:
|
||||
var button := Button.new()
|
||||
button.text = level_label(path)
|
||||
button.tooltip_text = path.get_file()
|
||||
button.custom_minimum_size.y = 64.0
|
||||
button.custom_minimum_size.y = 72.0
|
||||
button.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
# El texto no fuerza el ancho: sigue cabiendo en pantallas estrechas.
|
||||
button.clip_text = true
|
||||
@@ -107,6 +111,8 @@ func _show_levels() -> void:
|
||||
levels_panel.show()
|
||||
error_label.hide()
|
||||
title_label.text = "ELEGIR NIVEL"
|
||||
title_label.show()
|
||||
brand.hide()
|
||||
if level_list.get_child_count() > 0:
|
||||
(level_list.get_child(0) as Button).grab_focus()
|
||||
else:
|
||||
@@ -121,6 +127,8 @@ func _show_inventory() -> void:
|
||||
characters_panel.hide()
|
||||
error_label.hide()
|
||||
title_label.text = "OBJETOS RAROS"
|
||||
title_label.show()
|
||||
brand.hide()
|
||||
inventory_panel.call("show_collection")
|
||||
|
||||
|
||||
@@ -134,6 +142,8 @@ func _show_characters(path: String) -> void:
|
||||
inventory_panel.hide()
|
||||
error_label.hide()
|
||||
title_label.text = "ELEGIR PERSONAJE"
|
||||
title_label.show()
|
||||
brand.hide()
|
||||
characters_panel.call("show_roster", level_label(path))
|
||||
|
||||
|
||||
|
||||
+54
-27
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3]
|
||||
[gd_scene load_steps=7 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://ui/menu/main_menu.gd" id="script"]
|
||||
[ext_resource type="Theme" path="res://ui/menu/menu_theme.tres" id="theme"]
|
||||
@@ -6,6 +6,9 @@
|
||||
[ext_resource type="PackedScene" path="res://ui/menu/rare_inventory.tscn" id="inventory"]
|
||||
[ext_resource type="PackedScene" path="res://ui/menu/character_select.tscn" id="characters"]
|
||||
|
||||
[ext_resource type="PackedScene" path="res://ui/menu/ashen_backdrop.tscn" id="backdrop"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/ui/title.png" id="brand"]
|
||||
|
||||
[node name="MainMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -16,43 +19,52 @@ grow_vertical = 2
|
||||
theme = ExtResource("theme")
|
||||
script = ExtResource("script")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
[node name="Background" parent="." instance=ExtResource("backdrop")]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
mouse_filter = 2
|
||||
color = Color(0.035, 0.045, 0.055, 1)
|
||||
|
||||
[node name="Margin" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
theme_override_constants/margin_left = 32
|
||||
theme_override_constants/margin_top = 24
|
||||
theme_override_constants/margin_right = 32
|
||||
theme_override_constants/margin_bottom = 24
|
||||
anchor_left = 0.17
|
||||
anchor_top = 0.05
|
||||
anchor_right = 0.83
|
||||
anchor_bottom = 0.93
|
||||
theme_override_constants/margin_left = 8
|
||||
theme_override_constants/margin_top = 8
|
||||
theme_override_constants/margin_right = 8
|
||||
theme_override_constants/margin_bottom = 8
|
||||
|
||||
[node name="Layout" type="VBoxContainer" parent="Margin"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="Brand" type="TextureRect" parent="Margin/Layout"]
|
||||
custom_minimum_size = Vector2(0, 235)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
texture_filter = 1
|
||||
texture = ExtResource("brand")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="Title" type="Label" parent="Margin/Layout"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "INICIO"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Home" type="VBoxContainer" parent="Margin/Layout"]
|
||||
custom_minimum_size = Vector2(440, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/separation = 18
|
||||
theme_override_constants/separation = 12
|
||||
alignment = 1
|
||||
|
||||
[node name="Hint" type="Label" parent="Margin/Layout/Home"]
|
||||
layout_mode = 2
|
||||
text = "Elige un escenario y entra a probar."
|
||||
theme_override_colors/font_color = Color(0.66, 0.62, 0.51, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "DONDE CALLAN LAS CAMPANAS"
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 3
|
||||
|
||||
@@ -64,7 +76,7 @@ text = "JUGAR"
|
||||
[node name="RareItems" type="Button" parent="Margin/Layout/Home"]
|
||||
custom_minimum_size = Vector2(0, 64)
|
||||
layout_mode = 2
|
||||
text = "OBJETOS RAROS"
|
||||
text = "RELICARIO"
|
||||
|
||||
[node name="Quit" type="Button" parent="Margin/Layout/Home"]
|
||||
custom_minimum_size = Vector2(0, 64)
|
||||
@@ -121,17 +133,18 @@ layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
color = Color(0.035, 0.045, 0.055, 1)
|
||||
color = Color(0.025, 0.02, 0.03, 0.96)
|
||||
|
||||
[node name="Content" type="VBoxContainer" parent="Loading"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 32.0
|
||||
offset_top = 24.0
|
||||
offset_right = -32.0
|
||||
offset_bottom = -24.0
|
||||
anchor_left = 0.2
|
||||
anchor_top = 0.4
|
||||
anchor_right = 0.8
|
||||
anchor_bottom = 0.6
|
||||
offset_left = 0.0
|
||||
offset_top = 0.0
|
||||
offset_right = 0.0
|
||||
offset_bottom = 0.0
|
||||
theme_override_constants/separation = 24
|
||||
alignment = 1
|
||||
|
||||
@@ -142,6 +155,20 @@ horizontal_alignment = 1
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="Progress" type="ProgressBar" parent="Loading/Content"]
|
||||
custom_minimum_size = Vector2(0, 24)
|
||||
custom_minimum_size = Vector2(0, 8)
|
||||
layout_mode = 2
|
||||
show_percentage = false
|
||||
|
||||
[node name="KeyboardHint" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchor_left = 0.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -32.0
|
||||
offset_bottom = -12.0
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(0.54, 0.51, 0.45, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "A / D MOVER W SALTAR J ATAQUE K CAER L SOLO"
|
||||
horizontal_alignment = 1
|
||||
+78
-43
@@ -1,54 +1,75 @@
|
||||
[gd_resource type="Theme" load_steps=6 format=3]
|
||||
[gd_resource type="Theme" load_steps=10 format=3]
|
||||
|
||||
[ext_resource type="FontFile" path="res://assets/fonts/PixelOperator8.ttf" id="font"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="plate"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="Normal"]
|
||||
content_margin_left = 22.0
|
||||
content_margin_top = 16.0
|
||||
content_margin_right = 22.0
|
||||
content_margin_bottom = 16.0
|
||||
bg_color = Color(0.12, 0.15, 0.18, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.35, 0.4, 0.43, 1)
|
||||
corner_radius_top_left = 4
|
||||
corner_radius_top_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
corner_radius_bottom_right = 4
|
||||
[sub_resource type="StyleBoxTexture" id="Normal"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 28.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 36.0
|
||||
texture_margin_bottom = 16.0
|
||||
content_margin_left = 36.0
|
||||
content_margin_top = 14.0
|
||||
content_margin_right = 36.0
|
||||
content_margin_bottom = 14.0
|
||||
modulate_color = Color(0.72, 0.65, 0.54, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="Hover"]
|
||||
content_margin_left = 22.0
|
||||
content_margin_top = 16.0
|
||||
content_margin_right = 22.0
|
||||
content_margin_bottom = 16.0
|
||||
bg_color = Color(0.20, 0.25, 0.26, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.7, 0.83, 0.32, 1)
|
||||
[sub_resource type="StyleBoxTexture" id="Hover"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 28.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 36.0
|
||||
texture_margin_bottom = 16.0
|
||||
content_margin_left = 36.0
|
||||
content_margin_top = 14.0
|
||||
content_margin_right = 36.0
|
||||
content_margin_bottom = 14.0
|
||||
modulate_color = Color(1, 0.92, 0.74, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="Pressed"]
|
||||
content_margin_left = 22.0
|
||||
[sub_resource type="StyleBoxTexture" id="Pressed"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 28.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 36.0
|
||||
texture_margin_bottom = 16.0
|
||||
content_margin_left = 36.0
|
||||
content_margin_top = 16.0
|
||||
content_margin_right = 22.0
|
||||
content_margin_bottom = 16.0
|
||||
bg_color = Color(0.25, 0.32, 0.15, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.8, 0.94, 0.4, 1)
|
||||
content_margin_right = 36.0
|
||||
content_margin_bottom = 12.0
|
||||
modulate_color = Color(0.72, 0.40, 0.31, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="Focus"]
|
||||
content_margin_left = 3.0
|
||||
content_margin_top = 3.0
|
||||
content_margin_right = 3.0
|
||||
content_margin_bottom = 3.0
|
||||
bg_color = Color(0, 0, 0, 0)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.85, 0.95, 0.55, 1)
|
||||
border_color = Color(0.87, 0.68, 0.37, 0.9)
|
||||
expand_margin_left = -10.0
|
||||
expand_margin_top = -15.0
|
||||
expand_margin_right = -17.0
|
||||
expand_margin_bottom = -11.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="EmptyBar"]
|
||||
bg_color = Color(0.075, 0.063, 0.075, 1)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.33, 0.26, 0.19, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="FillBar"]
|
||||
bg_color = Color(0.47, 0.32, 0.16, 1)
|
||||
border_width_top = 1
|
||||
border_color = Color(0.80, 0.63, 0.38, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="Track"]
|
||||
bg_color = Color(0.07, 0.055, 0.065, 1)
|
||||
content_margin_left = 6.0
|
||||
content_margin_right = 6.0
|
||||
|
||||
[resource]
|
||||
default_font = ExtResource("font")
|
||||
@@ -58,6 +79,20 @@ Button/styles/hover = SubResource("Hover")
|
||||
Button/styles/pressed = SubResource("Pressed")
|
||||
Button/styles/focus = SubResource("Focus")
|
||||
Button/styles/disabled = SubResource("Normal")
|
||||
Button/colors/font_color = Color(0.94, 0.95, 0.90, 1)
|
||||
Button/colors/font_disabled_color = Color(0.48, 0.52, 0.54, 1)
|
||||
Label/colors/font_color = Color(0.88, 0.91, 0.88, 1)
|
||||
Button/colors/font_color = Color(0.86, 0.81, 0.67, 1)
|
||||
Button/colors/font_hover_color = Color(1, 0.93, 0.75, 1)
|
||||
Button/colors/font_pressed_color = Color(0.96, 0.77, 0.59, 1)
|
||||
Button/colors/font_disabled_color = Color(0.42, 0.39, 0.34, 1)
|
||||
Button/colors/font_shadow_color = Color(0.02, 0.015, 0.02, 1)
|
||||
Button/constants/shadow_offset_x = 2
|
||||
Button/constants/shadow_offset_y = 2
|
||||
Label/colors/font_color = Color(0.82, 0.79, 0.69, 1)
|
||||
Label/colors/font_shadow_color = Color(0.02, 0.015, 0.02, 1)
|
||||
Label/constants/shadow_offset_x = 2
|
||||
Label/constants/shadow_offset_y = 2
|
||||
ProgressBar/styles/background = SubResource("EmptyBar")
|
||||
ProgressBar/styles/fill = SubResource("FillBar")
|
||||
VScrollBar/styles/scroll = SubResource("Track")
|
||||
VScrollBar/styles/grabber = SubResource("FillBar")
|
||||
VScrollBar/styles/grabber_highlight = SubResource("FillBar")
|
||||
VScrollBar/styles/grabber_pressed = SubResource("FillBar")
|
||||
@@ -14,7 +14,8 @@ horizontal_alignment = 1
|
||||
|
||||
[node name="Hint" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
text = "Encuentra el objeto y completa el nivel para conservarlo.\nSus mejoras son permanentes, automaticas y compartidas por todos los personajes."
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "Conserva una reliquia al completar el nivel.\nSus mejoras permanentes protegen a toda la banda."
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 3
|
||||
|
||||
|
||||
+17
-15
@@ -1,12 +1,14 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
[gd_scene load_steps=3 format=3]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="panel"]
|
||||
bg_color = Color(0.085, 0.095, 0.12, 1)
|
||||
border_width_left = 3
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.65, 0.48, 0.18, 1)
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="plate"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="panel"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 28.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 36.0
|
||||
texture_margin_bottom = 24.0
|
||||
modulate_color = Color(0.65, 0.57, 0.45, 1)
|
||||
|
||||
[node name="RareItemCard" type="PanelContainer"]
|
||||
size_flags_horizontal = 3
|
||||
@@ -14,17 +16,17 @@ theme_override_styles/panel = SubResource("panel")
|
||||
|
||||
[node name="Margin" type="MarginContainer" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 16
|
||||
theme_override_constants/margin_top = 16
|
||||
theme_override_constants/margin_right = 16
|
||||
theme_override_constants/margin_bottom = 16
|
||||
theme_override_constants/margin_left = 28
|
||||
theme_override_constants/margin_top = 24
|
||||
theme_override_constants/margin_right = 28
|
||||
theme_override_constants/margin_bottom = 24
|
||||
|
||||
[node name="Row" type="HBoxContainer" parent="Margin"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="Margin/Row"]
|
||||
custom_minimum_size = Vector2(64, 64)
|
||||
custom_minimum_size = Vector2(96, 96)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
texture_filter = 1
|
||||
@@ -44,12 +46,12 @@ text = "Objeto raro"
|
||||
|
||||
[node name="State" type="Label" parent="Margin/Row/Text"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 0.77, 0.26, 1)
|
||||
theme_override_colors/font_color = Color(0.83, 0.66, 0.38, 1)
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="Bonus" type="Label" parent="Margin/Row/Text"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.7, 1, 0.55, 1)
|
||||
theme_override_colors/font_color = Color(0.56, 0.73, 0.72, 1)
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="Description" type="Label" parent="Margin/Row/Text"]
|
||||
|
||||
@@ -1,18 +1,9 @@
|
||||
extends CanvasLayer
|
||||
|
||||
|
||||
## Controles táctiles provisionales para jugar en móvil.
|
||||
##
|
||||
## Los botones no llaman directamente al Player. En su lugar pulsan y liberan
|
||||
## las mismas acciones del InputMap que ya usa el teclado. De esta forma la
|
||||
## lógica de movimiento/combate sigue teniendo una única fuente de entrada:
|
||||
##
|
||||
## teclado -> InputMap <- controles táctiles
|
||||
## |
|
||||
## Player
|
||||
##
|
||||
## Cuando llegue el arte definitivo, esta escena puede cambiar por completo sin
|
||||
## tocar player.gd mientras conserve estas seis acciones.
|
||||
## La misma entrada del teclado, presentada como placas de metal tactiles.
|
||||
## Se muestran en pantallas tactiles; el Inspector permite probarlas en escritorio.
|
||||
@export var show_on_desktop: bool = false
|
||||
|
||||
@onready var move_left_button: Button = $Controls/MoveLeft
|
||||
@onready var move_right_button: Button = $Controls/MoveRight
|
||||
@@ -27,6 +18,7 @@ var _player: Node
|
||||
|
||||
## Asocia botones con las mismas acciones utilizadas por el teclado.
|
||||
func _ready() -> void:
|
||||
$Controls.visible = show_on_desktop or DisplayServer.is_touchscreen_available() or OS.has_feature("mobile")
|
||||
_bind_button(jump_button, &"jump")
|
||||
_bind_button(attack_button, &"attack")
|
||||
_bind_button(ground_pound_button, &"ground_pound")
|
||||
@@ -38,17 +30,18 @@ func _process(_delta: float) -> void:
|
||||
if not is_instance_valid(_player):
|
||||
_player = get_tree().get_first_node_in_group(&"player")
|
||||
if not is_instance_valid(_player):
|
||||
ground_pound_button.text = "GP"
|
||||
ground_pound_button.text = "CAER"
|
||||
ground_pound_button.modulate = Color.WHITE
|
||||
return
|
||||
var remaining: float = float(_player.get("ground_pound_cooldown_timer"))
|
||||
ground_pound_button.text = "GP\n%ds" % ceili(remaining) if remaining > 0.0 else "GP"
|
||||
ground_pound_button.text = "CAER\n%ds" % ceili(remaining) if remaining > 0.0 else "CAER"
|
||||
ground_pound_button.modulate = Color(0.55, 0.55, 0.55, 0.85) if remaining > 0.0 else Color.WHITE
|
||||
|
||||
|
||||
## Mantiene un unico dedo para direccion y permite deslizarlo entre ambos lados.
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event is InputEventScreenTouch:
|
||||
$Controls.show()
|
||||
var touch := event as InputEventScreenTouch
|
||||
if touch.pressed and direction_touch_index == -1:
|
||||
var action := _direction_at(touch.position)
|
||||
|
||||
@@ -1,45 +1,42 @@
|
||||
[gd_scene format=3 uid="uid://g7h185yageqr"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://g7h185yageqr"]
|
||||
|
||||
[ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"]
|
||||
[ext_resource type="Script" path="res://ui/mobile_controls/mobile_controls.gd" id="1_controls"]
|
||||
[ext_resource type="Theme" path="res://ui/menu/menu_theme.tres" id="theme"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="plate"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://2kbajcohyem7" path="res://ui/mobile_controls/mobile_controls.gd" id="1_controls"]
|
||||
[ext_resource type="Texture2D" uid="uid://cj6wl2l43nao2" path="res://assets/ui/mobile_controls/left-arrow.png" id="2_left"]
|
||||
[ext_resource type="Texture2D" uid="uid://y0tsuhk4moj3" path="res://assets/ui/mobile_controls/right-arrow.png" id="3_right"]
|
||||
[ext_resource type="Texture2D" uid="uid://b832qiumqbdwc" path="res://assets/ui/mobile_controls/top-arrow.png" id="4_jump"]
|
||||
[ext_resource type="Texture2D" uid="uid://byb0xo2xlcj4f" path="res://assets/ui/mobile_controls/attack.png" id="5_attack"]
|
||||
[sub_resource type="StyleBoxTexture" id="ButtonNormal"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 24.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 28.0
|
||||
texture_margin_bottom = 16.0
|
||||
content_margin_left = 12.0
|
||||
content_margin_top = 12.0
|
||||
content_margin_right = 12.0
|
||||
content_margin_bottom = 12.0
|
||||
modulate_color = Color(0.68, 0.61, 0.48, 0.78)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="ButtonNormal"]
|
||||
bg_color = Color(0.65, 0.04, 0.04, 0.28)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color(1, 0.15, 0.15, 0.72)
|
||||
corner_radius_top_left = 14
|
||||
corner_radius_top_right = 14
|
||||
corner_radius_bottom_right = 14
|
||||
corner_radius_bottom_left = 14
|
||||
[sub_resource type="StyleBoxTexture" id="ButtonPressed"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 24.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 28.0
|
||||
texture_margin_bottom = 16.0
|
||||
content_margin_left = 12.0
|
||||
content_margin_top = 14.0
|
||||
content_margin_right = 12.0
|
||||
content_margin_bottom = 10.0
|
||||
modulate_color = Color(1, 0.78, 0.51, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="ButtonPressed"]
|
||||
bg_color = Color(0.95, 0.05, 0.05, 0.52)
|
||||
border_width_left = 4
|
||||
border_width_top = 4
|
||||
border_width_right = 4
|
||||
border_width_bottom = 4
|
||||
border_color = Color(1, 0.45, 0.45, 0.95)
|
||||
corner_radius_top_left = 14
|
||||
corner_radius_top_right = 14
|
||||
corner_radius_bottom_right = 14
|
||||
corner_radius_bottom_left = 14
|
||||
|
||||
[node name="MobileControls" type="CanvasLayer" unique_id=478431491]
|
||||
[node name="MobileControls" type="CanvasLayer"]
|
||||
layer = 100
|
||||
script = ExtResource("1_controls")
|
||||
|
||||
[node name="EditorVisibility" type="Node" parent="."]
|
||||
script = ExtResource("editor_ui_visibility")
|
||||
|
||||
[node name="Controls" type="Control" parent="." unique_id=1754744981]
|
||||
[node name="Controls" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -47,139 +44,136 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("theme")
|
||||
|
||||
[node name="MoveLeft" type="Button" parent="Controls" unique_id=981068385]
|
||||
[node name="MoveLeft" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_left = 0.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 50.0
|
||||
offset_top = -170.0
|
||||
offset_right = 188.0
|
||||
offset_bottom = -32.0
|
||||
offset_left = 24.0
|
||||
offset_top = -140.0
|
||||
offset_right = 136.0
|
||||
offset_bottom = -28.0
|
||||
grow_horizontal = 1
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 42
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
icon = ExtResource("2_left")
|
||||
expand_icon = true
|
||||
text = "<<"
|
||||
|
||||
[node name="MoveRight" type="Button" parent="Controls" unique_id=561780368]
|
||||
[node name="MoveRight" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_left = 0.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 208.0
|
||||
offset_top = -170.0
|
||||
offset_right = 346.0
|
||||
offset_bottom = -32.0
|
||||
offset_left = 148.0
|
||||
offset_top = -140.0
|
||||
offset_right = 260.0
|
||||
offset_bottom = -28.0
|
||||
grow_horizontal = 1
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 42
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
icon = ExtResource("3_right")
|
||||
expand_icon = true
|
||||
text = ">>"
|
||||
|
||||
[node name="Jump" type="Button" parent="Controls" unique_id=1396737393]
|
||||
[node name="Jump" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -177.0
|
||||
offset_top = -316.0
|
||||
offset_right = -34.0
|
||||
offset_bottom = -186.0
|
||||
offset_left = -140.0
|
||||
offset_top = -264.0
|
||||
offset_right = -28.0
|
||||
offset_bottom = -152.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 22
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
icon = ExtResource("4_jump")
|
||||
expand_icon = true
|
||||
text = "SALTO"
|
||||
|
||||
[node name="Attack" type="Button" parent="Controls" unique_id=514469811]
|
||||
[node name="Attack" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -330.0
|
||||
offset_top = -228.0
|
||||
offset_right = -220.0
|
||||
offset_bottom = -128.0
|
||||
offset_left = -264.0
|
||||
offset_top = -140.0
|
||||
offset_right = -152.0
|
||||
offset_bottom = -28.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 22
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
icon = ExtResource("5_attack")
|
||||
expand_icon = true
|
||||
text = "ATAQUE"
|
||||
|
||||
[node name="GroundPound" type="Button" parent="Controls" unique_id=655126227]
|
||||
[node name="GroundPound" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -160.0
|
||||
offset_top = -155.0
|
||||
offset_right = -50.0
|
||||
offset_bottom = -55.0
|
||||
offset_left = -140.0
|
||||
offset_top = -140.0
|
||||
offset_right = -28.0
|
||||
offset_bottom = -28.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 18
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
text = "GP"
|
||||
text = "CAER"
|
||||
|
||||
[node name="SpecialAttack" type="Button" parent="Controls" unique_id=2065869646]
|
||||
[node name="SpecialAttack" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -163.0
|
||||
offset_top = -520.0
|
||||
offset_right = -53.0
|
||||
offset_bottom = -420.0
|
||||
offset_left = -264.0
|
||||
offset_top = -264.0
|
||||
offset_right = -152.0
|
||||
offset_bottom = -152.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 18
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
text = "SP"
|
||||
text = "SOLO"
|
||||
Reference in new issue
Block a user