Skip to content

Commit

Permalink
Update for 10.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Nov 27, 2022
1 parent d290697 commit 4a3beb3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions Peggle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2235,7 +2235,7 @@ local function Je(r, o, l, e, i, a, d, t, n)
e:SetHeight(32);
e:SetAutoFocus(false);
e:SetNumeric(a);
e:SetMaxLetters(d);
-- e:SetMaxLetters(d);
e:SetHitRectInsets(0, 0, 8, 8);
e:Show();
if(t)then
Expand All @@ -2251,7 +2251,7 @@ local function Je(r, o, l, e, i, a, d, t, n)
return e, o + 24;
end
local function x(n, a, h, o, S, t, l, d, r, c, i, s)
local t = CreateFrame("CheckButton", "PeggleCheckbox_"..o, t, "OptionsCheckButtonTemplate");
local t = CreateFrame("CheckButton", "PeggleCheckbox_"..o, t, "InterfaceOptionsCheckButtonTemplate");
t:SetWidth(21);
t:SetHeight(21);
t:SetPoint("Topleft", n, - a);
Expand Down Expand Up @@ -5898,7 +5898,7 @@ local function me()
n:Hide();
n.showID = 1;
t.fontObj = CreateFont("PeggleDropdownFont");
t.fontObj:SetFont(e.artPath.."OVERLOAD.ttf", 16);
t.fontObj:SetFont(e.artPath.."OVERLOAD.ttf", 16, "");
t.fontObj.oldSetFont = t.fontObj.SetFont;
t.fontObj.oldGetFont = t.fontObj.GetFont;
t.fontObj.oldGetFontObject = t.fontObj.GetFontObject;
Expand Down Expand Up @@ -9447,8 +9447,12 @@ local function W()
n:SetHeight(32);
n:SetTexture(e.artPath.."resize");
t.logo = a;
t:SetMaxResize(e.windowWidth * 1.5, e.windowHeight * 1.5);
t:SetMinResize(e.windowWidth / 2, e.windowHeight / 2);
if config.isRetail then
t:SetResizeBounds(e.windowWidth / 2, e.windowHeight / 2, e.windowWidth * 1.5, e.windowHeight * 1.5)
else
t:SetMaxResize(e.windowWidth * 1.5, e.windowHeight * 1.5);
t:SetMinResize(e.windowWidth / 2, e.windowHeight / 2);
end
t:SetResizable(true);
t:SetScript("OnSizeChanged", function(o)
local n = o:GetWidth();
Expand Down
4 changes: 2 additions & 2 deletions Peggle.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 90207
## Interface-Classic: 11403
## Interface: 100002
## Interface-Wrath: 30400
## Interface-Classic: 11403
## Title: Peggle (Unofficial)
## Version: @project-version@
## Notes: The popular game Peggle, now back in World of Warcraft Classic!
Expand Down

0 comments on commit 4a3beb3

Please sign in to comment.