SgneepBox jeOS

Make Slider Button

Tutorial

Make Slider Button in Graphics Engine

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

Make Two Menù with button in Graphics Engine

Make loader interface with this script code:

# Set Loader and background:

ds_backround loading.jpg

ds_loader 500 280 200 31

Make loader interface with this script code

menù layer 0:

make 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 1180 632

#

# FIRST MENU' (0)

new_layer

#

# set menu' background

background dimension 0 1180 632

background path 0 /DS/PNG/SGN_BG1.png

make_background 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

#

# ----------------------

# make slider button----

# ---------------------

slider_level xy

slider_level dimension 0 150 80 500 60

#

# :ratio or bright

slider_level ratio 0 10 90

# save slider value

slider_level savedata 0 fileRAM

slider_level image_bg 0 /DS/PNG/SGN_BACK_CARTOON_SLIDER.png

slider_level image_btn 0 /DS/PNG/SGN_BACK_CARTOON_CIRCLEBTN.png

make_slider 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...