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

Public Member Functions

 DifficultySliderPower ()
 
override void Reset ()
 
override UIElement ProvideSlider ()
 
override bool GetIsUnlocked ()
 
void Save (BinaryWriter writer)
 
void Load (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void ValidateWorld (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void DeserializeNetMessage (BinaryReader reader, int userId)
 
void ProvidePowerButtons (CreativePowerUIElementRequestInfo info, List< UIElement > elements)
 
void DebugCall ()
 
GroupOptionButton< int > GetOptionButton (CreativePowerUIElementRequestInfo info, int optionIndex, int currentOptionIndex)
 
void OnPlayerJoining (int playerIndex)
 

Package Functions

override void UpdateInfoFromSliderValueCache ()
 
float GetSliderValue ()
 
virtual float GetSliderValueInner ()
 
void SetValueKeyboard (float value)
 
void SetValueKeyboardForced (float value)
 
void SetValueGamepad ()
 

Package Attributes

Point _iconLocation
 
float _sliderCurrentValueCache
 
string _powerNameKey
 
bool _syncToJoiningPlayers = true
 
float _currentTargetValue
 

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 Click_Master (UIMouseEvent evt, UIElement listeningElement)
 
void Click_Expert (UIMouseEvent evt, UIElement listeningElement)
 
void Click_Normal (UIMouseEvent evt, UIElement listeningElement)
 
void Click_Journey (UIMouseEvent evt, UIElement listeningElement)
 
void MouseOver_Journey (UIElement affectedElement)
 
void MouseOver_Normal (UIElement affectedElement)
 
void MouseOver_Expert (UIElement affectedElement)
 
void MouseOver_Master (UIElement affectedElement)
 
void UpdateSliderColorAndShowMultiplierMouseOver (UIElement affectedElement)
 
void categoryButton_OnUpdate (UIElement affectedElement)
 
void AttemptPushingChange ()
 

Static Private Member Functions

static void AddIndication (UIPanel panel, float yAnchor, string indicationText, string iconImagePath, UIElement.ElementEvent updateEvent, UIElement.MouseEvent clickEvent)
 
static void Button_OnMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
static void Button_OnMouseOut (UIMouseEvent evt, UIElement listeningElement)
 

Private Attributes

bool _needsToCommitChange
 
DateTime _nextTimeWeCanPush = DateTime.UtcNow
 

Detailed Description

Definition at line 996 of file CreativePowers.cs.


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