Use generated surfaces for tactical badges
This commit is contained in:
@@ -275,6 +275,12 @@ func _check_minimap_navigation_contract(failures: Array[String]) -> void:
|
||||
var first_hover_text := "\n".join(first_hover_lines)
|
||||
if not first_hover_text.contains("클릭/드래그"):
|
||||
failures.append("minimap hover should explain click-drag navigation: %s" % first_hover_text)
|
||||
if first_hover_text.contains("1,1"):
|
||||
failures.append("minimap hover should not expose raw grid coordinates in visible text: %s" % first_hover_text)
|
||||
if str(first_hover_badge.get("icon", "")).strip_edges().is_empty():
|
||||
failures.append("minimap hover should carry generated icon metadata: %s" % str(first_hover_badge))
|
||||
if str(first_hover_badge.get("panel", "")) != "hud_jade":
|
||||
failures.append("minimap hover should use generated jade panel metadata: %s" % str(first_hover_badge))
|
||||
var first_hover_rect: Rect2 = first_hover_badge.get("rect", Rect2())
|
||||
if first_hover_rect.size.x <= 0.0 or first_hover_rect.size.y <= 0.0 or not view_rect.encloses(first_hover_rect):
|
||||
failures.append("minimap hover badge should stay inside the visible map view: %s within %s" % [str(first_hover_rect), str(view_rect)])
|
||||
|
||||
Reference in New Issue
Block a user