WoWInterface SVN SliceCommander

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/Core
    from Rev 232 to Rev 233
    Reverse comparison

Rev 232 → Rev 233

PixelPerfect.lua
28,7 → 28,10
if not _G['SC'].SET or _G['SC'].SET.PixelPerfect then
local resolution = ({GetScreenResolutions()})[GetCurrentResolution()]
if resolution == nil then
SliceCommander:StaticPopup_Show('FAILED_UISCALERESOLUTION')
resolution = _G['SC'].SET.fixedResolution
if resolution == nil then
SliceCommander:StaticPopup_Show('FAILED_UISCALERESOLUTION')
end
return false
end
local screenwidth, screenheight = DecodeResolution(resolution)
StaticPopups.lua
56,7 → 56,7
}
 
SC.PopupDialogs["FAILED_UISCALERESOLUTION"] = {
text = L["The resolution for the PixelPerfect option can not be found properly. You should try to change your client to fullscreen and then back to windowed."],
text = L["The resolution for the PixelPerfect option can not be found properly. You should try to change your client to fullscreen and then back to windowed. If does not fix the issue you can force the resolution for SliceCommander with the following macro '/sc resolution 1920x1080' (replace 1920x1080 by your resolution)."],
button1 = ACCEPT,
OnAccept = function() GameMenuButtonOptions:Click(); end,
timeout = 0,
328,12 → 328,16
return nil;
end
 
print(dialog:GetName().."Text");
local text = _G[dialog:GetName().."Text"];
local editBox = _G[dialog:GetName().."EditBox"];
local button1 = _G[dialog:GetName().."Button1"];
 
local maxHeightSoFar, maxWidthSoFar = (dialog.maxHeightSoFar or 0), (dialog.maxWidthSoFar or 0);
local width = 320;
local width = 500;
 
text:SCWidth(470);
text:SCHeight(90);
 
if ( dialog.numButtons == 3 ) then
width = 440;
349,7 → 353,7
dialog.maxWidthSoFar = width;
end
 
local height = 32 + text:GetHeight() + 8 + button1:GetHeight();
local height = 55 + text:GetHeight() + 8 + button1:GetHeight();
if ( info.hasEditBox ) then
height = height + 8 + editBox:GetHeight();
elseif ( info.hasMoneyFrame ) then