# Set Dialog Item Paused

Grammar — Set dialogItem Paused flag to paused for players
FlagsAction

Set a Trigger Dialog Item as Paused or not. Currently supported by Portraits.

# Arguments

  • int<control> — Dialog Item
  • bool — Paused
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemPaused(
	int lp_dialogItem,
	bool lp_paused,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:971

            libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100.00, 0.00, 0.00), lv_playerAlly);
            libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], true, lv_playerSelf);
            libNtve_gf_SetDialogItemPaused(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], false, lv_playerSelf);
            DialogControlSetVisible(libCOUI_gv_cU_CommanderButtonSelectionBorder[lv_commIndex], libCOOC_gv_cC_HumanPlayerGroup, true);
            libNtve_gf_SetDialogItemColor(libCOUI_gv_cU_CommanderButtonSelectionBorder[lv_commIndex], libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lp_player, false)), libCOOC_gv_cC_HumanPlayerGroup);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:982

                libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), lv_playerAlly);
                libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100.00, 0.00, 0.00), lv_playerSelf);
                libNtve_gf_SetDialogItemPaused(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], false, libCOOC_gv_cC_HumanPlayerGroup);
                DialogControlSetVisible(libCOUI_gv_cU_CommanderButtonSelectionBorder[lv_commIndex], libCOOC_gv_cC_HumanPlayerGroup, true);
                libNtve_gf_SetDialogItemColor(libCOUI_gv_cU_CommanderButtonSelectionBorder[lv_commIndex], libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(libCOOC_gf_CC_PlayerAlly(lp_player), false)), libCOOC_gv_cC_HumanPlayerGroup);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:991

                libNtve_gf_SetDialogItemTintColor(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], Color(100,100,100), libCOOC_gv_cC_HumanPlayerGroup);
                libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], false, libCOOC_gv_cC_HumanPlayerGroup);
                libNtve_gf_SetDialogItemPaused(libCOUI_gv_cU_CommanderButtonPortrait[lv_commIndex], true, libCOOC_gv_cC_HumanPlayerGroup);
            }
        }