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 bool _scrollToPC =
false;
131 uint _lastLinePC = 0;
132 uint _callstackSize = 0;
136 ImVec4 _bp_color_disabled =
ImVec4(0.9f, 0.08f, 0.0f, 0.0f);
137 ImVec4 _bp_color_enabled =
ImVec4(0.9f, 0.08f, 0.0f, 1.0f);
138 ImVec4 _bp_color_hover =
ImVec4(0.42f, 0.17f, 0.13f, 1.0f);
140 ImVec4 _channel_toggle =
ImColor(IM_COL32(0x30, 0x30, 0xFF, 0xFF));
142 ImVec4 _current_statement =
ImColor(IM_COL32(0xFF, 0xFF, 0x00, 0xFF));
144 ImVec4 _call_color =
ImColor(IM_COL32(0xFF, 0xC5, 0x5C, 0xFF));
145 ImVec4 _builtin_color =
ImColor(IM_COL32(0x60, 0x7C, 0xFF, 0xFF));
146 ImVec4 _var_color =
ImColor(IM_COL32(0x4B, 0xCD, 0x5E, 0xFF));
147 ImVec4 _literal_color =
ImColor(IM_COL32(0xFF, 0x9F, 0xDA, 0x9E));
148 ImVec4 _comment_color =
ImColor(IM_COL32(0xFF, 0xA5, 0x9D, 0x95));
149 ImVec4 _type_color =
ImColor(IM_COL32(0x13, 0xC5, 0xF9, 0xFF));
150 ImVec4 _keyword_color =
ImColor(IM_COL32(0xC1, 0xC1, 0xC1, 0xFF));
151 ImVec4 _the_color =
ImColor(IM_COL32(0xFF, 0x49, 0xEF, 0xFF));
153 ImVec4 _script_ref =
ImColor(IM_COL32(0x7f, 0x7f, 0xff, 0xfff));
155 ImVec4 _var_ref_changed =
ImColor(IM_COL32(0xFF, 0x00, 0x00, 0xFF));
156 ImVec4 _var_ref_out_of_scope =
ImColor(IM_COL32(0xFF, 0x00, 0xFF, 0xFF));
161 ImColor(IM_COL32(0xce, 0xce, 0xff, 0x80)),
162 ImColor(IM_COL32(0xff, 0xff, 0xce, 0x80)),
163 ImColor(IM_COL32(0xce, 0xff, 0xce, 0x80)),
164 ImColor(IM_COL32(0xce, 0xff, 0xff, 0x80)),
165 ImColor(IM_COL32(0xff, 0xce, 0xff, 0x80)),
166 ImColor(IM_COL32(0xff, 0xce, 0x9c, 0x80)),
169 ImColor _channel_selected_col =
ImColor(IM_COL32(0x94, 0x00, 0xD3, 0xFF));
170 ImColor _channel_hovered_col =
ImColor(IM_COL32(0xFF, 0xFF, 0, 0x3C));
171 int _contColorIndex = 0;
182 uint32 _lastTimeRefreshed = 0;
187 bool _wasHidden =
false;
191 bool _showCompleteScript =
true;
198 } _selectedScoreCast;
212 int _scoreFrameOffset = 1;
213 int _scorePageSlider = 0;
215 int _selectedChannel = -1;
217 ImFont *_tinyFont =
nullptr;
224 byte *data =
nullptr;
237 void setScriptToDisplay(
const ImGuiScript &script);
244 void showImage(
const ImGuiImage &image,
const char *name,
float thumbnailSize);
245 ImVec4 convertColor(uint32 color);
246 void displayVariable(
const Common::String &name,
bool changed,
bool outOfScope =
false);
252 void showControlPanel();
256 void showWatchedVars();
257 void showBreakpointList();
264 void renderOldScriptAST(
ImGuiScript &script,
bool showByteCode,
bool scrollTo);
265 void renderScriptAST(
ImGuiScript &script,
bool showByteCode,
bool scrollTo);
269 void showScriptCasts();
270 void showExecutionContext();
274 void saveCurrentState();
275 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