fix(m76-c): card child modules must not swallow the card's own clicks
This commit is contained in:
@@ -81,18 +81,21 @@ func _build() -> void:
|
||||
|
||||
var portrait := PortraitModule.new().configure(portrait_texture)
|
||||
portrait.name = "PortraitModule"
|
||||
portrait.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
_place(portrait, Rect2(0.19, 0.21, 0.62, 0.28))
|
||||
portrait.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
add_child(portrait)
|
||||
|
||||
var identity := IdentityModule.new().configure(candidate_name)
|
||||
identity.name = "IdentityModule"
|
||||
identity.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
_place(identity, Rect2(0.16, 0.515, 0.68, 0.105))
|
||||
identity.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
add_child(identity)
|
||||
|
||||
var profession := ProfessionModule.new().configure(profession_name, text_scale)
|
||||
profession.name = "ProfessionModule"
|
||||
profession.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
_place(profession, Rect2(0.17, 0.635, 0.66, 0.055))
|
||||
profession.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
add_child(profession)
|
||||
@@ -111,6 +114,7 @@ func _build() -> void:
|
||||
|
||||
var trait_module := TraitModule.new().configure(trait_name, text_scale)
|
||||
trait_module.name = "TraitModule"
|
||||
trait_module.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
# A two-row detail (equipment/route facts) owns the trait row; the trait
|
||||
# module is empty for those kinds and must not overlap the taller slot.
|
||||
trait_module.visible = detail_rows <= 1 or not trait_name.is_empty()
|
||||
@@ -120,6 +124,7 @@ func _build() -> void:
|
||||
|
||||
var cost := CostModule.new().configure(availability, cost_text, text_scale)
|
||||
cost.name = "CostModule"
|
||||
cost.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
_place(cost, Rect2(0.12, 0.825, 0.76, 0.065))
|
||||
cost.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
add_child(cost)
|
||||
|
||||
@@ -12,6 +12,7 @@ func configure(next_title: String, next_subtitle: String) -> ABGM52GuildHeader:
|
||||
return self
|
||||
|
||||
func _ready() -> void:
|
||||
mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
clip_contents = true
|
||||
var title := UIFactory.label(title_text, "title", 1.0, Color("#fff4d6"))
|
||||
title.name = "GuildAnchorTitle"
|
||||
|
||||
@@ -193,16 +193,19 @@ func _build() -> void:
|
||||
|
||||
var identity := IdentityModule.new().configure(recruit_name)
|
||||
identity.name = "IdentityModule"
|
||||
identity.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
_place(identity, Rect2(0.10, 0.64, 0.80, 0.105))
|
||||
visual.add_child(identity)
|
||||
|
||||
var trait_module := TraitModule.new().configure(trait_name)
|
||||
trait_module.name = "TraitModule"
|
||||
trait_module.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
_place(trait_module, Rect2(0.14, 0.755, 0.72, 0.085))
|
||||
visual.add_child(trait_module)
|
||||
|
||||
var cost := CostModule.new().configure(availability, cost_text)
|
||||
cost.name = "CostModule"
|
||||
cost.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
_place(cost, Rect2(0.11, 0.865, 0.78, 0.085))
|
||||
visual.add_child(cost)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user