示例#1
0
		public MovieElement (UIScreen screen, BinElement el, byte[] palette, string resource)
			: base (screen, el, palette)
		{
			Sensitive = false;

			Player = new SmackerPlayer ((Stream)Mpq.GetResource (resource), 1);
		}
示例#2
0
        public MovieElement(UIScreen screen, BinElement el, byte[] palette, string resource)
            : base(screen, el, palette)
        {
            Sensitive = false;

            Player = new SmackerPlayer((Stream)Mpq.GetResource(resource), 1);
        }
示例#3
0
        public MovieElement(UIScreen screen, BinElement el, byte[] palette, SmackerPlayer player)
            : base(screen, el, palette)
        {
            Sensitive = false;

            Player = player;
        }
示例#4
0
		public MovieElement (UIScreen screen, BinElement el, byte[] palette, SmackerPlayer player)
			: base (screen, el, palette)
		{
			Sensitive = false;

			Player = player;
		}
示例#5
0
		public ListBoxElement (UIScreen screen, BinElement el, byte[] palette)
			: base (screen, el, palette)
		{
			items = new List<string> ();

			num_visible = Height / Font.LineSize;
			first_visible = 0;
		}
示例#6
0
        public ListBoxElement(UIScreen screen, BinElement el, byte[] palette)
            : base(screen, el, palette)
        {
            items = new List <string> ();

            num_visible   = Height / Font.LineSize;
            first_visible = 0;
        }
示例#7
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;
		}
示例#8
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;
 }
示例#9
0
		public ButtonElement (UIScreen screen, BinElement el, byte[] palette)
			: base (screen, el, palette)
		{
		}
示例#10
0
 public ComboBoxElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
     items = new List<string> ();
 }
示例#11
0
 public ImageElement(UIScreen screen, BinElement el, byte[] palette, int translucent_index)
     : base(screen, el, palette)
 {
     this.translucent_index = translucent_index;
 }
示例#12
0
 public TextBoxElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
     value = new StringBuilder();
 }
示例#13
0
 public DialogBoxElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
     tileGrp = (Grp)Mpq.GetResource ("dlgs\\tile.grp");
 }
示例#14
0
 public LabelElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
 }
示例#15
0
 public DialogBoxElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
     tileGrp = (Grp)Mpq.GetResource("dlgs\\tile.grp");
 }
示例#16
0
 public TextBoxElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
     value = new StringBuilder();
 }
示例#17
0
		public ImageElement (UIScreen screen, BinElement el, byte[] palette, int translucent_index)
			: base (screen, el, palette)
		{
			this.translucent_index = translucent_index;
		}
示例#18
0
 public ComboBoxElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
     items = new List <string> ();
 }
示例#19
0
 public MovieElement(UIScreen screen, BinElement el, byte[] palette, bool scale)
     : base(screen, el, palette)
 {
     this.scale = scale;
 }
示例#20
0
		public MovieElement (UIScreen screen, BinElement el, byte[] palette, string resource, bool scale)
			: this (screen, el, palette, resource)
		{
			this.scale = scale;
		}
示例#21
0
		public MovieElement (UIScreen screen, BinElement el, byte[] palette, bool scale)
			: base (screen, el, palette)
		{
			this.scale = scale;
		}
示例#22
0
 public MovieElement(UIScreen screen, BinElement el, byte[] palette, string resource, bool scale)
     : this(screen, el, palette, resource)
 {
     this.scale = scale;
 }
示例#23
0
 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;
 }