CheckBox
See the CheckBoxDemo.cs.
namespace Gridrand.RimGui.Manual
{
/// <summary>
/// Demonstrates the usage of checkboxes in the Gui.
/// </summary>
class CheckBoxDemo : ManualBase, IManual
{
bool isCheckedCheckBox1 = true;
bool isCheckedCheckBox2 = true;
public CheckBoxDemo(ManualBaseResource p) : base(p)
{
}
public void Draw()
{
// Draws the first checkbox and updates its state
isCheckedCheckBox1 = Gui.CheckBox(isCheckedCheckBox1);
// Draws the second checkbox and updates its state
Gui.CheckBox(ref isCheckedCheckBox2);
}
}
}