init 10: style say_window: align (.5, 1.) background Frame(im.Alpha("boxes/dialogue_chatbox.png", 0.3), 1, 1) ## Transparencia # background Frame(im.Alpha("boxes/popup_generic.png", 0.3), 1, 1) ## popup_generic.png #padding (70, 0) padding (65, -25) xfill True yminimum 122 style say_label: bold True yalign .5 style say_vbox: spacing 8 xfill True style say_thought: color 'ccc' italic True style say_dialogue: size 22 outlines [(absolute(5),"#0003",0,0),(absolute(3),"#0006",0,0),(absolute(2),"#0009",0,0),(absolute(1),"#000c",0,0)] ## $ style.rebuild() screen say(who, what, native=None): style_prefix 'say' window: id 'window' has vbox if who is not None: window: id 'namebox' style 'namebox' has hbox spacing 20 text who size 18 outlines [(absolute(3),"#000c",0,0)] id 'who' ## text who id 'who' if native: text '*Hablando Otro Idioma*' size 18 bold True style_suffix 'thought' else: window: id 'namebox' style 'namebox' has hbox spacing 20 text '' size 18 if native: text what id 'what' style_suffix 'thought' else: text what id 'what' style_suffix 'dialogue' # if native is None: # text what id 'what' style_suffix 'dialogue' # else: # text native id 'native' style_suffix 'dialogue' slow_abortable True slow_cps True # text what id 'what' style_suffix 'thought'