#!/usr/bin/env bash
# winezgui-template-help
winezgui-more-help()
{
  dbug "I: $(basename ${0}): Launched ${FUNCNAME[0]}"
  
    SOURCE "script-check-variables-loaded-or-not"
  script-check-variables-loaded-or-not

  HELP_TEXT+="File Manager... : Open File manager at WineZGUI prefix!|"
  HELP_TEXT+="Open Terminal... : Open Terminal at WineZGUI prefix!|"
  HELP_TEXT+="Shortcuts...     : Clean Up broken shortcuts, add/remove/restore shortcuts.|"
  HELP_TEXT+="Recreate Prefix Scripts... : Update an existing Prefix scripts to latest version|"
  HELP_TEXT+="Update All Scripts... : Update all Scripts to latest version, use this after WineZGUI is updated|"
  HELP_TEXT+="Restore All Identity... : Replace variables with XO like XOUSERXO caused by failed backup|"
  HELP_TEXT+="Update winetricks... : Download and Update latest winetricks from github|"
  HELP_TEXT+="Import Wine Directory... : Use this to copy/import Playonlinux prefix or ~/.wine into WineZGUI"
  
  # Text is more, so we need to format it, with sed in pango markup
  unset TEXT
  TEXT="$(echo ${HELP_TEXT} \
              |tr "|" "\n" \
              |sed "s/https:/https|/g" \
              |sed -E "s/([0-9]):([0-9])/\1|\2/g" \
              |sed "s/:/;:;/g" \
              |column -t -s ";"      \
              |sed -E "s/^(.*:)/<tt><b>\1<\/b><\/tt>/" \
              |sed -E "s/^(.*)$/<small>\1<\/small>/" \
              |sed "s/|/:/g" )"
              
  #
  ${ZENITY_CMD} --info --no-wrap --text "${TEXT}" --title "${APP_WITH_VER} - Help!"
  unset HELP_TEXT
  unset TEXT
}
