-
Posted by esquirua on Thu, 30 Jul 2015 18:35:50
so I'm trying to revive a rather handy looking dead/abandoned addon, I know there are others out there that do the same stuff that are up to date but this one strikes my fancy.
the problem I'm having is that the check boxes in the main frame aren't reacting outside ticking and unticking the box.
this is the script
<CheckButton name="RIO_ShowOfflineBox" inherits="UICheckButtonTemplate" text=""> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPLEFT"> <Offset x="262" y="-68" /> </Anchor> </Anchors> <Scripts> <OnClick> RIOMain_Browser.offlineBoxToggle() </OnClick> </Scripts> </CheckButton> <CheckButton name="RIO_ShowRank1" inherits="UICheckButtonTemplate" text="" id="1"> <Anchors> <Anchor point="TOPLEFT" relativePoint="TOPLEFT"> <Offset x="262" y="-96" /> </Anchor> </Anchors> <Scripts> <OnClick> RIOMain_Browser.rankBoxToggle(self:GetID()) </OnClick> </Scripts>
is the LUA stuff for it
function RIOMain_Browser.offlineBoxToggle() local toggleCheck = _G["RIO_ShowOfflineBox"]:GetChecked(); if toggleCheck == nil then RIO_ShowOffline = false; RIO_ShowOfflineMaster = false; elseif toggleCheck == 1 then RIO_ShowOffline = true; RIO_ShowOfflineMaster = true; end
there are other "rank" boxes which correspond to guild ranks but if I can get help getting this one working the rest should be fine
-
Posted by esquirua on Thu, 30 Jul 2015 18:47:04