• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

PC [UnrealScript] Canvas broken canvas functions

Marco

Grizzled Veteran
May 23, 2009
644
230
Finland
These 2 functions seam to be broken in KF2 (they were functional in UDK):
Code:
native noexport final function PushMaskRegion(float X, float Y, float XL, float YL);
native noexport final function PopMaskRegion();
They were useful for clipping canvas tiles or text on HUD, but seams to do nothing anymore.

For example:
Code:
Canvas.PushMaskRegion(100, 100, 200, 50);
Canvas.SetPos(100, 100);
Canvas.DrawText("Hello, world! =============================");
Canvas.PopMaskRegion();