From 8b68b5ae35cbd87333050b1561763fe28d77fc30 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Sat, 20 Apr 2024 01:21:52 +0200 Subject: [PATCH] New Trashcan icon Co-Authored-By: betah <103602526+betah96@users.noreply.github.com> --- assets/images/editors/stage/trash-icon.png | Bin 0 -> 277 bytes .../editors/stage/elements/StageElementButton.hx | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 assets/images/editors/stage/trash-icon.png diff --git a/assets/images/editors/stage/trash-icon.png b/assets/images/editors/stage/trash-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..37041078906584ef29f0ef96a751c07ef4d9ffd9 GIT binary patch literal 277 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1quc!3mx&jv*HQ$qPgbnmXP}N&P=)Bh>i3SGuQ1 z;q2$UyGa3|!OdL4{5g#?I1i;H{P_4;-BW_?f!>6v)6*;dd{7LLuxD8LG$EaRH-j9T zfpZ6=!Px}{4AqQBJeb-T&#>;u5OBE0^XTy5h8Tk^hP6BmOW8}Lq#2H@@*EHnv19Pk z-(bSPq`}s}uy9W2nwgD_jf@O#^TM`YnB4pg=r+F82+uTMUj{88n*)eJ;8O5p5asFW K=d#Wzp$P!7;8nB$ literal 0 HcmV?d00001 diff --git a/source/funkin/editors/stage/elements/StageElementButton.hx b/source/funkin/editors/stage/elements/StageElementButton.hx index 6ce04ddf..2dce7c63 100644 --- a/source/funkin/editors/stage/elements/StageElementButton.hx +++ b/source/funkin/editors/stage/elements/StageElementButton.hx @@ -76,7 +76,7 @@ class StageElementButton extends UIButton { deleteButton.autoAlpha = false; members.push(deleteButton); - deleteIcon = new FlxSprite(deleteButton.x + (15/2), deleteButton.y + 8).loadGraphic(Paths.image('editors/delete-button')); + deleteIcon = new FlxSprite(deleteButton.x + 8, deleteButton.y + 8).loadGraphic(Paths.image('editors/stage/trash-icon')); deleteIcon.antialiasing = false; members.push(deleteIcon); @@ -166,7 +166,7 @@ class StageElementButton extends UIButton { // icons visibilityIcon.x = visibilityButton.x + 8; visibilityIcon.y = visibilityButton.y + 8; editIcon.x = editButton.x + 8; editIcon.y = editButton.y + 8; - deleteIcon.x = deleteButton.x + (15/2); deleteIcon.y = deleteButton.y + 8; + deleteIcon.x = deleteButton.x + 8; deleteIcon.y = deleteButton.y + 8; tagColor.x = x;// + bWidth - tagColor.bWidth; tagColor.y = y;