# Set Dialog Item Boolean Value

Grammar — Set dialogItem property to value for players
FlagsNative | Action | Internal

# Arguments

  • int<control> — Dialog Item
  • int<preset::ControlProperty> — Property
  • playergroup — Players
  • bool — Value

Returns — void

native void DialogControlSetPropertyAsBool(
	int control,
	int property,
	playergroup players,
	bool value,
);

Category: Dialog / Dialog Item Values / Internal

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2692

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyUseAspectUncorrection, lp_players, lp_useAspectUncorrection);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2717

    // Implementation
    if ((lp_checked == true)) {
        DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, true);
    }
    else {

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2720

    }
    else {
        DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, false);
    }
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2775

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTextWriteout, lp_players, lp_writeout);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2835

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTiled, lp_players, lp_tiled);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2877

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyClickOnDown, lp_players, lp_clickOnDown);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2883

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyToggled, lp_players, lp_toggled);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2895

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyDesaturated, lp_players, lp_desaturated);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2937

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBorderVisible, lp_players, lp_visible);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2949

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBackgroundVisible, lp_players, lp_visible);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2145

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyUseAspectUncorrection, lp_players, lp_useAspectUncorrection);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2170

    // Implementation
    if ((lp_checked == true)) {
        DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, true);
    }
    else {

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2173

    }
    else {
        DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyChecked, lp_players, false);
    }
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2228

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTextWriteout, lp_players, lp_writeout);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2288

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyTiled, lp_players, lp_tiled);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2331

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyClickOnDown, lp_players, lp_clickOnDown);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2337

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyToggled, lp_players, lp_toggled);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2349

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyDesaturated, lp_players, lp_desaturated);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2391

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBorderVisible, lp_players, lp_visible);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2403

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsBool(lp_dialogItem, c_triggerControlPropertyBackgroundVisible, lp_players, lp_visible);
}