debug
This commit is contained in:
parent
49ded51026
commit
a8629e9e4b
@ -63,7 +63,7 @@ struct VoiceData {
|
||||
ImGui::ColorEdit4( "Text Color", &_color_sel[0]);
|
||||
ImGui::SliderInt("Text Size", &_font_size_drag, 10, 200 );
|
||||
ImGui::Combo("Font", &_font_name_sel_index, _fonts_char->data(), _fonts_char->size());
|
||||
ImGui::SliderFloat("Temperature", &_temp_sel, TEMP_MIN, TEMP_MAX );
|
||||
ImGui::SliderFloat("Temperature", &_temp_sel, TEMP_MIN, TEMP_MAX, "%0.2f");
|
||||
|
||||
if (ImGui::Button("Save")){
|
||||
osc::Message m("/command");
|
||||
@ -174,6 +174,8 @@ class VoiceMachineClientApp : public App {
|
||||
std::shared_ptr<Sender> _sender_machinespeak;
|
||||
std::atomic_bool _connected;
|
||||
|
||||
bool _DEBUG;
|
||||
|
||||
std::map<std::string, VoiceData*> _map_voices;
|
||||
};
|
||||
|
||||
@ -249,8 +251,6 @@ void VoiceMachineClientApp::setup()
|
||||
{
|
||||
std::cout << ">" << f << "<" << std::endl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
for(const auto& [n, v]: _map_voices)
|
||||
v->setup(_sender_voicemachine,_sender_machinespeak, std::bind(&VoiceMachineClientApp::onSendError, this, std::placeholders::_1), &_connected, &_fonts_char);
|
||||
@ -262,6 +262,20 @@ void VoiceMachineClientApp::update()
|
||||
{
|
||||
for(const auto& [n, v]: _map_voices)
|
||||
v->update();
|
||||
|
||||
static bool debug = false;
|
||||
|
||||
ImGui::ScopedWindow window("DEBUG");
|
||||
ImGui::Checkbox("DEBUG?", &debug);
|
||||
if(debug != _DEBUG){
|
||||
_DEBUG = debug;
|
||||
osc::Message m("/command");
|
||||
m.append("DEBUG");
|
||||
m.append(_DEBUG);
|
||||
_sender_voicemachine->send(m, std::bind(&VoiceMachineClientApp::onSendError, this, std::placeholders::_1));
|
||||
_sender_machinespeak->send(m, std::bind(&VoiceMachineClientApp::onSendError, this, std::placeholders::_1));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void VoiceMachineClientApp::draw()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user