@@ -1,5 +1,6 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
3
4
|
using TaleWorlds.Library;
|
4
5
|
|
5
6
|
namespace TaleWorlds.Core.ViewModelCollection
|
@@ -12,8 +12,8 @@ namespace TaleWorlds.Core.ViewModelCollection
|
|
12
12
|
|
13
13
|
public extern CharacterEquipmentItemVM(ItemObject item);
|
14
14
|
|
15
|
-
|
15
|
+
public virtual extern void ExecuteBeginHint();
|
16
16
|
|
17
|
-
|
17
|
+
public virtual extern void ExecuteEndHint();
|
18
18
|
}
|
19
19
|
}
|
@@ -35,6 +35,9 @@ namespace TaleWorlds.Core.ViewModelCollection
|
|
35
35
|
[DataSourceProperty]
|
36
36
|
public bool IsFemale { get; set; }
|
37
37
|
|
38
|
+
[DataSourceProperty]
|
39
|
+
public int Race { get; set; }
|
40
|
+
|
38
41
|
[DataSourceProperty]
|
39
42
|
public bool HasMount { get; set; }
|
40
43
|
|
@@ -1,19 +0,0 @@
|
|
1
|
-
using TaleWorlds.Library;
|
2
|
-
|
3
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
4
|
-
{
|
5
|
-
public class HintVM : ViewModel
|
6
|
-
{
|
7
|
-
public bool IsActive { get; set; }
|
8
|
-
|
9
|
-
public string Text { get; set; }
|
10
|
-
|
11
|
-
public extern HintVM(string uniqueName = null);
|
12
|
-
|
13
|
-
public extern void ShowHint(string text);
|
14
|
-
|
15
|
-
public extern void HideHint();
|
16
|
-
|
17
|
-
public extern void Tick(float dt);
|
18
|
-
}
|
19
|
-
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
using System;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
3
|
using TaleWorlds.Library;
|
3
4
|
|
4
5
|
namespace TaleWorlds.Core.ViewModelCollection
|
@@ -1,3 +1,4 @@
|
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
1
2
|
using TaleWorlds.Library;
|
2
3
|
|
3
4
|
namespace TaleWorlds.Core.ViewModelCollection
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
3
|
+
namespace TaleWorlds.Core.ViewModelCollection.Generic
|
4
4
|
{
|
5
5
|
public class BindingListFloatItem : ViewModel
|
6
6
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
3
|
+
namespace TaleWorlds.Core.ViewModelCollection.Generic
|
4
4
|
{
|
5
5
|
public class BindingListStringItem : ViewModel
|
6
6
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
4
|
+
namespace TaleWorlds.Core.ViewModelCollection.Generic
|
5
5
|
{
|
6
6
|
public class BoolItemWithActionVM : ViewModel
|
7
7
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System;
|
2
2
|
using TaleWorlds.Library;
|
3
3
|
|
4
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
4
|
+
namespace TaleWorlds.Core.ViewModelCollection.Generic
|
5
5
|
{
|
6
6
|
public class StringItemWithActionVM : ViewModel
|
7
7
|
{
|
@@ -1,8 +1,9 @@
|
|
1
1
|
using System;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
3
|
using TaleWorlds.Library;
|
3
4
|
using TaleWorlds.Localization;
|
4
5
|
|
5
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
6
|
+
namespace TaleWorlds.Core.ViewModelCollection.Generic
|
6
7
|
{
|
7
8
|
public class StringItemWithEnabledAndHintVM : ViewModel
|
8
9
|
{
|
@@ -1,7 +1,8 @@
|
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
1
2
|
using TaleWorlds.Library;
|
2
3
|
using TaleWorlds.Localization;
|
3
4
|
|
4
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
5
|
+
namespace TaleWorlds.Core.ViewModelCollection.Generic
|
5
6
|
{
|
6
7
|
public class StringItemWithHintVM : ViewModel
|
7
8
|
{
|
@@ -1,6 +1,7 @@
|
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
1
2
|
using TaleWorlds.Library;
|
2
3
|
|
3
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
4
|
+
namespace TaleWorlds.Core.ViewModelCollection.Generic
|
4
5
|
{
|
5
6
|
public class StringPairItemVM : ViewModel
|
6
7
|
{
|
@@ -1,7 +1,8 @@
|
|
1
1
|
using System;
|
2
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
2
3
|
using TaleWorlds.Library;
|
3
4
|
|
4
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
5
|
+
namespace TaleWorlds.Core.ViewModelCollection.Generic
|
5
6
|
{
|
6
7
|
public class StringPairItemWithActionVM : ViewModel
|
7
8
|
{
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Collections.Generic;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
5
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
6
6
|
{
|
7
7
|
public class BasicTooltipViewModel : ViewModel
|
8
8
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
3
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
4
4
|
{
|
5
5
|
public class GameNotificationItemVM : ViewModel
|
6
6
|
{
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
5
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
6
6
|
{
|
7
7
|
public class GameNotificationVM : ViewModel
|
8
8
|
{
|
@@ -29,7 +29,7 @@ namespace TaleWorlds.Core.ViewModelCollection
|
|
29
29
|
|
30
30
|
public extern void ClearNotifications();
|
31
31
|
|
32
|
-
public extern void Tick(float dt
|
32
|
+
public extern void Tick(float dt);
|
33
33
|
|
34
34
|
public extern void AddGameNotification(string notificationText, int extraTimeInMs, BasicCharacterObject announcerCharacter, string soundId);
|
35
35
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
using System;
|
2
|
+
using TaleWorlds.Library;
|
3
|
+
|
4
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
5
|
+
{
|
6
|
+
public class HintVM : TooltipVM
|
7
|
+
{
|
8
|
+
public string Text { get; set; }
|
9
|
+
|
10
|
+
public extern HintVM();
|
11
|
+
|
12
|
+
public override extern void OnShowTooltip(Type type, object[] args);
|
13
|
+
|
14
|
+
public override extern void OnHideTooltip();
|
15
|
+
|
16
|
+
public override extern void Tick(float dt);
|
17
|
+
}
|
18
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
using TaleWorlds.Localization;
|
3
3
|
|
4
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
4
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
5
5
|
{
|
6
6
|
public class HintViewModel : ViewModel
|
7
7
|
{
|
@@ -1,22 +1,19 @@
|
|
1
|
-
using System;
|
2
1
|
using TaleWorlds.Library;
|
3
2
|
|
4
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
3
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
5
4
|
{
|
6
5
|
public class InformationVM : ViewModel
|
7
6
|
{
|
8
7
|
[DataSourceProperty]
|
9
|
-
public
|
8
|
+
public PropertyBasedTooltipVM Tooltip { get; set; }
|
10
9
|
|
11
10
|
[DataSourceProperty]
|
12
|
-
public
|
11
|
+
public HintVM Hint { get; set; }
|
13
12
|
|
14
13
|
public extern InformationVM();
|
15
14
|
|
16
|
-
public extern void OpenTooltip(Type type, params object[] args);
|
17
|
-
|
18
|
-
public extern void CloseTooltip();
|
19
|
-
|
20
15
|
public extern void Tick(float dt);
|
16
|
+
|
17
|
+
public override extern void OnFinalize();
|
21
18
|
}
|
22
19
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
using TaleWorlds.Localization;
|
3
3
|
|
4
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
4
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
5
5
|
{
|
6
6
|
public class InquiryElementVM : ViewModel
|
7
7
|
{
|
@@ -1,11 +1,10 @@
|
|
1
1
|
using System;
|
2
2
|
using System.Collections.Generic;
|
3
|
-
using System.Runtime.CompilerServices;
|
4
3
|
using TaleWorlds.Library;
|
5
4
|
|
6
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
5
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
7
6
|
{
|
8
|
-
public class
|
7
|
+
public class PropertyBasedTooltipVM : TooltipVM
|
9
8
|
{
|
10
9
|
public enum TooltipMode
|
11
10
|
{
|
@@ -16,43 +15,29 @@ namespace TaleWorlds.Core.ViewModelCollection
|
|
16
15
|
War
|
17
16
|
}
|
18
17
|
|
19
|
-
public bool IsExtended { get; set; }
|
20
|
-
|
21
18
|
[DataSourceProperty]
|
22
|
-
public
|
19
|
+
public MBBindingList<TooltipProperty> TooltipPropertyList { get; set; }
|
23
20
|
|
24
21
|
[DataSourceProperty]
|
25
|
-
public
|
22
|
+
public int Mode { get; set; }
|
26
23
|
|
27
|
-
public
|
28
|
-
get; }
|
24
|
+
public extern PropertyBasedTooltipVM();
|
29
25
|
|
30
|
-
[
|
31
|
-
public MBBindingList<TooltipProperty> TooltipPropertyList { get; set; }
|
26
|
+
public override extern void OnShowTooltip(Type type, object[] args);
|
32
27
|
|
33
|
-
public extern
|
28
|
+
public override extern void OnHideTooltip();
|
34
29
|
|
35
|
-
public static extern void AddTooltipType(Type type, Action<
|
30
|
+
public static extern void AddTooltipType(Type type, Action<PropertyBasedTooltipVM, object[]> action);
|
36
31
|
|
37
32
|
public static extern void AddKeyType(string keyID, Func<string> getKeyText);
|
38
33
|
|
39
34
|
public extern string GetKeyText(string keyID);
|
40
35
|
|
41
|
-
public override extern void OnFinalize();
|
42
|
-
|
43
|
-
public extern void OpenTooltip(Type type, object[] args);
|
44
|
-
|
45
|
-
public extern void AlternateTooltip(Type type, object[] args);
|
46
|
-
|
47
|
-
public extern void CloseTooltip();
|
48
|
-
|
49
36
|
public extern void UpdateTooltip(List<TooltipProperty> list);
|
50
37
|
|
51
|
-
public extern void
|
52
|
-
|
53
|
-
public extern void ShowDelayed(float time);
|
38
|
+
public override extern void Tick(float dt);
|
54
39
|
|
55
|
-
|
40
|
+
protected override extern void OnIsExtendedChanged();
|
56
41
|
|
57
42
|
public extern void AddProperty(string definition, string value, int textHeight = 0, TooltipProperty.TooltipPropertyFlags propertyFlags = TooltipProperty.TooltipPropertyFlags.None);
|
58
43
|
|
@@ -0,0 +1,78 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Runtime.CompilerServices;
|
3
|
+
using TaleWorlds.Library;
|
4
|
+
|
5
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
6
|
+
{
|
7
|
+
public class SceneNotificationVM : ViewModel
|
8
|
+
{
|
9
|
+
public SceneNotificationData ActiveData { [CompilerGenerated]
|
10
|
+
get; }
|
11
|
+
|
12
|
+
[DataSourceProperty]
|
13
|
+
public bool IsShown { get; set; }
|
14
|
+
|
15
|
+
[DataSourceProperty]
|
16
|
+
public bool IsReady { get; set; }
|
17
|
+
|
18
|
+
[DataSourceProperty]
|
19
|
+
public string ClickToContinueText { get; set; }
|
20
|
+
|
21
|
+
[DataSourceProperty]
|
22
|
+
public string TitleText { get; }
|
23
|
+
|
24
|
+
[DataSourceProperty]
|
25
|
+
public string AffirmativeDescription { get; }
|
26
|
+
|
27
|
+
[DataSourceProperty]
|
28
|
+
public string CancelDescription { get; }
|
29
|
+
|
30
|
+
[DataSourceProperty]
|
31
|
+
public string SceneID { get; }
|
32
|
+
|
33
|
+
[DataSourceProperty]
|
34
|
+
public string ButtonOkLabel { get; }
|
35
|
+
|
36
|
+
[DataSourceProperty]
|
37
|
+
public string ButtonCancelLabel { get; }
|
38
|
+
|
39
|
+
[DataSourceProperty]
|
40
|
+
public bool IsButtonOkShown { get; }
|
41
|
+
|
42
|
+
[DataSourceProperty]
|
43
|
+
public bool IsButtonCancelShown { get; }
|
44
|
+
|
45
|
+
[DataSourceProperty]
|
46
|
+
public string AffirmativeTitleText { get; }
|
47
|
+
|
48
|
+
[DataSourceProperty]
|
49
|
+
public string NegativeTitleText { get; }
|
50
|
+
|
51
|
+
[DataSourceProperty]
|
52
|
+
public object Scene { get; set; }
|
53
|
+
|
54
|
+
[DataSourceProperty]
|
55
|
+
public float EndProgress { get; set; }
|
56
|
+
|
57
|
+
[DataSourceProperty]
|
58
|
+
public BasicTooltipViewModel AffirmativeHint { get; set; }
|
59
|
+
|
60
|
+
public extern SceneNotificationVM(Action onPositiveTrigger, Action closeNotification, Func<string> getContinueInputText);
|
61
|
+
|
62
|
+
public override extern void RefreshValues();
|
63
|
+
|
64
|
+
public extern void CreateNotification(SceneNotificationData data);
|
65
|
+
|
66
|
+
public extern void ForceClose();
|
67
|
+
|
68
|
+
public extern void ExecuteAffirmativeProcess();
|
69
|
+
|
70
|
+
public extern void ExecuteClose();
|
71
|
+
|
72
|
+
public extern void ExecuteNegativeProcess();
|
73
|
+
|
74
|
+
public extern void ClearData();
|
75
|
+
|
76
|
+
public override extern void OnFinalize();
|
77
|
+
}
|
78
|
+
}
|
@@ -2,7 +2,7 @@ using System;
|
|
2
2
|
using System.Runtime.CompilerServices;
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
|
5
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
5
|
+
namespace TaleWorlds.Core.ViewModelCollection.Information
|
6
6
|
{
|
7
7
|
public class TooltipProperty : ViewModel, ISerializableObject
|
8
8
|
{
|
@@ -1,7 +1,8 @@
|
|
1
|
+
using TaleWorlds.Core.ViewModelCollection.Information;
|
1
2
|
using TaleWorlds.Library;
|
2
3
|
using TaleWorlds.Localization;
|
3
4
|
|
4
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
5
|
+
namespace TaleWorlds.Core.ViewModelCollection.Selector
|
5
6
|
{
|
6
7
|
public class SelectorItemVM : ViewModel
|
7
8
|
{
|
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|
3
3
|
using TaleWorlds.Library;
|
4
4
|
using TaleWorlds.Localization;
|
5
5
|
|
6
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
6
|
+
namespace TaleWorlds.Core.ViewModelCollection.Selector
|
7
7
|
{
|
8
8
|
public class SelectorVM<T> : ViewModel where T : SelectorItemVM
|
9
9
|
{
|
@@ -1,6 +1,6 @@
|
|
1
1
|
using TaleWorlds.Library;
|
2
2
|
|
3
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
3
|
+
namespace TaleWorlds.Core.ViewModelCollection.Tutorial
|
4
4
|
{
|
5
5
|
public class ElementNotificationVM : ViewModel
|
6
6
|
{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
using System.Runtime.CompilerServices;
|
2
2
|
using TaleWorlds.Library.EventSystem;
|
3
3
|
|
4
|
-
namespace TaleWorlds.Core.ViewModelCollection
|
4
|
+
namespace TaleWorlds.Core.ViewModelCollection.Tutorial
|
5
5
|
{
|
6
6
|
public class TutorialNotificationElementChangeEvent : EventBase
|
7
7
|
{
|