I have found something of a problem with AGS. I defined a enum in my header file (just a note, this has nothing to do with the dialog module) named, "CursorMode" so that I could keep track of the current cursor mode just a little bit differently than AGS does it, as well as make use of it in functions and what-not.
Anyway, when I was typing "mouse.Mode = " I noticed that the auto-complete function was displaying MY CursorMode enum values as legal values for mouse.Mode (in addition to the eModeXXX ones). In fact, it even compiles correctly.
*In case it has anything to do with it, the enum did declare my cursor name enumerations with the same numerical value as the cursor number.*
My initial thought was that perhaps because my variable was defined as "CursorMode Mode" it was encountering some kind of ambiguity between Mode and mouse.Mode.
Changing Mode to MyMode had no effect however. Then it occurred to me that perhaps it had to do with the enumeration name.
Changing CursorMode to MyCursorMode did change it. It made it so only the mouse.Mode values were displayed, and not mine.
Well...That's fun. ***BTW in case you're wondering as to the name, I titled it that because the mouse.Mode enum seems to have inherited my enum values...*** Nevermind that last bit... I changed the name.
Anyway, when I was typing "mouse.Mode = " I noticed that the auto-complete function was displaying MY CursorMode enum values as legal values for mouse.Mode (in addition to the eModeXXX ones). In fact, it even compiles correctly.
*In case it has anything to do with it, the enum did declare my cursor name enumerations with the same numerical value as the cursor number.*
My initial thought was that perhaps because my variable was defined as "CursorMode Mode" it was encountering some kind of ambiguity between Mode and mouse.Mode.
Changing Mode to MyMode had no effect however. Then it occurred to me that perhaps it had to do with the enumeration name.
Changing CursorMode to MyCursorMode did change it. It made it so only the mouse.Mode values were displayed, and not mine.
Well...That's fun. ***BTW in case you're wondering as to the name, I titled it that because the mouse.Mode enum seems to have inherited my enum values...*** Nevermind that last bit... I changed the name.