UCC Reference

UI_set_gump_text_font

[Exult]

int UI_set_gump_text_font(object item, int field_id, int font_num)
int item->set_gump_text_font(int field_id, int font_num)

Sets the font used by a text field widget within a dynamic gump.

Parameters

Parameter / value Description
item The object whose dynamic gump contains the text field.
field_id The numeric identifier of the text field widget to update.
font_num The font number referring to a font shape in the active font file (e.g. fonts_original.vga).

Return

Returns 1 on success, 0 on failure (e.g. if the gump is not found or the field does not exist).

Notes

The gump is located by searching for the gump associated with item, with a fallback to item's owner.

Related intrinsics

Full intrinsic reference | Reference definitions