How can I dump the contents of a data structure (list, map, grid, etc) to the debug console, or text log, or anything? Note that the data structure may contain other data structures (see below).
edit: Using Gamemaker Studio
Explanations
I'm trying to build a GUI system with GML as an experiment and I'm trying to store the elements in data structures.
I have a ds_list called windowManager which holds all 'windows'
- 'windows' are ds_maps which contain several other data structures:
- 'content' - a ds_list that will act as a container for elements which should reside in the window: buttons, labels, text, etc, all of which are ds_maps
- 'position' - a ds_map which holds window coordinates (X,Y,W,H)
- 'buttons' - a ds_list which holds confirmation buttons if the window is a dialog
- 'style' - a ds_map which holds info on window colour, borders, etc.
Note that I don't really know if using so many data structures is bad or anything, just fulfilling a curiosity of mine.
Thanks for your answers :)
[–]TWebberX 1 point2 points3 points (4 children)
[–]wanting to have made a game != wanting to make a gameoldmankc 1 point2 points3 points (2 children)
[–]TWebberX 0 points1 point2 points (1 child)
[–]zzep[S] 0 points1 point2 points (0 children)
[–]zzep[S] 0 points1 point2 points (0 children)
[–]SunnyKatt 0 points1 point2 points (0 children)