-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from luisadha/v1.6
many major changes
- Loading branch information
Showing
17 changed files
with
566 additions
and
389 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"FIRSTNAME": "rudin", "LASTNAME": "adha", "ALIAS": "Adha", "COST TO STATE":" "", "CARS IMPOUNDED":" "", "CARS MONITORED":" "", "BOUNTY":" "", "FINES DUE": "", "PERSUIT_EVADED": "", "BUSTED": ""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# BIG UPDATE | ||
|
||
- Imporve signin Animations | ||
- Improve Searching database Animations | ||
- Improve CLI/UX | ||
- Impove Table | ||
- Support Color | ||
- Themes (Experimental) | ||
- Add existing alias already (Experimental) | ||
- Add logo Police | ||
- Rebuild Structure | ||
- Impove random algorithm | ||
- Static data | ||
|
||
# Soon/PR | ||
|
||
# please update Save current progress to json | ||
# please add more category section | ||
# please update themes fetures | ||
# please generate random ID | ||
# please add feature vehicles input | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"FIRSTNAME": "", "LASTNAME": "", "ALIAS": "", "COST TO STATE":" "", "CARS IMPOUNDED":" "", "CARS MONITORED":" "", "BOUNTY":" "", "FINES DUE": "", "PERSUIT_EVADED": "", "BUSTED": ""} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
PROFILE: ADHAYA | ||
COST TO STATE: 56,258,989 | ||
CARS IMPOUNDED: null | ||
CARS IMMOBILIZED: null | ||
BOUNTY: 85,982,471 | ||
FINES DUE: 350,492 | ||
PURSUITS EVADED: null | ||
BUSTED: null | ||
COST TO STATE: 55,392,073 | ||
CARS IMPOUNDED: 0-10 | ||
CARS MONITORED: 1-99 | ||
BOUNTY: 11,974,832 | ||
FINES DUE: 36,907 | ||
PURSUITS EVADED: 1-999 | ||
BUSTED: 0 - 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- COLUMNS = 70 | ||
- LINES = 13 | ||
- bash | ||
- python3 | ||
= tabulate python module | ||
- tput | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
source ~/rapsh/lib/libcolor-rapsh.sh | ||
source ~/rapsh/lib/libmain-rapsh.sh | ||
source ~/rapsh/lib/librand-rapsh.sh | ||
|
||
searchMostWantedAnimationStart() { | ||
|
||
|
||
echo -e " SEARCHING DATABASE -/"; sleep ${DELAY[3]}; | ||
echo -e " RETRIEVING LIST -/"; sleep ${DELAY[2]}; | ||
printf %"$COLUMNS"s |tr " " "."; | ||
echo | ||
|
||
|
||
echo -e " >ALLAN, WES"; sleep ${DELAY[1]}; | ||
echo -e " >CALLAHAN, CLARENCE"; sleep ${DELAY[1]}; | ||
echo -e " >DOMINGO, HECTOR"; sleep ${DELAY[1]}; | ||
echo -e " >MCCREA, RONALD"; sleep ${DELAY[1]}; | ||
echo -e " >${LASTNAME}, ${NAME}"; sleep ${DELAY[1]}; | ||
echo -e " >SATO, TORU"; sleep ${DELAY[1]}; | ||
echo -e " >VEGA, JOE"; sleep ${DELAY[1]}; | ||
echo ''; sleep ${DELAY[3]}; | ||
} | ||
|
||
|
||
function searchMostWantedAnimationEnd() { | ||
echo -e ' SELECTION MADE, RETRIEVING ALIAS...'; | ||
sleep ${DELAY[3]}; | ||
echo -e ' LOADING OK... '; sleep ${DELAY[2]}; | ||
printf %"$COLUMNS"s |tr " " "."; sleep 1.2; | ||
sleep ${DELAY[4]}; | ||
} | ||
|
||
searchMostWantedAnimation1(){ | ||
echo -e " SEARCHING DATABASE -/" $Color_Off | ||
echo -e " RETRIEVING LIST -/" $Color_Off | ||
printf %"$COLUMNS"s | tr " " "." | ||
echo | ||
|
||
local _webster="$(echo -e "$COLUMNS - 14" | bc )" | ||
echo -e "${SETMYCOLOR} >ALLAN, WES$(printf %"$_webster"s |tr " " " ")" $Color_Off | ||
echo -e " >CALLAHAN, CLARENCE" $Color_Off | ||
echo -e " >DOMINGO, HECTOR" $Color_Off | ||
echo -e " >MCCREA, RONALD" $Color_Off | ||
echo -e " >${LASTNAME}, ${NAME}" $Color_Off | ||
echo -e " >SATO, TORU" $Color_Off | ||
echo -e " >VEGA, JOE" $Color_Off | ||
echo ''; | ||
} | ||
|
||
|
||
searchMostWantedAnimation2() { | ||
echo -e " SEARCHING DATABASE -/" $Color_Off | ||
echo -e " RETRIEVING LIST -/" $Color_Off | ||
printf %"$COLUMNS"s | tr " " "." | ||
echo | ||
|
||
local _razor="$(echo -e "$COLUMNS - 22" | bc)" | ||
|
||
echo -e " >ALLAN, WES" $Color_Off | ||
echo -e "${SETMYCOLOR} >CALLAHAN, CLARENCE$(printf %"$_razor"s | tr " " " ")" $Color_Off | ||
echo -e " >DOMINGO, HECTOR" $Color_Off | ||
echo -e " >MCCREA, RONALD" $Color_Off | ||
echo -e " >${LASTNAME}, ${NAME}" $Color_Off | ||
echo -e " >SATO, TORU" $Color_Off | ||
echo -e " >VEGA, JOE" $Color_Off | ||
echo ''; | ||
} | ||
|
||
searchMostWantedAnimation3() { | ||
echo -e " SEARCHING DATABASE -/" $Color_Off | ||
echo -e " RETRIEVING LIST -/" $Color_Off | ||
printf %"$COLUMNS"s |tr " " "." | ||
echo | ||
|
||
local _ming="$(echo -e "$COLUMNS - 19" | bc)" | ||
|
||
echo -e " >ALLAN, WES" $Color_Off | ||
echo -e " >CALLAHAN, CLARENCE" $Color_Off | ||
echo -e "${SETMYCOLOR} >DOMINGO, HECTOR$(printf %"$_ming"s |tr " " " ")" ${Color_Off} | ||
echo -e " >MCCREA, RONALD" ${Color_Off} | ||
echo -e " >${LASTNAME}, ${NAME}" $Color_Off | ||
echo -e " >SATO, TORU" $Color_Off | ||
echo -e " >VEGA, JOE" $Color_Off | ||
echo ''; | ||
} | ||
|
||
searchMostWantedAnimation4() { | ||
echo -e " SEARCHING DATABASE -/" $Color_Off | ||
echo -e " RETRIEVING LIST -/" $Color_Off | ||
printf %"$COLUMNS"s |tr " " "." | ||
echo | ||
|
||
local _ronnie="$(echo -e "$COLUMNS - 18" | bc)" | ||
echo -e " >ALLAN, WES" $Color_Off | ||
echo -e " >CALLAHAN, CLARENCE" $Color_Off | ||
echo -e " >DOMINGO, HECTOR" $Color_Off | ||
echo -e "${SETMYCOLOR} >MCCREA, RONALD$(printf %"$_ronnie"s |tr " " " ")" $Color_Off | ||
echo -e " >${LASTNAME}, ${NAME}" $Color_Off | ||
echo -e " >SATO, TORU" $Color_Off | ||
echo -e " >VEGA, JOE" $Color_Off | ||
echo ''; | ||
} | ||
|
||
searchMostWantedAnimation5() { | ||
echo -e " SEARCHING DATABASE -/" $Color_Off | ||
echo -e " RETRIEVING LIST -/" $Color_Off | ||
printf %"$COLUMNS"s |tr " " "." | ||
echo | ||
|
||
local _playerLenght="$(echo -e " >${LASTNAME}, ${NAME}" | wc -L)" | ||
|
||
local _player="$(echo -e "$COLUMNS - $_playerLenght" | bc)" | ||
echo -e " >ALLAN, WES" $Color_Off | ||
echo -e " >CALLAHAN, CLARENCE" $Color_Off | ||
echo -e " >DOMINGO, HECTOR" $Color_Off | ||
echo -e " >MCCREA, RONALD" $Color_Off | ||
echo -e "${SETMYCOLOR} >${LASTNAME}, ${NAME}$(printf %"$_player"s |tr " " " ")" $Color_Off | ||
echo -e " >SATO, TORU" $Color_Off | ||
echo -e " >VEGA, JOE" $Color_Off | ||
echo ''; | ||
|
||
} | ||
|
||
|
||
searchMostWantedAnimation6() { | ||
echo -e " SEARCHING DATABASE -/" $Color_Off | ||
echo -e " RETRIEVING LIST -/" $Color_Off | ||
printf %"$COLUMNS"s |tr " " "." | ||
echo | ||
|
||
local _bull="$(echo -e "$COLUMNS - 14" | bc)" | ||
|
||
|
||
echo -e " >ALLAN, WES" $Color_Off | ||
echo -e " >CALLAHAN, CLARENCE" $Color_Off | ||
echo -e " >DOMINGO, HECTOR " $Color_Off | ||
echo -e " >MCCREA, RONALD" $Color_Off | ||
echo -e " >${LASTNAME}, ${NAME}" $Color_Off | ||
echo -e "$SETMYCOLOR >SATO, TORU$(printf %"$_bull"s |tr " " " ")" $Color_Off | ||
echo -e " >VEGA, JOE" $Color_Off | ||
echo ''; | ||
} | ||
|
||
searchMostWantedAnimation7() { | ||
echo -e " SEARCHING DATABASE -/" $Color_Off | ||
echo -e " RETRIEVING LIST -/" $Color_Off | ||
printf %"$COLUMNS"s |tr " " "." | ||
echo | ||
|
||
local _jv="$(echo -e "$COLUMNS - 13" | bc )" | ||
echo -e " >ALLAN, WES" $Color_Off | ||
echo -e " >CALLAHAN, CLARENCE" $Color_Off | ||
echo -e " >DOMINGO, HECTOR" $Color_Off | ||
echo -e " >MCCREA, RONALD" $Color_Off | ||
echo -e " >${LASTNAME}, ${NAME} " $Color_Off | ||
echo -e " >SATO, TORU" $Color_Off | ||
echo -e "${SETMYCOLOR} >VEGA, JOE$(printf %"$_jv"s |tr " " " ")" $Color_Off | ||
echo ''; | ||
|
||
} | ||
|
||
|
||
afterSignInAnimation() { | ||
searchMostWantedAnimationStart; sleep ${DELAY[0]}; clear; | ||
searchMostWantedAnimation1; sleep ${DELAY[0]}; clear; | ||
searchMostWantedAnimation2; sleep ${DELAY[0]}; clear; | ||
searchMostWantedAnimation3; sleep ${DELAY[0]}; clear; | ||
searchMostWantedAnimation4; sleep ${DELAY[0]}; clear; | ||
searchMostWantedAnimation5; sleep ${DELAY[0]}; clear; | ||
searchMostWantedAnimation6; sleep ${DELAY[0]}; clear; | ||
searchMostWantedAnimation7; sleep ${DELAY[0]}; clear; | ||
searchMostWantedAnimation6; sleep ${DELAY[0]}; clear; | ||
searchMostWantedAnimation5; sleep 0.4; searchMostWantedAnimationEnd; | ||
} | ||
|
||
signInAnimation() { | ||
MESSAGE_OPTIONAL="$1" | ||
max=$2 | ||
|
||
# Menghitung posisi tengah layar | ||
cols=$(tput cols) | ||
middle=$((cols / 2)) | ||
|
||
until false; do | ||
i=0 | ||
|
||
# clear | ||
spinner=( '-/' '\-' '-/' '\-' ) | ||
|
||
while [ $i -le $max ]; do | ||
for ANIMATION in "${spinner[@]}"; do | ||
echo -n -e "\r" # Hapus baris sebelumnya | ||
tput sc | ||
tput cup 13 $middle # Posisikan kursor ke tengah | ||
echo -n "${MESSAGE_OPTIONAL} ${ANIMATION}" | ||
sleep 0.5 | ||
if [ $i -eq 15 ]; then | ||
|
||
tput rc | ||
|
||
# clear | ||
# afterSignInAnimation; | ||
#clear | ||
#accessedMenu; | ||
sleep 10000 | ||
exit 1; | ||
fi | ||
let i++ | ||
done | ||
done | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.