Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
GameplaySettingsScreen Class Reference

This is the settings page for gameplay settings. For the main settings database, see GameSettings.cs More...

Inheritance diagram for GameplaySettingsScreen:
DialogGUIVerticalLayout ISettings DialogGUILayoutBase DialogGUIBase

Public Member Functions

void ApplySettings ()
 
void ApplyUIScalingAndAdjustments ()
 
DialogGUIBase[] DrawMiniSettings ()
 
void DrawSettings ()
 Settings are NOT drawn here. See setup prefabs in _UI5/Settings/Prefabs... More...
 
string GetName ()
 
void GetSettings ()
 
new void OnUpdate ()
 
void ResetUIAdjustments ()
 Resets the UI adjustments values. More...
 
void ResetUIScaling ()
 Resets the UI scaling variables to 100%. More...
 
- Public Member Functions inherited from DialogGUIVerticalLayout
 DialogGUIVerticalLayout (params DialogGUIBase[] list)
 
 DialogGUIVerticalLayout (float minWidth, float minHeight, params DialogGUIBase[] list)
 
 DialogGUIVerticalLayout (bool sw=false, bool sh=false)
 
 DialogGUIVerticalLayout (bool sw, bool sh, float sp, RectOffset pad, TextAnchor achr, params DialogGUIBase[] list)
 
 DialogGUIVerticalLayout (float minWidth, float minHeight, float sp, RectOffset pad, TextAnchor achr, params DialogGUIBase[] list)
 
override void Update ()
 
- Public Member Functions inherited from DialogGUILayoutBase
override GameObject Create (ref Stack< Transform > layouts, UISkinDef skin)
 
 DialogGUILayoutBase (params DialogGUIBase[] list)
 
- Public Member Functions inherited from DialogGUIBase
void AddChild (DialogGUIBase child)
 
void AddChildren (DialogGUIBase[] c)
 
 DialogGUIBase (params DialogGUIBase[] list)
 
virtual void Resize ()
 
void SetOptionText (string text)
 

Public Attributes

int[] VesselBudgetOptions
 general gameplay More...
 
- Public Attributes inherited from DialogGUILayoutBase
TextAnchor anchor = TextAnchor.UpperLeft
 
float minHeight = 0f
 
float minWidth = 0f
 
RectOffset padding = new RectOffset()
 
float spacing = 4.0f
 
bool stretchHeight = false
 
bool stretchWidth = false
 
bool useParent = false
 
- Public Attributes inherited from DialogGUIBase
List< DialogGUIBasechildren = new List<DialogGUIBase>()
 
bool flexibleHeight = true
 
UIStyle guiStyle = null
 
float height = -1.0f
 
Callback OnFixedUpdate = () => { }
 
Callback OnLateUpdate = () => { }
 
Callback OnRenderObject = () => { }
 
Callback OnResize = () => { }
 
Callback OnUpdate = () => { }
 
Func< bool > OptionEnabledCondition = () => { return true; }
 
Func< bool > OptionInteractableCondition = () => { return true; }
 
string OptionText = "No Function"
 
Vector2 position
 
Vector2 size = new Vector2(-1f, -1f)
 
Color tint
 
string tooltipText
 
GameObject uiItem = null
 
bool useColor = false
 
float width = -1.0f
 

Additional Inherited Members

- Static Public Member Functions inherited from DialogGUIBase
static bool SelectFirstItem (DialogGUIBase[] items)
 
static void SetUpTextObject (TMPro.TextMeshProUGUI text, string value, UIStyle style, UISkinDef skin, bool ignoreStyleColor=false)
 
- Protected Member Functions inherited from DialogGUIBase
virtual TMPro.TextMeshProUGUI GetTextObject ()
 
void SetupTransformAndLayout ()
 
- Protected Attributes inherited from DialogGUIBase
bool dirty = true
 
bool lastEnabledState = false
 
bool lastInteractibleState = true
 
- Properties inherited from DialogGUIBase
bool Dirty [get, set]
 

Detailed Description

This is the settings page for gameplay settings. For the main settings database, see GameSettings.cs

Member Function Documentation

void GameplaySettingsScreen.ApplySettings ( )
inline

< actually apply this setting, so it doesn't require a restart to take effect

Implements ISettings.

void GameplaySettingsScreen.ApplyUIScalingAndAdjustments ( )
inline
DialogGUIBase [] GameplaySettingsScreen.DrawMiniSettings ( )
inline

< The line above needs to stay directly below the main uiSCale slider //#autoLOC_146522 = <color=#FDD901FF>Warning: Restarting KSP is required to apply all the effects of the above UI Scale setting.</color>

Implements ISettings.

void GameplaySettingsScreen.DrawSettings ( )
inline

Settings are NOT drawn here. See setup prefabs in _UI5/Settings/Prefabs...

Implements ISettings.

string GameplaySettingsScreen.GetName ( )
inline

Implements ISettings.

void GameplaySettingsScreen.GetSettings ( )
inline

Implements ISettings.

new void GameplaySettingsScreen.OnUpdate ( )
inline

Implements ISettings.

void GameplaySettingsScreen.ResetUIAdjustments ( )
inline

Resets the UI adjustments values.

void GameplaySettingsScreen.ResetUIScaling ( )
inline

Resets the UI scaling variables to 100%.

Member Data Documentation

int [] GameplaySettingsScreen.VesselBudgetOptions
Initial value:
=
{
-1, 0, 25, 50, 100, 150, 250, 400, 600, 800, 1000, 1500, 2500, 4000, 5000, 6000, 8000, 10000
}

general gameplay


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