Table of Contents

Class PointsUI

Namespace
Uncreated.Warfare.Stats
Assembly
Uncreated.Warfare.dll
[UnturnedUI(BasePath = "Container/Box")]
public class PointsUI : UnturnedUI, IDisposable, IEventListener<PlayerUseableEquipped>, IEventListener<VehicleSwappedSeat>, IEventListener<EnterVehicle>, IEventListener<ExitVehicle>, ILayoutHostedService, IHudUIListener
Inheritance
UnturnedUI
PointsUI
Implements
Inherited Members
UnturnedUI.Logger
UnturnedUI.LoggerFactory
UnturnedUI.GetLogger()
UnturnedUI.LoadFromConfig(IAssetContainer)
UnturnedUI.LoadFromConfig(EffectAsset)
UnturnedUI.AddData(IUnturnedUIData)
UnturnedUI.GetData<TData>(CSteamID)
UnturnedUI.EnumerateData()
UnturnedUI.LateRegisterElement(UnturnedUIElement)
UnturnedUI.SendToPlayer(SteamPlayer)
UnturnedUI.SendToPlayer(Player)
UnturnedUI.SendToPlayer(ITransportConnection)
UnturnedUI.ClearFromPlayer(SteamPlayer)
UnturnedUI.ClearFromPlayer(Player)
UnturnedUI.ClearFromPlayer(ITransportConnection)
UnturnedUI.SendToAllPlayers()
UnturnedUI.ClearFromAllPlayers()
UnturnedUI.Dispose()
UnturnedUI.HasAssetOrId
UnturnedUI.HasAsset
UnturnedUI.Id
UnturnedUI.Guid
UnturnedUI.Asset
UnturnedUI.IsReliable
UnturnedUI.IsSendReliable
UnturnedUI.HasElements
UnturnedUI.DebugLogging
UnturnedUI.Elements
UnturnedUI.HasDefaultName
UnturnedUI.Name
UnturnedUI.Key

Constructors

PointsUI(PointsConfiguration, AssetConfiguration, ILoggerFactory, ILoopTickerFactory, IPlayerService, WarfareModule)

public PointsUI(PointsConfiguration config, AssetConfiguration assetConfig, ILoggerFactory loggerFactory, ILoopTickerFactory loopTickerFactory, IPlayerService playerService, WarfareModule module)

Parameters

config PointsConfiguration
assetConfig AssetConfiguration
loggerFactory ILoggerFactory
loopTickerFactory ILoopTickerFactory
playerService IPlayerService
module WarfareModule

Methods

ChooseNewCycledStat()

public void ChooseNewCycledStat()

Hide(WarfarePlayer?)

public void Hide(WarfarePlayer? player)

Parameters

player WarfarePlayer

IsStatRelevant(LeaderboardPhaseStatInfo)

public bool IsStatRelevant(LeaderboardPhaseStatInfo stat)

Parameters

stat LeaderboardPhaseStatInfo

Returns

bool

OnDisposing()

This function is invoked after Uncreated.Framework.UI.UnturnedUI.Dispose() is called before elements get cleaned up.

protected override void OnDisposing()

Remarks

This will always be invoked on the game thread. The base method has no implementation and doesn't need to be invoked.

Restore(WarfarePlayer?)

public void Restore(WarfarePlayer? player)

Parameters

player WarfarePlayer

UpdatePointsUI(WarfarePlayer)

Updates all elements on the points UI if they need to be updated.

public void UpdatePointsUI(WarfarePlayer player)

Parameters

player WarfarePlayer

Remarks

The UI will be cleared if the player is not on a team.