summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2021-02-09 11:09:34 -0600
committerColin Okay <okay@toyful.space>2021-02-09 11:09:34 -0600
commit1eb4230ec7478e95e70b7f869684efcd34b48938 (patch)
treedbf01c6a0042582b85790d0b53f38bf2b49c14da
parentb26d00daa7fc76895ead11d08cb47b662575a378 (diff)
tweaks
-rw-r--r--Source/Main.hx12
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/Main.hx b/Source/Main.hx
index 6a34ee8..d060bc9 100644
--- a/Source/Main.hx
+++ b/Source/Main.hx
@@ -35,8 +35,9 @@ typedef BoxConfig =
class Button extends SimpleButton
{
- static var upColor:Int = 0xdddddd;
- static var downAndOverColor:Int = 0xeeeeee;
+ static var overColor:Int = 0xdddddd;
+ static var upColor:Int = 0xeeeeee;
+ static var downColor:Int = 0xcccccc;
static function textBox
(text:String,
@@ -81,10 +82,11 @@ class Button extends SimpleButton
{
var textFormat = new TextFormat(null, 25);
- var over = textBox(text, downAndOverColor, textFormat, 10.0, 50, 2 );
- var up = textBox(text, upColor, textFormat, 10.0, 50, 2 );
+ var over = textBox(text, overColor, textFormat, 10.0, 50, 2 );
+ var up = textBox(text, upColor, textFormat, 10.0, 50, 2);
+ var down = textBox(text, downColor, textFormat, 10.0, 50, 2);
- super( up , over, over, over);
+ super( up , over, down, over);
this.enabled = true;
}