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; }
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); }
public void setCallback(void_function_empty f) { function_empty_action = f; function_button_action = null; }
public void setCallback(void_function_DyanmicButton f) { function_empty_action = null; function_button_action = f; }
//getters and setters for the callback function public void setCallback() { function_empty_action = null; function_button_action = null; }