I need some help creating a screen where the player could enter a command and each command adds up to the text of the screen, basically the screen works like this:
note that each command will add to the text just like a command prompt would do, also the screen is for hacking so it might call other screens, I want an action to be called based on the command entered, here's the code I have been using so far:
Code: Select all
screen access_menu():
#$ initializing =0
#$ Legend_panel = 0
$ thiscreentext= "Initializing..."
add im.Alpha("images/UI/item_detail_menu/Panel_bg.png",0.6)
vbox:
spacing 10
add Text("Initializing...", style="access", slow_cps=20)
if thiscreentext=="h":
#$ thiscreentext+="\nSystem boot..."
add Text("System boot...", style="access", slow_cps=20)
#add Text("System boot... qqqqqqq qqqqqqqqqqqqqq qqqqqqq qqqq", style="access", slow_cps=0.)
if Legend_panel==1:
add Text("\n--------------------------------------------------------------------------------\nh/help\ns/scan\nc/clear\nl/load", style="access", slow_cps=20)
# input default "" style "access" #changed [SetVariable("Legend_panel", 1)]#, font "Fonts/techno28.ttf", color "00d5fb")
#input id "input" style "access" #action [SetVariable("initializing",0)]
input:
default ""
value VariableInputValue('thiscreentext') #This updates the note variable (defined above) with what the player enters
length 1
style "access"
timer 3.0 action [SetVariable("initializing", 1)]
timer 3.0 action [SetVariable("Legend_panel", 1)]
also how can I change the text indicator to blink just like command prompt, and I have been trying to show the text in " slow_cps=20", but it wont work when I use the timer.
Thanks in advance...