Menu

#43 Code organization

Room Scripts
fixed
2014-04-29
2014-04-29
No

I noticed it's possible to make sub-folders in Scripts tab of AGS. Could we make some neat sub-folders so picking scripts become easier on the eyes?

For instance, all GUI scripts could be put in a sub-folder GUI.

References should be fixed as well.

Discussion

  • Robert Kety

    Robert Kety - 2014-04-29

    I just did this with 2 hours ago with the Room scripts. I'll take care of it.

     

    Last edit: Robert Kety 2014-04-29
  • Robert Kety

    Robert Kety - 2014-04-29

    I've placed the Scripts into two folders: "UpperScripts" and "GUIs". It's essential that the scripts are compiled in the order that they were organized. This is the result of the absence of function declarations in AGS. The functions maintain their proper compile order when inside a folder. Unfortunately, folders are processed before individual script files. As a result, I had to place the priority compilation scripts in the UpperScripts folder and the GUIs in their appropriate folder. The Globalscript script must always be compiled last, which is why it is not in a folder.

     
  • Robert Kety

    Robert Kety - 2014-04-29

    Let me know if you're happy with those changes and I'll mark this ticket as "fixed".

     
  • Robert Kety

    Robert Kety - 2014-04-29
    • status: open --> pending
    • assigned_to: Robert Kety
     
  • Per Olav Flaten

    Per Olav Flaten - 2014-04-29

    It was everything I have dreamed of and more. Consider the ticket done.

     
  • Robert Kety

    Robert Kety - 2014-04-29
    • status: pending --> fixed
     

Log in to post a comment.

MongoDB Logo MongoDB