-
Notifications
You must be signed in to change notification settings - Fork 0
/
modinfo.lua
206 lines (194 loc) · 5.75 KB
/
modinfo.lua
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name = "Item Wheel for Controllers"
description = "Radial wheel for controller users to equip equippable items ala Ratchet and Clank."
author = "triazic"
version = "1.8.3"
forumthread = "//"
api_version = 10
priority = -1 -- to make it load after Party Dance
-- Compatible with the base game & ROG
dont_starve_compatible = false
reign_of_giants_compatible = false
dst_compatible = true
--icon_atlas = "gesturewheelicon.xml"
--icon = "gesturewheelicon.tex"
--These let clients know if they need to get the mod from the Steam Workshop to join the game
all_clients_require_mod = false
--This determines whether it causes a server to be marked as modded (and shows in the mod list)
client_only_mod = true
--This lets people search for servers with this mod by these tags
server_filter_tags = {}
local KEY_A = 65
local keyslist = {}
local string = "" -- can't believe I have to do this... -____-
for i = 1, 26 do
local ch = string.char(KEY_A + i - 1)
keyslist[i] = {description = ch, data = ch}
end
local scalefactors = {}
for i = 1, 20 do
scalefactors[i] = {description = i/10, data = i/10}
end
--TODO: Make sure this stays in sync with the modmain and emote file
local eight_options =
{
-- Default emotes
{description = "/wave", data = "wave"},
{description = "/rude", data = "rude"},
{description = "/happy", data = "happy"},
{description = "/angry", data = "angry"},
{description = "/sad", data = "sad"},
{description = "/annoyed", data = "annoyed"},
{description = "/joy", data = "joy"},
{description = "/dance", data = "dance"},
{description = "/bonesaw", data = "bonesaw"},
{description = "/facepalm", data = "facepalm"},
{description = "/kiss", data = "kiss"},
{description = "/pose", data = "pose"},
{description = "/sit", data = "sit"},
{description = "/squat", data = "squat"},
{description = "/toast", data = "toast"},
-- Unlockable emotes
{description = "/sleepy", data = "sleepy"},
{description = "/yawn", data = "yawn"},
{description = "/swoon", data = "swoon"},
{description = "/chicken", data = "chicken"},
{description = "/robot", data = "robot"},
{description = "/step", data = "step"},
{description = "/fistshake",data = "fistshake"},
{description = "/flex", data = "flex"},
{description = "/impatient",data = "impatient"},
{description = "/cheer", data = "cheer"},
{description = "/laugh", data = "laugh"},
{description = "/shrug", data = "shrug"},
{description = "/slowclap", data = "slowclap"},
{description = "/carol", data = "carol"},
}
configuration_options =
{
{
name = "KEYBOARDTOGGLEKEY",
label = "Toggle Button",
hover = "The key you need to hold to bring up the gesture wheel.",
options = keyslist,
default = "G", --G
},
{
name = "SCALEFACTOR",
label = "Wheel Size",
hover = "How big to make the wheel.",
options = scalefactors,
default = 1,
},
{
name = "IMAGETEXT",
label = "Show Picture/Text",
options = {
{description = "Both", data = 3},
{description = "Picture Only", data = 2},
{description = "Text Only", data = 1},
},
default = 3,
},
{
name = "CENTERWHEEL",
label = "Center Wheel",
options = {
{description = "On", data = true},
{description = "Off", data = false},
},
default = true,
},
{
name = "RESTORECURSOR",
label = "Restore cursor position",
hover = "Where to move the mouse before and after selection if the wheel is centered.",
options = {
{description = "Relative", data = 3,
hover = "Puts the cursor where it would be if it hadn't\nbeen moved to the center of the wheel."},
{description = "Absolute", data = 2,
hover = "Puts the cursor where it was before the wheel,\nignoring the movements to select an emote."},
{description = "Center", data = 1,
hover = "Only centers the cursor in the wheel,\nand doesn't move it after selecting."},
{description = "Off", data = 0,
hover = "Doesn't move the cursor ever.\nAn emote may be already selected based on where the cursor was before."},
},
default = 3,
},
{
name = "RIGHTSTICK",
label = "Controller Stick",
hover = "Which controller analog stick to use to select emotes on the wheel.",
options = {
{description = "Left", data = false},
{description = "Right", data = true},
},
default = true,
},
{
name = "ONLYEIGHT",
label = "Limit to 8",
hover = "Limits the wheel to 8 emotes, determined by the selections in the options below."
.."\nNote that options after /squat need to be unlocked by emote items.",
options = {
{description = "On", data = true},
{description = "Off", data = false},
},
default = false,
},
{
name = "EIGHT1",
label = "Right Emote",
hover = "This will be shown directly to the right.",
options = eight_options,
default = "wave",
},
{
name = "EIGHT2",
label = "Up-Right Emote",
hover = "This will be shown diagonally up-right.",
options = eight_options,
default = "dance",
},
{
name = "EIGHT3",
label = "Up Emote",
hover = "This will be shown directly up.",
options = eight_options,
default = "happy",
},
{
name = "EIGHT4",
label = "Up-Left Emote",
hover = "This will be shown diagonally up-left.",
options = eight_options,
default = "bonesaw",
},
{
name = "EIGHT5",
label = "Left Emote",
hover = "This will be shown directly to the left.",
options = eight_options,
default = "rude",
},
{
name = "EIGHT6",
label = "Down-Left Emote",
hover = "This will be shown diagonally down-left.",
options = eight_options,
default = "facepalm",
},
{
name = "EIGHT7",
label = "Down Emote",
hover = "This will be shown directly down.",
options = eight_options,
default = "sad",
},
{
name = "EIGHT8",
label = "Down-Right Emote",
hover = "This will be shown diagonally down-right.",
options = eight_options,
default = "kiss",
},
}