@@ -19,8 +19,6 @@ namespace TaleWorlds.ScreenSystem
|
|
19
19
|
|
20
20
|
public extern void UpdateLayout();
|
21
21
|
|
22
|
-
public virtual extern bool OnGamepadNavigation(ScreenManager.CursorAreas currentCursorArea, ScreenManager.GamepadNavigationTypes movementType);
|
23
|
-
|
24
22
|
public extern GlobalLayer();
|
25
23
|
}
|
26
24
|
}
|
@@ -17,5 +17,17 @@ namespace TaleWorlds.ScreenSystem
|
|
17
17
|
void SetMouseVisible(bool value);
|
18
18
|
|
19
19
|
bool GetMouseVisible();
|
20
|
+
|
21
|
+
bool GetIsEnterButtonRDown();
|
22
|
+
|
23
|
+
void BeginDebugPanel(string panelTitle);
|
24
|
+
|
25
|
+
void EndDebugPanel();
|
26
|
+
|
27
|
+
void DrawDebugText(string text);
|
28
|
+
|
29
|
+
bool DrawDebugTreeNode(string text);
|
30
|
+
|
31
|
+
void PopDebugTreeNode();
|
20
32
|
}
|
21
33
|
}
|
@@ -68,6 +68,10 @@ namespace TaleWorlds.ScreenSystem
|
|
68
68
|
|
69
69
|
public virtual extern void OnFocusChangeOnGameWindow(bool focusGained);
|
70
70
|
|
71
|
+
public extern void AddComponent(ScreenComponent component);
|
72
|
+
|
73
|
+
public extern T FindComponent<T>() where T : ScreenComponent;
|
74
|
+
|
71
75
|
public extern void AddLayer(ScreenLayer layer);
|
72
76
|
|
73
77
|
public extern void RemoveLayer(ScreenLayer layer);
|
@@ -85,7 +89,5 @@ namespace TaleWorlds.ScreenSystem
|
|
85
89
|
public extern void SetLayerCategoriesStateAndDeactivateOthers(string[] categoryIds, bool isActive);
|
86
90
|
|
87
91
|
protected extern ScreenBase();
|
88
|
-
|
89
|
-
public virtual extern bool OnGamepadNavigation(ScreenManager.CursorAreas currentCursorArea, ScreenManager.GamepadNavigationTypes movementType);
|
90
92
|
}
|
91
93
|
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
namespace TaleWorlds.ScreenSystem
|
2
|
+
{
|
3
|
+
public class ScreenComponent
|
4
|
+
{
|
5
|
+
public extern ScreenComponent();
|
6
|
+
}
|
7
|
+
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
+
using System.Numerics;
|
3
4
|
using System.Runtime.CompilerServices;
|
4
5
|
using TaleWorlds.InputSystem;
|
5
6
|
using TaleWorlds.Library;
|
@@ -46,6 +47,9 @@ namespace TaleWorlds.ScreenSystem
|
|
46
47
|
get; [CompilerGenerated]
|
47
48
|
protected internal set; }
|
48
49
|
|
50
|
+
public bool IsHitThisFrame { [CompilerGenerated]
|
51
|
+
get; }
|
52
|
+
|
49
53
|
public bool IsFocusLayer { [CompilerGenerated]
|
50
54
|
get; [CompilerGenerated]
|
51
55
|
set; }
|
@@ -62,6 +66,9 @@ namespace TaleWorlds.ScreenSystem
|
|
62
66
|
get; [CompilerGenerated]
|
63
67
|
set; }
|
64
68
|
|
69
|
+
public int ScreenOrderInLastFrame { [CompilerGenerated]
|
70
|
+
get; }
|
71
|
+
|
65
72
|
public InputUsageMask InputUsageMask { get; }
|
66
73
|
|
67
74
|
protected extern ScreenLayer(int localOrder, string categoryId);
|
@@ -84,12 +91,16 @@ namespace TaleWorlds.ScreenSystem
|
|
84
91
|
|
85
92
|
protected internal virtual extern void RefreshGlobalOrder(ref int currentOrder);
|
86
93
|
|
94
|
+
public virtual extern void DrawDebugInfo();
|
95
|
+
|
87
96
|
public virtual extern void EarlyProcessEvents(InputType handledInputs, bool? isMousePressed);
|
88
97
|
|
89
98
|
public virtual extern void ProcessEvents();
|
90
99
|
|
91
100
|
public virtual extern void LateProcessEvents();
|
92
101
|
|
102
|
+
public virtual extern bool HitTest(Vector2 position);
|
103
|
+
|
93
104
|
public virtual extern bool HitTest();
|
94
105
|
|
95
106
|
public virtual extern bool FocusTest();
|
@@ -1,4 +1,6 @@
|
|
1
|
+
using System;
|
1
2
|
using System.Collections.Generic;
|
3
|
+
using System.Numerics;
|
2
4
|
using System.Runtime.CompilerServices;
|
3
5
|
using TaleWorlds.Library;
|
4
6
|
|
@@ -6,41 +8,20 @@ namespace TaleWorlds.ScreenSystem
|
|
6
8
|
{
|
7
9
|
public static class ScreenManager
|
8
10
|
{
|
9
|
-
public enum GamepadNavigationTypes
|
10
|
-
{
|
11
|
-
None,
|
12
|
-
Up,
|
13
|
-
Down,
|
14
|
-
Left,
|
15
|
-
Right
|
16
|
-
}
|
17
|
-
|
18
|
-
public enum CursorAreas
|
19
|
-
{
|
20
|
-
Center,
|
21
|
-
Left,
|
22
|
-
Right,
|
23
|
-
Bottom,
|
24
|
-
Top
|
25
|
-
}
|
26
|
-
|
27
11
|
public delegate void OnPushScreenEvent(ScreenBase pushedScreen);
|
28
12
|
|
29
13
|
public delegate void OnPopScreenEvent(ScreenBase poppedScreen);
|
30
14
|
|
31
15
|
public delegate void OnControllerDisconnectedEvent();
|
32
16
|
|
33
|
-
public static
|
34
|
-
get; }
|
17
|
+
public static IScreenManagerEngineConnection EngineInterface { get; }
|
35
18
|
|
36
19
|
public static float Scale { [CompilerGenerated]
|
37
20
|
get; }
|
38
21
|
|
39
|
-
public static Vec2 UsableArea {
|
40
|
-
get; }
|
22
|
+
public static Vec2 UsableArea { get; }
|
41
23
|
|
42
|
-
public static bool
|
43
|
-
get; }
|
24
|
+
public static bool IsEnterButtonRDown { get; }
|
44
25
|
|
45
26
|
public static List<ScreenLayer> SortedLayers { get; }
|
46
27
|
|
@@ -76,6 +57,14 @@ namespace TaleWorlds.ScreenSystem
|
|
76
57
|
remove;
|
77
58
|
}
|
78
59
|
|
60
|
+
public static event Action FocusGained
|
61
|
+
{
|
62
|
+
[CompilerGenerated]
|
63
|
+
add;
|
64
|
+
[CompilerGenerated]
|
65
|
+
remove;
|
66
|
+
}
|
67
|
+
|
79
68
|
public static extern void Initialize(IScreenManagerEngineConnection engineInterface);
|
80
69
|
|
81
70
|
public static extern void RemoveGlobalLayer(GlobalLayer layer);
|
@@ -114,12 +103,14 @@ namespace TaleWorlds.ScreenSystem
|
|
114
103
|
|
115
104
|
public static extern void Update(IReadOnlyList<int> lastKeysPressed);
|
116
105
|
|
117
|
-
public static extern void EarlyUpdate(Vec2 usableArea
|
106
|
+
public static extern void EarlyUpdate(Vec2 usableArea);
|
118
107
|
|
119
|
-
public static extern
|
108
|
+
public static extern bool IsControllerActive();
|
120
109
|
|
121
110
|
public static extern bool IsMouseCursorHidden();
|
122
111
|
|
112
|
+
public static extern bool IsLayerBlockedAtPosition(ScreenLayer layer, Vector2 position);
|
113
|
+
|
123
114
|
public static extern bool GetMouseVisibility();
|
124
115
|
|
125
116
|
public static extern void TrySetFocus(ScreenLayer layer);
|
@@ -129,5 +120,10 @@ namespace TaleWorlds.ScreenSystem
|
|
129
120
|
public static extern void OnScaleChange(float newScale);
|
130
121
|
|
131
122
|
public static extern void OnControllerDisconnect();
|
123
|
+
|
124
|
+
[CommandLineFunctionality.CommandLineArgumentFunction("set_screen_debug_information_enabled", "ui")]
|
125
|
+
public static extern string SetScreenDebugInformationEnabled(List<string> args);
|
126
|
+
|
127
|
+
public static extern void SetScreenDebugInformationEnabled(bool isEnabled);
|
132
128
|
}
|
133
129
|
}
|