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
layer
GlobalLayerisFocusable
bool
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
screen
ScreenBase
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
usableArea
Vec2
GetMouseVisibility()
public static bool GetMouseVisibility()
Returns
GetPersistentInputRestrictions()
public static List<ScreenLayer> GetPersistentInputRestrictions()
Returns
Initialize(IScreenManagerEngineConnection)
public static void Initialize(IScreenManagerEngineConnection engineInterface)
Parameters
engineInterface
IScreenManagerEngineConnection
IsControllerActive()
public static bool IsControllerActive()
Returns
IsLayerBlockedAtPosition(ScreenLayer, Vector2)
public static bool IsLayerBlockedAtPosition(ScreenLayer layer, Vector2 position)
Parameters
layer
ScreenLayerposition
Vector2
Returns
IsMouseCursorActive()
public static bool IsMouseCursorActive()
Returns
IsMouseCursorHidden()
public static bool IsMouseCursorHidden()
Returns
LateTick(float)
public static void LateTick(float dt)
Parameters
dt
float
OnConstrainStateChanged(bool)
public static void OnConstrainStateChanged(bool isConstrained)
Parameters
isConstrained
bool
OnControllerDisconnect()
public static void OnControllerDisconnect()
OnFinalize()
public static void OnFinalize()
OnGameWindowFocusChange(bool)
public static void OnGameWindowFocusChange(bool focusGained)
Parameters
focusGained
bool
OnOnscreenKeyboardCanceled()
public static void OnOnscreenKeyboardCanceled()
OnOnscreenKeyboardDone(string)
public static void OnOnscreenKeyboardDone(string inputText)
Parameters
inputText
string
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
newScale
float
PopScreen()
public static void PopScreen()
PushScreen(ScreenBase)
public static void PushScreen(ScreenBase screen)
Parameters
screen
ScreenBase
RemoveGlobalLayer(GlobalLayer)
public static void RemoveGlobalLayer(GlobalLayer layer)
Parameters
layer
GlobalLayer
ReplaceTopScreen(ScreenBase)
public static void ReplaceTopScreen(ScreenBase screen)
Parameters
screen
ScreenBase
ScreenTypeExistsAtList(ScreenBase)
public static bool ScreenTypeExistsAtList(ScreenBase screen)
Parameters
screen
ScreenBase
Returns
SetAndActivateRootScreen(ScreenBase)
public static void SetAndActivateRootScreen(ScreenBase screen)
Parameters
screen
ScreenBase
SetScreenDebugInformationEnabled(bool)
public static void SetScreenDebugInformationEnabled(bool isEnabled)
Parameters
isEnabled
bool
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
layer
ScreenLayerisSuspended
bool
Tick(float, bool)
public static void Tick(float dt, bool activeMouseVisible)
Parameters
TryLoseFocus(ScreenLayer)
public static void TryLoseFocus(ScreenLayer layer)
Parameters
layer
ScreenLayer
TrySetFocus(ScreenLayer)
public static void TrySetFocus(ScreenLayer layer)
Parameters
layer
ScreenLayer
Update(IReadOnlyList<int>)
public static void Update(IReadOnlyList<int> lastKeysPressed)
Parameters
lastKeysPressed
IReadOnlyList<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).