Fade when dimming the video stream, override session state when the stream GUI is interactable, move the lobby plots to the debug tab

This commit is contained in:
Guillaume Meunier
2025-07-26 11:29:06 +02:00
parent aa4f9ac265
commit adbbd71557
8 changed files with 395 additions and 328 deletions
+10 -1
View File
@@ -18,7 +18,6 @@
#pragma once
#include <array>
#include <cstdint>
#include <glm/glm.hpp>
#include <imgui.h>
@@ -105,6 +104,16 @@ constexpr int zindex_controllers = 1;
constexpr int zindex_recenter_tip = 2;
} // namespace constants::lobby
namespace constants::stream
{
constexpr float fade_delay = 3;
constexpr float fade_duration = 0.25;
// Dimming for the streamed video when the GUI is interactable
constexpr float dimming_scale = 0.7;
constexpr float dimming_bias = 0.15;
} // namespace constants::stream
namespace constants::style
{
constexpr ImVec2 window_padding = {20, 20};