So i have a day parameter in my game. I want it to be shown at the top left corner of my game.
Here is my game screen:
I made the day counter appear like this:
$ui.frame(xpos=0, ypos=0)
$ui.text("Day [day]")
But how do i change its style? I havent found any documentation on this ui.frame. And if there is another way, how to do it?
Please help.
[SOLVED] How to show updating text box
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
[SOLVED] How to show updating text box
Last edited by lxknvlk on Wed Feb 14, 2018 5:15 pm, edited 1 time in total.
-
- Regular
- Posts: 78
- Joined: Thu Feb 08, 2018 7:57 am
- Contact:
Re: How to show updating text box
Well, it is documented that it shouldn't be used. You should create a screen using screen language and display the information that way.
Code: Select all
screen hud():
frame:
text "Day [day]"
label start:
$ day = "Monday"
show screen hud
"This should stay on the screen."
$ day = "Tuesday"
"Yep, it does."
return
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3791
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: How to show updating text box
It is not advised to use any variables that have not been defaulted.
It may be better to use it like this:
It may be better to use it like this:
Code: Select all
screen hud():
frame:
text "Day [day]"
default day = 'Monday' # or any day of your choosing
label start:
$ day = "Monday"
show screen hud
"This should stay on the screen."
$ day = "Tuesday"
"Yep, it does."
return
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: How to show updating text box
Thanks! It is working.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]