Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream sync #1570

Merged
merged 104 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
cf6eb20
Remove need to toggle vending machine button (#21543)
themias Nov 9, 2023
be8e5b7
Automatic changelog update
PJBot Nov 9, 2023
8be97a2
Roller Skates fixes (#21542)
brainfood1183 Nov 9, 2023
c1791eb
Fix space vault (#21541)
themias Nov 9, 2023
cb1e799
Automatic changelog update
PJBot Nov 9, 2023
2ef29fb
New crop: Cotton (#21536)
DoubleRiceEddiedd Nov 9, 2023
50e358a
Automatic changelog update
PJBot Nov 9, 2023
88a9dce
Tweak dwarf accent (#21522)
pewter-wiz Nov 9, 2023
e355541
Minor: Revert removal of "Oye" from dwarven accent in favour of "Oi" …
pewter-wiz Nov 9, 2023
2f2d237
LOOC will appear on top of your head (#21514)
VasilisThePikachu Nov 9, 2023
7b06e1e
Automatic changelog update
PJBot Nov 9, 2023
c2de7ec
Adding a kitten (#20726)
ravage123321 Nov 9, 2023
1ae210f
Automatic changelog update
PJBot Nov 9, 2023
5cc157e
Mark space glue and lube TrashOnSolutionEmpty (#21550)
themias Nov 9, 2023
5d46bbb
Minor Borg Qol (#21548)
Emisse Nov 9, 2023
4de0cf6
Automatic changelog update
PJBot Nov 9, 2023
ac5e9cd
Fix borg mobstates (#21307)
EmoGarbage404 Nov 9, 2023
977cced
Automatic changelog update
PJBot Nov 9, 2023
02584a5
strip fix (#21552)
PixelTheKermit Nov 9, 2023
fdf4ea1
Generators were discharged in the admin arena (#21549)
Genkail Nov 9, 2023
6d2c086
Automatic changelog update
PJBot Nov 9, 2023
df11de0
cheaper borg parts and modules (#21557)
EmoGarbage404 Nov 10, 2023
a367097
Automatic changelog update
PJBot Nov 10, 2023
654cc7f
Merge `ActorSystem` and `IPlayerManager` (#21314)
ElectroJr Nov 11, 2023
68c45eb
Update engine to v178.0.0 (#21571)
ElectroJr Nov 11, 2023
909621e
stasis bed and microwave qol(#21572)
VasilisThePikachu Nov 11, 2023
d7810e6
Borg QOL, part 3 (#21567)
Doru991 Nov 11, 2023
a0198f4
Automatic changelog update
PJBot Nov 11, 2023
9af9574
Fix replay spectating bugs (#21573)
ElectroJr Nov 11, 2023
1a3d3a3
Fix missing if statement when logging missing action error (#21560)
DrSmugleaf Nov 11, 2023
86ebdf8
Automatic changelog update
PJBot Nov 11, 2023
d9119f8
aspid update (#21575)
Emisse Nov 11, 2023
fb180fb
Remove welding mask from tech assistant starting inventory (#21578)
lzk228 Nov 11, 2023
c032fad
Stops plants from growing when they do not have enough resources (#21…
Brandon-Huu Nov 11, 2023
d097b67
Automatic changelog update
PJBot Nov 11, 2023
e4ec03f
Disallow bee zombification (#21507)
VasilisThePikachu Nov 11, 2023
61f2532
Automatic changelog update
PJBot Nov 11, 2023
a183f16
aspid update (#21587)
Emisse Nov 11, 2023
f7638ae
convert license.txt to attributions.yml (#21585)
Chronophylos Nov 11, 2023
2de0619
mining shuttle update (#21588)
Emisse Nov 11, 2023
df52e23
convert license.txt to attributions.yml in Effects/Vehicle (#21593)
Chronophylos Nov 11, 2023
ee03526
convert license.txt to attributions.yml in Voice/Skeleton (#21592)
Chronophylos Nov 11, 2023
6e07e5d
convert license.txt to attributions.yml in Machines (#21586)
Chronophylos Nov 11, 2023
9d3fb08
convert license.txt to attributions.yml in Voice/Talk (#21589)
Chronophylos Nov 11, 2023
f094862
Fix world targeted actions making the user face in the wrong directio…
DrSmugleaf Nov 12, 2023
820a032
aspid update (#21603)
Emisse Nov 12, 2023
a2b2c56
remove toxin from spider bread (#21604)
deltanedas Nov 12, 2023
bfd509e
fix (#21612)
Slava0135 Nov 12, 2023
b9b706b
Automatic changelog update
PJBot Nov 12, 2023
c9e2a91
Fix ghost FOV bug (#21614)
ElectroJr Nov 12, 2023
f3e5cae
Automatic changelog update
PJBot Nov 12, 2023
3e6ecb9
Update engine to v179.0.0 (#21615)
ElectroJr Nov 12, 2023
ab1894f
Make cornmeal actually obtainable by botany (#21622)
DoubleRiceEddiedd Nov 12, 2023
d362e19
Automatic changelog update
PJBot Nov 12, 2023
1aafcb0
Convert other attributions in Resources/Audio (#21609)
Chronophylos Nov 12, 2023
e22675b
convert license.txt to attributions.yml in Voice/Human (#21591)
Chronophylos Nov 12, 2023
60c1985
egg rework (#21606)
deltanedas Nov 12, 2023
1f29a34
Automatic changelog update
PJBot Nov 12, 2023
1a676bd
Puppy Ian. Awwww (And a puppy crate) (#21508)
VasilisThePikachu Nov 12, 2023
dc4b55f
update death squad role description for more universal uses. (#21611)
QuietlyWhisper Nov 12, 2023
173a471
Automatic changelog update
PJBot Nov 12, 2023
355e16f
fix implant action icon bug (#21597)
ElectroJr Nov 12, 2023
63c74c6
Automatic changelog update
PJBot Nov 12, 2023
c99e265
Thief stuff: Gloves, Spy Crew Monitor, Invisible Crate, Toy (#21551)
TheShuEd Nov 12, 2023
ed84aa1
Automatic changelog update
PJBot Nov 12, 2023
9bbdbb9
Space Sharkminnow (#20658)
Nimfar11 Nov 13, 2023
125d80f
Automatic changelog update
PJBot Nov 13, 2023
e02bffc
fix egg debug assert (#21628)
deltanedas Nov 13, 2023
87c22a9
List antags in custody in round end screen (#21566)
themias Nov 13, 2023
5228ece
Automatic changelog update
PJBot Nov 13, 2023
dbd1fa3
Reduce space music grid range (#21630)
metalgearsloth Nov 13, 2023
7504171
Automatic changelog update
PJBot Nov 13, 2023
dc5739a
Add shadow biome (#21276)
metalgearsloth Nov 13, 2023
eb0c86f
Storage CanInsert() tweaks (#21623)
ElectroJr Nov 13, 2023
aae3d71
Bump expedition timer to 11mins (#21635)
metalgearsloth Nov 13, 2023
b404c3e
Automatic changelog update
PJBot Nov 13, 2023
7d92125
the voices don't stop (fix pda ring) (#21640)
Simyon264 Nov 13, 2023
e3307fc
Automatic changelog update
PJBot Nov 13, 2023
966201c
Fix CanImplant returning true when there's no implant (#21637)
luringens Nov 13, 2023
91a2479
Fix voice mask popup location (#21638)
luringens Nov 13, 2023
c9f2bf6
make explosions affect containers (#21625)
deltanedas Nov 13, 2023
7e81c8a
Automatic changelog update
PJBot Nov 13, 2023
aeceea0
space cleaner and fuel dispensers (#21610)
Tunguso4ka Nov 13, 2023
63ba40d
Cak (#21639)
TheShuEd Nov 13, 2023
7e0b800
Automatic changelog update
PJBot Nov 13, 2023
85f6e99
bagel update (#21641)
Emisse Nov 13, 2023
eb46102
box update (#21642)
Emisse Nov 13, 2023
126c1bb
meta update (#21643)
Emisse Nov 13, 2023
786bb79
Pet Carrier (Zookeeper gameplay?) (#21545)
TheShuEd Nov 13, 2023
2fdc566
Automatic changelog update
PJBot Nov 13, 2023
4e84961
Minimalist Action Bar (#21352)
EmoGarbage404 Nov 14, 2023
ff7bce6
Automatic changelog update
PJBot Nov 14, 2023
ec76958
Add Check For Gravity On Thrown Items (#21647)
Jrpl Nov 14, 2023
16a9697
Flammable system bug fixes. (#21594)
ElectroJr Nov 14, 2023
50e1289
Automatic changelog update
PJBot Nov 14, 2023
aa704ee
Reduce NPC query allocations (#21421)
metalgearsloth Nov 14, 2023
318d843
Add MindPlaySound to role system (#21460)
deltanedas Nov 14, 2023
e6e7a23
Fix thrown items not registering the tile they stop by colliding with…
Chubbygummibear Nov 14, 2023
75bfba6
Automatic changelog update
PJBot Nov 14, 2023
3cb4017
Merge remote-tracking branch 'upstream/master' into upstream-sync
Morb0 Nov 14, 2023
0f80aeb
Update attributions
Morb0 Nov 14, 2023
25b30d6
Update locale
Morb0 Nov 14, 2023
e0873fa
Fix locale
Morb0 Nov 14, 2023
f45c72b
Fix yml source
Morb0 Nov 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions Content.Client/Actions/ActionsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Robust.Shared.ContentPack;
using Robust.Shared.GameStates;
using Robust.Shared.Input.Binding;
using Robust.Shared.Player;
using Robust.Shared.Serialization.Manager;
using Robust.Shared.Serialization.Markdown;
using Robust.Shared.Serialization.Markdown.Mapping;
Expand Down
1 change: 1 addition & 0 deletions Content.Client/Alerts/ClientAlertsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Content.Shared.Alert;
using JetBrains.Annotations;
using Robust.Client.Player;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;

namespace Content.Client.Alerts;
Expand Down
32 changes: 24 additions & 8 deletions Content.Client/Chat/UI/SpeechBubble.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.Timing;
using Robust.Shared.Utility;

namespace Content.Client.Chat.UI
{
Expand All @@ -13,7 +14,8 @@ public enum SpeechType : byte
{
Emote,
Say,
Whisper
Whisper,
Looc
}

/// <summary>
Expand Down Expand Up @@ -60,12 +62,15 @@ public static SpeechBubble CreateSpeechBubble(SpeechType type, string text, Enti
case SpeechType.Whisper:
return new TextSpeechBubble(text, senderEntity, eyeManager, chatManager, entityManager, "whisperBox");

case SpeechType.Looc:
return new TextSpeechBubble(text, senderEntity, eyeManager, chatManager, entityManager, "emoteBox", Color.FromHex("#48d1cc"));

default:
throw new ArgumentOutOfRangeException();
}
}

public SpeechBubble(string text, EntityUid senderEntity, IEyeManager eyeManager, IChatManager chatManager, IEntityManager entityManager, string speechStyleClass)
public SpeechBubble(string text, EntityUid senderEntity, IEyeManager eyeManager, IChatManager chatManager, IEntityManager entityManager, string speechStyleClass, Color? fontColor = null)
{
_chatManager = chatManager;
_senderEntity = senderEntity;
Expand All @@ -75,7 +80,7 @@ public SpeechBubble(string text, EntityUid senderEntity, IEyeManager eyeManager,
// Use text clipping so new messages don't overlap old ones being pushed up.
RectClipContent = true;

var bubble = BuildBubble(text, speechStyleClass);
var bubble = BuildBubble(text, speechStyleClass, fontColor);

AddChild(bubble);

Expand All @@ -86,7 +91,7 @@ public SpeechBubble(string text, EntityUid senderEntity, IEyeManager eyeManager,
_verticalOffsetAchieved = -ContentSize.Y;
}

protected abstract Control BuildBubble(string text, string speechStyleClass);
protected abstract Control BuildBubble(string text, string speechStyleClass, Color? fontColor = null);

protected override void FrameUpdate(FrameEventArgs args)
{
Expand Down Expand Up @@ -164,18 +169,29 @@ public void FadeNow()

public sealed class TextSpeechBubble : SpeechBubble
{
public TextSpeechBubble(string text, EntityUid senderEntity, IEyeManager eyeManager, IChatManager chatManager, IEntityManager entityManager, string speechStyleClass)
: base(text, senderEntity, eyeManager, chatManager, entityManager, speechStyleClass)
public TextSpeechBubble(string text, EntityUid senderEntity, IEyeManager eyeManager, IChatManager chatManager, IEntityManager entityManager, string speechStyleClass, Color? fontColor = null)
: base(text, senderEntity, eyeManager, chatManager, entityManager, speechStyleClass, fontColor)
{
}

protected override Control BuildBubble(string text, string speechStyleClass)
protected override Control BuildBubble(string text, string speechStyleClass, Color? fontColor = null)
{
var label = new RichTextLabel
{
MaxWidth = 256,
};
label.SetMessage(text);

if (fontColor != null)
{
var msg = new FormattedMessage();
msg.PushColor(fontColor.Value);
msg.AddMarkup(text);
label.SetMessage(msg);
}
else
{
label.SetMessage(text);
}

var panel = new PanelContainer
{
Expand Down
1 change: 1 addition & 0 deletions Content.Client/Construction/ConstructionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Robust.Shared.Input;
using Robust.Shared.Input.Binding;
using Robust.Shared.Map;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;

namespace Content.Client.Construction
Expand Down
1 change: 1 addition & 0 deletions Content.Client/Drugs/DrugOverlaySystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Content.Shared.Drugs;
using Robust.Client.Graphics;
using Robust.Client.Player;
using Robust.Shared.Player;

namespace Content.Client.Drugs;

Expand Down
1 change: 1 addition & 0 deletions Content.Client/Drunk/DrunkSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Content.Shared.Drunk;
using Robust.Client.Graphics;
using Robust.Client.Player;
using Robust.Shared.Player;

namespace Content.Client.Drunk;

Expand Down
1 change: 1 addition & 0 deletions Content.Client/Eye/Blinding/BlindingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Robust.Client.Player;
using Content.Shared.Eye.Blinding.Components;
using Content.Shared.GameTicking;
using Robust.Shared.Player;

namespace Content.Client.Eye.Blinding;

Expand Down
1 change: 1 addition & 0 deletions Content.Client/Eye/Blinding/BlurryVisionSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Content.Shared.Eye.Blinding.Components;
using Robust.Client.Graphics;
using Robust.Client.Player;
using Robust.Shared.Player;

namespace Content.Client.Eye.Blinding;

Expand Down
1 change: 1 addition & 0 deletions Content.Client/Eye/EyeLerpingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Robust.Client.GameObjects;
using Robust.Client.Physics;
using Robust.Client.Player;
using Robust.Shared.Player;
using Robust.Shared.Timing;

namespace Content.Client.Eye;
Expand Down
57 changes: 15 additions & 42 deletions Content.Client/Ghost/GhostSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Robust.Client.GameObjects;
using Robust.Client.Graphics;
using Robust.Client.Player;
using Robust.Shared.Player;

namespace Content.Client.Ghost
{
Expand All @@ -13,8 +14,8 @@ public sealed class GhostSystem : SharedGhostSystem
[Dependency] private readonly IClientConsoleHost _console = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
[Dependency] private readonly SharedActionsSystem _actions = default!;
[Dependency] private readonly ILightManager _lightManager = default!;
[Dependency] private readonly ContentEyeSystem _contentEye = default!;
[Dependency] private readonly EyeSystem _eye = default!;

public int AvailableGhostRoleCount { get; private set; }

Expand All @@ -35,7 +36,7 @@ private bool GhostVisibility
var query = AllEntityQuery<GhostComponent, SpriteComponent>();
while (query.MoveNext(out var uid, out _, out var sprite))
{
sprite.Visible = value || uid == _playerManager.LocalPlayer?.ControlledEntity;
sprite.Visible = value || uid == _playerManager.LocalEntity;
}
}
}
Expand All @@ -61,39 +62,37 @@ public override void Initialize()
SubscribeLocalEvent<GhostComponent, LocalPlayerAttachedEvent>(OnGhostPlayerAttach);
SubscribeLocalEvent<GhostComponent, LocalPlayerDetachedEvent>(OnGhostPlayerDetach);

SubscribeLocalEvent<LocalPlayerAttachedEvent>(OnPlayerAttach);

SubscribeNetworkEvent<GhostWarpsResponseEvent>(OnGhostWarpsResponse);
SubscribeNetworkEvent<GhostUpdateGhostRoleCountEvent>(OnUpdateGhostRoleCount);

SubscribeLocalEvent<GhostComponent, ToggleLightingActionEvent>(OnToggleLighting);
SubscribeLocalEvent<GhostComponent, ToggleFoVActionEvent>(OnToggleFoV);
SubscribeLocalEvent<EyeComponent, ToggleLightingActionEvent>(OnToggleLighting);
SubscribeLocalEvent<EyeComponent, ToggleFoVActionEvent>(OnToggleFoV);
SubscribeLocalEvent<GhostComponent, ToggleGhostsActionEvent>(OnToggleGhosts);
}

private void OnStartup(EntityUid uid, GhostComponent component, ComponentStartup args)
{
if (TryComp(uid, out SpriteComponent? sprite))
sprite.Visible = GhostVisibility;
sprite.Visible = GhostVisibility || uid == _playerManager.LocalEntity;
}

private void OnToggleLighting(EntityUid uid, GhostComponent component, ToggleLightingActionEvent args)
private void OnToggleLighting(EntityUid uid, EyeComponent component, ToggleLightingActionEvent args)
{
if (args.Handled)
return;

Popup.PopupEntity(Loc.GetString("ghost-gui-toggle-lighting-manager-popup"), args.Performer);
_lightManager.Enabled = !_lightManager.Enabled;
_contentEye.RequestToggleLight(uid, component);
args.Handled = true;
}

private void OnToggleFoV(EntityUid uid, GhostComponent component, ToggleFoVActionEvent args)
private void OnToggleFoV(EntityUid uid, EyeComponent component, ToggleFoVActionEvent args)
{
if (args.Handled)
return;

Popup.PopupEntity(Loc.GetString("ghost-gui-toggle-fov-popup"), args.Performer);
_contentEye.RequestToggleFov(uid);
_contentEye.RequestToggleFov(uid, component);
args.Handled = true;
}

Expand All @@ -104,7 +103,7 @@ private void OnToggleGhosts(EntityUid uid, GhostComponent component, ToggleGhost

Popup.PopupEntity(Loc.GetString("ghost-gui-toggle-ghost-visibility-popup"), args.Performer);

if (uid == _playerManager.LocalPlayer?.ControlledEntity)
if (uid == _playerManager.LocalEntity)
ToggleGhostVisibility();

args.Handled = true;
Expand All @@ -117,26 +116,16 @@ private void OnGhostRemove(EntityUid uid, GhostComponent component, ComponentRem
_actions.RemoveAction(uid, component.ToggleGhostsActionEntity);
_actions.RemoveAction(uid, component.ToggleGhostHearingActionEntity);

if (uid != _playerManager.LocalPlayer?.ControlledEntity)
if (uid != _playerManager.LocalEntity)
return;

_lightManager.Enabled = true;

if (component.IsAttached)
{
GhostVisibility = false;
}

GhostVisibility = false;
PlayerRemoved?.Invoke(component);
}

private void OnGhostPlayerAttach(EntityUid uid, GhostComponent component, LocalPlayerAttachedEvent localPlayerAttachedEvent)
{
if (uid != _playerManager.LocalPlayer?.ControlledEntity)
return;

GhostVisibility = true;
component.IsAttached = true;
PlayerAttached?.Invoke(component);
}

Expand All @@ -145,32 +134,16 @@ private void OnGhostState(EntityUid uid, GhostComponent component, ref AfterAuto
if (TryComp<SpriteComponent>(uid, out var sprite))
sprite.LayerSetColor(0, component.color);

if (uid != _playerManager.LocalPlayer?.ControlledEntity)
if (uid != _playerManager.LocalEntity)
return;

PlayerUpdated?.Invoke(component);
}

private bool PlayerDetach(EntityUid uid)
private void OnGhostPlayerDetach(EntityUid uid, GhostComponent component, LocalPlayerDetachedEvent args)
{
if (uid != _playerManager.LocalPlayer?.ControlledEntity)
return false;

GhostVisibility = false;
PlayerDetached?.Invoke();
return true;
}

private void OnGhostPlayerDetach(EntityUid uid, GhostComponent component, LocalPlayerDetachedEvent args)
{
if (PlayerDetach(uid))
component.IsAttached = false;
}

private void OnPlayerAttach(LocalPlayerAttachedEvent ev)
{
if (!HasComp<GhostComponent>(ev.Entity))
PlayerDetach(ev.Entity);
}

private void OnGhostWarpsResponse(GhostWarpsResponseEvent msg)
Expand Down
1 change: 1 addition & 0 deletions Content.Client/Hands/Systems/HandsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Robust.Client.UserInterface;
using Robust.Shared.Containers;
using Robust.Shared.GameStates;
using Robust.Shared.Player;
using Robust.Shared.Timing;

namespace Content.Client.Hands.Systems
Expand Down
5 changes: 0 additions & 5 deletions Content.Client/Input/ContentContexts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ public static void SetupContexts(IInputContextContainer contexts)
common.AddFunction(boundKey);
}

foreach (var boundKey in ContentKeyFunctions.GetLoadoutBoundKeys())
{
common.AddFunction(boundKey);
}

var aghost = contexts.New("aghost", "common");
aghost.AddFunction(EngineKeyFunctions.MoveUp);
aghost.AddFunction(EngineKeyFunctions.MoveDown);
Expand Down
1 change: 1 addition & 0 deletions Content.Client/Inventory/ClientInventorySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Robust.Client.UserInterface;
using Robust.Shared.Containers;
using Robust.Shared.Input.Binding;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;

namespace Content.Client.Inventory
Expand Down
16 changes: 10 additions & 6 deletions Content.Client/Movement/Systems/ContentEyeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ public void RequestToggleFov()
public void RequestToggleFov(EntityUid uid, EyeComponent? eye = null)
{
if (Resolve(uid, ref eye, false))
RequestFov(!eye.DrawFov);
RequestEye(!eye.DrawFov, eye.DrawLight);
}

public void RequestFov(bool value)
public void RequestToggleLight(EntityUid uid, EyeComponent? eye = null)
{
RaisePredictiveEvent(new RequestFovEvent()
{
Fov = value,
});
if (Resolve(uid, ref eye, false))
RequestEye(eye.DrawFov, !eye.DrawLight);
}


public void RequestEye(bool drawFov, bool drawLight)
{
RaisePredictiveEvent(new RequestEyeEvent(drawFov, drawLight));
}
}
1 change: 1 addition & 0 deletions Content.Client/Options/UI/Tabs/GraphicsTab.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
</BoxContainer>
<CheckBox Name="ShowHeldItemCheckBox" Text="{Loc 'ui-options-show-held-item'}" />
<CheckBox Name="ShowCombatModeIndicatorsCheckBox" Text="{Loc 'ui-options-show-combat-mode-indicators'}" />
<CheckBox Name="ShowLoocAboveHeadCheckBox" Text="{Loc 'ui-options-show-looc-on-head'}" />
<BoxContainer Orientation="Horizontal">
<CheckBox Name="ViewportStretchCheckBox" Text="{Loc 'ui-options-vp-stretch'}" />
<BoxContainer Name="ViewportScaleBox" Orientation="Horizontal">
Expand Down
5 changes: 5 additions & 0 deletions Content.Client/Options/UI/Tabs/GraphicsTab.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public GraphicsTab()

ShowHeldItemCheckBox.OnToggled += OnCheckBoxToggled;
ShowCombatModeIndicatorsCheckBox.OnToggled += OnCheckBoxToggled;
ShowLoocAboveHeadCheckBox.OnToggled += OnCheckBoxToggled;
IntegerScalingCheckBox.OnToggled += OnCheckBoxToggled;
ViewportLowResCheckBox.OnToggled += OnCheckBoxToggled;
ParallaxLowQualityCheckBox.OnToggled += OnCheckBoxToggled;
Expand All @@ -121,6 +122,7 @@ public GraphicsTab()
FpsCounterCheckBox.Pressed = _cfg.GetCVar(CCVars.HudFpsCounterVisible);
ShowHeldItemCheckBox.Pressed = _cfg.GetCVar(CCVars.HudHeldItemShow);
ShowCombatModeIndicatorsCheckBox.Pressed = _cfg.GetCVar(CCVars.CombatModeIndicatorsPointShow);
ShowLoocAboveHeadCheckBox.Pressed = _cfg.GetCVar(CCVars.LoocAboveHeadShow);
ViewportWidthSlider.Value = _cfg.GetCVar(CCVars.ViewportWidth);

_cfg.OnValueChanged(CCVars.ViewportMinimumWidth, _ => UpdateViewportWidthRange());
Expand Down Expand Up @@ -168,6 +170,7 @@ private void OnApplyButtonPressed(BaseButton.ButtonEventArgs args)
_cfg.SetCVar(CCVars.ParallaxLowQuality, ParallaxLowQualityCheckBox.Pressed);
_cfg.SetCVar(CCVars.HudHeldItemShow, ShowHeldItemCheckBox.Pressed);
_cfg.SetCVar(CCVars.CombatModeIndicatorsPointShow, ShowCombatModeIndicatorsCheckBox.Pressed);
_cfg.SetCVar(CCVars.LoocAboveHeadShow, ShowLoocAboveHeadCheckBox.Pressed);
_cfg.SetCVar(CCVars.HudFpsCounterVisible, FpsCounterCheckBox.Pressed);
_cfg.SetCVar(CCVars.ViewportWidth, (int) ViewportWidthSlider.Value);

Expand Down Expand Up @@ -205,6 +208,7 @@ private void UpdateApplyButton()
var isPLQSame = ParallaxLowQualityCheckBox.Pressed == _cfg.GetCVar(CCVars.ParallaxLowQuality);
var isShowHeldItemSame = ShowHeldItemCheckBox.Pressed == _cfg.GetCVar(CCVars.HudHeldItemShow);
var isCombatModeIndicatorsSame = ShowCombatModeIndicatorsCheckBox.Pressed == _cfg.GetCVar(CCVars.CombatModeIndicatorsPointShow);
var isLoocShowSame = ShowLoocAboveHeadCheckBox.Pressed == _cfg.GetCVar(CCVars.LoocAboveHeadShow);
var isFpsCounterVisibleSame = FpsCounterCheckBox.Pressed == _cfg.GetCVar(CCVars.HudFpsCounterVisible);
var isWidthSame = (int) ViewportWidthSlider.Value == _cfg.GetCVar(CCVars.ViewportWidth);
var isLayoutSame = HudLayoutOption.SelectedMetadata is string opt && opt == _cfg.GetCVar(CCVars.UILayout);
Expand All @@ -221,6 +225,7 @@ private void UpdateApplyButton()
isHudThemeSame &&
isShowHeldItemSame &&
isCombatModeIndicatorsSame &&
isLoocShowSame &&
isFpsCounterVisibleSame &&
isWidthSame &&
isLayoutSame;
Expand Down
Loading
Loading