/
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) |
} |
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, |
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; |
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 |
L["A small red bar will be displaid on each timer bar impacted by the mechanic to show you when you can refresh the corresponding buff/debuff."] = true |
L["You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option."] = true |
L["One or more of the changes you have made require a ReloadUI."] = true |
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."] = true |
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)."] = true |
L["Add spell"] = true |
L["Add kicked spell at the start of the message."] = true |
L["Enable spell sound notitication"] = true |
L["A small red bar will be displaid on each timer bar impacted by the mechanic to show you when you can refresh the corresponding buff/debuff."] = "A small red bar will be displaid on each timer bar impacted by the mechanic to show you when you can refresh the corresponding buff/debuff." |
L["You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option."] = "You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option." |
L["One or more of the changes you have made require a ReloadUI."] = "Ðдно или неÑколÑко изменений ÑÑебÑÑÑ Ð¿ÐµÑезагÑÑзки инÑеÑÑейÑа" |
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."] = "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." |
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)."] = "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)." |
L["Add spell"] = "Add spell" |
L["Add kicked spell at the start of the message."] = "Add kicked spell at the start of the message." |
L["Enable spell sound notitication"] = "Enable spell sound notitication" |
L["A small red bar will be displaid on each timer bar impacted by the mechanic to show you when you can refresh the corresponding buff/debuff."] = true |
L["You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option."] = true |
L["One or more of the changes you have made require a ReloadUI."] = true |
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."] = true |
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)."] = true |
L["Add spell"] = true |
L["Add kicked spell at the start of the message."] = true |
L["Enable spell sound notitication"] = true |
L["A small red bar will be displaid on each timer bar impacted by the mechanic to show you when you can refresh the corresponding buff/debuff."] = "Une fine barre rouge sera affichée sur chaque barre de durée impacté par la mécanique pour montré quand vous pourrez réapliquer le buff/debuff." |
L["You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option."] = "Vous venez de changer l'échelle de votre interface, alors que votre option PixelPerfect est encore activée dans SliceCommander. Cliquer sur accepter si vous voulez désactiver l'option d'échelle automatique." |
L["One or more of the changes you have made require a ReloadUI."] = "Une ou plusieurs modifications que vous avez effectuées nécessitent un rechargement de l'interface." |
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."] = "La résolution du jeu utilisé pour l'option PixelPerfect n'a pas pu être récupérée correctement. Veuilliez essayer de basculer temporairement le mode d'affichage de fenêtré à pleine écran." |
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)."] = "La résolution du jeu utilisé pour l'option PixelPerfect n'a pas pu être récupérée correctement. Veuilliez essayer de basculer temporairement le mode d'affichage de fenêtré à pleine écran. Si cela ne corrige pas le problème vous pouvez essayé la macro suivante: '/sc resolution 1920x1080' (En remplaçant 1920x1080 par votre résolution)" |
L["Add spell"] = "Ajouter le sort" |
L["Add kicked spell at the start of the message."] = "Ajout le sort interrompu au début du message." |
L["Enable spell sound notitication"] = "Activer les notitications sonore sur les capacités" |
L["A small red bar will be displaid on each timer bar impacted by the mechanic to show you when you can refresh the corresponding buff/debuff."] = "A small red bar will be displaid on each timer bar impacted by the mechanic to show you when you can refresh the corresponding buff/debuff." |
L["You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option."] = "You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option." |
L["One or more of the changes you have made require a ReloadUI."] = "Eine oder mehrere Einstellungen, die du vorgenommen hast, benötigen ein Neuladen des Benutzerinterfaces um in Effekt zu treten." |
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."] = "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." |
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)."] = "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)." |
L["Add spell"] = "Add spell" |
L["Add kicked spell at the start of the message."] = "Add kicked spell at the start of the message." |
L["Enable spell sound notitication"] = "Enable spell sound notitication" |
L["A small red bar will be displaid on each timer bar impacted by the mechanic to show you when you can refresh the corresponding buff/debuff."] = "A small red bar will be displaid on each timer bar impacted by the mechanic to show you when you can refresh the corresponding buff/debuff." |
L["You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option."] = "You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option." |
L["One or more of the changes you have made require a ReloadUI."] = "å·²åæ´ä¸æå¤ä¸ªè®¾å®ï¼ééè½½çé¢." |
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."] = "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." |
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)."] = "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)." |
L["Add spell"] = "Add spell" |
L["Add kicked spell at the start of the message."] = "Add kicked spell at the start of the message." |
L["Enable spell sound notitication"] = "Enable spell sound notitication" |
SC.SET.TOTTarget = rest |
SliceCommander:CreateTOTMacro() |
print(L['Macro update']) |
elseif command == "resolution" and tostring(rest) then |
SC.SET.fixedResolution = rest |
ReloadUI() |
else |
InterfaceOptionsFrame_OpenToCategory("SliceCommander "..GetAddOnMetadata("SliceCommander", "Version")) |
InterfaceOptionsFrame_OpenToCategory("SliceCommander "..GetAddOnMetadata("SliceCommander", "Version")) |