-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtermS_RobCo.py
104 lines (77 loc) · 3 KB
/
termS_RobCo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import os
import time
import sys
import sys_RobCo
import var_RobCo
import cmd_RobCo
# ----- headers
def header_(header_input, centre_input, typeF):
empty()
line()
typeF((" " + header_input + " ").center(var_RobCo.centre, centre_input))
line()
empty()
# ----- cheats
def empty():
print("") # Creates an empty space in the display
def line():
print('--'.center(var_RobCo.centre, '-')) # Creates a line going across the screen
# ----- effects
def load_wheel(timeNumber):
loadWheelAnimation = ".", ". .", ". . .", ". . . ."
for i in range(timeNumber):
time.sleep(0.1)
sys.stdout.write("\rLOADING: " + loadWheelAnimation[i % len(loadWheelAnimation)])
sys.stdout.flush()
def robco_interface(typeF):
cmd_RobCo.clear()
empty()
typeF("ROBCO INDUSTRIES UNIFIED OPERATING SYSTEM".center(var_RobCo.centre, " "))
typeF("COPYRIGHT 2075-2077 ROBCO INDUSTRIES".center(var_RobCo.centre, " "))
with open(var_RobCo.server, 'r') as f:
typeF(f.read().center(var_RobCo.centre, " "))
print(" \n" * 3)
def logo_screen(number):
print("\n" * number)
print("██████| █████| ██████| █████| █████| ".center(var_RobCo.centre, " "))
print("██| ██|██| ██|██| ██|██| ██|██| ██|".center(var_RobCo.centre, " "))
print("██████| ██| ██|██████| ██| ██| ██|".center(var_RobCo.centre, " "))
print("██| ██|██| ██|██| ██|██| ██|██| ██|".center(var_RobCo.centre, " "))
print("██| ██| █████| ██████| █████| █████| ".center(var_RobCo.centre, " "))
print("\n" * number)
def print_s(text, speed):
for line_section in text.split('\n'):
print(line_section)
time.sleep(speed)
def slide_by_line(filename, delay):
with open(filename, 'r') as file:
for line1 in file:
print(line1, end='')
time.sleep(delay)
def slide_up():
for i in range(30):
print("")
time.sleep(0.02)
cmd_RobCo.clear()
def locate_file_screen():
def find_item(path_file):
cmd_RobCo.clear()
logo_screen(11)
if os.path.exists(path_file):
if os.path.isfile(path_file):
return " > file_located"
elif os.path.isdir(path_file):
return " > dir_located"
else:
sys_RobCo.m_log(86, f"missing:{path_file}")
return " >>>>> ERROR: NOT FOUND <<<<<"
for path in var_RobCo.paths:
status = find_item(path)
print(f"Loading: {path}: {status}")
logo_screen(11)
def credits_():
empty()
cmd_RobCo.char("Created by TrickyTaco11 @2024 \nThanks to Bethesda Softworks "
"for inspiration on the Fallout styled RobCo-Terminal! \n"
"Licensed by MIT \n"
"https://github.com/TrickyTaco11/RobCo-Terminal \n ")