Skip to content
VN_fnc_wm_text_adjustFontSize

VN_fnc_wm_text_adjustFontSize

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

[_lastSelectorIDC] call VN_fnc_wm_text_adjustFontSize;

Parameters

ParameterTypeDefaultDescription
_lastSelectorIDC Number-1 IDC of the control, wich should be checked

Examples

[ctrlIDC _ctrl] call VN_fnc_WM_text_adjustFontSize;

Documented by Dscha.