- namebox1 = Frame("#f00c",0,0)
- textbox1 = Frame("#ff0c",0,0)
- namebox2 = Frame("#00fc",0,0)
- textbox2 = Frame("#0ffc",0,0)
- style namebox1_window is say_who_window:
- style namebox2_window is say_who_window:
-screen say(who, what, side_image=None, two_window=False):
+ namebox1A = Frame("#f00",0,0)
+ namebox2A = Frame("#00f",0,0)
+ textbox1A = Frame("#ff0",0,0)
+ textbox2A = Frame("#0ff",0,0)
+ namebox1B = Frame("#f008",0,0)
+ namebox2B = Frame("#00f8",0,0)
+ textbox1B = Frame("#ff08",0,0)
+ textbox2B = Frame("#0ff8",0,0)
+screen say(who, what, side_image=None, two_window=True, custom_who_background="say_who_window_background"):
- textbutton "Style 1: red" action SetField(persistent, "style", "1")
- textbutton "Style 2: blue" action SetField(persistent, "style", "2")
+ textbutton "Style 1: opaque" action SetField(persistent, "style", "A")
+ textbutton "Style 2: translucent" action SetField(persistent, "style", "B")
- # The two window variant.
- style "say_two_window_vbox"
- # style "say_who_window"
- if persistent.style == "1":
+ # Decide if we want to use the one-window or two-window varaint.
+ # The one window variant.
- if persistent.style == "1":
+ # The two window variant.
+ style "say_two_window_vbox"
+ background custom_who_background