Code: Select all
window:
id "chat"
style "chat"
# Decide if we want to use the one-window or two-window variant.
if not two_window:
# The one window variant.
window:
id "window"
has vbox:
style "say_vbox"
if who:
text who id "who"
text what id "what"
else:
# The two window variant.
vbox:
style "say_two_window_vbox"
if who:
window:
style "say_who_window"
text who:
id "who"
window:
id "window"
has vbox:
style "say_vbox"
text what id "what"-spate style commands for "chat_window_", "who_window_", "who_", "what_window" and "what_" that can be used in character definition.
-complete independence from options (somethings like "say_who_xfill" can only be set as an option for all characters not for each)
-specific name for each style and window (to avoid messing with basic and default styles)
-ability to define inputs as separate characters and as part of character chat system (like when a character asks something and an input appears under his/her question)
-ability to bring menus under the chat as its child
-simple drag-ability (I'll work on this to make it an option for all of the displayables)
If It's too much work I'll be happy to do it if somebody teach me where I can define these configurations.