Skip to content

Commit

Permalink
Switch to RSI loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Partmedia committed Mar 13, 2024
1 parent 4da9468 commit 78122b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Content.Client/CombatMode/CombatModeIndicatorsOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ public CombatModeIndicatorsOverlay(IInputManager input, IEntityManager entMan,
_combat = combatSys;
_hands = hands;

_gunSight = StaticIoC.ResC.GetTexture("/Textures/Interface/Misc/crosshair_pointers.rsi/gun_sight.png");
_meleeSight = StaticIoC.ResC.GetTexture("/Textures/Interface/Misc/crosshair_pointers.rsi/melee_sight.png");
var spriteSys = _entMan.EntitySysManager.GetEntitySystem<SpriteSystem>();
_gunSight = spriteSys.Frame0(new SpriteSpecifier.Rsi(
new ResourcePath("/Textures/Interface/Misc/crosshair_pointers.rsi"), "gun_sight"));
_meleeSight = spriteSys.Frame0(new SpriteSpecifier.Rsi(
new ResourcePath("/Textures/Interface/Misc/crosshair_pointers.rsi"), "melee_sight"));
}

protected override bool BeforeDraw(in OverlayDrawArgs args)
Expand Down

0 comments on commit 78122b8

Please sign in to comment.