@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
4
4
|
{
|
5
5
|
public class AgentInteractionInterfaceVM : ViewModel
|
6
6
|
{
|
@@ -1,9 +0,0 @@
|
|
1
|
-
using TaleWorlds.Library;
|
2
|
-
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
4
|
-
{
|
5
|
-
public class GameServerVM : ViewModel
|
6
|
-
{
|
7
|
-
public extern GameServerVM();
|
8
|
-
}
|
9
|
-
}
|
@@ -6,7 +6,7 @@ using TaleWorlds.Library;
|
|
6
6
|
using TaleWorlds.MountAndBlade.ViewModelCollection.HUD;
|
7
7
|
using TaleWorlds.MountAndBlade.ViewModelCollection.HUD.DamageFeed;
|
8
8
|
|
9
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
9
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
10
10
|
{
|
11
11
|
public class MissionAgentStatusVM : ViewModel
|
12
12
|
{
|
@@ -1,4 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
2
|
-
{
|
3
|
-
public delegate void OnBeforeOrderDelegate();
|
4
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
2
|
-
{
|
3
|
-
public delegate void OnRefreshVisualsDelegate();
|
4
|
-
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
using TaleWorlds.Engine;
|
4
4
|
using TaleWorlds.InputSystem;
|
5
5
|
using TaleWorlds.Library;
|
@@ -1,125 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
-
using TaleWorlds.InputSystem;
|
6
|
-
using TaleWorlds.Library;
|
7
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
|
8
|
-
|
9
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
10
|
-
{
|
11
|
-
public class PopUpVM : ViewModel
|
12
|
-
{
|
13
|
-
public bool IsPopupActive { get; }
|
14
|
-
|
15
|
-
[DataSourceProperty]
|
16
|
-
public InputKeyItemVM CancelInputKey { get; set; }
|
17
|
-
|
18
|
-
[DataSourceProperty]
|
19
|
-
public InputKeyItemVM DoneInputKey { get; set; }
|
20
|
-
|
21
|
-
[DataSourceProperty]
|
22
|
-
public BasicTooltipViewModel DoneButtonDisabledReasonHint { get; set; }
|
23
|
-
|
24
|
-
[DataSourceProperty]
|
25
|
-
public string TitleText { get; }
|
26
|
-
|
27
|
-
[DataSourceProperty]
|
28
|
-
public string PopUpLabel { get; }
|
29
|
-
|
30
|
-
[DataSourceProperty]
|
31
|
-
public string ButtonOkLabel { get; }
|
32
|
-
|
33
|
-
[DataSourceProperty]
|
34
|
-
public string ButtonCancelLabel { get; }
|
35
|
-
|
36
|
-
[DataSourceProperty]
|
37
|
-
public bool IsButtonOkShown { get; }
|
38
|
-
|
39
|
-
[DataSourceProperty]
|
40
|
-
public bool IsButtonOkEnabled { get; set; }
|
41
|
-
|
42
|
-
[DataSourceProperty]
|
43
|
-
public bool IsButtonOkDisabled { get; set; }
|
44
|
-
|
45
|
-
[DataSourceProperty]
|
46
|
-
public bool IsButtonCancelShown { get; }
|
47
|
-
|
48
|
-
[DataSourceProperty]
|
49
|
-
public bool IsTimerShown { get; }
|
50
|
-
|
51
|
-
[DataSourceProperty]
|
52
|
-
public float RemainingQueryTime { get; set; }
|
53
|
-
|
54
|
-
[DataSourceProperty]
|
55
|
-
public float TotalQueryTime { get; set; }
|
56
|
-
|
57
|
-
[DataSourceProperty]
|
58
|
-
public MBBindingList<InquiryElementVM> InquiryElements { get; set; }
|
59
|
-
|
60
|
-
[DataSourceProperty]
|
61
|
-
public bool IsSingleQueryShown { get; set; }
|
62
|
-
|
63
|
-
[DataSourceProperty]
|
64
|
-
public bool IsTextQueryShown { get; set; }
|
65
|
-
|
66
|
-
[DataSourceProperty]
|
67
|
-
public bool IsShown { get; set; }
|
68
|
-
|
69
|
-
[DataSourceProperty]
|
70
|
-
public bool IsMultiSelectionQueryShown { get; set; }
|
71
|
-
|
72
|
-
[DataSourceProperty]
|
73
|
-
public int MaxSelectableOptionCount { get; }
|
74
|
-
|
75
|
-
[DataSourceProperty]
|
76
|
-
public string InputText { get; set; }
|
77
|
-
|
78
|
-
[DataSourceProperty]
|
79
|
-
public bool IsInputObfuscated { get; }
|
80
|
-
|
81
|
-
public event Action<MultiSelectionInquiryData> OnCreateNewMultiselectionInquiry
|
82
|
-
{
|
83
|
-
[CompilerGenerated]
|
84
|
-
add;
|
85
|
-
[CompilerGenerated]
|
86
|
-
remove;
|
87
|
-
}
|
88
|
-
|
89
|
-
public event Action<InquiryData> OnCreateNewInquiry
|
90
|
-
{
|
91
|
-
[CompilerGenerated]
|
92
|
-
add;
|
93
|
-
[CompilerGenerated]
|
94
|
-
remove;
|
95
|
-
}
|
96
|
-
|
97
|
-
public event Action<TextInquiryData> OnCreateNewTextInquiry
|
98
|
-
{
|
99
|
-
[CompilerGenerated]
|
100
|
-
add;
|
101
|
-
[CompilerGenerated]
|
102
|
-
remove;
|
103
|
-
}
|
104
|
-
|
105
|
-
public extern PopUpVM(Action<InquiryData, bool> createQuery, Action<TextInquiryData, bool> createTextQuery, Action<MultiSelectionInquiryData, bool> createMultiSelectionQuery, Action closeQuery);
|
106
|
-
|
107
|
-
public extern void ClearData();
|
108
|
-
|
109
|
-
public extern void OnTick(float dt);
|
110
|
-
|
111
|
-
public extern void ExecuteProcess();
|
112
|
-
|
113
|
-
public extern void ExecuteCancelProcess();
|
114
|
-
|
115
|
-
public extern void ForceClose();
|
116
|
-
|
117
|
-
public override extern void OnFinalize();
|
118
|
-
|
119
|
-
public extern void ForceRefreshKeyVisuals();
|
120
|
-
|
121
|
-
public extern void SetCancelInputKey(HotKey hotKey);
|
122
|
-
|
123
|
-
public extern void SetDoneInputKey(HotKey hotKey);
|
124
|
-
}
|
125
|
-
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.Localization;
|
5
5
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.EscapeMenu
|
7
7
|
{
|
8
8
|
public class EscapeMenuItemVM : ViewModel
|
9
9
|
{
|
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.EscapeMenu
|
6
6
|
{
|
7
7
|
public class EscapeMenuVM : ViewModel
|
8
8
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.EscapeMenu
|
4
4
|
{
|
5
5
|
public class GameTipsVM : ViewModel
|
6
6
|
{
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.Localization;
|
5
5
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.FaceGenerator
|
7
7
|
{
|
8
8
|
public class FaceGenPropertyVM : ViewModel
|
9
9
|
{
|
@@ -1,12 +1,13 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
4
5
|
using TaleWorlds.InputSystem;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
using TaleWorlds.Localization;
|
7
8
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
|
8
9
|
|
9
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
10
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.FaceGenerator
|
10
11
|
{
|
11
12
|
public class FaceGenVM : ViewModel
|
12
13
|
{
|
@@ -43,7 +44,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
43
44
|
Scale = -16,
|
44
45
|
Weight = -17,
|
45
46
|
Build = -18,
|
46
|
-
Pitch = -19
|
47
|
+
Pitch = -19,
|
48
|
+
Race = -20
|
47
49
|
}
|
48
50
|
|
49
51
|
public struct GenderBasedSelectedValue
|
@@ -71,6 +73,12 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
71
73
|
[DataSourceProperty]
|
72
74
|
public InputKeyItemVM DoneInputKey { get; set; }
|
73
75
|
|
76
|
+
[DataSourceProperty]
|
77
|
+
public InputKeyItemVM PreviousTabInputKey { get; set; }
|
78
|
+
|
79
|
+
[DataSourceProperty]
|
80
|
+
public InputKeyItemVM NextTabInputKey { get; set; }
|
81
|
+
|
74
82
|
[DataSourceProperty]
|
75
83
|
public bool AreAllTabsEnabled { get; }
|
76
84
|
|
@@ -101,6 +109,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
101
109
|
[DataSourceProperty]
|
102
110
|
public string SkinColorLbl { get; set; }
|
103
111
|
|
112
|
+
[DataSourceProperty]
|
113
|
+
public string RaceLbl { get; set; }
|
114
|
+
|
104
115
|
[DataSourceProperty]
|
105
116
|
public string GenderLbl { get; set; }
|
106
117
|
|
@@ -164,6 +175,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
164
175
|
[DataSourceProperty]
|
165
176
|
public SelectorVM<SelectorItemVM> TattooColorSelector { get; set; }
|
166
177
|
|
178
|
+
[DataSourceProperty]
|
179
|
+
public SelectorVM<SelectorItemVM> RaceSelector { get; set; }
|
180
|
+
|
167
181
|
[DataSourceProperty]
|
168
182
|
public int Tab { get; set; }
|
169
183
|
|
@@ -179,6 +193,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
179
193
|
[DataSourceProperty]
|
180
194
|
public bool CanChangeGender { get; set; }
|
181
195
|
|
196
|
+
[DataSourceProperty]
|
197
|
+
public bool CanChangeRace { get; set; }
|
198
|
+
|
182
199
|
[DataSourceProperty]
|
183
200
|
public MBBindingList<FaceGenPropertyVM> FaceProperties { get; set; }
|
184
201
|
|
@@ -248,7 +265,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
248
265
|
|
249
266
|
public extern void SelectNextTab();
|
250
267
|
|
251
|
-
public extern void Refresh();
|
268
|
+
public extern void Refresh(bool clearProperties);
|
252
269
|
|
253
270
|
public extern void ExecuteHearCurrentVoiceSample();
|
254
271
|
|
@@ -272,7 +289,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
272
289
|
|
273
290
|
public extern void AddCommand();
|
274
291
|
|
275
|
-
public extern void SetBodyProperties(BodyProperties bodyProperties, bool ignoreDebugValues, int gender = -1, bool recordChange = false);
|
292
|
+
public extern void SetBodyProperties(BodyProperties bodyProperties, bool ignoreDebugValues, int race = 0, int gender = -1, bool recordChange = false);
|
276
293
|
|
277
294
|
public extern void UpdateFacegen();
|
278
295
|
|
@@ -281,5 +298,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
281
298
|
public extern void SetCancelInputKey(HotKey hotKey);
|
282
299
|
|
283
300
|
public extern void SetDoneInputKey(HotKey hotKey);
|
301
|
+
|
302
|
+
public extern void SetPreviousTabInputKey(HotKey hotKey);
|
303
|
+
|
304
|
+
public extern void SetNextTabInputKey(HotKey hotKey);
|
284
305
|
}
|
285
306
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.FaceGenerator
|
5
5
|
{
|
6
6
|
public class FacegenListItemVM : ViewModel
|
7
7
|
{
|
@@ -1,32 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Engine.Options;
|
4
|
-
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
6
|
-
{
|
7
|
-
public class ActionOptionData : IOptionData
|
8
|
-
{
|
9
|
-
public Action OnAction { [CompilerGenerated]
|
10
|
-
get; }
|
11
|
-
|
12
|
-
public extern ActionOptionData(ManagedOptions.ManagedOptionsType managedType, Action onAction);
|
13
|
-
|
14
|
-
public extern ActionOptionData(NativeOptions.NativeOptionsType nativeType, Action onAction);
|
15
|
-
|
16
|
-
public extern ActionOptionData(string optionTypeId, Action onAction);
|
17
|
-
|
18
|
-
public extern void Commit();
|
19
|
-
|
20
|
-
public extern float GetDefaultValue();
|
21
|
-
|
22
|
-
public extern object GetOptionType();
|
23
|
-
|
24
|
-
public extern float GetValue(bool forceRefresh);
|
25
|
-
|
26
|
-
public extern bool IsNative();
|
27
|
-
|
28
|
-
public extern void SetValue(float value);
|
29
|
-
|
30
|
-
public extern bool IsAction();
|
31
|
-
}
|
32
|
-
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
1
2
|
using TaleWorlds.Engine.Options;
|
2
3
|
using TaleWorlds.Library;
|
3
4
|
using TaleWorlds.Localization;
|
@@ -27,7 +28,10 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
|
27
28
|
public int OptionTypeID { get; set; }
|
28
29
|
|
29
30
|
[DataSourceProperty]
|
30
|
-
public bool
|
31
|
+
public bool IsEnabled { get; set; }
|
32
|
+
|
33
|
+
[DataSourceProperty]
|
34
|
+
public HintViewModel Hint { get; set; }
|
31
35
|
|
32
36
|
protected extern GenericOptionDataVM(OptionsVM optionsVM, IOptionData option, TextObject name, TextObject description, OptionsVM.OptionsDataType typeID);
|
33
37
|
|
@@ -39,6 +43,10 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
|
39
43
|
|
40
44
|
public extern IOptionData GetOptionData();
|
41
45
|
|
46
|
+
public extern void ResetToDefault();
|
47
|
+
|
48
|
+
public extern void UpdateEnableState();
|
49
|
+
|
42
50
|
public abstract void UpdateValue();
|
43
51
|
|
44
52
|
public abstract void Cancel();
|
@@ -0,0 +1,45 @@
|
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using TaleWorlds.Engine.Options;
|
3
|
+
using TaleWorlds.Library;
|
4
|
+
using TaleWorlds.Localization;
|
5
|
+
using TaleWorlds.MountAndBlade.Options;
|
6
|
+
|
7
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
8
|
+
{
|
9
|
+
public class GroupedOptionCategoryVM : ViewModel
|
10
|
+
{
|
11
|
+
protected readonly OptionsVM _options;
|
12
|
+
|
13
|
+
public IEnumerable<GenericOptionDataVM> AllOptions { get; }
|
14
|
+
|
15
|
+
[DataSourceProperty]
|
16
|
+
public bool IsEnabled { get; set; }
|
17
|
+
|
18
|
+
[DataSourceProperty]
|
19
|
+
public bool IsResetSupported { get; set; }
|
20
|
+
|
21
|
+
[DataSourceProperty]
|
22
|
+
public string Name { get; set; }
|
23
|
+
|
24
|
+
[DataSourceProperty]
|
25
|
+
public string ResetText { get; set; }
|
26
|
+
|
27
|
+
[DataSourceProperty]
|
28
|
+
public MBBindingList<OptionGroupVM> Groups { get; set; }
|
29
|
+
|
30
|
+
[DataSourceProperty]
|
31
|
+
public MBBindingList<GenericOptionDataVM> BaseOptions { get; set; }
|
32
|
+
|
33
|
+
public extern GroupedOptionCategoryVM(OptionsVM options, TextObject name, OptionCategory category, bool isEnabled, bool isResetSupported = false);
|
34
|
+
|
35
|
+
public override extern void RefreshValues();
|
36
|
+
|
37
|
+
public extern void ResetData();
|
38
|
+
|
39
|
+
public extern void ExecuteResetToDefault();
|
40
|
+
|
41
|
+
public extern GenericOptionDataVM GetOption(ManagedOptions.ManagedOptionsType optionType);
|
42
|
+
|
43
|
+
public extern GenericOptionDataVM GetOption(NativeOptions.NativeOptionsType optionType);
|
44
|
+
}
|
45
|
+
}
|
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using TaleWorlds.InputSystem;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
7
7
|
{
|
8
8
|
public abstract class KeyOptionVM : ViewModel
|
9
9
|
{
|
@@ -22,6 +22,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
|
22
22
|
|
23
23
|
public new extern void ExecuteCancel();
|
24
24
|
|
25
|
+
public extern void ExecuteApply();
|
26
|
+
|
25
27
|
public extern void ForceCancel();
|
26
28
|
}
|
27
29
|
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
using System.Collections.Generic;
|
2
|
-
using TaleWorlds.Engine.Options;
|
3
|
-
using TaleWorlds.Library;
|
4
|
-
using TaleWorlds.Localization;
|
5
|
-
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
7
|
-
{
|
8
|
-
public class OptionCategoryVM : ViewModel
|
9
|
-
{
|
10
|
-
public readonly bool IsNative;
|
11
|
-
|
12
|
-
[DataSourceProperty]
|
13
|
-
public string Name { get; set; }
|
14
|
-
|
15
|
-
[DataSourceProperty]
|
16
|
-
public MBBindingList<GenericOptionDataVM> Options { get; set; }
|
17
|
-
|
18
|
-
public extern OptionCategoryVM(OptionsVM options, TextObject name, IEnumerable<IOptionData> targetList, bool isNative);
|
19
|
-
|
20
|
-
public override extern void RefreshValues();
|
21
|
-
}
|
22
|
-
}
|
@@ -5,7 +5,7 @@ using TaleWorlds.Localization;
|
|
5
5
|
|
6
6
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
7
7
|
{
|
8
|
-
public class
|
8
|
+
public class OptionGroupVM : ViewModel
|
9
9
|
{
|
10
10
|
[DataSourceProperty]
|
11
11
|
public string Name { get; set; }
|
@@ -13,7 +13,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
|
13
13
|
[DataSourceProperty]
|
14
14
|
public MBBindingList<GenericOptionDataVM> Options { get; set; }
|
15
15
|
|
16
|
-
public extern
|
16
|
+
public extern OptionGroupVM(TextObject groupName, OptionsVM optionsBase, IEnumerable<IOptionData> optionsList);
|
17
17
|
|
18
18
|
public override extern void RefreshValues();
|
19
19
|
}
|
@@ -4,6 +4,7 @@ using System.Runtime.CompilerServices;
|
|
4
4
|
using TaleWorlds.Engine.Options;
|
5
5
|
using TaleWorlds.InputSystem;
|
6
6
|
using TaleWorlds.Library;
|
7
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.GameKeys;
|
7
8
|
using TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.GamepadOptions;
|
8
9
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
|
9
10
|
|
@@ -28,14 +29,13 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
|
28
29
|
Multiplayer
|
29
30
|
}
|
30
31
|
|
31
|
-
protected readonly
|
32
|
+
protected readonly GroupedOptionCategoryVM _gameplayOptionCategory;
|
32
33
|
|
33
|
-
protected readonly
|
34
|
+
protected readonly GameKeyOptionCategoryVM _gameKeyCategory;
|
34
35
|
|
35
|
-
protected readonly
|
36
|
+
protected readonly GroupedOptionCategoryVM _performanceOptionCategory;
|
36
37
|
|
37
|
-
|
38
|
-
get; }
|
38
|
+
protected readonly List<GroupedOptionCategoryVM> _groupedCategories;
|
39
39
|
|
40
40
|
public OptionsMode CurrentOptionsMode { [CompilerGenerated]
|
41
41
|
get; }
|
@@ -75,14 +75,17 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
|
75
75
|
[DataSourceProperty]
|
76
76
|
public GamepadOptionCategoryVM GamepadOptions { get; }
|
77
77
|
|
78
|
-
|
78
|
+
[DataSourceProperty]
|
79
|
+
public GroupedOptionCategoryVM PerformanceOptions { get; }
|
79
80
|
|
80
|
-
|
81
|
+
[DataSourceProperty]
|
82
|
+
public GroupedOptionCategoryVM AudioOptions { get; }
|
81
83
|
|
82
|
-
|
84
|
+
[DataSourceProperty]
|
85
|
+
public GroupedOptionCategoryVM GameplayOptions { get; }
|
83
86
|
|
84
87
|
[DataSourceProperty]
|
85
|
-
public
|
88
|
+
public GroupedOptionCategoryVM VideoOptions { get; }
|
86
89
|
|
87
90
|
[DataSourceProperty]
|
88
91
|
public BrightnessOptionVM BrightnessPopUp { get; set; }
|
@@ -1,25 +0,0 @@
|
|
1
|
-
using TaleWorlds.Library;
|
2
|
-
using TaleWorlds.Localization;
|
3
|
-
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
5
|
-
{
|
6
|
-
public class PerformanceOptionCategoryVM : ViewModel
|
7
|
-
{
|
8
|
-
[DataSourceProperty]
|
9
|
-
public string Name { get; set; }
|
10
|
-
|
11
|
-
[DataSourceProperty]
|
12
|
-
public MBBindingList<PerformanceOptionGroupVM> Groups { get; set; }
|
13
|
-
|
14
|
-
[DataSourceProperty]
|
15
|
-
public bool IsEnabled { get; set; }
|
16
|
-
|
17
|
-
public extern PerformanceOptionCategoryVM(OptionsVM options, TextObject name);
|
18
|
-
|
19
|
-
public override extern void RefreshValues();
|
20
|
-
|
21
|
-
public override extern void OnFinalize();
|
22
|
-
|
23
|
-
public extern void ApplyValues();
|
24
|
-
}
|
25
|
-
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
2
2
|
using TaleWorlds.Engine.Options;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.Localization;
|
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|
3
3
|
using TaleWorlds.InputSystem;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.AuxiliaryKeys
|
7
7
|
{
|
8
8
|
public class AuxiliaryKeyGroupVM : ViewModel
|
9
9
|
{
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.InputSystem;
|
4
4
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.AuxiliaryKeys
|
6
6
|
{
|
7
7
|
public class AuxiliaryKeyOptionVM : KeyOptionVM
|
8
8
|
{
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using TaleWorlds.Library;
|
4
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.
|
4
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.AuxiliaryKeys;
|
5
5
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.GameKeys
|
7
7
|
{
|
8
8
|
public class GameKeyOptionCategoryVM : ViewModel
|
9
9
|
{
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.InputSystem;
|
4
4
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.GameKeys
|
6
6
|
{
|
7
7
|
public class GameKeyOptionVM : KeyOptionVM
|
8
8
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions.GamepadOptions
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD.Compass
|
5
5
|
{
|
6
6
|
public class CompassTargetVM : ViewModel
|
7
7
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD.FormationMarker
|
5
5
|
{
|
6
6
|
public class MissionFormationMarkerTargetVM : ViewModel
|
7
7
|
{
|
@@ -2,7 +2,7 @@ using System.Collections.Generic;
|
|
2
2
|
using TaleWorlds.Engine;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD.FormationMarker
|
6
6
|
{
|
7
7
|
public class MissionFormationMarkerVM : ViewModel
|
8
8
|
{
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.HUD.KillFeed.General;
|
2
3
|
using TaleWorlds.MountAndBlade.ViewModelCollection.HUD.KillFeed.Personal;
|
3
4
|
|
4
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD.KillFeed
|
@@ -6,7 +7,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD.KillFeed
|
|
6
7
|
public class SPKillFeedVM : ViewModel
|
7
8
|
{
|
8
9
|
[DataSourceProperty]
|
9
|
-
public
|
10
|
+
public SPGeneralKillNotificationVM GeneralCasualty { get; set; }
|
10
11
|
|
11
12
|
[DataSourceProperty]
|
12
13
|
public SPPersonalKillNotificationVM PersonalFeed { get; set; }
|
@@ -1,14 +1,14 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD.KillFeed
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD.KillFeed.General
|
5
5
|
{
|
6
|
-
public class
|
6
|
+
public class SPGeneralKillNotificationItemVM : ViewModel
|
7
7
|
{
|
8
8
|
[DataSourceProperty]
|
9
9
|
public string Message { get; set; }
|
10
10
|
|
11
|
-
public extern
|
11
|
+
public extern SPGeneralKillNotificationItemVM(Agent affectedAgent, Agent affectorAgent, Agent assistedAgent, bool isHeadshot, Action<SPGeneralKillNotificationItemVM> onRemove);
|
12
12
|
|
13
13
|
public extern void ExecuteRemove();
|
14
14
|
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD.KillFeed
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.HUD.KillFeed.General
|
4
4
|
{
|
5
|
-
public class
|
5
|
+
public class SPGeneralKillNotificationVM : ViewModel
|
6
6
|
{
|
7
7
|
[DataSourceProperty]
|
8
|
-
public MBBindingList<
|
8
|
+
public MBBindingList<SPGeneralKillNotificationItemVM> NotificationList { get; set; }
|
9
9
|
|
10
|
-
public extern
|
10
|
+
public extern SPGeneralKillNotificationVM();
|
11
11
|
|
12
12
|
public extern void OnAgentRemoved(Agent affectedAgent, Agent affectorAgent, Agent assistedAgent, bool isHeadshot);
|
13
13
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.InitialMenu
|
5
5
|
{
|
6
6
|
public class InitialMenuOptionVM : ViewModel
|
7
7
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.InitialMenu
|
4
4
|
{
|
5
5
|
public class InitialMenuVM : ViewModel
|
6
6
|
{
|
@@ -26,6 +26,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Input
|
|
26
26
|
|
27
27
|
public override extern void RefreshValues();
|
28
28
|
|
29
|
+
public extern void SetForcedVisibility(bool? isVisible);
|
30
|
+
|
29
31
|
public static extern InputKeyItemVM CreateFromGameKey(GameKey gameKey, bool isConsoleOnly);
|
30
32
|
|
31
33
|
public static extern InputKeyItemVM CreateFromHotKey(HotKey hotKey, bool isConsoleOnly);
|
@@ -0,0 +1,26 @@
|
|
1
|
+
using System;
|
2
|
+
using TaleWorlds.Core;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
|
+
using TaleWorlds.Library;
|
5
|
+
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Inquiries
|
7
|
+
{
|
8
|
+
public class MultiSelectionQueryPopUpVM : PopUpBaseVM
|
9
|
+
{
|
10
|
+
[DataSourceProperty]
|
11
|
+
public MBBindingList<InquiryElementVM> InquiryElements { get; set; }
|
12
|
+
|
13
|
+
[DataSourceProperty]
|
14
|
+
public int MaxSelectableOptionCount { get; set; }
|
15
|
+
|
16
|
+
public extern MultiSelectionQueryPopUpVM(Action closeQuery);
|
17
|
+
|
18
|
+
public extern void SetData(MultiSelectionInquiryData data);
|
19
|
+
|
20
|
+
public override extern void ExecuteAffirmativeAction();
|
21
|
+
|
22
|
+
public override extern void ExecuteNegativeAction();
|
23
|
+
|
24
|
+
public override extern void OnClearData();
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
using System;
|
2
|
+
using TaleWorlds.InputSystem;
|
3
|
+
using TaleWorlds.Library;
|
4
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
|
5
|
+
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Inquiries
|
7
|
+
{
|
8
|
+
public abstract class PopUpBaseVM : ViewModel
|
9
|
+
{
|
10
|
+
protected Action _affirmativeAction;
|
11
|
+
|
12
|
+
protected Action _negativeAction;
|
13
|
+
|
14
|
+
[DataSourceProperty]
|
15
|
+
public string TitleText { get; set; }
|
16
|
+
|
17
|
+
[DataSourceProperty]
|
18
|
+
public string PopUpLabel { get; set; }
|
19
|
+
|
20
|
+
[DataSourceProperty]
|
21
|
+
public string ButtonOkLabel { get; set; }
|
22
|
+
|
23
|
+
[DataSourceProperty]
|
24
|
+
public string ButtonCancelLabel { get; set; }
|
25
|
+
|
26
|
+
[DataSourceProperty]
|
27
|
+
public bool IsButtonOkShown { get; set; }
|
28
|
+
|
29
|
+
[DataSourceProperty]
|
30
|
+
public bool IsButtonCancelShown { get; set; }
|
31
|
+
|
32
|
+
[DataSourceProperty]
|
33
|
+
public bool IsButtonOkEnabled { get; set; }
|
34
|
+
|
35
|
+
[DataSourceProperty]
|
36
|
+
public InputKeyItemVM CancelInputKey { get; set; }
|
37
|
+
|
38
|
+
[DataSourceProperty]
|
39
|
+
public InputKeyItemVM DoneInputKey { get; set; }
|
40
|
+
|
41
|
+
public extern PopUpBaseVM(Action closeQuery);
|
42
|
+
|
43
|
+
public abstract void ExecuteAffirmativeAction();
|
44
|
+
|
45
|
+
public abstract void ExecuteNegativeAction();
|
46
|
+
|
47
|
+
public virtual extern void OnTick(float dt);
|
48
|
+
|
49
|
+
public virtual extern void OnClearData();
|
50
|
+
|
51
|
+
public extern void ForceRefreshKeyVisuals();
|
52
|
+
|
53
|
+
public extern void CloseQuery();
|
54
|
+
|
55
|
+
public override extern void OnFinalize();
|
56
|
+
|
57
|
+
public extern void SetCancelInputKey(HotKey hotKey);
|
58
|
+
|
59
|
+
public extern void SetDoneInputKey(HotKey hotKey);
|
60
|
+
}
|
61
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
using System;
|
2
|
+
using TaleWorlds.Library;
|
3
|
+
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Inquiries
|
5
|
+
{
|
6
|
+
public class SingleQueryPopUpVM : PopUpBaseVM
|
7
|
+
{
|
8
|
+
[DataSourceProperty]
|
9
|
+
public float RemainingQueryTime { get; set; }
|
10
|
+
|
11
|
+
[DataSourceProperty]
|
12
|
+
public float TotalQueryTime { get; set; }
|
13
|
+
|
14
|
+
[DataSourceProperty]
|
15
|
+
public bool IsTimerShown { get; set; }
|
16
|
+
|
17
|
+
public extern SingleQueryPopUpVM(Action closeQuery);
|
18
|
+
|
19
|
+
public override extern void OnTick(float dt);
|
20
|
+
|
21
|
+
public override extern void ExecuteAffirmativeAction();
|
22
|
+
|
23
|
+
public override extern void ExecuteNegativeAction();
|
24
|
+
|
25
|
+
public override extern void OnClearData();
|
26
|
+
|
27
|
+
public extern void SetData(InquiryData data);
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
using System;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
|
+
using TaleWorlds.Library;
|
4
|
+
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Inquiries
|
6
|
+
{
|
7
|
+
public class TextQueryPopUpVM : PopUpBaseVM
|
8
|
+
{
|
9
|
+
[DataSourceProperty]
|
10
|
+
public string InputText { get; set; }
|
11
|
+
|
12
|
+
public bool IsInputObfuscated { get; set; }
|
13
|
+
|
14
|
+
[DataSourceProperty]
|
15
|
+
public HintViewModel DoneButtonDisabledReasonHint { get; set; }
|
16
|
+
|
17
|
+
public extern TextQueryPopUpVM(Action closeQuery);
|
18
|
+
|
19
|
+
public extern void SetData(TextInquiryData data);
|
20
|
+
|
21
|
+
public override extern void ExecuteAffirmativeAction();
|
22
|
+
|
23
|
+
public override extern void ExecuteNegativeAction();
|
24
|
+
|
25
|
+
public override extern void OnClearData();
|
26
|
+
}
|
27
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
using TaleWorlds.Localization;
|
6
6
|
using TaleWorlds.MountAndBlade.Diamond;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
@@ -10,7 +10,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
10
10
|
[DataSourceProperty]
|
11
11
|
public string ScoreText { get; set; }
|
12
12
|
|
13
|
-
public extern MPEndOfBattlePlayerVM(MissionPeer peer, int placement);
|
13
|
+
public extern MPEndOfBattlePlayerVM(MissionPeer peer, int displayedScore, int placement);
|
14
14
|
|
15
15
|
public override extern void RefreshValues();
|
16
16
|
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.Localization;
|
3
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.EscapeMenu;
|
3
4
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
5
6
|
{
|
6
7
|
public class MPEscapeMenuVM : EscapeMenuVM
|
7
8
|
{
|
@@ -2,7 +2,7 @@ using System.Runtime.CompilerServices;
|
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout;
|
5
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby;
|
5
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Armory;
|
6
6
|
|
7
7
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
8
8
|
{
|
@@ -67,5 +67,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
67
67
|
public extern void RefreshPreview(BasicCharacterObject character, DynamicBodyProperties dynamicBodyProperties, bool isFemale);
|
68
68
|
|
69
69
|
public extern void RefreshActivePerks();
|
70
|
+
|
71
|
+
public extern void ExecuteFocusBegin();
|
72
|
+
|
73
|
+
public extern void ExecuteFocusEnd();
|
70
74
|
}
|
71
75
|
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
using TaleWorlds.Library;
|
3
|
-
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
5
|
-
{
|
6
|
-
public class MissionLobbyVM : ViewModel
|
7
|
-
{
|
8
|
-
[DataSourceProperty]
|
9
|
-
public string WelcomeMessage { get; set; }
|
10
|
-
|
11
|
-
[DataSourceProperty]
|
12
|
-
public string DoneLbl { get; set; }
|
13
|
-
|
14
|
-
public extern MissionLobbyVM(Action onClose, string welcomeMesssage);
|
15
|
-
|
16
|
-
public override extern void RefreshValues();
|
17
|
-
|
18
|
-
public extern void ExecuteDismiss();
|
19
|
-
}
|
20
|
-
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
@@ -2,6 +2,7 @@ using TaleWorlds.Core;
|
|
2
2
|
using TaleWorlds.Engine;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.HUDExtensions;
|
5
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.KillFeed;
|
5
6
|
|
6
7
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
7
8
|
{
|
@@ -1,6 +1,6 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby;
|
3
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
6
6
|
{
|
@@ -32,8 +32,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
32
32
|
|
33
33
|
public extern MultiplayerPollProgressVM();
|
34
34
|
|
35
|
-
public override extern void RefreshValues();
|
36
|
-
|
37
35
|
public extern void OnKickPollOpened(MissionPeer initiatorPeer, MissionPeer targetPeer, bool isBanRequested);
|
38
36
|
|
39
37
|
public extern void OnPollUpdated(int votesAccepted, int votesRejected);
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
using TaleWorlds.MountAndBlade.Diamond;
|
5
6
|
using TaleWorlds.PlayerServices;
|
@@ -29,10 +30,17 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
29
30
|
[DataSourceProperty]
|
30
31
|
public SelectorVM<SelectorItemVM> ReportReasons { get; set; }
|
31
32
|
|
33
|
+
[DataSourceProperty]
|
34
|
+
public HintViewModel DisabledReasonHint { get; set; }
|
35
|
+
|
32
36
|
public extern MultiplayerReportPlayerVM(Action<string, PlayerId, PlayerReportType, string> onReportDone, Action onCancel);
|
33
37
|
|
34
38
|
public override extern void RefreshValues();
|
35
39
|
|
36
40
|
public extern void OpenNewReportWithGamePlayerId(string gameId, PlayerId playerId, bool isRequestedFromMission);
|
41
|
+
|
42
|
+
public extern void ExecuteDone();
|
43
|
+
|
44
|
+
public extern void ExecuteCancel();
|
37
45
|
}
|
38
46
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
@@ -49,10 +49,21 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout
|
|
49
49
|
[DataSourceProperty]
|
50
50
|
public bool IsNumOfTroopsEnabled { get; set; }
|
51
51
|
|
52
|
+
[DataSourceProperty]
|
53
|
+
public HeroPerkVM FirstPerk { get; }
|
54
|
+
|
55
|
+
[DataSourceProperty]
|
56
|
+
public HeroPerkVM SecondPerk { get; }
|
57
|
+
|
58
|
+
[DataSourceProperty]
|
59
|
+
public HeroPerkVM ThirdPerk { get; }
|
60
|
+
|
52
61
|
public extern HeroClassVM(Action<HeroClassVM> onSelect, Action<HeroPerkVM, MPPerkVM> onPerkSelect, MultiplayerClassDivisions.MPHeroClass heroClass, bool useSecondary);
|
53
62
|
|
54
63
|
public override extern void RefreshValues();
|
55
64
|
|
65
|
+
public extern void UpdateEnabled();
|
66
|
+
|
56
67
|
[UsedImplicitly]
|
57
68
|
public extern void OnSelect();
|
58
69
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
6
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
6
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout
|
@@ -30,5 +30,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout
|
|
30
30
|
public extern MPPerkVM(Action<MPPerkVM> onSelectPerk, IReadOnlyPerkObject perk, bool isSelectable, int perkIndex);
|
31
31
|
|
32
32
|
public override extern void RefreshValues();
|
33
|
+
|
34
|
+
public extern void ExecuteSelectPerk();
|
33
35
|
}
|
34
36
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.HUD;
|
2
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.HUD.Compass;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout
|
5
5
|
{
|
@@ -1,8 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout;
|
4
3
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout
|
6
5
|
{
|
7
6
|
public class MultiplayerClassLoadoutVM : ViewModel
|
8
7
|
{
|
@@ -83,6 +82,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
83
82
|
|
84
83
|
public extern void OnPeerEquipmentRefreshed(MissionPeer peer);
|
85
84
|
|
85
|
+
public extern void OnGoldUpdated();
|
86
|
+
|
86
87
|
public extern void RefreshRemainingTime();
|
87
88
|
}
|
88
89
|
}
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using JetBrains.Annotations;
|
4
4
|
using TaleWorlds.Core;
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
8
8
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.EndOfRound
|
5
5
|
{
|
6
6
|
public class MultiplayerEndOfRoundSideVM : ViewModel
|
7
7
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.EndOfRound
|
4
4
|
{
|
5
5
|
public class MultiplayerEndOfRoundVM : ViewModel
|
6
6
|
{
|
@@ -1,7 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FactionBanVote;
|
3
2
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FactionBanVote
|
5
4
|
{
|
6
5
|
public class MultiplayerFactionBanVM : ViewModel
|
7
6
|
{
|
@@ -1,11 +1,11 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.Engine;
|
3
3
|
using TaleWorlds.Library;
|
4
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker;
|
4
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker.Targets;
|
5
5
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker
|
7
7
|
{
|
8
|
-
public class
|
8
|
+
public class MultiplayerMissionMarkerVM : ViewModel
|
9
9
|
{
|
10
10
|
public class MarkerDistanceComparer : IComparer<MissionMarkerTargetVM>
|
11
11
|
{
|
@@ -15,7 +15,13 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
15
15
|
}
|
16
16
|
|
17
17
|
[DataSourceProperty]
|
18
|
-
public MBBindingList<
|
18
|
+
public MBBindingList<MissionFlagMarkerTargetVM> FlagTargets { get; set; }
|
19
|
+
|
20
|
+
[DataSourceProperty]
|
21
|
+
public MBBindingList<MissionPeerMarkerTargetVM> PeerTargets { get; set; }
|
22
|
+
|
23
|
+
[DataSourceProperty]
|
24
|
+
public MBBindingList<MissionSiegeEngineMarkerTargetVM> SiegeEngineTargets { get; set; }
|
19
25
|
|
20
26
|
[DataSourceProperty]
|
21
27
|
public MBBindingList<MissionAlwaysVisibleMarkerTargetVM> AlwaysVisibleTargets { get; set; }
|
@@ -23,12 +29,12 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
23
29
|
[DataSourceProperty]
|
24
30
|
public bool IsEnabled { get; set; }
|
25
31
|
|
26
|
-
public extern
|
32
|
+
public extern MultiplayerMissionMarkerVM(Camera missionCamera);
|
27
33
|
|
28
34
|
public override extern void OnFinalize();
|
29
35
|
|
30
36
|
public extern void Tick(float dt);
|
31
37
|
|
32
|
-
public extern void OnRemoveAlwaysVisibleMarker(MissionAlwaysVisibleMarkerTargetVM
|
38
|
+
public extern void OnRemoveAlwaysVisibleMarker(MissionAlwaysVisibleMarkerTargetVM marker);
|
33
39
|
}
|
34
40
|
}
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker.Targets
|
6
6
|
{
|
7
7
|
public class MissionAlwaysVisibleMarkerTargetVM : MissionMarkerTargetVM
|
8
8
|
{
|
@@ -2,9 +2,8 @@ using System.Runtime.CompilerServices;
|
|
2
2
|
using TaleWorlds.Engine;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.MountAndBlade.Objects;
|
5
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker;
|
6
5
|
|
7
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker.Targets
|
8
7
|
{
|
9
8
|
public class MissionFlagMarkerTargetVM : MissionMarkerTargetVM
|
10
9
|
{
|
@@ -1,10 +1,12 @@
|
|
1
1
|
using TaleWorlds.Engine;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker.Targets
|
5
5
|
{
|
6
6
|
public abstract class MissionMarkerTargetVM : ViewModel
|
7
7
|
{
|
8
|
+
public readonly MissionMarkerType MissionMarkerType;
|
9
|
+
|
8
10
|
public abstract Vec3 WorldPosition { get; }
|
9
11
|
|
10
12
|
protected abstract float HeightOffset { get; }
|
@@ -1,8 +1,9 @@
|
|
1
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker
|
1
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker.Targets
|
2
2
|
{
|
3
3
|
public enum MissionMarkerType
|
4
4
|
{
|
5
5
|
Flag,
|
6
|
-
Peer
|
6
|
+
Peer,
|
7
|
+
SiegeEngine
|
7
8
|
}
|
8
9
|
}
|
@@ -2,7 +2,7 @@ using System.Runtime.CompilerServices;
|
|
2
2
|
using TaleWorlds.Engine;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker.Targets
|
6
6
|
{
|
7
7
|
public class MissionPeerMarkerTargetVM : MissionMarkerTargetVM
|
8
8
|
{
|
@@ -0,0 +1,19 @@
|
|
1
|
+
using TaleWorlds.Core;
|
2
|
+
using TaleWorlds.Library;
|
3
|
+
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.FlagMarker.Targets
|
5
|
+
{
|
6
|
+
public class MissionSiegeEngineMarkerTargetVM : MissionMarkerTargetVM
|
7
|
+
{
|
8
|
+
public readonly BattleSideEnum Side;
|
9
|
+
|
10
|
+
public override Vec3 WorldPosition { get; }
|
11
|
+
|
12
|
+
protected override float HeightOffset { get; }
|
13
|
+
|
14
|
+
[DataSourceProperty]
|
15
|
+
public string SiegeEngineID { get; set; }
|
16
|
+
|
17
|
+
public extern MissionSiegeEngineMarkerTargetVM(SiegeWeapon siegeEngine);
|
18
|
+
}
|
19
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
using TaleWorlds.MountAndBlade.Objects;
|
3
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.HUD;
|
3
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.HUD.Compass;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.HUDExtensions
|
6
6
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
1
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.HUDExtensions
|
2
2
|
{
|
3
3
|
public class MPVoicePlayerVM : MPPlayerVM
|
4
4
|
{
|
@@ -1,8 +1,7 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
2
|
using TaleWorlds.Library;
|
3
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.HUDExtensions;
|
4
3
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.HUDExtensions
|
6
5
|
{
|
7
6
|
public class MissionMultiplayerHUDExtensionVM : ViewModel
|
8
7
|
{
|
@@ -69,6 +68,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
69
68
|
[DataSourceProperty]
|
70
69
|
public bool ShowCommanderInfo { get; set; }
|
71
70
|
|
71
|
+
[DataSourceProperty]
|
72
|
+
public bool ShowPowerLevels { get; set; }
|
73
|
+
|
72
74
|
[DataSourceProperty]
|
73
75
|
public bool IsInWarmup { get; set; }
|
74
76
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Intermission
|
5
5
|
{
|
6
6
|
public class MPIntermissionCultureItemVM : MPCultureItemVM
|
7
7
|
{
|
@@ -9,5 +9,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.CustomGameCli
|
|
9
9
|
public int Votes { get; set; }
|
10
10
|
|
11
11
|
public extern MPIntermissionCultureItemVM(string cultureCode, Action<MPIntermissionCultureItemVM> onPlayerVoted);
|
12
|
+
|
13
|
+
public extern void ExecuteVote();
|
12
14
|
}
|
13
15
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Intermission
|
5
5
|
{
|
6
6
|
public class MPIntermissionMapItemVM : ViewModel
|
7
7
|
{
|
@@ -20,5 +20,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.CustomGameCli
|
|
20
20
|
public extern MPIntermissionMapItemVM(string mapID, Action<MPIntermissionMapItemVM> onPlayerVoted);
|
21
21
|
|
22
22
|
public override extern void RefreshValues();
|
23
|
+
|
24
|
+
public extern void ExecuteVote();
|
23
25
|
}
|
24
26
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Intermission
|
4
4
|
{
|
5
5
|
public class MPIntermissionVM : ViewModel
|
6
6
|
{
|
@@ -3,7 +3,7 @@ using TaleWorlds.Core;
|
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout;
|
5
5
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.KillFeed
|
7
7
|
{
|
8
8
|
public class MPDuelKillNotificationItemVM : ViewModel
|
9
9
|
{
|
@@ -34,5 +34,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
34
34
|
public extern MPDuelKillNotificationItemVM(MissionPeer firstPlayerPeer, MissionPeer secondPlayerPeer, int firstPlayerScore, int secondPlayerScore, TroopType arenaTroopType, Action<MPDuelKillNotificationItemVM> onRemove);
|
35
35
|
|
36
36
|
public extern void InitProperties(MissionPeer firstPlayerPeer, MissionPeer secondPlayerPeer);
|
37
|
+
|
38
|
+
public extern void ExecuteRemove();
|
37
39
|
}
|
38
40
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.KillFeed.General;
|
2
3
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.KillFeed.Personal;
|
3
4
|
|
4
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.KillFeed
|
@@ -2,9 +2,9 @@ using System;
|
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout;
|
4
4
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.KillFeed.General
|
6
6
|
{
|
7
|
-
public class
|
7
|
+
public class MPGeneralKillNotificationItemVM : ViewModel
|
8
8
|
{
|
9
9
|
[DataSourceProperty]
|
10
10
|
public string MurdererName { get; set; }
|
@@ -57,7 +57,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
57
57
|
[DataSourceProperty]
|
58
58
|
public string Message { get; set; }
|
59
59
|
|
60
|
-
public extern
|
60
|
+
public extern MPGeneralKillNotificationItemVM(Agent affectedAgent, Agent affectorAgent, Agent assistedAgent, Action<MPGeneralKillNotificationItemVM> onRemove);
|
61
61
|
|
62
62
|
public virtual extern void InitProperties(Agent affectedAgent, Agent affectorAgent);
|
63
63
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.KillFeed.General
|
4
4
|
{
|
5
5
|
public class MPGeneralKillNotificationVM : ViewModel
|
6
6
|
{
|
7
7
|
[DataSourceProperty]
|
8
|
-
public MBBindingList<
|
8
|
+
public MBBindingList<MPGeneralKillNotificationItemVM> NotificationList { get; set; }
|
9
9
|
|
10
10
|
public extern MPGeneralKillNotificationVM();
|
11
11
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Core.ViewModelCollection;
|
3
3
|
using TaleWorlds.Library;
|
4
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Armory;
|
4
5
|
|
5
6
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
6
7
|
{
|
@@ -47,6 +48,12 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
47
48
|
[DataSourceProperty]
|
48
49
|
public string PreviewAsText { get; set; }
|
49
50
|
|
51
|
+
[DataSourceProperty]
|
52
|
+
public string CurrentLootText { get; set; }
|
53
|
+
|
54
|
+
[DataSourceProperty]
|
55
|
+
public string ClickToCloseText { get; set; }
|
56
|
+
|
50
57
|
[DataSourceProperty]
|
51
58
|
public MPLobbyCosmeticSigilItemVM SigilItem { get; set; }
|
52
59
|
|
@@ -59,7 +66,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
59
66
|
[DataSourceProperty]
|
60
67
|
public MBBindingList<MPCultureItemVM> Cultures { get; set; }
|
61
68
|
|
62
|
-
public extern MPCosmeticObtainPopupVM(Action<string, int> onItemObtained);
|
69
|
+
public extern MPCosmeticObtainPopupVM(Action<string, int> onItemObtained, Func<string> getContinueKeyText);
|
63
70
|
|
64
71
|
public override extern void RefreshValues();
|
65
72
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.InputSystem;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
using TaleWorlds.MountAndBlade.Diamond.MultiplayerBadges;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using System.Threading.Tasks;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
using TaleWorlds.MountAndBlade.Diamond;
|
5
6
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
|
@@ -8,9 +9,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
8
9
|
{
|
9
10
|
public class MPLobbyMenuVM : ViewModel
|
10
11
|
{
|
11
|
-
public bool IsDisconnecting { [CompilerGenerated]
|
12
|
-
get; }
|
13
|
-
|
14
12
|
[DataSourceProperty]
|
15
13
|
public bool IsEnabled { get; set; }
|
16
14
|
|
@@ -50,7 +48,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
50
48
|
[DataSourceProperty]
|
51
49
|
public InputKeyItemVM NextPageInputKey { get; set; }
|
52
50
|
|
53
|
-
public extern MPLobbyMenuVM(LobbyState lobbyState, Action<bool> setNavigationRestriction);
|
51
|
+
public extern MPLobbyMenuVM(LobbyState lobbyState, Action<bool> setNavigationRestriction, Func<Task> onQuit);
|
54
52
|
|
55
53
|
public override extern void RefreshValues();
|
56
54
|
|
@@ -58,6 +56,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
58
56
|
|
59
57
|
public extern void SetPage(MPLobbyVM.LobbyPage lobbyPage);
|
60
58
|
|
59
|
+
[AsyncStateMachine(typeof(_003CExecuteExit_003Ed__14))]
|
61
60
|
public extern void ExecuteExit();
|
62
61
|
|
63
62
|
public extern void OnSupportedFeaturesRefreshed(SupportedFeatures supportedFeatures);
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
2
3
|
using TaleWorlds.PlayerServices;
|
3
4
|
|
4
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
@@ -1,9 +1,10 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.MountAndBlade.Diamond;
|
4
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
4
5
|
using TaleWorlds.PlayerServices;
|
5
6
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
7
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
7
8
|
{
|
8
9
|
public class MPLobbyPlayerProfileVM : ViewModel
|
9
10
|
{
|
@@ -38,5 +39,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
|
38
39
|
public extern void ExecuteClosePopup();
|
39
40
|
|
40
41
|
public extern void OnClanInfoChanged();
|
42
|
+
|
43
|
+
public extern void OnPlayerNameUpdated(string playerName);
|
41
44
|
}
|
42
45
|
}
|
@@ -5,6 +5,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
5
5
|
{
|
6
6
|
public class MPLobbyRejoinVM : ViewModel
|
7
7
|
{
|
8
|
+
public Action OnRejoinRequested;
|
9
|
+
|
8
10
|
[DataSourceProperty]
|
9
11
|
public bool IsEnabled { get; set; }
|
10
12
|
|
@@ -1,11 +1,14 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
|
+
using System.Threading.Tasks;
|
4
5
|
using TaleWorlds.Core;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
using TaleWorlds.MountAndBlade.Diamond;
|
7
8
|
using TaleWorlds.MountAndBlade.ViewModelCollection.GameOptions;
|
8
9
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.AfterBattle;
|
10
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Armory;
|
11
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Authentication;
|
9
12
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Clan;
|
10
13
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
11
14
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Home;
|
@@ -37,6 +40,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
37
40
|
public List<LobbyPage> DisallowedPages { [CompilerGenerated]
|
38
41
|
get; }
|
39
42
|
|
43
|
+
[DataSourceProperty]
|
44
|
+
public bool IsLoggedIn { get; set; }
|
45
|
+
|
40
46
|
[DataSourceProperty]
|
41
47
|
public BrightnessOptionVM BrightnessPopup { get; set; }
|
42
48
|
|
@@ -159,10 +165,14 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
159
165
|
|
160
166
|
public extern void OnTick(float dt);
|
161
167
|
|
168
|
+
[AsyncStateMachine(typeof(_003COnEscape_003Ed__31))]
|
162
169
|
public extern void OnEscape();
|
163
170
|
|
164
171
|
public extern bool HasNoPopupOpen();
|
165
172
|
|
173
|
+
[AsyncStateMachine(typeof(_003CRequestExit_003Ed__34))]
|
174
|
+
public extern Task RequestExit();
|
175
|
+
|
166
176
|
public extern void ConnectionStateUpdated(bool isAuthenticated);
|
167
177
|
|
168
178
|
public extern void SetPage(LobbyPage lobbyPage, MPMatchmakingVM.MatchmakingSubPages matchmakingSubPage = MPMatchmakingVM.MatchmakingSubPages.Default);
|
@@ -189,14 +199,16 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
189
199
|
|
190
200
|
public extern void OnPlayerSuggestedToParty(PlayerId playerId, string playerName, PlayerId suggestingPlayerId, string suggestingPlayerName);
|
191
201
|
|
202
|
+
public extern void OnPlayerNameUpdated(string playerName);
|
203
|
+
|
192
204
|
public extern void OnSearchBattleCanceled();
|
193
205
|
|
194
|
-
[AsyncStateMachine(typeof(
|
206
|
+
[AsyncStateMachine(typeof(_003CRefreshPlayerData_003Ed__55))]
|
195
207
|
public extern void RefreshPlayerData(PlayerData playerData);
|
196
208
|
|
197
209
|
public extern void RefreshSupportedFeatures();
|
198
210
|
|
199
|
-
public extern void
|
211
|
+
public extern void OnNotificationsReceived(LobbyNotification[] notifications);
|
200
212
|
|
201
213
|
public extern void OnSigilChanged(int iconID);
|
202
214
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
using TaleWorlds.MountAndBlade.Diamond;
|
5
6
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomGame;
|
@@ -24,6 +25,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
24
25
|
[DataSourceProperty]
|
25
26
|
public bool IsEnabled { get; set; }
|
26
27
|
|
28
|
+
[DataSourceProperty]
|
29
|
+
public bool HasUnofficialModulesLoaded { get; set; }
|
30
|
+
|
27
31
|
[DataSourceProperty]
|
28
32
|
public bool IsCustomGameStageFindEnabled { get; set; }
|
29
33
|
|
@@ -111,9 +115,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
111
115
|
[DataSourceProperty]
|
112
116
|
public string TeamMatchesText { get; set; }
|
113
117
|
|
114
|
-
[DataSourceProperty]
|
115
|
-
public HintViewModel PremadeMatchesEligibleHint { get; set; }
|
116
|
-
|
117
118
|
[DataSourceProperty]
|
118
119
|
public HintViewModel RegionsHint { get; set; }
|
119
120
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout;
|
4
4
|
|
@@ -1,12 +1,13 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Core;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
5
|
using TaleWorlds.InputSystem;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
using TaleWorlds.MountAndBlade.Diamond;
|
7
8
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
|
8
9
|
|
9
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
10
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Armory
|
10
11
|
{
|
11
12
|
public class MPArmoryCosmeticItemVM : ViewModel
|
12
13
|
{
|
@@ -55,6 +56,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
55
56
|
[DataSourceProperty]
|
56
57
|
public InputKeyItemVM PreviewKey { get; set; }
|
57
58
|
|
59
|
+
[DataSourceProperty]
|
60
|
+
public HintViewModel ItemNameHint { get; set; }
|
61
|
+
|
58
62
|
public extern MPArmoryCosmeticItemVM(CosmeticsManager.CosmeticElement cosmetic, string cosmeticID, Action<MPArmoryCosmeticItemVM> onEquipped, Action<MPArmoryCosmeticItemVM> onPurchaseRequested, Action<MPArmoryCosmeticItemVM> onPreviewed);
|
59
63
|
|
60
64
|
public override extern void RefreshValues();
|
@@ -3,12 +3,13 @@ using System.Collections.Generic;
|
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
using System.Threading.Tasks;
|
5
5
|
using TaleWorlds.Core;
|
6
|
-
using TaleWorlds.Core.ViewModelCollection;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
7
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
7
8
|
using TaleWorlds.InputSystem;
|
8
9
|
using TaleWorlds.Library;
|
9
10
|
using TaleWorlds.MountAndBlade.Diamond;
|
10
11
|
|
11
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
12
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Armory
|
12
13
|
{
|
13
14
|
public class MPArmoryCosmeticsVM : ViewModel
|
14
15
|
{
|
@@ -54,7 +55,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
54
55
|
[DataSourceProperty]
|
55
56
|
public MBBindingList<MPArmoryCosmeticItemVM> AvailableCosmetics { get; set; }
|
56
57
|
|
57
|
-
public extern MPArmoryCosmeticsVM(Action<EquipmentIndex, EquipmentElement> onHeroPreviewItemEquipped, Action<MPArmoryCosmeticItemVM> onItemObtainRequested);
|
58
|
+
public extern MPArmoryCosmeticsVM(Action<EquipmentIndex, EquipmentElement> onHeroPreviewItemEquipped, Action resetHeroEquipment, Action<MPArmoryCosmeticItemVM> onItemObtainRequested, Func<List<IReadOnlyPerkObject>> getSelectedPerks);
|
58
59
|
|
59
60
|
public override extern void RefreshValues();
|
60
61
|
|
@@ -62,10 +63,10 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
62
63
|
|
63
64
|
public extern void RefreshCosmeticsInfo();
|
64
65
|
|
65
|
-
[AsyncStateMachine(typeof(
|
66
|
+
[AsyncStateMachine(typeof(_003CUpdateUsedCosmetics_003Ed__23))]
|
66
67
|
public extern Task<bool> UpdateUsedCosmetics();
|
67
68
|
|
68
|
-
public extern void RefreshSelectedClass(MultiplayerClassDivisions.MPHeroClass selectedClass, List<IReadOnlyPerkObject> selectedPerks
|
69
|
+
public extern void RefreshSelectedClass(MultiplayerClassDivisions.MPHeroClass selectedClass, List<IReadOnlyPerkObject> selectedPerks);
|
69
70
|
|
70
71
|
public extern void OnItemObtained(string cosmeticID, int finalLoot);
|
71
72
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.ClassLoadout;
|
7
7
|
|
@@ -3,7 +3,7 @@ using TaleWorlds.Core;
|
|
3
3
|
using TaleWorlds.Core.ViewModelCollection;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Armory
|
7
7
|
{
|
8
8
|
public class MPArmoryHeroPreviewVM : ViewModel
|
9
9
|
{
|
@@ -17,7 +17,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
17
17
|
|
18
18
|
public override extern void RefreshValues();
|
19
19
|
|
20
|
-
public extern void SetCharacter(BasicCharacterObject character, DynamicBodyProperties dynamicBodyProperties, bool isFemale);
|
20
|
+
public extern void SetCharacter(BasicCharacterObject character, DynamicBodyProperties dynamicBodyProperties, int race, bool isFemale);
|
21
21
|
|
22
22
|
public extern void SetCharacterClass(BasicCharacterObject classCharacter);
|
23
23
|
|
@@ -3,9 +3,8 @@ using System.Collections.Generic;
|
|
3
3
|
using TaleWorlds.Core;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
using TaleWorlds.MountAndBlade.Diamond;
|
6
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Armory;
|
7
6
|
|
8
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
7
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Armory
|
9
8
|
{
|
10
9
|
public class MPArmoryVM : ViewModel
|
11
10
|
{
|
@@ -1,7 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Authentication;
|
3
2
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Authentication
|
5
4
|
{
|
6
5
|
public class MPAuthenticationVM : ViewModel
|
7
6
|
{
|
@@ -11,6 +10,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
11
10
|
[DataSourceProperty]
|
12
11
|
public bool IsLoginRequestActive { get; set; }
|
13
12
|
|
13
|
+
[DataSourceProperty]
|
14
|
+
public bool CanTryLogin { get; set; }
|
15
|
+
|
14
16
|
[DataSourceProperty]
|
15
17
|
public string TitleText { get; set; }
|
16
18
|
|
@@ -26,10 +28,12 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
26
28
|
[DataSourceProperty]
|
27
29
|
public MPAuthenticationDebugVM AuthenticationDebug { get; set; }
|
28
30
|
|
29
|
-
public extern MPAuthenticationVM();
|
31
|
+
public extern MPAuthenticationVM(LobbyState lobbyState);
|
30
32
|
|
31
33
|
public override extern void RefreshValues();
|
32
34
|
|
35
|
+
public override extern void OnFinalize();
|
36
|
+
|
33
37
|
public extern void OnTick(float dt);
|
34
38
|
|
35
39
|
public extern void ExecuteExit();
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
3
4
|
using TaleWorlds.PlayerServices;
|
4
5
|
|
5
6
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Clan
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.MountAndBlade.Diamond;
|
5
5
|
|
@@ -53,5 +53,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Clan
|
|
53
53
|
public extern void RefreshWith(ClanHomeInfo info);
|
54
54
|
|
55
55
|
public extern void OnFriendListUpdated();
|
56
|
+
|
57
|
+
public extern void OnPlayerNameUpdated(string playerName);
|
56
58
|
}
|
57
59
|
}
|
@@ -32,5 +32,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Clan
|
|
32
32
|
|
33
33
|
[AsyncStateMachine(typeof(_003CRefreshHomeInfo_003Ed__4))]
|
34
34
|
public extern Task RefreshHomeInfo(ClanHomeInfo clanHomeInfo);
|
35
|
+
|
36
|
+
public extern void OnPlayerNameUpdated(string playerName);
|
35
37
|
}
|
36
38
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
3
4
|
|
4
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Clan
|
5
6
|
{
|
@@ -2,6 +2,7 @@ using System;
|
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.MountAndBlade.Diamond;
|
5
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
5
6
|
using TaleWorlds.PlayerServices;
|
6
7
|
|
7
8
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Clan
|
@@ -1,8 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
5
|
using TaleWorlds.Library;
|
5
6
|
using TaleWorlds.MountAndBlade.Diamond;
|
7
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
6
8
|
using TaleWorlds.PlayerServices;
|
7
9
|
|
8
10
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Clan
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using System.Threading.Tasks;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
using TaleWorlds.MountAndBlade.Diamond;
|
7
7
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
using TaleWorlds.MountAndBlade.Diamond;
|
5
6
|
|
@@ -45,5 +46,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Clan
|
|
45
46
|
public override extern void RefreshValues();
|
46
47
|
|
47
48
|
public extern void RefreshClanInformation(ClanHomeInfo clanHomeInfo);
|
49
|
+
|
50
|
+
public extern void OnPlayerNameUpdated(string playerName);
|
48
51
|
}
|
49
52
|
}
|
@@ -54,5 +54,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Clan
|
|
54
54
|
public extern void TrySetClanSubPage(ClanSubPages newPage);
|
55
55
|
|
56
56
|
public extern void OnNotificationReceived(LobbyNotification notification);
|
57
|
+
|
58
|
+
public extern void OnPlayerNameUpdated(string playerName);
|
57
59
|
}
|
58
60
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.ClassFilter
|
@@ -12,7 +12,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomG
|
|
12
12
|
Name,
|
13
13
|
NotFull,
|
14
14
|
HasPlayers,
|
15
|
-
HasPasswordProtection
|
15
|
+
HasPasswordProtection,
|
16
|
+
IsOfficial,
|
17
|
+
ModuleCompatible
|
16
18
|
}
|
17
19
|
|
18
20
|
public Action OnFiltersApplied;
|
@@ -1,12 +1,18 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
using TaleWorlds.MountAndBlade.Diamond;
|
6
|
+
using TaleWorlds.PlayerServices;
|
5
7
|
|
6
8
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomGame
|
7
9
|
{
|
8
10
|
public class MPCustomGameItemVM : ViewModel
|
9
11
|
{
|
12
|
+
public static Action<PlayerId> OnPlayerProfileRequested;
|
13
|
+
|
14
|
+
public static readonly string OfficialServerHostName;
|
15
|
+
|
10
16
|
public GameServerEntry GameServerInfo { [CompilerGenerated]
|
11
17
|
get; }
|
12
18
|
|
@@ -22,6 +28,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomG
|
|
22
28
|
[DataSourceProperty]
|
23
29
|
public bool IsClanMatchItem { get; set; }
|
24
30
|
|
31
|
+
[DataSourceProperty]
|
32
|
+
public bool IsOfficial { get; set; }
|
33
|
+
|
25
34
|
[DataSourceProperty]
|
26
35
|
public int PlayerCount { get; set; }
|
27
36
|
|
@@ -29,13 +38,13 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomG
|
|
29
38
|
public int MaxPlayerCount { get; set; }
|
30
39
|
|
31
40
|
[DataSourceProperty]
|
32
|
-
public string
|
41
|
+
public string HostText { get; set; }
|
33
42
|
|
34
43
|
[DataSourceProperty]
|
35
|
-
public string
|
44
|
+
public string NameText { get; set; }
|
36
45
|
|
37
46
|
[DataSourceProperty]
|
38
|
-
public string
|
47
|
+
public string GameTypeText { get; set; }
|
39
48
|
|
40
49
|
[DataSourceProperty]
|
41
50
|
public string PlayerCountText { get; set; }
|
@@ -52,6 +61,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomG
|
|
52
61
|
[DataSourceProperty]
|
53
62
|
public string PremadeMatchTypeText { get; set; }
|
54
63
|
|
64
|
+
[DataSourceProperty]
|
65
|
+
public BasicTooltipViewModel LoadedModulesHint { get; set; }
|
66
|
+
|
55
67
|
public extern MPCustomGameItemVM(GameServerEntry gameServerInfo, Action onJoin, bool isAntiCheatEnabled);
|
56
68
|
|
57
69
|
public extern MPCustomGameItemVM(PremadeGameEntry premadeGameInfo, Action onJoin);
|
@@ -1,8 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Library;
|
3
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomGame;
|
4
3
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomGame
|
6
5
|
{
|
7
6
|
public class MPCustomGameSortControllerVM : ViewModel
|
8
7
|
{
|
@@ -10,13 +9,13 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
10
9
|
{
|
11
10
|
Name,
|
12
11
|
GameType,
|
13
|
-
Map,
|
14
12
|
PlayerCount,
|
15
13
|
PasswordProtection,
|
16
14
|
FirstFaction,
|
17
15
|
SecondFaction,
|
18
16
|
Region,
|
19
|
-
PremadeMatchType
|
17
|
+
PremadeMatchType,
|
18
|
+
Host
|
20
19
|
}
|
21
20
|
|
22
21
|
public CustomServerSortOption? CurrentSortOption { [CompilerGenerated]
|
@@ -31,9 +30,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
31
30
|
[DataSourceProperty]
|
32
31
|
public int GameTypeState { get; set; }
|
33
32
|
|
34
|
-
[DataSourceProperty]
|
35
|
-
public int MapState { get; set; }
|
36
|
-
|
37
33
|
[DataSourceProperty]
|
38
34
|
public int PlayerCountState { get; set; }
|
39
35
|
|
@@ -49,25 +45,26 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
49
45
|
[DataSourceProperty]
|
50
46
|
public int RegionState { get; set; }
|
51
47
|
|
48
|
+
[DataSourceProperty]
|
52
49
|
public int PremadeMatchTypeState { get; set; }
|
53
50
|
|
54
51
|
[DataSourceProperty]
|
55
|
-
public bool
|
52
|
+
public bool IsPlayerCountSelected { get; set; }
|
56
53
|
|
57
54
|
[DataSourceProperty]
|
58
|
-
public
|
55
|
+
public int HostState { get; set; }
|
59
56
|
|
60
57
|
[DataSourceProperty]
|
61
|
-
public bool
|
58
|
+
public bool IsServerNameSelected { get; set; }
|
62
59
|
|
63
60
|
[DataSourceProperty]
|
64
|
-
public bool
|
61
|
+
public bool IsPasswordSelected { get; set; }
|
65
62
|
|
66
63
|
[DataSourceProperty]
|
67
|
-
public bool
|
64
|
+
public bool IsFirstFactionSelected { get; set; }
|
68
65
|
|
69
66
|
[DataSourceProperty]
|
70
|
-
public bool
|
67
|
+
public bool IsGameTypeSelected { get; set; }
|
71
68
|
|
72
69
|
[DataSourceProperty]
|
73
70
|
public bool IsSecondFactionSelected { get; set; }
|
@@ -78,6 +75,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
78
75
|
[DataSourceProperty]
|
79
76
|
public bool IsPremadeMatchTypeSelected { get; set; }
|
80
77
|
|
78
|
+
[DataSourceProperty]
|
79
|
+
public bool IsHostSelected { get; set; }
|
80
|
+
|
81
81
|
public extern MPCustomGameSortControllerVM(ref MBBindingList<MPCustomGameItemVM> listToControl, MPCustomGameVM.CustomGameMode customGameMode);
|
82
82
|
|
83
83
|
public extern void SetSortOption(CustomServerSortOption? sortOption);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.MountAndBlade.Diamond;
|
5
5
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.HostGame;
|
@@ -56,9 +56,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomG
|
|
56
56
|
[DataSourceProperty]
|
57
57
|
public string RefreshText { get; set; }
|
58
58
|
|
59
|
-
[DataSourceProperty]
|
60
|
-
public string FavoriteText { get; set; }
|
61
|
-
|
62
59
|
[DataSourceProperty]
|
63
60
|
public string JoinText { get; set; }
|
64
61
|
|
@@ -92,6 +89,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.CustomG
|
|
92
89
|
[DataSourceProperty]
|
93
90
|
public string PremadeMatchTypeText { get; set; }
|
94
91
|
|
92
|
+
[DataSourceProperty]
|
93
|
+
public string HostText { get; set; }
|
94
|
+
|
95
95
|
[DataSourceProperty]
|
96
96
|
public bool IsPlayerBasedCustomBattleEnabled { get; set; }
|
97
97
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
using TaleWorlds.PlatformService;
|
6
6
|
using TaleWorlds.PlayerServices;
|
@@ -1,4 +1,6 @@
|
|
1
|
-
using
|
1
|
+
using System.Collections.Generic;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
4
|
using TaleWorlds.InputSystem;
|
3
5
|
using TaleWorlds.Library;
|
4
6
|
using TaleWorlds.MountAndBlade.Diamond;
|
@@ -86,7 +88,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends
|
|
86
88
|
|
87
89
|
public extern void UpdatePartyLeader();
|
88
90
|
|
89
|
-
public extern void
|
91
|
+
public extern void OnFriendRequestNotificationsReceived(List<LobbyNotification> notifications);
|
90
92
|
|
91
93
|
public extern void ProcessNotification(LobbyNotification notification, PlayerId notificationPlayerID, bool allowed);
|
92
94
|
|
@@ -3,12 +3,13 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using System.Threading.Tasks;
|
4
4
|
using TaleWorlds.Core;
|
5
5
|
using TaleWorlds.Core.ViewModelCollection;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
6
7
|
using TaleWorlds.Library;
|
7
8
|
using TaleWorlds.MountAndBlade.Diamond;
|
8
9
|
using TaleWorlds.MountAndBlade.Diamond.Ranked;
|
9
10
|
using TaleWorlds.PlayerServices;
|
10
11
|
|
11
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
12
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends
|
12
13
|
{
|
13
14
|
public class MPLobbyPlayerBaseVM : ViewModel
|
14
15
|
{
|
@@ -243,35 +244,35 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
243
244
|
|
244
245
|
public extern void RefreshSelectableGameTypes(bool isRankedOnly, Action<string> onRefreshed, string initialGameTypeID = "");
|
245
246
|
|
246
|
-
[AsyncStateMachine(typeof(
|
247
|
+
[AsyncStateMachine(typeof(_003CUpdateName_003Ed__58))]
|
247
248
|
protected extern void UpdateName();
|
248
249
|
|
249
250
|
protected extern void UpdateAvatar();
|
250
251
|
|
251
|
-
[AsyncStateMachine(typeof(
|
252
|
+
[AsyncStateMachine(typeof(_003CUpdatePlayerState_003Ed__60))]
|
252
253
|
public extern Task UpdatePlayerState();
|
253
254
|
|
254
255
|
public extern void UpdatePlayerState(AnotherPlayerData playerData);
|
255
256
|
|
256
257
|
public virtual extern void UpdateWith(PlayerData playerData);
|
257
258
|
|
258
|
-
public extern void UpdateNameAndAvatar();
|
259
|
+
public extern void UpdateNameAndAvatar(bool forceUpdate = false);
|
259
260
|
|
260
261
|
public extern void OnStatusChanged(OnlineStatus status, bool isInGameStatusActive);
|
261
262
|
|
262
263
|
public extern void SetOnInvite(Action<PlayerId> onInvite);
|
263
264
|
|
264
|
-
[AsyncStateMachine(typeof(
|
265
|
+
[AsyncStateMachine(typeof(_003CUpdateStats_003Ed__66))]
|
265
266
|
public extern void UpdateStats(Action onDone);
|
266
267
|
|
267
268
|
public extern void UpdateExperienceData();
|
268
269
|
|
269
|
-
[AsyncStateMachine(typeof(
|
270
|
+
[AsyncStateMachine(typeof(_003CUpdateRating_003Ed__68))]
|
270
271
|
public extern void UpdateRating(Action onDone);
|
271
272
|
|
272
273
|
public extern void UpdateDisplayedRankInfo(string gameType);
|
273
274
|
|
274
|
-
[AsyncStateMachine(typeof(
|
275
|
+
[AsyncStateMachine(typeof(_003CUpdateClanInfo_003Ed__70))]
|
275
276
|
public extern void UpdateClanInfo();
|
276
277
|
|
277
278
|
public extern void FilterStatsForGameMode(string gameModeCode);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends
|
4
4
|
{
|
5
5
|
public class MPLobbyPlayerRecentGameDataVM : ViewModel
|
6
6
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
using TaleWorlds.Localization;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends
|
5
5
|
{
|
6
6
|
public class MPLobbyPlayerStatItemVM : ViewModel
|
7
7
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends
|
5
5
|
{
|
6
6
|
public class MPLobbyPlayerTroopClassVM : ViewModel
|
7
7
|
{
|
@@ -3,8 +3,9 @@ using System.Runtime.CompilerServices;
|
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.Library.NewsManager;
|
5
5
|
using TaleWorlds.MountAndBlade.Diamond;
|
6
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
6
7
|
|
7
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
8
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Home
|
8
9
|
{
|
9
10
|
public class MPLobbyHomeVM : ViewModel
|
10
11
|
{
|
@@ -14,6 +15,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
14
15
|
[DataSourceProperty]
|
15
16
|
public bool IsMatchFindPossible { get; set; }
|
16
17
|
|
18
|
+
[DataSourceProperty]
|
19
|
+
public bool HasUnofficialModulesLoaded { get; set; }
|
20
|
+
|
17
21
|
[DataSourceProperty]
|
18
22
|
public string FindGameText { get; set; }
|
19
23
|
|
@@ -50,6 +54,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
|
50
54
|
|
51
55
|
public extern void OnClanInfoChanged();
|
52
56
|
|
57
|
+
public extern void OnPlayerNameUpdated(string playerName);
|
58
|
+
|
53
59
|
public override extern void OnFinalize();
|
54
60
|
}
|
55
61
|
}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
using TaleWorlds.Library.NewsManager;
|
3
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Home;
|
4
3
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Home
|
6
5
|
{
|
7
6
|
public class MPNewsVM : ViewModel
|
8
7
|
{
|
@@ -20,6 +20,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.HostGam
|
|
20
20
|
[DataSourceProperty]
|
21
21
|
public string Name { get; set; }
|
22
22
|
|
23
|
+
[DataSourceProperty]
|
24
|
+
public bool IsEnabled { get; set; }
|
25
|
+
|
23
26
|
public override extern void RefreshValues();
|
24
27
|
|
25
28
|
public abstract void RefreshData();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.HostGame.HostGameOptions
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.OfficialGame
|
6
6
|
{
|
7
7
|
public class MPMatchmakingItemVM : ViewModel
|
8
8
|
{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.Localization;
|
5
5
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.OfficialGame
|
@@ -15,10 +15,10 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
|
15
15
|
public string ProgressCompletedText { get; set; }
|
16
16
|
|
17
17
|
[DataSourceProperty]
|
18
|
-
public int
|
18
|
+
public int CurrentProgress { get; set; }
|
19
19
|
|
20
20
|
[DataSourceProperty]
|
21
|
-
public int
|
21
|
+
public int TotalProgress { get; set; }
|
22
22
|
|
23
23
|
[DataSourceProperty]
|
24
24
|
public MPLobbyBadgeItemVM ShownBadgeItem { get; set; }
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
3
4
|
using TaleWorlds.PlayerServices;
|
4
5
|
|
5
6
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
using TaleWorlds.Localization;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
@@ -10,6 +10,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
|
10
10
|
[DataSourceProperty]
|
11
11
|
public bool IsMatchFindPossible { get; set; }
|
12
12
|
|
13
|
+
[DataSourceProperty]
|
14
|
+
public bool HasUnofficialModulesLoaded { get; set; }
|
15
|
+
|
13
16
|
[DataSourceProperty]
|
14
17
|
public string ShowMoreText { get; set; }
|
15
18
|
|
@@ -55,6 +58,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
|
55
58
|
|
56
59
|
public extern void UpdatePlayerData(PlayerData playerData, bool updateStatistics = true, bool updateRating = true);
|
57
60
|
|
61
|
+
public extern void OnPlayerNameUpdated(string playerName);
|
62
|
+
|
58
63
|
public extern void OnNotificationReceived(LobbyNotification notification);
|
59
64
|
|
60
65
|
public extern void OnClanInfoChanged();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
@@ -37,7 +37,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
|
37
37
|
|
38
38
|
public override extern void RefreshValues();
|
39
39
|
|
40
|
-
[AsyncStateMachine(typeof(
|
40
|
+
[AsyncStateMachine(typeof(_003COpenWith_003Ed__3))]
|
41
41
|
public extern void OpenWith(string gameType);
|
42
42
|
|
43
43
|
public extern void ExecuteClosePopup();
|
@@ -1,6 +1,7 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
3
3
|
using TaleWorlds.Library;
|
4
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
4
5
|
|
5
6
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
6
7
|
{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using System;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
|
+
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Friends;
|
3
4
|
using TaleWorlds.PlayerServices;
|
4
5
|
|
5
6
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.Profile
|
@@ -1,26 +0,0 @@
|
|
1
|
-
using TaleWorlds.Library;
|
2
|
-
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard
|
4
|
-
{
|
5
|
-
public class MPEndOfBattleHighlightItemVM : ViewModel
|
6
|
-
{
|
7
|
-
[DataSourceProperty]
|
8
|
-
public string Title { get; set; }
|
9
|
-
|
10
|
-
[DataSourceProperty]
|
11
|
-
public string PlayerName { get; set; }
|
12
|
-
|
13
|
-
[DataSourceProperty]
|
14
|
-
public string Description { get; set; }
|
15
|
-
|
16
|
-
[DataSourceProperty]
|
17
|
-
public int ApproveCount { get; set; }
|
18
|
-
|
19
|
-
[DataSourceProperty]
|
20
|
-
public bool IsApprovedByMe { get; set; }
|
21
|
-
|
22
|
-
public extern MPEndOfBattleHighlightItemVM(string title, string description);
|
23
|
-
|
24
|
-
public extern void ExecuteApprove();
|
25
|
-
}
|
26
|
-
}
|
@@ -28,9 +28,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard
|
|
28
28
|
[DataSourceProperty]
|
29
29
|
public MPEndOfBattleSideVM EnemySide { get; set; }
|
30
30
|
|
31
|
-
[DataSourceProperty]
|
32
|
-
public MBBindingList<MPEndOfBattleHighlightItemVM> HighlightItems { get; set; }
|
33
|
-
|
34
31
|
public extern MPEndOfBattleVM(Mission mission, MissionScoreboardComponent missionScoreboardComponent, bool isSingleTeam);
|
35
32
|
|
36
33
|
public override extern void RefreshValues();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
4
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard
|
@@ -14,6 +14,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard
|
|
14
14
|
[DataSourceProperty]
|
15
15
|
public bool IsAvatarStat { get; set; }
|
16
16
|
|
17
|
-
|
17
|
+
[DataSourceProperty]
|
18
|
+
public MissionScoreboardPlayerSortControllerVM PlayerSortController { get; }
|
19
|
+
|
20
|
+
public extern MissionScoreboardHeaderItemVM(MissionScoreboardSideVM side, string headerID, string value, bool isAvatarStat, bool isIrregularStat);
|
18
21
|
}
|
19
22
|
}
|
@@ -16,9 +16,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard
|
|
16
16
|
|
17
17
|
public bool IsTeammate { get; }
|
18
18
|
|
19
|
-
[DataSourceProperty]
|
20
|
-
public MBBindingList<MissionScoreboardStatItemVM> Stats { get; set; }
|
21
|
-
|
22
19
|
[DataSourceProperty]
|
23
20
|
public int Ping { get; set; }
|
24
21
|
|
@@ -31,6 +28,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard
|
|
31
28
|
[DataSourceProperty]
|
32
29
|
public bool IsTextMuted { get; set; }
|
33
30
|
|
31
|
+
[DataSourceProperty]
|
32
|
+
public MBBindingList<MissionScoreboardStatItemVM> Stats { get; set; }
|
33
|
+
|
34
34
|
[DataSourceProperty]
|
35
35
|
public MBBindingList<MissionScoreboardMVPItemVM> MVPBadges { get; set; }
|
36
36
|
|
@@ -46,6 +46,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard
|
|
46
46
|
|
47
47
|
public extern void UpdateIsMuted();
|
48
48
|
|
49
|
-
public extern void
|
49
|
+
public extern void SetMVPBadgeCount(int badgeCount);
|
50
50
|
}
|
51
51
|
}
|
@@ -13,6 +13,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard
|
|
13
13
|
[DataSourceProperty]
|
14
14
|
public MissionScoreboardPlayerVM BelongedPlayer { get; set; }
|
15
15
|
|
16
|
+
[DataSourceProperty]
|
17
|
+
public MBBindingList<MissionScoreboardMVPItemVM> MVPBadges { get; }
|
18
|
+
|
16
19
|
public extern MissionScoreboardStatItemVM(MissionScoreboardPlayerVM belongedPlayer, string headerID, string item);
|
17
20
|
}
|
18
21
|
}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
using TaleWorlds.Core.ViewModelCollection;
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
|
4
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard;
|
5
4
|
|
6
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Scoreboard
|
7
6
|
{
|
8
7
|
public class MissionScoreboardVM : ViewModel
|
9
8
|
{
|
@@ -73,5 +72,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
73
72
|
public extern void DecreaseSpectatorCount(MissionPeer spectatedPeer);
|
74
73
|
|
75
74
|
public extern void IncreaseSpectatorCount(MissionPeer spectatedPeer);
|
75
|
+
|
76
|
+
public extern void ExecuteToggleMute();
|
76
77
|
}
|
77
78
|
}
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
5
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.TeamSelection
|
6
6
|
{
|
7
7
|
public class MultiplayerCultureSelectVM : ViewModel
|
8
8
|
{
|
@@ -27,5 +27,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
27
27
|
public extern MultiplayerCultureSelectVM(Action<BasicCultureObject> onCultureSelected, Action onClose);
|
28
28
|
|
29
29
|
public override extern void RefreshValues();
|
30
|
+
|
31
|
+
public extern void ExecuteSelectCulture(int cultureIndex);
|
32
|
+
|
33
|
+
public extern void ExecuteClose();
|
30
34
|
}
|
31
35
|
}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
+
using JetBrains.Annotations;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
6
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.TeamSelection
|
6
7
|
{
|
7
8
|
public class MultiplayerTeamSelectVM : ViewModel
|
8
9
|
{
|
@@ -44,5 +45,11 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
44
45
|
public extern void RefreshPlayerAndBotCount(int playersCountOne, int playersCountTwo, int botsCountOne, int botsCountTwo);
|
45
46
|
|
46
47
|
public extern void RefreshFriendsPerTeam(IEnumerable<MissionPeer> friendsTeamOne, IEnumerable<MissionPeer> friendsTeamTwo);
|
48
|
+
|
49
|
+
[UsedImplicitly]
|
50
|
+
public extern void ExecuteCancel();
|
51
|
+
|
52
|
+
[UsedImplicitly]
|
53
|
+
public extern void ExecuteAutoAssign();
|
47
54
|
}
|
48
55
|
}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
+
using JetBrains.Annotations;
|
3
4
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
6
|
using TaleWorlds.Library;
|
6
7
|
|
7
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
8
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.TeamSelection
|
8
9
|
{
|
9
10
|
public class TeamSelectTeamInstanceVM : ViewModel
|
10
11
|
{
|
@@ -66,5 +67,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer
|
|
66
67
|
public extern void RefreshFriends(IEnumerable<MissionPeer> friends);
|
67
68
|
|
68
69
|
public extern void SetIsDisabled(bool isCurrentTeam, bool disabledForBalance);
|
70
|
+
|
71
|
+
[UsedImplicitly]
|
72
|
+
public extern void ExecuteSelectTeam();
|
69
73
|
}
|
70
74
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
1
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Order
|
2
2
|
{
|
3
3
|
public delegate IOrderable GetFocusedOrderableObjectDelegate();
|
4
4
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Order
|
4
4
|
{
|
5
5
|
public delegate Vec3 GetOrderFlagPositionDelegate();
|
6
6
|
}
|
@@ -3,10 +3,9 @@ using System.Collections.Generic;
|
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
using TaleWorlds.Engine;
|
5
5
|
using TaleWorlds.Library;
|
6
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Order;
|
7
6
|
using TaleWorlds.ScreenSystem;
|
8
7
|
|
9
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
8
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Order
|
10
9
|
{
|
11
10
|
public class MissionOrderVM : ViewModel
|
12
11
|
{
|
@@ -0,0 +1,4 @@
|
|
1
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Order
|
2
|
+
{
|
3
|
+
public delegate void OnBeforeOrderDelegate();
|
4
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Order
|
2
|
+
{
|
3
|
+
public delegate void OnRefreshVisualsDelegate();
|
4
|
+
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
1
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Order
|
2
2
|
{
|
3
3
|
public delegate void OnToggleActivateOrderStateDelegate();
|
4
4
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
1
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Order
|
2
2
|
{
|
3
3
|
public delegate void OnTransferTroopsFinisedDelegate();
|
4
4
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
1
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Order
|
2
2
|
{
|
3
3
|
public delegate void ToggleOrderPositionVisibilityDelegate(bool value);
|
4
4
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
|
-
using TaleWorlds.Core.ViewModelCollection;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
5
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle
|
@@ -17,5 +17,7 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle
|
|
17
17
|
public static extern TextObject GetFilterDescription(this FormationFilterType filterType);
|
18
18
|
|
19
19
|
public static extern TextObject GetClassName(this DeploymentFormationClass formationClass);
|
20
|
+
|
21
|
+
public static extern List<Agent> GetHeroAgents(this Team team);
|
20
22
|
}
|
21
23
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Core;
|
3
|
-
using TaleWorlds.Core.ViewModelCollection;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
4
4
|
using TaleWorlds.Library;
|
5
5
|
|
6
6
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle
|
@@ -2,7 +2,8 @@ using System;
|
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
4
|
using TaleWorlds.Core;
|
5
|
-
using TaleWorlds.Core.ViewModelCollection;
|
5
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
6
|
+
using TaleWorlds.Core.ViewModelCollection.Selector;
|
6
7
|
using TaleWorlds.Engine;
|
7
8
|
using TaleWorlds.Library;
|
8
9
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using TaleWorlds.Core;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
|
7
7
|
namespace TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using System.Runtime.CompilerServices;
|
4
|
-
using TaleWorlds.Core.ViewModelCollection;
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Engine;
|
6
6
|
using TaleWorlds.Library;
|
7
7
|
|
@@ -11,6 +11,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle
|
|
11
11
|
{
|
12
12
|
protected List<OrderOfBattleFormationItemVM> _allFormations;
|
13
13
|
|
14
|
+
public Action OnHeroSelectionToggle;
|
15
|
+
|
14
16
|
protected int _totalFormationCount { get; }
|
15
17
|
|
16
18
|
public List<(int, List<int>)> CurrentConfiguration { [CompilerGenerated]
|
@@ -1,9 +1,9 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Scoreboard
|
5
5
|
{
|
6
|
-
public class CustomBattleScoreboardVM :
|
6
|
+
public class CustomBattleScoreboardVM : ScoreboardBaseVM, IBattleObserver
|
7
7
|
{
|
8
8
|
public override extern void Initialize(IMissionScreen missionScreen, Mission mission, Action releaseSimulationSources, Action<bool> onToggle);
|
9
9
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.Core;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Scoreboard
|
5
5
|
{
|
6
6
|
public class SPScoreboardSkillItemVM : ViewModel
|
7
7
|
{
|
@@ -1,8 +1,7 @@
|
|
1
1
|
using System.Collections.Generic;
|
2
2
|
using TaleWorlds.Library;
|
3
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Scoreboard;
|
4
3
|
|
5
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
4
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Scoreboard
|
6
5
|
{
|
7
6
|
public class SPScoreboardSortControllerVM : ViewModel
|
8
7
|
{
|
@@ -34,6 +34,8 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection.Scoreboard
|
|
34
34
|
|
35
35
|
public extern SPScoreboardStatsVM(TextObject name);
|
36
36
|
|
37
|
+
public override extern void RefreshValues();
|
38
|
+
|
37
39
|
public extern void UpdateScores(int numberRemaining, int numberDead, int numberWounded, int numberRouted, int numberKilled, int numberReadyToUpgrade);
|
38
40
|
|
39
41
|
public extern bool IsAnyStatRelevant();
|
@@ -1,14 +1,13 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Core;
|
3
3
|
using TaleWorlds.Core.ViewModelCollection;
|
4
|
-
using TaleWorlds.
|
4
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
5
5
|
using TaleWorlds.Library;
|
6
6
|
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
|
7
|
-
using TaleWorlds.MountAndBlade.ViewModelCollection.Scoreboard;
|
8
7
|
|
9
|
-
namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
8
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Scoreboard
|
10
9
|
{
|
11
|
-
public abstract class
|
10
|
+
public abstract class ScoreboardBaseVM : ViewModel
|
12
11
|
{
|
13
12
|
public enum Categories
|
14
13
|
{
|
@@ -25,15 +24,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
25
24
|
Retreat
|
26
25
|
}
|
27
26
|
|
28
|
-
public struct ScoreboardHotkeys
|
29
|
-
{
|
30
|
-
public GameKey ShowMouseHotkey;
|
31
|
-
|
32
|
-
public GameKey ShowScoreboardHotkey;
|
33
|
-
|
34
|
-
public HotKey DoneInputKey;
|
35
|
-
}
|
36
|
-
|
37
27
|
protected Action OnFastForwardIncreaseSpeed;
|
38
28
|
|
39
29
|
protected Action OnFastForwardDecreaseSpeed;
|
@@ -70,6 +60,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
70
60
|
[DataSourceProperty]
|
71
61
|
public string ShowScoreboardText { get; set; }
|
72
62
|
|
63
|
+
[DataSourceProperty]
|
64
|
+
public string FastForwardText { get; set; }
|
65
|
+
|
73
66
|
[DataSourceProperty]
|
74
67
|
public SPScoreboardSideVM Attackers { get; set; }
|
75
68
|
|
@@ -130,6 +123,9 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
130
123
|
[DataSourceProperty]
|
131
124
|
public InputKeyItemVM DoneInputKey { get; set; }
|
132
125
|
|
126
|
+
[DataSourceProperty]
|
127
|
+
public InputKeyItemVM FastForwardKey { get; set; }
|
128
|
+
|
133
129
|
[DataSourceProperty]
|
134
130
|
public virtual MBBindingList<BattleResultVM> BattleResults { get; set; }
|
135
131
|
|
@@ -161,6 +157,6 @@ namespace TaleWorlds.MountAndBlade.ViewModelCollection
|
|
161
157
|
|
162
158
|
public virtual extern void SetShortcuts(ScoreboardHotkeys shortcuts);
|
163
159
|
|
164
|
-
protected extern
|
160
|
+
protected extern ScoreboardBaseVM();
|
165
161
|
}
|
166
162
|
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
using TaleWorlds.InputSystem;
|
2
|
+
|
3
|
+
namespace TaleWorlds.MountAndBlade.ViewModelCollection.Scoreboard
|
4
|
+
{
|
5
|
+
public struct ScoreboardHotkeys
|
6
|
+
{
|
7
|
+
public GameKey ShowMouseHotkey;
|
8
|
+
|
9
|
+
public GameKey ShowScoreboardHotkey;
|
10
|
+
|
11
|
+
public HotKey DoneInputKey;
|
12
|
+
|
13
|
+
public HotKey FastForwardKey;
|
14
|
+
}
|
15
|
+
}
|