Import current DEMON v0.19 source, assets and development handoff
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
extends RefCounted
|
||||
const Icon=preload("res://talent_icon.gd")
|
||||
func build(g):
|
||||
g.hud=CanvasLayer.new();g.add_child(g.hud)
|
||||
# Compatibility nodes keep gameplay references valid without any visible or clickable legacy panels.
|
||||
g.ui_compat=Control.new();g.hud.add_child(g.ui_compat);g.ui_compat.name="InactiveLegacyUI"
|
||||
g.ui_compat.mouse_filter=Control.MOUSE_FILTER_IGNORE;g.ui_compat.hide()
|
||||
for key in ["stats","task","dossier","quote","status"]:
|
||||
var l=g.label("");g.ui_compat.add_child(l);g.set(key,l)
|
||||
var box=PanelContainer.new();g.hud.add_child(box);box.name="CurrencyHUD";box.position=Vector2(1270,24);box.size=Vector2(306,64)
|
||||
box.mouse_filter=Control.MOUSE_FILTER_IGNORE
|
||||
box.grow_horizontal=Control.GROW_DIRECTION_BEGIN;box.z_index=15
|
||||
var style=StyleBoxFlat.new();style.bg_color=Color("131019");style.border_color=Color("806442");style.set_border_width_all(1)
|
||||
style.content_margin_left=16;style.content_margin_right=16;style.content_margin_top=10;style.content_margin_bottom=10
|
||||
box.add_theme_stylebox_override("panel",style)
|
||||
var row=HBoxContainer.new();box.add_child(row);row.alignment=BoxContainer.ALIGNMENT_CENTER;row.add_theme_constant_override("separation",12);row.mouse_filter=Control.MOUSE_FILTER_IGNORE
|
||||
var coin=Icon.new();coin.kind="coin";coin.custom_minimum_size=Vector2(36,36);row.add_child(coin)
|
||||
g.gold_value=g.label("0",22,Color("efcf89"));row.add_child(g.gold_value);g.gold_value.custom_minimum_size=Vector2(75,36);g.gold_value.vertical_alignment=VERTICAL_ALIGNMENT_CENTER;g.gold_value.name="GoldValue"
|
||||
var soul=Icon.new();soul.kind="soul";soul.tint=Color("a1d2df");soul.custom_minimum_size=Vector2(36,36);row.add_child(soul)
|
||||
g.souls_value=g.label("0",22,Color("b9dce3"));row.add_child(g.souls_value);g.souls_value.custom_minimum_size=Vector2(60,36);g.souls_value.vertical_alignment=VERTICAL_ALIGNMENT_CENTER;g.souls_value.name="SoulsValue"
|
||||
Reference in New Issue
Block a user