Skip to content

Commit

Permalink
make scale button disappear on delete & dont snap to scale button (#356)
Browse files Browse the repository at this point in the history
scale button disappear on delete
  • Loading branch information
RedthMC authored Jul 30, 2024
1 parent c4a30f2 commit 6619668
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ fun Hud<*>.build(): Block {
},
Image("assets/oneconfig/ico/close.svg").setDestructivePalette().withStates(consume = true).onClick {
HudManager.polyUI.master.removeChild(this@events.self, recalculate = false)
scaleBlob.clipped = false
HudManager.polyUI.removeExecutor(exe)
HudManager.polyUI.unfocus()
// if (HudManager.panel[3] !== HudManager.hudsPage) HudManager.panel[3] = HudManager.hudsPage
Expand Down Expand Up @@ -285,6 +286,7 @@ fun Drawable.snapHandler() {
polyUI.master.children?.fastEach {
if (it === this) return@fastEach
if (it === HudManager.panel) return@fastEach
if (it === scaleBlob) return@fastEach
if (!it.clipped) return@fastEach

if (!hran) {
Expand Down

0 comments on commit 6619668

Please sign in to comment.