Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:ProjectTitan.UI_Element"/> class.
 /// </summary>
 /// <param name="parent">Panel Parent of the UI Element.</param>
 /// <param name="relpos">Relative position to the parent.</param>
 /// <param name="texture">Texture.</param>
 public UI_Element(Panel parent, Vector4 relrect, UI_Manager ui_manager)
 {
     m_ui_manager = ui_manager;
     m_parent     = parent;
     m_relrect    = relrect;
 }
Ejemplo n.º 2
0
 public Panel(Panel parent, Vector4 relpos, UI_Manager ui_manager) : base(parent, relpos, ui_manager)
 {
     m_childlist = new List <UI_Element>();
 }
Ejemplo n.º 3
0
 public Table(Panel parent, Vector2 relpos, Texture2D table_texture, Texture2D row_texture, UI_Manager ui_manager)
     : base(parent, new Vector4(relpos.X, relpos.Y, 0, 0), ui_manager)
 {
     m_table_texture = table_texture;
     m_row_texture   = row_texture;
     m_table_rows    = new List <TableRow>();
 }
Ejemplo n.º 4
0
 public Button(Panel parent, Vector4 relrect, UI_Manager ui_manager, ButtonClickFuntion del_func) : base(parent, relrect, ui_manager)
 {
     m_button_click_function = del_func;
     m_curr_texture          = (Texture2D)m_ui_manager.TextureDict["ButtonUp"];
     base.Init(new Vector2(m_curr_texture.Width, m_curr_texture.Height));
 }