Skip to content

Instantly share code, notes, and snippets.

@chiel

chiel/init.lua Secret

Created January 7, 2013 13:51
Show Gist options
  • Save chiel/9875baad4cf7a9f26627 to your computer and use it in GitHub Desktop.
Save chiel/9875baad4cf7a9f26627 to your computer and use it in GitHub Desktop.
local f = CreateFrame('frame')
f:RegisterEvent('ADDON_LOADED')
f:RegisterEvent('VARIABLES_LOADED')
f:SetScript('OnEvent', function(frame, event, ...)
if event == 'VARIABLES_LOADED' then
UIParent:SetScale(768/1440)
QuestLogFrame:SetScale(1.25)
CharacterFrame:SetScale(1.25)
MinimapCluster:SetScale(1.25)
BuffFrame:SetScale(1.25)
ConsolidatedBuffs:SetScale(1.25)
ConsolidatedBuffsTooltip:SetScale(1.25)
PVPFrame:SetScale(1.25)
PVEFrame:SetScale(1.25)
SpellBookFrame:SetScale(1.25)
GossipFrame:SetScale(1.25)
QuestFrame:SetScale(1.25)
QuestLogDetailFrame:SetScale(1.25)
MerchantFrame:SetScale(1.25)
DressUpFrame:SetScale(1.25)
MailFrame:SetScale(1.25)
ChatFrame1:SetScale(1.25)
elseif event == 'ADDON_LOADED' then
if ... == 'Blizzard_GuildUI' then
GuildFrame:SetScale(1.25)
elseif ... == 'Blizzard_AchievementUI' then
AchievementFrame:SetScale(1.25)
elseif ... == 'Blizzard_EncounterJournal' then
EncounterJournal:SetScale(1.25)
elseif ... == 'Blizzard_PetJournal' then
PetJournalParent:SetScale(1.25)
elseif ... == 'Blizzard_TalentUI' then
PlayerTalentFrame:SetScale(1.25)
elseif ... == 'Blizzard_GuildBankUI' then
GuildBankFrame:SetScale(1.25)
elseif ... == 'Blizzard_TradeSkillUI' then
TradeSkillFrame:SetScale(1.25)
elseif ... == 'Blizzard_InspectUI' then
InspectFrame:SetScale(1.25)
elseif ... == 'Blizzard_ItemAlterationUI' then
TransmogrifyFrame:SetScale(1.25)
elseif ... == 'Blizzard_ReforgingUI' then
ReforgingFrame:SetScale(1.25)
elseif ... == 'Blizzard_AuctionUI' then
AuctionFrame:SetScale(1.25)
elseif ... == 'Blizzard_MacroUI' then
MacroFrame:SetScale(1.25)
elseif ... == 'Blizzard_Calendar' then
CalendarFrame:SetScale(1.25)
CalendarContextMenu:SetScale(.8)
end
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment