Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit c1460d7

Browse files
author
Alexis Huvier
committed
feat(log): Update logs
1 parent e4cfcd5 commit c1460d7

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

SharpEngine/Utils/SEImGui.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public void Resize(int width, int height)
127127
{
128128
var io = ImGui.GetIO();
129129
io.DisplaySize = new Vector2(width, height) / _scaleFactor;
130-
Console.WriteLine($"Imgui displaysize: {io.DisplaySize}");
130+
DebugManager.Log(LogLevel.LogInfo, $"IMGUI: Display size {io.DisplaySize}");
131131
}
132132

133133
private void UpdateKeyboard()

SharpEngine/Window.cs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ public void Run()
232232

233233
#region Load
234234

235-
DebugManager.Log(LogLevel.LogInfo, "Loading Scenes...");
235+
DebugManager.Log(LogLevel.LogInfo, "SE: Loading Scenes...");
236236
foreach (var scene in _scenes)
237237
scene.Load();
238-
DebugManager.Log(LogLevel.LogInfo, "Scenes loaded !");
238+
DebugManager.Log(LogLevel.LogInfo, "SE: Scenes loaded !");
239239

240240
#endregion
241241

@@ -295,20 +295,19 @@ public void Run()
295295

296296
#region Unload
297297

298-
// UNLOAD
299-
DebugManager.Log(LogLevel.LogInfo, "Unloading Scenes...");
298+
DebugManager.Log(LogLevel.LogInfo, "SE: Unloading Scenes...");
300299
foreach (var scene in _scenes)
301300
scene.Unload();
302-
DebugManager.Log(LogLevel.LogInfo, "Scenes unloaded !");
301+
DebugManager.Log(LogLevel.LogInfo, "SE: Scenes unloaded !");
303302

304-
DebugManager.Log(LogLevel.LogInfo, "Unloading Textures...");
303+
DebugManager.Log(LogLevel.LogInfo, "SE: Unloading Textures...");
305304
TextureManager.Unload();
306-
DebugManager.Log(LogLevel.LogInfo, "Textures unloaded !");
307-
DebugManager.Log(LogLevel.LogInfo, "Unloading Fonts...");
305+
DebugManager.Log(LogLevel.LogInfo, "SE: Textures unloaded !");
306+
DebugManager.Log(LogLevel.LogInfo, "SE: Unloading Fonts...");
308307
FontManager.Unload();
309-
DebugManager.Log(LogLevel.LogInfo, "Fonts unloaded !");
308+
DebugManager.Log(LogLevel.LogInfo, "SE: Fonts unloaded !");
310309

311-
DebugManager.Log(LogLevel.LogInfo, "Closing Window.");
310+
DebugManager.Log(LogLevel.LogInfo, "SE: Closing Window.");
312311
Raylib.CloseAudioDevice();
313312
Raylib.CloseWindow();
314313

0 commit comments

Comments
 (0)