FactionWindow.xaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <windows:FactionWindow
  2. xmlns="https://spacestation14.io"
  3. xmlns:cc="clr-namespace:Content.Client.UserInterface.Controls"
  4. xmlns:windows="clr-namespace:Content.Client.UserInterface.Systems.Faction.Windows"
  5. Title="Factions"
  6. MinWidth="400"
  7. MinHeight="350">
  8. <!-- Increased MinHeight slightly -->
  9. <BoxContainer Orientation="Vertical"
  10. Margin="5">
  11. <!-- View when NOT in a faction -->
  12. <BoxContainer Name="NotInFactionView"
  13. Orientation="Vertical"
  14. Visible="True">
  15. <Label Text="You are not currently in a faction."
  16. Align="Center"
  17. Margin="0 0 0 10"/>
  18. <!-- *** ADDED THIS SECTION *** -->
  19. <BoxContainer Orientation="Horizontal"
  20. Margin="0 5">
  21. <Label Text="Faction Name:"
  22. MinWidth="100"
  23. VerticalAlignment="Center"/>
  24. <LineEdit Name="FactionNameInput"
  25. Access="Public"
  26. HorizontalExpand="True"
  27. PlaceHolder="Enter desired faction name"/>
  28. </BoxContainer>
  29. <!-- *** END ADDED SECTION *** -->
  30. <Button Name="CreateFactionButton"
  31. Text="Create Faction"
  32. Access="Public"
  33. Margin="0 5"/>
  34. <Button Name="ListFactionsButtonNotInFaction"
  35. Text="List Factions"
  36. Access="Public"
  37. Margin="0 5"/>
  38. </BoxContainer>
  39. <!-- View when IN a faction -->
  40. <BoxContainer Name="InFactionView"
  41. Orientation="Vertical"
  42. Visible="False">
  43. <Label Name="CurrentFactionLabel"
  44. Text="Current Faction: -"
  45. Align="Center"
  46. Margin="0 0 0 10"/>
  47. <!-- Input for inviting a player -->
  48. <BoxContainer Orientation="Horizontal"
  49. Margin="0 0 0 5">
  50. <Label Text="Player to Invite:"
  51. MinWidth="100"
  52. VerticalAlignment="Center"/>
  53. <LineEdit Name="InvitePlayerNameInput"
  54. Access="Public"
  55. HorizontalExpand="True"
  56. PlaceHolder="Enter player name"/>
  57. </BoxContainer>
  58. <Button Name="InvitePlayerButton"
  59. Text="Invite Player"
  60. Access="Public"
  61. Margin="0 5"/>
  62. <Button Name="LeaveFactionButton"
  63. Text="Leave Faction"
  64. Access="Public"
  65. Margin="0 5"/>
  66. <Button Name="ListFactionsButtonInFaction"
  67. Text="List Factions"
  68. Access="Public"
  69. Margin="0 5"/>
  70. </BoxContainer>
  71. <!-- Area to display the faction list -->
  72. <ScrollContainer VerticalExpand="True"
  73. Margin="0 10 0 0">
  74. <Label Name="FactionListLabel"
  75. Text="Faction list will appear here..."
  76. Access="Public"/>
  77. <!-- Consider using RichTextLabel for better formatting later -->
  78. <!-- <RichTextLabel Name="FactionListLabel" /> -->
  79. </ScrollContainer>
  80. </BoxContainer>
  81. </windows:FactionWindow>