Make virtual tracker xdevs toggleable
Co-authored-by: Guillaume Meunier <guillaume.meunier@centraliens.net>
This commit is contained in:
co-authored by
Guillaume Meunier
parent
727445520e
commit
1cc61fd07a
@@ -388,6 +388,7 @@ static void send_settings_changed_packet(xr::session & session, wivrn_session *
|
||||
.fps_divider = config.fps_divider,
|
||||
.bitrate_bps = config.bitrate_bps,
|
||||
.mirror_gamepad = config.forward_gamepad,
|
||||
.enabled_body_parts = config.body_part_mask,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -415,6 +416,12 @@ void scenes::stream::gui_settings(float predicted_display_period)
|
||||
imgui_ctx->tooltip(_("Click to adjust bitrate"));
|
||||
}
|
||||
|
||||
if (config.check_feature(feature::body_tracking))
|
||||
{
|
||||
if (gui::body_tracking_parts(system, *imgui_ctx, config))
|
||||
send_settings_changed_packet(session, network_session.get(), config);
|
||||
}
|
||||
|
||||
gui::post_processing(*imgui_ctx, config);
|
||||
|
||||
bool send_packet = false;
|
||||
@@ -761,6 +768,10 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
|
||||
imgui_ctx->layers()[0].position = world_gui_position;
|
||||
break;
|
||||
}
|
||||
|
||||
// Position popup layer
|
||||
imgui_ctx->layers()[1].orientation = imgui_ctx->layers()[0].orientation;
|
||||
imgui_ctx->layers()[1].position = imgui_ctx->layers()[0].position + imgui_ctx->layers()[0].orientation * constants::lobby::popup_position;
|
||||
}
|
||||
|
||||
const float tab_width = 300;
|
||||
|
||||
Reference in New Issue
Block a user