SgneepBox jeOS

Make and connect Two Menù with button in Graphics Engine

Tutorial

Make Two Menù with button in Graphics Engine

you can find this script inside sgneepBox Editor, in "DEMO_icegraph_button" script file..

Make Loader:

# Set Loader and background:

ds_backround loading.jpg

ds_loader 500 280 200 31

Make Two Menù with button in Graphics Engine

menù layer 0:

menù layer 0

menù layer 1:

menù layer 0

Copy and paste this code in SgneepBox Editor!

Example :

# set cursor type ( hide , unhide )

cursor_type unhide

#

# set all layer

layer_clear

layer_resolution 800 480

#

# FIRST MENU' (0)

new_layer

#

# set menu' background

background dimension 0 800 480

background path 0 /DS/PNG/SGN_BG1.png

make_background 0

#

# make text label:

label xy 0 380 200

label dimension 0 150 20

label color 0 lightblue white

label text 0 your layer 0

make_label 0

#

# make button in layer 0

button xy 0 50 50

button dimension 0 160 150

button_imgalpha 0 /DS/PNG/SGN_CONFIG.png /DS/PNG/SGN_CONFIG.png

button call 0 call_win call_win

button call_win 0 1

make_button 0

#

#

# SECOND MENU' (1)

new_layer

#

background dimension 1 800 480

background path 1 /DS/PNG/SGN_BG1.png

make_background 1

#

# make text label:

label xy 0 380 200

label dimension 0 150 20

label color 0 lightblue red

label text 0 your layer 0

make_label 0

#

# make button in layer 1

button xy 1 50 50

button dimension 1 160 150

button_imgalpha 1 /DS/PNG/SGN_CONFIG.png /DS/PNG/SGN_CONFIG.png

button call 1 call_win call_win

button call_win 1 0

make_button 1

#

# Strart Graphics Engine

graphics_engine maxlayer 2

#

# close previous Loader

sleep 10

ds_loader end

ds_background net1.jpg

#

#Finish

run Script...