Quote:
|
Originally Posted by Kanegasi
(Post 333570)
|
Cheers!
|
Originally Posted by Kanegasi
(Post 333570)
|
function FSMB:OnEvent(event, ...)
local arg1, arg2, arg3 = ...|
172x Couldn't find frame parent: WorldMapDetailFrame |
|
AddOn RecipeRadarClassic attempted to call a protected function (CompactRaidFrameContainer:Hide()) during combat lockdown |
|
RecipeRadarAvailabilityTooltip:SetPoint( "TOPLEFT", frame:GetName(), "TOPRIGHT", 35, 0) |
|
Frame RecipeRadarAvailabilityTooltip: Unknown script element OnTooltipSetDefaultAnchor Frame RecipeRadarAvailabilityTooltip: Unknown script element OnTooltipAddMoney Frame RecipeRadarAvailabilityTooltip: Unknown script element OnTooltipCleared |
|
--Override StaticPopup_OnShow() function StaticPopup_OnShow(self) --PlaySound(SOUNDKIT.IG_MAINMENU_OPEN); PlaySound(SOUNDKIT.IG_CHAT_SCROLL_UP); ... end |
function TitanPanelGuildButton_OnClick(self, button)
-- open the guild pane on a left click
print("Got a click");
if ( button == "LeftButton" and not IsControlKeyDown()) then
print("button is left button");
if (not FriendsFrame:IsVisible()) then
print("Toggling guild frame");
ToggleGuildFrame();
print("Friends Frame update");
--ToggleFriendsFrame(TITAN_GUILD_TAB_NUMBER);
FriendsFrame_Update();
elseif (FriendsFrame:IsVisible()) then
ToggleGuildFrame();
--ToggleFriendsFrame(TITAN_GUILD_TAB_NUMBER);
end
elseif ( button == "LeftButton" and IsControlKeyDown()) then
-- forcing an update, since auto-update might be off
FriendsFrame:UnregisterEvent("GUILD_ROSTER_UPDATE");
if (IsInGuild()) then
GuildRoster();
end
FriendsFrame:RegisterEvent("GUILD_ROSTER_UPDATE");
TitanPanelGuildButton_ListInitMaster();
end
GUILD_THIS = self;
end
Scorpio "TestAddon" "1.0.0" -- __Async__ is used to wrap the target function, so when the -- function is called, it'd be processed in a coroutine, the coroutine -- will be recycled when the target function finished its job __Async__() function LoopJob() while true do NextEvent("PLAYER_REGEN_DISABLED") -- wait the event print("Start combat") local cnt = 0 repeat Delay(1) -- delay for 1 sec cnt = cnt + 1 print("[Combat]", cnt) until not InCombatLockdown() print("End combat") end end -- Start the loop LoopJob()
|
Originally Posted by zork
(Post 333716)
You can do it like so:
lua Code:
https://github.com/zorker/rothui/blo...p/core.lua#L44 |