# User Data (Image Edge)

Grammar — User Data (userType, instance, field, index)
FlagsNative | Function

Returns a value from user data for the given type, instance, and field. User data is defined in the Data module.

# Arguments

  • string<gamelink::User> — User Type
  • string<userinstance> — Instance
  • string<userfield> — Field
  • int — Index

Returns — int<preset::TextTagEdge>

native int UserDataGetImageEdge(
	string inType,
	string inInstance,
	string inField,
	int inIndex,
);

Category: User Data / Get Value

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8423

    DialogCreate(400, 400, c_anchorCenter, 0, 0, true);
    DialogSetImageVisible(DialogLastCreated(), false);
    if ((UserDataGetImageEdge("CalloutAttachment", lp_attachment, "Attachment", 1) == c_textTagEdgeLeft)) {
        DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_Callouts/UnitCalloutArmyFrameLeftTemplate");
        DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, 0, 0);

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:5033

                DialogCreate(400, 400, c_anchorCenter, 0, 0, true);
                DialogSetImageVisible(DialogLastCreated(), false);
                autoD3F9E7EF_val = UserDataGetImageEdge("CalloutAttachment", lib281DEC45_gf_ZSS_CharacterCalloutData(lp_character), "Attachment", 1);
                if (autoD3F9E7EF_val == c_textTagEdgeLeft) {
                    DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_Callouts/UnitCalloutStoryFrameLeftTemplate");