// // CPT operator / SondeerGame // This source file is (c) by Deltares. // - October 2014 // class GeoFont extends GUIFont; var int FontScreenWidth[7]; event Font GetFont(int XRes) { local int i; for(i=0; i<7; i++) { if ( default.FontScreenWidth[i] <= XRes ) return LoadFontStatic(i); } return LoadFontStatic(6); } defaultproperties { FontScreenWidth(0)=1900 FontScreenWidth(1)=1600 FontScreenWidth(2)=1280 FontScreenWidth(3)=1024 FontScreenWidth(4)=800 FontScreenWidth(5)=640 FontScreenWidth(6)=600 }