aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/sowgro/npehero/gameplay/Block.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2024-09-01 16:24:25 -0400
committersowgro <tpoke.ferrari@gmail.com>2024-09-01 16:24:25 -0400
commitef46303949173cd67cf00a4f40d16f1375ed2250 (patch)
tree721496396f728062de351caf207dffab342a1f25 /src/main/java/net/sowgro/npehero/gameplay/Block.java
parent1300b5eb7a86d72e920436de24b77004efe51af8 (diff)
downloadNPEhero-ef46303949173cd67cf00a4f40d16f1375ed2250.tar.gz
NPEhero-ef46303949173cd67cf00a4f40d16f1375ed2250.tar.bz2
NPEhero-ef46303949173cd67cf00a4f40d16f1375ed2250.zip
Smooth scrolling in NotesEditor2
and other improvements - select multiple checkbox - make taget and block take less prams - block sizing changes - fix sort in LeaderboardView
Diffstat (limited to 'src/main/java/net/sowgro/npehero/gameplay/Block.java')
-rwxr-xr-xsrc/main/java/net/sowgro/npehero/gameplay/Block.java10
1 files changed, 3 insertions, 7 deletions
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() {