2008-07-06 20:56:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2008-07-09 21:18:12 +00:00
|
|
|
path=${0%/*}
|
|
|
|
name=${0##*/}
|
|
|
|
|
2010-03-06 20:54:19 +00:00
|
|
|
if [ ! -e $path/$name.py ]; then
|
|
|
|
# Assume package has been relocated, try relative data directory:
|
|
|
|
path=${0%/*}/../share/hatari/hatariui
|
|
|
|
fi
|
|
|
|
|
2008-07-06 20:56:17 +00:00
|
|
|
# example setup for Hatari UI
|
2008-07-25 21:18:43 +00:00
|
|
|
$path/$name.py --right "about,|,run,pause,forward,|,reset,|,quit" --embed $*
|
|
|
|
exit 0
|
2008-07-06 21:17:11 +00:00
|
|
|
|
|
|
|
# test setup without embedding, dupplicate toggles
|
2008-07-09 21:18:12 +00:00
|
|
|
$path/$name.py --top "about,run,pause,quit" \
|
2008-07-06 21:17:11 +00:00
|
|
|
--panel "Testpanel,pause,>,close" \
|
2008-07-25 21:18:43 +00:00
|
|
|
--bottom "sound,|,pause,|,fast,|,Testpanel" \
|
|
|
|
$*
|
|
|
|
exit 0
|
2008-07-06 21:17:11 +00:00
|
|
|
|
|
|
|
# test setup with embedding and all available controls
|
2008-07-09 21:18:12 +00:00
|
|
|
$path/$name.py --embed \
|
2008-07-06 20:56:17 +00:00
|
|
|
--top "about,|,run,pause,|,reset,debug,|,quit" \
|
|
|
|
--left "run,pause,reset,machine,about" \
|
|
|
|
--panel "Keys,F1=59,F2=60,F3=61,F4=62,F5=63,F6=64,F7=65,F8=66,F9=67,F10=68,>,Macro=Test,Undo=97,Help=98,Enter=114,>,close" \
|
|
|
|
--panel "Misc,fast,|,full,|,sound,>,shot,>,close" \
|
|
|
|
--bottom "fast,full,Misc,Keys,input,devices,display,debug,trace" \
|
2008-07-25 21:18:43 +00:00
|
|
|
--right "fast,full,Misc,Keys,input,devices,display,Help=98" \
|
|
|
|
$*
|
|
|
|
exit 0
|