Added doc comments to server side voting API. There is now a 4 minute delay between creating votes of the same type. Shuffled some code around. Made a StandardVoteType enum instead of string IDs.
31 lines
1.5 KiB
XML
31 lines
1.5 KiB
XML
<ui:VoteCallMenu xmlns="https://spacestation14.io"
|
|
xmlns:ui="clr-namespace:Content.Client.Voting.UI"
|
|
xmlns:hudUi="clr-namespace:Content.Client.HUD.UI"
|
|
MouseFilter="Stop" MinSize="350 150">
|
|
<PanelContainer StyleClasses="AngleRect" />
|
|
<BoxContainer Orientation="Vertical">
|
|
<BoxContainer Margin="8 0" Orientation="Horizontal">
|
|
<Label Text="{Loc 'ui-vote-create-title'}"
|
|
HorizontalExpand="True" VAlign="Center" StyleClasses="LabelHeading" />
|
|
<TextureButton Name="CloseButton" StyleClasses="windowCloseButton"
|
|
VerticalAlignment="Center" />
|
|
</BoxContainer>
|
|
<hudUi:HighDivider />
|
|
|
|
<BoxContainer Orientation="Vertical" Margin="8 2 8 0" VerticalExpand="True" VerticalAlignment="Top">
|
|
<BoxContainer Orientation="Horizontal">
|
|
<OptionButton Name="VoteTypeButton" HorizontalExpand="True" />
|
|
<Control HorizontalExpand="True">
|
|
<OptionButton Name="VoteSecondButton" Visible="False" />
|
|
</Control>
|
|
</BoxContainer>
|
|
<Label Name="VoteTypeTimeoutLabel" Visible="False" />
|
|
</BoxContainer>
|
|
|
|
<Button Margin="8 2" Name="CreateButton" Text="{Loc 'ui-vote-create-button'}" />
|
|
|
|
<PanelContainer StyleClasses="LowDivider" />
|
|
<Label Margin="12 0 0 0" StyleClasses="LabelSubText" Text="{Loc 'ui-vote-fluff'}" />
|
|
</BoxContainer>
|
|
</ui:VoteCallMenu>
|