The current plan is to set it up so that a translator_note variable can be set and unset, telling the system to show the button. Tapping the button would then bring up a modal screen which would set up the overall layout and then loading the actual content of the note by jumping to a label contained within the translator_note variable.
Here's my code so far. I've got the following addition to the say() screen to create the button:
Code: Select all
screen say(who, what):
###### START TRANSLATOR NOTE BUTTON
button:
action Show("translator_note", dissolve)
xalign 0.9
yalign 0.05
background "#dddddd"
xsize 250
ysize 200
vbox: # yalign 1 seems to get ignored
xalign 0.5 yalign 0.5
text "{size=-8}Translator\nNote{/size}" color "#0000008f"
###### END TRANSLATOR NOTE BUTTON
style_prefix "say"
window:
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
text what id "what"
Code: Select all
screen translator_note():
modal True #The screen has to be modal, right? So nothing below it can be clicked
button: ## Making the whole area dismissable by simply touching it anywhere
action Hide('translator_note', dissolve) #This is the "Done" button, with the Hide() screen action, wich in this case hides the very screen where it is created.
xalign 0.5 yalign 0.5
background "#000a0280" # sumiiro @50%
xsize 1920
ysize 1080
frame:
xalign 0.5 yalign 0.5
background "#fcfaf2" # shironeri
xmaximum 800
vbox:
$ renpy.jump(translator_note_test)
label "translator_note_test":
text 'A Translator Note Here' color "#171412" # kokushoku
Is there a better way to call blocks of layout code to drop inside of another layout? Or is the current method viable and I'm just calling it wrong? I know it didn't like just calling jump translator_note_text directly, which is why I tried the $ renpy.jump(translator_note_text) method above.expected 'label_name_declare' not found. label->"translator_note_test"