-
Notifications
You must be signed in to change notification settings - Fork 169
/
Copy pathConfigMenuTemplate.psc
123 lines (84 loc) · 2.52 KB
/
ConfigMenuTemplate.psc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
scriptname MyConfigMenu extends SKI_ConfigBase
; SCRIPT VERSION ----------------------------------------------------------------------------------
int function GetVersion()
return 1 ; Default version
endFunction
; PRIVATE VARIABLES -------------------------------------------------------------------------------
; OIDs (T:Text B:Toggle S:Slider M:Menu, C:Color, K:Key)
int _myTextOID_T
int _myToggle_OID_B
int _mySliderOID_S
int _myMenuOID_M
int _myColorOID_C
int _myKeyOID_K
; State
; ...
; Internal
; ...
; INITIALIZATION ----------------------------------------------------------------------------------
; @implements SKI_ConfigBase
event OnConfigInit()
{Called when this config menu is initialized}
; ...
endEvent
; @implements SKI_QuestBase
event OnVersionUpdate(int a_version)
{Called when a version update of this script has been detected}
; ...
endEvent
; EVENTS ------------------------------------------------------------------------------------------
; @implements SKI_ConfigBase
event OnPageReset(string a_page)
{Called when a new page is selected, including the initial empty page}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionHighlight(int a_option)
{Called when highlighting an option}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionSelect(int a_option)
{Called when a non-interactive option has been selected}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionDefault(int a_option)
{Called when resetting an option to its default value}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionSliderOpen(int a_option)
{Called when a slider option has been selected}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionSliderAccept(int a_option, float a_value)
{Called when a new slider value has been accepted}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionMenuOpen(int a_option)
{Called when a menu option has been selected}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionMenuAccept(int a_option, int a_index)
{Called when a menu entry has been accepted}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionColorOpen(int a_option)
{Called when a color option has been selected}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionColorAccept(int a_option, int a_color)
{Called when a new color has been accepted}
; ...
endEvent
; @implements SKI_ConfigBase
event OnOptionKeyMapChange(int a_option, int a_keyCode, string a_conflictControl, string a_conflictName)
{Called when a key has been remapped}
; ...
endEvent