Deepen ancient briefing map styling
This commit is contained in:
@@ -3110,6 +3110,8 @@ func _check_ancient_ui_theme(failures: Array[String]) -> void:
|
||||
if scene.screen_backdrop == null:
|
||||
failures.append("ancient briefing screen should create an ink-wash backdrop")
|
||||
else:
|
||||
if scene.screen_backdrop.color.a < 0.70:
|
||||
failures.append("ink-wash backdrop should darken modern screen edges: %s" % str(scene.screen_backdrop.color))
|
||||
scene.briefing_panel.visible = true
|
||||
scene.result_panel.visible = false
|
||||
scene._refresh_screen_backdrop_visibility()
|
||||
@@ -3117,6 +3119,11 @@ func _check_ancient_ui_theme(failures: Array[String]) -> void:
|
||||
failures.append("ink-wash backdrop should appear behind briefing documents")
|
||||
scene.briefing_panel.visible = false
|
||||
scene._refresh_screen_backdrop_visibility()
|
||||
var map_lattice_overlay := _find_descendant_by_name(scene.briefing_camp_overview_panel, "MapLatticeOverlay")
|
||||
if map_lattice_overlay == null:
|
||||
failures.append("briefing map thumbnail should carry old silk-map lattice overlay")
|
||||
elif map_lattice_overlay.get_child_count() < 10:
|
||||
failures.append("briefing map thumbnail should carry wash, lattice, and four seal corners")
|
||||
_check_seal_ribbon(failures, scene.briefing_seal_ribbon, "briefing seal ribbon")
|
||||
_check_seal_ribbon(failures, scene.dialogue_seal_ribbon, "dialogue seal ribbon")
|
||||
_check_seal_ribbon(failures, scene.result_seal_ribbon, "result seal ribbon")
|
||||
@@ -3364,6 +3371,18 @@ func _colors_nearly_equal(left: Color, right: Color) -> bool:
|
||||
)
|
||||
|
||||
|
||||
func _find_descendant_by_name(root: Node, node_name: String) -> Node:
|
||||
if root == null:
|
||||
return null
|
||||
if str(root.name).begins_with(node_name):
|
||||
return root
|
||||
for child in root.get_children():
|
||||
var found := _find_descendant_by_name(child, node_name)
|
||||
if found != null:
|
||||
return found
|
||||
return null
|
||||
|
||||
|
||||
func _check_action_button_disabled_reasons(failures: Array[String]) -> void:
|
||||
var scene = BattleSceneScript.new()
|
||||
scene.wait_button = Button.new()
|
||||
|
||||
Reference in New Issue
Block a user