Files
TheTree_mock/scripts/ui/inactive_layer_rooms.gd
Takeshi b84bade045 Save The Tree implementation and acceptance work in progress
Preserve production code, regression fixtures, audio assets and provenance, test infrastructure, and the original-completion plan and progress ledger. Final game and Windows acceptance remain pending; excluded local artifacts and native experiments are not part of this snapshot.
2026-10-11 15:58:00 +09:00

19 lines
734 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"],{},int(room.get(&"level",1)))