|
|
@ -91,7 +91,9 @@ public class Label extends GUI_Interface {
|
|
|
|
public void redraw() {
|
|
|
|
public void redraw() {
|
|
|
|
GreenfootImage tI = new GreenfootImage(text,textSize,foreC,backC);
|
|
|
|
GreenfootImage tI = new GreenfootImage(text,textSize,foreC,backC);
|
|
|
|
if(text == "") {
|
|
|
|
if(text == "") {
|
|
|
|
tI = new GreenfootImage(0,0);
|
|
|
|
tI = new GreenfootImage(1,1);
|
|
|
|
|
|
|
|
tI.setColor(new Color(0,0,0,0));
|
|
|
|
|
|
|
|
tI.fill();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(autoSize) {
|
|
|
|
if(autoSize) {
|
|
|
|
sx = tI.getWidth();
|
|
|
|
sx = tI.getWidth();
|
|
|
|