Deepen ancient briefing map styling
This commit is contained in:
@@ -844,6 +844,52 @@ func _make_seal_cluster(height: float) -> HBoxContainer:
|
||||
return cluster
|
||||
|
||||
|
||||
func _make_map_lattice_overlay(size: Vector2) -> Control:
|
||||
var overlay := Control.new()
|
||||
overlay.name = "MapLatticeOverlay"
|
||||
overlay.set_anchors_preset(Control.PRESET_FULL_RECT)
|
||||
overlay.custom_minimum_size = size
|
||||
overlay.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
|
||||
var silk_wash := ColorRect.new()
|
||||
silk_wash.name = "SilkMapWash"
|
||||
silk_wash.set_anchors_preset(Control.PRESET_FULL_RECT)
|
||||
silk_wash.color = Color(UI_SILK_WASH.r, UI_SILK_WASH.g, UI_SILK_WASH.b, 0.10)
|
||||
silk_wash.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
overlay.add_child(silk_wash)
|
||||
|
||||
for fraction in [0.25, 0.50, 0.75]:
|
||||
var vertical := _make_map_lattice_line(Vector2(size.x * fraction, 0.0), Vector2(1.0, size.y), 0.22)
|
||||
overlay.add_child(vertical)
|
||||
for fraction in [0.33, 0.66]:
|
||||
var horizontal := _make_map_lattice_line(Vector2(0.0, size.y * fraction), Vector2(size.x, 1.0), 0.18)
|
||||
overlay.add_child(horizontal)
|
||||
|
||||
var corner_specs := [
|
||||
{"text": "魏", "pos": Vector2(4, 4)},
|
||||
{"text": "令", "pos": Vector2(size.x - 24, 4)},
|
||||
{"text": "圖", "pos": Vector2(4, size.y - 24)},
|
||||
{"text": "印", "pos": Vector2(size.x - 24, size.y - 24)}
|
||||
]
|
||||
for spec in corner_specs:
|
||||
var seal := _make_seal_tile(str(spec["text"]), 20)
|
||||
seal.name = "MapCornerSeal"
|
||||
seal.position = spec["pos"]
|
||||
seal.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
overlay.add_child(seal)
|
||||
return overlay
|
||||
|
||||
|
||||
func _make_map_lattice_line(position: Vector2, size: Vector2, alpha: float) -> ColorRect:
|
||||
var line := ColorRect.new()
|
||||
line.position = position
|
||||
line.size = size
|
||||
line.custom_minimum_size = size
|
||||
line.color = Color(UI_INK_WASH.r, UI_INK_WASH.g, UI_INK_WASH.b, alpha)
|
||||
line.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
return line
|
||||
|
||||
|
||||
func _make_section_caption(text: String, width: float = 0.0) -> Control:
|
||||
var panel := PanelContainer.new()
|
||||
panel.custom_minimum_size = Vector2(width, 24)
|
||||
@@ -961,7 +1007,7 @@ func _make_screen_backdrop() -> ColorRect:
|
||||
var backdrop := ColorRect.new()
|
||||
backdrop.visible = false
|
||||
backdrop.set_anchors_preset(Control.PRESET_FULL_RECT)
|
||||
backdrop.color = Color(0.026, 0.014, 0.006, 0.64)
|
||||
backdrop.color = Color(0.018, 0.009, 0.004, 0.74)
|
||||
backdrop.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
return backdrop
|
||||
|
||||
@@ -1493,6 +1539,7 @@ func _create_hud() -> void:
|
||||
briefing_camp_overview_fallback_label.add_theme_font_size_override("font_size", 18)
|
||||
_apply_label_style(briefing_camp_overview_fallback_label, UI_OLD_BRONZE)
|
||||
camp_thumbnail_stack.add_child(briefing_camp_overview_fallback_label)
|
||||
camp_thumbnail_stack.add_child(_make_map_lattice_overlay(BRIEFING_CAMP_THUMBNAIL_SIZE))
|
||||
|
||||
briefing_camp_overview_label = Label.new()
|
||||
briefing_camp_overview_label.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
|
||||
|
||||
Reference in New Issue
Block a user