terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
LayoutCalculator Class Reference
+ Collaboration diagram for LayoutCalculator:

Public Types

enum  AnchorFlags {
  Left = 1 , CentreHorizontal , Right = 4 , Top = 8 ,
  CentreVertical = 16 , Bottom = 32
}
 
enum  AnchorType {
  TopLeft = 9 , TopCentre , TopRight = 12 , CentreLeft = 17 ,
  CentreBoth , CentreRight = 20 , BottomLeft = 33 , BottomCentre ,
  BottomRight = 36
}
 

Static Public Member Functions

static void LoadContent (ContentManager content)
 
static void DrawCentredPickingRegion (SpriteBatch batch, ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, Vector2 size)
 
static void DrawCentredPickingRegion (SpriteBatch batch, Vector2 position, Vector2 size)
 
static void DrawCentredCirclePickingRegion (SpriteBatch batch, ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, Vector2 size)
 
static void DrawCentredCirclePickingRegion (SpriteBatch batch, Vector2 position, Vector2 size)
 
static void DrawPickingRegion (SpriteBatch batch, ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, Vector2 size)
 
static void DrawPickPoint (SpriteBatch batch, Vector2 position)
 
static void DrawPickingRegion (SpriteBatch batch, Vector2 position, Vector2 size)
 
static void DrawSafeRegion (SpriteBatch batch, Vector2 position, Vector2 size, Color color)
 
static void Draw (SpriteBatch batch, Vector2 position, float rotation, float scale, Texture2D texture, Color? color=null)
 
static void Draw (SpriteBatch batch, Vector2 position, float scale, Texture2D texture, Color? color=null)
 
static void DrawCentred (SpriteBatch batch, Vector2 position, float scale, Texture2D texture, Color? color=null)
 
static void DrawCentred (SpriteBatch batch, ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, float scale, Texture2D texture, Color? color=null)
 
static void DrawCentred (SpriteBatch batch, ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, Rectangle srcRect, float scale, Texture2D texture, Color? color=null)
 
static void DrawCentred (SpriteBatch batch, Vector2 position, Rectangle srcRect, float scale, Texture2D texture, Color? color=null)
 
static void Draw (SpriteBatch batch, ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, float scale, Texture2D texture, Color? color=null)
 
static void Draw (SpriteBatch batch, ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, Vector2 size, Texture2D texture, Color? color=null)
 
static bool IsOverIcon (Vector2 position, ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 anchorPosition, Texture2D texture, float textureScale, Vector2 pickingBorder)
 
static Vector2 GetChatManagerAlignmentOffset (SpriteFont font, TextSnippet[] text, float scale, LayoutCalculator.AnchorType stringAlignment, float maxWidth=-1f)
 
static Vector2 GetAlignmentOffset (SpriteFont font, string text, float scale, LayoutCalculator.AnchorType stringAlignment)
 
static Vector2 GetChatManagerAlignmentOffset (SpriteFont font, string text, float scale, LayoutCalculator.AnchorType stringAlignment)
 
static Vector2 GetAlignmentOffset (SpriteFont font, StringBuilder text, float scale, LayoutCalculator.AnchorType stringAlignment)
 
static Vector2 GetAlignmentOffset (SpriteFont font, string text, float scale, LayoutCalculator.AnchorType stringAlignment, out Vector2 stringDimensions)
 
static Vector2 GetAlignmentOffset (SpriteFont font, StringBuilder text, float scale, LayoutCalculator.AnchorType stringAlignment, out Vector2 stringDimensions)
 
static Vector2 GetAnchoredStringPosition (ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, SpriteFont font, string text, float scale, LayoutCalculator.AnchorType stringAlignment)
 
static Vector2 GetAnchoredStringPosition (ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, SpriteFont font, TextSnippet[] text, float scale, LayoutCalculator.AnchorType stringAlignment, float maxWidth=-1f)
 
static Vector2 GetAnchoredChatManagerStringPosition (ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, SpriteFont font, string text, float scale, LayoutCalculator.AnchorType stringAlignment)
 
static Vector2 GetAnchoredStringPosition (ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, SpriteFont font, StringBuilder text, float scale, LayoutCalculator.AnchorType stringAlignment)
 
static Vector2 GetAnchoredStringButtonPosition (ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, SpriteFont font, string text, float scale, LayoutCalculator.AnchorType stringAlignment, out bool over, out Vector2 dimensions)
 
static Vector2 GetAnchoredStringButtonPosition (ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, SpriteFont font, StringBuilder text, float scale, LayoutCalculator.AnchorType stringAlignment, out bool over, out Vector2 dimensions)
 
static Vector2 GetAnchoredPosition (ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position)
 
static Rectangle GetLayoutRect (ControlAnchor.ControlId anchorControl, LayoutCalculator.AnchorType anchorType, Vector2 position, Vector2 size, Texture2D texture)
 

Static Public Attributes

static bool DrawSafeRegions
 
static bool DrawPickingRegions
 

Static Private Member Functions

static LayoutCalculator ()
 

Static Private Attributes

static Texture2D _pickingRegion
 
static Texture2D _pickingRegionCircle
 
static Color _pickingRegionColour
 

Detailed Description

Definition at line 16 of file LayoutCalculator.cs.


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