All pastes #194530 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-10-07 23:42 UTC
rendered paste body
RAID_ANNOUNCE_RATE = 25.0;

function out(text)
 DEFAULT_CHAT_FRAME:AddMessage(test)
 UIErrorsFrame:AddMessage(text, 1.0, 1.0, 0, 1, 10) 
end

function Announce_Active()
	FCRCSMain.TimeSinceLastAnnounce = 301;
	local frame = getglobal("FCRCS_ANNOUNCE")
	 if( frame:IsVisible() ) then
     frame:Hide();
   		else
     frame:Show();
   end
end

function AnnounceRaids(arg1)
		FCRCSMain.TimeSinceLastAnnounce = FCRCSMain.TimeSinceLastAnnounce + arg1;
		if( FCRCSMain.TimeSinceLastAnnounce > RAID_ANNOUNCE_RATE ) then
					if (FCRCSMain_InputBox:GetText()) then
					SendChatMessage(FCRCSMain_InputBox:GetText(),"SAY","ORCISH")
				    end				
                    FCRCSMain.TimeSinceLastAnnounce = 0;
		end
end

local dewdrop = AceLibrary("Dewdrop-2.0")

dewdrop:Open(FCRCSMain,
    'children', function()
        dewdrop:AddLine(
            'text', "Hello, world"
        )
    end)