Просмотр исходного кода

Use `Vector2.Zero` instead of `new Vector2(0, 0)`

Dragon 4 лет назад
Родитель
Сommit
ee13aec871
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Interface.cs

+ 2 - 2
Interface.cs

@@ -156,7 +156,7 @@ namespace HuntBuddy
 
 
 			var fontGlobalScale = ImGui.GetIO().FontGlobalScale;
 			var fontGlobalScale = ImGui.GetIO().FontGlobalScale;
 
 
-			ImGui.SetNextWindowSize(new Vector2(0, 0), ImGuiCond.Always);
+			ImGui.SetNextWindowSize(Vector2.Zero, ImGuiCond.Always);
 
 
 			var windowFlags = ImGuiWindowFlags.NoNavInputs;
 			var windowFlags = ImGuiWindowFlags.NoNavInputs;
 
 
@@ -222,7 +222,7 @@ namespace HuntBuddy
 
 
 		private void DrawConfiguration()
 		private void DrawConfiguration()
 		{
 		{
-			ImGui.SetNextWindowSize(new Vector2(0, 0), ImGuiCond.Always);
+			ImGui.SetNextWindowSize(Vector2.Zero, ImGuiCond.Always);
 
 
 			if (!ImGui.Begin($"{_plugin.Name} settings"))
 			if (!ImGui.Begin($"{_plugin.Name} settings"))
 			{
 			{