Scriv07

ExampleWidget.as

Apr 19th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import skyui.widgets.WidgetBase;
  2.  
  3. class ExampleWidget extends WidgetBase
  4. {
  5.     var PlayerNameText: TextField;
  6.  
  7.  
  8.     public function ExampleWidget()
  9.     {
  10.         super();
  11.         PlayerNameText.text = "Unknown";
  12.     }
  13.  
  14.  
  15.     // @Papyrus
  16.     public function setVisible(a_visible: Boolean): Void
  17.     {
  18.         _visible = a_visible;
  19.     }
  20.  
  21.     // @Papyrus
  22.     public function setPlayerName(a_text: String): Void
  23.     {
  24.         PlayerNameText.text = a_text;
  25.     }
  26.  
  27. }
Add Comment
Please, Sign In to add comment