# 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
- Dialog Item Text Value —
text— DialogControlGetPropertyAsText - Dialog Item String Value —
string— DialogControlGetPropertyAsString - Dialog Item Integer Value —
int— DialogControlGetPropertyAsInt - Dialog Item Real Value —
fixed— DialogControlGetPropertyAsFixed - Dialog Item Boolean Value —
bool— DialogControlGetPropertyAsBool - Dialog Item Color Value —
color— DialogControlGetPropertyAsColor - Dialog Item Control Value —
int<control> — DialogControlGetPropertyAsControl - Dialog Item Unit Value —
unit— DialogControlGetPropertyAsUnit - Dialog Item Unit Group Value —
unitgroup— DialogControlGetPropertyAsUnitGroup - Set Dialog Item Text Value —
void— DialogControlSetPropertyAsText - Set Dialog Item String Value —
void— DialogControlSetPropertyAsString - Set Dialog Item Integer Value —
void— DialogControlSetPropertyAsInt - Set Dialog Item Real Value —
void— DialogControlSetPropertyAsFixed - Set Dialog Item Boolean Value —
void— DialogControlSetPropertyAsBool - Set Dialog Item Color Value —
void— DialogControlSetPropertyAsColor - Set Dialog Item Control Value —
void— DialogControlSetPropertyAsControl - Set Dialog Item Unit Value —
void— DialogControlSetPropertyAsUnit - Set Dialog Item Unit Group Value —
void— DialogControlSetPropertyAsUnitGroup
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2692
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyUseAspectUncorrection, lp_players, lp_useAspectUncorrection);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2717
// Implementation
if ((lp_checked == true)) {
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, true);
}
else {
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2720
}
else {
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, false);
}
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2775
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTextWriteout, lp_players, lp_writeout);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2835
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTiled, lp_players, lp_tiled);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2877
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyClickOnDown, lp_players, lp_clickOnDown);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2883
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyToggled, lp_players, lp_toggled);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2895
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyDesaturated, lp_players, lp_desaturated);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2937
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBorderVisible, lp_players, lp_visible);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2949
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBackgroundVisible, lp_players, lp_visible);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2145
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyUseAspectUncorrection, lp_players, lp_useAspectUncorrection);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2170
// Implementation
if ((lp_checked == true)) {
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, true);
}
else {
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2173
}
else {
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, false);
}
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2228
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTextWriteout, lp_players, lp_writeout);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2288
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTiled, lp_players, lp_tiled);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2331
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyClickOnDown, lp_players, lp_clickOnDown);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2337
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyToggled, lp_players, lp_toggled);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2349
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyDesaturated, lp_players, lp_desaturated);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2391
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBorderVisible, lp_players, lp_visible);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2403
// Automatic Variable Declarations
// Implementation
DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBackgroundVisible, lp_players, lp_visible);
}