Skip to content

Commit

Permalink
Post-merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheArturZh committed Aug 10, 2023
1 parent 5914538 commit b1bd431
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Content.Client/Corvax/TTS/HumanoidProfileEditor.TTS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private void InitializeVoice()
_voiceButton.SelectId(args.Id);
SetVoice(_voiceList[args.Id].ID);
};

_voicePlayButton.OnPressed += _ => { PlayTTS(); };
}

Expand All @@ -52,7 +52,7 @@ private void UpdateTTSVoicesControls()
var voice = _voiceList[i];
if (!HumanoidCharacterProfile.CanHaveVoice(voice, Profile.Sex))
continue;

var name = Loc.GetString(voice.Name);
_voiceButton.AddItem(name, i);

Expand Down
8 changes: 5 additions & 3 deletions Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public sealed partial class HumanoidProfileEditor : Control
private readonly IConfigurationManager _configurationManager;
private readonly MarkingManager _markingManager;
private readonly JobRequirementsManager _requirements;
private readonly IRobustRandom _random;

private LineEdit _ageEdit => CAgeEdit;
private LineEdit _nameEdit => CNameEdit;
Expand All @@ -76,7 +77,7 @@ public sealed partial class HumanoidProfileEditor : Control
private SingleMarkingPicker _facialHairPicker => CFacialHairPicker;
private EyeColorPicker _eyesPicker => CEyeColorPicker;

private CheckBox _teleportAfkToCryoStorage => CTeleportAfkToCryoStorage;
private CheckBox _teleportAfkToCryoStorage => CTeleportAfkToCryoStorage;

private TabContainer _tabContainer => CTabContainer;
private BoxContainer _jobList => CJobList;
Expand Down Expand Up @@ -122,6 +123,7 @@ public HumanoidProfileEditor(IClientPreferencesManager preferencesManager, IProt
_preferencesManager = preferencesManager;
_configurationManager = configurationManager;
_markingManager = IoCManager.Resolve<MarkingManager>();
_random = IoCManager.Resolve<IRobustRandom>();

#region Left

Expand Down Expand Up @@ -519,9 +521,9 @@ public HumanoidProfileEditor(IClientPreferencesManager preferencesManager, IProt
};
_previewSpriteSideControl.AddChild(_previewSpriteSide);
#endregion Dummy

#region TeleportAfkToCryoStorage

_tabContainer.SetTabTitle(5, Loc.GetString("humanoid-profile-edtior-afkPreferences-tab"));
_teleportAfkToCryoStorage.Pressed = Profile?.TeleportAfkToCryoStorage ?? true;
_teleportAfkToCryoStorage.OnToggled += args => SetTeleportAfkToCryoStorage(args.Pressed);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ private void OnStaminaHitAttempt(EntityUid uid, SwitchableWeaponComponent compon
{
if (!component.IsOpen)
return;

args.HitSoundOverride = component.BonkSound;
}

private void OnExamined(EntityUid uid, SwitchableWeaponComponent comp, ExaminedEvent args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ public sealed class SwitchableWeaponComponent : Component
[ViewVariables(VVAccess.ReadWrite)][DataField("closeSound")]
public SoundSpecifier? CloseSound;

[ViewVariables(VVAccess.ReadWrite)][DataField("bonkSound")]
public SoundSpecifier? BonkSound;

[ViewVariables(VVAccess.ReadWrite)][DataField("sizeOpened")]
public int SizeOpened = 15;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
- type: StaminaDamageOnHit
damage: 0
- type: MeleeWeapon
soundHit: !type:SoundCollectionSpecifier
collection: BatonHit
damage:
types:
Blunt: 0
Expand Down

0 comments on commit b1bd431

Please sign in to comment.