Залью спеллы потестить, мне похуй ПР НОМЕР 156
* refactor CheZaHuetaMagicSystem * эщкере * alt-spells system. lmb, rmb, alt-click * fix * ChargeSpellsIndicator + Visual(CheZaHueta) * Custom charge effect for spell * Custom MaxChargeLevel * Finally. Alt spells seems to work!! Need to start do spells and gamerule * fuckkk * fix crash, actually burn scroll.. * some fixes blyat * ArcSpell * очередная CheZaHuetaSystem, ForceSpell * ONI'SOMA! * mraow * prepare this LMAO * Yebanyy rot etogo kazino blyat! - CardsSpell * forcewall * nig * blink * Ethereal Jaunt * игра говно * Блядина * ну на еще спеллов * blyadina * да иди ты нахуй БЛЯДЬ * кто прочитал, тот сдохнет. сделай 5 репостов чтобы выжить.... * icons * та ваще поебать * одежда
This commit is contained in:
@@ -2,6 +2,7 @@ using System.Numerics;
|
||||
using System.Threading;
|
||||
using Content.Client.CombatMode;
|
||||
using Content.Client.Gameplay;
|
||||
using Content.Client.UserInterface.Systems.Actions;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controllers;
|
||||
using Timer = Robust.Shared.Timing.Timer;
|
||||
@@ -16,7 +17,7 @@ namespace Content.Client.ContextMenu.UI
|
||||
/// <remarks>
|
||||
/// This largely involves setting up timers to open and close sub-menus when hovering over other menu elements.
|
||||
/// </remarks>
|
||||
public sealed class ContextMenuUIController : UIController, IOnStateEntered<GameplayState>, IOnStateExited<GameplayState>, IOnSystemChanged<CombatModeSystem>
|
||||
public sealed class ContextMenuUIController : UIController, IOnStateEntered<GameplayState>, IOnStateExited<GameplayState>, IOnSystemChanged<CombatModeSystem>, IOnSystemChanged<ChargeActionSystem>
|
||||
{
|
||||
public static readonly TimeSpan HoverDelay = TimeSpan.FromSeconds(0.2);
|
||||
|
||||
@@ -216,6 +217,12 @@ namespace Content.Client.ContextMenu.UI
|
||||
Close();
|
||||
}
|
||||
|
||||
private void OnChargingUpdated(bool charging)
|
||||
{
|
||||
if (charging)
|
||||
Close();
|
||||
}
|
||||
|
||||
public void OnSystemLoaded(CombatModeSystem system)
|
||||
{
|
||||
system.LocalPlayerCombatModeUpdated += OnCombatModeUpdated;
|
||||
@@ -225,5 +232,15 @@ namespace Content.Client.ContextMenu.UI
|
||||
{
|
||||
system.LocalPlayerCombatModeUpdated -= OnCombatModeUpdated;
|
||||
}
|
||||
|
||||
public void OnSystemLoaded(ChargeActionSystem system)
|
||||
{
|
||||
system.ChargingUpdated += OnChargingUpdated;
|
||||
}
|
||||
|
||||
public void OnSystemUnloaded(ChargeActionSystem system)
|
||||
{
|
||||
system.ChargingUpdated -= OnChargingUpdated;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user