public static void ApplyTemplate( HtmlPlus html, Template t ) { if ( (int)t == -1 ) return; ButtonTemplate template = (ButtonTemplate)s_Templates[t]; html.X = html.X + template.TextXOffset; html.Y = html.Y + template.TextYOffset; }
public static void ApplyTemplate(HtmlPlus html, Template t) { if ((int)t == -1) { return; } ButtonTemplate template = (ButtonTemplate)s_Templates[t]; html.X = html.X + template.TextXOffset; html.Y = html.Y + template.TextYOffset; }
public void AddTemplateButton(int x, int y, int w, Template t, string name, string text, TimerStateCallback callback, object arg, bool over) { int id = UniqueButton(); ButtonPlus button = new ButtonPlus(x, y, 0x0, 0x0, id, name, callback, arg); button.Template = t; Add(button); c_Buttons[id] = button; HtmlPlus html = new HtmlPlus(x, y, w, 21, text, false, false, over); html.Template = t; Add(html); ButtonTemplate.ApplyTemplate(button, html, t); }
public static void ApplyTemplate(ButtonPlus button, HtmlPlus html, Template t) { ApplyTemplate(button, t); ApplyTemplate(html, t); }
public void AddHtml( int x, int y, int width, int height, string text, bool back, bool scroll, bool over ) { HtmlPlus html = new HtmlPlus( x, y, width, height, text, back, scroll, over ); Add( html ); }
public void AddTemplateButton( int x, int y, int w, Template t, string name, string text, TimerStateCallback callback, object arg, bool over ) { int id = UniqueButton(); ButtonPlus button = new ButtonPlus( x, y, 0x0, 0x0, id, name, callback, arg ); button.Template = t; Add( button ); c_Buttons[id] = button; HtmlPlus html = new HtmlPlus( x, y, w, 21, text, false, false, over ); html.Template = t; Add( html ); ButtonTemplate.ApplyTemplate( button, html, t ); }
public static void ApplyTemplate( ButtonPlus button, HtmlPlus html, Template t ) { ApplyTemplate( button, t ); ApplyTemplate( html, t ); }
public void AddHtml(int x, int y, int width, int height, string text, bool back, bool scroll, bool over) { HtmlPlus html = new HtmlPlus(x, y, width, height, text, back, scroll, over); Add(html); }