namebox positioning[solved]
Posted: Sat Feb 03, 2018 4:42 pm
So I've been trying to figure this out on my own for a while now but I just can't understand what I'm supposed to so. What I'm trying to do is move the namebox because currently it's on top of my dialogue box and blending with my dialogue text. At first I thought I had to change something here in screens.rpy
but I don't really know what to mess with and I don't want to completely destroy everything. So when I looked around a bit more I found this code
But I don't know where to put it. plus I don't know what this code means or where it's at.
Code: Select all
## Make the namebox available for styling through the Character object.
init python:
config.character_id_prefixes.append('namebox')
style window is default
style say_label is default
style say_dialogue is default
style say_thought is say_dialogue
style namebox is default
style namebox_label is say_label
style window:
xalign 0.5
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
style namebox:
xpos gui.name_xpos
xanchor gui.name_xalign
xsize gui.namebox_width
ypos gui.name_ypos
ysize gui.namebox_height
background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign)
padding gui.namebox_borders.padding
style say_label:
properties gui.text_properties("name", accent=True)
xalign gui.name_xalign
yalign 0.5
style say_dialogue:
properties gui.text_properties("dialogue")
xpos gui.dialogue_xpos
xsize gui.dialogue_width
ypos gui.dialogue_ypos
Code: Select all
add##Customization of the name box if show_two_window = True
style.say_who_window.background = Frame("FILE NAME HERE", 50, 50)
style.say_who_window.xalign = 0.0
style.say_who_window.yalign = 1.0
style.say_who_window.xpos = 2
style.say_who_window.ypos = 49
style.say_who_window.left_padding = 15
style.say_who_window.top_padding = 15
style.say_who_window.right_ping = 15
style.say_who_window.bottom_padding = 15
style.say_who_window.xminimum = 190
style.say_who_window.yminimum = 50
Code: Select all
##Customization of the name box if show_two_window = True[\code]
This may be me being naive to programming but any help is appreciated. :)