From ef46303949173cd67cf00a4f40d16f1375ed2250 Mon Sep 17 00:00:00 2001 From: sowgro Date: Sun, 1 Sep 2024 16:24:25 -0400 Subject: Smooth scrolling in NotesEditor2 and other improvements - select multiple checkbox - make taget and block take less prams - block sizing changes - fix sort in LeaderboardView --- src/main/java/net/sowgro/npehero/gameplay/Block.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/main/java/net/sowgro/npehero/gameplay/Block.java') diff --git a/src/main/java/net/sowgro/npehero/gameplay/Block.java b/src/main/java/net/sowgro/npehero/gameplay/Block.java index 9d68ab6..5d35ccc 100755 --- a/src/main/java/net/sowgro/npehero/gameplay/Block.java +++ b/src/main/java/net/sowgro/npehero/gameplay/Block.java @@ -16,24 +16,20 @@ public class Block extends Rectangle public Color color; public Note note; - public Block(Color color, double width, double height, int cornerRadius, boolean useDropShadow, Note note) + public Block(Color color, boolean useDropShadow, Note note) { this.note = note; this.color = color; super.setFill(color); - super.setWidth(width); - super.setHeight(height); - super.setArcHeight(cornerRadius); - super.setArcWidth(cornerRadius); if (useDropShadow) { enableDropShadow(); } } - public Block(Color color, double width, double height, int cornerRadius) { - this(color, width, height, cornerRadius, true, null); + public Block(Color color, Note note) { + this(color, true, note); } public void enableDropShadow() { -- cgit v1.2.3