@@ -1,4 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
2
3
|
using TaleWorlds.TwoDimension;
|
3
4
|
|
4
5
|
namespace TaleWorlds.GauntletUI
|
@@ -8,6 +9,11 @@ namespace TaleWorlds.GauntletUI
|
|
8
9
|
[Editor(false)]
|
9
10
|
public Brush Brush { get; set; }
|
10
11
|
|
12
|
+
public Brush ReadOnlyBrush { get; }
|
13
|
+
|
14
|
+
[Editor(false)]
|
15
|
+
public new Sprite Sprite { get; set; }
|
16
|
+
|
11
17
|
public BrushRenderer BrushRenderer { [CompilerGenerated]
|
12
18
|
get; }
|
13
19
|
|
@@ -19,8 +25,16 @@ namespace TaleWorlds.GauntletUI
|
|
19
25
|
|
20
26
|
public override extern void SetState(string stateName);
|
21
27
|
|
28
|
+
protected override extern void RefreshState();
|
29
|
+
|
22
30
|
protected override extern void OnRender(TwoDimensionContext twoDimensionContext, TwoDimensionDrawContext drawContext);
|
23
31
|
|
32
|
+
protected extern void HandleUpdateNeededOnRender();
|
33
|
+
|
24
34
|
protected override extern void OnConnectedToRoot();
|
35
|
+
|
36
|
+
public override extern void UpdateAnimationPropertiesSubTask(float alphaFactor);
|
37
|
+
|
38
|
+
public virtual extern void OnBrushChanged();
|
25
39
|
}
|
26
40
|
}
|
@@ -6,22 +6,32 @@ namespace TaleWorlds.GauntletUI
|
|
6
6
|
{
|
7
7
|
public class BrushRenderer
|
8
8
|
{
|
9
|
-
public
|
10
|
-
|
11
|
-
|
9
|
+
public enum BrushRendererAnimationState
|
10
|
+
{
|
11
|
+
None,
|
12
|
+
PlayingAnimation,
|
13
|
+
PlayingBasicTranisition,
|
14
|
+
Ended
|
15
|
+
}
|
12
16
|
|
13
|
-
public
|
17
|
+
public bool UseLocalTimer;
|
14
18
|
|
15
19
|
public bool ForcePixelPerfectPlacement { [CompilerGenerated]
|
16
20
|
get; [CompilerGenerated]
|
17
21
|
set; }
|
18
22
|
|
23
|
+
public Style CurrentStyle { get; }
|
24
|
+
|
25
|
+
public Brush Brush { get; set; }
|
26
|
+
|
19
27
|
public string CurrentState { get; set; }
|
20
28
|
|
21
29
|
public extern BrushRenderer();
|
22
30
|
|
23
31
|
public extern void Update(float globalAnimTime, float dt);
|
24
32
|
|
33
|
+
public extern bool IsUpdateNeeded();
|
34
|
+
|
25
35
|
public extern void Render(TwoDimensionDrawContext drawContext, Vector2 targetPosition, Vector2 targetSize, float scale, float contextAlpha, Vector2 overlayOffset = default(Vector2));
|
26
36
|
|
27
37
|
public extern TextMaterial CreateTextMaterial(TwoDimensionDrawContext drawContext);
|
@@ -1,9 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
2
|
-
{
|
3
|
-
public enum BrushRendererAnimationState
|
4
|
-
{
|
5
|
-
None,
|
6
|
-
PlayingAnimation,
|
7
|
-
PlayingBasicTranisition
|
8
|
-
}
|
9
|
-
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
2
3
|
|
3
4
|
namespace TaleWorlds.GauntletUI
|
4
5
|
{
|
@@ -1,15 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
2
|
-
{
|
3
|
-
public class DragDropDecorator : Widget
|
4
|
-
{
|
5
|
-
public Container InnerPanel;
|
6
|
-
|
7
|
-
public Widget DropGizmo;
|
8
|
-
|
9
|
-
public Widget SelectionGizmo;
|
10
|
-
|
11
|
-
public extern DragDropDecorator(UIContext context);
|
12
|
-
|
13
|
-
protected override extern void OnUpdate(float dt);
|
14
|
-
}
|
15
|
-
}
|
@@ -2,6 +2,8 @@ using System;
|
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Numerics;
|
4
4
|
using System.Runtime.CompilerServices;
|
5
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
6
|
+
using TaleWorlds.GauntletUI.GamepadNavigation;
|
5
7
|
using TaleWorlds.InputSystem;
|
6
8
|
using TaleWorlds.Library;
|
7
9
|
using TaleWorlds.Library.EventSystem;
|
@@ -10,36 +12,15 @@ namespace TaleWorlds.GauntletUI
|
|
10
12
|
{
|
11
13
|
public class EventManager
|
12
14
|
{
|
13
|
-
public
|
14
|
-
{
|
15
|
-
None,
|
16
|
-
Up,
|
17
|
-
Down,
|
18
|
-
Left,
|
19
|
-
Right
|
20
|
-
}
|
21
|
-
|
22
|
-
public enum CursorAreas
|
23
|
-
{
|
24
|
-
Center,
|
25
|
-
Left,
|
26
|
-
Right,
|
27
|
-
Down,
|
28
|
-
Up
|
29
|
-
}
|
30
|
-
|
31
|
-
public class EmptyWidget : Widget
|
32
|
-
{
|
33
|
-
public extern EmptyWidget(UIContext context);
|
15
|
+
public const int MinParallelUpdateCount = 64;
|
34
16
|
|
35
|
-
|
17
|
+
public Func<bool> OnGetIsHitThisFrame;
|
36
18
|
|
37
|
-
|
19
|
+
public Func<Vector2, bool> OnGetIsBlockedAtPosition;
|
38
20
|
|
39
|
-
|
40
|
-
}
|
21
|
+
public Func<int> OnGetLastScreenOrder;
|
41
22
|
|
42
|
-
public
|
23
|
+
public Func<bool> OnGetIsAvailableForGamepadNavigation;
|
43
24
|
|
44
25
|
public float Time { [CompilerGenerated]
|
45
26
|
get; }
|
@@ -138,14 +119,6 @@ namespace TaleWorlds.GauntletUI
|
|
138
119
|
remove;
|
139
120
|
}
|
140
121
|
|
141
|
-
public event Action GainGamepadNavigationCursor
|
142
|
-
{
|
143
|
-
[CompilerGenerated]
|
144
|
-
add;
|
145
|
-
[CompilerGenerated]
|
146
|
-
remove;
|
147
|
-
}
|
148
|
-
|
149
122
|
public extern void ClearFocus();
|
150
123
|
|
151
124
|
public static extern bool HitTest(Widget widget, Vector2 position);
|
@@ -160,12 +133,34 @@ namespace TaleWorlds.GauntletUI
|
|
160
133
|
|
161
134
|
public extern void UpdateLayout();
|
162
135
|
|
163
|
-
public extern void
|
136
|
+
public extern void OnMovieLoaded(string movieName);
|
137
|
+
|
138
|
+
public extern void OnMovieReleased(string movieName);
|
139
|
+
|
140
|
+
public extern bool GetIsHitThisFrame();
|
141
|
+
|
142
|
+
public extern bool GetIsBlockedAtPosition(Vector2 position);
|
143
|
+
|
144
|
+
public extern int GetLastScreenOrder();
|
164
145
|
|
165
|
-
public extern
|
146
|
+
public extern bool IsAvailableForNavigation();
|
147
|
+
|
148
|
+
public extern void OnWidgetUsedNavigationMovementsUpdated(Widget widget);
|
149
|
+
|
150
|
+
public extern void OnGainNavigation();
|
166
151
|
|
167
152
|
public extern void OnWidgetNavigationIndexUpdated(Widget widget);
|
168
153
|
|
169
|
-
public extern void
|
154
|
+
public extern void AddNavigationScope(GamepadNavigationScope scope, bool initialize = false);
|
155
|
+
|
156
|
+
public extern void RemoveNavigationScope(GamepadNavigationScope scope);
|
157
|
+
|
158
|
+
public extern void AddForcedScopeCollection(GamepadNavigationForcedScopeCollection collection);
|
159
|
+
|
160
|
+
public extern void RemoveForcedScopeCollection(GamepadNavigationForcedScopeCollection collection);
|
161
|
+
|
162
|
+
public extern bool HasNavigationScope(GamepadNavigationScope scope);
|
163
|
+
|
164
|
+
public extern bool HasNavigationScope(Func<GamepadNavigationScope, bool> predicate);
|
170
165
|
}
|
171
166
|
}
|
@@ -36,5 +36,7 @@ namespace TaleWorlds.GauntletUI
|
|
36
36
|
public extern void OnLanguageChange(string newLanguageCode);
|
37
37
|
|
38
38
|
public extern Font GetUsableFontForCharacter(int characterCode);
|
39
|
+
|
40
|
+
public extern void CheckForUpdates();
|
39
41
|
}
|
40
42
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
2
3
|
|
3
4
|
namespace TaleWorlds.GauntletUI
|
4
5
|
{
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Numerics;
|
3
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
3
4
|
|
4
5
|
namespace TaleWorlds.GauntletUI
|
5
6
|
{
|
@@ -1,6 +1,8 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
+
using System.Numerics;
|
3
4
|
using System.Runtime.CompilerServices;
|
5
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
4
6
|
using TaleWorlds.InputSystem;
|
5
7
|
using TaleWorlds.Library;
|
6
8
|
using TaleWorlds.TwoDimension;
|
@@ -70,8 +72,6 @@ namespace TaleWorlds.GauntletUI
|
|
70
72
|
|
71
73
|
public IEnumerable<Brush> Brushes { get; }
|
72
74
|
|
73
|
-
public IEnumerable<Sprite> SpriteList { get; }
|
74
|
-
|
75
75
|
public Brush DefaultBrush { get; }
|
76
76
|
|
77
77
|
public SpriteData SpriteData { [CompilerGenerated]
|
@@ -99,10 +99,14 @@ namespace TaleWorlds.GauntletUI
|
|
99
99
|
|
100
100
|
public extern void OnOnScreenkeyboardTextInputDone(string inputText);
|
101
101
|
|
102
|
+
public extern bool HitTest(Widget root, Vector2 position);
|
103
|
+
|
102
104
|
public extern bool HitTest(Widget root);
|
103
105
|
|
104
106
|
public extern bool FocusTest(Widget root);
|
105
107
|
|
106
108
|
public extern void UpdateInput(InputType handleInputs);
|
109
|
+
|
110
|
+
public extern void DrawWidgetDebugInfo();
|
107
111
|
}
|
108
112
|
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
using System.Runtime.CompilerServices;
|
2
|
-
|
3
|
-
namespace TaleWorlds.GauntletUI
|
4
|
-
{
|
5
|
-
public abstract class UIContextObject
|
6
|
-
{
|
7
|
-
public UIContext Context { [CompilerGenerated]
|
8
|
-
get; }
|
9
|
-
|
10
|
-
protected extern UIContextObject(UIContext context);
|
11
|
-
}
|
12
|
-
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
2
3
|
|
3
4
|
namespace TaleWorlds.GauntletUI
|
4
5
|
{
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
2
3
|
|
3
4
|
namespace TaleWorlds.GauntletUI
|
4
5
|
{
|
@@ -21,7 +21,10 @@ namespace TaleWorlds.GauntletUI
|
|
21
21
|
public bool GotCustomParallelUpdate { [CompilerGenerated]
|
22
22
|
get; }
|
23
23
|
|
24
|
-
public
|
24
|
+
public bool GotUpdateBrushes { [CompilerGenerated]
|
25
|
+
get; }
|
26
|
+
|
27
|
+
public static extern void Reload();
|
25
28
|
|
26
29
|
public static extern WidgetInfo GetWidgetInfo(Type type);
|
27
30
|
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Numerics;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
|
5
|
-
namespace TaleWorlds.GauntletUI
|
5
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
6
6
|
{
|
7
7
|
public class BasicContainer : Container
|
8
8
|
{
|
@@ -1,10 +1,12 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.TwoDimension;
|
3
3
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
4
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
5
5
|
{
|
6
6
|
public class BrushWidget : Widget
|
7
7
|
{
|
8
|
+
protected bool _isInsideCache;
|
9
|
+
|
8
10
|
[Editor(false)]
|
9
11
|
public Brush Brush { get; set; }
|
10
12
|
|
@@ -22,14 +24,24 @@ namespace TaleWorlds.GauntletUI
|
|
22
24
|
|
23
25
|
public override extern void UpdateBrushes(float dt);
|
24
26
|
|
27
|
+
protected extern void UpdateBrushRendererInternal(float dt);
|
28
|
+
|
25
29
|
public override extern void SetState(string stateName);
|
26
30
|
|
31
|
+
protected override extern void RefreshState();
|
32
|
+
|
27
33
|
protected override extern void OnRender(TwoDimensionContext twoDimensionContext, TwoDimensionDrawContext drawContext);
|
28
34
|
|
35
|
+
protected extern void HandleUpdateNeededOnRender();
|
36
|
+
|
29
37
|
protected override extern void OnConnectedToRoot();
|
30
38
|
|
31
39
|
public override extern void UpdateAnimationPropertiesSubTask(float alphaFactor);
|
32
40
|
|
33
41
|
public virtual extern void OnBrushChanged();
|
42
|
+
|
43
|
+
protected extern void RegisterUpdateBrushes();
|
44
|
+
|
45
|
+
protected extern void UnRegisterUpdateBrushes();
|
34
46
|
}
|
35
47
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
1
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
2
2
|
{
|
3
3
|
public enum ButtonType
|
4
4
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
4
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
5
5
|
{
|
6
6
|
public class ButtonWidget : ImageWidget
|
7
7
|
{
|
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|
3
3
|
using System.Numerics;
|
4
4
|
using System.Runtime.CompilerServices;
|
5
5
|
|
6
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
7
7
|
{
|
8
8
|
public abstract class Container : Widget
|
9
9
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
1
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
2
2
|
{
|
3
3
|
public class DragCarrierWidget : Widget
|
4
4
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
|
3
|
-
namespace TaleWorlds.GauntletUI
|
3
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
4
4
|
{
|
5
5
|
public class DropdownWidget : Widget
|
6
6
|
{
|
@@ -3,7 +3,7 @@ using System.Numerics;
|
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
using TaleWorlds.TwoDimension;
|
5
5
|
|
6
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
7
7
|
{
|
8
8
|
public class EditableTextWidget : BrushWidget
|
9
9
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
|
3
|
-
namespace TaleWorlds.GauntletUI
|
3
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
4
4
|
{
|
5
5
|
public class FloatInputTextWidget : EditableTextWidget
|
6
6
|
{
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Numerics;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
|
5
|
-
namespace TaleWorlds.GauntletUI
|
5
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
6
6
|
{
|
7
7
|
public class GridWidget : Container
|
8
8
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
|
3
|
-
namespace TaleWorlds.GauntletUI
|
3
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
4
4
|
{
|
5
5
|
public class ImageWidget : BrushWidget
|
6
6
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
4
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
5
5
|
{
|
6
6
|
public class IntegerInputTextWidget : EditableTextWidget
|
7
7
|
{
|
@@ -1,8 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Numerics;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
|
+
using TaleWorlds.GauntletUI.Layout;
|
4
5
|
|
5
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
6
7
|
{
|
7
8
|
public class ListPanel : Container
|
8
9
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.TwoDimension;
|
3
3
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
4
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
5
5
|
{
|
6
6
|
public class MaskedTextureWidget : TextureWidget
|
7
7
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
1
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
2
2
|
{
|
3
3
|
public delegate void OnActiveTabChangeEvent();
|
4
4
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
|
3
|
-
namespace TaleWorlds.GauntletUI
|
3
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
4
4
|
{
|
5
5
|
public class OnlineImageTextureWidget : TextureWidget
|
6
6
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.TwoDimension;
|
2
2
|
|
3
|
-
namespace TaleWorlds.GauntletUI
|
3
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
4
4
|
{
|
5
5
|
public class RichTextWidget : BrushWidget
|
6
6
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
4
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
5
5
|
{
|
6
6
|
public class ScrollablePanel : Widget
|
7
7
|
{
|
@@ -75,10 +75,10 @@ namespace TaleWorlds.GauntletUI
|
|
75
75
|
|
76
76
|
protected extern void SetActiveCursor(UIContext.MouseCursors cursor);
|
77
77
|
|
78
|
-
protected extern float GetScrollYValueForWidget(Widget widget, float widgetTargetYValue);
|
78
|
+
protected extern float GetScrollYValueForWidget(Widget widget, float widgetTargetYValue, float offset);
|
79
79
|
|
80
|
-
protected extern float GetScrollXValueForWidget(Widget widget, float widgetTargetXValue);
|
80
|
+
protected extern float GetScrollXValueForWidget(Widget widget, float widgetTargetXValue, float offset);
|
81
81
|
|
82
|
-
public extern void ScrollToChild(Widget targetWidget, float widgetTargetXValue = -1f, float widgetTargetYValue = -1f);
|
82
|
+
public extern void ScrollToChild(Widget targetWidget, float widgetTargetXValue = -1f, float widgetTargetYValue = -1f, int scrollXOffset = 0, int scrollYOffset = 0);
|
83
83
|
}
|
84
84
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
|
3
|
-
namespace TaleWorlds.GauntletUI
|
3
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
4
4
|
{
|
5
5
|
public class ScrollablePanelFixedHeaderWidget : Widget
|
6
6
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
|
3
|
-
namespace TaleWorlds.GauntletUI
|
3
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
4
4
|
{
|
5
5
|
public class ScrollbarWidget : ImageWidget
|
6
6
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
1
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
2
2
|
{
|
3
3
|
public class SelectedStateBrushWidget : BrushWidget
|
4
4
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
|
3
|
-
namespace TaleWorlds.GauntletUI
|
3
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
4
4
|
{
|
5
5
|
public class SliderWidget : ImageWidget
|
6
6
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
4
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
5
5
|
{
|
6
6
|
public class TabControl : Widget
|
7
7
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
|
3
|
-
namespace TaleWorlds.GauntletUI
|
3
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
4
4
|
{
|
5
5
|
public class TabToggleWidget : ButtonWidget
|
6
6
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.TwoDimension;
|
3
3
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
4
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
5
5
|
{
|
6
6
|
public class TextWidget : ImageWidget
|
7
7
|
{
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.TwoDimension;
|
5
5
|
|
6
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
7
7
|
{
|
8
8
|
public class TextureWidget : ImageWidget
|
9
9
|
{
|
@@ -2,10 +2,12 @@ using System;
|
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Numerics;
|
4
4
|
using System.Runtime.CompilerServices;
|
5
|
+
using TaleWorlds.GauntletUI.GamepadNavigation;
|
6
|
+
using TaleWorlds.GauntletUI.Layout;
|
5
7
|
using TaleWorlds.Library;
|
6
8
|
using TaleWorlds.TwoDimension;
|
7
9
|
|
8
|
-
namespace TaleWorlds.GauntletUI
|
10
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
9
11
|
{
|
10
12
|
public class Widget : PropertyOwnerObject
|
11
13
|
{
|
@@ -23,6 +25,10 @@ namespace TaleWorlds.GauntletUI
|
|
23
25
|
|
24
26
|
protected int _seed;
|
25
27
|
|
28
|
+
protected internal int _gamepadNavigationIndex;
|
29
|
+
|
30
|
+
public Action<Widget> OnGamepadNavigationFocusGained;
|
31
|
+
|
26
32
|
public float ColorFactor { [CompilerGenerated]
|
27
33
|
get; [CompilerGenerated]
|
28
34
|
set; }
|
@@ -173,6 +179,10 @@ namespace TaleWorlds.GauntletUI
|
|
173
179
|
[Editor(false)]
|
174
180
|
public bool ForcePixelPerfectRenderPlacement { get; set; }
|
175
181
|
|
182
|
+
public bool UseGlobalTimeForAnimation { [CompilerGenerated]
|
183
|
+
get; [CompilerGenerated]
|
184
|
+
set; }
|
185
|
+
|
176
186
|
[Editor(false)]
|
177
187
|
public SizePolicy WidthSizePolicy { get; set; }
|
178
188
|
|
@@ -318,15 +328,15 @@ namespace TaleWorlds.GauntletUI
|
|
318
328
|
get; [CompilerGenerated]
|
319
329
|
set; }
|
320
330
|
|
321
|
-
public IEnumerable<Widget> AllChildrenAndThis { [IteratorStateMachine(typeof(
|
331
|
+
public IEnumerable<Widget> AllChildrenAndThis { [IteratorStateMachine(typeof(_003Cget_AllChildrenAndThis_003Ed__346))]
|
322
332
|
get; }
|
323
333
|
|
324
|
-
public IEnumerable<Widget> AllChildren { [IteratorStateMachine(typeof(
|
334
|
+
public IEnumerable<Widget> AllChildren { [IteratorStateMachine(typeof(_003Cget_AllChildren_003Ed__349))]
|
325
335
|
get; }
|
326
336
|
|
327
337
|
public List<Widget> Children { get; }
|
328
338
|
|
329
|
-
public IEnumerable<Widget> Parents { [IteratorStateMachine(typeof(
|
339
|
+
public IEnumerable<Widget> Parents { [IteratorStateMachine(typeof(_003Cget_Parents_003Ed__353))]
|
330
340
|
get; }
|
331
341
|
|
332
342
|
[Editor(false)]
|
@@ -349,18 +359,18 @@ namespace TaleWorlds.GauntletUI
|
|
349
359
|
|
350
360
|
public float ScaledMinHeight { get; }
|
351
361
|
|
352
|
-
public bool
|
362
|
+
public bool DisableRender { [CompilerGenerated]
|
353
363
|
get; [CompilerGenerated]
|
354
364
|
set; }
|
355
365
|
|
356
|
-
public
|
366
|
+
public GamepadNavigationTypes UsedNavigationMovements { get; set; }
|
367
|
+
|
368
|
+
public int DelayedNavigationIndex { [CompilerGenerated]
|
357
369
|
get; [CompilerGenerated]
|
358
370
|
set; }
|
359
371
|
|
360
372
|
public int GamepadNavigationIndex { get; set; }
|
361
373
|
|
362
|
-
public bool GamepadNavigationDefaultOnGain { get; set; }
|
363
|
-
|
364
374
|
public bool UseSiblingIndexForNavigation { get; set; }
|
365
375
|
|
366
376
|
public event Action<Widget, string, object[]> EventFire
|
@@ -369,7 +379,7 @@ namespace TaleWorlds.GauntletUI
|
|
369
379
|
remove;
|
370
380
|
}
|
371
381
|
|
372
|
-
public event Action<Widget>
|
382
|
+
public event Action<Widget> OnVisibilityChanged
|
373
383
|
{
|
374
384
|
[CompilerGenerated]
|
375
385
|
add;
|
@@ -441,8 +451,6 @@ namespace TaleWorlds.GauntletUI
|
|
441
451
|
|
442
452
|
public virtual extern void UpdateBrushes(float dt);
|
443
453
|
|
444
|
-
public extern void ParallelUpdateChildBrushes(float dt);
|
445
|
-
|
446
454
|
public extern int GetChildIndex(Widget child);
|
447
455
|
|
448
456
|
public extern int GetVisibleChildIndex(Widget child);
|
@@ -463,7 +471,7 @@ namespace TaleWorlds.GauntletUI
|
|
463
471
|
|
464
472
|
public extern Vector2 GetLocalPoint(Vector2 globalPoint);
|
465
473
|
|
466
|
-
public extern void SetSiblingIndex(int index);
|
474
|
+
public extern void SetSiblingIndex(int index, bool force = false);
|
467
475
|
|
468
476
|
public extern int GetSiblingIndex();
|
469
477
|
|
@@ -481,6 +489,8 @@ namespace TaleWorlds.GauntletUI
|
|
481
489
|
|
482
490
|
protected virtual extern void OnConnectedToRoot();
|
483
491
|
|
492
|
+
public override extern string ToString();
|
493
|
+
|
484
494
|
protected virtual extern void OnGamepadNavigationIndexUpdated(int newIndex);
|
485
495
|
|
486
496
|
public extern void OnGamepadNavigationFocusGain();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
1
|
+
namespace TaleWorlds.GauntletUI.BaseTypes
|
2
2
|
{
|
3
3
|
public delegate bool WidgetSearchDelegate(Widget widget);
|
4
4
|
}
|
@@ -2,7 +2,7 @@ using System.Numerics;
|
|
2
2
|
using System.Xml;
|
3
3
|
using TaleWorlds.TwoDimension;
|
4
4
|
|
5
|
-
namespace TaleWorlds.GauntletUI
|
5
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
6
6
|
{
|
7
7
|
public class Canvas
|
8
8
|
{
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using System.Xml;
|
4
4
|
using TaleWorlds.TwoDimension;
|
5
5
|
|
6
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
7
7
|
{
|
8
8
|
public abstract class CanvasElement : CanvasObject
|
9
9
|
{
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using System.Xml;
|
4
4
|
using TaleWorlds.TwoDimension;
|
5
5
|
|
6
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
7
7
|
{
|
8
8
|
public class CanvasImage : CanvasElement
|
9
9
|
{
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using System.Xml;
|
4
4
|
using TaleWorlds.TwoDimension;
|
5
5
|
|
6
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
7
7
|
{
|
8
8
|
public class CanvasLine : CanvasObject
|
9
9
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
1
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
2
2
|
{
|
3
3
|
public enum CanvasLineAlignment
|
4
4
|
{
|
@@ -2,7 +2,7 @@ using System.Numerics;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.TwoDimension;
|
4
4
|
|
5
|
-
namespace TaleWorlds.GauntletUI
|
5
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
6
6
|
{
|
7
7
|
public abstract class CanvasLineElement : CanvasObject
|
8
8
|
{
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using System.Xml;
|
4
4
|
using TaleWorlds.TwoDimension;
|
5
5
|
|
6
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
7
7
|
{
|
8
8
|
public class CanvasLineImage : CanvasLineElement
|
9
9
|
{
|
@@ -4,7 +4,7 @@ using System.Xml;
|
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
using TaleWorlds.TwoDimension;
|
6
6
|
|
7
|
-
namespace TaleWorlds.GauntletUI
|
7
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
8
8
|
{
|
9
9
|
public class CanvasLineText : CanvasLineElement
|
10
10
|
{
|
@@ -3,7 +3,7 @@ using System.Numerics;
|
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
using TaleWorlds.TwoDimension;
|
5
5
|
|
6
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
7
7
|
{
|
8
8
|
public class CanvasObject
|
9
9
|
{
|
@@ -2,7 +2,7 @@ using System.Numerics;
|
|
2
2
|
using System.Xml;
|
3
3
|
using TaleWorlds.TwoDimension;
|
4
4
|
|
5
|
-
namespace TaleWorlds.GauntletUI
|
5
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
6
6
|
{
|
7
7
|
public class CanvasTextBox : CanvasElement
|
8
8
|
{
|
@@ -1,8 +1,10 @@
|
|
1
1
|
using System.Numerics;
|
2
2
|
using System.Xml;
|
3
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
4
|
+
using TaleWorlds.GauntletUI.Layout;
|
3
5
|
using TaleWorlds.TwoDimension;
|
4
6
|
|
5
|
-
namespace TaleWorlds.GauntletUI
|
7
|
+
namespace TaleWorlds.GauntletUI.Canvas
|
6
8
|
{
|
7
9
|
public class CanvasWidget : Widget, ILayout
|
8
10
|
{
|
@@ -0,0 +1,49 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Collections.Generic;
|
3
|
+
using System.Runtime.CompilerServices;
|
4
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
5
|
+
|
6
|
+
namespace TaleWorlds.GauntletUI.GamepadNavigation
|
7
|
+
{
|
8
|
+
public class GamepadNavigationForcedScopeCollection
|
9
|
+
{
|
10
|
+
public Action<GamepadNavigationForcedScopeCollection> OnAvailabilityChanged;
|
11
|
+
|
12
|
+
public bool IsEnabled { get; set; }
|
13
|
+
|
14
|
+
public bool IsDisabled { get; set; }
|
15
|
+
|
16
|
+
public string CollectionID { [CompilerGenerated]
|
17
|
+
get; [CompilerGenerated]
|
18
|
+
set; }
|
19
|
+
|
20
|
+
public int CollectionOrder { [CompilerGenerated]
|
21
|
+
get; [CompilerGenerated]
|
22
|
+
set; }
|
23
|
+
|
24
|
+
public Widget ParentWidget { get; set; }
|
25
|
+
|
26
|
+
public List<GamepadNavigationScope> Scopes { [CompilerGenerated]
|
27
|
+
get; }
|
28
|
+
|
29
|
+
public GamepadNavigationScope ActiveScope { [CompilerGenerated]
|
30
|
+
get; [CompilerGenerated]
|
31
|
+
set; }
|
32
|
+
|
33
|
+
public GamepadNavigationScope PreviousScope { [CompilerGenerated]
|
34
|
+
get; [CompilerGenerated]
|
35
|
+
set; }
|
36
|
+
|
37
|
+
public extern GamepadNavigationForcedScopeCollection();
|
38
|
+
|
39
|
+
public extern bool IsAvailable();
|
40
|
+
|
41
|
+
public extern void AddScope(GamepadNavigationScope scope);
|
42
|
+
|
43
|
+
public extern void RemoveScope(GamepadNavigationScope scope);
|
44
|
+
|
45
|
+
public extern void ClearScopes();
|
46
|
+
|
47
|
+
public override extern string ToString();
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
using System.Collections.ObjectModel;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
4
|
+
|
5
|
+
namespace TaleWorlds.GauntletUI.GamepadNavigation
|
6
|
+
{
|
7
|
+
public class GamepadNavigationScope
|
8
|
+
{
|
9
|
+
public string ScopeID { [CompilerGenerated]
|
10
|
+
get; [CompilerGenerated]
|
11
|
+
set; }
|
12
|
+
|
13
|
+
public bool DoNotAutomaticallyFindChildren { [CompilerGenerated]
|
14
|
+
get; [CompilerGenerated]
|
15
|
+
set; }
|
16
|
+
|
17
|
+
public GamepadNavigationTypes ScopeMovements { [CompilerGenerated]
|
18
|
+
get; [CompilerGenerated]
|
19
|
+
set; }
|
20
|
+
|
21
|
+
public GamepadNavigationTypes AlternateScopeMovements { [CompilerGenerated]
|
22
|
+
get; [CompilerGenerated]
|
23
|
+
set; }
|
24
|
+
|
25
|
+
public int AlternateMovementStepSize { [CompilerGenerated]
|
26
|
+
get; [CompilerGenerated]
|
27
|
+
set; }
|
28
|
+
|
29
|
+
public bool HasCircularMovement { [CompilerGenerated]
|
30
|
+
get; [CompilerGenerated]
|
31
|
+
set; }
|
32
|
+
|
33
|
+
public ReadOnlyCollection<Widget> NavigatableWidgets { [CompilerGenerated]
|
34
|
+
get; }
|
35
|
+
|
36
|
+
public Widget ParentWidget { get; set; }
|
37
|
+
|
38
|
+
public int LatestNavigationElementIndex { [CompilerGenerated]
|
39
|
+
get; [CompilerGenerated]
|
40
|
+
set; }
|
41
|
+
|
42
|
+
public bool DoNotAutoGainNavigationOnInit { [CompilerGenerated]
|
43
|
+
get; [CompilerGenerated]
|
44
|
+
set; }
|
45
|
+
|
46
|
+
public bool ForceGainNavigationBasedOnDirection { [CompilerGenerated]
|
47
|
+
get; [CompilerGenerated]
|
48
|
+
set; }
|
49
|
+
|
50
|
+
public bool ForceGainNavigationOnClosestChild { [CompilerGenerated]
|
51
|
+
get; [CompilerGenerated]
|
52
|
+
set; }
|
53
|
+
|
54
|
+
public bool NavigateFromScopeEdges { [CompilerGenerated]
|
55
|
+
get; [CompilerGenerated]
|
56
|
+
set; }
|
57
|
+
|
58
|
+
public bool DoNotAutoNavigateAfterSort { [CompilerGenerated]
|
59
|
+
get; [CompilerGenerated]
|
60
|
+
set; }
|
61
|
+
|
62
|
+
public bool FollowMobileTargets { [CompilerGenerated]
|
63
|
+
get; [CompilerGenerated]
|
64
|
+
set; }
|
65
|
+
|
66
|
+
public bool IsDefaultNavigationScope { [CompilerGenerated]
|
67
|
+
get; [CompilerGenerated]
|
68
|
+
set; }
|
69
|
+
|
70
|
+
public float ExtendDiscoveryAreaRight { [CompilerGenerated]
|
71
|
+
get; [CompilerGenerated]
|
72
|
+
set; }
|
73
|
+
|
74
|
+
public float ExtendDiscoveryAreaTop { [CompilerGenerated]
|
75
|
+
get; [CompilerGenerated]
|
76
|
+
set; }
|
77
|
+
|
78
|
+
public float ExtendDiscoveryAreaBottom { [CompilerGenerated]
|
79
|
+
get; [CompilerGenerated]
|
80
|
+
set; }
|
81
|
+
|
82
|
+
public float ExtendDiscoveryAreaLeft { [CompilerGenerated]
|
83
|
+
get; [CompilerGenerated]
|
84
|
+
set; }
|
85
|
+
|
86
|
+
public bool IsEnabled { get; set; }
|
87
|
+
|
88
|
+
public bool IsDisabled { get; set; }
|
89
|
+
|
90
|
+
public string UpNavigationScopeID { get; set; }
|
91
|
+
|
92
|
+
public string RightNavigationScopeID { get; set; }
|
93
|
+
|
94
|
+
public string DownNavigationScopeID { get; set; }
|
95
|
+
|
96
|
+
public string LeftNavigationScopeID { get; set; }
|
97
|
+
|
98
|
+
public GamepadNavigationScope UpNavigationScope { get; set; }
|
99
|
+
|
100
|
+
public GamepadNavigationScope RightNavigationScope { get; set; }
|
101
|
+
|
102
|
+
public GamepadNavigationScope DownNavigationScope { get; set; }
|
103
|
+
|
104
|
+
public GamepadNavigationScope LeftNavigationScope { get; set; }
|
105
|
+
|
106
|
+
public extern GamepadNavigationScope();
|
107
|
+
|
108
|
+
public extern void AddWidgetAtIndex(Widget widget, int index);
|
109
|
+
|
110
|
+
public extern void AddWidget(Widget widget);
|
111
|
+
|
112
|
+
public extern void RemoveWidget(Widget widget);
|
113
|
+
|
114
|
+
public extern void ClearNavigatableWidgets();
|
115
|
+
}
|
116
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
using System;
|
2
|
+
|
3
|
+
namespace TaleWorlds.GauntletUI.GamepadNavigation
|
4
|
+
{
|
5
|
+
[Flags]
|
6
|
+
public enum GamepadNavigationTypes
|
7
|
+
{
|
8
|
+
None = 0x0,
|
9
|
+
Up = 0x1,
|
10
|
+
Down = 0x2,
|
11
|
+
Vertical = 0x3,
|
12
|
+
Left = 0x4,
|
13
|
+
Right = 0x8,
|
14
|
+
Horizontal = 0xC
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
using System.Runtime.CompilerServices;
|
2
|
+
|
3
|
+
namespace TaleWorlds.GauntletUI.GamepadNavigation
|
4
|
+
{
|
5
|
+
public class GauntletGamepadNavigationManager
|
6
|
+
{
|
7
|
+
public static GauntletGamepadNavigationManager Instance { [CompilerGenerated]
|
8
|
+
get; }
|
9
|
+
|
10
|
+
public GamepadNavigationTypes AvailableMovements { [CompilerGenerated]
|
11
|
+
get; [CompilerGenerated]
|
12
|
+
set; }
|
13
|
+
|
14
|
+
public bool IsHoldingDpadKeysForNavigation { [CompilerGenerated]
|
15
|
+
get; }
|
16
|
+
|
17
|
+
public bool IsCursorMovingForNavigation { [CompilerGenerated]
|
18
|
+
get; }
|
19
|
+
|
20
|
+
public bool IsInWrapMovement { [CompilerGenerated]
|
21
|
+
get; }
|
22
|
+
|
23
|
+
public static extern void Initialize();
|
24
|
+
|
25
|
+
public extern void OnFinalize();
|
26
|
+
|
27
|
+
public extern void Update(float dt);
|
28
|
+
}
|
29
|
+
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
using System.Numerics;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
2
3
|
using TaleWorlds.TwoDimension;
|
3
4
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
5
|
+
namespace TaleWorlds.GauntletUI.Layout
|
5
6
|
{
|
6
7
|
public class DefaultLayout : ILayout
|
7
8
|
{
|
@@ -1,7 +1,8 @@
|
|
1
1
|
using System.Numerics;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
2
3
|
using TaleWorlds.TwoDimension;
|
3
4
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
5
|
+
namespace TaleWorlds.GauntletUI.Layout
|
5
6
|
{
|
6
7
|
public class DragCarrierLayout : ILayout
|
7
8
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
1
|
+
namespace TaleWorlds.GauntletUI.Layout
|
2
2
|
{
|
3
3
|
public enum GridHorizontalLayoutMethod
|
4
4
|
{
|
@@ -1,8 +1,9 @@
|
|
1
1
|
using System.Numerics;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
3
4
|
using TaleWorlds.TwoDimension;
|
4
5
|
|
5
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.Layout
|
6
7
|
{
|
7
8
|
public class GridLayout : ILayout
|
8
9
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
1
|
+
namespace TaleWorlds.GauntletUI.Layout
|
2
2
|
{
|
3
3
|
public enum GridVerticalLayoutMethod
|
4
4
|
{
|
@@ -1,7 +1,8 @@
|
|
1
1
|
using System.Numerics;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
2
3
|
using TaleWorlds.TwoDimension;
|
3
4
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
5
|
+
namespace TaleWorlds.GauntletUI.Layout
|
5
6
|
{
|
6
7
|
public interface ILayout
|
7
8
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.GauntletUI
|
1
|
+
namespace TaleWorlds.GauntletUI.Layout
|
2
2
|
{
|
3
3
|
public enum LayoutMethod
|
4
4
|
{
|
@@ -1,8 +1,9 @@
|
|
1
1
|
using System.Numerics;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
3
4
|
using TaleWorlds.TwoDimension;
|
4
5
|
|
5
|
-
namespace TaleWorlds.GauntletUI
|
6
|
+
namespace TaleWorlds.GauntletUI.Layout
|
6
7
|
{
|
7
8
|
public class StackLayout : ILayout
|
8
9
|
{
|
@@ -1,7 +1,8 @@
|
|
1
1
|
using System.Numerics;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
2
3
|
using TaleWorlds.TwoDimension;
|
3
4
|
|
4
|
-
namespace TaleWorlds.GauntletUI
|
5
|
+
namespace TaleWorlds.GauntletUI.Layout
|
5
6
|
{
|
6
7
|
public class TextLayout : ILayout
|
7
8
|
{
|
@@ -0,0 +1,26 @@
|
|
1
|
+
using TaleWorlds.GauntletUI;
|
2
|
+
using TaleWorlds.GauntletUI.BaseTypes;
|
3
|
+
|
4
|
+
namespace TaleWorlds.MountAndBlade.GauntletUI.Widgets
|
5
|
+
{
|
6
|
+
public class DimensionSyncWidget : Widget
|
7
|
+
{
|
8
|
+
public enum Dimensions
|
9
|
+
{
|
10
|
+
None,
|
11
|
+
Horizontal,
|
12
|
+
Vertical,
|
13
|
+
HorizontalAndVertical
|
14
|
+
}
|
15
|
+
|
16
|
+
public Widget WidgetToCopyHeightFrom { get; set; }
|
17
|
+
|
18
|
+
public int PaddingAmount { get; set; }
|
19
|
+
|
20
|
+
public Dimensions DimensionToSync { get; set; }
|
21
|
+
|
22
|
+
public extern DimensionSyncWidget(UIContext context);
|
23
|
+
|
24
|
+
protected override extern void OnLateUpdate(float dt);
|
25
|
+
}
|
26
|
+
}
|