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 68 bool isMethod =
false;
69 bool isGenericEvent =
false;
79 return moviePath == c.moviePath && score == c.score &&
id == c.id && handlerId == c.handlerId;
87 bool controlPanel =
true;
89 bool channels =
false;
91 bool funcList =
false;
94 bool settings =
false;
97 bool watchedVars =
false;
98 bool executionContext =
false;
104 bool _showByteCode =
false;
105 bool _showScript =
false;
116 bool _listView =
true;
117 int _thumbnailSize = 64;
119 int _typeFilter = 0x7FFF;
123 bool _showScriptContexts =
true;
128 bool _isScriptDirty =
false;
129 bool _goToDefinition =
false;
130 uint _lastLinePC = 0;
131 uint _callstackSize = 0;
135 ImVec4 _bp_color_disabled =
ImVec4(0.9f, 0.08f, 0.0f, 0.0f);
136 ImVec4 _bp_color_enabled =
ImVec4(0.9f, 0.08f, 0.0f, 1.0f);
137 ImVec4 _bp_color_hover =
ImVec4(0.42f, 0.17f, 0.13f, 1.0f);
139 ImVec4 _current_statement =
ImColor(IM_COL32(0xFF, 0xFF, 0x00, 0xFF));
141 ImVec4 _call_color =
ImColor(IM_COL32(0xFF, 0xC5, 0x5C, 0xFF));
142 ImVec4 _builtin_color =
ImColor(IM_COL32(0x60, 0x7C, 0xFF, 0xFF));
143 ImVec4 _var_color =
ImColor(IM_COL32(0x4B, 0xCD, 0x5E, 0xFF));
144 ImVec4 _literal_color =
ImColor(IM_COL32(0xFF, 0x9F, 0xDA, 0x9E));
145 ImVec4 _comment_color =
ImColor(IM_COL32(0xFF, 0xA5, 0x9D, 0x95));
146 ImVec4 _type_color =
ImColor(IM_COL32(0x13, 0xC5, 0xF9, 0xFF));
147 ImVec4 _keyword_color =
ImColor(IM_COL32(0xC1, 0xC1, 0xC1, 0xFF));
148 ImVec4 _the_color =
ImColor(IM_COL32(0xFF, 0x49, 0xEF, 0xFF));
150 ImVec4 _script_ref =
ImColor(IM_COL32(0x7f, 0x7f, 0xff, 0xfff));
152 ImVec4 _var_ref_changed =
ImColor(IM_COL32(0xFF, 0x00, 0x00, 0xFF));
153 ImVec4 _var_ref_out_of_scope =
ImColor(IM_COL32(0xFF, 0x00, 0xFF, 0xFF));
163 uint32 _lastTimeRefreshed = 0;
168 bool _wasHidden =
false;
172 bool _showCompleteScript =
true;
179 } _selectedScoreCast;
182 int _scoreFrameOffset = 1;
184 int _selectedChannel = -1;
186 ImFont *_tinyFont =
nullptr;
193 byte *data =
nullptr;
206 void setScriptToDisplay(
const ImGuiScript &script);
213 void showImage(
const ImGuiImage &image,
const char *name,
float thumbnailSize);
214 ImVec4 convertColor(uint32 color);
215 void displayVariable(
const Common::String &name,
bool changed,
bool outOfScope =
false);
218 void showControlPanel();
222 void showWatchedVars();
223 void showBreakpointList();
230 void renderOldScriptAST(
ImGuiScript &script,
bool showByteCode,
bool scrollTo);
231 void renderScriptAST(
ImGuiScript &script,
bool showByteCode,
bool scrollTo);
235 void showScriptCasts();
236 void showExecutionContext();
240 void saveCurrentState();
241 void loadSavedState();
Definition: dt-internal.h:53
Definition: dt-internal.h:47
Definition: dt-internal.h:108
Definition: dt-internal.h:86
Definition: imgui_memory_editor.h:67
Definition: dt-internal.h:101
Definition: imgui_logger.h:33
Definition: dt-internal.h:113
Definition: debugger.h:45
Definition: dt-internal.h:58
Definition: castmember.h:48
Definition: lingo-object.h:213