# Set Dialog Item Boolean Value
Grammar — Set dialogItem property to value for players
Flags —Native
|Action
|Internal
# Arguments
int
[ control ] — Dialog Itemint
[ preset::ControlProperty ] — Propertyplayergroup
— Playersbool
— Value
Returns — void
native void DialogControlSetPropertyAsBool(
int control,
int property,
playergroup players,
bool value,
);
# Related
Category: Dialog / Dialog Item Values / Internal
- [F] —
text
— Dialog Item Text Value — ( DialogControlGetPropertyAsText ) - [F] —
string
— Dialog Item String Value — ( DialogControlGetPropertyAsString ) - [F] —
int
— Dialog Item Integer Value — ( DialogControlGetPropertyAsInt ) - [F] —
fixed
— Dialog Item Real Value — ( DialogControlGetPropertyAsFixed ) - [F] —
bool
— Dialog Item Boolean Value — ( DialogControlGetPropertyAsBool ) - [F] —
color
— Dialog Item Color Value — ( DialogControlGetPropertyAsColor ) - [F] —
int
[ control ] — Dialog Item Control Value — ( DialogControlGetPropertyAsControl ) - [F] —
unit
— Dialog Item Unit Value — ( DialogControlGetPropertyAsUnit ) - [F] —
unitgroup
— Dialog Item Unit Group Value — ( DialogControlGetPropertyAsUnitGroup ) - [F] —
void
— Set Dialog Item Text Value — ( DialogControlSetPropertyAsText ) - [F] —
void
— Set Dialog Item String Value — ( DialogControlSetPropertyAsString ) - [F] —
void
— Set Dialog Item Integer Value — ( DialogControlSetPropertyAsInt ) - [F] —
void
— Set Dialog Item Real Value — ( DialogControlSetPropertyAsFixed ) - [F] —
void
— Set Dialog Item Boolean Value — ( DialogControlSetPropertyAsBool ) - [F] —
void
— Set Dialog Item Color Value — ( DialogControlSetPropertyAsColor ) - [F] —
void
— Set Dialog Item Control Value — ( DialogControlSetPropertyAsControl ) - [F] —
void
— Set Dialog Item Unit Value — ( DialogControlSetPropertyAsUnit ) - [F] —
void
— Set Dialog Item Unit Group Value — ( DialogControlSetPropertyAsUnitGroup )
# Examples
# mods/core.sc2mod
// L2692
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyUseAspectUncorrection, lp_players, lp_useAspectUncorrection)
// L2717
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, true)
// L2720
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, false)
// L2775
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTextWriteout, lp_players, lp_writeout)
// L2835
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTiled, lp_players, lp_tiled)
// L2877
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyClickOnDown, lp_players, lp_clickOnDown)
// L2883
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyToggled, lp_players, lp_toggled)
// L2895
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyDesaturated, lp_players, lp_desaturated)
// L2937
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBorderVisible, lp_players, lp_visible)
// L2949
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBackgroundVisible, lp_players, lp_visible)
// L2145
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyUseAspectUncorrection, lp_players, lp_useAspectUncorrection)
// L2170
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, true)
// L2173
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, false)
// L2228
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTextWriteout, lp_players, lp_writeout)
// L2288
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTiled, lp_players, lp_tiled)
// L2331
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyClickOnDown, lp_players, lp_clickOnDown)
// L2337
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyToggled, lp_players, lp_toggled)
// L2349
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyDesaturated, lp_players, lp_desaturated)
// L2391
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBorderVisible, lp_players, lp_visible)
// L2403
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBackgroundVisible, lp_players, lp_visible)