Changing textbox appearance at runtime for a scene
Posted: Fri Feb 10, 2017 7:34 am
Hello
. I want to ask if it is possible to change the appearance of a textbox at runtime. For instance, with cursors, I can call:
And with the textbox, I can customize it using:
However, if I call the above while the story is progressing, the window does not change. The update only seems to happen if the command is called while I am in the menu. Is there another function I am supposed to call?
It is possible to update the textbox for a specific character via:
But I would like to change the dialogue box for an entire scene. Something like:
Also, I would like to ask if it is possible to change the say screen's imagemaps at runtime. These ones:
I want to change the dialogue box and those button imagemaps at the same time. Mind letting me know? Thank you
!
Code: Select all
def changeCursor():
setattr(config, "mouse", {'default' : [('assets/images/cursor_alt.png', 0, 0)]})
changeCursor()Code: Select all
style.window.background = Frame("assets/images/game/game_gui.png", xxx, yyy)It is possible to update the textbox for a specific character via:
Code: Select all
$ narrator = Character(None, window_background="dialoguebox_noname.png")Code: Select all
# Textbox style 1.
"Hello!"
"Hey man."
"Yo you ready to change the style?"
"Okay, change it."
# Textbox style 2.
"Did it work?"
"Yeah."Code: Select all
screen say:
imagemap:
ground "assets/images/game/game_ground.png"
idle "assets/images/game/game_idle.png"
hover "assets/images/game/game_hover.png"
selected_idle "assets/images/game/game_selected_idle.png"
selected_hover "assets/images/game/game_selected_hover.png"