Commit Graph

26 Commits

Author SHA1 Message Date
Peter Gaal 90075022b1
Titlecasev files openloco (#604)
* renamed Company.h and Company.cpp

* renamed CompanyManager.h and CompanyManager.cpp

* renamed Config.h and Config.cpp

* renamed Console.h and Console.cpp

* renamed ConfigConvert.hpp

* renamed Date.h and Date.cpp

* renamed Environment.h and Environment.cpp

* renamed GameCommands.h

* renamed Gui.h and Gui.cpp

* renamed Industry.h and Industry.cpp

* renamed IndustryManager.h and IndustryManager.cpp

* renamed Input.h and Input.cpp

* renamed Intro.h and Intro.cpp

* renamed Message.h

* renamed MessageManager.h and MessageManager.cpp

* renamed MultiPlayer.h and MultiPlayer.cpp

* renamed OpenLoco.h and OpenLoco.cpp

* renamed ProgressBar.h and ProgressBar.cpp

* renamed Resource.h

* renamed Scenario.h and Scenario.cpp

* renamed ScenarioManager.h and ScenarioManager.cpp

* renamed Station.h and Station.cpp

* renamed StationManager.h and StationManager.cpp

* renamed Town.h and Town.cpp

* renamed TownManager.h and TownManager.cpp

* renamed Tutorial.h and Tutorial.cpp

* renamed Types.hpp

* Removed Types.hpp from headers

Removed Types.hpp from include section in CompanyManager.cpp which is already included in CompanyManager.h

* renamed Ui.h and Ui.cpp

* renamed Version.cpp

* renamed Viewport.hpp and Viewport.cpp

* renamed ViewportManager.h and ViewportManager.cpp

* renamed Widget.h and Widget.cpp

* renamed Win32.h

* renamed Window.h and Window.cpp

* Fix formatting

* Fix formatting 2

* Fix formatting 3

* rename types.hpp to Types.hpp in TrackData.h
2020-09-07 06:42:02 +01:00
Peter Gaal 2f4e0141d8
Rename openloco (#603)
* rename in company.h

* rename in companymgr.h and companymgr.cpp

* rename in config.convert.hpp

* rename in config.h

* rename in console.h

* rename in date.h and date.cpp

* rename in environment.h and environment.cpp

* rename in game_commands.h

* rename in industry.cpp

* rename in industrymgr.h

* rename in input.h

* rename in intro.h

* rename in multiplayer.h

* rename in openloco.h and openloco.cpp

* rename in progressbar.h

* rename in scenariomgr.h

* rename in station.h and station.cpp

* rename in stationmgr.h

* rename in town.h

* rename in townmgr.h

* rename in ui.h and ui.cpp

* rename in viewport.hpp

* rename in viewportmgr.cpp

* rename in window.h

* rename in window.cpp

* Fix compilation error

* Fix formatting

* Fix formatting 2

* Fix formatting 3

* Partial rename in widget.h

* renamed cancelTool to toolCancel
2020-09-05 13:56:51 +01:00
Aaron van Geffen 53ae6de8a0 Use constant for args control code. 2020-04-18 14:41:35 +02:00
Ted John cf828b6ea0 Update formatting of files, clang-format template * bug is now fixed 2020-03-17 21:02:25 +00:00
Aaron van Geffen fd764a1b62 Generate and build macOS app bundles through CMake.
This uses the OpenLoco logo by Zcooger as the app icon.

Co-authored-by: Marijn van der Werf <marijn.vanderwerf@gmail.com>
Co-authored-by: Tom Lankhorst <hello@tomlankhorst.nl>
2019-02-26 09:38:44 +01:00
Ted John b1191a3e2e Fix index out of range assert in languagefiles.cpp 2018-10-03 18:44:39 +01:00
Aaron van Geffen 9a56f0cb41 Use unit strings from language files rather than hardcoded ones. 2018-09-18 19:45:38 +02:00
Aaron van Geffen 065410652a Clarify types for languagefile-loading functions. 2018-09-18 19:45:38 +02:00
Aaron van Geffen 9c47813c83 Clarify unicode encodings used; simplify codepoint enums. 2018-09-18 19:45:38 +02:00
Aaron van Geffen 525037bdef Fix loading of 4-byte codepoints; ignore variation selector. 2018-09-18 19:45:38 +02:00
Aaron van Geffen 1ce7202007 Implement basic DATE and RAWDATE format codes. 2018-09-18 19:45:38 +02:00
Aaron van Geffen a55dde7a45 Clean up language loading function; always fall back on en-GB. 2018-09-18 19:45:38 +02:00
Aaron van Geffen 18db4088be Fix MSVC and Xcode 9.2 compiler warnings. 2018-09-18 19:45:38 +02:00
Aaron van Geffen 9c38621955 Enumerate languages based on header in YAML files.
Previously, languages were hardcoded in languages.cpp.
Note that strings will now be loaded from a 'strings' map in the language files.
2018-09-18 19:45:38 +02:00
Aaron van Geffen 13003c0e51 Move unicode helper functions to their own file. 2018-09-18 19:45:38 +02:00
Aaron van Geffen 4daaa46c46 Fix inline sprites, (grouped) integers, newline_x_y. 2018-09-18 19:45:38 +02:00
Aaron van Geffen 5984fda008 Convert Unicode strings to Locomotion's CP1252 variant, for now. 2018-09-18 19:45:38 +02:00
Marijn van der Werf 862ba286ed Add constants for remaining buffers 2018-09-18 19:45:38 +02:00
Aaron van Geffen 9290f80ef7 Add sprite symbol constants. 2018-09-18 19:45:38 +02:00
Aaron van Geffen 2a730af637 Interpret strings as unicode when drawing them.
To do: map higher unicode characters back to sprite font.
2018-09-18 19:45:38 +02:00
Aaron van Geffen 9fb95c094d Load language files from data/language directory.
This directory is assumed to be in the same directory as the game binary.
2018-09-18 19:45:38 +02:00
Marijn van der Werf 507773ab4e Use some string_id constants for known buffers 2018-09-18 19:45:38 +02:00
Marijn van der Werf 232db8b9e7 Move simple codepoints to map 2018-09-18 19:45:38 +02:00
Aaron van Geffen ebc17aec7a Unify formatting_codes and control_codes into one enum; use more codes. 2018-09-18 19:45:38 +02:00
Marijn van der Werf 68fd660e99 malloc larger buffer 2018-09-18 19:45:38 +02:00
Aaron van Geffen a5da968ee1 Split off language file loading to its own file. 2018-09-18 19:45:38 +02:00