22 #ifndef DIRECTOR_DEBUGER_DT_INTERNAL_H 23 #define DIRECTOR_DEBUGER_DT_INTERNAL_H 25 #ifndef IMGUI_DEFINE_MATH_OPERATORS 26 #define IMGUI_DEFINE_MATH_OPERATORS 29 #include "graphics/surface.h" 31 #include "backends/imgui/imgui.h" 32 #include "backends/imgui/imgui_fonts.h" 33 #include "backends/imgui/components/imgui_logger.h" 35 #include "director/debugger/imgui_memory_editor.h" 37 #include "director/types.h" 38 #include "director/lingo/lingo.h" 39 #include "director/lingo/lingodec/ast.h" 40 #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));
149 uint32 _lastTimeRefreshed = 0;
154 bool _wasHidden =
false;
162 } _selectedScoreCast;
165 int _scoreFrameOffset = 1;
167 ImFont *_tinyFont =
nullptr;
174 byte *data =
nullptr;
185 void setScriptToDisplay(
const ImGuiScript &script);
190 void showImage(
const ImGuiImage &image,
const char *name,
float thumbnailSize);
191 ImVec4 convertColor(uint32 color);
195 void showControlPanel();
198 void showCallStack();
200 void showWatchedVars();
201 void showBreakpointList();
208 void renderOldScriptAST(
ImGuiScript &script,
bool showByteCode);
209 void renderScriptAST(
ImGuiScript &script,
bool showByteCode);
213 void showScriptCasts();
Definition: dt-internal.h:53
Definition: dt-internal.h:47
Definition: dt-internal.h:85
Definition: imgui_memory_editor.h:69
Definition: imgui_logger.h:33
Definition: dt-internal.h:100
Definition: debugger.h:45
Definition: dt-internal.h:58
Definition: castmember.h:45