You sure you have the correct line number in that error.. In my StaticPopup.lua file for line 1230 I have:
SelectGossipOption(data, editBox:GetText());
Which is part of this StaticUpDialog:
StaticPopupDialogs["GOSSIP_ENTER_CODE"] = {
text = TEXT(ENTER_CODE),
button1 = TEXT(ACCEPT),
button2 = TEXT(CANCEL),
hasEditBox = 1,
OnAccept = function(data)
local editBox = getglobal(this:GetParent():GetName().."EditBox");
SelectGossipOption(data, editBox:GetText());
end,
OnShow = function()
getglobal(this:GetName().."EditBox"):SetFocus();
end,
OnHide = function()
if ( ChatFrameEditBox:IsVisible() ) then
ChatFrameEditBox:SetFocus();
end
getglobal(this:GetName().."EditBox"):SetText("");
end,
EditBoxOnEnterPressed = function(data)
local editBox = getglobal(this:GetParent():GetName().."EditBox");
SelectGossipOption(data, editBox:GetText());
this:GetParent():Hide();
end,
EditBoxOnEscapePressed = function()
this:GetParent():Hide();
end,
timeout = 0,
exclusive = 1,
hideOnEscape = 1
};
Maybe you should get blizzards custom interface kit and extra the data (Interface\FrameXML) and check out the StaticPopup.lua for yourself and see if theres something there causing the error (Maybe you have a mod that made you replace this file?)
|