Thread Tools Display Modes
01-12-06, 03:27 AM   #1
atreides
A Kobold Labourer
Join Date: Jan 2006
Posts: 1
Question Staticpopup problem

Hello,

after last patch I have updated some AddOns. After that i have problem while rolling for items in party (need or greed). If item is BoP you are receiving dialog box with bind confirmation. If I want to confirm the error message appears:

Error: Interface\FrameXML\StaticPopup.lua:1230: Usage: ConfirmLootRoll(id, rollType)

I cannot locate the problem - could anybody help ne in this matter? I would be grateful.

Maybe is there any way to test it, simulate the error? This should help also.


Thanks in advance
  Reply With Quote
01-12-06, 04:03 PM   #2
Jacend
An Aku'mai Servant
 
Jacend's Avatar
Join Date: Jan 2006
Posts: 4
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?)
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Staticpopup problem


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off