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
+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))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user