images.library.lib_tdui

Should be called every time something is drawn with an approximate bounding box of the drawn area.

Used for eg. determining where we should show the cursor

Functions

GetBackNormal()

View source »

Returns a normal vector facing away from the TDUI panel towards the back of the panel Example usecase: figuring out if the player is looking at the panel or not

GetFrontNormal()

View source »

Returns a normal vector facing away from the TDUI panel towards the front of the panel Due to angle rotations in UpdatePAS this is not the obvious self.angles:Forward()