-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.lua
More file actions
84 lines (84 loc) · 1.8 KB
/
settings.lua
File metadata and controls
84 lines (84 loc) · 1.8 KB
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
data:extend({
--
-- global settings
--
{
type = "int-setting",
name = "fill4me-maximum-fuel-value",
-- name is used to determine localization
setting_type = "runtime-global",
default_value = 0
},
{
type = "int-setting",
name = "fill4me-maximum-ammo-value",
-- name is used to determine localization
setting_type = "runtime-global",
default_value = 0
},
--
-- per player settings
--
{
type = "bool-setting",
name = "fill4me-show-gui-button",
-- name is used to determine localization
localised_name = {'fill4me.gui.show_button'},
localised_description = {'fill4me.gui.show_button_desc'},
setting_type = "runtime-per-user",
default_value = true
},
{
type = "bool-setting",
name = "fill4me-ignore-ammo-radius",
-- name is used to determine localization
setting_type = "runtime-per-user",
default_value = false
},
{
type = "string-setting",
name = "fill4me-ammo-load-limit",
setting_type = "runtime-per-user",
default_value = "both",
allowed_values = {"percent", "count", "both"},
order = "ammo-load-1",
},
{
type = "double-setting",
name = "fill4me-ammo-load-percent",
setting_type = "runtime-per-user",
default_value = 25.0,
minimum_value = 0.1,
maximum_value = 100.0,
order = "ammo-load-2",
},
{
type = "int-setting",
name = "fill4me-ammo-load-count",
setting_type = "runtime-per-user",
default_value = 10,
minimum_value = 1,
maximum_value = 200,
order = "ammo-load-3",
},
--
-- blacklist settings
--
{
name = "fill4me-blacklist-fuel",
type = "string-setting",
allow_blank = true,
setting_type = "runtime-per-user",
default_value = "",
order = "fill4me-2",
},
--[[
{
type = "string-setting",
name = "fill4me-blacklist-ammo",
setting_type = "runtime-per-user",
default_value = " ",
order = "fill4me-3",
},
]]--
})