feat: prettier settings, start using resources file

This commit is contained in:
Anna committed 2022-02-04 05:46:13 -05:00
1 parent 61243096ec
commit bf742cd5a4
11 files changed
+877 -45

No files matched your search

+19
View File
@@ -105,4 +105,23 @@ internal static class ImGuiUtil {
return ret;
}
internal static bool OptionCheckbox(ref bool value, string label, string? description = null) {
var ret = ImGui.Checkbox(label, ref value);
if (description != null) {
var colour = ImGui.GetStyle().Colors[(int) ImGuiCol.TextDisabled];
ImGui.PushStyleColor(ImGuiCol.Text, colour);
ImGui.PushTextWrapPos();
try {
ImGui.TextUnformatted(description);
} finally {
ImGui.PopTextWrapPos();
ImGui.PopStyleColor();
}
}
return ret;
}
}