C4 Engine
C4 Engine API Documentation

MenuSetting::SetMenuItemString

Defined in:  C4Configuration.h
Sets the name of a single menu item.
Prototype

void SetMenuItemString(int32 index, const char *string);

Parameters
index The index of the menu item whose name is being set.
string The name of the menu item.
Description
The SetMenuItemString function is used to specify the text for a particular menu item belonging to a MenuSetting object. This function should be called for each menu item after a MenuSetting object has been created with the index parameter ranging from 0 to n − 1, where n is the number of menu items specified by the itemCount parameter of the MenuSetting constructor.