View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004297 | The Dark Mod | GUI | public | 29.03.2016 17:26 | 29.03.2016 17:26 |
Reporter | VanishedOne | Assigned To | |||
Priority | normal | Severity | normal | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | TDM 2.03 | ||||
Summary | 0004297: GUI text clipped at right edge in certain circumstances | ||||
Description | With this GUI... windowDef Desktop { rect 0, 0, 640, 480 backcolor 0, 0, 0, 1 nocursor 1 windowDef captionTop0 { rect 50, 40, 250, 200 forecolor 0,0,0,1 textalign 0 textscale 0.4 text "When persons of influence have problems, they turn to their spymasters..." onTime 0 { transition forecolor "0 0 0 1" "0.8, 0.8, 1, 1" "4000"; } } windowDef captionBottom0 { rect 340, 320, 250, 200 forecolor 0,0,0,1 textalign 2 textscale 0.4 text "...and when their spymasters have problems, there's a tap on shoulders like mine." onTime 0 { transition forecolor "0 0 0 1" "0.8, 0.8, 1, 1" "4000"; } } } ...the captionBottom text appears clipped at the right edge, but ONLY while its onTime block exists. If that block is removed and the text is given a visible colour, it will all be visible. (Setting a background colour shows its right edge extending beyond captionBottom's background.) Moving and resizing captionBottom doesn't seem to change the edge overhang, which is presumably textalign 2 behaviour. It's the existence of the event handler that somehow creates the clipping problem, even if it's empty. | ||||
Additional Information | Luckily, though oddly, there seems to be a workaround: move the event handler outside captionBottom's scope and call it as onTime 0 { transition "captionBottom0::forecolor" "0 0 0 1" "0.8, 0.8, 1, 1" "4000"; } | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
29.03.2016 17:26 | VanishedOne | New Issue | |
29.03.2016 17:26 | VanishedOne | File Added: gui_text_clip.png |