Class ScreenManager
- Namespace
- TaleWorlds.ScreenSystem
- Assembly
- TaleWorlds.ScreenSystem.dll
public static class ScreenManager
- Inheritance
-
ScreenManager
- Inherited Members
Properties
EngineInterface
public static IScreenManagerEngineConnection EngineInterface { get; }
Property Value
FirstHitLayer
public static ScreenLayer FirstHitLayer { get; }
Property Value
FocusedLayer
public static ScreenLayer FocusedLayer { get; }
Property Value
IsEnterButtonRDown
public static bool IsEnterButtonRDown { get; }
Property Value
Scale
public static float Scale { get; }
Property Value
SortedLayers
public static List<ScreenLayer> SortedLayers { get; }
Property Value
TopScreen
public static ScreenBase TopScreen { get; }
Property Value
UsableArea
public static Vec2 UsableArea { get; }
Property Value
Methods
AddGlobalLayer(GlobalLayer, bool)
public static void AddGlobalLayer(GlobalLayer layer, bool isFocusable)
Parameters
layerGlobalLayerisFocusablebool
ApplyCustomBattleLayout(List<string>)
[CommandLineFunctionality.CommandLineArgumentFunction("cb_apply_battle_layout_from_string", "ui")]
public static string ApplyCustomBattleLayout(List<string> args)
Parameters
Returns
CleanAndPushScreen(ScreenBase)
public static void CleanAndPushScreen(ScreenBase screen)
Parameters
screenScreenBase
CleanScreens()
public static void CleanScreens()
ClearSiegeMachineSelection(List<string>)
[CommandLineFunctionality.CommandLineArgumentFunction("cb_clear_siege_machine_selection", "ui")]
public static string ClearSiegeMachineSelection(List<string> args)
Parameters
Returns
CopyCustomBattle(List<string>)
[CommandLineFunctionality.CommandLineArgumentFunction("cb_copy_battle_layout_to_clipboard", "ui")]
public static string CopyCustomBattle(List<string> args)
Parameters
Returns
EarlyUpdate(Vec2)
public static void EarlyUpdate(Vec2 usableArea)
Parameters
usableAreaVec2
GetMouseVisibility()
public static bool GetMouseVisibility()
Returns
GetPersistentInputRestrictions()
public static List<ScreenLayer> GetPersistentInputRestrictions()
Returns
Initialize(IScreenManagerEngineConnection)
public static void Initialize(IScreenManagerEngineConnection engineInterface)
Parameters
engineInterfaceIScreenManagerEngineConnection
IsControllerActive()
public static bool IsControllerActive()
Returns
IsLayerBlockedAtPosition(ScreenLayer, Vector2)
public static bool IsLayerBlockedAtPosition(ScreenLayer layer, Vector2 position)
Parameters
layerScreenLayerpositionVector2
Returns
IsMouseCursorActive()
public static bool IsMouseCursorActive()
Returns
IsMouseCursorHidden()
public static bool IsMouseCursorHidden()
Returns
LateTick(float)
public static void LateTick(float dt)
Parameters
dtfloat
OnConstrainStateChanged(bool)
public static void OnConstrainStateChanged(bool isConstrained)
Parameters
isConstrainedbool
OnControllerDisconnect()
public static void OnControllerDisconnect()
OnFinalize()
public static void OnFinalize()
OnGameWindowFocusChange(bool)
public static void OnGameWindowFocusChange(bool focusGained)
Parameters
focusGainedbool
OnOnscreenKeyboardCanceled()
public static void OnOnscreenKeyboardCanceled()
OnOnscreenKeyboardDone(string)
public static void OnOnscreenKeyboardDone(string inputText)
Parameters
inputTextstring
OnPlatformScreenKeyboardRequested(string, string, int, int)
public static void OnPlatformScreenKeyboardRequested(string initialText, string descriptionText, int maxLength, int keyboardTypeEnum)
Parameters
OnScaleChange(float)
public static void OnScaleChange(float newScale)
Parameters
newScalefloat
PopScreen()
public static void PopScreen()
PushScreen(ScreenBase)
public static void PushScreen(ScreenBase screen)
Parameters
screenScreenBase
RemoveGlobalLayer(GlobalLayer)
public static void RemoveGlobalLayer(GlobalLayer layer)
Parameters
layerGlobalLayer
ReplaceTopScreen(ScreenBase)
public static void ReplaceTopScreen(ScreenBase screen)
Parameters
screenScreenBase
ScreenTypeExistsAtList(ScreenBase)
public static bool ScreenTypeExistsAtList(ScreenBase screen)
Parameters
screenScreenBase
Returns
SetAndActivateRootScreen(ScreenBase)
public static void SetAndActivateRootScreen(ScreenBase screen)
Parameters
screenScreenBase
SetScreenDebugInformationEnabled(bool)
public static void SetScreenDebugInformationEnabled(bool isEnabled)
Parameters
isEnabledbool
SetScreenDebugInformationEnabled(List<string>)
[CommandLineFunctionality.CommandLineArgumentFunction("set_screen_debug_information_enabled", "ui")]
public static string SetScreenDebugInformationEnabled(List<string> args)
Parameters
Returns
SetSuspendLayer(ScreenLayer, bool)
public static void SetSuspendLayer(ScreenLayer layer, bool isSuspended)
Parameters
layerScreenLayerisSuspendedbool
Tick(float, bool)
public static void Tick(float dt, bool activeMouseVisible)
Parameters
TryLoseFocus(ScreenLayer)
public static void TryLoseFocus(ScreenLayer layer)
Parameters
layerScreenLayer
TrySetFocus(ScreenLayer)
public static void TrySetFocus(ScreenLayer layer)
Parameters
layerScreenLayer
Update(IReadOnlyList<int>)
public static void Update(IReadOnlyList<int> lastKeysPressed)
Parameters
lastKeysPressedIReadOnlyList<int>
UpdateLayout()
public static void UpdateLayout()
Events
FocusGained
public static event Action FocusGained
Event Type
OnControllerDisconnected
public static event ScreenManager.OnControllerDisconnectedEvent OnControllerDisconnected
Event Type
OnPopScreen
public static event ScreenManager.OnPopScreenEvent OnPopScreen
Event Type
OnPushScreen
public static event ScreenManager.OnPushScreenEvent OnPushScreen
Event Type
PlatformTextRequested
public static event Action<string, string, int, int> PlatformTextRequested
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).