Skip to content

Commit

Permalink
pulling in non-lua changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisFloofyKitsune committed Apr 5, 2024
1 parent 36733e1 commit fc1bb20
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions rts/Game/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ void CGame::LoadInterface()
GameSetupDrawer::Disable();
GameSetupDrawer::Enable();
}

RmlGui::Initialize(globalRendering->GetWindow(), globalRendering->GetContext(), globalRendering->winSizeX, globalRendering->winSizeY);
}

Expand Down
3 changes: 2 additions & 1 deletion rts/Game/UI/MouseHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ void CMouseHandler::MouseMove(int x, int y, int dx, int dy)
playerHandler.Player(gu->myPlayerNum)->currentStats.mousePixels += movedPixels;

/* Only want to give a mouse event to RmlUI if the mouse isn't currently performing a drag.
* Otherwise box selections get stuck when the mouse goes over an Rml element. */
* Otherwise box selections get stuck when the mouse goes over an Rml element.
* Flags that ButtonPressed() checks are not set when clicking on Rml element. */
if (!ButtonPressed() && RmlGui::ProcessMouseMove(x, lasty, dx, dy, activeButtonIdx)) {
return;
}
Expand Down
1 change: 0 additions & 1 deletion rts/builds/headless/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ list(APPEND engineHeadlessLibraries engineSim)
list(APPEND engineHeadlessLibraries pr-downloader)
list(APPEND engineHeadlessLibraries RmlCore)
list(APPEND engineHeadlessLibraries RmlDebugger)
list(APPEND engineHeadlessLibraries RmlSolLua)
list(APPEND engineHeadlessLibraries lunasvg)

include_directories(${ENGINE_SRC_ROOT_DIR}/lib/assimp/include)
Expand Down
1 change: 0 additions & 1 deletion rts/builds/legacy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ list(APPEND engineLibraries engineSim)
list(APPEND engineLibraries pr-downloader)
list(APPEND engineLibraries RmlCore)
list(APPEND engineLibraries RmlDebugger)
list(APPEND engineLibraries RmlSolLua)
list(APPEND engineLibraries lunasvg)

### Assemble external incude dirs
Expand Down
2 changes: 0 additions & 2 deletions rts/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,3 @@ set(CMAKE_CXX_FLAGS ${SAVED_CMAKE_FLAGS})

option(ENABLE_SVG_PLUGIN "RmlUi with SVG support" ON)
add_subdirectory(RmlUi)

add_subdirectory(RmlSolLua)

0 comments on commit fc1bb20

Please sign in to comment.