MCPcopy Create free account
hub / github.com/NYPDK/cs2go / cliMenu

Function cliMenu

main.go:565–639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563}
564
565func cliMenu() {
566 for {
567 fmt.Print(chalk.Magenta.Color(" ____ \n ___ ___|___ \\ ____ ___ \n / __/ __| __) / _ |/ _ \\ \n| (__\\__ \\/ __/ (_| | (_) |\n \\___|___/_____\\__, |\\___/ \n |___/ \n"))
568 fmt.Println(chalk.Dim.TextStyle("\t\tby bqj - v1.6\n"))
569 if teamCheck {
570 fmt.Println(chalk.Green.Color("[1] Team check [ON]"))
571 } else {
572 fmt.Println(chalk.Red.Color("[1] Team check [OFF]"))
573 }
574 if headCircle {
575 fmt.Println(chalk.Green.Color("[2] Head circle [ON]"))
576 } else {
577 fmt.Println(chalk.Red.Color("[2] Head circle [OFF]"))
578 }
579 if skeletonRendering {
580 fmt.Println(chalk.Green.Color("[3] Skeleton rendering [ON]"))
581 } else {
582 fmt.Println(chalk.Red.Color("[3] Skeleton rendering [OFF]"))
583 }
584 if boxRendering {
585 fmt.Println(chalk.Green.Color("[4] Box rendering [ON]"))
586 } else {
587 fmt.Println(chalk.Red.Color("[4] Box rendering [OFF]"))
588 }
589 if healthBarRendering {
590 fmt.Println(chalk.Green.Color("[5] Health bar rendering [ON]"))
591 } else {
592 fmt.Println(chalk.Red.Color("[5] Health bar rendering [OFF]"))
593 }
594 if healthTextRendering {
595 fmt.Println(chalk.Green.Color("[6] Health text rendering [ON]"))
596 } else {
597 fmt.Println(chalk.Red.Color("[6] Health text rendering [OFF]"))
598 }
599 if nameRendering {
600 fmt.Println(chalk.Green.Color("[7] Name rendering [ON]"))
601 } else {
602 fmt.Println(chalk.Red.Color("[7] Name rendering [OFF]"))
603 }
604 fmt.Println(chalk.Cyan.Color("[8] Adjust frame delay [") + fmt.Sprint(frameDelay) + chalk.Cyan.Color("]"))
605 fmt.Println(chalk.Red.Color("[9] Exit"))
606 fmt.Print(chalk.Cyan.Color("[Enter selection]: "))
607 var input string
608 fmt.Scanln(&input)
609 switch input {
610 case "1":
611 teamCheck = !teamCheck
612 case "2":
613 headCircle = !headCircle
614 case "3":
615 skeletonRendering = !skeletonRendering
616 case "4":
617 boxRendering = !boxRendering
618 case "5":
619 healthBarRendering = !healthBarRendering
620 case "6":
621 healthTextRendering = !healthTextRendering
622 case "7":

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected