Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
KSP.UI.U5Util Class Reference

Static Public Member Functions

static string ColorToHex (Color32 color)
 
static float GetSimulatedScrollMultiplier (ScrollRect scrollRect, bool vertical)
 While simulating scrolling in a ScrollRect with buttons this method returns a smooth multiplier which grows the longer the ScrollRect.content is compared to the ScrollRect itself More...
 
static Color HexToColor (string hex)
 
static void SetLayerRecursive (GameObject obj, int layer)
 

Member Function Documentation

static string KSP.UI.U5Util.ColorToHex ( Color32  color)
inlinestatic
static float KSP.UI.U5Util.GetSimulatedScrollMultiplier ( ScrollRect  scrollRect,
bool  vertical 
)
inlinestatic

While simulating scrolling in a ScrollRect with buttons this method returns a smooth multiplier which grows the longer the ScrollRect.content is compared to the ScrollRect itself

Parameters
scrollRectThe ScrollRect to simulate scrolling on.
verticalIs the ScrollRect scrolling vertically, if not horizontal is assumed.
Returns
static Color KSP.UI.U5Util.HexToColor ( string  hex)
inlinestatic
static void KSP.UI.U5Util.SetLayerRecursive ( GameObject  obj,
int  layer 
)
inlinestatic

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