mirror of
https://github.com/opus-tango/B12NumbersV3.git
synced 2026-03-20 03:55:20 +00:00
Buttons now work (preliminary)
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
abstract interface Number{
|
||||||
|
abstract void setPos(PVector _pos);
|
||||||
|
abstract void setPos(float _x, float _y);
|
||||||
|
abstract PVector getPos();
|
||||||
|
|
||||||
|
abstract void setAlignMode(int _mode);
|
||||||
|
abstract void display();
|
||||||
|
}
|
||||||
|
|
||||||
class B12Digit{
|
class B12Digit{
|
||||||
byte value;
|
byte value;
|
||||||
PVector refPos;
|
PVector refPos;
|
||||||
@@ -109,7 +118,7 @@ class B12Digit{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class B12Int {
|
class B12Int implements Number {
|
||||||
private ArrayList<B12Digit> digits;
|
private ArrayList<B12Digit> digits;
|
||||||
private int value;
|
private int value;
|
||||||
private PVector pos;
|
private PVector pos;
|
||||||
@@ -194,7 +203,7 @@ class B12Int {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class B12Float {
|
class B12Float implements Number{
|
||||||
private ArrayList<B12Digit> digits;
|
private ArrayList<B12Digit> digits;
|
||||||
private float value;
|
private float value;
|
||||||
private PVector pos;
|
private PVector pos;
|
||||||
|
|||||||
Reference in New Issue
Block a user