News UI overhaul and PDA notifications (#19610)

This commit is contained in:
Julian Giebel
2024-02-27 02:38:00 +01:00
committed by GitHub
parent f284b43ff6
commit 0752acdc2c
54 changed files with 1381 additions and 708 deletions

View File

@@ -26,6 +26,7 @@ hud-chatbox-channel-Whisper = Whisper
hud-chatbox-channel-LOOC = LOOC
hud-chatbox-channel-OOC = OOC
hud-chatbox-channel-Radio = Radio
hud-chatbox-channel-Notifications = Notifications
hud-chatbox-channel-Server = Server
hud-chatbox-channel-Visual = Actions
hud-chatbox-channel-Damage = Damage

View File

@@ -12,3 +12,5 @@ generic-invalid = invalid
generic-hours = hours
generic-playtime-title = Playtime
generic-confirm = Confirm

View File

@@ -1,17 +1,37 @@
news-read-ui-next-text = Next
news-read-ui-past-text = Past
news-read-ui-next-text =
news-read-ui-prev-text =
news-read-ui-next-tooltip = Next
news-read-ui-prev-tooltip = Prev
news-read-ui-default-title = Station News
news-read-ui-not-found-text = No articles found
news-read-ui-time-prefix-text = Publication time:
news-reader-ui-mute-tooltip = Mute notifications
news-read-ui-notification-off = ̶♫̶
news-read-ui-notification-on = ♫
news-read-ui-no-author = Anonymous
news-read-ui-author-prefix = Author:
news-write-ui-default-title = Mass-media Management
news-read-ui-author-prefix = Author:
news-write-ui-default-title = News Management
news-write-ui-articles-label = Articles:
news-write-ui-delete-text = Delete
news-write-ui-share-text = Publish
news-write-ui-publish-text = Publish
news-write-ui-create-text = Create
news-write-ui-cancel-text = Cancel
news-write-ui-preview-text = Preview
news-write-ui-article-count-0 = 0 Articles
news-write-ui-article-count-text = {$count} Articles
news-write-ui-footer-text = News#Manager™ Authoring System
news-write-ui-new-article = New Article
news-write-ui-article-name-label = Heading:
news-write-ui-article-content-label = Content:
news-write-no-access-popup = No access
news-writer-text-length-exceeded = Text exceeds maximum length
news-write-ui-richtext-tooltip = News articles support rich text
The following rich text tags are supported:
{"[color=Gray][bullet/]heading \\[size=1-3\\]"}
{"[bullet/]bold"}
{"[bullet/]italic"}
{"[bullet/]bolditalic"}
{"[bullet/]color"}
{"[bullet/]bullet[/color]"}
news-pda-notification-header = New news article

View File

@@ -3,7 +3,7 @@
# For the PDA Ringer screen
comp-ringer-vibration-popup = PDA vibrates
comp-ringer-vibration-popup = Your PDA vibrates
comp-ringer-ui-menu-title = Ringtone

View File

@@ -51,3 +51,6 @@ pda-bound-user-interface-music-button-description = Play music on your PDA
comp-pda-ui-unknown = Unknown
comp-pda-ui-unassigned = Unassigned
pda-notification-message = [font size=12][bold]PDA[/bold] { $header }: [/font]
"{ $message }"

View File

@@ -364,7 +364,7 @@
- type: entity
parent: BaseComputerCircuitboard
id: ComputerMassMediaCircuitboard
name: mass-media console board
name: news manager console board
description: Write your message to the world!
components:
- type: Sprite

View File

@@ -18,7 +18,7 @@
- type: entity
parent: BaseItem
id: NewsReadCartridge
id: NewsReaderCartridge
name: news cartridge
description: A program for reading news
components:
@@ -26,13 +26,13 @@
sprite: Objects/Devices/cartridge.rsi
state: cart-y
- type: UIFragment
ui: !type:NewsReadUi
ui: !type:NewsReaderUi
- type: Cartridge
programName: news-read-program-name
icon:
sprite: Interface/Misc/program_icons.rsi
state: news_read
- type: NewsReadCartridge
- type: NewsReaderCartridge
- type: entity
parent: BaseItem

View File

@@ -74,7 +74,7 @@
preinstalled:
- CrewManifestCartridge
- NotekeeperCartridge
- NewsReadCartridge
- NewsReaderCartridge
cartridgeSlot:
priority: -1
name: device-pda-slot-component-slot-name-cartridge
@@ -669,7 +669,7 @@
preinstalled:
- CrewManifestCartridge
- NotekeeperCartridge
- NewsReadCartridge
- NewsReaderCartridge
- LogProbeCartridge
- type: entity

View File

@@ -109,6 +109,12 @@
- type: SiliconLawProvider
laws: Crewsimov
- type: entity
id: BaseStationNews
abstract: true
components:
- type: StationNews
- type: entity
id: BaseStationAllEventsEligible
abstract: true

View File

@@ -10,6 +10,7 @@
id: StandardNanotrasenStation
parent:
- BaseStation
- BaseStationNews
- BaseStationCargo
- BaseStationJobsSpawning
- BaseStationRecords

View File

@@ -984,7 +984,7 @@
- type: entity
parent: BaseComputer
id: ComputerMassMedia
name: mass-media console
name: news manager console
description: Write your message to the world!
components:
- type: Sprite
@@ -1000,18 +1000,18 @@
- type: Computer
board: ComputerMassMediaCircuitboard
- type: DeviceNetworkRequiresPower
- type: NewsWrite
- type: NewsWriter
- type: AccessReader
access: [[ "Command" ]]
- type: ActivatableUI
key: enum.NewsWriteUiKey.Key
key: enum.NewsWriterUiKey.Key
- type: ActivatableUIRequiresVision
- type: Transform
anchored: true
- type: UserInterface
interfaces:
- key: enum.NewsWriteUiKey.Key
type: NewsWriteBoundUserInterface
- key: enum.NewsWriterUiKey.Key
type: NewsWriterBoundUserInterface
- type: entity
parent: BaseComputer

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

View File

@@ -372,18 +372,24 @@ binds:
type: State
key: Return
canRepeat: true
mod1: Shift
- function: TextNewline
type: State
key: NumpadEnter
canRepeat: true
mod1: Shift
- function: TextSubmit
type: State
key: Return
- function: TextSubmit
type: State
key: NumpadEnter
- function: MultilineTextSubmit
type: State
key: Return
mod1: Control
- function: MultilineTextSubmit
type: State
key: NumpadEnter
mod1: Control
- function: TextSelectAll
type: State
key: A