Skip to content

Commit

Permalink
Merge pull request #22016 from AaronVanGeffen/ui-string-ids
Browse files Browse the repository at this point in the history
Move UI exclusive string ids to UiStringIds.h
  • Loading branch information
AaronVanGeffen committed May 17, 2024
2 parents 340a683 + b3b62c8 commit 14828e4
Show file tree
Hide file tree
Showing 34 changed files with 2,337 additions and 2,218 deletions.
3 changes: 3 additions & 0 deletions src/openrct2-ui/TextComposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "TextComposition.h"

#include "UiContext.h"
#include "UiStringIds.h"
#include "interface/InGameConsole.h"

#include <SDL.h>
Expand All @@ -19,6 +20,8 @@
#include <openrct2/core/String.hpp>
#include <openrct2/interface/InteractiveConsole.h>
#include <openrct2/localisation/Language.h>

// TODO: only because of STR_NONE. We can do better.
#include <openrct2/localisation/StringIds.h>

#ifdef __MACOSX__
Expand Down
3 changes: 2 additions & 1 deletion src/openrct2-ui/UiContext.Linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

# include "UiContext.h"

# include "UiStringIds.h"

# include <SDL.h>
# include <algorithm>
# include <dlfcn.h>
Expand All @@ -19,7 +21,6 @@
# include <openrct2/core/String.hpp>
# include <openrct2/core/StringBuilder.h>
# include <openrct2/localisation/Language.h>
# include <openrct2/localisation/StringIds.h>
# include <openrct2/platform/Platform.h>
# include <openrct2/ui/UiContext.h>
# include <sstream>
Expand Down
5 changes: 4 additions & 1 deletion src/openrct2-ui/UiContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "CursorRepository.h"
#include "SDLException.h"
#include "TextComposition.h"
#include "UiStringIds.h"
#include "WindowManager.h"
#include "drawing/engines/DrawingEngineFactory.hpp"
#include "input/ShortcutManager.h"
Expand All @@ -38,7 +39,6 @@
#include <openrct2/drawing/IDrawingEngine.h>
#include <openrct2/interface/Chat.h>
#include <openrct2/interface/InteractiveConsole.h>
#include <openrct2/localisation/StringIds.h>
#include <openrct2/platform/Platform.h>
#include <openrct2/scenes/title/TitleSequencePlayer.h>
#include <openrct2/scripting/ScriptEngine.h>
Expand All @@ -47,6 +47,9 @@
#include <openrct2/world/Location.hpp>
#include <vector>

// TODO: only because of STR_NONE. We can do better.
#include <openrct2/localisation/StringIds.h>

using namespace OpenRCT2;
using namespace OpenRCT2::Drawing;
using namespace OpenRCT2::Scripting;
Expand Down

0 comments on commit 14828e4

Please sign in to comment.