Rev 5 → Rev 4
SoopUI 3.0 beta 1.0.1/SoopUI.lua
83,15 → 83,6
-------------------------------------------------------------------------- |
-- SoopUI Scaling |
-------------------------------------------------------------------------- |
function SoopUI:Round(num, idp) |
if(idp and idp > 0) then |
local mult = 10 ^ idp |
return floor(num * mult + 0.5) / mult |
end |
return floor(num + 0.5) |
end |
|
--local ScaleOptionsHidden |
function SoopUI:UpdateUIScale() |
local scale = max(0.64, min(1.15, 768/GetScreenHeight())) |
|
100,16 → 91,13
SetCVar("uiScale", scale); |
WorldMapFrame.hasTaint = true; |
end |
|
--if not ScaleOptionsHidden then |
-- _G["Advanced_UseUIScale"]:Hide() |
-- _G["Advanced_UIScaleSlider"]:Hide() |
-- ScaleOptionsHidden = true |
--end |
end |
|
function SoopUI:VARIABLES_LOADED() |
self:UpdateUIScale() |
function SoopUI:UI_SCALE_CHANGED() |
self:UpdateUIScale() |
end |
|
-------------------------------------------------------------------------- |
-- Misc fixes inc Blizzard Bug Fixes by Nibelheim |
145,11 → 133,9
_G["TradeSkillReagent"..i]:SetScript("OnClick", TradeSkillReagent_OnClick) |
end |
end |
function SoopUI:UI_SCALE_CHANGED() |
self:UpdateUIScale() |
end |
|
|
|
-------------------------------------------------------------------------- |
-- Initialization for SoopUI |
-------------------------------------------------------------------------- |
198,5 → 184,13
-- Rounding code by Doomkitty |
-------------------------------------------------------------------------- |
|
function SoopUI:Round(num, idp) |
if(idp and idp > 0) then |
local mult = 10 ^ idp |
return floor(num * mult + 0.5) / mult |
end |
return floor(num + 0.5) |
end |
|
|
|
SoopUI 3.0 beta 1.0.1/AddonData/Grid.lua
File deleted
\ No newline at end of file
SoopUI 3.0 beta 1.0.1/AddonData/xCT.lua
File deleted
\ No newline at end of file
SoopUI 3.0 beta 1.0.1/Media/Aluminium.tga
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
SoopUI 3.0 beta 1.0.1/Media/portrait.tga
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
SoopUI 3.0 beta 1.0.1/Media/squares.ttf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
SoopUI 3.0 beta 1.0.1/Media/Statusbar.tga
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
SoopUI 3.0 beta 1.0.1/Media/vibroceb.ttf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
SoopUI 3.0 beta 1.0.1/Media/BigNoodleTitling.ttf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
SoopUI 3.0 beta 1.0.1/Media/semplice.ttf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
SoopUI 3.0 beta 1.0.1/Media/raidbg.tga
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
SoopUI 3.0 beta 1.0.1/Core/Commands.lua
1,11 → 1,9
local SoopUI = LibStub("AceAddon-3.0"):GetAddon("SoopUI") |
|
|
SoopUI:RegisterChatCommand("rl", function() ReloadUI() end) |
SoopUI:RegisterChatCommand("install", function() SoopUI:NewInstallProcess() end) |
SoopUI:RegisterChatCommand("getcharlayout", function() print("Current layout: "..dbc.layout.current) end) |
SoopUI:RegisterChatCommand("switch", function() SoopUI:SwitchLayout() end) |
SoopUI:RegisterChatCommand("overrideAddonLoad", function(arg1) SoopUI:LoadSpecificAddOnData(arg1) end) |
SoopUI:RegisterChatCommand("suihelp", function() |
print("SoopUI Help") |
print("-----------------------------------------------------") |
SoopUI 3.0 beta 1.0.1/Core/Install.lua
1,3 → 1,10
-------------------------------------------------------------------------- |
-- Install.lua -- SoopUI Version 3.0.0 Beta 1 |
-- For help please check WoWinterface or TopShelfSargeras.com |
-- You can reach me on Twitter @TrueSteve or Soopie (Sargeras [US] Alliance) |
-- http://www.wowinterface.com/downloads/info22541-SoopUI.html |
-------------------------------------------------------------------------- |
|
local SoopUI = LibStub("AceAddon-3.0"):GetAddon("SoopUI") |
local db, dbc, dbg, spec |
|
8,7 → 15,7
installStage = 0, |
} |
-------------------------------------------------------------------------- |
-- CVars |
-- Console Variables (CVars) |
-------------------------------------------------------------------------- |
function SoopUI:SetupCVars() |
|
62,8 → 69,10
FCF_SetLocked(ChatFrame1, 1) |
FCF_DockFrame(ChatFrame2) |
FCF_SetLocked(ChatFrame2, 1) |
|
FCF_OpenNewWindow(LOOT) |
FCF_DockFrame(ChatFrame4) |
FCF_SetLocked(ChatFrame4, 1) |
FCF_OpenNewWindow(LOOT) |
FCF_DockFrame(ChatFrame3) |
FCF_SetLocked(ChatFrame3, 1) |
|
74,7 → 83,7
|
if i == 1 then |
frame:ClearAllPoints() |
frame:SetPoint("BOTTOMLEFT", "UIParent", "BOTTOMLEFT", 40, 30) |
frame:SetPoint("BOTTOMLEFT", "UIParent", "BOTTOMLEFT", 0, 0) |
frame:SetHeight(100) |
frame:SetWidth(375) |
end |
88,7 → 97,7
if i == 1 then |
FCF_SetWindowName(frame, "G/S/W") |
elseif i == 2 then |
FCF_SetWindowName(frame, "") |
FCF_SetWindowName(frame, "COMBAT_LOG") |
elseif i == 3 then |
FCF_SetWindowName(frame, "Gen / Trade") |
elseif i == 4 then |
275,17 → 284,29
else |
InstallPrevButton:Enable() |
end |
|
-------------------------------------------------------------------------- |
-- Installation Text |
-------------------------------------------------------------------------- |
|
if PageNum == 1 then |
f.subtitle:SetText("This is SoopUI!!") |
f.desc1:SetText("This is filler text") |
f.desc2:SetText("This is still filler text.") |
|
----------------- Logo |
f.logoText = f:CreateTexture(nil, "OVERLAY") ---- <--- might break it |
f.logoText:SetPoint("CENTER", f, "CENTER") |
f.logoText:SetSize(400, 100) |
f.logoText:SetTexture(MEDIA_PATH .. "Interface\\AddOns\\SoopUI\\media\\logo_sui") |
----------------- Logo |
|
f.desc1:SetText("SoopUI 3 Beta 1") |
f.desc2:SetText("Healing NOT supported this beta version") |
InstallOption1Button:Hide() |
InstallOption2Button:Hide() |
elseif PageNum == 2 then |
f.subtitle:SetText("Spec Setup") |
f.desc1:SetText("Certain functions will be automatically enabled or disabled") |
f.desc3:SetText("This UI is optimized for Tanking (DPS somewhat)") |
f.desc3:SetText("This UI is optimized for Tanking (or DPS). ") |
InstallOption1Button:Show() |
InstallOption1Button:SetScript("OnClick", SetupTank) |
InstallOption1Button:SetText("Tank") |
294,8 → 315,8
InstallOption2Button:SetScript("OnClick", SetupHealing) |
InstallOption2Button:SetText("Healing") |
elseif PageNum == 3 then |
f.subtitle:SetText("Character Variables (CVars)") |
f.desc1:SetText("Optimized default WoW settings") |
f.subtitle:SetText("Console Variables (CVars)") |
f.desc1:SetText("Optimized default WoW console settings") |
f.desc2:SetText("Changes options like, disabling profanity filter and camera by default") |
f.desc3:SetText("Press Setup CVars to load SoopUI CVars and continue.") |
InstallOption2Button:Hide() |
338,11 → 359,15
end |
end |
|
-------------------------------------------------------------------------- |
-- Installation Button Positions |
-------------------------------------------------------------------------- |
|
function SoopUI:NewInstallProcess() |
if not SoopUIInstallFrame then |
local f = CreateFrame("Button", "SoopUIInstallFrame", UIParent) |
f:SetSize(550, 400) |
f:SetBackdrop({bgFile = [[Interface\BUTTONS\WHITE8X8]], |
f:SetBackdrop({bgFile = [[Interface\Addons\SoopUI\media\Minimalist]], ---- <--- might break it |
edgeFile = "", |
tile = false, tileSize = 0, edgeSize = 1, |
insets = { left = 0, right = 0, top = 0, bottom = 0 } |
355,7 → 380,7
f.title:SetPoint("TOP", 0, -5) |
f.title:SetFont([[Interface\Addons\SoopUI\media\expressway.ttf]], 13) |
f.title:SetText("SoopUI Installation v"..SoopUI.version) |
|
|
f.subtitle = f:CreateFontString(nil, "OVERLAY") |
f.subtitle:SetPoint("TOP", 0, -40) |
f.subtitle:SetFont(SoopUI.media.express, 15) |
440,6 → 465,10
NextPage() |
end |
|
-------------------------------------------------------------------------- |
-- Button handlers |
-------------------------------------------------------------------------- |
|
function SoopUI:HandleButton(f, strip) |
if f.Left then f.Left:SetAlpha(0) end |
if f.Middle then f.Middle:SetAlpha(0) end |
469,6 → 498,10
end |
end |
|
-------------------------------------------------------------------------- |
-- Popup Dialogues |
-------------------------------------------------------------------------- |
|
StaticPopupDialogs["SOOPUI_RELOADUI"] = { |
text = "You must reload your UI before using it. Should we do that now?", |
button1 = "Yes", |
500,6 → 533,10
preferredIndex = 3, -- avoid some UI taint, see http://www.wowace.com/announcements/how-to-avoid-some-ui-taint/ |
} |
|
-------------------------------------------------------------------------- |
-- Resolution Check |
-------------------------------------------------------------------------- |
|
function SoopUI:CheckResolution() |
local resolution = GetCVar("gxResolution") |
local resHeight = tonumber(string.match(resolution, "%d+x(%d+)")) |