Remove ImGuiColorTextEdit integration and update includes for TextEditor

This commit is contained in:
scawful
2024-12-31 15:25:26 -05:00
parent 9215e4d614
commit 9745e7005c
6 changed files with 7 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
set(
YAZE_GUI_SRC
app/gui/modules/asset_browser.cc
app/gui/modules/text_editor.cc
app/gui/canvas.cc
app/gui/input.cc
app/gui/style.cc

View File

@@ -4,10 +4,10 @@
#include <string>
#include <vector>
#include "ImGuiColorTextEdit/TextEditor.h"
#include "absl/strings/string_view.h"
#include "app/gfx/bitmap.h"
#include "app/gui/color.h"
#include "app/gui/modules/text_editor.h"
#include "imgui/imgui.h"
namespace yaze {
@@ -96,7 +96,7 @@ struct MultiSelectWithClipper {
clipper.Begin(ITEMS_COUNT);
if (ms_io->RangeSrcItem != -1)
clipper.IncludeItemByIndex(
(int)ms_io->RangeSrcItem); // Ensure RangeSrc item is not clipped.
(int)ms_io->RangeSrcItem); // Ensure RangeSrc item is not clipped.
while (clipper.Step()) {
for (int n = clipper.DisplayStart; n < clipper.DisplayEnd; n++) {
char label[64];
@@ -116,7 +116,7 @@ struct MultiSelectWithClipper {
}
};
} // namespace gui
} // namespace yaze
} // namespace gui
} // namespace yaze
#endif