Ok, little more advanced sequel to original subject...
I have modified in-game menu so that menu reminds more default main menu ( = it's positioned to certain part of screen ). As before, I have code similar to this:
Code: Select all
style.menu_window.background=RoundRect("#000000bb")
style.menu_window.xalign = 0
style.menu_window.yalign = 0
style.menu_window.left_margin = 50
style.menu_window.right_margin = 200
style.menu_window.xfill = True
... now, I'd like to make dialog appear at over the menu (or in other words, menu should be showing after dialogue):
Code: Select all
style.menu_window.background=RoundRect("#000000bb")
style.say_window.xalign = 0
style.say_window.yalign = 0
style.say_window.left_margin = 50
style.say_window.top_margin = 50
style.say_window.right_margin = 200
style.say_window.xfill = True
Question is: Is there a way to write something similar to this (because say_window's height might change depending on amount of text) ? :
Code: Select all
style.menu_window.top_margin = 50 + style.say_window.height
As far as I know, styles are static and cannot be changed dynamically, but is there some solution for this? How about is there way to get/set window height/width with absolute values (without using some calculation based on resolution and margin-positions) ?
EDIT:
These two "screenshots" should explain question more visually: