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

Classes

class  CreativePowerIconLocations
 

Static Public Member Functions

static UIImageFramed GetIconImage (Point iconLocation)
 
static GroupOptionButton< boolCreateToggleButton (CreativePowerUIElementRequestInfo info)
 
static GroupOptionButton< boolCreateSimpleButton (CreativePowerUIElementRequestInfo info)
 
static GroupOptionButton< T > CreateCategoryButton< T > (CreativePowerUIElementRequestInfo info, T option, T currentOption)
 
static void AddPermissionTextIfNeeded (ICreativePower power, ref string originalText)
 
static void AddDescriptionIfNeeded (ref string originalText, string descriptionKey)
 
static void AddUnlockTextIfNeeded (ref string originalText, bool needed, string descriptionKey)
 
static UIVerticalSlider CreateSlider (Func< float > GetSliderValueMethod, Action< float > SetValueKeyboardMethod, Action SetValueGamepadMethod)
 
static void UpdateUseMouseInterface (UIElement affectedElement)
 
static void UpdateUnlockStateByPower (ICreativePower power, UIElement button, Color colorWhenSelected)
 
static bool IsAvailableForPlayer (ICreativePower power, int playerIndex)
 

Static Public Attributes

const int TextureIconColumns = 21
 
const int TextureIconRows = 1
 
static Color CommonSelectedColor = new Color(152, 175, 235)
 

Static Private Member Functions

static Asset< Texture2DGetPowerIconAsset (string path)
 
static void UpdateUnlockStateByPowerInternal (ICreativePower power, Color colorWhenSelected, IGroupOptionButton asButton)
 

Detailed Description

Definition at line 12 of file CreativePowersHelper.cs.


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