Skip to content

Commit ab94af3

Browse files
committed
make more reasonable ranges in settings
1 parent b28c959 commit ab94af3

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

UI.lua

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function MPT:CreateTextSetting(name, key, order, Color)
2222
settings.args.enabled = self:CreateToggle(1, "Enable", "Enabled", {key, "enabled"}, true)
2323
settings.args.Anchor = self:CreateDropDown(2, {["LEFT"] = "LEFT", ["RIGHT"] = "RIGHT", ["CENTER"] = "CENTER", ["TOPLEFT"] = "TOPLEFT", ["TOPRIGHT"] = "TOPRIGHT", ["BOTTOMLEFT"] = "BOTTOMLEFT", ["BOTTOMRIGHT"] = "BOTTOMRIGHT"}, "Anchor", "", {key, "Anchor"}, true)
2424
settings.args.RelativeTo = self:CreateDropDown(3, {["LEFT"] = "LEFT", ["RIGHT"] = "RIGHT", ["CENTER"] = "CENTER", ["TOPLEFT"] = "TOPLEFT", ["TOPRIGHT"] = "TOPRIGHT", ["BOTTOMLEFT"] = "BOTTOMLEFT", ["BOTTOMRIGHT"] = "BOTTOMRIGHT"}, "Relative To", "", {key, "RelativeTo"}, true)
25-
settings.args.xOffset = self:CreateRange(4, "X Offset", "X Offset of the Text", -1000, 1000, 1, {key, "xOffset"}, true)
26-
settings.args.yOffset = self:CreateRange(5, "Y Offset", "Y Offset of the Text", -1000, 1000, 1, {key, "yOffset"}, true)
25+
settings.args.xOffset = self:CreateRange(4, "X Offset", "X Offset of the Text", -200, 200, 1, {key, "xOffset"}, true)
26+
settings.args.yOffset = self:CreateRange(5, "Y Offset", "Y Offset of the Text", -200, 200, 1, {key, "yOffset"}, true)
2727
settings.args.Font = self:CreateDropDown(6, fontTable, "Font", "", {key, "Font"}, true)
2828
settings.args.FontSize = self:CreateRange(7, "Font Size", "Size of the Font", 6, 40, 1, {key, "FontSize"}, true)
2929
settings.args.Outline = self:CreateDropDown(8, {["NONE"] = "None", ["OUTLINE"] = "Outline", ["THICKOUTLINE"] = "Thick Outline", ["MONOCHROME"] = "Monochrome"}, "Font Outline", "", {key, "Outline"}, true)
@@ -43,10 +43,10 @@ function MPT:CreateStatusBarSettings(name, key, order)
4343
args = {}
4444
}
4545
settings.args.Width = self:CreateRange(4, "Width", "Width of the Status Bar", 50, 1000, 1, {key, "Width"}, true)
46-
settings.args.Height = self:CreateRange(5, "Height", "Height of the Status Bar", 6, 200, 1, {key, "Height"}, true)
46+
settings.args.Height = self:CreateRange(5, "Height", "Height of the Status Bar", 6, 100, 1, {key, "Height"}, true)
4747
settings.args.Texture = self:CreateDropDown(6, textureTable, "Texture", "", {key, "Texture"}, true)
48-
settings.args.xOffset = self:CreateRange(7, "X Offset", "X Offset of the Status Bar", -1000, 1000, 1, {key, "xOffset"}, true)
49-
settings.args.yOffset = self:CreateRange(8, "Y Offset", "Y Offset of the Status Bar", -1000, 1000, 1, {key, "yOffset"}, true)
48+
settings.args.xOffset = self:CreateRange(7, "X Offset", "X Offset of the Status Bar", -300, 300, 1, {key, "xOffset"}, true)
49+
settings.args.yOffset = self:CreateRange(8, "Y Offset", "Y Offset of the Status Bar", -300, 300, 1, {key, "yOffset"}, true)
5050
settings.args.SizeGap = self:CreateSpace(9)
5151
settings.args.BorderSize = self:CreateRange(10, "Border Size", "Size of the Border", 1, 10, 1, {key, "BorderSize"}, true)
5252
settings.args.BorderColor = self:CreateColor(11, "Border Color", "", {key, "BorderColor"}, true)
@@ -182,11 +182,11 @@ local Background = {
182182
enabled = MPT:CreateToggle(1, "Enable", "Enable Background", {"Background", "enabled"}, true),
183183
Color = MPT:CreateColor(2, "Color", "Color of the Background", {"Background", "Color"}, true),
184184
BorderColor = MPT:CreateColor(3, "Border Color", "Color of the Border", {"Background", "BorderColor"}, true),
185-
xOffset = MPT:CreateRange(4, "X Offset", "X Offset of the Background", -500, 500, 1, {"Background", "xOffset"}, true),
186-
yOffset = MPT:CreateRange(5, "Y Offset", "Y Offset of the Background", -500, 500, 1, {"Background", "yOffset"}, true),
185+
xOffset = MPT:CreateRange(4, "X Offset", "X Offset of the Background", -300, 300, 1, {"Background", "xOffset"}, true),
186+
yOffset = MPT:CreateRange(5, "Y Offset", "Y Offset of the Background", -300, 300, 1, {"Background", "yOffset"}, true),
187187
BorderSize = MPT:CreateRange(6, "Border Size", "Size of the Border", 1, 10, 1, {"Background", "BorderSize"}, true),
188-
WidthOffset = MPT:CreateRange(7, "Width Offset", "Additional or less Width", -500, 500, 1, {"Background", "WidthOffset"}, true),
189-
HeightOffset = MPT:CreateRange(8, "Height Offset", "Additional or less Height", -500, 500, 1, {"Background", "HeightOffset"}, true),
188+
WidthOffset = MPT:CreateRange(7, "Width Offset", "Additional or less Width", -300, 300, 1, {"Background", "WidthOffset"}, true),
189+
HeightOffset = MPT:CreateRange(8, "Height Offset", "Additional or less Height", -300, 300, 1, {"Background", "HeightOffset"}, true),
190190
}
191191
}
192192

@@ -215,10 +215,10 @@ local KeyInfoBar = {
215215
Anchor = MPT:CreateDropDown(2, {["LEFT"] = "LEFT", ["RIGHT"] = "RIGHT", ["CENTER"] = "CENTER", ["TOPLEFT"] = "TOPLEFT", ["TOPRIGHT"] = "TOPRIGHT", ["BOTTOMLEFT"] = "BOTTOMLEFT", ["BOTTOMRIGHT"] = "BOTTOMRIGHT"}, "Anchor", "", {"KeyInfo", "Anchor"}, true),
216216
RelativeTo = MPT:CreateDropDown(3, {["LEFT"] = "LEFT", ["RIGHT"] = "RIGHT", ["CENTER"] = "CENTER", ["TOPLEFT"] = "TOPLEFT", ["TOPRIGHT"] = "TOPRIGHT", ["BOTTOMLEFT"] = "BOTTOMLEFT", ["BOTTOMRIGHT"] = "BOTTOMRIGHT"}, "Relative To", "", {"KeyInfo", "RelativeTo"}, true),
217217
Width = MPT:CreateRange(4, "Width", "Width of the Key Info Bar", 50, 1000, 1, {"KeyInfo", "Width"}, true),
218-
Height = MPT:CreateRange(5, "Height", "Height of the Key Info Bar", 10, 200, 1, {"KeyInfo", "Height"}, true),
218+
Height = MPT:CreateRange(5, "Height", "Height of the Key Info Bar", 6, 100, 1, {"KeyInfo", "Height"}, true),
219219
Gap = MPT:CreateSpace(6),
220-
xOffset = MPT:CreateRange(7, "X Offset", "X Offset of the Key Info Bar", -500, 500, 1, {"KeyInfo", "xOffset"}, true),
221-
yOffset = MPT:CreateRange(8, "Y Offset", "Y Offset of the Key Info Bar", -500, 500, 1, {"KeyInfo", "yOffset"}, true),
220+
xOffset = MPT:CreateRange(7, "X Offset", "X Offset of the Key Info Bar", -300, 300, 1, {"KeyInfo", "xOffset"}, true),
221+
yOffset = MPT:CreateRange(8, "Y Offset", "Y Offset of the Key Info Bar", -300, 300, 1, {"KeyInfo", "yOffset"}, true),
222222
}
223223
}
224224
local KeyLevel = MPT:CreateTextSetting("Key Level", "KeyLevel", 2, true)
@@ -233,8 +233,8 @@ local DeathIcon = {
233233
enabled = MPT:CreateToggle(1, "Enable", "Enable Death Icon", {"enabled", "Iconenabled"}, true),
234234
iconAnchor = MPT:CreateDropDown(2, {["LEFT"] = "LEFT", ["RIGHT"] = "RIGHT", ["CENTER"] = "CENTER"}, "Anchor", "", {"DeathCounter", "IconAnchor"}, true),
235235
iconRelativeTo = MPT:CreateDropDown(3, {["LEFT"] = "LEFT", ["RIGHT"] = "RIGHT", ["CENTER"] = "CENTER"}, "Relative To", "", {"DeathCounter", "IconRelativeTo"}, true),
236-
xOffset = MPT:CreateRange(4, "X Offset", "X Offset of the Death Icon", -500, 500, 1, {"Icon XOffset", "IconxOffset"}, true),
237-
yOffset = MPT:CreateRange(5, "Y Offset", "Y Offset of the Death Icon", -500, 500, 1, {"Icon YOffset", "IconyOffset"}, true),
236+
xOffset = MPT:CreateRange(4, "X Offset", "X Offset of the Death Icon", -300, 300, 1, {"Icon XOffset", "IconxOffset"}, true),
237+
yOffset = MPT:CreateRange(5, "Y Offset", "Y Offset of the Death Icon", -300, 300, 1, {"Icon YOffset", "IconyOffset"}, true),
238238
}
239239
}
240240
local KeyInfo = {
@@ -321,15 +321,15 @@ local BossesBar = {
321321
AnchoredTo = MPT:CreateDropDown(1, {["MainFrame"] = "Main Frame", ["KeyInfo"] = "KeyInfo Bar", ["TimerBar"] = "Timer Bar", ["ForcesBar"] = "Forces Bar"}, "Anchored To", "What the Bosses Bar is anchored to", {"Bosses", "AnchoredTo"}, true),
322322
Anchor = MPT:CreateDropDown(2, {["LEFT"] = "LEFT", ["RIGHT"] = "RIGHT", ["CENTER"] = "CENTER", ["TOPLEFT"] = "TOPLEFT", ["TOPRIGHT"] = "TOPRIGHT", ["BOTTOMLEFT"] = "BOTTOMLEFT", ["BOTTOMRIGHT"] = "BOTTOMRIGHT"}, "Anchor", "", {"Bosses", "Anchor"}, true),
323323
RelativeTo = MPT:CreateDropDown(3, {["LEFT"] = "LEFT", ["RIGHT"] = "RIGHT", ["CENTER"] = "CENTER", ["TOPLEFT"] = "TOPLEFT", ["TOPRIGHT"] = "TOPRIGHT", ["BOTTOMLEFT"] = "BOTTOMLEFT", ["BOTTOMRIGHT"] = "BOTTOMRIGHT"}, "Relative To", "", {"Bosses", "RelativeTo"}, true),
324-
Width = MPT:CreateRange(4, "Bosses Bar Width", "Width of the Bosses Bar", 10, 200, 1, {"Bosses", "Width"}, true),
325-
Height = MPT:CreateRange(5, "Bosses Bar Height", "Height of the Bosses Bar", 10, 200, 1, {"Bosses", "Height"}, true),
324+
Width = MPT:CreateRange(4, "Bosses Bar Width", "Width of the Bosses Bar", 50, 1000, 1, {"Bosses", "Width"}, true),
325+
Height = MPT:CreateRange(5, "Bosses Bar Height", "Height of the Bosses Bar", 6, 100, 1, {"Bosses", "Height"}, true),
326326
Gap = MPT:CreateSpace(6),
327-
XOffset = MPT:CreateRange(7, "Bosses Bar X Offset", "X Offset of the Bosses Bar", -500, 500, 1, {"Bosses", "xOffset"}, true),
328-
YOffset = MPT:CreateRange(8, "Bosses Bar Y Offset", "Y Offset of the Bosses Bar", -500, 500, 1, {"Bosses", "yOffset"}, true),
327+
XOffset = MPT:CreateRange(7, "Bosses Bar X Offset", "X Offset of the Bosses Bar", -300, 300, 1, {"Bosses", "xOffset"}, true),
328+
YOffset = MPT:CreateRange(8, "Bosses Bar Y Offset", "Y Offset of the Bosses Bar", -300, 300, 1, {"Bosses", "yOffset"}, true),
329329
}
330330
}
331331
local BossName = MPT:CreateTextSetting("Boss Name", "BossName", 2, true)
332-
BossName.args.MaxLength = MPT:CreateRange(11, "Max Length", "Maximum Length of the Boss Name", 0, 100, 1, {"BossName", "MaxLength"}, true)
332+
BossName.args.MaxLength = MPT:CreateRange(11, "Max Length", "Maximum Length of the Boss Name", 5, 40, 1, {"BossName", "MaxLength"}, true)
333333
BossName.args.CompletionColor = MPT:CreateColor(12, "Completion Color", "Color of the Boss Name after the boss was defeated", {"BossName", "CompletionColor"}, true)
334334
local BossSplit = MPT:CreateTextSetting("Boss Split", "BossSplit", 3, true)
335335
BossSplit.args.SuccessColor = MPT:CreateColor(12, "Success Color", "Color of the Boss Split if the timer is faster than the previous best", {"BossSplit", "SuccessColor"}, true)

0 commit comments

Comments
 (0)