Ok, narrowed it down to .charsize
If I set a .charsize to the [Overview] text box ( _overview.charsize = 20 for instance ), first_line_hint stops working. Every time I dynamically change it, it goes to 0.
If I don't set a character size the font becomes huge but first_line_hint works.
This simple layout demonstrates it. Use W and S to scroll the overview with and without the second line commented.
I'm using Windows 10 64, AM 2.4.1
local _overview = fe.add_text( "[Overview]",0,0,300,600)
_overview.charsize = 20
print (_overview.charsize+"\n")
function update_realtime( ttime )
{
local is_PovYposK = fe.get_input_state ("W")
if (is_PovYposK) {
print (_overview.first_line_hint+"\n")
_overview.first_line_hint++
}
local is_PovYnegK = fe.get_input_state ("S")
if (is_PovYnegK) {
print (_overview.first_line_hint+"\n")
_overview.first_line_hint--
}
}
fe.add_ticks_callback( this, "update_realtime" )
Anyone?