Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Akumayo on Sat 12/08/2006 03:05:11

Title: Struct Popup menu not showing up (SOLVED)
Post by: Akumayo on Sat 12/08/2006 03:05:11
I have two structs defined in a module script header.Ã,  Both of which are then declared in the module main script, exported from there, and imported in the header.
One, when I type it, and hit '.' shows a popup menu of all the things inside the struct.Ã,  The other, shows nothing.Ã,  This is very frusterated, as both structs have a lot of parameters that I need to see sometimes to jog my memory.Ã,  As a workaround, I've got a .txt file containing the struct declaration that I reference, but that's annoying.Ã,  My question is, what exactly makes that menu pop up?Ã,  I see no difference between my two structs (aside from their names), and yet, one does not grab that handy little menu.

Thanks in advance

-Regards, Akumayo
Title: Re: Struct Popup menu not showing up
Post by: strazer on Sat 12/08/2006 10:20:38
Can you show us the code? For example, where have you placed the bracket?

struct BlaBla { // shows members

struct Blabla
{ // doesn't show members
Title: Re: Struct Popup menu not showing up
Post by: Akumayo on Sat 12/08/2006 18:31:40
Both structs are braketed like this:

struct MyStruct {

  //parameters

};

They are declared one after another, the one declared first is the one to show the parameters.  They are imported, exported, and declared in the main script in the same order.  Both are declared in the main script as arrays.
Title: Re: Struct Popup menu not showing up
Post by: strazer on Sun 13/08/2006 03:01:22
As I said, please post the actual code. Otherwise we can only speculate what might be happening.
Title: Re: Struct Popup menu not showing up
Post by: SSH on Sun 13/08/2006 06:54:34
names similar to other identifiers or keywords sometimes messes up the completion engine, too
Title: Re: Struct Popup menu not showing up
Post by: Akumayo on Sun 13/08/2006 06:58:40
What'dya know?  My first struct contained a variable named the same thing as my second struct.  When I changed it's name, the handy menu began to appear ^_^
Thanks for the help guys, I appreciate it.
Title: Re: Struct Popup menu not showing up (SOLVED)
Post by: SSH on Sun 13/08/2006 07:02:47
I don't think that should make a difference. CJ should fix it after he gets back from his gallivanting off to Spain.