Skip to content

Commit

Permalink
update imgui, home-made code viewer (not editor!)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony@rabine.fr authored and anthony@rabine.fr committed Dec 28, 2024
1 parent 6e3143c commit 6305b06
Show file tree
Hide file tree
Showing 93 changed files with 1,090 additions and 76,139 deletions.
29 changes: 22 additions & 7 deletions story-editor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ find_package(OpenGL REQUIRED)
# set(OPENSSL_ROOT_DIR /libs/openssl)
# find_package(OpenSSL REQUIRED)

set(IMGUI_VERSION 1.90)
set(IMGUI_VERSION 1.91.6)

include(FetchContent)

Expand Down Expand Up @@ -93,6 +93,20 @@ add_compile_definitions(CUSTOM_IMGUIFILEDIALOG_CONFIG="${CMAKE_SOURCE_DIR}/src/C
add_compile_definitions(IMGUI_INCLUDE="imgui.h")
add_subdirectory(libs/ImGuiFileDialog)

# =========================================================================================================================
# ImGui Text editor
# =========================================================================================================================
# FetchContent_Declare(
# te
# GIT_REPOSITORY https://github.com/ChemistAion/ImTextEdit
# GIT_TAG 81ec756b5627dd351fe0dac26a7403982349df68
# GIT_SHALLOW TRUE
# GIT_PROGRESS TRUE
# )

# FetchContent_MakeAvailable(te)


# =========================================================================================================================
# SDL2
# =========================================================================================================================
Expand All @@ -115,7 +129,7 @@ add_subdirectory(libs/ImGuiFileDialog)
FetchContent_Declare(
sdl3
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
GIT_TAG prerelease-3.1.0
GIT_TAG 78cc5c173404488d80751af226d1eaf67033bcc4 # === preview-3.1.6
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
Expand All @@ -132,7 +146,7 @@ include_directories(${sdl3_SOURCE_DIR}/include)
FetchContent_Declare(
sdl3_mixer
GIT_REPOSITORY https://github.com/libsdl-org/SDL_mixer.git
GIT_TAG cc78718f6e87354fee8ffe4dc516a20f608c2d65
GIT_TAG d4eba31e4ac23a81fffad02e91b17dcb2449a2cb
# GIT_SHALLOW TRUE
# GIT_PROGRESS TRUE
# GIT_SUBMODULES ""
Expand All @@ -151,7 +165,7 @@ include_directories(${sdl3_mixer_SOURCE_DIR}/include)
FetchContent_Declare(
sdl_image
GIT_REPOSITORY https://github.com/libsdl-org/SDL_image.git
GIT_TAG ff62eb68aebe9801f06695c86a67292c6f166b16
GIT_TAG bcc97c044266080256ef6ed0d690859677212b2b
GIT_PROGRESS TRUE
)

Expand Down Expand Up @@ -220,8 +234,7 @@ set(SRCS
src/importers/pack_archive.cpp
src/importers/ni_parser.c

libs/ImGuiColorTextEdit/TextEditor.cpp
libs/ImGuiColorTextEdit/TextEditor.h

libs/imgui-node-editor/imgui_node_editor.cpp
libs/imgui-node-editor/imgui_canvas.cpp
libs/imgui-node-editor/imgui_node_editor_api.cpp
Expand Down Expand Up @@ -288,7 +301,9 @@ endif()
target_include_directories(${STORY_EDITOR_PROJECT} PUBLIC
${imgui_SOURCE_DIR}
${sdl2_SOURCE_DIR}/include
libs/ImGuiColorTextEdit/

# ${te_SOURCE_DIR}

${imgui_SOURCE_DIR}/backends
libs/ImGuiFileDialog
libs/imgui-node-editor
Expand Down
1 change: 1 addition & 0 deletions story-editor/NodeEditor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"nodes":{"node:1":{"location":{"x":0,"y":0}},"node:11":{"location":{"x":0,"y":0}},"node:14":{"location":{"x":0,"y":0}},"node:21":{"location":{"x":326,"y":24}},"node:5":{"location":{"x":0,"y":0}},"node:8":{"location":{"x":0,"y":0}}},"selection":null,"view":{"scroll":{"x":30.620513916015625,"y":0},"visible_rect":{"max":{"x":501.620513916015625,"y":301},"min":{"x":30.620513916015625,"y":0}},"zoom":1}}
198 changes: 198 additions & 0 deletions story-editor/imgui.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
[Window][DockSpaceViewport_11111111]
Pos=60,26
Size=1220,694
Collapsed=0

[Window][Debug##Default]
Pos=260,575
Size=32,42
Collapsed=0

[Window][Library Manager]
Pos=466,26
Size=814,262
Collapsed=0
DockId=0x00000003,3

[Window][Console]
Pos=60,623
Size=1220,97
Collapsed=0
DockId=0x00000006,0

[Window][Emulator]
Pos=466,26
Size=814,262
Collapsed=0
DockId=0x00000003,2

[Window][Code editor]
Pos=466,290
Size=814,331
Collapsed=0
DockId=0x00000004,0

[Window][Resources]
Pos=466,26
Size=814,262
Collapsed=0
DockId=0x00000003,0

[Window][Properties]
Pos=466,26
Size=814,262
Collapsed=0
DockId=0x00000003,1

[Window][Node editor]
Pos=60,26
Size=404,595
Collapsed=0
DockId=0x00000002,0

[Window][QuitConfirm]
Pos=479,312
Size=321,96
Collapsed=0

[Window][ToolBar]
Pos=0,26
Size=60,694
Collapsed=0

[Window][ProjectPropertiesPopup]
Pos=381,236
Size=518,248
Collapsed=0

[Window][AboutPopup]
Pos=540,272
Size=408,249
Collapsed=0

[Window][Choose an output directory##ChooseOutputDirDialog]
Pos=307,121
Size=757,506
Collapsed=0

[Window][Import story##LoadBinarySoryDlgKey]
Pos=278,146
Size=838,498
Collapsed=0

[Window][Choose a binary story##LoadBinarySoryDlgKey]
Pos=82,80
Size=951,564
Collapsed=0

[Window][CPU]
Pos=466,26
Size=814,262
Collapsed=0
DockId=0x00000003,4

[Window][Choose File##ChooseFileDlgKey]
Pos=121,114
Size=1021,495
Collapsed=0

[Window][TOOLBAR]
Pos=73,64
Size=79,42
Collapsed=0

[Window][WindowOverViewport_11111111]
Pos=60,26
Size=1220,694
Collapsed=0

[Table][0x54B1A511,5]
RefScale=20
Column 0 Width=197 Sort=0v
Column 1 Width=72
Column 2 Width=104
Column 3 Width=54
Column 4 Width=75

[Table][0xF08E291D,3]
RefScale=20
Column 0 Width=267 Sort=0v
Column 1 Width=88
Column 2 Width=124

[Table][0x7DCCCE7C,4]
RefScale=20
Column 0 Sort=0v

[Table][0x93B9C489,4]
RefScale=20
Column 0 Sort=0v

[Table][0x93085AFC,4]
RefScale=20
Column 0 Sort=0v

[Table][0xB1418086,4]
RefScale=20
Column 0 Sort=0v

[Table][0x37890D83,4]
RefScale=20
Column 0 Sort=0v

[Table][0xA1962243,2]
RefScale=20
Column 0 Width=22 Sort=0v
Column 1 Width=98

[Table][0x266F6FA3,4]
RefScale=20
Column 0 Sort=0v

[Table][0x8DB57DAE,4]
RefScale=20
Column 0 Sort=0v

[Table][0x464EAF99,4]
RefScale=20
Column 0 Sort=0v

[Table][0xED94BD94,4]
RefScale=20
Column 0 Sort=0v

[Table][0x1CBE9632,4]
RefScale=20
Column 0 Width=51 Sort=0v
Column 1 Width=104
Column 2 Width=47
Column 3 Width=93

[Table][0x30BF8F98,3]
RefScale=20
Column 0 Width=267 Sort=0v
Column 1 Width=88
Column 2 Width=124

[Table][0x7728942D,5]
RefScale=20
Column 0 Width=313 Sort=0v
Column 1 Width=72
Column 2 Width=104
Column 3 Width=54
Column 4 Width=75

[Table][0x69D69F59,2]
RefScale=20
Column 0 Width=22 Sort=0v
Column 1 Width=96

[Docking][Data]
DockSpace ID=0x08BD597D Window=0x1BBC0F80 Pos=60,26 Size=1220,694 Split=Y
DockNode ID=0x00000005 Parent=0x08BD597D SizeRef=1220,595 Split=X
DockNode ID=0x00000002 Parent=0x00000005 SizeRef=574,694 CentralNode=1 Selected=0xBB79A587
DockNode ID=0x00000001 Parent=0x00000005 SizeRef=814,694 Split=Y Selected=0x63869CAF
DockNode ID=0x00000003 Parent=0x00000001 SizeRef=543,294 Selected=0x4B07C626
DockNode ID=0x00000004 Parent=0x00000001 SizeRef=543,372 Selected=0x7563A968
DockNode ID=0x00000006 Parent=0x08BD597D SizeRef=1220,97 Selected=0xEA83D666

36 changes: 0 additions & 36 deletions story-editor/libs/ImGuiColorTextEdit/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions story-editor/libs/ImGuiColorTextEdit/CONTRIBUTING

This file was deleted.

21 changes: 0 additions & 21 deletions story-editor/libs/ImGuiColorTextEdit/LICENSE

This file was deleted.

33 changes: 0 additions & 33 deletions story-editor/libs/ImGuiColorTextEdit/README.md

This file was deleted.

Loading

0 comments on commit 6305b06

Please sign in to comment.