public MenuDialog() { Index = 1963; Parent = GameScene.Scene; Library = Libraries.Prguse; Location = new Point(Settings.ScreenWidth - Size.Width, GameScene.Scene.MainDialog.Location.Y - this.Size.Height + 15); Sort = true; Visible = false; Movable = true; ExitButton = new MirButton { HoverIndex = 1965, Index = 1964, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 12), PressedIndex = 1966, Hint = "Exit (Alt + Q)" }; ExitButton.Click += (o, e) => GameScene.Scene.QuitGame(); LogOutButton = new MirButton { HoverIndex = 1968, Index = 1967, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 31), PressedIndex = 1969, Hint = "Log Out (Alt + X)" }; LogOutButton.Click += (o, e) => GameScene.Scene.LogOut(); HelpButton = new MirButton { Index = 1970, HoverIndex = 1971, PressedIndex = 1972, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 50), Hint = "Help (H)" }; HelpButton.Click += (o, e) => { if (GameScene.Scene.HelpDialog.Visible) GameScene.Scene.HelpDialog.Hide(); else GameScene.Scene.HelpDialog.Show(); }; KeyboardLayoutButton = new MirButton { Index = 1973, HoverIndex = 1974, PressedIndex = 1975, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 69), Visible = false }; KeyboardLayoutButton.Click += (o, e) => { if (GameScene.Scene.KeyboardLayoutDialog.Visible) GameScene.Scene.KeyboardLayoutDialog.Hide(); else GameScene.Scene.KeyboardLayoutDialog.Show(); }; RankingButton = new MirButton { Index = 2000, HoverIndex = 2001, PressedIndex = 2002, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 88), Visible = false }; RankingButton.Click += (o, e) => { if (GameScene.Scene.RankingDialog.Visible) GameScene.Scene.RankingDialog.Hide(); else GameScene.Scene.RankingDialog.Show(); }; CraftingButton = new MirButton { Index = 2000, HoverIndex = 2001, PressedIndex = 2002, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 107), Visible = false }; CraftingButton.Click += (o, e) => { }; IntelligentCreatureButton = new MirButton { Index = 431, HoverIndex = 432, PressedIndex = 433, Parent = this, Library = Libraries.Prguse2, Location = new Point(3, 126), Hint = "Creatures (E)" }; IntelligentCreatureButton.Click += (o, e) => { if (GameScene.Scene.IntelligentCreatureDialog.Visible) GameScene.Scene.IntelligentCreatureDialog.Hide(); else GameScene.Scene.IntelligentCreatureDialog.Show(); }; RideButton = new MirButton { Index = 1976, HoverIndex = 1977, PressedIndex = 1978, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 145), Hint = "Mount (J)" }; RideButton.Click += (o, e) => { if (GameScene.Scene.MountDialog.Visible) GameScene.Scene.MountDialog.Hide(); else GameScene.Scene.MountDialog.Show(); }; FishingButton = new MirButton { Index = 1979, HoverIndex = 1980, PressedIndex = 1981, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 164), Hint = "Fishing (N)" }; FishingButton.Click += (o, e) => { if (GameScene.Scene.FishingDialog.Visible) GameScene.Scene.FishingDialog.Hide(); else GameScene.Scene.FishingDialog.Show(); }; FriendButton = new MirButton { Index = 1982, HoverIndex = 1983, PressedIndex = 1984, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 183), Visible = true, Hint = "Friends (F)" }; FriendButton.Click += (o, e) => { if (GameScene.Scene.FriendDialog.Visible) GameScene.Scene.FriendDialog.Hide(); else GameScene.Scene.FriendDialog.Show(); }; MentorButton = new MirButton { Index = 1985, HoverIndex = 1986, PressedIndex = 1987, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 202), Visible = true, Hint = "Mentor (W)" }; MentorButton.Click += (o, e) => { if (GameScene.Scene.MentorDialog.Visible) GameScene.Scene.MentorDialog.Hide(); else GameScene.Scene.MentorDialog.Show(); }; RelationshipButton = new MirButton /* lover button */ { Index = 1988, HoverIndex = 1989, PressedIndex = 1990, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 221), Visible = true, Hint = "Relationship (L)" }; RelationshipButton.Click += (o, e) => { if (GameScene.Scene.RelationshipDialog.Visible) GameScene.Scene.RelationshipDialog.Hide(); else GameScene.Scene.RelationshipDialog.Show(); }; GroupButton = new MirButton { Index = 1991, HoverIndex = 1992, PressedIndex = 1993, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 240), Hint = "Groups (P)" }; GroupButton.Click += (o, e) => { if (GameScene.Scene.GroupDialog.Visible) GameScene.Scene.GroupDialog.Hide(); else GameScene.Scene.GroupDialog.Show(); }; GuildButton = new MirButton { Index = 1994, HoverIndex = 1995, PressedIndex = 1996, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 259), Hint = "Guild (G)" }; GuildButton.Click += (o, e) => { if (GameScene.Scene.GuildDialog.Visible) GameScene.Scene.GuildDialog.Hide(); else GameScene.Scene.GuildDialog.Show(); }; }
public MenuDialog() { Index = 567; Parent = GameScene.Scene; Library = Libraries.Title; Location = new Point(Settings.ScreenWidth - Size.Width, GameScene.Scene.MainDialog.Location.Y - this.Size.Height + 15); Sort = true; Visible = false; Movable = true; ExitButton = new MirButton { HoverIndex = 634, Index = 633, Parent = this, Library = Libraries.Title, Location = new Point(3, 12), PressedIndex = 635, Hint = "Exit (" + CMain.InputKeys.GetKey(KeybindOptions.Exit) + ")" }; ExitButton.Click += (o, e) => GameScene.Scene.QuitGame(); LogOutButton = new MirButton { HoverIndex = 637, Index = 636, Parent = this, Library = Libraries.Title, Location = new Point(3, 31), PressedIndex = 638, Hint = "Log Out (" + CMain.InputKeys.GetKey(KeybindOptions.Logout) + ")" }; LogOutButton.Click += (o, e) => GameScene.Scene.LogOut(); HelpButton = new MirButton { Index = 1970, HoverIndex = 1971, PressedIndex = 1972, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 50), Hint = "Help (" + CMain.InputKeys.GetKey(KeybindOptions.Help) + ")" }; HelpButton.Click += (o, e) => { if (GameScene.Scene.HelpDialog.Visible) { GameScene.Scene.HelpDialog.Hide(); } else { GameScene.Scene.HelpDialog.Show(); } }; KeyboardLayoutButton = new MirButton { Index = 1973, HoverIndex = 1974, PressedIndex = 1975, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 69), Visible = false, Hint = "Keybinds" }; KeyboardLayoutButton.Click += (o, e) => { if (GameScene.Scene.KeyboardLayoutDialog.Visible) { GameScene.Scene.KeyboardLayoutDialog.Hide(); } else { GameScene.Scene.KeyboardLayoutDialog.Show(); } }; RankingButton = new MirButton { Index = 2000, HoverIndex = 2001, PressedIndex = 2002, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 88), Hint = "Ranking (" + CMain.InputKeys.GetKey(KeybindOptions.Ranking) + ")" //Visible = false }; RankingButton.Click += (o, e) => { if (GameScene.Scene.RankingDialog.Visible) { GameScene.Scene.RankingDialog.Hide(); } else { GameScene.Scene.RankingDialog.Show(); } }; CraftingButton = new MirButton { Index = 2000, HoverIndex = 2001, PressedIndex = 2002, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 107), Visible = false }; CraftingButton.Click += (o, e) => { }; IntelligentCreatureButton = new MirButton { Index = 431, HoverIndex = 432, PressedIndex = 433, Parent = this, Library = Libraries.Prguse2, Location = new Point(3, 126), Hint = "Creatures (" + CMain.InputKeys.GetKey(KeybindOptions.Creature) + ")" }; IntelligentCreatureButton.Click += (o, e) => { if (GameScene.Scene.IntelligentCreatureDialog.Visible) { GameScene.Scene.IntelligentCreatureDialog.Hide(); } else { GameScene.Scene.IntelligentCreatureDialog.Show(); } }; RideButton = new MirButton { Index = 1976, HoverIndex = 1977, PressedIndex = 1978, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 145), Hint = "Mount (" + CMain.InputKeys.GetKey(KeybindOptions.MountWindow) + ")" }; RideButton.Click += (o, e) => { if (GameScene.Scene.MountDialog.Visible) { GameScene.Scene.MountDialog.Hide(); } else { GameScene.Scene.MountDialog.Show(); } }; FishingButton = new MirButton { Index = 1979, HoverIndex = 1980, PressedIndex = 1981, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 164), Hint = "Fishing (" + CMain.InputKeys.GetKey(KeybindOptions.Fishing) + ")" }; FishingButton.Click += (o, e) => { if (GameScene.Scene.FishingDialog.Visible) { GameScene.Scene.FishingDialog.Hide(); } else { GameScene.Scene.FishingDialog.Show(); } }; FriendButton = new MirButton { Index = 1982, HoverIndex = 1983, PressedIndex = 1984, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 183), Visible = true, Hint = "Friends (" + CMain.InputKeys.GetKey(KeybindOptions.Friends) + ")" }; FriendButton.Click += (o, e) => { if (GameScene.Scene.FriendDialog.Visible) { GameScene.Scene.FriendDialog.Hide(); } else { GameScene.Scene.FriendDialog.Show(); } }; MentorButton = new MirButton { Index = 1985, HoverIndex = 1986, PressedIndex = 1987, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 202), Visible = true, Hint = "Mentor (" + CMain.InputKeys.GetKey(KeybindOptions.Mentor) + ")" }; MentorButton.Click += (o, e) => { if (GameScene.Scene.MentorDialog.Visible) { GameScene.Scene.MentorDialog.Hide(); } else { GameScene.Scene.MentorDialog.Show(); } }; RelationshipButton = new MirButton /* lover button */ { Index = 1988, HoverIndex = 1989, PressedIndex = 1990, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 221), Visible = true, Hint = "Relationship (" + CMain.InputKeys.GetKey(KeybindOptions.Relationship) + ")" }; RelationshipButton.Click += (o, e) => { if (GameScene.Scene.RelationshipDialog.Visible) { GameScene.Scene.RelationshipDialog.Hide(); } else { GameScene.Scene.RelationshipDialog.Show(); } }; GroupButton = new MirButton { Index = 1991, HoverIndex = 1992, PressedIndex = 1993, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 240), Hint = "Groups (" + CMain.InputKeys.GetKey(KeybindOptions.Group) + ")" }; GroupButton.Click += (o, e) => { if (GameScene.Scene.GroupDialog.Visible) { GameScene.Scene.GroupDialog.Hide(); } else { GameScene.Scene.GroupDialog.Show(); } }; GuildButton = new MirButton { Index = 1994, HoverIndex = 1995, PressedIndex = 1996, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 259), Hint = "Guild (" + CMain.InputKeys.GetKey(KeybindOptions.Guilds) + ")" }; GuildButton.Click += (o, e) => { if (GameScene.Scene.GuildDialog.Visible) { GameScene.Scene.GuildDialog.Hide(); } else { GameScene.Scene.GuildDialog.Show(); } }; }
public MenuDialog() { Index = 567; Parent = GameScene.Scene; Library = Libraries.Title; Location = new Point(Settings.ScreenWidth - Size.Width, GameScene.Scene.MainDialog.Location.Y - this.Size.Height + 15); Sort = true; Visible = false; Movable = true; ExitButton = new MirButton { HoverIndex = 634, Index = 633, Parent = this, Library = Libraries.Title, Location = new Point(3, 12), PressedIndex = 635, Hint = "Exit (" + CMain.InputKeys.GetKey(KeybindOptions.Exit) + ")" }; ExitButton.Click += (o, e) => GameScene.Scene.QuitGame(); LogOutButton = new MirButton { HoverIndex = 637, Index = 636, Parent = this, Library = Libraries.Title, Location = new Point(3, 31), PressedIndex = 638, Hint = "Log Out (" + CMain.InputKeys.GetKey(KeybindOptions.Logout) + ")" }; LogOutButton.Click += (o, e) => GameScene.Scene.LogOut(); HelpButton = new MirButton { Index = 1970, HoverIndex = 1971, PressedIndex = 1972, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 50), Hint = "Help (" + CMain.InputKeys.GetKey(KeybindOptions.Help) + ")" }; HelpButton.Click += (o, e) => { if (GameScene.Scene.HelpDialog.Visible) GameScene.Scene.HelpDialog.Hide(); else GameScene.Scene.HelpDialog.Show(); }; KeyboardLayoutButton = new MirButton { Index = 1973, HoverIndex = 1974, PressedIndex = 1975, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 69), Visible = false, Hint = "Keybinds" }; KeyboardLayoutButton.Click += (o, e) => { if (GameScene.Scene.KeyboardLayoutDialog.Visible) GameScene.Scene.KeyboardLayoutDialog.Hide(); else GameScene.Scene.KeyboardLayoutDialog.Show(); }; RankingButton = new MirButton { Index = 2000, HoverIndex = 2001, PressedIndex = 2002, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 88), Hint = "Ranking (" + CMain.InputKeys.GetKey(KeybindOptions.Ranking) + ")" //Visible = false }; RankingButton.Click += (o, e) => { if (GameScene.Scene.RankingDialog.Visible) GameScene.Scene.RankingDialog.Hide(); else GameScene.Scene.RankingDialog.Show(); }; CraftingButton = new MirButton { Index = 2000, HoverIndex = 2001, PressedIndex = 2002, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 107), Visible = false }; CraftingButton.Click += (o, e) => { }; IntelligentCreatureButton = new MirButton { Index = 431, HoverIndex = 432, PressedIndex = 433, Parent = this, Library = Libraries.Prguse2, Location = new Point(3, 126), Hint = "Creatures (" + CMain.InputKeys.GetKey(KeybindOptions.Creature) + ")" }; IntelligentCreatureButton.Click += (o, e) => { if (GameScene.Scene.IntelligentCreatureDialog.Visible) GameScene.Scene.IntelligentCreatureDialog.Hide(); else GameScene.Scene.IntelligentCreatureDialog.Show(); }; RideButton = new MirButton { Index = 1976, HoverIndex = 1977, PressedIndex = 1978, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 145), Hint = "Mount (" + CMain.InputKeys.GetKey(KeybindOptions.MountWindow) + ")" }; RideButton.Click += (o, e) => { if (GameScene.Scene.MountDialog.Visible) GameScene.Scene.MountDialog.Hide(); else GameScene.Scene.MountDialog.Show(); }; FishingButton = new MirButton { Index = 1979, HoverIndex = 1980, PressedIndex = 1981, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 164), Hint = "Fishing (" + CMain.InputKeys.GetKey(KeybindOptions.Fishing) + ")" }; FishingButton.Click += (o, e) => { if (GameScene.Scene.FishingDialog.Visible) GameScene.Scene.FishingDialog.Hide(); else GameScene.Scene.FishingDialog.Show(); }; FriendButton = new MirButton { Index = 1982, HoverIndex = 1983, PressedIndex = 1984, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 183), Visible = true, Hint = "Friends (" + CMain.InputKeys.GetKey(KeybindOptions.Friends) + ")" }; FriendButton.Click += (o, e) => { if (GameScene.Scene.FriendDialog.Visible) GameScene.Scene.FriendDialog.Hide(); else GameScene.Scene.FriendDialog.Show(); }; MentorButton = new MirButton { Index = 1985, HoverIndex = 1986, PressedIndex = 1987, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 202), Visible = true, Hint = "Mentor (" + CMain.InputKeys.GetKey(KeybindOptions.Mentor) + ")" }; MentorButton.Click += (o, e) => { if (GameScene.Scene.MentorDialog.Visible) GameScene.Scene.MentorDialog.Hide(); else GameScene.Scene.MentorDialog.Show(); }; RelationshipButton = new MirButton /* lover button */ { Index = 1988, HoverIndex = 1989, PressedIndex = 1990, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 221), Visible = true, Hint = "Relationship (" + CMain.InputKeys.GetKey(KeybindOptions.Relationship) + ")" }; RelationshipButton.Click += (o, e) => { if (GameScene.Scene.RelationshipDialog.Visible) GameScene.Scene.RelationshipDialog.Hide(); else GameScene.Scene.RelationshipDialog.Show(); }; GroupButton = new MirButton { Index = 1991, HoverIndex = 1992, PressedIndex = 1993, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 240), Hint = "Groups (" + CMain.InputKeys.GetKey(KeybindOptions.Group) + ")" }; GroupButton.Click += (o, e) => { if (GameScene.Scene.GroupDialog.Visible) GameScene.Scene.GroupDialog.Hide(); else GameScene.Scene.GroupDialog.Show(); }; GuildButton = new MirButton { Index = 1994, HoverIndex = 1995, PressedIndex = 1996, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 259), Hint = "Guild (" + CMain.InputKeys.GetKey(KeybindOptions.Guilds) + ")" }; GuildButton.Click += (o, e) => { if (GameScene.Scene.GuildDialog.Visible) GameScene.Scene.GuildDialog.Hide(); else GameScene.Scene.GuildDialog.Show(); }; }
public MenuDialog() { Index = 1963; Parent = GameScene.Scene; Library = Libraries.Prguse; Location = new Point(Settings.ScreenWidth - Size.Width, 224); Sort = true; Visible = false; ExitButton = new MirButton { HoverIndex = 1965, Index = 1964, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 12), PressedIndex = 1966 }; ExitButton.Click += (o, e) => GameScene.Scene.QuitGame(); LogOutButton = new MirButton { HoverIndex = 1968, Index = 1967, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 31), PressedIndex = 1969 }; LogOutButton.Click += (o, e) => GameScene.Scene.LogOut(); HelpButton = new MirButton { Index = 1970, HoverIndex = 1971, PressedIndex = 1972, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 50), }; HelpButton.Click += (o, e) => { if (GameScene.Scene.HelpDialog.Visible) GameScene.Scene.HelpDialog.Hide(); else GameScene.Scene.HelpDialog.Show(); }; KeyboardLayoutButton = new MirButton { Index = 1973, HoverIndex = 1974, PressedIndex = 1975, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 69), }; KeyboardLayoutButton.Click += (o, e) => { if (GameScene.Scene.KeyboardLayoutDialog.Visible) GameScene.Scene.KeyboardLayoutDialog.Hide(); else GameScene.Scene.KeyboardLayoutDialog.Show(); }; CraftingButton = new MirButton { Index = 2000, HoverIndex = 2001, PressedIndex = 2002, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 88), }; CraftingButton.Click += (o, e) => { if (GameScene.Scene.CraftingDialog.Visible) GameScene.Scene.CraftingDialog.Hide(); else GameScene.Scene.CraftingDialog.Show(); }; IntelligentCreatureButton = new MirButton { Index = 431, HoverIndex = 432, PressedIndex = 433, Parent = this, Library = Libraries.Prguse2, Location = new Point(3, 107), }; IntelligentCreatureButton.Click += (o, e) => { if (GameScene.Scene.IntelligentCreatureDialog.Visible) GameScene.Scene.IntelligentCreatureDialog.Hide(); else GameScene.Scene.IntelligentCreatureDialog.Show(); }; RideButton = new MirButton { Index = 1976, HoverIndex = 1977, PressedIndex = 1978, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 126), }; RideButton.Click += (o, e) => { if (GameScene.Scene.RideDialog.Visible) GameScene.Scene.RideDialog.Hide(); else GameScene.Scene.RideDialog.Show(); }; FishingButton = new MirButton { Index = 1979, HoverIndex = 1980, PressedIndex = 1981, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 145), }; FishingButton.Click += (o, e) => { if (GameScene.Scene.FishingDialog.Visible) GameScene.Scene.FishingDialog.Hide(); else GameScene.Scene.FishingDialog.Show(); }; FriendButton = new MirButton { Index = 1982, HoverIndex = 1983, PressedIndex = 1984, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 164), }; FriendButton.Click += (o, e) => { if (GameScene.Scene.FriendDialog.Visible) GameScene.Scene.FriendDialog.Hide(); else GameScene.Scene.FriendDialog.Show(); }; MentorButton = new MirButton { Index = 1985, HoverIndex = 1986, PressedIndex = 1987, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 183), }; MentorButton.Click += (o, e) => { if (GameScene.Scene.MentorDialog.Visible) GameScene.Scene.MentorDialog.Hide(); else GameScene.Scene.MentorDialog.Show(); }; RelationshipButton = new MirButton /* lover button */ { Index = 1988, HoverIndex = 1989, PressedIndex = 1990, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 202), }; RelationshipButton.Click += (o, e) => { if (GameScene.Scene.RelationshipDialog.Visible) GameScene.Scene.RelationshipDialog.Hide(); else GameScene.Scene.RelationshipDialog.Show(); }; GroupButton = new MirButton { Index = 1991, HoverIndex = 1992, PressedIndex = 1993, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 221), }; GroupButton.Click += (o, e) => { if (GameScene.Scene.GroupDialog.Visible) GameScene.Scene.GroupDialog.Hide(); else GameScene.Scene.GroupDialog.Show(); }; GuildButton = new MirButton { Index = 1994, HoverIndex = 1995, PressedIndex = 1996, Parent = this, Library = Libraries.Prguse, Location = new Point(3, 240), }; GuildButton.Click += (o, e) => { if (GameScene.Scene.GuildDialog.Visible) GameScene.Scene.GuildDialog.Hide(); else GameScene.Scene.GuildDialog.Show(); }; }