# Create Dialog Item (Check Box)
Grammar — Create a check box for dialog dialog with the dimensions (width, height) anchored to anchor with an offset of (offsetX, offsetY) setting the tooltip to tooltip and default to checked
Flags —Action
Creates a check box dialog item, using parameters to set up the essential properties for the check box.
# Arguments
int
[ dialog ] — Dialogint
— Widthint
— Heightint
[ preset::Anchor ] — Anchorint
— Offset Xint
— Offset Ytext
— Tooltipbool
[ preset::CheckedOption ] — Checked
Returns — int
[ control ]
int libNtve_gf_CreateDialogItemCheckBox(
int lp_dialog,
int lp_width,
int lp_height,
int lp_anchor,
int lp_offsetX,
int lp_offsetY,
text lp_tooltip,
bool lp_checked,
);
# Related
Category: Dialog / Create Specific Dialog Item Actions
- [F] —
int
[ control ] — Create Dialog Item (Achievement) — ( libNtve_gf_CreateDialogItemAchievement ) - [F] —
int
[ control ] — Create Dialog Item (Button) — ( libNtve_gf_CreateDialogItemButton ) - [F] —
int
[ control ] — Create Dialog Item (Check Box) — ( libNtve_gf_CreateDialogItemCheckBox ) - [F] —
int
[ control ] — Create Dialog Item (Image) — ( libNtve_gf_CreateDialogItemImage ) - [F] —
int
[ control ] — Create Dialog Item (Label) — ( libNtve_gf_CreateDialogItemLabel )
# Examples
# campaigns/swarmstory.sc2campaign
// L9684
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 50, 50, libSwaC_gf_ZS_StoryArmyUpgradeResults(lv_indexUpgrade), false)
// L9704
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 50, 50, UserDataGetText("TechUnit", libSwaC_gf_ZS_TechUnitOfArmyUnit(lv_indexEvo), "AchiveArmyTooltip", 1), false)
// L15124
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 0, lv_y, StringToText(""), true)
// L15137
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 0, lv_y, StringToText(""), true)
// L15173
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 0, lv_y, StringToText(""), true)
// L15185
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 0, lv_y, StringToText(""), true)
// L15468
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 0, 0, StringToText(""), true)
# campaigns/voidstory.sc2campaign
// L171
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 0, lv_y, StringToText(""), true)
// L188
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 0, lv_y, StringToText(""), true)
// L287
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 0, lv_y, StringToText(""), false)
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L6133
libNtve_gf_CreateDialogItemCheckBox(libVCMI_gv_pM_GameCheat_Dialog, 25, 25, c_anchorTopLeft, 50, ((libVCMI_gv_pM_GameCheat_ArrayIndex * 50) + 50), StringExternal("Param/Value/lib_VCMI_2974025E"), false)
# mods/heroesdata.stormmod
// L901
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_99E675E7"), false)
// L908
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_E24E1AD2"), false)
// L915
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_BDF321A4"), false)
// L925
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_C9702EBD"), false)
// L932
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_CEDD647E"), false)
// L939
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_DFE5FD64"), false)
// L949
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_3620F2BF"), false)
// L956
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_BA98993A"), false)
// L963
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_B370BB3D"), false)
// L1057
libNtve_gf_CreateDialogItemCheckBox(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, 25, 25, c_anchorTopLeft, lv_checkboxX, lv_checkboxY, StringExternal("Param/Value/lib_Sprt_16505168"), false)
# mods/missionpacks/novacampaign.sc2mod
// L5073
libNtve_gf_CreateDialogItemCheckBox(libNCMI_gv_NM_GameCheat_Dialog, 25, 25, c_anchorTopLeft, 50, ((libNCMI_gv_NM_GameCheat_ArrayIndex * 50) + 50), StringExternal("Param/Value/lib_NCMI_2974025E"), false)
# mods/missionpacks/novacampaign.sc2mod
// L291
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, lv_x, lv_y, StringToText(""), false)
// L536
libNtve_gf_CreateDialogItemCheckBox(DialogLastCreated(), 50, 50, c_anchorTopLeft, 0, lv_y, StringToText(""), false)