Status Effect Tooltip & Notify on click (#1943)
* -Show tooltip on hover -Show notify on click * -Status Effects now get removed instead of going invisible -Removed empty textures for that * Revert break in HungerComponent
This commit is contained in:
@@ -113,10 +113,14 @@ namespace Content.Server.GameObjects.Components.Buckle
|
||||
{
|
||||
if (Owner.TryGetComponent(out ServerStatusEffectsComponent? status))
|
||||
{
|
||||
status.ChangeStatusEffectIcon(StatusEffect.Buckled,
|
||||
Buckled
|
||||
? BuckledTo!.BuckledIcon
|
||||
: "/Textures/Interface/StatusEffects/Buckle/unbuckled.png");
|
||||
if (Buckled)
|
||||
{
|
||||
status.ChangeStatusEffectIcon(StatusEffect.Buckled, BuckledTo!.BuckledIcon);
|
||||
}
|
||||
else
|
||||
{
|
||||
status.RemoveStatusEffect(StatusEffect.Buckled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user