tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.GameContent.Creative.CreativePowersHelper Class Reference

Classes

class  CreativePowerIconLocations
 

Static Public Member Functions

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

Static Public Attributes

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