Skip to content

Commit 0b31fba

Browse files
committed
f4
1 parent 8c94356 commit 0b31fba

1 file changed

Lines changed: 60 additions & 60 deletions

File tree

MemoryGarbageCollector/MemoryGarbageCollector.lua

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
MemoryGarbageCollector = {
2-
name = "MemoryGarbageCollector",
3-
version = "dev",
4-
author = "|cbf16b9NeBioNik|r [@BioNik12]",
2+
name = "MemoryGarbageCollector",
3+
version = "dev",
4+
author = "|cbf16b9NeBioNik|r [@BioNik12]",
55

6-
fullName = "Memory Garbage Collector",
6+
fullName = "Memory Garbage Collector",
77
shortName = "MGC",
8-
prefix = "|cbf16b9[MGC]|r",
8+
prefix = "|cbf16b9[MGC]|r",
99

10-
chat = nil,
10+
chat = nil,
1111

12-
color = {
12+
color = {
1313
main = "bf16b9",
1414
grey = "666666",
1515
},
1616

17-
config = {}
17+
config = {}
1818
}
1919

2020
local MGC = MemoryGarbageCollector
@@ -23,11 +23,11 @@ local MGC = MemoryGarbageCollector
2323
MGC.maxMemoryUsage = 0
2424

2525
local DEFAULT_SAVED_VARS = {
26-
autoClear = true,
27-
refreshRate = 10, -- minutes
28-
comparisonMethod = 1,
29-
overflowRelative = 10, -- percent
30-
overflowAbsolute = 50, -- MB
26+
autoClear = true,
27+
refreshRate = 10, -- minutes
28+
comparisonMethod = 1,
29+
overflowRelative = 10, -- percent
30+
overflowAbsolute = 50, -- MB
3131
showDebugMessages = false,
3232
}
3333

@@ -54,10 +54,10 @@ function MGC:InitMenu()
5454
local panelName = self.name .. "_LAM"
5555

5656
local panelData = {
57-
type = "panel",
58-
name = self.fullName,
59-
author = self.author,
60-
registerForRefresh = true,
57+
type = "panel",
58+
name = self.fullName,
59+
author = self.author,
60+
registerForRefresh = true,
6161
registerForDefaults = true,
6262
}
6363

@@ -67,12 +67,12 @@ function MGC:InitMenu()
6767
text = GFS(ADDON_DESCRIPTION),
6868
},
6969
{
70-
type = "divider",
70+
type = "divider",
7171
alpha = 0.4,
7272
},
7373
{
74-
type = "checkbox",
75-
name = GFS(AUTO_CLEAR),
74+
type = "checkbox",
75+
name = GFS(AUTO_CLEAR),
7676
tooltip = GFS(AUTO_CLEAR_TOOLTIP),
7777
getFunc = function()
7878
return self.config.autoClear
@@ -84,95 +84,95 @@ function MGC:InitMenu()
8484
default = DEFAULT_SAVED_VARS.autoClear,
8585
},
8686
{
87-
type = "slider",
88-
name = GFS(REFRESH_RATE),
89-
tooltip = GFS(REFRESH_RATE_TOOLTIP),
90-
min = 1,
91-
max = 60,
87+
type = "slider",
88+
name = GFS(REFRESH_RATE),
89+
tooltip = GFS(REFRESH_RATE_TOOLTIP),
90+
min = 1,
91+
max = 60,
9292
decimals = 0,
9393
disabled = function()
9494
return not self.config.autoClear
9595
end,
96-
getFunc = function()
96+
getFunc = function()
9797
return self.config.refreshRate
9898
end,
99-
setFunc = function(v)
99+
setFunc = function(v)
100100
self.config.refreshRate = v
101101
self:refreshSettings()
102102
end,
103-
default = DEFAULT_SAVED_VARS.refreshRate,
103+
default = DEFAULT_SAVED_VARS.refreshRate,
104104
},
105105
{
106-
type = "dropdown",
107-
name = GFS(COMPARISON_METHOD),
108-
tooltip = GFS(COMPARISON_METHOD_TOOLTIP),
109-
disabled = function()
106+
type = "dropdown",
107+
name = GFS(COMPARISON_METHOD),
108+
tooltip = GFS(COMPARISON_METHOD_TOOLTIP),
109+
disabled = function()
110110
return not self.config.autoClear
111111
end,
112-
getFunc = function()
112+
getFunc = function()
113113
return self.config.comparisonMethod
114114
end,
115-
setFunc = function(v)
115+
setFunc = function(v)
116116
self.config.comparisonMethod = v
117117
end,
118118
choicesValues = { 1, 2 },
119-
choices = { GFS(OVERFLOW_RELATIVE), GFS(OVERFLOW_ABSOLUTE) },
120-
default = DEFAULT_SAVED_VARS.comparisonMethod,
119+
choices = { GFS(OVERFLOW_RELATIVE), GFS(OVERFLOW_ABSOLUTE) },
120+
default = DEFAULT_SAVED_VARS.comparisonMethod,
121121
},
122122
{
123-
type = "slider",
124-
name = GFS(OVERFLOW_RELATIVE),
125-
tooltip = GFS(OVERFLOW_RELATIVE_TOOLTIP),
126-
min = 5,
127-
max = 50,
128-
step = 5,
123+
type = "slider",
124+
name = GFS(OVERFLOW_RELATIVE),
125+
tooltip = GFS(OVERFLOW_RELATIVE_TOOLTIP),
126+
min = 5,
127+
max = 50,
128+
step = 5,
129129
decimals = 0,
130130
disabled = function()
131131
return not (self.config.autoClear and self.config.comparisonMethod == 1)
132132
end,
133-
getFunc = function()
133+
getFunc = function()
134134
return self.config.overflowRelative
135135
end,
136-
setFunc = function(v)
136+
setFunc = function(v)
137137
self.config.overflowRelative = v
138138
self:refreshSettings()
139139
end,
140-
default = DEFAULT_SAVED_VARS.overflowRelative,
140+
default = DEFAULT_SAVED_VARS.overflowRelative,
141141
},
142142
{
143-
type = "slider",
144-
name = GFS(OVERFLOW_ABSOLUTE),
145-
tooltip = GFS(OVERFLOW_ABSOLUTE_TOOLTIP),
146-
min = 30,
147-
max = 500,
148-
step = 25,
143+
type = "slider",
144+
name = GFS(OVERFLOW_ABSOLUTE),
145+
tooltip = GFS(OVERFLOW_ABSOLUTE_TOOLTIP),
146+
min = 30,
147+
max = 500,
148+
step = 25,
149149
decimals = 0,
150150
disabled = function()
151151
return not (self.config.autoClear and self.config.comparisonMethod == 2)
152152
end,
153-
getFunc = function()
153+
getFunc = function()
154154
return self.config.overflowAbsolute
155155
end,
156-
setFunc = function(v)
156+
setFunc = function(v)
157157
self.config.overflowAbsolute = v
158158
self:refreshSettings()
159159
end,
160-
default = DEFAULT_SAVED_VARS.overflowAbsolute,
160+
default = DEFAULT_SAVED_VARS.overflowAbsolute,
161161
},
162162
{
163-
type = "checkbox",
164-
name = "showDebugMessages",
165-
tooltip = "Show showDebugMessages messages.",
163+
type = "checkbox",
164+
name = "showDebugMessages",
165+
tooltip = "Show showDebugMessages messages.",
166166
disabled = function()
167167
return not self.config.autoClear
168168
end,
169-
getFunc = function()
169+
getFunc = function()
170170
return self.config.showDebugMessages
171171
end,
172-
setFunc = function(v)
172+
setFunc = function(v)
173173
self.config.showDebugMessages = v
174174
end,
175-
default = DEFAULT_SAVED_VARS.showDebugMessages,
175+
default = DEFAULT_SAVED_VARS.showDebugMessages,
176176
},
177177
}
178178

0 commit comments

Comments
 (0)