Label Debug

Automatische Transparenz bei leerem Text
master
Zocker1999NET 8 years ago
parent 92f6e12886
commit 9764664077

@ -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();

Loading…
Cancel
Save