WoWInterface SVN ItemRack

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/ItemRackOptions
    from Rev 25 to Rev 30
    Reverse comparison

Rev 25 → Rev 30

ItemRackOptions.lua
60,7 → 60,7
end
ItemRackOpt.PopulateInitialIcons()
ItemRackOpt.PopulateEventList()
ItemRackOptSetsCurrentSet:EnableMouse(0)
ItemRackOptSetsCurrentSet:EnableMouse(false)
 
ItemRackOptFrameTitle:SetText("IR "..ItemRack.Version)
 
130,7 → 130,7
ItemRackOpt.InitializeSliders()
ItemRackOpt.TabOnClick(self,1) -- start at tab 1 (config)
 
ItemRackOptBindFrame:EnableMouseWheel(1)
ItemRackOptBindFrame:EnableMouseWheel(true)
 
ItemRack.CreateTimer("SlotMarquee",ItemRackOpt.SlotMarquee,.1,1)
 
603,7 → 603,7
-- fill out event info if picking an event's set
local event = ItemRackOpt.EventList[ItemRackOpt.EventSelected][1]
if not ItemRackUser.Events.Set[event] then
ItemRackUser.Events.Enabled[event] = 1
ItemRackUser.Events.Enabled[event] = true
end
ItemRackUser.Events.Set[event] = setname
ItemRackOpt.PopulateEventList()
676,11 → 676,11
item:SetText(opt.label)
if opt.depend and opt.optset[opt.depend]=="OFF" then
item:SetTextColor(.5,.5,.5,1)
opt.button:EnableMouse(0)
opt.button:EnableMouse(false)
opt.button:SetAlpha(.5)
else
item:SetTextColor(1,1,1,1)
opt.button:EnableMouse(lock and 0 or 1)
opt.button:EnableMouse(lock and false or true)
opt.button:SetAlpha(lock and .5 or 1)
end
item:Show()
689,16 → 689,16
elseif opt.type=="slider" then
opt.button:SetPoint("LEFT",button,"LEFT",32,4)
if opt.depend and opt.optset[opt.depend]=="OFF" then
opt.button:EnableMouse(0)
opt.button:EnableMouse(false)
opt.button:SetAlpha(.5)
else
opt.button:EnableMouse(lock and 0 or 1)
opt.button:EnableMouse(lock and false or true)
opt.button:SetAlpha(lock and .5 or 1)
end
opt.button:Show()
elseif opt.type=="button" then
opt.button:SetPoint("LEFT",button,"LEFT",16,0)
opt.button:EnableMouse(lock and 0 or 1)
opt.button:EnableMouse(lock and false or true)
opt.button:SetAlpha(lock and .5 or 1)
opt.button:Show()
end
814,7 → 814,7
 
function ItemRackOpt.OptListOnClick(self)
local check = _G[self:GetName().."CheckButton"]
if check and check:IsVisible() and check:IsEnabled()==1 then
if check and check:IsVisible() and check:IsEnabled()==true then
check:SetChecked(not check:GetChecked())
ItemRackOpt.OptListCheckButtonOnClick(self,check)
end
833,11 → 833,11
tab = _G["ItemRackOptTab"..i]
if which==i then
tab:Disable()
tab:EnableMouse(0)
tab:EnableMouse(false)
_G["ItemRackOptSubFrame"..i]:Show()
else
tab:Enable()
tab:EnableMouse(1)
tab:EnableMouse(true)
end
end
end
945,8 → 945,8
OnAccept = ItemRackOpt.SetKeyBinding,
OnCancel = ItemRackOpt.ResetBindFrame
}
ItemRackOptBindFrame:EnableKeyboard(0) -- turn off keyboard catching
ItemRackOptBindFrame:EnableMouse(0) -- and mouse
ItemRackOptBindFrame:EnableKeyboard(false) -- turn off keyboard catching
ItemRackOptBindFrame:EnableMouse(false) -- and mouse
ItemRackOptBindCancel:Disable()
ItemRackOptBindUnbind:Disable()
StaticPopup_Show("ItemRackCONFIRMBINDING")
968,8 → 968,8
end
 
function ItemRackOpt.ResetBindFrame()
ItemRackOptBindFrame:EnableKeyboard(1)
ItemRackOptBindFrame:EnableMouse(1)
ItemRackOptBindFrame:EnableKeyboard(true)
ItemRackOptBindFrame:EnableMouse(true)
ItemRackOptBindCancel:Enable()
ItemRackOptBindUnbind:Enable()
end
1147,14 → 1147,14
function ItemRackOpt.LockHighlight(frame)
if type(frame)=="string" then frame = _G[frame] end
if not frame then return end
frame.lockedHighlight = 1
frame.lockedHighlight = true
_G[frame:GetName().."Highlight"]:Show()
end
 
function ItemRackOpt.UnlockHighlight(frame)
if type(frame)=="string" then frame = _G[frame] end
if not frame then return end
frame.lockedHighlight = nil
frame.lockedHighlight = false
_G[frame:GetName().."Highlight"]:Hide()
end
 
1563,6 → 1563,7
end
if not checked then
ItemRackOpt.EventSelected = nil
ItemRackUser.Events.Enabled[ItemRackOpt.EventList[idx][1]] = nil
end
ItemRackOpt.PopulateEventList()
end
1681,11 → 1682,11
function ItemRackOpt.EventEditAnyMountChanged()
local item = ItemRackOptEventEditBuffName
if ItemRackOptEventEditBuffAnyMount:GetChecked() then
item:EnableMouse(0)
item:EnableMouse(false)
item:SetTextColor(.5,.5,.5)
item:ClearFocus()
else
item:EnableMouse(1)
item:EnableMouse(true)
item:SetTextColor(1,1,1)
end
ItemRackOpt.EventEditValidateButtons()
1780,7 → 1781,7
elseif event.Type=="Script" then
event.Trigger = ItemRackOptEventEditScriptTrigger:GetText()
event.Script = ItemRackOptEventEditScriptEditBox:GetText()
ItemRackUser.Events.Enabled[eventName] = 1
ItemRackUser.Events.Enabled[eventName] = true
ItemRackUser.EnableEvents = "ON"
ItemRack.ReflectEventsRunning()
end