# Set Unit Command Button Tooltip

Grammar — Set unit’s key tooltip text to text
FlagsNative | Action | Internal

Sets the info text for the specified unit.

# Arguments

  • unit — Unit
  • string — Modification Key
  • text — Text

Returns — void

native void UnitSetInfoButtonTooltip(
	unit inUnit,
	string key,
	text inText,
);

Category: Unit / Properties

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:5412

    // Automatic Variable Declarations
    // Implementation
    UnitSetInfoButtonTooltip(lp_unit, ((AbilityCommandGetAbility(lp_key)) + "," + IntToString(AbilityCommandGetCommand(lp_key))), lp_text);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:5418

    // Automatic Variable Declarations
    // Implementation
    UnitSetInfoButtonTooltip(lp_unit, (lp_key), lp_text);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:5424

    // Automatic Variable Declarations
    // Implementation
    UnitSetInfoButtonTooltip(lp_item, "@", lp_text);
}