public mnuTeamSelected(string name, int teamSlot) : base(name) { base.Size = new Size(165, 95); base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(300, 34); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblSwitch = new Label("lblSwitch"); lblSwitch.Font = FontManager.LoadFont("PMU", 32); lblSwitch.AutoSize = true; lblSwitch.Text = "Switch"; lblSwitch.Location = new Point(30, 08); lblSwitch.HoverColor = Color.Red; lblSwitch.ForeColor = Color.WhiteSmoke; lblSwitch.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblSwitch_Click); lblSendHome = new Label("lblSendHome"); lblSendHome.Font = FontManager.LoadFont("PMU", 32); lblSendHome.AutoSize = true; lblSendHome.Text = "Send Home"; lblSendHome.Location = new Point(30, 38); lblSendHome.HoverColor = Color.Red; lblSendHome.ForeColor = Color.WhiteSmoke; lblSendHome.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblSendHome_Click); this.AddWidget(lblSwitch); this.AddWidget(lblSendHome); this.AddWidget(itemPicker); this.TeamSlot = teamSlot; }
public mnuTournamentListing(string name, TournamentListing[] listings, Enums.TournamentListingMode mode) : base(name) { this.listings = listings; this.mode = mode; base.Size = new Size(315, 360); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblJoinTournament = new Label("lblJoinTournament"); lblJoinTournament.AutoSize = true; lblJoinTournament.Font = FontManager.LoadFont("PMDCP", 48); if (mode == Enums.TournamentListingMode.Join) { lblJoinTournament.Text = "Join A Tournament"; } else if (mode == Enums.TournamentListingMode.Spectate) { lblJoinTournament.Text = "Spectate In A Tournament"; } lblJoinTournament.ForeColor = Color.WhiteSmoke; lblJoinTournament.Location = new Point(20, 0); lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(182, 15); lblItemNum.Font = FontManager.LoadFont("PMDCP", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.ForeColor = Color.WhiteSmoke; lblItemNum.Text = "";//"0/" + ((MaxInfo.MaxInv - 1) / 10 + 1); lblActiveTournaments = new Label[10]; for (int i = 0; i < lblActiveTournaments.Length; i++) { lblActiveTournaments[i] = new Label("lblActiveTournaments" + i); //lblVisibleItems[i].AutoSize = true; //lblVisibleItems[i].Size = new Size(200, 32); lblActiveTournaments[i].Width = 200; lblActiveTournaments[i].Font = FontManager.LoadFont("PMDCP", 32); lblActiveTournaments[i].Location = new Point(35, (i * 30) + 48); //lblVisibleItems[i].HoverColor = Color.Red; lblActiveTournaments[i].ForeColor = Color.WhiteSmoke; lblActiveTournaments[i].Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblActiveTournament_Click); this.AddWidget(lblActiveTournaments[i]); } this.AddWidget(itemPicker); this.AddWidget(lblJoinTournament); this.AddWidget(lblItemNum); currentTen = 0; DisplayItems(currentTen * 10); ChangeSelected(0 % 10); }
public mnuInventory(string name, Enums.InvMenuType menuType, int itemSelected) : base(name) { base.Size = new Size(315, 360); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblInventory = new Label("lblInventory"); lblInventory.AutoSize = true; lblInventory.Font = FontManager.LoadFont("PMDCP", 48); lblInventory.Text = "Inventory"; lblInventory.ForeColor = Color.WhiteSmoke; lblInventory.Location = new Point(20, 0); picPreview = new PictureBox("picPreview"); picPreview.Size = new Size(32, 32); picPreview.BackColor = Color.Transparent; picPreview.Location = new Point(255, 20); lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(182, 15); lblItemNum.Font = FontManager.LoadFont("PMDCP", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.ForeColor = Color.WhiteSmoke; lblItemNum.Text = "0/" + ((MaxInfo.MaxInv - 1) / 10 + 1); lblVisibleItems = new Label[10]; for (int i = 0; i < lblVisibleItems.Length; i++) { lblVisibleItems[i] = new Label("lblVisibleItems" + i); //lblVisibleItems[i].AutoSize = true; lblVisibleItems[i].Size = new Size(200, 32); lblVisibleItems[i].Font = FontManager.LoadFont("PMDCP", 32); lblVisibleItems[i].Location = new Point(35, (i * 30) + 48); //lblVisibleItems[i].HoverColor = Color.Red; lblVisibleItems[i].ForeColor = Color.WhiteSmoke; lblVisibleItems[i].AllowDrop = true; lblVisibleItems[i].DragDrop += new EventHandler <DragEventArgs>(lblVisibleItems_DragDrop); lblVisibleItems[i].MouseDown += new EventHandler <MouseButtonEventArgs>(lblVisibleItems_MouseDown); lblVisibleItems[i].Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(inventoryItem_Click); this.AddWidget(lblVisibleItems[i]); } this.AddWidget(picPreview); this.AddWidget(itemPicker); this.AddWidget(lblInventory); this.AddWidget(lblItemNum); mode = menuType; currentTen = (itemSelected - 1) / 10; DisplayItems(currentTen * 10 + 1); ChangeSelected((itemSelected - 1) % 10); UpdateSelectedItemInfo(); }
public mnuInventory(string name, Enums.InvMenuType menuType, int itemSelected) : base(name) { base.Size = new Size(315, 360); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblInventory = new Label("lblInventory"); lblInventory.AutoSize = true; lblInventory.Font = FontManager.LoadFont("PMDCP", 48); lblInventory.Text = "Inventory"; lblInventory.ForeColor = Color.WhiteSmoke; lblInventory.Location = new Point(20, 0); picPreview = new PictureBox("picPreview"); picPreview.Size = new Size(32, 32); picPreview.BackColor = Color.Transparent; picPreview.Location = new Point(255, 20); lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(182, 15); lblItemNum.Font = FontManager.LoadFont("PMDCP", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.ForeColor = Color.WhiteSmoke; lblItemNum.Text = "0/" + ((MaxInfo.MaxInv - 1) / 10 + 1); lblVisibleItems = new Label[10]; for (int i = 0; i < lblVisibleItems.Length; i++) { lblVisibleItems[i] = new Label("lblVisibleItems" + i); //lblVisibleItems[i].AutoSize = true; lblVisibleItems[i].Size = new Size(200, 32); lblVisibleItems[i].Font = FontManager.LoadFont("PMDCP", 32); lblVisibleItems[i].Location = new Point(35, (i * 30) + 48); //lblVisibleItems[i].HoverColor = Color.Red; lblVisibleItems[i].ForeColor = Color.WhiteSmoke; lblVisibleItems[i].AllowDrop = true; lblVisibleItems[i].DragDrop += new EventHandler<DragEventArgs>(lblVisibleItems_DragDrop); lblVisibleItems[i].MouseDown += new EventHandler<MouseButtonEventArgs>(lblVisibleItems_MouseDown); lblVisibleItems[i].Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(inventoryItem_Click); this.AddWidget(lblVisibleItems[i]); } this.AddWidget(picPreview); this.AddWidget(itemPicker); this.AddWidget(lblInventory); this.AddWidget(lblItemNum); mode = menuType; currentTen = (itemSelected - 1) / 10; DisplayItems(currentTen * 10 + 1); ChangeSelected((itemSelected - 1) % 10); UpdateSelectedItemInfo(); }
public mnuTournamentListing(string name, TournamentListing[] listings, Enums.TournamentListingMode mode) : base(name) { this.listings = listings; this.mode = mode; base.Size = new Size(315, 360); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblJoinTournament = new Label("lblJoinTournament"); lblJoinTournament.AutoSize = true; lblJoinTournament.Font = FontManager.LoadFont("PMDCP", 48); if (mode == Enums.TournamentListingMode.Join) { lblJoinTournament.Text = "Join A Tournament"; } else if (mode == Enums.TournamentListingMode.Spectate) { lblJoinTournament.Text = "Spectate In A Tournament"; } lblJoinTournament.ForeColor = Color.WhiteSmoke; lblJoinTournament.Location = new Point(20, 0); lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(182, 15); lblItemNum.Font = FontManager.LoadFont("PMDCP", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.ForeColor = Color.WhiteSmoke; lblItemNum.Text = "";//"0/" + ((MaxInfo.MaxInv - 1) / 10 + 1); lblActiveTournaments = new Label[10]; for (int i = 0; i < lblActiveTournaments.Length; i++) { lblActiveTournaments[i] = new Label("lblActiveTournaments" + i); //lblVisibleItems[i].AutoSize = true; //lblVisibleItems[i].Size = new Size(200, 32); lblActiveTournaments[i].Width = 200; lblActiveTournaments[i].Font = FontManager.LoadFont("PMDCP", 32); lblActiveTournaments[i].Location = new Point(35, (i * 30) + 48); //lblVisibleItems[i].HoverColor = Color.Red; lblActiveTournaments[i].ForeColor = Color.WhiteSmoke; lblActiveTournaments[i].Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblActiveTournament_Click); this.AddWidget(lblActiveTournaments[i]); } this.AddWidget(itemPicker); this.AddWidget(lblJoinTournament); this.AddWidget(lblItemNum); currentTen = 0; DisplayItems(currentTen * 10); ChangeSelected(0 % 10); }
public mnuMoveRecall(string name) : base(name) { base.Size = new Size(315, 360); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblItemCollection = new Label("lblItemCollection"); lblItemCollection.AutoSize = true; lblItemCollection.Font = FontManager.LoadFont("PMU", 48); lblItemCollection.Text = "Move Recall"; lblItemCollection.Location = new Point(20, 0); lblItemCollection.ForeColor = Color.WhiteSmoke; lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(196, 15); lblItemNum.Font = FontManager.LoadFont("PMU", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.Text = "0/0"; lblItemNum.ForeColor = Color.WhiteSmoke; lblVisibleItems = new Label[10]; for (int i = 0; i < lblVisibleItems.Length; i++) { lblVisibleItems[i] = new Label("lblVisibleItems" + i); //lblVisibleItems[i].AutoSize = true; //lblVisibleItems[i].Size = new Size(200, 32); lblVisibleItems[i].Width = 200; lblVisibleItems[i].Font = FontManager.LoadFont("PMU", 32); lblVisibleItems[i].Location = new Point(35, (i * 30) + 48); //lblVisibleItems[i].HoverColor = Color.Red; lblVisibleItems[i].ForeColor = Color.WhiteSmoke; lblVisibleItems[i].Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(moveItem_Click); this.AddWidget(lblVisibleItems[i]); } this.AddWidget(lblItemCollection); this.AddWidget(lblItemNum); this.AddWidget(itemPicker); //DisplayItems(currentTen * 10 + 1); //ChangeSelected((itemSelected - 1) % 10); //UpdateSelectedItemInfo(); //loaded = true; lblVisibleItems[0].Text = "Loading..."; }
public mnuMoveSelected(string name, int moveSlot) : base(name) { base.Size = new Size(165, 155); base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(300, 34); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblUse = new Label("lblUse"); lblUse.Font = FontManager.LoadFont("PMDCP", 32); lblUse.AutoSize = true; lblUse.Text = "Use"; lblUse.Location = new Point(30, 8); lblUse.HoverColor = Color.Red; lblUse.ForeColor = Color.WhiteSmoke; lblUse.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblUse_Click); lblShiftUp = new Label("lblShiftUp"); lblShiftUp.Font = FontManager.LoadFont("PMDCP", 32); lblShiftUp.AutoSize = true; lblShiftUp.Text = "Shift Up"; lblShiftUp.Location = new Point(30, 38); lblShiftUp.HoverColor = Color.Red; lblShiftUp.ForeColor = Color.WhiteSmoke; lblShiftUp.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblShiftUp_Click); lblShiftDown = new Label("lblShiftDown"); lblShiftDown.Font = FontManager.LoadFont("PMDCP", 32); lblShiftDown.AutoSize = true; lblShiftDown.Text = "Shift Down"; lblShiftDown.Location = new Point(30, 68); lblShiftDown.HoverColor = Color.Red; lblShiftDown.ForeColor = Color.WhiteSmoke; lblShiftDown.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblShiftDown_Click); lblForget = new Label("lblForget"); lblForget.Font = FontManager.LoadFont("PMDCP", 32); lblForget.AutoSize = true; lblForget.Text = "Forget"; lblForget.Location = new Point(30, 98); lblForget.HoverColor = Color.Red; lblForget.ForeColor = Color.WhiteSmoke; lblForget.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblForget_Click); this.AddWidget(itemPicker); this.AddWidget(lblUse); this.AddWidget(lblShiftUp); this.AddWidget(lblShiftDown); this.AddWidget(lblForget); this.MoveSlot = moveSlot; }
public mnuShopItemSelected(string name, int itemNum, int itemSlot, Enums.InvMenuType transactionType) : base(name) { transaction = transactionType; base.Size = new Size(185, 125); base.MenuDirection = Enums.MenuDirection.Horizontal; if (transaction == Enums.InvMenuType.Buy) { base.Location = new Point(435, 40); } else { base.Location = new Point(335, 40); } itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblMove = new Label("lblMove"); lblMove.Font = FontManager.LoadFont("PMU", 32); lblMove.AutoSize = true; lblMove.Text = "Store"; lblMove.Location = new Point(30, 8); lblMove.HoverColor = Color.Red; lblMove.ForeColor = Color.WhiteSmoke; lblMove.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblMove_Click); nudAmount = new NumericUpDown("nudAmount"); nudAmount.Size = new Size(120, 24); nudAmount.Location = new Point(32, 42); nudAmount.Font = FontManager.LoadFont("PMU", 16); nudAmount.Minimum = 1; nudAmount.Maximum = Int32.MaxValue; lblSummary = new Label("lblSummary"); lblSummary.Font = FontManager.LoadFont("PMU", 32); lblSummary.AutoSize = true; lblSummary.Text = "Summary"; lblSummary.Location = new Point(30, 58); lblSummary.HoverColor = Color.Red; lblSummary.ForeColor = Color.WhiteSmoke; lblSummary.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblSummary_Click); this.AddWidget(itemPicker); this.AddWidget(lblMove); this.AddWidget(nudAmount); this.AddWidget(lblSummary); this.ItemSlot = itemSlot; this.ItemNum = itemNum; }
public mnuMoveSelected(string name, int moveSlot) : base(name) { base.Size = new Size(165, 155); base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(300, 34); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblUse = new Label("lblUse"); lblUse.Font = FontManager.LoadFont("PMU", 32); lblUse.AutoSize = true; lblUse.Text = "Use"; lblUse.Location = new Point(30, 8); lblUse.HoverColor = Color.Red; lblUse.ForeColor = Color.WhiteSmoke; lblUse.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblUse_Click); lblShiftUp = new Label("lblShiftUp"); lblShiftUp.Font = FontManager.LoadFont("PMU", 32); lblShiftUp.AutoSize = true; lblShiftUp.Text = "Shift Up"; lblShiftUp.Location = new Point(30, 38); lblShiftUp.HoverColor = Color.Red; lblShiftUp.ForeColor = Color.WhiteSmoke; lblShiftUp.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblShiftUp_Click); lblShiftDown = new Label("lblShiftDown"); lblShiftDown.Font = FontManager.LoadFont("PMU", 32); lblShiftDown.AutoSize = true; lblShiftDown.Text = "Shift Down"; lblShiftDown.Location = new Point(30, 68); lblShiftDown.HoverColor = Color.Red; lblShiftDown.ForeColor = Color.WhiteSmoke; lblShiftDown.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblShiftDown_Click); lblForget = new Label("lblForget"); lblForget.Font = FontManager.LoadFont("PMU", 32); lblForget.AutoSize = true; lblForget.Text = "Forget"; lblForget.Location = new Point(30, 98); lblForget.HoverColor = Color.Red; lblForget.ForeColor = Color.WhiteSmoke; lblForget.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblForget_Click); this.AddWidget(itemPicker); this.AddWidget(lblUse); this.AddWidget(lblShiftUp); this.AddWidget(lblShiftDown); this.AddWidget(lblForget); this.MoveSlot = moveSlot; }
public mnuMoveOverwrite(string name) : base(name) { this.Size = new Size(170, 178); this.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblMove1 = new Label("lblMove1"); lblMove1.AutoSize = true; lblMove1.Location = new Point(30, 8); lblMove1.Font = FontManager.LoadFont("PMU", 32); lblMove1.Text = PlayerManager.MyPlayer.Moves[0].MoveNum > 0 ? MoveHelper.Moves[PlayerManager.MyPlayer.Moves[0].MoveNum].Name : "----";; lblMove1.HoverColor = Color.Red; lblMove1.ForeColor = Color.WhiteSmoke; lblMove1.Click += new EventHandler <MouseButtonEventArgs>(lblMove1_Click); lblMove2 = new Label("lblMove2"); lblMove2.AutoSize = true; lblMove2.Location = new Point(30, 38); lblMove2.Font = FontManager.LoadFont("PMU", 32); lblMove2.Text = PlayerManager.MyPlayer.Moves[1].MoveNum > 0 ? MoveHelper.Moves[PlayerManager.MyPlayer.Moves[1].MoveNum].Name : "----";; lblMove2.HoverColor = Color.Red; lblMove2.ForeColor = Color.WhiteSmoke; lblMove2.Click += new EventHandler <MouseButtonEventArgs>(lblMove2_Click); lblMove3 = new Label("lblMove3"); lblMove3.AutoSize = true; lblMove3.Location = new Point(30, 68); lblMove3.Font = FontManager.LoadFont("PMU", 32); lblMove3.Text = PlayerManager.MyPlayer.Moves[2].MoveNum > 0 ? MoveHelper.Moves[PlayerManager.MyPlayer.Moves[2].MoveNum].Name : "----";; lblMove3.HoverColor = Color.Red; lblMove3.ForeColor = Color.WhiteSmoke; lblMove3.Click += new EventHandler <MouseButtonEventArgs>(lblMove3_Click); lblMove4 = new Label("lblMove4"); lblMove4.AutoSize = true; lblMove4.Location = new Point(30, 98); lblMove4.Font = FontManager.LoadFont("PMU", 32); lblMove4.Text = PlayerManager.MyPlayer.Moves[3].MoveNum > 0 ? MoveHelper.Moves[PlayerManager.MyPlayer.Moves[3].MoveNum].Name : "----"; lblMove4.HoverColor = Color.Red; lblMove4.ForeColor = Color.WhiteSmoke; lblMove4.Click += new EventHandler <MouseButtonEventArgs>(lblMove4_Click); this.AddWidget(itemPicker); this.AddWidget(lblMove1); this.AddWidget(lblMove2); this.AddWidget(lblMove3); this.AddWidget(lblMove4); }
public mnuMoveOverwrite(string name) : base(name) { this.Size = new Size(170, 178); this.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblMove1 = new Label("lblMove1"); lblMove1.AutoSize = true; lblMove1.Location = new Point(30, 8); lblMove1.Font = FontManager.LoadFont("PMDCP", 32); lblMove1.Text = PlayerManager.MyPlayer.Moves[0].MoveNum > 0 ? MoveHelper.Moves[PlayerManager.MyPlayer.Moves[0].MoveNum].Name : "----"; ; lblMove1.HoverColor = Color.Red; lblMove1.ForeColor = Color.WhiteSmoke; lblMove1.Click += new EventHandler<MouseButtonEventArgs>(lblMove1_Click); lblMove2 = new Label("lblMove2"); lblMove2.AutoSize = true; lblMove2.Location = new Point(30, 38); lblMove2.Font = FontManager.LoadFont("PMDCP", 32); lblMove2.Text = PlayerManager.MyPlayer.Moves[1].MoveNum > 0 ? MoveHelper.Moves[PlayerManager.MyPlayer.Moves[1].MoveNum].Name : "----"; ; lblMove2.HoverColor = Color.Red; lblMove2.ForeColor = Color.WhiteSmoke; lblMove2.Click += new EventHandler<MouseButtonEventArgs>(lblMove2_Click); lblMove3 = new Label("lblMove3"); lblMove3.AutoSize = true; lblMove3.Location = new Point(30, 68); lblMove3.Font = FontManager.LoadFont("PMDCP", 32); lblMove3.Text = PlayerManager.MyPlayer.Moves[2].MoveNum > 0 ? MoveHelper.Moves[PlayerManager.MyPlayer.Moves[2].MoveNum].Name : "----"; ; lblMove3.HoverColor = Color.Red; lblMove3.ForeColor = Color.WhiteSmoke; lblMove3.Click += new EventHandler<MouseButtonEventArgs>(lblMove3_Click); lblMove4 = new Label("lblMove4"); lblMove4.AutoSize = true; lblMove4.Location = new Point(30, 98); lblMove4.Font = FontManager.LoadFont("PMDCP", 32); lblMove4.Text = PlayerManager.MyPlayer.Moves[3].MoveNum > 0 ? MoveHelper.Moves[PlayerManager.MyPlayer.Moves[3].MoveNum].Name : "----"; lblMove4.HoverColor = Color.Red; lblMove4.ForeColor = Color.WhiteSmoke; lblMove4.Click += new EventHandler<MouseButtonEventArgs>(lblMove4_Click); this.AddWidget(itemPicker); this.AddWidget(lblMove1); this.AddWidget(lblMove2); this.AddWidget(lblMove3); this.AddWidget(lblMove4); }
public mnuShopItemSelected(string name, int itemNum, int itemSlot, Enums.InvMenuType transactionType) : base(name) { transaction = transactionType; base.Size = new Size(185, 125); base.MenuDirection = Enums.MenuDirection.Horizontal; if (transaction == Enums.InvMenuType.Buy) { base.Location = new Point(435, 40); } else { base.Location = new Point(335, 40); } itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblMove = new Label("lblMove"); lblMove.Font = FontManager.LoadFont("PMU", 32); lblMove.AutoSize = true; lblMove.Text = "Store"; lblMove.Location = new Point(30, 8); lblMove.HoverColor = Color.Red; lblMove.ForeColor = Color.WhiteSmoke; lblMove.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblMove_Click); nudAmount = new NumericUpDown("nudAmount"); nudAmount.Size = new Size(120, 24); nudAmount.Location = new Point(32, 42); nudAmount.Font = FontManager.LoadFont("PMU", 16); nudAmount.Minimum = 1; nudAmount.Maximum = Int32.MaxValue; lblSummary = new Label("lblSummary"); lblSummary.Font = FontManager.LoadFont("PMU", 32); lblSummary.AutoSize = true; lblSummary.Text = "Summary"; lblSummary.Location = new Point(30, 58); lblSummary.HoverColor = Color.Red; lblSummary.ForeColor = Color.WhiteSmoke; lblSummary.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblSummary_Click); this.AddWidget(itemPicker); this.AddWidget(lblMove); this.AddWidget(nudAmount); this.AddWidget(lblSummary); this.ItemSlot = itemSlot; this.ItemNum = itemNum; }
public mnuMoveRecall(string name) : base(name) { base.Size = new Size(315, 360); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblItemCollection = new Label("lblItemCollection"); lblItemCollection.AutoSize = true; lblItemCollection.Font = FontManager.LoadFont("PMDCP", 48); lblItemCollection.Text = "Move Recall"; lblItemCollection.Location = new Point(20, 0); lblItemCollection.ForeColor = Color.WhiteSmoke; lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(196, 15); lblItemNum.Font = FontManager.LoadFont("PMDCP", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.Text = "0/0"; lblItemNum.ForeColor = Color.WhiteSmoke; lblVisibleItems = new Label[10]; for (int i = 0; i < lblVisibleItems.Length; i++) { lblVisibleItems[i] = new Label("lblVisibleItems" + i); //lblVisibleItems[i].AutoSize = true; //lblVisibleItems[i].Size = new Size(200, 32); lblVisibleItems[i].Width = 200; lblVisibleItems[i].Font = FontManager.LoadFont("PMDCP", 32); lblVisibleItems[i].Location = new Point(35, (i * 30) + 48); //lblVisibleItems[i].HoverColor = Color.Red; lblVisibleItems[i].ForeColor = Color.WhiteSmoke; lblVisibleItems[i].Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(moveItem_Click); this.AddWidget(lblVisibleItems[i]); } this.AddWidget(lblItemCollection); this.AddWidget(lblItemNum); this.AddWidget(itemPicker); //DisplayItems(currentTen * 10 + 1); //ChangeSelected((itemSelected - 1) % 10); //UpdateSelectedItemInfo(); //loaded = true; lblVisibleItems[0].Text = "Loading..."; }
public mnuMoves(string name) : base(name) { base.Size = new Size(280, 188); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblMoves = new Label("lblMoves"); lblMoves.Location = new Point(20, 0); lblMoves.AutoSize = true; lblMoves.Font = FontManager.LoadFont("PMDCP", 48); lblMoves.ForeColor = Color.WhiteSmoke; lblMoves.Text = "Moves"; lblAllMoves = new Label[Players.PlayerManager.MyPlayer.Moves.Length]; lblAllMovesPP = new Label[Players.PlayerManager.MyPlayer.Moves.Length]; for (int i = 0; i < Players.PlayerManager.MyPlayer.Moves.Length; i++) { lblAllMoves[i] = new Label("lblAllMoves" + i); lblAllMoves[i].AutoSize = true; lblAllMoves[i].Font = FontManager.LoadFont("PMDCP", 32); lblAllMoves[i].Location = new Point(30, (i * 30) + 48); //lblAllMoves[i].HoverColor = Color.Red; lblAllMoves[i].AllowDrop = true; lblAllMoves[i].MouseDown += new EventHandler<MouseButtonEventArgs>(lblAllMoves_MouseDown); lblAllMoves[i].DragDrop += new EventHandler<DragEventArgs>(lblAllMoves_DragDrop); lblAllMoves[i].Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(move_Click); this.AddWidget(lblAllMoves[i]); lblAllMovesPP[i] = new Label("lblAllMovesPP" + i); lblAllMovesPP[i].AutoSize = true; lblAllMovesPP[i].Centered = true; lblAllMovesPP[i].Font = FontManager.LoadFont("PMDCP", 32); lblAllMovesPP[i].Location = new Point(190, (i * 30) + 48); this.AddWidget(lblAllMovesPP[i]); } this.AddWidget(itemPicker); this.AddWidget(lblMoves); DisplayMoves(); ChangeSelected(0); }
public mnuMoves(string name) : base(name) { base.Size = new Size(280, 188); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblMoves = new Label("lblMoves"); lblMoves.Location = new Point(20, 0); lblMoves.AutoSize = true; lblMoves.Font = FontManager.LoadFont("PMDCP", 48); lblMoves.ForeColor = Color.WhiteSmoke; lblMoves.Text = "Moves"; lblAllMoves = new Label[Players.PlayerManager.MyPlayer.Moves.Length]; lblAllMovesPP = new Label[Players.PlayerManager.MyPlayer.Moves.Length]; for (int i = 0; i < Players.PlayerManager.MyPlayer.Moves.Length; i++) { lblAllMoves[i] = new Label("lblAllMoves" + i); lblAllMoves[i].AutoSize = true; lblAllMoves[i].Font = FontManager.LoadFont("PMDCP", 32); lblAllMoves[i].Location = new Point(30, (i * 30) + 48); //lblAllMoves[i].HoverColor = Color.Red; lblAllMoves[i].AllowDrop = true; lblAllMoves[i].MouseDown += new EventHandler <MouseButtonEventArgs>(lblAllMoves_MouseDown); lblAllMoves[i].DragDrop += new EventHandler <DragEventArgs>(lblAllMoves_DragDrop); lblAllMoves[i].Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(move_Click); this.AddWidget(lblAllMoves[i]); lblAllMovesPP[i] = new Label("lblAllMovesPP" + i); lblAllMovesPP[i].AutoSize = true; lblAllMovesPP[i].Centered = true; lblAllMovesPP[i].Font = FontManager.LoadFont("PMDCP", 32); lblAllMovesPP[i].Location = new Point(190, (i * 30) + 48); this.AddWidget(lblAllMovesPP[i]); } this.AddWidget(itemPicker); this.AddWidget(lblMoves); DisplayMoves(); ChangeSelected(0); }
public OptionSelectionMenu(string name, Size storyBounds, string[] options) : base(name) { lblOptions = new Label[options.Length]; itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(0, 15); int maxWidth = 140; for (int i = 0; i < options.Length; i++) { lblOptions[i] = new Label("lblOptions" + i); lblOptions[i].Font = Graphics.FontManager.LoadFont("PMDCP", 32); lblOptions[i].Location = new Point(15, i * 26); lblOptions[i].AutoSize = true; lblOptions[i].ForeColor = Color.WhiteSmoke; lblOptions[i].Text = options[i]; if (lblOptions[i].Width > maxWidth) { maxWidth = lblOptions[i].Width; } this.WidgetPanel.AddWidget(lblOptions[i]); } base.Size = new System.Drawing.Size(maxWidth + 30, options.Length * 26 + 20); base.Location = new Point(storyBounds.Width - this.Width - 20, storyBounds.Height - this.Height - 110); //lblText = new Label("lblText"); //lblText.BackColor = Color.Transparent; //lblText.Font = Graphics.FontManager.LoadFont("unown", 36); //lblText.Location = new Point(15, 10); //lblText.Size = new System.Drawing.Size(this.Size.Width - lblText.Location.X, this.Size.Height - lblText.Location.Y); //picSpeaker = new PictureBox("picSpeaker"); //picSpeaker.Size = new Size(40, 40); //picSpeaker.Location = new Point(10, DrawingSupport.GetCenter(WidgetPanel.Height, 40)); //picSpeaker.BorderWidth = 1; //picSpeaker.BorderStyle = SdlDotNet.Widgets.BorderStyle.FixedSingle; //this.WidgetPanel.AddWidget(lblText); //this.WidgetPanel.AddWidget(picSpeaker); this.WidgetPanel.AddWidget(itemPicker); }
public OptionSelectionMenu(string name, Size storyBounds, string[] options) : base(name) { lblOptions = new Label[options.Length]; itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(0, 15); int maxWidth = 140; for (int i = 0; i < options.Length; i++) { lblOptions[i] = new Label("lblOptions" + i); lblOptions[i].Font = Graphics.FontManager.LoadFont("PMDCP", 24); lblOptions[i].Location = new Point(15, i * 26); lblOptions[i].AutoSize = true; lblOptions[i].ForeColor = Color.WhiteSmoke; lblOptions[i].Text = options[i]; if (lblOptions[i].Width > maxWidth) { maxWidth = lblOptions[i].Width; } this.WidgetPanel.AddWidget(lblOptions[i]); } base.Size = new System.Drawing.Size(maxWidth + 30, options.Length * 26 + 20); base.Location = new Point(storyBounds.Width - this.Width - 20, storyBounds.Height - this.Height - 110); //lblText = new Label("lblText"); //lblText.BackColor = Color.Transparent; //lblText.Font = Graphics.FontManager.LoadFont("unown", 36); //lblText.Location = new Point(15, 10); //lblText.Size = new System.Drawing.Size(this.Size.Width - lblText.Location.X, this.Size.Height - lblText.Location.Y); //picSpeaker = new PictureBox("picSpeaker"); //picSpeaker.Size = new Size(40, 40); //picSpeaker.Location = new Point(10, DrawingSupport.GetCenter(WidgetPanel.Height, 40)); //picSpeaker.BorderWidth = 1; //picSpeaker.BorderStyle = SdlDotNet.Widgets.BorderStyle.FixedSingle; //this.WidgetPanel.AddWidget(lblText); //this.WidgetPanel.AddWidget(picSpeaker); this.WidgetPanel.AddWidget(itemPicker); }
public mnuTournamentListingSelected(string name, TournamentListing selectedListing, Enums.TournamentListingMode mode) : base(name) { this.selectedListing = selectedListing; this.mode = mode; base.Size = new Size(185, 125); base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(335, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblJoin = new Label("lblJoin"); lblJoin.Font = FontManager.LoadFont("PMDCP", 32); lblJoin.AutoSize = true; if (mode == Enums.TournamentListingMode.Join) { lblJoin.Text = "Join"; } else if (mode == Enums.TournamentListingMode.Spectate) { lblJoin.Text = "Spectate"; } lblJoin.Location = new Point(30, 8); lblJoin.HoverColor = Color.Red; lblJoin.ForeColor = Color.WhiteSmoke; lblJoin.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblJoin_Click); lblViewRules = new Label("lblViewRules"); lblViewRules.Font = FontManager.LoadFont("PMDCP", 32); lblViewRules.AutoSize = true; lblViewRules.Text = "View Rules"; lblViewRules.Location = new Point(30, 58); lblViewRules.HoverColor = Color.Red; lblViewRules.ForeColor = Color.WhiteSmoke; lblViewRules.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblViewRules_Click); this.AddWidget(itemPicker); this.AddWidget(lblJoin); this.AddWidget(lblViewRules); }
public mnuTournamentListingSelected(string name, TournamentListing selectedListing, Enums.TournamentListingMode mode) : base(name) { this.selectedListing = selectedListing; this.mode = mode; base.Size = new Size(185, 125); base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(335, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblJoin = new Label("lblJoin"); lblJoin.Font = FontManager.LoadFont("PMDCP", 32); lblJoin.AutoSize = true; if (mode == Enums.TournamentListingMode.Join) { lblJoin.Text = "Join"; } else if (mode == Enums.TournamentListingMode.Spectate) { lblJoin.Text = "Spectate"; } lblJoin.Location = new Point(30, 8); lblJoin.HoverColor = Color.Red; lblJoin.ForeColor = Color.WhiteSmoke; lblJoin.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblJoin_Click); lblViewRules = new Label("lblViewRules"); lblViewRules.Font = FontManager.LoadFont("PMDCP", 32); lblViewRules.AutoSize = true; lblViewRules.Text = "View Rules"; lblViewRules.Location = new Point(30, 58); lblViewRules.HoverColor = Color.Red; lblViewRules.ForeColor = Color.WhiteSmoke; lblViewRules.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblViewRules_Click); this.AddWidget(itemPicker); this.AddWidget(lblJoin); this.AddWidget(lblViewRules); }
public mnuTeamSelected(string name, int teamSlot) : base(name) { base.Size = new Size(165, 95); base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(300, 34); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); lblSwitch = new Label("lblSwitch"); lblSwitch.Font = FontManager.LoadFont("PMU", 32); lblSwitch.AutoSize = true; lblSwitch.Text = "Switch"; lblSwitch.Location = new Point(30, 08); lblSwitch.HoverColor = Color.Red; lblSwitch.ForeColor = Color.WhiteSmoke; lblSwitch.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblSwitch_Click); lblSendHome = new Label("lblSendHome"); lblSendHome.Font = FontManager.LoadFont("PMU", 32); lblSendHome.AutoSize = true; lblSendHome.Text = "Send Home"; lblSendHome.Location = new Point(30, 38); lblSendHome.HoverColor = Color.Red; lblSendHome.ForeColor = Color.WhiteSmoke; lblSendHome.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblSendHome_Click); this.AddWidget(lblSwitch); this.AddWidget(lblSendHome); this.AddWidget(itemPicker); this.TeamSlot = teamSlot; }
public mnuGuild(string name) : base(name) { this.Size = new Size(280, 206); this.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 111); lblGuild = new Label("lblGuild"); lblGuild.Location = new Point(20, 0); lblGuild.AutoSize = true; lblGuild.Font = FontManager.LoadFont("PMU", 48); lblGuild.Text = "Guild"; lblGuild.ForeColor = Color.WhiteSmoke; lblName = new Label("lblName"); lblName.AutoSize = true; lblName.Location = new Point(30, 48); lblName.Font = FontManager.LoadFont("PMU", 32); lblName.Text = "Name"; lblName.ForeColor = Color.WhiteSmoke; //lblName.HoverColor = Color.Red; txtName = new TextBox("txtName"); txtName.Size = new Size(120, 24); txtName.Location = new Point(32, 80); txtName.Font = FontManager.LoadFont("PMU", 16); Skins.SkinManager.LoadTextBoxGui(txtName); lblMakeTrainee = new Label("lblMakeTrainee"); lblMakeTrainee.AutoSize = true; lblMakeTrainee.Location = new Point(30, 96); lblMakeTrainee.Font = FontManager.LoadFont("PMU", 32); lblMakeTrainee.Text = "Make Trainee"; lblMakeTrainee.HoverColor = Color.Red; lblMakeTrainee.ForeColor = Color.WhiteSmoke; lblMakeTrainee.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblMakeTrainee_Click); lblMakeMember = new Label("lblMakeMember"); lblMakeMember.AutoSize = true; lblMakeMember.Location = new Point(30, 126); lblMakeMember.Font = FontManager.LoadFont("PMU", 32); lblMakeMember.Text = "Make Member"; lblMakeMember.HoverColor = Color.Red; lblMakeMember.ForeColor = Color.WhiteSmoke; lblMakeMember.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblMakeMember_Click); lblDisown = new Label("lblDisown"); lblDisown.AutoSize = true; lblDisown.Location = new Point(30, 156); lblDisown.Font = FontManager.LoadFont("PMU", 32); lblDisown.Text = "Disown"; lblDisown.HoverColor = Color.Red; lblDisown.ForeColor = Color.WhiteSmoke; lblDisown.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblDisown_Click); this.AddWidget(itemPicker); this.AddWidget(lblGuild); this.AddWidget(lblName); this.AddWidget(txtName); this.AddWidget(lblMakeTrainee); this.AddWidget(lblMakeMember); this.AddWidget(lblDisown); }
public mnuJobSelected(string name, int jobSlot) : base(name) { int size = 95; maxItems = 1; if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Finished || Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Failed) { } else { size += 30; maxItems++; } if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].CanSend) { size += 60; maxItems++; } base.Size = new Size(180, size); base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(300, 34); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); int locY = 8; if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Finished || Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Failed) { } else { lblAccept = new Label("lblAccept"); lblAccept.Font = FontManager.LoadFont("PMDCP", 32); lblAccept.AutoSize = true; if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Obtained || Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Suspended) { lblAccept.Text = "Accept"; } else if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Taken) { lblAccept.Text = "Cancel"; } lblAccept.Location = new Point(30, locY); lblAccept.HoverColor = Color.Red; lblAccept.ForeColor = Color.WhiteSmoke; lblAccept.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblAccept_Click); this.AddWidget(lblAccept); locY += 30; } lblDescription = new Label("lblDescription"); lblDescription.Font = FontManager.LoadFont("PMDCP", 32); lblDescription.AutoSize = true; lblDescription.Text = "Description"; lblDescription.Location = new Point(30, locY); lblDescription.HoverColor = Color.Red; lblDescription.ForeColor = Color.WhiteSmoke; lblDescription.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblDescription_Click); locY += 30; lblDelete = new Label("lblDelete"); lblDelete.Font = FontManager.LoadFont("PMDCP", 32); lblDelete.AutoSize = true; lblDelete.Text = "Delete"; lblDelete.Location = new Point(30, locY); lblDelete.HoverColor = Color.Red; lblDelete.ForeColor = Color.WhiteSmoke; lblDelete.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblDelete_Click); locY += 30; if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].CanSend) { lblSend = new Label("lblSend"); lblSend.Font = FontManager.LoadFont("PMDCP", 32); lblSend.AutoSize = true; lblSend.Text = "Send to:"; lblSend.Location = new Point(30, locY); lblSend.HoverColor = Color.Red; lblSend.ForeColor = Color.WhiteSmoke; lblSend.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblSend_Click); locY += 40; txtSend = new TextBox("txtSend"); txtSend.Size = new Size(120, 24); txtSend.Location = new Point(32, locY); txtSend.Font = FontManager.LoadFont("PMDCP", 16); Skins.SkinManager.LoadTextBoxGui(txtSend); this.AddWidget(lblSend); this.AddWidget(txtSend); } this.AddWidget(itemPicker); this.AddWidget(lblDescription); this.AddWidget(lblDelete); this.jobSlot = jobSlot; }
public winOptions2() : base("winOptions") { this.Windowed = true; this.ShowInWindowSwitcher = false; this.TitleBar.Text = "Options"; this.TitleBar.CloseButton.Visible = false; this.BackColor = Color.Blue; //this.BackgroundImage = Skins.SkinManager.LoadGui("Options"); this.Size = new Size(280, 390); this.Location = DrawingSupport.GetCenter(SdlDotNet.Graphics.Video.Screen.Size, this.Size); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(30, 83); lblOptions = new Label("lblOptions"); lblOptions.Location = new Point(20, 0); lblOptions.AutoSize = true; lblOptions.Font = Graphics.FontManager.LoadFont("PMU", 48); lblOptions.Text = "Options"; lblPlayerData = new Label("lblPlayerData"); lblPlayerData.Location = new Point(30, 48); lblPlayerData.AutoSize = true; lblPlayerData.Font = Graphics.FontManager.LoadFont("PMU", 32); lblPlayerData.Text = "Player Data"; lblPlayerDataName = new Label("lblPlayerDataName"); lblPlayerDataName.Location = new Point(40, 78); lblPlayerDataName.AutoSize = true; lblPlayerDataName.Font = Graphics.FontManager.LoadFont("PMU", 16); lblPlayerDataName.Text = "Name: "; lblPlayerDataName.HoverColor = Color.Red; lblPlayerDataDamage = new Label("lblPlayerDataDamage"); lblPlayerDataDamage.Location = new Point(40, 92); lblPlayerDataDamage.AutoSize = true; lblPlayerDataDamage.Font = Graphics.FontManager.LoadFont("PMU", 16); lblPlayerDataDamage.Text = "Damage: "; lblPlayerDataDamage.HoverColor = Color.Red; lblPlayerDataMiniHP = new Label("lblPlayerDataMiniHP"); lblPlayerDataMiniHP.Location = new Point(40, 106); lblPlayerDataMiniHP.AutoSize = true; lblPlayerDataMiniHP.Font = Graphics.FontManager.LoadFont("PMU", 16); lblPlayerDataMiniHP.Text = "Mini-HP: "; lblPlayerDataMiniHP.HoverColor = Color.Red; lblPlayerDataAutoSaveSpeed = new Label("lblPlayerDataAutoSaveSpeed"); lblPlayerDataAutoSaveSpeed.Location = new Point(40, 120); lblPlayerDataAutoSaveSpeed.AutoSize = true; lblPlayerDataAutoSaveSpeed.Font = Graphics.FontManager.LoadFont("PMU", 16); lblPlayerDataAutoSaveSpeed.Text = "Auto-Save Speed: "; lblPlayerDataAutoSaveSpeed.HoverColor = Color.Red; lblNpcData = new Label("lblNpcData"); lblNpcData.Location = new Point(30, 130); lblNpcData.AutoSize = true; lblNpcData.Font = Graphics.FontManager.LoadFont("PMU", 32); lblNpcData.Text = "NPC Data"; lblNpcDataName = new Label("lblNpcDataName"); lblNpcDataName.Location = new Point(40, 160); lblNpcDataName.AutoSize = true; lblNpcDataName.Font = Graphics.FontManager.LoadFont("PMU", 16); lblNpcDataName.Text = "Name: "; lblNpcDataName.HoverColor = Color.Red; lblNpcDataDamage = new Label("lblNpcDataDamage"); lblNpcDataDamage.Location = new Point(40, 174); lblNpcDataDamage.AutoSize = true; lblNpcDataDamage.Font = Graphics.FontManager.LoadFont("PMU", 16); lblNpcDataDamage.Text = "Damage: "; lblNpcDataDamage.HoverColor = Color.Red; lblNpcDataMiniHP = new Label("lblNpcDataMiniHP"); lblNpcDataMiniHP.Location = new Point(40, 188); lblNpcDataMiniHP.AutoSize = true; lblNpcDataMiniHP.Font = Graphics.FontManager.LoadFont("PMU", 16); lblNpcDataMiniHP.Text = "Mini-HP: "; lblNpcDataMiniHP.HoverColor = Color.Red; lblSoundData = new Label("lblSoundData"); lblSoundData.Location = new Point(30, 198); lblSoundData.AutoSize = true; lblSoundData.Font = Graphics.FontManager.LoadFont("PMU", 32); lblSoundData.Text = "Sound Data"; lblSoundDataMusic = new Label("lblSoundDataMusic"); lblSoundDataMusic.Location = new Point(40, 228); lblSoundDataMusic.AutoSize = true; lblSoundDataMusic.Font = Graphics.FontManager.LoadFont("PMU", 16); lblSoundDataMusic.Text = "Music: "; lblSoundDataMusic.HoverColor = Color.Red; lblSoundDataSound = new Label("lblSoundDataSound"); lblSoundDataSound.Location = new Point(40, 242); lblSoundDataSound.AutoSize = true; lblSoundDataSound.Font = Graphics.FontManager.LoadFont("PMU", 16); lblSoundDataSound.Text = "Sound: "; lblSoundDataSound.HoverColor = Color.Red; lblChatData = new Label("lblChatData"); lblChatData.Location = new Point(30, 252); lblChatData.AutoSize = true; lblChatData.Font = Graphics.FontManager.LoadFont("PMU", 32); lblChatData.Text = "Chat Data"; lblChatDataSpeechBubbles = new Label("lblChatDataSpeechBubbles"); lblChatDataSpeechBubbles.Location = new Point(40, 282); lblChatDataSpeechBubbles.AutoSize = true; lblChatDataSpeechBubbles.Font = Graphics.FontManager.LoadFont("PMU", 16); lblChatDataSpeechBubbles.Text = "Speech Bubbles: "; lblChatDataSpeechBubbles.HoverColor = Color.Red; lblChatDataTimeStamps = new Label("lblChatDataTimeStamps"); lblChatDataTimeStamps.Location = new Point(40, 296); lblChatDataTimeStamps.AutoSize = true; lblChatDataTimeStamps.Font = Graphics.FontManager.LoadFont("PMU", 16); lblChatDataTimeStamps.Text = "TimeStamps: "; lblChatDataTimeStamps.HoverColor = Color.Red; lblChatDataAutoScroll = new Label("lblChatDataAutoScroll"); lblChatDataAutoScroll.Location = new Point(40, 310); lblChatDataAutoScroll.AutoSize = true; lblChatDataAutoScroll.Font = Graphics.FontManager.LoadFont("PMU", 16); lblChatDataAutoScroll.Text = "Auto-Scroll: "; lblChatDataAutoScroll.HoverColor = Color.Red; lblSave = new Label("lblSave"); lblSave.Location = new Point(30, 330); lblSave.AutoSize = true; lblSave.Font = Graphics.FontManager.LoadFont("PMU", 16); lblSave.Text = "Save"; lblSave.HoverColor = Color.Red; lblSave.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblSave_Click); this.AddWidget(itemPicker); this.AddWidget(lblOptions); this.AddWidget(lblPlayerData); this.AddWidget(lblPlayerDataName); this.AddWidget(lblPlayerDataDamage); this.AddWidget(lblPlayerDataMiniHP); this.AddWidget(lblPlayerDataAutoSaveSpeed); this.AddWidget(lblNpcData); this.AddWidget(lblNpcDataName); this.AddWidget(lblNpcDataDamage); this.AddWidget(lblNpcDataMiniHP); this.AddWidget(lblSoundData); this.AddWidget(lblSoundDataMusic); this.AddWidget(lblSoundDataSound); this.AddWidget(lblChatData); this.AddWidget(lblChatDataSpeechBubbles); this.AddWidget(lblChatDataTimeStamps); this.AddWidget(lblChatDataAutoScroll); this.AddWidget(lblSave); tempOptions = new bool[12]; tempAutoSaveSpeed = new int(); for (int i = 0; i < 12; i++) { CreateTempOption(i); ShowOption(i); } }
public mnuRecruitSelected(string name, int recruitSlot, int activeTeamStatus) : base(name) { if (activeTeamStatus == 0) { maxItems = 0; base.Size = new Size(165, 95); } else if (activeTeamStatus == -1) { maxItems = 1; base.Size = new Size(165, 95); } else { maxItems = 2; base.Size = new Size(165, 155); } base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(310, 40); if (activeTeamStatus == 0) { lblRename = new Label("lblRename"); lblRename.Font = FontManager.LoadFont("PMDCP", 32); lblRename.AutoSize = true; lblRename.Text = "Rename:"; lblRename.Location = new Point(30, 8); lblRename.ForeColor = Color.WhiteSmoke; //lblRename.HoverColor = Color.Red; //lblRename.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblRename_Click); this.AddWidget(lblRename); txtRename = new TextBox("txtRename"); txtRename.Size = new Size(120, 24); txtRename.Location = new Point(32, 43); txtRename.Font = FontManager.LoadFont("PMDCP", 16); this.AddWidget(txtRename); } else if (activeTeamStatus > 0 && activeTeamStatus < 4) { lblMakeLeader = new Label("lblMakeLeader"); lblMakeLeader.Font = FontManager.LoadFont("PMDCP", 32); lblMakeLeader.AutoSize = true; lblMakeLeader.Text = "Make Leader"; lblMakeLeader.Location = new Point(30, 8); lblMakeLeader.ForeColor = Color.WhiteSmoke; //lblMakeLeader.HoverColor = Color.Red; //lblMakeLeader.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblMakeLeader_Click); this.AddWidget(lblMakeLeader); lblStandby = new Label("lblStandby"); lblStandby.Font = FontManager.LoadFont("PMDCP", 32); lblStandby.AutoSize = true; lblStandby.Text = "Standby"; lblStandby.Location = new Point(30, 38); lblStandby.ForeColor = Color.WhiteSmoke; //lblStandby.HoverColor = Color.Red; //lblStandby.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblStandby_Click); this.AddWidget(lblStandby); lblRename = new Label("lblRename"); lblRename.Font = FontManager.LoadFont("PMDCP", 32); lblRename.AutoSize = true; lblRename.Text = "Rename:"; lblRename.Location = new Point(30, 68); lblRename.ForeColor = Color.WhiteSmoke; //lblRename.HoverColor = Color.Red; //lblRename.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblRename_Click); this.AddWidget(lblRename); txtRename = new TextBox("txtRename"); txtRename.Size = new Size(120, 24); txtRename.Location = new Point(32, 103); txtRename.Font = FontManager.LoadFont("PMDCP", 16); this.AddWidget(txtRename); } else { lblJoinTeam = new Label("lblJoinTeam"); lblJoinTeam.Font = FontManager.LoadFont("PMDCP", 32); lblJoinTeam.AutoSize = true; lblJoinTeam.Text = "Join Team"; lblJoinTeam.Location = new Point(30, 8); lblJoinTeam.ForeColor = Color.WhiteSmoke; //lblJoinTeam.HoverColor = Color.Red; //lblJoinTeam.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblJoinTeam_Click); this.AddWidget(lblJoinTeam); lblRelease = new Label("lblRelease"); lblRelease.Font = FontManager.LoadFont("PMDCP", 32); lblRelease.AutoSize = true; lblRelease.Text = "Release"; lblRelease.Location = new Point(30, 38); lblRelease.ForeColor = Color.WhiteSmoke; //lblRelease.HoverColor = Color.Red; //lblRelease.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblRelease_Click); this.AddWidget(lblRelease); } itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); this.AddWidget(itemPicker); this.RecruitSlot = recruitSlot; this.activeTeamStatus = activeTeamStatus; }
public mnuShop(string name, int itemSelected) : base(name) { base.Size = new Size(421, 360); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); currentTen = itemSelected / 10; itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblItemCollection = new Label("lblItemCollection"); lblItemCollection.AutoSize = true; lblItemCollection.Font = FontManager.LoadFont("PMDCP", 48); lblItemCollection.Text = "Shop"; lblItemCollection.Location = new Point(20, 0); lblItemCollection.ForeColor = Color.WhiteSmoke; picPreview = new PictureBox("picPreview"); picPreview.Size = new Size(32, 32); picPreview.BackColor = Color.Transparent; picPreview.Location = new Point(361, 20); lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(288, 15); lblItemNum.Font = FontManager.LoadFont("PMDCP", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.Text = "0/0"; lblItemNum.ForeColor = Color.WhiteSmoke; lblVisibleItems = new Label[10]; lblVisiblePrices = new Label[10]; for (int i = 0; i < lblVisibleItems.Length; i++) { lblVisibleItems[i] = new Label("lblVisibleItems" + i); //lblVisibleItems[i].AutoSize = true; lblVisibleItems[i].Size = new Size(200, 32); //lblVisibleItems[i].Width = 200; lblVisibleItems[i].Font = FontManager.LoadFont("PMDCP", 32); lblVisibleItems[i].Location = new Point(35, (i * 30) + 48); //lblVisibleItems[i].HoverColor = Color.Red; lblVisibleItems[i].ForeColor = Color.WhiteSmoke; lblVisibleItems[i].Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(shopItem_Click); this.AddWidget(lblVisibleItems[i]); lblVisiblePrices[i] = new Label("lblVisiblePrices" + i); //lblVisiblePrices[i].AutoSize = true; lblVisiblePrices[i].Size = new Size(200, 32); //lblVisiblePrices[i].Width = 200; lblVisiblePrices[i].Font = FontManager.LoadFont("PMDCP", 32); lblVisiblePrices[i].Location = new Point(240, (i * 30) + 48); //lblVisiblePrices[i].HoverColor = Color.Red; lblVisiblePrices[i].ForeColor = Color.WhiteSmoke; lblVisiblePrices[i].Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(shopPrice_Click); this.AddWidget(lblVisiblePrices[i]); } this.AddWidget(picPreview); this.AddWidget(lblItemCollection); this.AddWidget(lblItemNum); this.AddWidget(itemPicker); tempSelected = itemSelected % 10; //DisplayItems(currentTen * 10 + 1); //ChangeSelected((itemSelected - 1) % 10); //UpdateSelectedItemInfo(); //loaded = true; lblVisibleItems[0].Text = "Loading..."; }
public mnuTeam(string name) : base(name) { this.Size = new Size(280, 188); this.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblPoke = new Label("lblPoke"); lblPoke.Location = new Point(20, 0); lblPoke.AutoSize = true; lblPoke.Font = FontManager.LoadFont("PMU", 48); lblPoke.ForeColor = Color.WhiteSmoke; lblPoke.Text = "Team"; lblAllPoke = new Label[4]; for (int i = 0; i < 4; i++) { lblAllPoke[i] = new Label("lblAllPoke" + i); lblAllPoke[i].AutoSize = true; lblAllPoke[i].Font = FontManager.LoadFont("PMU", 32); lblAllPoke[i].Location = new Point(30, (i * 30) + 48); lblAllPoke[i].HoverColor = Color.Red; lblAllPoke[i].ForeColor = Color.WhiteSmoke; lblAllPoke[i].Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(team_Click); this.AddWidget(lblAllPoke[i]); } /* lblPoke1 = new Label("lblPoke1"); lblPoke1.AutoSize = true; lblPoke1.Location = new Point(30, 48); lblPoke1.Font = FontManager.LoadFont("PMU", 32); lblPoke1.Text = "Pokemon 1"; lblPoke1.HoverColor = Color.Red; lblPoke2 = new Label("lblPoke2"); lblPoke2.AutoSize = true; lblPoke2.Location = new Point(30, 78); lblPoke2.Font = FontManager.LoadFont("PMU", 32); lblPoke2.Text = "Pokemon 2"; lblPoke2.HoverColor = Color.Red; lblPoke3 = new Label("lblPoke3"); lblPoke3.AutoSize = true; lblPoke3.Location = new Point(30, 108); lblPoke3.Font = FontManager.LoadFont("PMU", 32); lblPoke3.Text = "Pokemon 3"; lblPoke3.HoverColor = Color.Red; lblPoke4 = new Label("lblPoke4"); lblPoke4.AutoSize = true; lblPoke4.Location = new Point(30, 138); lblPoke4.Font = FontManager.LoadFont("PMU", 32); lblPoke4.Text = "Pokemon 4"; lblPoke4.HoverColor = Color.Red; */ this.AddWidget(itemPicker); this.AddWidget(lblPoke); /*this.AddWidget(lblPoke1); this.AddWidget(lblPoke2); this.AddWidget(lblPoke3); this.AddWidget(lblPoke4); */ DisplayTeam(); ChangeSelected(0); }
public mnuRecruitSelected(string name, int recruitSlot, int activeTeamStatus) : base(name) { if (activeTeamStatus == 0) { maxItems = 0; base.Size = new Size(165, 95); }else if (activeTeamStatus == -1) { maxItems = 1; base.Size = new Size(165, 95); }else { maxItems = 2; base.Size = new Size(165, 155); } base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(310, 40); if (activeTeamStatus == 0) { lblRename = new Label("lblRename"); lblRename.Font = FontManager.LoadFont("PMDCP", 32); lblRename.AutoSize = true; lblRename.Text = "Rename:"; lblRename.Location = new Point(30, 8); lblRename.ForeColor = Color.WhiteSmoke; //lblRename.HoverColor = Color.Red; //lblRename.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblRename_Click); this.AddWidget(lblRename); txtRename = new TextBox("txtRename"); txtRename.Size = new Size(120, 24); txtRename.Location = new Point(32, 43); txtRename.Font = FontManager.LoadFont("PMDCP", 16); this.AddWidget(txtRename); } else if (activeTeamStatus > 0 && activeTeamStatus < 4) { lblMakeLeader = new Label("lblMakeLeader"); lblMakeLeader.Font = FontManager.LoadFont("PMDCP", 32); lblMakeLeader.AutoSize = true; lblMakeLeader.Text = "Make Leader"; lblMakeLeader.Location = new Point(30, 8); lblMakeLeader.ForeColor = Color.WhiteSmoke; //lblMakeLeader.HoverColor = Color.Red; //lblMakeLeader.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblMakeLeader_Click); this.AddWidget(lblMakeLeader); lblStandby = new Label("lblStandby"); lblStandby.Font = FontManager.LoadFont("PMDCP", 32); lblStandby.AutoSize = true; lblStandby.Text = "Standby"; lblStandby.Location = new Point(30, 38); lblStandby.ForeColor = Color.WhiteSmoke; //lblStandby.HoverColor = Color.Red; //lblStandby.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblStandby_Click); this.AddWidget(lblStandby); lblRename = new Label("lblRename"); lblRename.Font = FontManager.LoadFont("PMDCP", 32); lblRename.AutoSize = true; lblRename.Text = "Rename:"; lblRename.Location = new Point(30, 68); lblRename.ForeColor = Color.WhiteSmoke; //lblRename.HoverColor = Color.Red; //lblRename.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblRename_Click); this.AddWidget(lblRename); txtRename = new TextBox("txtRename"); txtRename.Size = new Size(120, 24); txtRename.Location = new Point(32, 103); txtRename.Font = FontManager.LoadFont("PMDCP", 16); this.AddWidget(txtRename); } else { lblJoinTeam = new Label("lblJoinTeam"); lblJoinTeam.Font = FontManager.LoadFont("PMDCP", 32); lblJoinTeam.AutoSize = true; lblJoinTeam.Text = "Join Team"; lblJoinTeam.Location = new Point(30, 8); lblJoinTeam.ForeColor = Color.WhiteSmoke; //lblJoinTeam.HoverColor = Color.Red; //lblJoinTeam.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblJoinTeam_Click); this.AddWidget(lblJoinTeam); lblRelease = new Label("lblRelease"); lblRelease.Font = FontManager.LoadFont("PMDCP", 32); lblRelease.AutoSize = true; lblRelease.Text = "Release"; lblRelease.Location = new Point(30, 38); lblRelease.ForeColor = Color.WhiteSmoke; //lblRelease.HoverColor = Color.Red; //lblRelease.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblRelease_Click); this.AddWidget(lblRelease); } itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); this.AddWidget(itemPicker); this.RecruitSlot = recruitSlot; this.activeTeamStatus = activeTeamStatus; }
public mnuOptions(string name) : base(name) { this.Size = new Size(280, 390); base.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(30, 83); lblOptions = new Label("lblOptions"); lblOptions.Location = new Point(20, 0); lblOptions.AutoSize = true; lblOptions.Font = FontManager.LoadFont("PMDCP", 48); lblOptions.Text = "Options"; lblOptions.ForeColor = Color.WhiteSmoke; lblPlayerData = new Label("lblPlayerData"); lblPlayerData.Location = new Point(30, 48); lblPlayerData.AutoSize = true; lblPlayerData.Font = FontManager.LoadFont("PMDCP", 32); lblPlayerData.Text = "Player Data"; lblPlayerData.ForeColor = Color.WhiteSmoke; lblPlayerDataName = new Label("lblPlayerDataName"); lblPlayerDataName.Location = new Point(40, 78); lblPlayerDataName.AutoSize = true; lblPlayerDataName.Font = FontManager.LoadFont("PMDCP", 16); lblPlayerDataName.Text = "Name: "; lblPlayerDataName.ForeColor = Color.WhiteSmoke; //lblPlayerDataName.HoverColor = Color.Red; lblPlayerDataDamage = new Label("lblPlayerDataDamage"); lblPlayerDataDamage.Location = new Point(40, 92); lblPlayerDataDamage.AutoSize = true; lblPlayerDataDamage.Font = FontManager.LoadFont("PMDCP", 16); lblPlayerDataDamage.Text = "Damage: "; lblPlayerDataDamage.ForeColor = Color.WhiteSmoke; //lblPlayerDataDamage.HoverColor = Color.Red; lblPlayerDataMiniHP = new Label("lblPlayerDataMiniHP"); lblPlayerDataMiniHP.Location = new Point(40, 106); lblPlayerDataMiniHP.AutoSize = true; lblPlayerDataMiniHP.Font = FontManager.LoadFont("PMDCP", 16); lblPlayerDataMiniHP.Text = "Mini-HP: "; lblPlayerDataMiniHP.ForeColor = Color.WhiteSmoke; //lblPlayerDataMiniHP.HoverColor = Color.Red; lblPlayerDataAutoSaveSpeed = new Label("lblPlayerDataAutoSaveSpeed"); lblPlayerDataAutoSaveSpeed.Location = new Point(40, 120); lblPlayerDataAutoSaveSpeed.AutoSize = true; lblPlayerDataAutoSaveSpeed.Font = FontManager.LoadFont("PMDCP", 16); lblPlayerDataAutoSaveSpeed.Text = "Auto-Save Speed: "; lblPlayerDataAutoSaveSpeed.ForeColor = Color.WhiteSmoke; //lblPlayerDataAutoSaveSpeed.HoverColor = Color.Red; lblNpcData = new Label("lblNpcData"); lblNpcData.Location = new Point(30, 130); lblNpcData.AutoSize = true; lblNpcData.Font = FontManager.LoadFont("PMDCP", 32); lblNpcData.Text = "NPC Data"; lblNpcData.ForeColor = Color.WhiteSmoke; lblNpcDataName = new Label("lblNpcDataName"); lblNpcDataName.Location = new Point(40, 160); lblNpcDataName.AutoSize = true; lblNpcDataName.Font = FontManager.LoadFont("PMDCP", 16); lblNpcDataName.Text = "Name: "; lblNpcDataName.ForeColor = Color.WhiteSmoke; //lblNpcDataName.HoverColor = Color.Red; lblNpcDataDamage = new Label("lblNpcDataDamage"); lblNpcDataDamage.Location = new Point(40, 174); lblNpcDataDamage.AutoSize = true; lblNpcDataDamage.Font = FontManager.LoadFont("PMDCP", 16); lblNpcDataDamage.Text = "Damage: "; lblNpcDataDamage.ForeColor = Color.WhiteSmoke; //lblNpcDataDamage.HoverColor = Color.Red; lblNpcDataMiniHP = new Label("lblNpcDataMiniHP"); lblNpcDataMiniHP.Location = new Point(40, 188); lblNpcDataMiniHP.AutoSize = true; lblNpcDataMiniHP.Font = FontManager.LoadFont("PMDCP", 16); lblNpcDataMiniHP.Text = "Mini-HP: "; lblNpcDataMiniHP.ForeColor = Color.WhiteSmoke; //lblNpcDataMiniHP.HoverColor = Color.Red; lblSoundData = new Label("lblSoundData"); lblSoundData.Location = new Point(30, 198); lblSoundData.AutoSize = true; lblSoundData.Font = FontManager.LoadFont("PMDCP", 32); lblSoundData.Text = "Sound Data"; lblSoundData.ForeColor = Color.WhiteSmoke; lblSoundDataMusic = new Label("lblSoundDataMusic"); lblSoundDataMusic.Location = new Point(40, 228); lblSoundDataMusic.AutoSize = true; lblSoundDataMusic.Font = FontManager.LoadFont("PMDCP", 16); lblSoundDataMusic.Text = "Music: "; lblSoundDataMusic.ForeColor = Color.WhiteSmoke; //lblSoundDataMusic.HoverColor = Color.Red; lblSoundDataSound = new Label("lblSoundDataSound"); lblSoundDataSound.Location = new Point(40, 242); lblSoundDataSound.AutoSize = true; lblSoundDataSound.Font = FontManager.LoadFont("PMDCP", 16); lblSoundDataSound.Text = "Sound: "; lblSoundDataSound.ForeColor = Color.WhiteSmoke; //lblSoundDataSound.HoverColor = Color.Red; lblChatData = new Label("lblChatData"); lblChatData.Location = new Point(30, 252); lblChatData.AutoSize = true; lblChatData.Font = FontManager.LoadFont("PMDCP", 32); lblChatData.Text = "Chat Data"; lblChatData.ForeColor = Color.WhiteSmoke; lblChatDataSpeechBubbles = new Label("lblChatDataSpeechBubbles"); lblChatDataSpeechBubbles.Location = new Point(40, 282); lblChatDataSpeechBubbles.AutoSize = true; lblChatDataSpeechBubbles.Font = FontManager.LoadFont("PMDCP", 16); lblChatDataSpeechBubbles.Text = "Speech Bubbles: "; lblChatDataSpeechBubbles.ForeColor = Color.WhiteSmoke; //lblChatDataSpeechBubbles.HoverColor = Color.Red; lblChatDataTimeStamps = new Label("lblChatDataTimeStamps"); lblChatDataTimeStamps.Location = new Point(40, 296); lblChatDataTimeStamps.AutoSize = true; lblChatDataTimeStamps.Font = FontManager.LoadFont("PMDCP", 16); lblChatDataTimeStamps.Text = "TimeStamps: "; lblChatDataTimeStamps.ForeColor = Color.WhiteSmoke; //lblChatDataTimeStamps.HoverColor = Color.Red; lblChatDataAutoScroll = new Label("lblChatDataAutoScroll"); lblChatDataAutoScroll.Location = new Point(40, 310); lblChatDataAutoScroll.AutoSize = true; lblChatDataAutoScroll.Font = FontManager.LoadFont("PMDCP", 16); lblChatDataAutoScroll.Text = "Auto-Scroll: "; lblChatDataAutoScroll.ForeColor = Color.WhiteSmoke; //lblChatDataAutoScroll.HoverColor = Color.Red; lblSave = new Label("lblSave"); lblSave.Location = new Point(30, 330); lblSave.AutoSize = true; lblSave.Font = FontManager.LoadFont("PMDCP", 16); lblSave.Text = "Save"; lblSave.HoverColor = Color.Red; lblSave.ForeColor = Color.WhiteSmoke; lblSave.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblSave_Click); this.AddWidget(itemPicker); this.AddWidget(lblOptions); this.AddWidget(lblPlayerData); this.AddWidget(lblPlayerDataName); this.AddWidget(lblPlayerDataDamage); this.AddWidget(lblPlayerDataMiniHP); this.AddWidget(lblPlayerDataAutoSaveSpeed); this.AddWidget(lblNpcData); this.AddWidget(lblNpcDataName); this.AddWidget(lblNpcDataDamage); this.AddWidget(lblNpcDataMiniHP); this.AddWidget(lblSoundData); this.AddWidget(lblSoundDataMusic); this.AddWidget(lblSoundDataSound); this.AddWidget(lblChatData); this.AddWidget(lblChatDataSpeechBubbles); this.AddWidget(lblChatDataTimeStamps); this.AddWidget(lblChatDataAutoScroll); this.AddWidget(lblSave); tempOptions = new bool[12]; tempAutoSaveSpeed = new int(); for (int i = 0; i < 12; i++) { CreateTempOption(i); ShowOption(i); } }
public mnuOthers(string name) : base(name) { this.Size = new Size(185, 230); this.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblOthers = new Label("lblOthers"); lblOthers.Location = new Point(20, 0); lblOthers.Font = FontManager.LoadFont("PMDCP", 48); lblOthers.AutoSize = true; lblOthers.ForeColor = Color.WhiteSmoke; lblOthers.Text = "Others"; lblOptions = new Label("lblOptions"); lblOptions.AutoSize = true; lblOptions.Location = new Point(30, 48); lblOptions.Font = FontManager.LoadFont("PMDCP", 32); lblOptions.Text = "Options"; lblOptions.HoverColor = Color.Red; lblOptions.ForeColor = Color.WhiteSmoke; lblOptions.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblOptions_Click); lblOnlineList = new Label("lblOnlineList"); lblOnlineList.AutoSize = true; lblOnlineList.Location = new Point(30, 78); lblOnlineList.Font = FontManager.LoadFont("PMDCP", 32); lblOnlineList.Text = "Online List"; lblOnlineList.HoverColor = Color.Red; lblOnlineList.ForeColor = Color.WhiteSmoke; lblOnlineList.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblOnlineList_Click); lblBattleLog = new Label("lblBattleLog"); lblBattleLog.AutoSize = true; lblBattleLog.Location = new Point(30, 108); lblBattleLog.Font = FontManager.LoadFont("PMDCP", 32); lblBattleLog.Text = "Battle Log"; lblBattleLog.HoverColor = Color.Red; lblBattleLog.ForeColor = Color.WhiteSmoke; lblBattleLog.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblBattleLog_Click); lblAdventureLog = new Label("lblAdventureLog"); lblAdventureLog.AutoSize = true; lblAdventureLog.Location = new Point(30, 138); lblAdventureLog.Font = FontManager.LoadFont("PMDCP", 32); lblAdventureLog.Text = "Profile"; lblAdventureLog.HoverColor = Color.Red; lblAdventureLog.ForeColor = Color.WhiteSmoke; lblAdventureLog.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblAdventureLog_Click); lblHelp = new Label("lblHelp"); lblHelp.AutoSize = true; lblHelp.Location = new Point(30, 168); lblHelp.Font = FontManager.LoadFont("PMDCP", 32); lblHelp.Text = "Help"; lblHelp.HoverColor = Color.Red; lblHelp.ForeColor = Color.WhiteSmoke; lblHelp.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblHelp_Click); this.AddWidget(itemPicker); this.AddWidget(lblOthers); this.AddWidget(lblOptions); this.AddWidget(lblOnlineList); this.AddWidget(lblBattleLog); this.AddWidget(lblAdventureLog); this.AddWidget(lblHelp); }
public mnuItemSelected(string name, int itemSlot) : base(name) { if ((int)Items.ItemHelper.Items[Players.PlayerManager.MyPlayer.GetInvItemNum(itemSlot)].Type < 8 || (int)Items.ItemHelper.Items[Players.PlayerManager.MyPlayer.GetInvItemNum(itemSlot)].Type == 15) { //cannot use item base.Size = new Size(165, 165); maxItems = 3; useable = false; } else { //can use item base.Size = new Size(165, 195); maxItems = 4; useable = true; } base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(335, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); int widgetY = 8; //add choices lblHold = new Label("lblHold"); lblHold.Size = new System.Drawing.Size(120, 32); lblHold.Font = FontManager.LoadFont("PMDCP", 32); //lblHold.AutoSize = true; lblHold.Text = "Hold"; lblHold.Location = new Point(30, widgetY); lblHold.HoverColor = Color.Red; lblHold.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblHold_Click); lblHold.ForeColor = Color.WhiteSmoke; this.AddWidget(lblHold); widgetY += 30; if (useable) { lblUse = new Label("lblUse"); lblUse.Font = FontManager.LoadFont("PMDCP", 32); lblUse.AutoSize = true; lblUse.Text = "Use"; lblUse.Location = new Point(30, widgetY); lblUse.HoverColor = Color.Red; lblUse.ForeColor = Color.WhiteSmoke; lblUse.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblUse_Click); this.AddWidget(lblUse); widgetY += 30; } lblThrow = new Label("lblThrow"); lblThrow.Size = new System.Drawing.Size(120, 32); lblThrow.Location = new Point(30, widgetY); lblThrow.Font = FontManager.LoadFont("PMDCP", 32); lblThrow.Text = "Throw"; lblThrow.HoverColor = Color.Red; lblThrow.ForeColor = Color.WhiteSmoke; lblThrow.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblThrow_Click); widgetY += 30; lblSummary = new Label("lblSummary"); lblSummary.Size = new System.Drawing.Size(120, 32); lblSummary.Location = new Point(30, widgetY); lblSummary.Font = FontManager.LoadFont("PMDCP", 32); lblSummary.Text = "Summary"; lblSummary.HoverColor = Color.Red; lblSummary.ForeColor = Color.WhiteSmoke; lblSummary.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblSummary_Click); widgetY += 30; lblDrop = new Label("lblDrop"); lblDrop.Font = FontManager.LoadFont("PMDCP", 32); lblDrop.Size = new System.Drawing.Size(130, 32); lblDrop.AutoSize = false; //lblDrop.Text = "Drop"; lblDrop.Location = new Point(30, widgetY); lblDrop.HoverColor = Color.Red; lblDrop.ForeColor = Color.WhiteSmoke; lblDrop.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblDrop_Click); widgetY += 32; if (Items.ItemHelper.Items[Players.PlayerManager.MyPlayer.GetInvItemNum(itemSlot)].Type == Enums.ItemType.Currency || Items.ItemHelper.Items[Players.PlayerManager.MyPlayer.GetInvItemNum(itemSlot)].StackCap > 0) { lblDrop.Text = "Drop Amount:"; nudAmount = new NumericUpDown("nudAmount"); nudAmount.Size = new Size(120, 24); nudAmount.Location = new Point(32, widgetY); nudAmount.Maximum = Players.PlayerManager.MyPlayer.Inventory[itemSlot].Value; nudAmount.Minimum = 1; this.AddWidget(nudAmount); } else { lblDrop.Text = "Drop"; } this.AddWidget(lblDrop); this.AddWidget(lblSummary); this.AddWidget(lblThrow); this.AddWidget(itemPicker); this.ItemSlot = itemSlot; }
public mnuGuild(string name) : base(name) { this.Size = new Size(280, 206); this.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 111); lblGuild = new Label("lblGuild"); lblGuild.Location = new Point(20, 0); lblGuild.AutoSize = true; lblGuild.Font = FontManager.LoadFont("PMU", 48); lblGuild.Text = "Guild"; lblGuild.ForeColor = Color.WhiteSmoke; lblName = new Label("lblName"); lblName.AutoSize = true; lblName.Location = new Point(30, 48); lblName.Font = FontManager.LoadFont("PMU", 32); lblName.Text = "Name"; lblName.ForeColor = Color.WhiteSmoke; //lblName.HoverColor = Color.Red; txtName = new TextBox("txtName"); txtName.Size = new Size(120, 24); txtName.Location = new Point(32, 80); txtName.Font = FontManager.LoadFont("PMU", 16); Skins.SkinManager.LoadTextBoxGui(txtName); lblMakeTrainee = new Label("lblMakeTrainee"); lblMakeTrainee.AutoSize = true; lblMakeTrainee.Location = new Point(30, 96); lblMakeTrainee.Font = FontManager.LoadFont("PMU", 32); lblMakeTrainee.Text = "Make Trainee"; lblMakeTrainee.HoverColor = Color.Red; lblMakeTrainee.ForeColor = Color.WhiteSmoke; lblMakeTrainee.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblMakeTrainee_Click); lblMakeMember = new Label("lblMakeMember"); lblMakeMember.AutoSize = true; lblMakeMember.Location = new Point(30, 126); lblMakeMember.Font = FontManager.LoadFont("PMU", 32); lblMakeMember.Text = "Make Member"; lblMakeMember.HoverColor = Color.Red; lblMakeMember.ForeColor = Color.WhiteSmoke; lblMakeMember.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblMakeMember_Click); lblDisown = new Label("lblDisown"); lblDisown.AutoSize = true; lblDisown.Location = new Point(30, 156); lblDisown.Font = FontManager.LoadFont("PMU", 32); lblDisown.Text = "Disown"; lblDisown.HoverColor = Color.Red; lblDisown.ForeColor = Color.WhiteSmoke; lblDisown.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblDisown_Click); this.AddWidget(itemPicker); this.AddWidget(lblGuild); this.AddWidget(lblName); this.AddWidget(txtName); this.AddWidget(lblMakeTrainee); this.AddWidget(lblMakeMember); this.AddWidget(lblDisown); }
public mnuJobSelected(string name, int jobSlot) : base(name) { int size = 95; maxItems = 1; if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Finished || Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Failed) { } else { size += 30; maxItems++; } if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].CanSend) { size += 60; maxItems++; } base.Size = new Size(180, size); base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(300, 34); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); int locY = 8; if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Finished || Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Failed) { } else { lblAccept = new Label("lblAccept"); lblAccept.Font = FontManager.LoadFont("PMDCP", 32); lblAccept.AutoSize = true; if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Obtained || Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Suspended) { lblAccept.Text = "Accept"; } else if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].Accepted == Enums.JobStatus.Taken) { lblAccept.Text = "Cancel"; } lblAccept.Location = new Point(30, locY); lblAccept.HoverColor = Color.Red; lblAccept.ForeColor = Color.WhiteSmoke; lblAccept.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblAccept_Click); this.AddWidget(lblAccept); locY += 30; } lblDescription = new Label("lblDescription"); lblDescription.Font = FontManager.LoadFont("PMDCP", 32); lblDescription.AutoSize = true; lblDescription.Text = "Description"; lblDescription.Location = new Point(30, locY); lblDescription.HoverColor = Color.Red; lblDescription.ForeColor = Color.WhiteSmoke; lblDescription.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblDescription_Click); locY += 30; lblDelete = new Label("lblDelete"); lblDelete.Font = FontManager.LoadFont("PMDCP", 32); lblDelete.AutoSize = true; lblDelete.Text = "Delete"; lblDelete.Location = new Point(30, locY); lblDelete.HoverColor = Color.Red; lblDelete.ForeColor = Color.WhiteSmoke; lblDelete.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblDelete_Click); locY += 30; if (Players.PlayerManager.MyPlayer.JobList.Jobs[jobSlot].CanSend) { lblSend = new Label("lblSend"); lblSend.Font = FontManager.LoadFont("PMDCP", 32); lblSend.AutoSize = true; lblSend.Text = "Send to:"; lblSend.Location = new Point(30, locY); lblSend.HoverColor = Color.Red; lblSend.ForeColor = Color.WhiteSmoke; lblSend.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblSend_Click); locY += 40; txtSend = new TextBox("txtSend"); txtSend.Size = new Size(120, 24); txtSend.Location = new Point(32, locY); txtSend.Font = FontManager.LoadFont("PMDCP", 16); Skins.SkinManager.LoadTextBoxGui(txtSend); this.AddWidget(lblSend); this.AddWidget(txtSend); } this.AddWidget(itemPicker); this.AddWidget(lblDescription); this.AddWidget(lblDelete); this.jobSlot = jobSlot; }
public mnuOthers(string name) : base(name) { this.Size = new Size(185, 230); this.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblOthers = new Label("lblOthers"); lblOthers.Location = new Point(20, 0); lblOthers.Font = FontManager.LoadFont("PMU", 48); lblOthers.AutoSize = true; lblOthers.ForeColor = Color.WhiteSmoke; lblOthers.Text = "Others"; lblOptions = new Label("lblOptions"); lblOptions.AutoSize = true; lblOptions.Location = new Point(30, 48); lblOptions.Font = FontManager.LoadFont("PMU", 32); lblOptions.Text = "Options"; lblOptions.HoverColor = Color.Red; lblOptions.ForeColor = Color.WhiteSmoke; lblOptions.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblOptions_Click); lblOnlineList = new Label("lblOnlineList"); lblOnlineList.AutoSize = true; lblOnlineList.Location = new Point(30, 78); lblOnlineList.Font = FontManager.LoadFont("PMU", 32); lblOnlineList.Text = "Online List"; lblOnlineList.HoverColor = Color.Red; lblOnlineList.ForeColor = Color.WhiteSmoke; lblOnlineList.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblOnlineList_Click); lblBattleLog = new Label("lblBattleLog"); lblBattleLog.AutoSize = true; lblBattleLog.Location = new Point(30, 108); lblBattleLog.Font = FontManager.LoadFont("PMU", 32); lblBattleLog.Text = "Battle Log"; lblBattleLog.HoverColor = Color.Red; lblBattleLog.ForeColor = Color.WhiteSmoke; lblBattleLog.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblBattleLog_Click); lblAdventureLog = new Label("lblAdventureLog"); lblAdventureLog.AutoSize = true; lblAdventureLog.Location = new Point(30, 138); lblAdventureLog.Font = FontManager.LoadFont("PMU", 32); lblAdventureLog.Text = "Profile"; lblAdventureLog.HoverColor = Color.Red; lblAdventureLog.ForeColor = Color.WhiteSmoke; lblAdventureLog.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblAdventureLog_Click); lblHelp = new Label("lblHelp"); lblHelp.AutoSize = true; lblHelp.Location = new Point(30, 168); lblHelp.Font = FontManager.LoadFont("PMU", 32); lblHelp.Text = "Help"; lblHelp.HoverColor = Color.Red; lblHelp.ForeColor = Color.WhiteSmoke; lblHelp.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblHelp_Click); this.AddWidget(itemPicker); this.AddWidget(lblOthers); this.AddWidget(lblOptions); this.AddWidget(lblOnlineList); this.AddWidget(lblBattleLog); this.AddWidget(lblAdventureLog); this.AddWidget(lblHelp); }
public mnuItemSelected(string name, int itemSlot) : base(name) { if ((int)Items.ItemHelper.Items[Players.PlayerManager.MyPlayer.GetInvItemNum(itemSlot)].Type < 8 || (int)Items.ItemHelper.Items[Players.PlayerManager.MyPlayer.GetInvItemNum(itemSlot)].Type == 15) { //cannot use item base.Size = new Size(165, 165); maxItems = 3; useable = false; } else { //can use item base.Size = new Size(165, 195); maxItems = 4; useable = true; } base.MenuDirection = Enums.MenuDirection.Horizontal; base.Location = new Point(335, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 23); int widgetY = 8; //add choices lblHold = new Label("lblHold"); lblHold.Size = new System.Drawing.Size(120, 32); lblHold.Font = FontManager.LoadFont("PMU", 32); //lblHold.AutoSize = true; lblHold.Text = "Hold"; lblHold.Location = new Point(30, widgetY); lblHold.HoverColor = Color.Red; lblHold.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblHold_Click); lblHold.ForeColor = Color.WhiteSmoke; this.AddWidget(lblHold); widgetY += 30; if (useable) { lblUse = new Label("lblUse"); lblUse.Font = FontManager.LoadFont("PMU", 32); lblUse.AutoSize = true; lblUse.Text = "Use"; lblUse.Location = new Point(30, widgetY); lblUse.HoverColor = Color.Red; lblUse.ForeColor = Color.WhiteSmoke; lblUse.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblUse_Click); this.AddWidget(lblUse); widgetY += 30; } lblThrow = new Label("lblThrow"); lblThrow.Size = new System.Drawing.Size(120, 32); lblThrow.Location = new Point(30, widgetY); lblThrow.Font = FontManager.LoadFont("PMU", 32); lblThrow.Text = "Throw"; lblThrow.HoverColor = Color.Red; lblThrow.ForeColor = Color.WhiteSmoke; lblThrow.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblThrow_Click); widgetY += 30; lblSummary = new Label("lblSummary"); lblSummary.Size = new System.Drawing.Size(120, 32); lblSummary.Location = new Point(30, widgetY); lblSummary.Font = FontManager.LoadFont("PMU", 32); lblSummary.Text = "Summary"; lblSummary.HoverColor = Color.Red; lblSummary.ForeColor = Color.WhiteSmoke; lblSummary.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblSummary_Click); widgetY += 30; lblDrop = new Label("lblDrop"); lblDrop.Font = FontManager.LoadFont("PMU", 32); lblDrop.Size = new System.Drawing.Size(130, 32); lblDrop.AutoSize = false; //lblDrop.Text = "Drop"; lblDrop.Location = new Point(30, widgetY); lblDrop.HoverColor = Color.Red; lblDrop.ForeColor = Color.WhiteSmoke; lblDrop.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(lblDrop_Click); widgetY += 32; if (Items.ItemHelper.Items[Players.PlayerManager.MyPlayer.GetInvItemNum(itemSlot)].Type == Enums.ItemType.Currency || Items.ItemHelper.Items[Players.PlayerManager.MyPlayer.GetInvItemNum(itemSlot)].StackCap > 0) { lblDrop.Text = "Drop Amount:"; nudAmount = new NumericUpDown("nudAmount"); nudAmount.Size = new Size(120, 24); nudAmount.Location = new Point(32, widgetY); nudAmount.Maximum = Players.PlayerManager.MyPlayer.Inventory[itemSlot].Value; nudAmount.Minimum = 1; this.AddWidget(nudAmount); } else { lblDrop.Text = "Drop"; } this.AddWidget(lblDrop); this.AddWidget(lblSummary); this.AddWidget(lblThrow); this.AddWidget(itemPicker); this.ItemSlot = itemSlot; }
public mnuBank(string name, int itemSelected) : base(name) { base.Size = new Size(315, 400); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 32); currentTen = itemSelected / 10; itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblItemCollection = new Label("lblItemCollection"); lblItemCollection.AutoSize = true; lblItemCollection.Font = FontManager.LoadFont("PMU", 48); lblItemCollection.Text = "Storage"; lblItemCollection.Location = new Point(20, 0); lblItemCollection.ForeColor = Color.WhiteSmoke; picPreview = new PictureBox("picPreview"); picPreview.Size = new Size(32, 32); picPreview.BackColor = Color.Transparent; picPreview.Location = new Point(255, 20); lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(182, 15); lblItemNum.Font = FontManager.LoadFont("PMU", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.Text = "0/0"; lblItemNum.ForeColor = Color.WhiteSmoke; txtFind = new TextBox("txtFind"); txtFind.Size = new Size(130, 20); txtFind.Location = new Point(32, 52); txtFind.Font = FontManager.LoadFont("PMU", 16); Skins.SkinManager.LoadTextBoxGui(txtFind); btnFind = new Button("btnFind"); btnFind.Size = new System.Drawing.Size(40, 20); btnFind.Location = new Point(174, 52); btnFind.Font = Graphics.FontManager.LoadFont("PMU", 16); btnFind.Text = "Find"; Skins.SkinManager.LoadButtonGui(btnFind); btnFind.Click += new EventHandler <MouseButtonEventArgs>(btnFind_Click); lblVisibleItems = new Label[10]; for (int i = 0; i < lblVisibleItems.Length; i++) { lblVisibleItems[i] = new Label("lblVisibleItems" + i); //lblVisibleItems[i].AutoSize = true; //lblVisibleItems[i].Size = new Size(200, 32); lblVisibleItems[i].Width = 200; lblVisibleItems[i].Font = FontManager.LoadFont("PMU", 32); lblVisibleItems[i].Location = new Point(35, (i * 30) + 72); //lblVisibleItems[i].HoverColor = Color.Red; lblVisibleItems[i].ForeColor = Color.WhiteSmoke; lblVisibleItems[i].Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(bankItem_Click); this.AddWidget(lblVisibleItems[i]); } this.AddWidget(picPreview); this.AddWidget(txtFind); this.AddWidget(btnFind); this.AddWidget(lblItemCollection); this.AddWidget(lblItemNum); this.AddWidget(itemPicker); tempSelected = itemSelected % 10; //DisplayItems(currentTen * 10 + 1); //ChangeSelected((itemSelected - 1) % 10); //UpdateSelectedItemInfo(); //loaded = true; lblVisibleItems[0].Text = "Loading..."; }
public mnuOptions(string name) : base(name) { this.Size = new Size(280, 390); base.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(30, 83); lblOptions = new Label("lblOptions"); lblOptions.Location = new Point(20, 0); lblOptions.AutoSize = true; lblOptions.Font = FontManager.LoadFont("PMU", 48); lblOptions.Text = "Options"; lblOptions.ForeColor = Color.WhiteSmoke; lblPlayerData = new Label("lblPlayerData"); lblPlayerData.Location = new Point(30, 48); lblPlayerData.AutoSize = true; lblPlayerData.Font = FontManager.LoadFont("PMU", 32); lblPlayerData.Text = "Player Data"; lblPlayerData.ForeColor = Color.WhiteSmoke; lblPlayerDataName = new Label("lblPlayerDataName"); lblPlayerDataName.Location = new Point(40, 78); lblPlayerDataName.AutoSize = true; lblPlayerDataName.Font = FontManager.LoadFont("PMU", 16); lblPlayerDataName.Text = "Name: "; lblPlayerDataName.ForeColor = Color.WhiteSmoke; //lblPlayerDataName.HoverColor = Color.Red; lblPlayerDataDamage = new Label("lblPlayerDataDamage"); lblPlayerDataDamage.Location = new Point(40, 92); lblPlayerDataDamage.AutoSize = true; lblPlayerDataDamage.Font = FontManager.LoadFont("PMU", 16); lblPlayerDataDamage.Text = "Damage: "; lblPlayerDataDamage.ForeColor = Color.WhiteSmoke; //lblPlayerDataDamage.HoverColor = Color.Red; lblPlayerDataMiniHP = new Label("lblPlayerDataMiniHP"); lblPlayerDataMiniHP.Location = new Point(40, 106); lblPlayerDataMiniHP.AutoSize = true; lblPlayerDataMiniHP.Font = FontManager.LoadFont("PMU", 16); lblPlayerDataMiniHP.Text = "Mini-HP: "; lblPlayerDataMiniHP.ForeColor = Color.WhiteSmoke; //lblPlayerDataMiniHP.HoverColor = Color.Red; lblPlayerDataAutoSaveSpeed = new Label("lblPlayerDataAutoSaveSpeed"); lblPlayerDataAutoSaveSpeed.Location = new Point(40, 120); lblPlayerDataAutoSaveSpeed.AutoSize = true; lblPlayerDataAutoSaveSpeed.Font = FontManager.LoadFont("PMU", 16); lblPlayerDataAutoSaveSpeed.Text = "Auto-Save Speed: "; lblPlayerDataAutoSaveSpeed.ForeColor = Color.WhiteSmoke; //lblPlayerDataAutoSaveSpeed.HoverColor = Color.Red; lblNpcData = new Label("lblNpcData"); lblNpcData.Location = new Point(30, 130); lblNpcData.AutoSize = true; lblNpcData.Font = FontManager.LoadFont("PMU", 32); lblNpcData.Text = "NPC Data"; lblNpcData.ForeColor = Color.WhiteSmoke; lblNpcDataName = new Label("lblNpcDataName"); lblNpcDataName.Location = new Point(40, 160); lblNpcDataName.AutoSize = true; lblNpcDataName.Font = FontManager.LoadFont("PMU", 16); lblNpcDataName.Text = "Name: "; lblNpcDataName.ForeColor = Color.WhiteSmoke; //lblNpcDataName.HoverColor = Color.Red; lblNpcDataDamage = new Label("lblNpcDataDamage"); lblNpcDataDamage.Location = new Point(40, 174); lblNpcDataDamage.AutoSize = true; lblNpcDataDamage.Font = FontManager.LoadFont("PMU", 16); lblNpcDataDamage.Text = "Damage: "; lblNpcDataDamage.ForeColor = Color.WhiteSmoke; //lblNpcDataDamage.HoverColor = Color.Red; lblNpcDataMiniHP = new Label("lblNpcDataMiniHP"); lblNpcDataMiniHP.Location = new Point(40, 188); lblNpcDataMiniHP.AutoSize = true; lblNpcDataMiniHP.Font = FontManager.LoadFont("PMU", 16); lblNpcDataMiniHP.Text = "Mini-HP: "; lblNpcDataMiniHP.ForeColor = Color.WhiteSmoke; //lblNpcDataMiniHP.HoverColor = Color.Red; lblSoundData = new Label("lblSoundData"); lblSoundData.Location = new Point(30, 198); lblSoundData.AutoSize = true; lblSoundData.Font = FontManager.LoadFont("PMU", 32); lblSoundData.Text = "Sound Data"; lblSoundData.ForeColor = Color.WhiteSmoke; lblSoundDataMusic = new Label("lblSoundDataMusic"); lblSoundDataMusic.Location = new Point(40, 228); lblSoundDataMusic.AutoSize = true; lblSoundDataMusic.Font = FontManager.LoadFont("PMU", 16); lblSoundDataMusic.Text = "Music: "; lblSoundDataMusic.ForeColor = Color.WhiteSmoke; //lblSoundDataMusic.HoverColor = Color.Red; lblSoundDataSound = new Label("lblSoundDataSound"); lblSoundDataSound.Location = new Point(40, 242); lblSoundDataSound.AutoSize = true; lblSoundDataSound.Font = FontManager.LoadFont("PMU", 16); lblSoundDataSound.Text = "Sound: "; lblSoundDataSound.ForeColor = Color.WhiteSmoke; //lblSoundDataSound.HoverColor = Color.Red; lblChatData = new Label("lblChatData"); lblChatData.Location = new Point(30, 252); lblChatData.AutoSize = true; lblChatData.Font = FontManager.LoadFont("PMU", 32); lblChatData.Text = "Chat Data"; lblChatData.ForeColor = Color.WhiteSmoke; lblChatDataSpeechBubbles = new Label("lblChatDataSpeechBubbles"); lblChatDataSpeechBubbles.Location = new Point(40, 282); lblChatDataSpeechBubbles.AutoSize = true; lblChatDataSpeechBubbles.Font = FontManager.LoadFont("PMU", 16); lblChatDataSpeechBubbles.Text = "Speech Bubbles: "; lblChatDataSpeechBubbles.ForeColor = Color.WhiteSmoke; //lblChatDataSpeechBubbles.HoverColor = Color.Red; lblChatDataTimeStamps = new Label("lblChatDataTimeStamps"); lblChatDataTimeStamps.Location = new Point(40, 296); lblChatDataTimeStamps.AutoSize = true; lblChatDataTimeStamps.Font = FontManager.LoadFont("PMU", 16); lblChatDataTimeStamps.Text = "TimeStamps: "; lblChatDataTimeStamps.ForeColor = Color.WhiteSmoke; //lblChatDataTimeStamps.HoverColor = Color.Red; lblChatDataAutoScroll = new Label("lblChatDataAutoScroll"); lblChatDataAutoScroll.Location = new Point(40, 310); lblChatDataAutoScroll.AutoSize = true; lblChatDataAutoScroll.Font = FontManager.LoadFont("PMU", 16); lblChatDataAutoScroll.Text = "Auto-Scroll: "; lblChatDataAutoScroll.ForeColor = Color.WhiteSmoke; //lblChatDataAutoScroll.HoverColor = Color.Red; lblSave = new Label("lblSave"); lblSave.Location = new Point(30, 330); lblSave.AutoSize = true; lblSave.Font = FontManager.LoadFont("PMU", 16); lblSave.Text = "Save"; lblSave.HoverColor = Color.Red; lblSave.ForeColor = Color.WhiteSmoke; lblSave.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblSave_Click); this.AddWidget(itemPicker); this.AddWidget(lblOptions); this.AddWidget(lblPlayerData); this.AddWidget(lblPlayerDataName); this.AddWidget(lblPlayerDataDamage); this.AddWidget(lblPlayerDataMiniHP); this.AddWidget(lblPlayerDataAutoSaveSpeed); this.AddWidget(lblNpcData); this.AddWidget(lblNpcDataName); this.AddWidget(lblNpcDataDamage); this.AddWidget(lblNpcDataMiniHP); this.AddWidget(lblSoundData); this.AddWidget(lblSoundDataMusic); this.AddWidget(lblSoundDataSound); this.AddWidget(lblChatData); this.AddWidget(lblChatDataSpeechBubbles); this.AddWidget(lblChatDataTimeStamps); this.AddWidget(lblChatDataAutoScroll); this.AddWidget(lblSave); tempOptions = new bool[12]; tempAutoSaveSpeed = new int(); for (int i = 0; i < 12; i++) { CreateTempOption(i); ShowOption(i); } }
public winOptions2() : base("winOptions") { this.Windowed = true; this.ShowInWindowSwitcher = false; this.TitleBar.Text = "Options"; this.TitleBar.CloseButton.Visible = false; this.BackColor = Color.Blue; //this.BackgroundImage = Skins.SkinManager.LoadGui("Options"); this.Size = new Size(280, 390); this.Location = DrawingSupport.GetCenter(SdlDotNet.Graphics.Video.Screen.Size, this.Size); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(30, 83); lblOptions = new Label("lblOptions"); lblOptions.Location = new Point(20, 0); lblOptions.AutoSize = true; lblOptions.Font = Graphics.FontManager.LoadFont("PMU", 48); lblOptions.Text = "Options"; lblPlayerData = new Label("lblPlayerData"); lblPlayerData.Location = new Point(30, 48); lblPlayerData.AutoSize = true; lblPlayerData.Font = Graphics.FontManager.LoadFont("PMU", 32); lblPlayerData.Text = "Player Data"; lblPlayerDataName = new Label("lblPlayerDataName"); lblPlayerDataName.Location = new Point(40, 78); lblPlayerDataName.AutoSize = true; lblPlayerDataName.Font = Graphics.FontManager.LoadFont("PMU", 16); lblPlayerDataName.Text = "Name: "; lblPlayerDataName.HoverColor = Color.Red; lblPlayerDataDamage = new Label("lblPlayerDataDamage"); lblPlayerDataDamage.Location = new Point(40, 92); lblPlayerDataDamage.AutoSize = true; lblPlayerDataDamage.Font = Graphics.FontManager.LoadFont("PMU", 16); lblPlayerDataDamage.Text = "Damage: "; lblPlayerDataDamage.HoverColor = Color.Red; lblPlayerDataMiniHP = new Label("lblPlayerDataMiniHP"); lblPlayerDataMiniHP.Location = new Point(40, 106); lblPlayerDataMiniHP.AutoSize = true; lblPlayerDataMiniHP.Font = Graphics.FontManager.LoadFont("PMU", 16); lblPlayerDataMiniHP.Text = "Mini-HP: "; lblPlayerDataMiniHP.HoverColor = Color.Red; lblPlayerDataAutoSaveSpeed = new Label("lblPlayerDataAutoSaveSpeed"); lblPlayerDataAutoSaveSpeed.Location = new Point(40, 120); lblPlayerDataAutoSaveSpeed.AutoSize = true; lblPlayerDataAutoSaveSpeed.Font = Graphics.FontManager.LoadFont("PMU", 16); lblPlayerDataAutoSaveSpeed.Text = "Auto-Save Speed: "; lblPlayerDataAutoSaveSpeed.HoverColor = Color.Red; lblNpcData = new Label("lblNpcData"); lblNpcData.Location = new Point(30, 130); lblNpcData.AutoSize = true; lblNpcData.Font = Graphics.FontManager.LoadFont("PMU", 32); lblNpcData.Text = "NPC Data"; lblNpcDataName = new Label("lblNpcDataName"); lblNpcDataName.Location = new Point(40, 160); lblNpcDataName.AutoSize = true; lblNpcDataName.Font = Graphics.FontManager.LoadFont("PMU", 16); lblNpcDataName.Text = "Name: "; lblNpcDataName.HoverColor = Color.Red; lblNpcDataDamage = new Label("lblNpcDataDamage"); lblNpcDataDamage.Location = new Point(40, 174); lblNpcDataDamage.AutoSize = true; lblNpcDataDamage.Font = Graphics.FontManager.LoadFont("PMU", 16); lblNpcDataDamage.Text = "Damage: "; lblNpcDataDamage.HoverColor = Color.Red; lblNpcDataMiniHP = new Label("lblNpcDataMiniHP"); lblNpcDataMiniHP.Location = new Point(40, 188); lblNpcDataMiniHP.AutoSize = true; lblNpcDataMiniHP.Font = Graphics.FontManager.LoadFont("PMU", 16); lblNpcDataMiniHP.Text = "Mini-HP: "; lblNpcDataMiniHP.HoverColor = Color.Red; lblSoundData = new Label("lblSoundData"); lblSoundData.Location = new Point(30, 198); lblSoundData.AutoSize = true; lblSoundData.Font = Graphics.FontManager.LoadFont("PMU", 32); lblSoundData.Text = "Sound Data"; lblSoundDataMusic = new Label("lblSoundDataMusic"); lblSoundDataMusic.Location = new Point(40, 228); lblSoundDataMusic.AutoSize = true; lblSoundDataMusic.Font = Graphics.FontManager.LoadFont("PMU", 16); lblSoundDataMusic.Text = "Music: "; lblSoundDataMusic.HoverColor = Color.Red; lblSoundDataSound = new Label("lblSoundDataSound"); lblSoundDataSound.Location = new Point(40, 242); lblSoundDataSound.AutoSize = true; lblSoundDataSound.Font = Graphics.FontManager.LoadFont("PMU", 16); lblSoundDataSound.Text = "Sound: "; lblSoundDataSound.HoverColor = Color.Red; lblChatData = new Label("lblChatData"); lblChatData.Location = new Point(30, 252); lblChatData.AutoSize = true; lblChatData.Font = Graphics.FontManager.LoadFont("PMU", 32); lblChatData.Text = "Chat Data"; lblChatDataSpeechBubbles = new Label("lblChatDataSpeechBubbles"); lblChatDataSpeechBubbles.Location = new Point(40, 282); lblChatDataSpeechBubbles.AutoSize = true; lblChatDataSpeechBubbles.Font = Graphics.FontManager.LoadFont("PMU", 16); lblChatDataSpeechBubbles.Text = "Speech Bubbles: "; lblChatDataSpeechBubbles.HoverColor = Color.Red; lblChatDataTimeStamps = new Label("lblChatDataTimeStamps"); lblChatDataTimeStamps.Location = new Point(40, 296); lblChatDataTimeStamps.AutoSize = true; lblChatDataTimeStamps.Font = Graphics.FontManager.LoadFont("PMU", 16); lblChatDataTimeStamps.Text = "TimeStamps: "; lblChatDataTimeStamps.HoverColor = Color.Red; lblChatDataAutoScroll = new Label("lblChatDataAutoScroll"); lblChatDataAutoScroll.Location = new Point(40, 310); lblChatDataAutoScroll.AutoSize = true; lblChatDataAutoScroll.Font = Graphics.FontManager.LoadFont("PMU", 16); lblChatDataAutoScroll.Text = "Auto-Scroll: "; lblChatDataAutoScroll.HoverColor = Color.Red; lblSave = new Label("lblSave"); lblSave.Location = new Point(30, 330); lblSave.AutoSize = true; lblSave.Font = Graphics.FontManager.LoadFont("PMU", 16); lblSave.Text = "Save"; lblSave.HoverColor = Color.Red; lblSave.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(lblSave_Click); this.AddWidget(itemPicker); this.AddWidget(lblOptions); this.AddWidget(lblPlayerData); this.AddWidget(lblPlayerDataName); this.AddWidget(lblPlayerDataDamage); this.AddWidget(lblPlayerDataMiniHP); this.AddWidget(lblPlayerDataAutoSaveSpeed); this.AddWidget(lblNpcData); this.AddWidget(lblNpcDataName); this.AddWidget(lblNpcDataDamage); this.AddWidget(lblNpcDataMiniHP); this.AddWidget(lblSoundData); this.AddWidget(lblSoundDataMusic); this.AddWidget(lblSoundDataSound); this.AddWidget(lblChatData); this.AddWidget(lblChatDataSpeechBubbles); this.AddWidget(lblChatDataTimeStamps); this.AddWidget(lblChatDataAutoScroll); this.AddWidget(lblSave); tempOptions = new bool[12]; tempAutoSaveSpeed = new int(); for (int i = 0; i < 12; i++) { CreateTempOption(i); ShowOption(i); } }
public mnuShop(string name, int itemSelected) : base(name) { base.Size = new Size(421, 360); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 40); currentTen = itemSelected / 10; itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblItemCollection = new Label("lblItemCollection"); lblItemCollection.AutoSize = true; lblItemCollection.Font = FontManager.LoadFont("PMDCP", 48); lblItemCollection.Text = "Shop"; lblItemCollection.Location = new Point(20, 0); lblItemCollection.ForeColor = Color.WhiteSmoke; picPreview = new PictureBox("picPreview"); picPreview.Size = new Size(32, 32); picPreview.BackColor = Color.Transparent; picPreview.Location = new Point(361, 20); lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(288, 15); lblItemNum.Font = FontManager.LoadFont("PMDCP", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.Text = "0/0"; lblItemNum.ForeColor = Color.WhiteSmoke; lblVisibleItems = new Label[10]; lblVisiblePrices = new Label[10]; for (int i = 0; i < lblVisibleItems.Length; i++) { lblVisibleItems[i] = new Label("lblVisibleItems" + i); //lblVisibleItems[i].AutoSize = true; lblVisibleItems[i].Size = new Size(200, 32); //lblVisibleItems[i].Width = 200; lblVisibleItems[i].Font = FontManager.LoadFont("PMDCP", 32); lblVisibleItems[i].Location = new Point(35, (i * 30) + 48); //lblVisibleItems[i].HoverColor = Color.Red; lblVisibleItems[i].ForeColor = Color.WhiteSmoke; lblVisibleItems[i].Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(shopItem_Click); this.AddWidget(lblVisibleItems[i]); lblVisiblePrices[i] = new Label("lblVisiblePrices" + i); //lblVisiblePrices[i].AutoSize = true; lblVisiblePrices[i].Size = new Size(200, 32); //lblVisiblePrices[i].Width = 200; lblVisiblePrices[i].Font = FontManager.LoadFont("PMDCP", 32); lblVisiblePrices[i].Location = new Point(240, (i * 30) + 48); //lblVisiblePrices[i].HoverColor = Color.Red; lblVisiblePrices[i].ForeColor = Color.WhiteSmoke; lblVisiblePrices[i].Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(shopPrice_Click); this.AddWidget(lblVisiblePrices[i]); } this.AddWidget(picPreview); this.AddWidget(lblItemCollection); this.AddWidget(lblItemNum); this.AddWidget(itemPicker); tempSelected = itemSelected % 10; //DisplayItems(currentTen * 10 + 1); //ChangeSelected((itemSelected - 1) % 10); //UpdateSelectedItemInfo(); //loaded = true; lblVisibleItems[0].Text = "Loading..."; }
/*Label lblPoke1; * Label lblPoke2; * Label lblPoke3; * Label lblPoke4; */ #endregion Fields #region Constructors public mnuTeam(string name) : base(name) { this.Size = new Size(280, 188); this.MenuDirection = Enums.MenuDirection.Vertical; this.Location = new Point(10, 40); itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblPoke = new Label("lblPoke"); lblPoke.Location = new Point(20, 0); lblPoke.AutoSize = true; lblPoke.Font = FontManager.LoadFont("PMDCP", 48); lblPoke.ForeColor = Color.WhiteSmoke; lblPoke.Text = "Team"; lblAllPoke = new Label[4]; for (int i = 0; i < 4; i++) { lblAllPoke[i] = new Label("lblAllPoke" + i); lblAllPoke[i].AutoSize = true; lblAllPoke[i].Font = FontManager.LoadFont("PMDCP", 32); lblAllPoke[i].Location = new Point(30, (i * 30) + 48); lblAllPoke[i].HoverColor = Color.Red; lblAllPoke[i].ForeColor = Color.WhiteSmoke; lblAllPoke[i].Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(team_Click); this.AddWidget(lblAllPoke[i]); } /* * lblPoke1 = new Label("lblPoke1"); * lblPoke1.AutoSize = true; * lblPoke1.Location = new Point(30, 48); * lblPoke1.Font = FontManager.LoadFont("PMDCP", 32); * lblPoke1.Text = "Pokemon 1"; * lblPoke1.HoverColor = Color.Red; * * lblPoke2 = new Label("lblPoke2"); * lblPoke2.AutoSize = true; * lblPoke2.Location = new Point(30, 78); * lblPoke2.Font = FontManager.LoadFont("PMDCP", 32); * lblPoke2.Text = "Pokemon 2"; * lblPoke2.HoverColor = Color.Red; * * lblPoke3 = new Label("lblPoke3"); * lblPoke3.AutoSize = true; * lblPoke3.Location = new Point(30, 108); * lblPoke3.Font = FontManager.LoadFont("PMDCP", 32); * lblPoke3.Text = "Pokemon 3"; * lblPoke3.HoverColor = Color.Red; * * lblPoke4 = new Label("lblPoke4"); * lblPoke4.AutoSize = true; * lblPoke4.Location = new Point(30, 138); * lblPoke4.Font = FontManager.LoadFont("PMDCP", 32); * lblPoke4.Text = "Pokemon 4"; * lblPoke4.HoverColor = Color.Red; */ this.AddWidget(itemPicker); this.AddWidget(lblPoke); /*this.AddWidget(lblPoke1); * this.AddWidget(lblPoke2); * this.AddWidget(lblPoke3); * this.AddWidget(lblPoke4); */ DisplayTeam(); ChangeSelected(0); }
public mnuBank(string name, int itemSelected) : base(name) { base.Size = new Size(315, 400); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(10, 32); currentTen = itemSelected / 10; itemPicker = new Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(18, 63); lblItemCollection = new Label("lblItemCollection"); lblItemCollection.AutoSize = true; lblItemCollection.Font = FontManager.LoadFont("PMU", 48); lblItemCollection.Text = "Storage"; lblItemCollection.Location = new Point(20, 0); lblItemCollection.ForeColor = Color.WhiteSmoke; picPreview = new PictureBox("picPreview"); picPreview.Size = new Size(32, 32); picPreview.BackColor = Color.Transparent; picPreview.Location = new Point(255, 20); lblItemNum = new Label("lblItemNum"); //lblItemNum.Size = new Size(100, 30); lblItemNum.AutoSize = true; lblItemNum.Location = new Point(182, 15); lblItemNum.Font = FontManager.LoadFont("PMU", 32); lblItemNum.BackColor = Color.Transparent; lblItemNum.Text = "0/0"; lblItemNum.ForeColor = Color.WhiteSmoke; txtFind = new TextBox("txtFind"); txtFind.Size = new Size(130, 20); txtFind.Location = new Point(32, 52); txtFind.Font = FontManager.LoadFont("PMU", 16); Skins.SkinManager.LoadTextBoxGui(txtFind); btnFind = new Button("btnFind"); btnFind.Size = new System.Drawing.Size(40, 20); btnFind.Location = new Point(174, 52); btnFind.Font = Graphics.FontManager.LoadFont("PMU", 16); btnFind.Text = "Find"; Skins.SkinManager.LoadButtonGui(btnFind); btnFind.Click +=new EventHandler<MouseButtonEventArgs>(btnFind_Click); lblVisibleItems = new Label[10]; for (int i = 0; i < lblVisibleItems.Length; i++) { lblVisibleItems[i] = new Label("lblVisibleItems" + i); //lblVisibleItems[i].AutoSize = true; //lblVisibleItems[i].Size = new Size(200, 32); lblVisibleItems[i].Width = 200; lblVisibleItems[i].Font = FontManager.LoadFont("PMU", 32); lblVisibleItems[i].Location = new Point(35, (i * 30) + 72); //lblVisibleItems[i].HoverColor = Color.Red; lblVisibleItems[i].ForeColor = Color.WhiteSmoke; lblVisibleItems[i].Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(bankItem_Click); this.AddWidget(lblVisibleItems[i]); } this.AddWidget(picPreview); this.AddWidget(txtFind); this.AddWidget(btnFind); this.AddWidget(lblItemCollection); this.AddWidget(lblItemNum); this.AddWidget(itemPicker); tempSelected = itemSelected % 10; //DisplayItems(currentTen * 10 + 1); //ChangeSelected((itemSelected - 1) % 10); //UpdateSelectedItemInfo(); //loaded = true; lblVisibleItems[0].Text = "Loading..."; }