public mnuMissionBoard(string name, string[] parse) : base(name) { base.Size = new Size(280, 460); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(15, 10); itemPicker = new Logic.Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(20, 64); lblJobList = new Label("lblJobList"); lblJobList.AutoSize = true; lblJobList.Font = FontManager.LoadFont("PMDCP", 48); lblJobList.ForeColor = Color.WhiteSmoke; lblJobList.Text = "Missions"; lblJobList.Location = new Point(20, 0); lblLoading = new Label("lblLoading"); lblLoading.Location = new Point(10, 50); lblLoading.Font = FontManager.LoadFont("PMDCP", 16); lblLoading.AutoSize = true; lblLoading.Text = "Loading..."; lblLoading.ForeColor = Color.WhiteSmoke; items = new MissionTitle[8]; int lastY = 58; for (int i = 0; i < items.Length; i++) { items[i] = new MissionTitle("item" + i, this.Width); items[i].Location = new Point(15, lastY); this.AddWidget(items[i]); lastY += items[i].Height + 8; } this.AddWidget(itemPicker); this.AddWidget(lblJobList); //this.AddWidget(lblLoading); LoadMissionsFromPacket(parse); }
public mnuJobList(string name) : base(name) { base.Size = new Size(280, 460); base.MenuDirection = Enums.MenuDirection.Vertical; base.Location = new Point(15, 10); itemPicker = new Logic.Widgets.MenuItemPicker("itemPicker"); itemPicker.Location = new Point(20, 64); lblJobList = new Label("lblJobList"); lblJobList.AutoSize = true; lblJobList.Font = FontManager.LoadFont("PMDCP", 48); lblJobList.ForeColor = Color.WhiteSmoke; lblJobList.Text = "Job List"; lblJobList.Location = new Point(20, 0); items = new MissionTitle[8]; int lastY = 58; for (int i = 0; i < items.Length; i++) { items[i] = new MissionTitle("item" + i, this.Width); items[i].Location = new Point(15, lastY); if (Players.PlayerManager.MyPlayer.JobList.Jobs.Count > i) { items[i].SetJob(Players.PlayerManager.MyPlayer.JobList.Jobs[i]); } else { items[i].SetJob(null); } this.AddWidget(items[i]); lastY += items[i].Height + 8; } this.AddWidget(itemPicker); this.AddWidget(lblJobList); }