# Attach Dialog To Unit
Grammar — Move dialog to (offsetX, offsetY) relative to attachment of unit
Flags —Native
|Action
Moves a dialog to the specified anchor, relative to the specified attachment point of the specified unit, with the specified offsets.
# Arguments
int
<dialog> — Dialogunit
— Unitstring
<preset::AttachPoints> — Attachmentint
— OffsetXint
— OffsetY
Returns — void
native void DialogSetPositionRelativeToUnit(
int dialog,
unit inUnit,
string inAttachment,
int offsetX,
int offsetY,
);
# Related
Category: Dialog / Dialog Size And Position
- Set Dialog Size —
void
— DialogSetSize - Move Dialog —
void
— DialogSetPosition - Attach Dialog To Dialog —
void
— DialogSetPositionRelative - Attach Dialog To Unit —
void
— DialogSetPositionRelativeToUnit - Anchor Dialog To Unit —
void
— DialogSetPositionRelativeToUnitWithAnchor - Set Dialog Fullscreen —
void
— DialogSetFullscreen - Dialog Width —
int
— DialogGetWidth - Dialog Height —
int
— DialogGetHeight - Dialog Offset X —
int
— DialogGetOffsetX - Dialog Offset Y —
int
— DialogGetOffsetY - Dialog Anchor —
int
<preset::Anchor> — DialogGetAnchor - Dialog Relative Anchor —
int
<preset::Anchor> — DialogGetRelativeAnchor - Relative Dialog —
int
<dialog> — DialogGetRelativeDialog - Dialog Is Fullscreen —
bool
— DialogIsFullscreen
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:2349
lv_warpAwayBar = DialogLastCreated();
DialogSetImageVisible(DialogLastCreated(), false);
DialogSetPositionRelativeToUnit(DialogLastCreated(), EventUnitTargetUnit(), "Ref_Center", -100, -30);
DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_GameUnitFrame/SmallProgressUnitFrameTemplate");
lv_warpAwayPanel = DialogControlLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:2364
DataTableSetDialog(true, ("Shuttle_" + IntToString(UnitGetTag(EventUnitTargetUnit()))), lv_warpAwayBar);
while ((UnitIsAlive(EventUnitTargetUnit()) == true)) {
DialogSetPositionRelativeToUnit(lv_warpAwayBar, EventUnitTargetUnit(), "Ref_Center", -100, -90);
lv_distancetoTarget = (DistanceBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(EventUnitTargetUnit())) - 1.0);
if ((UnitGetPropertyFixed(EventUnitTargetUnit(), c_unitPropMovementSpeed, c_unitPropCurrent) > 0.0) && (lv_distancetoTarget >= 0.0)) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2map — MapScript.galaxy:2349
lv_warpAwayBar = DialogLastCreated();
DialogSetImageVisible(DialogLastCreated(), false);
DialogSetPositionRelativeToUnit(DialogLastCreated(), EventUnitTargetUnit(), "Ref_Center", -100, -30);
DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_GameUnitFrame/SmallProgressUnitFrameTemplate");
lv_warpAwayPanel = DialogControlLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2map — MapScript.galaxy:2364
DataTableSetDialog(true, ("Shuttle_" + IntToString(UnitGetTag(EventUnitTargetUnit()))), lv_warpAwayBar);
while ((UnitIsAlive(EventUnitTargetUnit()) == true)) {
DialogSetPositionRelativeToUnit(lv_warpAwayBar, EventUnitTargetUnit(), "Ref_Center", -100, -90);
lv_distancetoTarget = (DistanceBetweenPoints(UnitGetPosition(EventUnit()), UnitGetPosition(EventUnitTargetUnit())) - 1.0);
if ((UnitGetPropertyFixed(EventUnitTargetUnit(), c_unitPropMovementSpeed, c_unitPropCurrent) > 0.0) && (lv_distancetoTarget >= 0.0)) {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8426
DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_Callouts/UnitCalloutArmyFrameLeftTemplate");
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, 0, 0);
DialogSetPositionRelativeToUnit(DialogLastCreated(), lp_attachUnit, UserDataGetImageAttachPoint("CalloutAttachment", lp_attachment, "Attachment", 1), 0, (0 - (DialogGetHeight(DialogLastCreated()) / 2)));
}
else {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8431
DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_Callouts/UnitCalloutArmyFrameRightTemplate");
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorRight, 0, 0);
DialogSetPositionRelativeToUnit(DialogLastCreated(), lp_attachUnit, UserDataGetImageAttachPoint("CalloutAttachment", lp_attachment, "Attachment", 1), (0 - DialogGetWidth(DialogLastCreated())), (0 - (DialogGetHeight(DialogLastCreated()) / 2)));
}
DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:5037
DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_Callouts/UnitCalloutStoryFrameLeftTemplate");
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, 0, 0);
DialogSetPositionRelativeToUnit(DialogLastCreated(), lv_indexUnit, UserDataGetImageAttachPoint("CalloutAttachment", lib281DEC45_gf_ZSS_CharacterCalloutData(lp_character), "Attachment", 1), 0, (0 - (DialogGetHeight(DialogLastCreated()) / 2)));
}
else if (autoD3F9E7EF_val == c_textTagEdgeRight) {
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:5042
DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_Callouts/UnitCalloutStoryFrameRightTemplate");
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorRight, 0, 0);
DialogSetPositionRelativeToUnit(DialogLastCreated(), lv_indexUnit, UserDataGetImageAttachPoint("CalloutAttachment", lib281DEC45_gf_ZSS_CharacterCalloutData(lp_character), "Attachment", 1), (0 - DialogGetWidth(DialogLastCreated())), (0 - (DialogGetHeight(DialogLastCreated()) / 2)));
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4380
if ((libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lp_clickableInstance)].lv_callout != c_invalidDialogControlId)) {
if ((libVCST_gf_PS_ClickableCalloutAnchorToRight(lp_clickableInstance) == true)) {
DialogSetPositionRelativeToUnit(libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog, libVCST_gf_ClickableUnit(lp_clickableInstance), lv_attachmentPoint, (0 - DialogGetWidth(libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog)), (0 - (DialogGetHeight(libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog) / 2)));
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4383
}
else {
DialogSetPositionRelativeToUnit(libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog, libVCST_gf_ClickableUnit(lp_clickableInstance), lv_attachmentPoint, 0, (0 - (DialogGetHeight(libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog) / 2)));
}
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:2505
libNtve_gf_SendActorMessageToUnit(libVCUI_gv_pU_SoAAttachUnits[lv_groupIndex], "RefClear ::Host");
ActorSend(libNtve_gf_MainActorofUnit(libVCUI_gv_pU_SoAAttachUnits[lv_groupIndex]), (("RefSet ::Host ::external.UIAttachT" + IntToString(lv_groupIndex))));
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_SoAAttachDialogs[lv_groupIndex], libVCUI_gv_pU_SoAAttachUnits[lv_groupIndex], "Ref_Origin", 0, 0);
libNtve_gf_SetDialogItemText(libVCUI_gv_pU_SoACalloutTitleLabel[lv_groupIndex], libVoiC_gf_PC_PerkGroupName(libVoiC_gf_PC_PerkGroupOfPerk(libVCUI_gv_pU_SoAInventoryItems[lv_groupIndex][1])), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libVCUI_gv_pU_SoACalloutSubtitleLabel[lv_groupIndex], libVoiC_gf_PC_PerkName(libVCUI_gv_pU_SoAActivePerks[lv_groupIndex]), PlayerGroupAll());
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:2992
libNtve_gf_SetDialogItemText(libVCUI_gv_pU_StarmapPlanetTitleName[1], libVoiC_gf_StoryUIPlanetName(libVCUI_gv_pU_StarmapLocations[1]), PlayerGroupAll());
if ((libVCUI_gv_pU_StarmapSelection == 2)) {
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_StarmapPlanetAttachDialog[1], libVCUI_gv_pU_StarmapPlanetAttachUnit[2], "Ref_Center", 0, 0);
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_StarmapPlanetAttachDialog[2], libVCUI_gv_pU_StarmapPlanetAttachUnit[1], "Ref_Center", 0, 0);
DialogControlSetVisible(libVCUI_gv_pU_StarmapPlanetButton[2], PlayerGroupAll(), false);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:2993
if ((libVCUI_gv_pU_StarmapSelection == 2)) {
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_StarmapPlanetAttachDialog[1], libVCUI_gv_pU_StarmapPlanetAttachUnit[2], "Ref_Center", 0, 0);
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_StarmapPlanetAttachDialog[2], libVCUI_gv_pU_StarmapPlanetAttachUnit[1], "Ref_Center", 0, 0);
DialogControlSetVisible(libVCUI_gv_pU_StarmapPlanetButton[2], PlayerGroupAll(), false);
DialogControlSetVisible(libVCUI_gv_pU_StarmapPlanetButton[1], PlayerGroupAll(), true);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:2998
}
else {
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_StarmapPlanetAttachDialog[1], libVCUI_gv_pU_StarmapPlanetAttachUnit[1], "Ref_Center", 0, 0);
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_StarmapPlanetAttachDialog[2], libVCUI_gv_pU_StarmapPlanetAttachUnit[2], "Ref_Center", 0, 0);
DialogControlSetVisible(libVCUI_gv_pU_StarmapPlanetButton[2], PlayerGroupAll(), true);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:2999
else {
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_StarmapPlanetAttachDialog[1], libVCUI_gv_pU_StarmapPlanetAttachUnit[1], "Ref_Center", 0, 0);
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_StarmapPlanetAttachDialog[2], libVCUI_gv_pU_StarmapPlanetAttachUnit[2], "Ref_Center", 0, 0);
DialogControlSetVisible(libVCUI_gv_pU_StarmapPlanetButton[2], PlayerGroupAll(), true);
if ((libVCUI_gv_pU_StarmapSelection != 0)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:3012
DialogSetPositionRelative(libVCUI_gv_pU_StarmapPlanetButtonDialog[1], c_anchorCenter, libVCUI_gv_pU_StarmapPlanetAttachDialog[1], c_anchorBottom, 0, 0);
DialogSetPositionRelative(libVCUI_gv_pU_StarmapPlanetButtonDialog[2], c_anchorCenter, libVCUI_gv_pU_StarmapPlanetAttachDialog[2], c_anchorBottom, 0, 0);
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_StarmapPlanetAttachDialog[3], libVCUI_gv_pU_StarmapPlanetAttachUnit[3], "Ref_Center", 0, 0);
DialogControlSetPositionRelative(libVCUI_gv_pU_StarmapSelectedPlanetNameLabelCallout, PlayerGroupAll(), c_anchorBottomRight, libVCUI_gv_pU_StarmapPlanetAttachPanel[3], c_anchorBottom, 0, 0);
if ((libVCUI_gv_pU_StarmapLocations[2] != null)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4348
lv_progressBarDialog = DialogLastCreated();
DialogSetImageVisible(DialogLastCreated(), false);
DialogSetPositionRelativeToUnit(DialogLastCreated(), lp_unit, lp_attachment, lp_offsetX, lp_offsetY);
DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_GameUnitFrame/SmallProgressUnitFrameTemplate");
lv_progressBarPanel = DialogControlLastCreated();
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4516
lv_progressBarProgressBar = libNtve_gf_ValueFromDataTableDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar));
lv_progressBarValue = libNtve_gf_ValueFromDataTableDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value));
DialogSetPositionRelativeToUnit(lv_progressBarDialog, lp_unit, lv_attachmentPreset, DataTableGetInt(true, libVCUI_gf_PU_ProgressBarUnit_DataNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnitStoredValuesOld_OffsetX)), DataTableGetInt(true, libVCUI_gf_PU_ProgressBarUnit_DataNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnitStoredValuesOld_OffsetY)));
libNtve_gf_SetDialogItemText(lv_progressBarValue, TextTimeFormat(StringToText("<sectotal/>"), DataTableGetInt(true, libVCUI_gf_PU_ProgressBarUnit_DataNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnitStoredValuesOld_CurValue))), PlayerGroupAll());
DialogControlSetSize(lv_progressBarProgressBar, PlayerGroupAll(), FixedToInt((lv_c_Width * ( (IntToFixed(DataTableGetInt(true, libVCUI_gf_PU_ProgressBarUnit_DataNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnitStoredValuesOld_CurValue))) - IntToFixed(DataTableGetInt(true, libVCUI_gf_PU_ProgressBarUnit_DataNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnitStoredValuesOld_MinValue)))) / (IntToFixed(DataTableGetInt(true, libVCUI_gf_PU_ProgressBarUnit_DataNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnitStoredValuesOld_MaxValue))) - IntToFixed(DataTableGetInt(true, libVCUI_gf_PU_ProgressBarUnit_DataNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnitStoredValuesOld_MinValue)))) ))), lv_c_Height);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:7437
libNtve_gf_SendActorMessageToUnit(libVCUI_gv_pU_MissionAttachUnits[lv_attachIndex], "RefClear ::Host");
ActorSend(libNtve_gf_MainActorofUnit(libVCUI_gv_pU_MissionAttachUnits[lv_attachIndex]), (("RefSet ::Host ::external.StarmapAttach" + IntToString(lv_attachIndex))));
DialogSetPositionRelativeToUnit(libVCUI_gv_pU_MissionAttachDialog[lv_attachIndex], libVCUI_gv_pU_MissionAttachUnits[lv_attachIndex], "Ref_Origin", 0, 0);
}
DialogControlSetPositionRelative(lv_aspectRatioAttachment[1], PlayerGroupAll(), c_anchorTopRight, libVCUI_gv_pU_MissionAttachPanel[1], c_anchorBottomLeft, 0, 0);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:8685
lv_label = DialogControlLastCreated();
libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/757C3B9F"), PlayerGroupAll());
DialogSetPositionRelativeToUnit(DialogLastCreated(), gv__1E_CineLevelUpUnit, "Ref_Origin", -70, -380);
DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
Wait(1.5, c_timeGame);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:9489
lv_label = DialogControlLastCreated();
libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/49ACA3E7"), PlayerGroupAll());
DialogSetPositionRelativeToUnit(DialogLastCreated(), gv__2B_CineXPUnit2, "Ref_Origin", -90, -450);
DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
auto1D5E6612_n = FixedToInt((3.0 / 0.0625));
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:8685
lv_label = DialogControlLastCreated();
libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/757C3B9F"), PlayerGroupAll());
DialogSetPositionRelativeToUnit(DialogLastCreated(), gv__1E_CineLevelUpUnit, "Ref_Origin", -70, -380);
DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
Wait(1.5, c_timeGame);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:9489
lv_label = DialogControlLastCreated();
libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/49ACA3E7"), PlayerGroupAll());
DialogSetPositionRelativeToUnit(DialogLastCreated(), gv__2B_CineXPUnit2, "Ref_Origin", -90, -450);
DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
auto1D5E6612_n = FixedToInt((3.0 / 0.0625));
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3724
if ((libNCST_gv_nS_Clickable[libNCST_gf_NS_ClickableIndex(lp_clickableInstance)].lv_callout != c_invalidDialogControlId)) {
if ((libNCST_gf_NS_ClickableCalloutAnchorToRight(lp_clickableInstance) == true)) {
DialogSetPositionRelativeToUnit(libNCST_gv_nS_Clickable[libNCST_gf_NS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog, libNCST_gf_ClickableUnit(lp_clickableInstance), lv_attachmentPoint, (0 - DialogGetWidth(libNCST_gv_nS_Clickable[libNCST_gf_NS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog)), (0 - (DialogGetHeight(libNCST_gv_nS_Clickable[libNCST_gf_NS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog) / 2)));
}
else {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3727
}
else {
DialogSetPositionRelativeToUnit(libNCST_gv_nS_Clickable[libNCST_gf_NS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog, libNCST_gf_ClickableUnit(lp_clickableInstance), lv_attachmentPoint, 0, (0 - (DialogGetHeight(libNCST_gv_nS_Clickable[libNCST_gf_NS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog) / 2)));
}
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3429
lv_progressBarDialog = DialogLastCreated();
DialogSetImageVisible(DialogLastCreated(), false);
DialogSetPositionRelativeToUnit(DialogLastCreated(), lp_unit, lp_attachment, lp_offsetX, lp_offsetY);
DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "HotS_GameUnitFrame/SmallProgressUnitFrameTemplate");
lv_progressBarPanel = DialogControlLastCreated();
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3597
lv_progressBarProgressBar = libNtve_gf_ValueFromDataTableDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar));
lv_progressBarValue = libNtve_gf_ValueFromDataTableDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value));
DialogSetPositionRelativeToUnit(lv_progressBarDialog, lp_unit, lv_attachmentPreset, DataTableGetInt(true, libCOUI_gf_CU_ProgressBarUnit_DataNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnitStoredValuesOld_OffsetX)), DataTableGetInt(true, libCOUI_gf_CU_ProgressBarUnit_DataNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnitStoredValuesOld_OffsetY)));
libNtve_gf_SetDialogItemText(lv_progressBarValue, TextTimeFormat(StringToText("<sectotal/>"), DataTableGetInt(true, libCOUI_gf_CU_ProgressBarUnit_DataNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnitStoredValuesOld_CurValue))), PlayerGroupAll());
DialogControlSetSize(lv_progressBarProgressBar, PlayerGroupAll(), FixedToInt((lv_c_Width * ( (IntToFixed(DataTableGetInt(true, libCOUI_gf_CU_ProgressBarUnit_DataNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnitStoredValuesOld_CurValue))) - IntToFixed(DataTableGetInt(true, libCOUI_gf_CU_ProgressBarUnit_DataNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnitStoredValuesOld_MinValue)))) / (IntToFixed(DataTableGetInt(true, libCOUI_gf_CU_ProgressBarUnit_DataNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnitStoredValuesOld_MaxValue))) - IntToFixed(DataTableGetInt(true, libCOUI_gf_CU_ProgressBarUnit_DataNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnitStoredValuesOld_MinValue)))) ))), lv_c_Height);