CTC misaligned on centred text.
Posted: Fri Dec 28, 2018 8:47 pm
In certain parts of my game, I want to display blocks of NVL text in the middle of the screen. To do so, I use {vspace=x} tags.
The problem is this causes my inline CTC element to not display, well, inline. Here is an image demonstrating such.
However, I've learned that this only happens if Renpy is using the "drawable resolution". My game's screen is actually 1280x720, but it gets doubled because of my Surface's high-DPI screen. By setting use_drawable_resolution to False, things render correctly.
I'm of two minds about using use_drawable_resolution = False - using it gives me a more accurate view of my game unaffected by my system's quirks, but it causes transitions and animations to be pixellated/blurry mid-motion before re-rendering clearly. Having it unset/True makes everything clearer (naturally) but the text rendering appears to be imperfect.
That aside, the problem of my CTC element remains. If I instead use a line of \n characters, the CTC element stays aligned. But of course, this makes a large space show up in my history screen. (Whereas I have code to strip out vspace.)
My CTC-related code is as follows.
The problem is this causes my inline CTC element to not display, well, inline. Here is an image demonstrating such.
However, I've learned that this only happens if Renpy is using the "drawable resolution". My game's screen is actually 1280x720, but it gets doubled because of my Surface's high-DPI screen. By setting use_drawable_resolution to False, things render correctly.
I'm of two minds about using use_drawable_resolution = False - using it gives me a more accurate view of my game unaffected by my system's quirks, but it causes transitions and animations to be pixellated/blurry mid-motion before re-rendering clearly. Having it unset/True makes everything clearer (naturally) but the text rendering appears to be imperfect.
That aside, the problem of my CTC element remains. If I instead use a line of \n characters, the CTC element stays aligned. But of course, this makes a large space show up in my history screen. (Whereas I have code to strip out vspace.)
My CTC-related code is as follows.
Code: Select all
# CTC Element
image continimg:
contains:
Text("█", style="say_dialogue")
size(32, 32) pos(0.0, 0.10)
alpha 0.0
linear 0.4 alpha 1.0
linear 0.4 alpha 0.0
repeat Code: Select all
ctc="continimg", ctc_pause="continimg", ctc_timedpause=Null(), ctc_position="nestled",