mirror of
https://github.com/orange-cpp/omath.git
synced 2026-08-08 05:52:07 +00:00
improvement
This commit is contained in:
@@ -90,7 +90,6 @@ namespace imgui_desktop::gui
|
||||
if (m_canvas_glow.enabled)
|
||||
{
|
||||
ImGui::InputInt("Blur layers##canvas", &m_canvas_glow_layers);
|
||||
ImGui::Combo("Mode##canvas", &m_canvas_glow_mode, "Inside\0Outside\0Both\0");
|
||||
ImGui::InputFloat("Rounding##canvas", &m_canvas_glow_rounding);
|
||||
}
|
||||
}
|
||||
@@ -291,9 +290,8 @@ namespace imgui_desktop::gui
|
||||
omath::hud::EntityOverlay({m_entity_x, m_entity_top_y}, {m_entity_x, m_entity_bottom_y}, m_entity_aspect,
|
||||
std::make_shared<omath::hud::ImguiHudRenderer>())
|
||||
.contents(
|
||||
when(canvas_glow.has_value(),
|
||||
CanvasGlow{canvas_glow.value_or(Glow{m_canvas_glow.color}), m_canvas_glow_layers,
|
||||
static_cast<CanvasGlowMode>(m_canvas_glow_mode), m_canvas_glow_rounding}),
|
||||
when(canvas_glow.has_value(), CanvasGlow{canvas_glow.value_or(Glow{m_canvas_glow.color}),
|
||||
m_canvas_glow_layers, m_canvas_glow_rounding}),
|
||||
// ── Boxes ────────────────────────────────────────────────────
|
||||
when(m_show_box, Box{m_box_color, box_fill, m_box_outline, m_box_thickness, box_glow}),
|
||||
when(m_show_cornered_box,
|
||||
|
||||
@@ -78,7 +78,6 @@ namespace imgui_desktop::gui
|
||||
GlowSettings m_label_glow;
|
||||
GlowSettings m_canvas_glow{{1.f, 0.5f, 0.f, 0.8f}, 100.f};
|
||||
int m_canvas_glow_layers = 64;
|
||||
int m_canvas_glow_mode = 2;
|
||||
float m_canvas_glow_rounding = 40.f;
|
||||
|
||||
// Skeleton
|
||||
|
||||
Reference in New Issue
Block a user