tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower Class Referenceabstract

Inherits Terraria.GameContent.Creative.ICreativePower, Terraria.GameContent.IOnPlayerJoining, Terraria.GameContent.Creative.IProvideSliderElement, and Terraria.GameContent.Creative.IPowerSubcategoryElement.

Inherited by Terraria.GameContent.Creative.CreativePowers.SpawnRateSliderPerPlayerPower.

Public Member Functions

void DebugCall ()
 
void DeserializeNetMessage (BinaryReader reader, int userId)
 
abstract bool GetIsUnlocked ()
 
GroupOptionButton< int > GetOptionButton (CreativePowerUIElementRequestInfo info, int optionIndex, int currentOptionIndex)
 
bool GetRemappedSliderValueFor (int playerIndex, out float value)
 
void OnPlayerJoining (int playerIndex)
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
abstract UIElement ProvideSlider ()
 
void PushChangeAndSetSlider (float value)
 
abstract float RemapSliderValueToPowerValue (float sliderValue)
 
virtual void Reset ()
 
virtual void ResetForPlayer (int playerIndex)
 
void DeserializeNetMessage (BinaryReader reader, int userId)
 
bool GetIsUnlocked ()
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
void OnPlayerJoining (int playerIndex)
 
UIElement ProvideSlider ()
 
GroupOptionButton< int > GetOptionButton (CreativePowerUIElementRequestInfo info, int optionIndex, int currentOptionIndex)
 

Properties

PowerPermissionLevel CurrentPermissionLevel [get, set]
 
PowerPermissionLevel DefaultPermissionLevel [get, set]
 
ushort PowerId [get, set]
 
string ServerConfigName [get, set]
 
- Properties inherited from Terraria.GameContent.Creative.ICreativePower
PowerPermissionLevel CurrentPermissionLevel [get, set]
 
PowerPermissionLevel DefaultPermissionLevel [get, set]
 
ushort PowerId [get, set]
 
string ServerConfigName [get, set]
 

Member Function Documentation

◆ DeserializeNetMessage()

void Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.DeserializeNetMessage ( BinaryReader  reader,
int  userId 
)

◆ GetIsUnlocked()

abstract bool Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.GetIsUnlocked ( )
pure virtual

◆ GetOptionButton()

GroupOptionButton< int > Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.GetOptionButton ( CreativePowerUIElementRequestInfo  info,
int  optionIndex,
int  currentOptionIndex 
)

◆ OnPlayerJoining()

void Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.OnPlayerJoining ( int  playerIndex)

◆ ProvidePowerButtons()

void Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.ProvidePowerButtons ( CreativePowerUIElementRequestInfo  info,
List< UIElement elements 
)

◆ ProvideSlider()

abstract UIElement Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.ProvideSlider ( )
pure virtual

Property Documentation

◆ CurrentPermissionLevel

PowerPermissionLevel Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.CurrentPermissionLevel
getset

◆ DefaultPermissionLevel

PowerPermissionLevel Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.DefaultPermissionLevel
getset

◆ PowerId

ushort Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.PowerId
getset

◆ ServerConfigName

string Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.ServerConfigName
getset