fix: harden recovery flow and clean diagnostics
This commit is contained in:
parent
0158b0215f
commit
ff78710303
64 changed files with 1163 additions and 418 deletions
|
|
@ -53,7 +53,9 @@ static func make_icon_texture(
|
|||
Image.FORMAT_RGBA8,
|
||||
)
|
||||
canvas.fill(Color.TRANSPARENT)
|
||||
var inset := Vector2i.ONE * ((canvas_size - icon_size) / 2)
|
||||
var inset := Vector2i.ONE * floori(
|
||||
float(canvas_size - icon_size) / 2.0
|
||||
)
|
||||
canvas.blend_rect(
|
||||
image,
|
||||
Rect2i(Vector2i.ZERO, Vector2i(icon_size, icon_size)),
|
||||
|
|
|
|||
|
|
@ -93,10 +93,16 @@ static func uniform_footprint_size(
|
|||
maximum_size.x / visible_size.x,
|
||||
maximum_size.y / visible_size.y,
|
||||
)
|
||||
var scale: float = minf(area_scale, fit_scale)
|
||||
var footprint_scale: float = minf(area_scale, fit_scale)
|
||||
return Vector2(
|
||||
minf(maximum_size.x, maxf(1.0, roundf(visible_size.x * scale))),
|
||||
minf(maximum_size.y, maxf(1.0, roundf(visible_size.y * scale))),
|
||||
minf(
|
||||
maximum_size.x,
|
||||
maxf(1.0, roundf(visible_size.x * footprint_scale)),
|
||||
),
|
||||
minf(
|
||||
maximum_size.y,
|
||||
maxf(1.0, roundf(visible_size.y * footprint_scale)),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -91,14 +91,14 @@ func _initialize_motion() -> void:
|
|||
_set_visual_y(_target_y())
|
||||
|
||||
|
||||
func _on_toggled(is_pressed: bool) -> void:
|
||||
if _selected and not is_pressed:
|
||||
func _on_toggled(is_button_pressed: bool) -> void:
|
||||
if _selected and not is_button_pressed:
|
||||
# A selected organizer tab is a page marker, not a collapsible toggle.
|
||||
# Restore without another signal before any lower-state frame is drawn.
|
||||
set_pressed_no_signal(true)
|
||||
refresh_state(false)
|
||||
return
|
||||
_selected = is_pressed
|
||||
_selected = is_button_pressed
|
||||
refresh_state()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -65,14 +65,14 @@ func _apply_style() -> void:
|
|||
|
||||
func configure(
|
||||
key: String,
|
||||
icon: Texture2D,
|
||||
icon_texture: Texture2D,
|
||||
label: String,
|
||||
quantity: int = 1,
|
||||
quality: int = -1,
|
||||
) -> void:
|
||||
entry_key = key
|
||||
_quality_tier = quality
|
||||
_icon.texture = icon
|
||||
_icon.texture = icon_texture
|
||||
_quantity.text = "×%d" % quantity if quantity > 1 else ""
|
||||
tooltip_text = "%s · select to remove" % label
|
||||
accessibility_name = tooltip_text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue