Adding tab items

To add a tab item on a tab, we can use the following function.

ui_item_add (control, item);

Return: Ds_map

Argument control is the handle of ui_tab_create(...); function, While the item is a string of items you want to add.

tabMenu = ui_tab_create (16, 64, 320, 32, 256);
ui_item_add (tab, "Armor");
ui_item_add (tab, "Weapon");
ui_item_add (tab, "Item");

The above line of code is used to add items to the tabMenu tab.

results matching ""

    No results matching ""