Skip to content

Commit

Permalink
Fixes... again.
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxoTrystan committed Dec 12, 2023
1 parent 271a24d commit 991dc0c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ private void OnActionMenu(EntityUid uid, LanguageSpeakerComponent component, Lan
if (_languageWindow == null)
return;

_languageWindow!.Open();
if (_languageWindow.IsOpen)
{
_languageWindow.Close();
}
else
{
_languageWindow!.Open();
}

EntityManager.EntityNetManager?.SendSystemNetworkMessage(new RequestLanguageMenuStateMessage());
}

Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Actions/language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
- type: InstantAction
icon: Interface/Actions/language.png
event: !type:LanguageMenuActionEvent
useDelay: 1
useDelay: 2
15 changes: 1 addition & 14 deletions Resources/Prototypes/Language/devices/translators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
components:
- type: PowerCellDraw
drawRate: 10
- type: HandheldTranslator
enabled: true

- type: entity
id: TranslatorEmtpy
Expand All @@ -42,8 +40,6 @@
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default
- type: HandheldTranslator
enabled: false

- type: entity
id: BaseTranslatorImplanter
Expand Down Expand Up @@ -188,15 +184,6 @@
name: Vulpkanin translator
description: "Used only by Vulpkanin to understand and speak with Galatic Common speakers."
components:
- type: Sprite
sprite: Objects/Devices/translator.rsi
state: icon
layers:
- state: icon
- state: translator
shader: unshaded
visible: true
map: [ "enum.ToggleVisuals.Layer", "enum.PowerDeviceVisualLayers.Powered" ]
- type: HandheldTranslator
default-language: GalacticCommon
spoken:
Expand All @@ -207,7 +194,7 @@
- Canilunzt
requires-all: false
- type: PowerCellDraw
drawRate: 0.5
drawRate: 0.1
- type: StaticPrice
price: 35

Expand Down

0 comments on commit 991dc0c

Please sign in to comment.