subText:SetJustifyH("LEFT") |
subText:SetJustifyV("TOP") |
|
local trackerTitle = panel:CreateFontString(nil, "ARTWORK", "GameFontNormal") |
trackerTitle:SetText("Tracker") |
trackerTitle:SetPoint("TOPLEFT", subText, "BOTTOMLEFT", 0, -10) |
|
local reset = CreateFrame("Button", nil, panel, "UIPanelButtonTemplate") |
reset:SetPoint("TOPLEFT", trackerTitle, "BOTTOMLEFT", 0, -10) |
reset:SetWidth(120) |
reset:SetHeight(24) |
reset.text = reset:GetRegions() |
reset.text:SetText("Reset Tracker") |
reset:SetScript("OnClick", function() |
UASVPC.tracker.x = UIParent:GetWidth()/2 |
UASVPC.tracker.y = UIParent:GetHeight()/2 |
UrbanAchiever.tracker:SetPoint("TOPLEFT", UIParent, "BOTTOMLEFT", UASVPC.tracker.x, UASVPC.tracker.y) |
UrbanAchiever.tracker.header:Show() |
end) |
|
local move = CreateFrame("Button", nil, panel, "UIPanelButtonTemplate") |
move:SetPoint("TOPLEFT", reset, "TOPRIGHT", 5, 0) |
move:SetWidth(120) |
move:SetHeight(24) |
move.text = move:GetRegions() |
move.text:SetText("Move Tracker") |
move:SetScript("OnClick", function() |
UrbanAchiever.tracker.header:Show() |
end) |
|
local scale = CreateFrame("Slider", nil, panel, "OptionsSliderTemplate") |
scale:SetPoint("TOPLEFT", reset, "BOTTOMLEFT", 3, -13) |
scale.text = select(10, scale:GetRegions()) |
scale.text:SetText(format("Scale: %.2f", UASVPC.tracker.scale or 1)) |
scale.low = select(11, scale:GetRegions()) |
scale.low:SetText(0.5) |
scale.high = select(12, scale:GetRegions()) |
scale.high:SetText(2) |
scale:SetMinMaxValues(0.5, 2) |
scale:SetValueStep(0.05) |
scale:SetValue(UASVPC.tracker.scale or 1) |
scale:SetScript("OnValueChanged", function(self) |
UASVPC.tracker.scale = self:GetValue() |
scale.text:SetText(format("Scale: %.2f", UASVPC.tracker.scale or 1)) |
UrbanAchiever:ScaleTracker() |
end) |
|
local statTitle = panel:CreateFontString(nil, "ARTWORK", "GameFontNormal") |
statTitle:SetText("Options") |
statTitle:SetPoint("TOPLEFT", scale, "BOTTOMLEFT", 0, -15) |
statTitle:SetPoint("TOPLEFT", subText, "BOTTOMLEFT", 0, -10) |
|
local sC = CreateFrame("CheckButton", "UACB", panel, "OptionsCheckButtonTemplate") |
sC:SetPoint("TOPLEFT", statTitle, "BOTTOMLEFT", 0, -10) |