# _BB_PortraitWidth

FlagsFunction | Internal

# Arguments

  • int — BarID

Returns — int

int libNtve_gf__BB_PortraitWidth(int lp_barID);

Category: UI / Boss Bar / Internal

# Examples

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

    // Automatic Variable Declarations
    // Implementation
    return FixedToInt((IntToFixed(libNtve_gf__BB_PortraitWidth(lp_barID)) - 0.0));
}

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

    // Automatic Variable Declarations
    // Implementation
    return ((libNtve_gv__BB_BarWidth[lp_barID] - libNtve_gf__BB_PortraitWidth(lp_barID)) - 30);
}

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

    DialogControlSetPosition(libNtve_gv__BB_BGImgPortrait[lp_bossBarID], libNtve_gv__BB_Players[lp_bossBarID], c_anchorLeft, 18, 1);
    libNtve_gf_SetDialogItemImage(libNtve_gv__BB_PortraitImage[lp_bossBarID], libNtve_gv__BB_Portraits[lp_bossBarID], libNtve_gv__BB_Players[lp_bossBarID]);
    DialogControlSetSize(libNtve_gv__BB_PortraitImage[lp_bossBarID], libNtve_gv__BB_Players[lp_bossBarID], libNtve_gf__BB_PortraitWidth(lp_bossBarID), libNtve_gf__BB_PortraitHeight(lp_bossBarID));
    DialogControlSetPositionRelative(libNtve_gv__BB_PortraitImage[lp_bossBarID], PlayerGroupAll(), c_anchorCenter, libNtve_gv__BB_BGImgPortrait[lp_bossBarID], c_anchorCenter, 0, 0);
    libNtve_gf_SetDialogItemText(libNtve_gv__BB_TitleLabel[lp_bossBarID], libNtve_gv__BB_Title[lp_bossBarID], PlayerGroupAll());

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3866

    // Automatic Variable Declarations
    // Implementation
    return FixedToInt((IntToFixed(libNtve_gf__BB_PortraitWidth(lp_barID)) - 0.0));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3872

    // Automatic Variable Declarations
    // Implementation
    return ((libNtve_gv__BB_BarWidth[lp_barID] - libNtve_gf__BB_PortraitWidth(lp_barID)) - 30);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:4181

    DialogControlSetPosition(libNtve_gv__BB_BGImgPortrait[lp_bossBarID], libNtve_gv__BB_Players[lp_bossBarID], c_anchorLeft, 18, 1);
    libNtve_gf_SetDialogItemImage(libNtve_gv__BB_PortraitImage[lp_bossBarID], libNtve_gv__BB_Portraits[lp_bossBarID], libNtve_gv__BB_Players[lp_bossBarID]);
    DialogControlSetSize(libNtve_gv__BB_PortraitImage[lp_bossBarID], libNtve_gv__BB_Players[lp_bossBarID], libNtve_gf__BB_PortraitWidth(lp_bossBarID), libNtve_gf__BB_PortraitHeight(lp_bossBarID));
    DialogControlSetPositionRelative(libNtve_gv__BB_PortraitImage[lp_bossBarID], PlayerGroupAll(), c_anchorCenter, libNtve_gv__BB_BGImgPortrait[lp_bossBarID], c_anchorCenter, 0, 0);
    libNtve_gf_SetDialogItemText(libNtve_gv__BB_TitleLabel[lp_bossBarID], libNtve_gv__BB_Title[lp_bossBarID], PlayerGroupAll());