Garry's Mod Wiki

Revision Difference

Global.ScreenScaleH#551402

<function name="ScreenScaleH" parent="Global" type="libraryfunc">⤶ <description>Returns a number based on the `size` argument and players' screen height. The height is scaled in relation to `640x480` resolution. This function is primarily used for scaling font sizes.⤶ ⤶ See <page>Global.ScreenScale</page> for a function that scales from width.⤶ ⤶ </description>⤶ <added>2023.08.08</added>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="size" type="number">The number you want to scale.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The scaled number based on your screen's height.</ret>⤶ </rets>⤶ </function>