# Set Research Item Icon

Grammar — Set the icon of researchItem to filePath
FlagsNative | Action

Sets the icon for the specified research item.

# Arguments

  • int<preset::ResearchItem> — Research Item
  • string<filepath> — File Path

Returns — void

native void ResearchItemSetIconFilePath(
	int inResearchItemId,
	string inFilePath,
);

Category: Story / Research Panel

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5560

        ResearchItemSetNameText(ResearchItemLastCreated(), libCamp_gf_StoryResearchName(lv_indexResearch));
        ResearchItemSetDescriptionText(ResearchItemLastCreated(), libCamp_gf_StoryResearchDescription(lv_indexResearch));
        ResearchItemSetIconFilePath(ResearchItemLastCreated(), libCamp_gf_StoryResearchIcon(lv_indexResearch));
        ResearchItemSetMovieFilePath(ResearchItemLastCreated(), libCamp_gf_StoryResearchMovie(lv_indexResearch));
        ResearchItemSetTooltipText(ResearchItemLastCreated(), libCamp_gf_StoryResearchTooltip(lv_indexResearch));