public UICommand(string rawLine, SectionAddress addr, string key, string text, bool visibility, UIType type, Rect rect, UIInfo info) { this.RawLine = rawLine; this.Addr = addr; this.Key = key; this.Text = text; this.Visibility = visibility; this.Type = type; this.Rect = rect; this.Info = info; }
public UIControl(string rawLine, ScriptSection section, string key, string text, bool visibility, UIControlType type, int x, int y, int width, int height, UIInfo info, int lineIdx) { RawLine = rawLine; Section = section; Key = key; Text = text; Visibility = visibility; Type = type; X = x; Y = y; Width = width; Height = height; Info = info; LineIdx = lineIdx; }
public UIControl(string rawLine, ScriptSection section, string key) { RawLine = rawLine; Section = section; Key = key; Text = string.Empty; Visibility = false; Type = UIControlType.None; X = 0; Y = 0; Width = 0; Height = 0; Info = null; LineIdx = 0; }
public static T Cast <T>(UIInfo info) where T : UIInfo { return(info.Cast <T>()); }