YAP is designed to be altered so you can support your interest
I will take you through the steps required to change it for your needs
If you are a complete noob, try the LIT program (3rd post in this thread)
which has no sub-directories and is even simpler to follow . . .
Look at the code and see if it makes sense.
code is separated by <beginning> and <end beginning blocks>
eg. <action> </action>
YAP will enable you to have a program with sound and flash files
and info (help) all with pull down menus . . .
It really is easy . . .
LIT is even simpler and allows you to customise each puppy and puplet
You can download YAP here
http://tmxxine.com/wik/wikka.php?wakka=YapInfo
and the complete code is in the YAP file which you can edit
by right clicking on it and selecting 'open as text'
1. Everything after a # is a comment - so we will leave that
2. We are going to change a menu item (in this case a wav file
in the directory sound - the file is called cyberspace_1.wav
In the menu we can change Cyberspace Blessing 1
to my_rant.wav (that is your wav file which you put in the sound directory which the package comes with)
Code: Select all
<menuitem>
<label>Cyberspace Blessing 1</label>
<action>wavplay sound/cyberspace_1.wav &</action>
</menuitem>
(I used wav because it is most reliable over the max number of Puppy versions)
Now we are going to look at changing a swf (flashfile) in the second menu
This is the code:
Code: Select all
<menuitem>
<action>defaultbrowser file://`pwd`/videos/mudra.swf &</action>
<label>Mudra meditation</label>
<action>exit</action>
</menuitem>
Code: Select all
<label>Mudra meditation</label>
Code: Select all
<label>My flash file</label>
from
Code: Select all
<action>defaultbrowser file://`pwd`/videos/mudra.swf &</action>
Code: Select all
<action>defaultbrowser file://`pwd`/videos/myfile.swf &</action>
this will get you off to a good start . . .
==========
Code: Select all
#! /bin/bash
# YinYana Alter Program GPL v3 License
# YAP v 1.8 March 21 008
# created by Lobster for Tmxxine Vision and Sentient Beings Everywhere
# With thanks to Barry Kauler, Team Puppy, Mark Ulrich, mcewanw, Warren
###################
export Vision='
<window title="YAP" window-position="1">
<vbox>
<menubar>
<menu>
<menuitem>
<label>Cyberspace Blessing 1</label>
<action>wavplay sound/cyberspace_1.wav &</action>
</menuitem>
<menuitem>
<label>Cyberspace Blessing 2</label>
<action>wavplay sound/cyberspace_2.wav &</action>
</menuitem>
<menuitem>
<label>Bell</label>
<action>wavplay sound/tinsha.wav &</action>
</menuitem>
<menuitem>
<label>Gong Burmese</label>
<action>wavplay sound/gong-burmese.wav &</action>
</menuitem>
<menuitem>
<label>Gong Chinese</label>
<action>wavplay sound/gong-chinese.wav &</action>
</menuitem>
<menuitem stock="gtk-quit">
<action>echo You selected the quit menu item</action>
<action type="exit">exit by menu</action>
</menuitem>
<label>Sounds</label>
</menu>
<menu>
<menuitem>
<action>`Xdialog --wrap --screencenter --left --title "5 Element Meditation" --msgbox "This will start a simple twenty five minute elemental meditation suitable for universal usage. It is a simple technique. Only regular use will develop mind skills. Used for centuries as an esoteric warrior meditation, it is particulary suited to balance energies and focus and harmonise ones internal component elements. Keep your back straight and your mind attentive. \n\n OM YA HA HUM" 600x0`</action>
<action>defaultbrowser file://`pwd`/videos/elements.swf &</action>
<label>Elemental meditation</label>
<action>exit</action>
</menuitem>
<menuitem>
<action>defaultbrowser file://`pwd`/videos/mudra.swf &</action>
<label>Mudra meditation</label>
<action>exit</action>
</menuitem>
<menuitem>
<label>Vajrasattva</label>
<action>`Xdialog --wrap --screencenter --left --title "Vajra" --msgbox "Vajrasattva. vajrasattva samayam anup