]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add history tab to bounty console (#33932)
authorBarryNorfolk <barrynorfolkman@protonmail.com>
Thu, 30 Jan 2025 17:27:36 +0000 (18:27 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Jan 2025 17:27:36 +0000 (09:27 -0800)
commit18592148f7ef3e9de6e67e1fe2c4029dc392f7a8
tree41b00fd1b252c5ae87be9124c92dbc1231d0c4ff
parent5be5ee9832d76d9913b35db009c7bc989b020a07
Add history tab to bounty console (#33932)

* Add struct for holding historical data on cargo bounties

* Add localisation strings for bounty history

* Add new XAML entry for display bounty history

* Expand cargo bounty menu to include tabs

* Ensure station databases hold historical bounty data

* Add to the bounty history when removing one from active

* Feed bounty history into cargo's bounty system

* Move tab title setting to constructor

* Remove redundant access specifications

* Remove un-needed override

* Fixup BountyHistoryEntry backing code

* Fix formatting in CargoBountyMenu

* Reformat BountyHistoryData

* Rework TryRemoveBounty to use new Entity type

* Add Enum for showing bounty results

* Rework look and feel of History tab

* Add visible text when no bounties have been completed yet

* Remove control

* Swap default to null

* Reverse ordering of bounties so last entry comes first

* Remove redundant Visible

* Move enum docs into the enum
Content.Client/Cargo/BUI/CargoBountyConsoleBoundUserInterface.cs
Content.Client/Cargo/UI/BountyHistoryEntry.xaml [new file with mode: 0644]
Content.Client/Cargo/UI/BountyHistoryEntry.xaml.cs [new file with mode: 0644]
Content.Client/Cargo/UI/CargoBountyMenu.xaml
Content.Client/Cargo/UI/CargoBountyMenu.xaml.cs
Content.Server/Cargo/Components/StationCargoBountyDatabaseComponent.cs
Content.Server/Cargo/Systems/CargoSystem.Bounty.cs
Content.Shared/Cargo/CargoBountyHistoryData.cs [new file with mode: 0644]
Content.Shared/Cargo/Components/CargoBountyConsoleComponent.cs
Resources/Locale/en-US/cargo/cargo-bounty-console.ftl