Graphics Interface Engine v2


sgneepBox interface

SgneepBox Script command


set mouse pointer (hide for touchscreen) :

cursor_type *hide | *unhide


clear old layer settings

layer_clean


menù resolution:

layer_resolution *width *height


init new menù layer:

new_layer


make menù background :

background dimension *id *width *height

background path *id *DSpath [ *DSpath=/home/pi/Desktop/CBOT/DS/filename.png ]

make_background *id


make menù input label (with on-screen keyboard support):

on-screen keyboard support

label_input xy *id *x *y

label_input dimension *id *width *height

label_input store *id */Lpath [ *Lpath=/home/pi/Desktop/CBOT/RAM ]

make_label_input *id


make menù two state button :

button xy *id *x *y

button dimension *id *width *height

button imgalpha *id *DSpath *DSpath

button call *id *call [ call_win, subscript, noircam, __BG__, __UPDATELOGO__, __UPDATEVIEW__]

button call_win 0 1

button change_bg 0 /PNG/SGN_BG_BLUE

make_button *id


make menù label :

label xy *id *x *y

label dimension *id *width *height

label color *id *fg *bg

label text *id *text[...]

make_label *id


make menù meteo :

meteo_xy *id *x *y

meteo dimension *id *width *height

meteo color *id *fg *bg

make_meteo *id


make menù date :

date_xy *id *x *y

date dimension *id *width *height

date color *id *fg *bg

make_date *id


make menù time :

tme_xy *id *x *y

time dimension *id *width *height

time color *id *fg *bg

make_time *id


make button slider:

slider_lelel *id *x *y

slider_level dimension *id *widthBtn *heightBtn *widthBG *heightBG

slider_level *mode (ratio | bright) *id *minRatio *maxRatio

slider_level savedata *id *fileRAM

slider_level image_bg *id *DSpath [/DS/]

slider_level image_btn *id *DSpath [/DS]

make_slider_level *id


set menù camera NOIR :

camera mode NOIR

camera xy *id *x *y

camera dimension *id *width *height

camera image_path *id *path

camera video_path *id *path

make:

make_camera *id


photocamera option:

camera set *id shot

camera set *id record

camera set *id stop


start Graphics Engine:

graphics_engine maxlayer *maxLayer


Example:

# Make single menù
# add image in menu "0"
cursor_type hide
layer_clear
new_layer
image_xy 0 400 150
image_dimension 0 200 50
image_path 0 /DS/PNG/SGN_TEXT_CONTAINER.png
make_image 0
#
graphics_engine maxlayer 1
# ...

Powered by Sgneep.com