22 #ifndef DIRECTOR_DEBUGER_DT_INTERNAL_H 23 #define DIRECTOR_DEBUGER_DT_INTERNAL_H 25 #define IMGUI_DEFINE_MATH_OPERATORS 27 #include "graphics/surface.h" 29 #include "backends/imgui/imgui.h" 30 #include "backends/imgui/imgui_fonts.h" 32 #include "director/debugger/imgui_memory_editor.h" 34 #include "director/types.h" 35 #include "director/lingo/lingo.h" 36 #include "director/lingo/lingodec/ast.h" 37 #include "director/lingo/lingodec/handler.h" 45 #define kMaxColumnsInTable 512 67 bool isMethod =
false;
68 bool isGenericEvent =
false;
78 return moviePath == c.moviePath && score == c.score &&
id == c.id && handlerId == c.handlerId;
86 bool controlPanel =
true;
87 bool callStack =
false;
89 bool channels =
false;
91 bool funcList =
false;
94 bool settings =
false;
97 bool watchedVars =
false;
103 bool _listView =
true;
104 int _thumbnailSize = 64;
106 int _typeFilter = 0x7FFF;
112 bool _showByteCode =
false;
113 bool _showScript =
false;
116 uint _lastLinePC = 0;
117 uint _callstackSize = 0;
118 bool _isScriptDirty =
false;
122 ImVec4 _bp_color_disabled =
ImVec4(0.9f, 0.08f, 0.0f, 0.0f);
123 ImVec4 _bp_color_enabled =
ImVec4(0.9f, 0.08f, 0.0f, 1.0f);
124 ImVec4 _bp_color_hover =
ImVec4(0.42f, 0.17f, 0.13f, 1.0f);
126 ImVec4 _current_statement =
ImColor(IM_COL32(0xFF, 0xFF, 0x00, 0xFF));
128 ImVec4 _call_color =
ImColor(IM_COL32(0xFF, 0xC5, 0x5C, 0xFF));
129 ImVec4 _builtin_color =
ImColor(IM_COL32(0x60, 0x7C, 0xFF, 0xFF));
130 ImVec4 _var_color =
ImColor(IM_COL32(0x4B, 0xCD, 0x5E, 0xFF));
131 ImVec4 _literal_color =
ImColor(IM_COL32(0xFF, 0x9F, 0xDA, 0x9E));
132 ImVec4 _comment_color =
ImColor(IM_COL32(0xFF, 0xA5, 0x9D, 0x95));
133 ImVec4 _type_color =
ImColor(IM_COL32(0x13, 0xC5, 0xF9, 0xFF));
134 ImVec4 _keyword_color =
ImColor(IM_COL32(0xC1, 0xC1, 0xC1, 0xFF));
135 ImVec4 _the_color =
ImColor(IM_COL32(0xFF, 0x49, 0xEF, 0xFF));
137 ImVec4 _script_ref =
ImColor(IM_COL32(0x7f, 0x7f, 0xff, 0xfff));
139 ImVec4 _var_ref_changed =
ImColor(IM_COL32(0xFF, 0x00, 0x00, 0xFF));
147 ImVec4 _logger_warning =
ImVec4(1.0f, 1.0f, 0.4f, 1.0f);
159 uint32 _lastTimeRefreshed = 0;
164 bool _wasHidden =
false;
172 } _selectedScoreCast;
175 int _scoreFrameOffset = 1;
177 ImFont *_tinyFont =
nullptr;
184 byte *data =
nullptr;
201 bool _scrollToBottom;
202 bool _showError =
true;
203 bool _showWarn =
true;
204 bool _showInfo =
true;
205 bool _showdebug =
true;
211 void addLog(
const char *fmt, ...) IM_FMTARGS(2);
212 void draw(
const char *title,
bool *p_open);
216 bool toggleButton(
const char *label,
bool *p_value,
bool inverse =
false);
218 void setScriptToDisplay(
const ImGuiScript &script);
223 void showImage(
const ImGuiImage &image,
const char *name,
float thumbnailSize);
224 ImVec4 convertColor(uint32 color);
228 void showControlPanel();
231 void showCallStack();
233 void showWatchedVars();
234 void showBreakpointList();
241 void renderOldScriptAST(
ImGuiScript &script,
bool showByteCode);
242 void renderScriptAST(
ImGuiScript &script,
bool showByteCode);
246 void showScriptCasts();
Definition: dt-internal.h:53
Definition: dt-internal.h:47
Definition: dt-internal.h:85
Definition: imgui_memory_editor.h:69
Definition: dt-internal.h:194
Definition: dt-internal.h:100
Definition: debugger.h:45
Definition: dt-internal.h:58
Definition: castmember.h:45