[suggestion] put chat in a window
Posted: Fri Sep 26, 2014 5:32 am
I've had lots of problems customizing the chat with "show_two_window=True" and any change I've done to my "window" was applied to other screen code using "window". it was frustrating before I find a simple solution and i think it would be nice if you add it to the next version. I put my whole chat inside another window and it hlped me to apply size and position to my chat window without messing things:
I'm not that good at coding to add configurations to it and get the job done but I can say what I have in mind:
-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.
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.