scope imraii
This commit is contained in:
@@ -72,20 +72,24 @@ internal sealed class About : ISettingsTab {
|
|||||||
ImGui.Spacing();
|
ImGui.Spacing();
|
||||||
|
|
||||||
var height = ImGui.GetContentRegionAvail().Y - ImGui.CalcTextSize("A").Y - ImGui.GetStyle().ItemSpacing.Y * 2;
|
var height = ImGui.GetContentRegionAvail().Y - ImGui.CalcTextSize("A").Y - ImGui.GetStyle().ItemSpacing.Y * 2;
|
||||||
using var aboutChild = ImRaii.Child("about", new Vector2(-1, height));
|
using (var aboutChild = ImRaii.Child("about", new Vector2(-1, height)))
|
||||||
|
{
|
||||||
if (aboutChild)
|
if (aboutChild)
|
||||||
{
|
{
|
||||||
using var treeNode = ImRaii.TreeNode(Language.Options_About_Translators);
|
using var treeNode = ImRaii.TreeNode(Language.Options_About_Translators);
|
||||||
if (treeNode)
|
if (treeNode)
|
||||||
{
|
{
|
||||||
using var translatorChild = ImRaii.Child("translators");
|
using var translatorChild = ImRaii.Child("translators");
|
||||||
if (translatorChild) {
|
if (translatorChild)
|
||||||
foreach (var translator in _translators) {
|
{
|
||||||
|
foreach (var translator in _translators)
|
||||||
|
{
|
||||||
ImGui.TextUnformatted(translator);
|
ImGui.TextUnformatted(translator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.Spacing();
|
ImGui.Spacing();
|
||||||
ImGui.PopTextWrapPos();
|
ImGui.PopTextWrapPos();
|
||||||
|
|||||||
Reference in New Issue
Block a user