예제 #1
0
 public GameModeDialog(UIScreen parent, Mpq mpq)
     : base(parent, mpq, "glue\\Palmm", Builtins.rez_GluGameModeBin)
 {
     background_path = "glue\\Palmm\\retail_ex.pcx";
     background_translucent = 42;
     background_transparent = 0;
 }
예제 #2
0
 public LabelElement(UIScreen screen, byte[] palette, Fnt font, ushort x, ushort y)
     : base(screen, x, y)
 {
     this.Palette = palette;
     this.Font = font;
     calc_width = true;
 }
예제 #3
0
 public GrpElement(UIScreen screen, Grp grp, byte[] palette, ushort x, ushort y)
     : base(screen, x, y, grp.Width, grp.Height)
 {
     this.Palette = palette;
     this.grp = grp;
     this.frame = 0;
 }
예제 #4
0
		public MovieElement (UIScreen screen, BinElement el, byte[] palette, SmackerPlayer player)
			: base (screen, el, palette)
		{
			Sensitive = false;

			Player = player;
		}
예제 #5
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);
		}
예제 #6
0
 public UIElement(UIScreen screen, ushort x1, ushort y1)
 {
     this.screen = screen;
     this.x1 = x1;
     this.y1 = y1;
     this.sensitive = true;
     this.visible = false;
 }
예제 #7
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;
		}
예제 #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
        protected UIDialog(UIScreen parent, Mpq mpq, string prefix, string binFile)
            : base(mpq, prefix, binFile)
        {
            this.parent = parent;
            background_translucent = 254;
            background_transparent = 0;

            dimScreen = true;

            dimScreenSurface = new Surface (Painter.SCREEN_RES_X, Painter.SCREEN_RES_Y);
            dimScreenSurface.Alpha = 100;
            dimScreenSurface.AlphaBlending = true;
        }
예제 #10
0
 public UIElement(UIScreen screen, ushort x1, ushort y1, ushort width, ushort height)
     : this(screen, x1, y1)
 {
     this.width = width;
     this.height = height;
 }
예제 #11
0
		public OkDialog (UIScreen parent, Mpq mpq, string message)
			: base (parent, mpq, "glue\\PalNl", Builtins.rez_GluPOkBin)
		{
			background_path = "glue\\PalNl\\pOPopup.pcx";
			this.message = message;
		}
예제 #12
0
		public OptionsDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_OptionsBin)
		{
			background_path = null;
		}
예제 #13
0
		public VideoDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_VideoBin)
		{
			background_path = null;
		}
예제 #14
0
		public MovieElement (UIScreen screen, BinElement el, byte[] palette, string resource, bool scale)
			: this (screen, el, palette, resource)
		{
			this.scale = scale;
		}
예제 #15
0
 public ObjectivesDialog(UIScreen parent, Mpq mpq)
     : base(parent, mpq, "glue\\Palmm", Builtins.rez_ObjctDlgBin)
 {
     background_path = null;
 }
예제 #16
0
 public GameMenuDialog(UIScreen parent, Mpq mpq)
     : base(parent, mpq, "glue\\Palmm", Builtins.rez_GameMenuBin)
 {
     background_path = null;
 }
예제 #17
0
		public MovieElement (UIScreen screen, int x, int y, int width, int height, bool scale)
			: base (screen, (ushort)x, (ushort)y, (ushort)width, (ushort)height)
		{
			Sensitive = false;
			this.scale = scale;
		}
예제 #18
0
 public ComboBoxElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
     items = new List<string> ();
 }
예제 #19
0
 public EndMissionDialog(UIScreen parent, Mpq mpq)
     : base(parent, mpq, "glue\\Palmm", Builtins.rez_AbrtMenuBin)
 {
     background_path = null;
 }
예제 #20
0
 public DialogBoxElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
     tileGrp = (Grp)Mpq.GetResource ("dlgs\\tile.grp");
 }
예제 #21
0
		public MovieElement (UIScreen screen, BinElement el, byte[] palette, bool scale)
			: base (screen, el, palette)
		{
			this.scale = scale;
		}
예제 #22
0
 public KeystrokeDialog(UIScreen parent, Mpq mpq)
     : base(parent, mpq, "glue\\Palmm", Builtins.rez_HelpBin)
 {
     background_path = null;
 }
예제 #23
0
 public TextBoxElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
     value = new StringBuilder();
 }
예제 #24
0
 public RestartConfirmationDialog(UIScreen parent, Mpq mpq)
     : base(parent, mpq, "glue\\Palmm", Builtins.rez_RestartBin)
 {
     background_path = null;
 }
예제 #25
0
파일: Game.cs 프로젝트: carriercomm/scsharp
		public void SetGameScreen (UIScreen screen)
		{
			Painter.Pause ();

			if (currentScreen != null)
				currentScreen.RemoveFromPainter ();
			currentScreen = screen;
			if (currentScreen != null)
				currentScreen.AddToPainter ();

			Painter.Resume ();
		}
예제 #26
0
		public ButtonElement (UIScreen screen, BinElement el, byte[] palette)
			: base (screen, el, palette)
		{
		}
예제 #27
0
파일: Game.cs 프로젝트: carriercomm/scsharp
		public void SwitchToScreen (UIScreen screen)
		{
			screen.Ready += SwitchReady;
			screenToSwitchTo = screen;
			screenToSwitchTo.Load ();
			return;
		}
예제 #28
0
		public NetworkDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_NetDlgBin)
		{
			background_path = null;
		}
예제 #29
0
파일: Game.cs 프로젝트: carriercomm/scsharp
		void SwitchReady ()
		{
			screenToSwitchTo.Ready -= SwitchReady;
			SetGameScreen (screenToSwitchTo);
			screenToSwitchTo = null;
		}
예제 #30
0
		public SpeedDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_SpdDlgBin)
		{
			background_path = null;
		}
예제 #31
0
 public ButtonElement(UIScreen screen, BinElement el, byte[] palette)
     : base(screen, el, palette)
 {
 }