コード例 #1
0
ファイル: GrpElement.cs プロジェクト: carriercomm/scsharp
		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;
		}
コード例 #2
0
ファイル: GameModeDialog.cs プロジェクト: carriercomm/scsharp
		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;
		}
コード例 #3
0
ファイル: LabelElement.cs プロジェクト: carriercomm/scsharp
		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;
		}
コード例 #4
0
ファイル: UIElement.cs プロジェクト: carriercomm/scsharp
		public UIElement (UIScreen screen, ushort x1, ushort y1)
		{
			this.screen = screen;
			this.x1 = x1;
			this.y1 = y1;
			this.sensitive = true;
			this.visible = false;
		}
コード例 #5
0
ファイル: ListBoxElement.cs プロジェクト: carriercomm/scsharp
		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
ファイル: UIElement.cs プロジェクト: carriercomm/scsharp
		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;
		}
コード例 #7
0
ファイル: UIDialog.cs プロジェクト: carriercomm/scsharp
		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;
			
			dimLayer = CALayer.Create ();
			dimLayer.Bounds = parent.Bounds;
			dimLayer.AnchorPoint = new PointF (0, 0);
			dimLayer.BackgroundColor = new CGColor (0, 0, 0, .7f);
		}
コード例 #8
0
ファイル: OptionsDialog.cs プロジェクト: carriercomm/scsharp
		public SpeedDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_SpdDlgBin)
		{
			background_path = null;
		}
コード例 #9
0
ファイル: OptionsDialog.cs プロジェクト: carriercomm/scsharp
		public OptionsDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_OptionsBin)
		{
			background_path = null;
		}
コード例 #10
0
ファイル: OptionsDialog.cs プロジェクト: carriercomm/scsharp
		public NetworkDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_NetDlgBin)
		{
			background_path = null;
		}
コード例 #11
0
ファイル: OkCancelDialog.cs プロジェクト: carriercomm/scsharp
		public OkCancelDialog (UIScreen parent, Mpq mpq, string message)
			: base (parent, mpq, "glue\\PalNl", Builtins.rez_GluPOkCancelBin)
		{
			background_path = "glue\\PalNl\\pDPopup.pcx";
			this.message = message;
		}
コード例 #12
0
ファイル: LabelElement.cs プロジェクト: carriercomm/scsharp
		public LabelElement (UIScreen screen, BinElement el, byte[] palette)
			: base (screen, el, palette)
		{
		}
コード例 #13
0
ファイル: GameMenuDialog.cs プロジェクト: carriercomm/scsharp
		public KeystrokeDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_HelpBin)
		{
			background_path = null;
		}
コード例 #14
0
ファイル: GameMenuDialog.cs プロジェクト: carriercomm/scsharp
		public QuitMissionDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_Quit2MnuBin)
		{
			background_path = null;
		}
コード例 #15
0
		public DialogBoxElement (UIScreen screen, BinElement el, byte[] palette)
			: base (screen, el, palette)
		{
			tileGrp = (Grp)Mpq.GetResource ("dlgs\\tile.grp");
		}
コード例 #16
0
ファイル: UIElement.cs プロジェクト: carriercomm/scsharp
		public UIElement (UIScreen screen, ushort x1, ushort y1, ushort width, ushort height)
			: this (screen, x1, y1)
		{
			this.width = width;
			this.height = height;
		}
コード例 #17
0
ファイル: Game.cs プロジェクト: carriercomm/scsharp
		void SwitchReady ()
		{
			screenToSwitchTo.Ready -= SwitchReady;
			SetGameScreen (screenToSwitchTo);
			screenToSwitchTo = null;
		}
コード例 #18
0
ファイル: Game.cs プロジェクト: carriercomm/scsharp
		public void SwitchToScreen (UIScreen screen)
		{
			screen.Ready += SwitchReady;
			screenToSwitchTo = screen;
			screenToSwitchTo.Load ();
			return;
		}
コード例 #19
0
ファイル: Game.cs プロジェクト: carriercomm/scsharp
		public void SetGameScreen (UIScreen screen)
		{
			if (currentScreen != null) {
				currentScreen.RemoveFromPainter ();
				currentScreen.RemoveFromSuperLayer ();
			}
			
			currentScreen = screen;
			
			if (currentScreen != null) {
				Layer.AddSublayer (currentScreen);
				currentScreen.AddToPainter ();
			}
		}
コード例 #20
0
ファイル: EntryDialog.cs プロジェクト: carriercomm/scsharp
		public EntryDialog (UIScreen parent, Mpq mpq, string title)
			: base (parent, mpq, "glue\\PalNl", Builtins.rez_GluPEditBin)
		{
			background_path = "glue\\PalNl\\pEPopup.pcx";
			this.title = title;
		}
コード例 #21
0
		public GrpButtonElement (UIScreen screen, Grp grp, byte[] palette, ushort x, ushort y)
			: base (screen, grp, palette, x, y)
		{
		}
コード例 #22
0
ファイル: GameMenuDialog.cs プロジェクト: carriercomm/scsharp
		public ObjectivesDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_ObjctDlgBin)
		{
			background_path = null;
		}
コード例 #23
0
		public ComboBoxElement (UIScreen screen, BinElement el, byte[] palette)
			: base (screen, el, palette)
		{
			items = new List<string> ();
		}
コード例 #24
0
ファイル: GameMenuDialog.cs プロジェクト: carriercomm/scsharp
		public ExitConfirmationDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_QuitBin)
		{
			background_path = null;
		}
コード例 #25
0
ファイル: MovieElement.cs プロジェクト: carriercomm/scsharp
		public MovieElement (UIScreen screen, int x, int y, int width, int height, bool scale)
			: base (screen, (ushort)x, (ushort)y, (ushort)width, (ushort)height)
		{
			this.scale = scale;
		}
コード例 #26
0
ファイル: GameMenuDialog.cs プロジェクト: carriercomm/scsharp
		public GameMenuDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_GameMenuBin)
		{
			background_path = null;
		}
コード例 #27
0
ファイル: ImageElement.cs プロジェクト: carriercomm/scsharp
		public ImageElement (UIScreen screen, ushort x1, ushort y1, ushort width, ushort height, int translucent_index)
			: base (screen, x1, y1, width, height)
		{
			this.translucent_index = translucent_index;
		}
コード例 #28
0
ファイル: OptionsDialog.cs プロジェクト: carriercomm/scsharp
		public VideoDialog (UIScreen parent, Mpq mpq)
			: base (parent, mpq, "glue\\Palmm", Builtins.rez_VideoBin)
		{
			background_path = null;
		}
コード例 #29
0
ファイル: TextBoxElement.cs プロジェクト: carriercomm/scsharp
		public TextBoxElement (UIScreen screen, BinElement el, byte[] palette)
			: base (screen, el, palette)
		{
			value = new StringBuilder();
		}
コード例 #30
0
ファイル: ImageElement.cs プロジェクト: carriercomm/scsharp
		public ImageElement (UIScreen screen, BinElement el, byte[] palette, int translucent_index)
			: base (screen, el, palette)
		{
			this.translucent_index = translucent_index;
		}
コード例 #31
0
ファイル: GrpButtonElement.cs プロジェクト: xerohour/scsharp
 public GrpButtonElement(UIScreen screen, Grp grp, byte[] palette, ushort x, ushort y)
     : base(screen, grp, palette, x, y)
 {
 }