Temporary fixes--
remove GetRealZoneText() from functions :
local function AllClearButtonOnClick()
local location = GetSubZoneText()
-- Check if location is in the defined battleground locations
if not location then
print("You are not in a BattleGround.")
return
end
local message = buttonMessages.allClear[buttonMessageIndices.allClear] .. " at " .. location
SendChatMessage(message, "INSTANCE_CHAT")
end
allClearButton:SetScript("OnClick", AllClearButtonOnClick)
-- Function to handle the Send More button click event
local function SendMoreButtonOnClick()
local location = GetSubZoneText()
-- Check if location is in the defined battleground locations
if not location then
print("You are not in a BattleGround.")
return
end
local message = buttonMessages.sendMore[buttonMessageIndices.sendMore] .. " at " .. location
SendChatMessage(message, "INSTANCE_CHAT")
end
sendMoreButton:SetScript("OnClick", SendMoreButtonOnClick)
-- Function to handle the INC button click event
local function IncButtonOnClick()
local location = GetSubZoneText()
-- Check if location is in the defined battleground locations
if not location then
print("You are not in a BattleGround.")
return
end
local message = buttonMessages.inc[buttonMessageIndices.inc] .. " at " .. location
SendChatMessage(message, "INSTANCE_CHAT")
end
incButton:SetScript("OnClick", IncButtonOnClick)
-- Register the slash command
SLASH_INC1 = "/inc"
SlashCmdList["INC"] = function()
if IncCallout:IsShown() then
IncCallout:Hide()
end
end
Temporary fixes-- remove GetRealZoneText() from functions :
local function AllClearButtonOnClick() local location = GetSubZoneText()
end allClearButton:SetScript("OnClick", AllClearButtonOnClick)
-- Function to handle the Send More button click event local function SendMoreButtonOnClick() local location = GetSubZoneText()
end sendMoreButton:SetScript("OnClick", SendMoreButtonOnClick)
-- Function to handle the INC button click event local function IncButtonOnClick() local location = GetSubZoneText()
end incButton:SetScript("OnClick", IncButtonOnClick)
-- Register the slash command SLASH_INC1 = "/inc" SlashCmdList["INC"] = function() if IncCallout:IsShown() then IncCallout:Hide() end end