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" 34 #include "backends/imgui/components/imgui_memory_editor.h" 36 #include "director/types.h" 37 #include "director/window.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 castDetails =
false;
92 bool funcList =
false;
95 bool settings =
false;
98 bool watchedVars =
false;
99 bool executionContext =
false;
101 bool imageViewer =
false;
114 bool _showByteCode =
false;
115 bool _showScript =
false;
130 ImU32 tableLightColor;
131 ImU32 tableDarkColor;
133 ImU32 sidebarTextColor;
135 ImU32 playhead_color;
136 ImU32 current_statement_bg;
137 ImU32 channel_toggle;
138 ImU32 channel_hide_bg;
139 ImU32 channelSelectedCol;
140 ImU32 channelHoveredCol;
164 ImVec4 var_ref_out_of_scope;
194 float _sidebarWidth = 60.0f;
195 float _cellWidth = 14.0f;
196 float _cellHeight = 22.0f;
197 int _visibleFrames = 60;
198 int _visibleChannels = 20;
199 float _tableWidth = _cellWidth * _visibleFrames;
200 float _tableHeight = _cellHeight * _visibleChannels;
201 float _rulerHeight = 30.0f;
202 float _rulerWidth = _cellWidth * _visibleFrames;
203 float _sidebar1Height = _cellHeight * 6;
204 float _labelBarHeight = _cellHeight;
205 float _cellHeightExtended = 5 * _cellHeight;
209 int xSliderValue = 1;
210 int channelScrollOffset = 1;
215 bool _listView =
true;
216 int _thumbnailSize = 64;
218 int _typeFilter = 0x7FFF;
223 bool _showScriptContexts =
true;
232 bool _isScriptDirty =
false;
233 bool _goToDefinition =
false;
234 bool _scrollToPC =
false;
235 uint _lastLinePC = 0;
236 uint _callstackSize = 0;
238 bool _suppressHighlight =
false;
242 char input[256] = {};
244 int mode = kSearchAll;
255 uint32 _lastTimeRefreshed = 0;
268 char *buffer =
nullptr;
269 size_t bufferSize = 0;
275 bool _wasHidden =
false;
279 bool _showCompleteScript =
true;
286 bool isMainChannel =
false;
287 } _selectedScoreCast;
303 int _scoreFrameOffset = 1;
304 int _scorePageSlider = 0;
305 int _selectedChannel = -1;
306 bool _scrollToChannel =
false;
308 ImFont *_tinyFont =
nullptr;
310 int _activeThemeID = kThemeLight;
318 byte *data =
nullptr;
325 bool _ignoreMouse =
false;
326 bool _enableMultiViewport =
true;
328 Window *_windowToRedraw =
nullptr;
339 void setScriptToDisplay(
const ImGuiScript &script);
346 void showImage(
const ImGuiImage &image,
const char *name,
float thumbnailSize);
347 void showImageWrappedBorder(
const ImGuiImage &image,
const char *name,
float size);
348 ImVec4 convertColor(uint32 color);
349 void displayVariable(
const Common::String &name,
bool changed,
bool outOfScope =
false);
353 void setTheme(
int themeIndex);
358 dl->AddLine(
ImVec2(min.x, min.y),
ImVec2(max.x, min.y), col, thickness);
359 dl->AddLine(
ImVec2(max.x, min.y),
ImVec2(max.x, max.y), col, thickness);
360 dl->AddLine(
ImVec2(max.x, max.y),
ImVec2(min.x, max.y), col, thickness);
361 dl->AddLine(
ImVec2(min.x, max.y),
ImVec2(min.x, min.y), col, thickness);
365 void showImageViewer();
366 void showCastDetails();
367 void showControlPanel();
371 void showWatchedVars();
372 void showBreakpointList();
379 void renderOldScriptAST(
ImGuiScript &script,
bool showByteCode,
bool scrollTo);
380 void renderScriptAST(
ImGuiScript &script,
bool showByteCode,
bool scrollTo);
384 void showScriptCasts();
385 void showExecutionContext();
389 void saveCurrentState();
390 void loadSavedState();
394 void showSearchBar();
Definition: dt-internal.h:53
Definition: dt-internal.h:47
Definition: dt-internal.h:129
Definition: dt-internal.h:118
Definition: dt-internal.h:86
Definition: imgui_memory_editor.h:83
Definition: dt-internal.h:193
Definition: dt-internal.h:111
Definition: dt-internal.h:187
Definition: imgui_logger.h:33
Definition: dt-internal.h:208
Definition: dt-internal.h:185
Definition: debugger.h:45
Definition: dt-internal.h:58
Definition: castmember.h:48
Definition: lingo-object.h:213