Skip to content

Commit

Permalink
AAC tablet changes 1: headings and more phrases (#1634)
Browse files Browse the repository at this point in the history
* add: group heading

* tweak: move these phrase locales to "locations"

why were they uncategorized? wtf

* tweak: make phrase group headings big

* tweak: fix up group names

* add: relative location phrases

* tweak: remove safety status phrase group name

appears at top

* add: more subject phrases

* newlines

* add: machine phrase

* add: more pronoun phrases

* add: safety/temperature phrases

* add: "darkness" phrase

* add: color phrases

* add: flavor and common plant phrases

* add: more colors

* add: blood

* add: "skeleton" phrase

* Revert "add: "skeleton" phrase"

This reverts commit bc49e47.

I ACTUALLY FORGOT I HAD ONE ALREADY LOL
  • Loading branch information
portfiend authored Aug 16, 2024
1 parent cb624ff commit 9a12eb0
Show file tree
Hide file tree
Showing 16 changed files with 401 additions and 13 deletions.
15 changes: 15 additions & 0 deletions Content.Client/DeltaV/AACTablet/UI/AACWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,28 @@ private BoxContainer CreateBoxContainerForTab(Dictionary<string, List<QuickPhras

foreach (var group in groups)
{
var header = CreateHeaderForGroup(group.Key);
var buttonContainer = CreateButtonContainerForGroup(group.Value);
boxContainer.AddChild(header);
boxContainer.AddChild(buttonContainer);
}

return boxContainer;
}

private Label CreateHeaderForGroup(string groupName)
{
var header = new Label
{
HorizontalExpand = true,
Text = groupName,
Margin = new Thickness(10, 10, 10, 0),
StyleClasses = { "LabelBig" }
};

return header;
}

private GridContainer CreateButtonContainerForGroup(List<QuickPhrasePrototype> phrases)
{
var loc = IoCManager.Resolve<ILocalizationManager>();
Expand Down
4 changes: 4 additions & 0 deletions Resources/Locale/en-US/deltav/phrases/common.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,7 @@ phrase-stack = stack
phrase-hour = hour
phrase-minute = minute
phrase-second = second
phrase-i-am = I am
phrase-you-are = You are
phrase-mine = Mine
phrase-yours = Yours
23 changes: 23 additions & 0 deletions Resources/Locale/en-US/deltav/phrases/locations.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
phrase-location-ats = ATS
phrase-location-shipyard = Shipyard
phrase-location-boxing-ring = Boxing Ring
phrase-location-outpost = Outpost
phrase-location-escape-shuttle = Escape shuttle
phrase-location-shuttle = Shuttle
phrase-location-maintenance = Maintenance
# relative
phrase-location-near = near
phrase-location-far = far
phrase-location-inside = inside
phrase-location-outside = outside
## compass
phrase-location-north = north
phrase-location-east = east
phrase-location-south = south
phrase-location-west = west
phrase-location-northeast = northeast
phrase-location-southeast = southeast
phrase-location-southwest = southwest
phrase-location-northwest = northwest
37 changes: 37 additions & 0 deletions Resources/Locale/en-US/deltav/phrases/subjects.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,40 @@ phrase-salt = salt
phrase-artifact-fragment = artifact fragment
phrase-bluespace-crystal = bluespace
phrase-diamond = diamond
phrase-chemicals = chemicals
phrase-box = box
phrase-locker = locker
phrase-machine = machine
phrase-blood = blood
# colors
phrase-color-red = red
phrase-color-orange = orange
phrase-color-yellow = yellow
phrase-color-green = green
phrase-color-blue = blue
phrase-color-purple = purple
phrase-color-pink = pink
phrase-color-black = black
phrase-color-white = white
phrase-color-bright = bright
phrase-color-light = light
phrase-color-dark = dark
phrase-color-rainbow = rainbow
phrase-color-brown = brown
phrase-color-gray = gray
# flavors
phrase-sweet = sweet
phrase-sour = sour
phrase-spicy = spicy
phrase-savory = savory
phrase-bitter = bitter
# plants
phrase-tomato = tomato
phrase-potato = potato
phrase-onion = onion
phrase-aloe = aloe
phrase-poppy = poppy
phrase-galaxythistle = galaxythistle
7 changes: 6 additions & 1 deletion Resources/Locale/en-US/deltav/phrases/threats.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ phrase-hazard-space = spaced
phrase-hazard-low-presure = low pressure
phrase-hazard-high-presure = high pressure
phrase-hazard-heat = overheating
phrase-hazard-cold = freezing
phrase-hazard-cold = cold
phrase-hazard-gas-leak = gas leak
phrase-hazard-explosion = explosion
phrase-hazard-radiation = radiation
Expand Down Expand Up @@ -50,3 +50,8 @@ phrase-safety-how-to-help = How can I help?
phrase-safety-evac = Let's evacuate
phrase-safety-not = not
phrase-safety-lost = lost
phrase-hazard-hot = hot
phrase-hazard-freezing = freezing
phrase-hazard-burning = burning
phrase-hazard-bad-temperature = bad temperature
phrase-hazard-darkness = darkness
7 changes: 0 additions & 7 deletions Resources/Locale/en-US/deltav/phrases/uncategorized.ftl

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- type: quickPhrase
id: BaseImperativePhrase
parent: BaseCommonPhrase
group: Command
group: Commands and Requests
abstract: true

- type: quickPhrase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- type: quickPhrase
id: BaseNumberPhrase
parent: BaseCommonPhrase
group: Numbers
group: Numbers and Units
abstract: true

- type: quickPhrase
Expand Down
22 changes: 21 additions & 1 deletion Resources/Prototypes/DeltaV/QuickPhrases/Common/pronouns.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- type: quickPhrase
id: BaseNounsPhrase
parent: BaseCommonPhrase
group: Nouns
group: Nouns and Pronouns
abstract: true

- type: quickPhrase
Expand Down Expand Up @@ -63,3 +63,23 @@
id: MePhrase
parent: BaseNounsPhrase
text: phrase-me

- type: quickPhrase
id: IAmPhrase
parent: BaseNounsPhrase
text: phrase-i-am

- type: quickPhrase
id: YouArePhrase
parent: BaseNounsPhrase
text: phrase-you-are

- type: quickPhrase
id: MinePhrase
parent: BaseNounsPhrase
text: phrase-mine

- type: quickPhrase
id: YoursPhrase
parent: BaseNounsPhrase
text: phrase-yours
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- type: quickPhrase
id: BaseQualitativePhrase
parent: BaseCommonPhrase
group: Quantity or Quality
group: Quantity and Quality
abstract: true

- type: quickPhrase
Expand Down
110 changes: 110 additions & 0 deletions Resources/Prototypes/DeltaV/QuickPhrases/Subjects/generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,33 @@
parent: BaseSubjectPhrase
text: phrase-bag

- type: quickPhrase
id: LockerPhrase
parent: BaseSubjectPhrase
text: phrase-locker

- type: quickPhrase
id: BoxPhrase
parent: BaseSubjectPhrase
text: phrase-box

- type: quickPhrase
id: ChemicalsPhrase
parent: BaseSubjectPhrase
text: phrase-chemicals

- type: quickPhrase
id: MachinePhrase
parent: BaseSubjectPhrase
text: phrase-machine

- type: quickPhrase
id: BloodPhrase
parent: BaseSubjectPhrase
text: phrase-blood

# Materials

- type: quickPhrase
id: BaseMaterialPhrase
parent: BaseSubjectPhrase
Expand Down Expand Up @@ -228,3 +255,86 @@
id: BluespacePhrase
parent: BaseMaterialPhrase
text: phrase-bluespace

# Colors

- type: quickPhrase
id: BaseColorPhrase
parent: BaseSubjectPhrase
group: Colors
abstract: true

- type: quickPhrase
id: ColorRedPhrase
parent: BaseColorPhrase
text: phrase-color-red

- type: quickPhrase
id: ColorOrangePhrase
parent: BaseColorPhrase
text: phrase-color-orange

- type: quickPhrase
id: ColorYellowPhrase
parent: BaseColorPhrase
text: phrase-color-yellow

- type: quickPhrase
id: ColorGreenPhrase
parent: BaseColorPhrase
text: phrase-color-green

- type: quickPhrase
id: ColorBluePhrase
parent: BaseColorPhrase
text: phrase-color-blue

- type: quickPhrase
id: ColorPurplePhrase
parent: BaseColorPhrase
text: phrase-color-purple

- type: quickPhrase
id: ColorPinkPhrase
parent: BaseColorPhrase
text: phrase-color-pink

- type: quickPhrase
id: ColorBlackPhrase
parent: BaseColorPhrase
text: phrase-color-black

- type: quickPhrase
id: ColorWhitePhrase
parent: BaseColorPhrase
text: phrase-color-white

- type: quickPhrase
id: ColorBrightPhrase
parent: BaseColorPhrase
text: phrase-color-bright

- type: quickPhrase
id: ColorDarkPhrase
parent: BaseColorPhrase
text: phrase-color-dark

- type: quickPhrase
id: ColorRainbowPhrase
parent: BaseColorPhrase
text: phrase-color-rainbow

- type: quickPhrase
id: ColorLightPhrase
parent: BaseColorPhrase
text: phrase-color-light

- type: quickPhrase
id: ColorBrownPhrase
parent: BaseColorPhrase
text: phrase-color-brown

- type: quickPhrase
id: ColorGrayPhrase
parent: BaseColorPhrase
text: phrase-color-gray
5 changes: 5 additions & 0 deletions Resources/Prototypes/DeltaV/QuickPhrases/Subjects/medical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,8 @@
id: HealthyPhrase
parent: BaseMedicinePhrase
text: phrase-healthy

- type: quickPhrase
id: MedicalChemicalsPhrase
parent: BaseMedicinePhrase
text: phrase-chemicals
55 changes: 55 additions & 0 deletions Resources/Prototypes/DeltaV/QuickPhrases/Subjects/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,58 @@
id: GrillPhrase
parent: BaseServiceSubjectPhrase
text: phrase-grill

- type: quickPhrase
id: SweetPhrase
parent: BaseServiceSubjectPhrase
text: phrase-sweet

- type: quickPhrase
id: SourPhrase
parent: BaseServiceSubjectPhrase
text: phrase-sour

- type: quickPhrase
id: SpicyPhrase
parent: BaseServiceSubjectPhrase
text: phrase-spicy

- type: quickPhrase
id: SavoryPhrase
parent: BaseServiceSubjectPhrase
text: phrase-savory

- type: quickPhrase
id: BitterPhrase
parent: BaseServiceSubjectPhrase
text: phrase-bitter

- type: quickPhrase
id: TomatoPhrase
parent: BaseServiceSubjectPhrase
text: phrase-tomato

- type: quickPhrase
id: PotatoPhrase
parent: BaseServiceSubjectPhrase
text: phrase-potato

- type: quickPhrase
id: OnionPhrase
parent: BaseServiceSubjectPhrase
text: phrase-onion

- type: quickPhrase
id: AloePhrase
parent: BaseServiceSubjectPhrase
text: phrase-aloe

- type: quickPhrase
id: PoppyPhrase
parent: BaseServiceSubjectPhrase
text: phrase-poppy

- type: quickPhrase
id: GalaxyThistlePhrase
parent: BaseServiceSubjectPhrase
text: phrase-galaxythistle
Loading

0 comments on commit 9a12eb0

Please sign in to comment.