ReportDialog.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using Client.MirControls;
  2. using Client.MirGraphics;
  3. using Client.MirSounds;
  4. namespace Client.MirScenes.Dialogs
  5. {
  6. public sealed class ReportDialog : MirImageControl
  7. {
  8. MirDropDownBox ReportType;
  9. MirButton SendButton, CloseButton;
  10. MirTextBox MessageArea;
  11. public ReportDialog()
  12. {
  13. Index = 1633;
  14. Library = Libraries.Prguse;
  15. Movable = true;
  16. Sort = true;
  17. Location = Center;
  18. CloseButton = new MirButton
  19. {
  20. HoverIndex = 361,
  21. Index = 360,
  22. Location = new Point(336, 3),
  23. Library = Libraries.Prguse2,
  24. Parent = this,
  25. PressedIndex = 362,
  26. Sound = SoundList.ButtonA,
  27. };
  28. CloseButton.Click += (o, e) => Hide();
  29. ReportType = new MirDropDownBox()
  30. {
  31. Parent = this,
  32. Location = new Point(12, 35),
  33. Size = new Size(170, 14),
  34. ForeColour = Color.White,
  35. Visible = true,
  36. Enabled = true,
  37. };
  38. ReportType.Items.Add(GameLanguage.ClientTextMap.GetLocalization(ClientTextKeys.SelectReportType));
  39. ReportType.Items.Add(GameLanguage.ClientTextMap.GetLocalization(ClientTextKeys.SubmitBug));
  40. ReportType.Items.Add(GameLanguage.ClientTextMap.GetLocalization(ClientTextKeys.ReportPlayer));
  41. MessageArea = new MirTextBox
  42. {
  43. Parent = this,
  44. Location = new Point(12, 57),
  45. Size = new Size(330, 150),
  46. Font = new Font(Settings.FontName, 8F),
  47. };
  48. MessageArea.MultiLine();
  49. SendButton = new MirButton
  50. {
  51. Parent = this,
  52. Library = Libraries.Title,
  53. Index = 607,
  54. HoverIndex = 608,
  55. PressedIndex = 609,
  56. Sound = SoundList.ButtonA,
  57. Location = new Point(260, 219)
  58. };
  59. SendButton.Click += SendButton_Click;
  60. }
  61. void SendButton_Click(object sender, EventArgs e)
  62. {
  63. throw new NotImplementedException();
  64. }
  65. }
  66. }