3#include "../../UIElement.h"
5#pragma GCC diagnostic push
6#pragma GCC diagnostic ignored "-Wattributes"
18 char _pythonBuffer[1024] =
"";
19 char _updateBuffer[4096] =
"";
21 py::object _stdout_buffer;
23 std::string _outputText;
24 std::string _updateOutputText;
31 enum class ScriptType {
36 ScriptType currentScriptType = ScriptType::OneOff;
38 console_state state = console_state::Collapsed;
39 console_state last_state = console_state::Collapsed;
42 float default_pythonConsoleHeight = 400.0f;
46 float intervalSec = 1.0f;
47 double lastExecTime = 0.0;
48 bool useInterval =
false;
49 bool updatePaused =
true;
51 bool inputActive =
false;
53 bool firstLoop =
true;
55 bool readyToClear =
false;
56 bool readyToExecute =
false;
58 ImGuiChildFlags flags = ImGuiWindowFlags_NoSavedSettings;
61 void update(
float deltaTime)
override;
69 void OnImGuiRender()
override;
75 void runUpdateScript(
float deltaTime);
78#pragma GCC diagnostic pop
Definition PythonInterpreterPanel.h:15
PythonInterpreterPanel()
!!!!! Python to run needs to be on the context of scene, not render thread
Definition PythonInterpreterPanel.cpp:6
void update(float deltaTime) override
Definition PythonInterpreterPanel.cpp:10
void runScript()
Definition PythonInterpreterPanel.cpp:253
Definition UIElement.h:16
Definition PythonInterpreterPanel.h:8