I think you are sending a wrong message to the community by not giving any way to the users to write acceptable scripts. I think you should at least give a list of scripts that are written using the new functions so that we can read them and learn from them.
Sure it's bad that there is currently no up-to-date English doc, but if you have read more carefully my previous answer, you would have understand that it's just temporary, we do it during our spare time and the delay is simply due to a lack of time.
Again, by being more careful, you would have seen the "Scripts" entry in the menu on the right. Thus, you can see the validated scripts
An example of POL 3 script ? Let's take
Crayon Physics' one !
EDIT: So here is your script in POL language v3. I took the liberty to add variables for translations (I yet added the French translation). If you speak other languages that are supported by PlayOnLinux, feel free to add them.
And could you please test it?
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]; then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
GAME_NAME="Crayon Physics Deluxe"
GAME_PREFIX="CrayonPhysicsDeluxe"
if [ "$POL_LANG" == "fr" ]
then
LNG_WAIT="Installation en cours..."
LNG_FILE="Veuillez sélectionner l'installeur de $GAME_NAME"
else
LNG_WAIT="Installing..."
LNG_FILE="Please select the $GAME_NAME installer"
fi
POL_SetupWindow_Init "" ""
POL_SetupWindow_presentation "$GAME_NAME" "Kloonigames" "http://www.crayonphysics.com/" "twinoatl" "$GAME_PREFIX"
mkdir -p $REPERTOIRE/wineprefix/$GAME_PREFIX
select_prefix "$REPERTOIRE/wineprefix/$GAME_PREFIX"
POL_SetupWindow_prefixcreate
cd $HOME
POL_SetupWindow_browse "$LNG_FILE" "$GAME_NAME" "$HOME"
FILE="$APP_ANSWER"
POL_SetupWindow_wait_next_signal "$LNG_WAIT" "$GAME_NAME"
wine $FILE
POL_SetupWindow_detect_exit
POL_SetupWindow_make_shortcut "${GAME_PREFIX}" "Program Files/Crayon Physics Deluxe" "crayon.exe" "" "${GAME_NAME}"
POL_SetupWindow_Close
exit Edited by Ghostofkendo