public ListBoxElement (UIScreen screen, BinElement el, byte[] palette) : base (screen, el, palette) { items = new List<string> (); num_visible = Height / Font.LineSize; first_visible = 0; }
public UIElement (UIScreen screen, BinElement el, byte[] palette) { this.screen = screen; this.el = el; this.x1 = el.x1; this.y1 = el.y1; this.width = el.width; this.height = el.height; this.palette = palette; this.sensitive = true; this.text = el.text; this.visible = (el.flags & ElementFlags.Visible) != 0; }
void ReadElements() { int position; byte[] buf = new byte[stream.Length]; stream.Read(buf, 0, (int)stream.Length); position = 0; do { BinElement element = new BinElement(buf, position, (uint)stream.Length); elements.Add(element); position += 86; } while (position < ((BinElement)elements[0]).text_offset); }
void ReadElements() { int position; byte[] buf = new byte[stream.Length]; stream.Read (buf, 0, (int)stream.Length); position = 0; do { BinElement element = new BinElement (buf, position, (uint)stream.Length); elements.Add (element); position += 86; } while (position < ((BinElement)elements[0]).text_offset); }
public ComboBoxElement (UIScreen screen, BinElement el, byte[] palette) : base (screen, el, palette) { items = new List<string> (); }
public LabelElement (UIScreen screen, BinElement el, byte[] palette) : base (screen, el, palette) { }
public ImageElement (UIScreen screen, BinElement el, byte[] palette, int translucent_index) : base (screen, el, palette) { this.translucent_index = translucent_index; }
public TextBoxElement (UIScreen screen, BinElement el, byte[] palette) : base (screen, el, palette) { value = new StringBuilder(); }
public DialogBoxElement (UIScreen screen, BinElement el, byte[] palette) : base (screen, el, palette) { tileGrp = (Grp)Mpq.GetResource ("dlgs\\tile.grp"); }
public MovieElement (UIScreen screen, BinElement el, byte[] palette, SmackerPlayer player) : base (screen, el, palette) { Player = player; }
public MovieElement (UIScreen screen, BinElement el, byte[] palette, string resource) : base (screen, el, palette) { Player = new SmackerPlayer ((Stream)Mpq.GetResource (resource), 1); Player.FrameReady += NewFrame; }
public MovieElement (UIScreen screen, BinElement el, byte[] palette, string resource, bool scale) : this (screen, el, palette, resource) { this.scale = scale; }
public MovieElement (UIScreen screen, BinElement el, byte[] palette, bool scale) : base (screen, el, palette) { this.scale = scale; }