Explorar el Código

✨ Apply default style to button object

Pedro Schneider hace 3 años
padre
commit
3a173f17bd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      pandora/game_objects/ui_objects/Button.js

+ 2 - 1
pandora/game_objects/ui_objects/Button.js

@@ -8,7 +8,8 @@ class Button extends UIObject
         this.label = label;
         this.P5Element.html(label);
         this.P5Element.position(0, 0);
-        
+
+        this.setStyle(DEFAULT_STYLE);
 
         this.connectCallbacks();
     }