Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameContent.Creative.CreativePowers.SpawnRateSliderPerPlayerPower Class Reference

Public Member Functions

 SpawnRateSliderPerPlayerPower ()
 
bool GetShouldDisableSpawnsFor (int playerIndex)
 
override float RemapSliderValueToPowerValue (float sliderValue)
 
override UIElement ProvideSlider ()
 
override bool GetIsUnlocked ()
 
void Save (Player player, BinaryWriter writer)
 
void ResetDataForNewPlayer (Player player)
 
void Load (Player player, BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void ApplyLoadedDataToOutOfPlayerFields (Player player)
 
bool GetRemappedSliderValueFor (int playerIndex, out float value)
 
void DeserializeNetMessage (BinaryReader reader, int userId)
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
void DebugCall ()
 
void PushChangeAndSetSlider (float value)
 
GroupOptionButton< int > GetOptionButton (CreativePowerUIElementRequestInfo info, int optionIndex, int currentOptionIndex)
 
virtual void Reset ()
 
virtual void ResetForPlayer (int playerIndex)
 
void OnPlayerJoining (int playerIndex)
 
void Reset ()
 

Package Functions

override void UpdateInfoFromSliderValueCache ()
 
float GetSliderValue ()
 
void SetValueKeyboard (float value)
 
void SetValueGamepad ()
 
void PushChange (float newSliderValue)
 

Package Attributes

Point _iconLocation
 
float _sliderCurrentValueCache
 
string _powerNameKey
 
float[] _cachePerPlayer = new float[256]
 
float _sliderDefaultValue
 

Properties

float StrengthMultiplierToGiveNPCs [get, private set]
 
ushort PowerId [get, set]
 
string ServerConfigName [get, set]
 
PowerPermissionLevel CurrentPermissionLevel [get, set]
 
PowerPermissionLevel DefaultPermissionLevel [get, set]
 

Private Member Functions

void Button_OnMouseOut (UIMouseEvent evt, UIElement listeningElement)
 
void Button_OnMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void topText_OnClick (UIMouseEvent evt, UIElement listeningElement)
 
void middleText_OnClick (UIMouseEvent evt, UIElement listeningElement)
 
void bottomText_OnClick (UIMouseEvent evt, UIElement listeningElement)
 
void UpdateSliderAndShowMultiplierMouseOver (UIElement affectedElement)
 
void categoryButton_OnUpdate (UIElement affectedElement)
 
void AttemptPushingChange ()
 

Private Attributes

float _currentTargetValue
 
bool _needsToCommitChange
 
DateTime _nextTimeWeCanPush = DateTime.UtcNow
 

Detailed Description

Definition at line 1553 of file CreativePowers.cs.


The documentation for this class was generated from the following file: