Capture current source, content data, tests, asset licenses, and original-specification traceability. Original implementation remains incomplete. The accepted matching UI generation passed 154 suites and 12,253 checks, with eight rendered staff-contract screens reviewed. Latest native Windows and full-original acceptance remain outstanding.
19 lines
708 B
GDScript
19 lines
708 B
GDScript
extends Node2D
|
|
|
|
# Reuse the same room art at low opacity; this layer has no input handlers.
|
|
const PixelArt := preload("res://scripts/ui/pixel_tower_art.gd")
|
|
var rooms: Array[Dictionary] = []
|
|
var pixel_scale := 1.0
|
|
var dungeon: Texture2D
|
|
var town: Texture2D
|
|
func _ready() -> void:
|
|
modulate = Color(1,1,1,0.22)
|
|
texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST
|
|
func _draw() -> void:
|
|
for room: Dictionary in rooms:
|
|
if bool(room.get(&"building", false)): continue
|
|
if bool(room.get(&"legacy_stair", false)):
|
|
PixelArt.stairs(self,room[&"rect"],room[&"rect"].size.x/14.0,true,true)
|
|
continue
|
|
PixelArt.room(self,room[&"rect"],room[&"definition_id"],pixel_scale,dungeon,town,true,room[&"origin_x"],{})
|