|
11 | 11 |
|
12 | 12 | #include "App/Application.h"
|
13 | 13 | #include "Core/OS/Input.h"
|
14 |
| -#include "Core/OS/OS.h" |
15 | 14 | #include "Core/Profiler.h"
|
16 | 15 | #include "App/Engine.h"
|
17 | 16 | #include "App/Scene.h"
|
18 | 17 | #include "App/SceneManager.h"
|
19 | 18 | #include "Events/ApplicationEvent.h"
|
20 |
| -//#include "Utilities/CommonUtils.h" |
21 | 19 |
|
22 | 20 | #include "ECS/Component/Components.h"
|
23 | 21 | #include "Physics/LumosPhysicsEngine/LumosPhysicsEngine.h"
|
@@ -352,41 +350,6 @@ namespace Lumos
|
352 | 350 | if (selected)
|
353 | 351 | ImGui::PopStyleColor();
|
354 | 352 | }
|
355 |
| - |
356 |
| - ImGui::SameLine(ImGui::GetWindowContentRegionMax().x - 25.0f); |
357 |
| - |
358 |
| - { |
359 |
| - auto* os = OS::Instance(); |
360 |
| - auto powerState = os->GetPowerState(); |
361 |
| - |
362 |
| - switch(powerState) |
363 |
| - { |
364 |
| - case POWERSTATE_CHARGING : |
365 |
| - ImGui::Text(ICON_FA_BATTERY_FULL); |
366 |
| - break; |
367 |
| - case POWERSTATE_ON_BATTERY : |
368 |
| - ImGui::Text(ICON_FA_BATTERY_FULL); |
369 |
| - break; |
370 |
| - case POWERSTATE_NO_BATTERY : |
371 |
| - ImGui::Text(ICON_FA_BATTERY_EMPTY); |
372 |
| - ImGuiHelpers::Tooltip("Battery"); |
373 |
| - break; |
374 |
| - case POWERSTATE_CHARGED : |
375 |
| - ImGui::Text(ICON_FA_BATTERY_FULL); |
376 |
| - break; |
377 |
| - |
378 |
| - default : break; |
379 |
| - } |
380 |
| - |
381 |
| - int seconds = os->BatterySecondsLeft(); |
382 |
| - |
383 |
| - int minutes,hours; |
384 |
| - |
385 |
| - // CommonUtils::SecondsToHoursAndMinutes(seconds, hours, minutes, seconds); |
386 |
| - |
387 |
| - ImGuiHelpers::Tooltip("Battery"); |
388 |
| - } |
389 |
| - |
390 | 353 |
|
391 | 354 | ImGui::PopStyleColor();
|
392 | 355 | ImGui::EndMainMenuBar();
|
|
0 commit comments