Page 1 of 1

ShowPopup not working [Solved]

Posted: Wed Nov 25, 2009 1:35 pm
by General_Nate
Alright, yet another issue.

I've added the "ShowPopup()" To my LUA, and all I get is this fancy error in my log:
Hidden/Spoiler:
Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(2264)
ShowPopup() has been depricated. Please remove all references to it in code
:shock: So, here is my code that it doesn't like:
Hidden/Spoiler:
--Show a hint once the player gets to a point
ActivateRegion("hint1")
testfunction = OnEnterRegion(
function(region, player)
ShowPopup("mods.mymap.hint1")
end,
"hint1"
)
Help would be appreciated. :thumbs:

Re: ShowPopup not working

Posted: Wed Nov 25, 2009 2:22 pm
by AceMastermind
This topic appeared in the search results for showpopup

http://www.gametoast.com/forums/viewtop ... 21#p316721
[RDH]Zerted wrote:ShowPopup() is no longer the recommended way to create a popup.
Superm9 wrote:Zerted - What is the recommended method of showing a popup then?
Teancum wrote:I think the recommended function is ShowObjectiveTextPopup() -- however ShowPopup() still works. It's just that you'll get a log error. If you're fine with that don't change it.

Re: ShowPopup not working

Posted: Wed Nov 25, 2009 4:37 pm
by General_Nate
Thanks! It works! Can be solved.