VN_fnc_wm_text_adjustFontSize

From Savage Game Design Wiki
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Dscha
Argument(s): n/a
Effect(s): unknown

Description

Adjusting the textsize (sizeEx) of control (type = 0), until it fit's in or it reaches the min. size.
		//////////////////// IMPORTANT:
		///// Waiting for "getTextWidth" to be implemented...
		///// Means: Ignore this file for now. It's a dirty/hacky way, but at least it works...
		///// "ui_f_vietnam_c\ui\functions\fn_checkFontSize.sqf" <-- proper one
		////////////////////////////////////////////////////////////////////////////////

Syntax

Syntax
[_lastSelectorIDC] call VN_fnc_wm_text_adjustFontSize;
Parameters
_lastSelectorIDC: Number - (Optional, default -1) IDC of the control, wich should be checked
Return value
Nothing

Examples

Example 1
[ctrlIDC _ctrl] call VN_fnc_WM_text_adjustFontSize;