Removed no longer used depth param

This commit is contained in:
r00telement
2021-10-30 01:00:45 +01:00
parent e4b4d30ca4
commit d9ddf14d93

View File

@@ -49,8 +49,7 @@ namespace PlayerTags
DrawHeading(Strings.Loc_Static_Tags);
ImGui.TreePush();
int depth = 0;
Draw(m_PluginData.AllTags, ref depth);
Draw(m_PluginData.AllTags);
ImGui.PushStyleColor(ImGuiCol.Button, new Vector4(0.1f, 0.3f, 0.1f, 1));
@@ -81,7 +80,7 @@ namespace PlayerTags
}
}
public void Draw(Tag tag, ref int depth)
public void Draw(Tag tag)
{
ImGui.PushID(tag.GetHashCode().ToString());
@@ -267,10 +266,8 @@ namespace PlayerTags
foreach (var childTag in tag.Children.ToArray())
{
depth++;
Draw(childTag, ref depth);
Draw(childTag);
}
depth++;
ImGui.PopID();
}