mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-06 15:08:36 +01:00
feat(editor): icons over the 3d view: the tools of the field of work along its left edge (the edit modes of the surroundings, the track tools, the road tools with the lanes, the terrain tools with the orthophoto), the modes of the gizmo at its top, the axes of the world as the camera sees them in its top right corner, a click on one looking along it, with the top view under them; the icons drawn by editor/icons/editor_icons.py into a png which CMake writes out as an array built into the executable; the gizmo modes and the top view left out of the toolbar; Polish translation
This commit is contained in:
@@ -185,6 +185,7 @@ set(SOURCES
|
||||
"editor/editorTerrainStreamer.cpp"
|
||||
"editor/editorOrthophoto.cpp"
|
||||
"editor/editorPreviews.cpp"
|
||||
"editor/editorIcons.cpp"
|
||||
"application/editormode.cpp"
|
||||
"application/editormodetrack.cpp"
|
||||
"application/editormodetrackux.cpp"
|
||||
@@ -198,6 +199,7 @@ set(SOURCES
|
||||
"application/editormodelineside.cpp"
|
||||
"application/editormodevehicle.cpp"
|
||||
"application/editormodeselection.cpp"
|
||||
"application/editormodeviewport.cpp"
|
||||
"application/editormodesignal.cpp"
|
||||
"application/editormodesweep.cpp"
|
||||
"application/editormodeturntable.cpp"
|
||||
@@ -381,6 +383,14 @@ endif()
|
||||
|
||||
configure_file("${CMAKE_SOURCE_DIR}/version_info.h.in" "${CMAKE_BINARY_DIR}/geninc/version_info.h")
|
||||
|
||||
# the icons of the editor are built into the executable: the png is written out as the bytes of an array, see editor/editorIcons.cpp
|
||||
set(EDITOR_ICONS "${CMAKE_SOURCE_DIR}/editor/icons/editor_icons.png")
|
||||
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${EDITOR_ICONS}")
|
||||
file(READ "${EDITOR_ICONS}" EDITOR_ICONS_HEX HEX)
|
||||
string(REGEX REPLACE "(................................)" "\\1\n" EDITOR_ICONS_HEX "${EDITOR_ICONS_HEX}")
|
||||
string(REGEX REPLACE "([0-9a-f][0-9a-f])" "0x\\1," EDITOR_ICONS_HEX "${EDITOR_ICONS_HEX}")
|
||||
file(CONFIGURE OUTPUT "${CMAKE_BINARY_DIR}/geninc/editor_icons_png.inc" CONTENT "${EDITOR_ICONS_HEX}\n")
|
||||
|
||||
set (PREFIX "")
|
||||
set (SUFFIX "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user