Hello, writing code in Renpy is not like writing text in a word-processor. I am currently a bit "at a loss" when this happens to me:
Here are the styles I use:
I would love to have "each item" following each other on the page as I write the up more or less, not bundle up in a party at the top left corner. Any example code on how to somehow fix this would be great.
Another thing that irritate me a tiny bit is that I would have the page start at "max" width, but when I order it to do that in a style with "xfill True" it also fills the entire "bottom" which I did not ask for at all. I just want the "frame" to fill up the max "width" nothing more.
Once I have learned to master "these" problems in Renpy I can more or less finally handle the basics. I have made nice progress of the game so far... this is just a temporary roadblock
Code:
screen wiki_index():
tag menu
use game_menu(_("Wiki Index"), scroll="viewport"):
style_prefix "wiki"
frame:
vbox:
hbox:
spacing 15 at center
text _p("""
• {a=wiki_test1}test 1{/a}{p}
• {a=wiki_test2}test 2{/a}{p}
• {a=wiki_test3}test 3{/a}{p}
• {a=wiki_test4}test 4{/a}{p}
• {a=wiki_test5}test 5{/a}{p}
""")
text _p("""
• {a=wiki_test1}test 1{/a}{p}
• {a=wiki_test2}test 2{/a}{p}
• {a=wiki_test3}test 3{/a}{p}
• {a=wiki_test4}test 4{/a}{p}
• {a=wiki_test5}test 5{/a}{p}
""")
text _p("""
• {a=wiki_test1}test 1{/a}{p}
• {a=wiki_test2}test 2{/a}{p}
• {a=wiki_test3}test 3{/a}{p}
• {a=wiki_test4}test 4{/a}{p}
• {a=wiki_test5}test 5{/a}{p}
""")
vbox:
grid 2 3:
text "Top-Left"
text "Top-Right"
text "Center-Left"
text "Center-Right"
text "Bottom-Left"
text "Bottom-Right"
vbox:
text "Why me?"
Code:
style wiki_frame:
xpadding 100
ypadding 100
style wiki_text:
justify True
drop_shadow [(1, 1)]
Another thing that irritate me a tiny bit is that I would have the page start at "max" width, but when I order it to do that in a style with "xfill True" it also fills the entire "bottom" which I did not ask for at all. I just want the "frame" to fill up the max "width" nothing more.
Once I have learned to master "these" problems in Renpy I can more or less finally handle the basics. I have made nice progress of the game so far... this is just a temporary roadblock