Difference between revisions of "Menu Editing"

From Platinum Arts Sandbox Free 3D Game Maker
Jump to: navigation, search
m (Protected "Menu Editing" [edit=autoconfirmed:move=autoconfirmed])
Line 52: Line 52:
 
*[[cubescript|Writing in Cubescript]]
 
*[[cubescript|Writing in Cubescript]]
 
*[[map config|Map Configuration]]
 
*[[map config|Map Configuration]]
 +
 +
[http://www.superiorpapers.com  buy a paper]

Revision as of 14:14, 4 May 2010

This Article will cover the basics of Editing the menu entries, creating your own etc
for a command reference, see Cubescript

Using Aliases

Using them

for this example, we will be using an alias dubbed 'genmapitems', while it's not important to understand it, it's important to note it uses a string to generate all the buibuttons by using the listlen and at functions. an example of such a string is

mainmaps = "hedge house tutorial"

the above will create 3 entries, in the above order, and will show their own mapshots on the right. it can be at the bottom or at the left too, depending what you do with the code.

Let's pretend to just worked hours on a map, added plenty of details, and you forgot the name and/or you wish to create a menu for it. You named the map example. Here's an example of an alias you'd use

mymaps1 = "example"

and near the end of newgui maps, you'd add

guitab "My Maps"; guilist [guilist [genmapitems $mymaps1] showmapshot] ]

Feel free to format it, so that it looks a lot more like the following

newgui maps [
    guilist [
        guilist [
            genmapitems $mainmaps
        ]
        showmapshot
    ]
    guitab "My Maps"
    guilist [
        guilist [
            genmapitems $mymaps1
        ]
        showmapshot
    ]
]

if done correctly, /showgui maps will now show your map list. and you can access it and stare at your preview shot at the hovering of a button.

How to sneakily minimise on code

Writing your own

See Also

buy a paper