# Set Dialog Item Custom Tooltip

Grammar — Set dialogItem Custom Tooltip to tooltip for players
FlagsAction

Sets a Dialog Item’s Custom Tooltip

# Arguments

  • int<control> — Dialog Item
  • int<control> — Tooltip
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemCustomTooltip(
	int lp_dialogItem,
	int lp_tooltip,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6432

        lv_buttonIndex = 0;
        for ( ; ( (auto047325C3_ai >= 0 && lv_buttonIndex <= auto047325C3_ae) || (auto047325C3_ai < 0 && lv_buttonIndex >= auto047325C3_ae) ) ; lv_buttonIndex += auto047325C3_ai ) {
            libNtve_gf_SetDialogItemCustomTooltip(lv_commandButtons[lv_buttonIndex], lv_tooltipAnchor, PlayerGroupAll());
        }
        lv_buttonIndex = 1;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:6442

                if (lv_indexPlayer < 0) { break; }
                if ((libCOUI_gv_cU_GPCmdButtons[lv_buttonIndex][lv_indexPlayer] != c_invalidDialogControlId)) {
                    libNtve_gf_SetDialogItemCustomTooltip(libCOUI_gv_cU_GPCmdButtons[lv_buttonIndex][lv_indexPlayer], lv_tooltipAnchor, PlayerGroupAll());
                }