Beispiel #1
0
 public Button(Vector2 p, float w, float h, string t, AssetManager a, buttonStyle s, int ts, void_function_empty f)
 {
     init(p, w, h, t, a, s, ts);
     function_empty_action = f;
 }
Beispiel #2
0
 public DynamicButton(AssetManager a, Rect r, string t, DyanimcButtonStyle s, int ts, void_function_empty f, Texture2D idle, Texture2D pressed) : base(new Vector2(r.x, r.y))
 {
     assets = a;
     function_empty_action = f;
     init(r, t, s, ts, idle, pressed);
 }
Beispiel #3
0
 public void setCallback(void_function_empty f)
 {
     function_empty_action  = f;
     function_button_action = null;
 }
Beispiel #4
0
 public void setCallback(void_function_DyanmicButton f)
 {
     function_empty_action  = null;
     function_button_action = f;
 }
Beispiel #5
0
 //getters and setters for the callback function
 public void setCallback()
 {
     function_empty_action  = null;
     function_button_action = null;
 }