Table of Contents

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

IScreenManagerEngineConnection

FirstHitLayer

public static ScreenLayer FirstHitLayer { get; }

Property Value

ScreenLayer

FocusedLayer

public static ScreenLayer FocusedLayer { get; }

Property Value

ScreenLayer

IsEnterButtonRDown

public static bool IsEnterButtonRDown { get; }

Property Value

bool

Scale

public static float Scale { get; }

Property Value

float

SortedLayers

public static List<ScreenLayer> SortedLayers { get; }

Property Value

List<ScreenLayer>

TopScreen

public static ScreenBase TopScreen { get; }

Property Value

ScreenBase

UsableArea

public static Vec2 UsableArea { get; }

Property Value

Vec2

Methods

AddGlobalLayer(GlobalLayer, bool)

public static void AddGlobalLayer(GlobalLayer layer, bool isFocusable)

Parameters

layer GlobalLayer
isFocusable bool

ApplyCustomBattleLayout(List<string>)

[CommandLineFunctionality.CommandLineArgumentFunction("cb_apply_battle_layout_from_string", "ui")]
public static string ApplyCustomBattleLayout(List<string> args)

Parameters

args List<string>

Returns

string

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

args List<string>

Returns

string

CopyCustomBattle(List<string>)

[CommandLineFunctionality.CommandLineArgumentFunction("cb_copy_battle_layout_to_clipboard", "ui")]
public static string CopyCustomBattle(List<string> args)

Parameters

args List<string>

Returns

string

EarlyUpdate(Vec2)

public static void EarlyUpdate(Vec2 usableArea)

Parameters

usableArea Vec2

GetMouseVisibility()

public static bool GetMouseVisibility()

Returns

bool

GetPersistentInputRestrictions()

public static List<ScreenLayer> GetPersistentInputRestrictions()

Returns

List<ScreenLayer>

Initialize(IScreenManagerEngineConnection)

public static void Initialize(IScreenManagerEngineConnection engineInterface)

Parameters

engineInterface IScreenManagerEngineConnection

IsControllerActive()

public static bool IsControllerActive()

Returns

bool

IsLayerBlockedAtPosition(ScreenLayer, Vector2)

public static bool IsLayerBlockedAtPosition(ScreenLayer layer, Vector2 position)

Parameters

layer ScreenLayer
position Vector2

Returns

bool

IsMouseCursorActive()

public static bool IsMouseCursorActive()

Returns

bool

IsMouseCursorHidden()

public static bool IsMouseCursorHidden()

Returns

bool

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

initialText string
descriptionText string
maxLength int
keyboardTypeEnum int

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

bool

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

args List<string>

Returns

string

SetSuspendLayer(ScreenLayer, bool)

public static void SetSuspendLayer(ScreenLayer layer, bool isSuspended)

Parameters

layer ScreenLayer
isSuspended bool

Tick(float, bool)

public static void Tick(float dt, bool activeMouseVisible)

Parameters

dt float
activeMouseVisible bool

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

Action

OnControllerDisconnected

public static event ScreenManager.OnControllerDisconnectedEvent OnControllerDisconnected

Event Type

ScreenManager.OnControllerDisconnectedEvent

OnPopScreen

public static event ScreenManager.OnPopScreenEvent OnPopScreen

Event Type

ScreenManager.OnPopScreenEvent

OnPushScreen

public static event ScreenManager.OnPushScreenEvent OnPushScreen

Event Type

ScreenManager.OnPushScreenEvent

PlatformTextRequested

public static event Action<string, string, int, int> PlatformTextRequested

Event Type

Action<string, string, int, int>

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).