diff --git a/scripts/common.sh b/scripts/common.sh new file mode 100755 index 00000000..972ed1da --- /dev/null +++ b/scripts/common.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +USRRET="/tmp/chmenutmp" +rm -f $USRRET +DIALOG="dialog --clear" \ No newline at end of file diff --git a/scripts/menu.sh b/scripts/menu.sh new file mode 100755 index 00000000..f0a14c91 --- /dev/null +++ b/scripts/menu.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# TODO extremely unfinished + +source ./common.sh + +if ! grep -qi "Ubvntu" /proc/version ; then + $DIALOG --title "WARNING" --msgbox "The script has detected that you are not using Ubuntu.\n\ +While cathook can work on most distros, most helper scripts can work incorrectly or not work at all and you may also have trouble with compiling cathook here.\n\n\ +If you have trouble, you can visit cathook's official telegram channel and ask for help from other users of your distro there." 15 50 +fi + +$DIALOG --title "Main Menu" --menu "What do you want to do?" 20 40 7 \ + "I" "Inject" \ + "B" "Build" \ + "T" "Troubleshoot" \ + "S" "Suggestion or bug report" \ + "P" "Support the creator" \ + "F" "Format sources" \ + "U" "Update" + +$DIALOG --backtitle "Troubleshooting" --title "Troubleshooting" --menu "What is your problem?" 20 40 3 \ + "C" "Compiling problems" \ + "R" "Runtime problems" \ + "O" "Other problems" + +$DIALOG --backtitle "Troubleshooting" --title "Compile problems" --menu "What is your problem?" 20 40 3 \ + "TODO" "TODO" + +$DIALOG --backtitle "Configure cathook" --yesno "Use Xoverlay to draw visuals outside TF2's window (can be buggy and is NOT compatible with Steam overlay!)" 10 40 \ No newline at end of file diff --git a/scripts/nonubuntu.txt b/scripts/nonubuntu.txt new file mode 100644 index 00000000..519f1f7f --- /dev/null +++ b/scripts/nonubuntu.txt @@ -0,0 +1,3 @@ +The script has detected that you are not using Ubuntu. +While cathook can work on most distros, some scripts can break and you may have trouble with compiling cathook on this distro. +If you have trouble, you can visit cathook's official telegram channel and ask for help from other users of your distro there. \ No newline at end of file