Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: EnterTheStory (aka tolworthy) on Thu 20/05/2010 16:36:50

Title: Can I use a GUI in a function argument?
Post by: EnterTheStory (aka tolworthy) on Thu 20/05/2010 16:36:50
I have a function for fading out GUIs, but what's the right terminology?  E.g.

function fadeGUI (int whatGUI){}//?
function fadeGUI (GUI* whatGUI){}//?
function fadeGUI (gui *whatGUI){}//?
function fadeGUI (what doIputHere){}//?

Sorry if this is a trivial question, but I can't find the syntax in the manual or the forums.
Title: Re: Can I use a GUI in a function argument?
Post by: Khris on Thu 20/05/2010 17:08:43
The syntax is the same as when you're declaring a variable, i.e. the second one is correct.
Title: Re: Can I use a GUI in a function argument?
Post by: EnterTheStory (aka tolworthy) on Thu 20/05/2010 17:59:47
thanks