This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
forked from new-frontiers-14/frontier-station-14
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete rewrite of latejoin window (new-frontiers-14#2200)
* Code cleanup * Add SeparatorColor for HSeparator * Add a station or crew choice before join window * Rig picker windows * Rename Window to Control for elements * Add extra station information * Add ExtraStationInformation component * use var * Rename NFLateJoinJobButton to JobButton * Implement right side section * Last fixes * Add descriptions * Replace hideous lists with a readable class * Fix job info * Add detail descriptions and UI tweaks * Add lobby sort order to be able to arrange stations * Add isLateJoin property and disable crew button if needed * wip * Display large buttons menu in picker window instead * Move files to own categories * Update namespaces * Rename Latejoin to LateJoin * Interfacing and class refactoring * Only show ships * Fix crew button going to station * Separate ship list item for crew * Disable positions when not allowed * Fix not allowed jobs for ships * Add tooltips * Fix comments --------- Co-authored-by: Dvir <[email protected]>
- Loading branch information
1 parent
1ac9b2b
commit 9eca8c3
Showing
35 changed files
with
1,302 additions
and
468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
Content.Client/_NF/LateJoin/Controls/CrewPickerControl.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<controls:CrewPickerControl xmlns="https://spacestation14.io" | ||
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client" | ||
xmlns:controls="clr-namespace:Content.Client._NF.LateJoin.Controls" | ||
Access="Public" | ||
HorizontalExpand="True" | ||
VerticalExpand="True"> | ||
<BoxContainer Orientation="Horizontal" HorizontalExpand="True" | ||
VerticalExpand="True"> | ||
<PanelContainer VerticalExpand="True" SetWidth="380"> | ||
<PanelContainer.PanelOverride> | ||
<!-- Using PanelBackgroundLight adds padding left and right, so we manually set background color --> | ||
<graphics:StyleBoxFlat BackgroundColor="#2F2F3B" /> | ||
</PanelContainer.PanelOverride> | ||
<BoxContainer Orientation="Vertical" | ||
VerticalExpand="True" | ||
HorizontalExpand="True"> | ||
<ScrollContainer HorizontalExpand="True" | ||
VerticalExpand="True" | ||
VScrollEnabled="True"> | ||
<BoxContainer Name="StationItemList" | ||
Orientation="Vertical" | ||
HorizontalExpand="True" | ||
MinSize="50 50"> | ||
</BoxContainer> | ||
</ScrollContainer> | ||
</BoxContainer> | ||
</PanelContainer> | ||
|
||
<PanelContainer VerticalExpand="True" HorizontalExpand="True"> | ||
<PanelContainer.PanelOverride> | ||
<graphics:StyleBoxFlat BackgroundColor="#25252a" /> | ||
</PanelContainer.PanelOverride> | ||
<BoxContainer Orientation="Vertical" | ||
VerticalExpand="True" | ||
HorizontalExpand="True"> | ||
<BoxContainer Orientation="Vertical" | ||
VerticalExpand="True" | ||
HorizontalExpand="True" | ||
Margin="20"> | ||
<Label Name="StationName" | ||
HorizontalExpand="True" | ||
StyleClasses="FancyWindowTitle" /> | ||
|
||
<RichTextLabel Name="StationDescription" /> | ||
</BoxContainer> | ||
|
||
<Label Text="{Loc 'frontier-lobby-available-jobs'}" | ||
Margin="20 4 0 4" | ||
StyleClasses="FancyWindowTitle" /> | ||
<ScrollContainer HorizontalExpand="True" | ||
VerticalExpand="True" | ||
VScrollEnabled="True"> | ||
|
||
|
||
<BoxContainer Name="StationJobItemList" | ||
Orientation="Vertical" | ||
HorizontalExpand="True" | ||
VerticalExpand="True" | ||
MinSize="50 50" | ||
Margin="4"> | ||
</BoxContainer> | ||
</ScrollContainer> | ||
</BoxContainer> | ||
</PanelContainer> | ||
</BoxContainer> | ||
</controls:CrewPickerControl> |
Oops, something went wrong.