View Issue Details

IDProjectCategoryView StatusLast Update
0004297The Dark ModGUIpublic29.03.2016 17:26
ReporterVanishedOne Assigned To 
PrioritynormalSeveritynormalReproducibilityalways
Status newResolutionopen 
Product VersionTDM 2.03 
Summary0004297: GUI text clipped at right edge in certain circumstances
DescriptionWith 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 InformationLuckily, 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";
        }
TagsNo tags attached.
Attached Files
gui_text_clip.png (24,986 bytes)   
gui_text_clip.png (24,986 bytes)   

Activities

Issue History

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