diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-06-05 23:15:13 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-06-05 23:15:13 -0400 |
commit | c94726840b869a41ea82f0d69e163a260c433c79 (patch) | |
tree | a4d56ff9d76b5963ba2bd20bc25e337790b8d976 /src/gameplay/TButton.java | |
parent | 5f6b84a1d3a4cf1936e7d495d03400ce5c7478f6 (diff) | |
download | NPEhero-c94726840b869a41ea82f0d69e163a260c433c79.tar.gz NPEhero-c94726840b869a41ea82f0d69e163a260c433c79.tar.bz2 NPEhero-c94726840b869a41ea82f0d69e163a260c433c79.zip |
improve level surround contrast, add key labels
Diffstat (limited to 'src/gameplay/TButton.java')
-rw-r--r-- | src/gameplay/TButton.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/gameplay/TButton.java b/src/gameplay/TButton.java deleted file mode 100644 index 6af1209..0000000 --- a/src/gameplay/TButton.java +++ /dev/null @@ -1,41 +0,0 @@ -//glowing block of color c (jfx node) - -package gameplay; - -import javafx.scene.paint.Color; -import javafx.scene.shape.Rectangle; - -public class TButton extends Rectangle -{ - private Color col; - private Color fill; - public TButton(Color c, double a, double b, int r) - { - super(); - - col = c; - fill = new Color(c.darker().getRed(), c.darker().getGreen(), c.darker().getBlue(), 0.45); - super.setFill(fill); - super.setWidth(a); - super.setHeight(b); - super.setArcHeight(r); - super.setArcWidth(r); - super.setStroke(col); - super.setStrokeWidth(5); - } - - public void setColor(Color c) { - col = c; - fill = new Color(c.darker().getRed(), c.darker().getGreen(), c.darker().getBlue(), 0.45); - super.setFill(fill); - super.setStroke(c); - } - - public Color getFillColor() { - return fill; - } - - public Color getColor() { - return col; - } -}
\ No newline at end of file |