From 43eb7d61e7ff58b1d188933511fb532c5050ae8a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 4 Oct 2020 15:14:30 +0200 Subject: [PATCH] - helper function for setting up the summary screen. --- .../static/zscript/ui/statscreen/statscreen.zs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wadsrc/static/zscript/ui/statscreen/statscreen.zs b/wadsrc/static/zscript/ui/statscreen/statscreen.zs index d118111be..7ee6e9eb7 100644 --- a/wadsrc/static/zscript/ui/statscreen/statscreen.zs +++ b/wadsrc/static/zscript/ui/statscreen/statscreen.zs @@ -135,6 +135,22 @@ class StatusScreen abstract play version("2.5") int scaleFactorX, scaleFactorY; + //==================================================================== + // + // Set fixed size mode. + // + //==================================================================== + + void SetSize(int width, int height, int wrapw = -1, int scalemode = FSMode_ScaleToFit43) + { + cwidth = width; + cheight = height; + scalemode = FSMode_ScaleToFit43; + scalefactorx = 1; + scalefactory = 1; + wrapwidth = wrapw == -1 ? width : wrapw;; + } + //==================================================================== // // Draws a single character with a shadow