Commit Graph

72 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
Duncan a7463ff3f4
Track data (#605)
* Add TrackData as a seperate file

* Add additional flag for unused item

* Fix minor formatting issue and copy issue

* Switch to arrays to further enforce limits

* Add xcode braces
2020-09-06 15:57:17 +01:00
Peter Gaal 9a489fcae2
Rename camelCase in windows folder (#594) 2020-09-02 20:13:09 +01:00
Ted John 3d0704c69b
Fix #541: Unnecessary loop for music data check (#545)
* Implement title::start

* Only start title music in title::start

However we still need to keep checking if we should stop the title music until all mode change routines are implemented.

* Rename files and add stub functions

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2020-08-02 20:50:55 +01:00
Svelbeard bc75f61d7d
News Window (#518)
* Initial Setup and Events

* Fix crash on window open due to sound

* Fix viewports not being selectable

* Fix Ticker Repeating

* Initial Setup and Events

* Fix crash on window open due to sound

* Fix viewports not being selectable

* Fix Ticker Repeating

* Implement Ticker Draw event

* Start implementing news draw event

* Implement news draw

* Fix Window not moving to correct position

* Move Window Types to seperate files

* Fix incorrect file type

* Fix news2 drawing incorrectly

* Name variable in news structure

* Fix colour in Ticker window

* Minor Refactor

* Refactor large functions into smaller chunks

* Fix for CI

* Fix second viewport being drawn when it shouldn't

* Update vehicle related code

* Fix vehicle thingId refering to the wrong vehicle thing
2020-07-17 19:31:47 +01:00
Duncan 5e2c51539d
Vehicle create (#460)
* Start vehicle_create

Further work on CreateVehicle

Continue create vehicle length check

Further work

* Start actual create body function

Further work

Complete the body creation function

* Fix some small mistakes

Make minor corrections

* Further work

Further

Further works

* Implement create head

* Implement the create vehicle 1, 2, tail functions

Further implementation

* Make compilable and testable

Add nullptr protection to keep ci's happy

clang-format

* Use templates to simplify the creation functions

Change assert to keep ci's happy

* Implement remaining cleanup functions

Fix formatting

* Move member functions to vehicle.cpp file

* Implement initial review comments

* Make suggested changes

* Add further constants. Fix crash due to initial value

* Make review changes and add game command knowledge
2020-07-07 20:31:20 +01:00
Svelbeard be8bfa37e6
Construction Window (#493)
* Initial work on open function

* Further Setup

* Further Progress

* Fix Window crashing on open

* Implement on dropdown, on_resize and cursor for construction tab

* Implement on_mouse_down for construction tab

* Further Work on Construction Tab

* Fix track construction tool not working

* Implement disabled widgets for track selection

* Start work on 2nd Tab events

* Finish Station Tab

* Implement Events for signal Tab

* Implement 4th Tab events

* Fix window not displaying track and crash on selecting road bridge

* Minor Formatting

* Progress on construction on_tool_down

* Fix crash on construction _on_tool_down

* Implement on_tool_down

* Refactor construction_draw

* Fixes for CI

* Fix Station Catchment being permanently displayed

* Run clang format

* Split tabs into seperate files

* Fix for CI

* Fix Window not drawing on open

* Fix for CI

* Fix window crashing due to incorrect station type

* Replace while loops with for loops in Station and Signal Tabs

* Refactor Station Dropdown loops into Templated function

* Refactor ConstructionTab.cpp

* Fixes for CI

* Fix crash to desktop when constructing underground

* Fix incorrect tiles highlighting on tool update

* Fix for Xcode

* Fix crash to desktop when opening tram track construction window
2020-07-03 13:35:56 +01:00
Svelbeard 290c4214ad
Message Window (#507)
* Initial Setup

* Implement window events

* Add newline at end of message.h

* Fix incorrect date being shown

* Fixes for CI

* Use config.h for news settings

* Fix window drawing incorrectly on resize

* Fix mistake in open function
2020-06-25 06:24:11 +01:00
Svelbeard 82b073cd57
Error window (#506)
* Implement error window

* Fix for CI

* refactor open functions to common function

* Fix for CI

* Fix error in createrErrorWindow function
2020-06-22 20:44:18 +01:00
Svelbeard 6b1dd0f985
Terraform Window (#473)
* Initial Setup

* Finish Setup

* Implement most of Plant Tree tab functions

* Fix Plant Trees Tab causing crashes

* Update string_ids

* Further work

* Add draw_scroll for walls and trees and landType dropdown for adjust land

* Fix events for adjust land

* Implement events 12 and 13

* Remove mistype

* Adjust Widget Sizes

* Fix tree/building not selected on window open

* Work on adjust land  events

* Fixes for CI

* Fix window displaying incorrect values for adjusting land

* Fix crash when adjusting land whilst zoomed out

* Change do commands to use map_pos

* Fixes for CI

* Fix window displaying incorrect costs

* Fix window caption colour and scrollarea width in walls tab
2020-05-30 10:22:26 +01:00
Aaron van Geffen 28bfdff807
Useful bits from #328 (#482)
* Have id parameter in WindowManager::bringToFront default to 0.

* Additional fields for land_object.

* Introduce widget::mid_y.

* Add stub for object selection window.

* Implement editor_tick.

Co-authored-by: Marijn van der Werf <marijn.vanderwerf@gmail.com>
2020-05-25 14:23:10 +01:00
Duncan bba8e25540
Switch vcxproj to using full file paths instead of wildcards (#477)
Unfortunately MS has deprecated wildcards in the latest version of visual studio
2020-05-20 21:11:40 +02:00
Ted John c7f0faf276 Fix branch name and SHA1 for GitHub Actions 2020-04-24 14:51:27 +01:00
Ted John 562c63e39b Move Windows from AppVeyor to GitHub Actions 2020-04-23 18:52:07 +01:00
Ted John c8e7e6cef2 Explicitly add VcpkgTriplet value 2020-03-13 17:48:38 +01:00
Aaron van Geffen 93e54c6798 Update dependencies to version 1.2.0. 2020-03-13 17:48:38 +01:00
Ted John 2405c9a3ce Set window icon to OpenLoco logo 2019-02-24 20:53:47 +00:00
Aaron van Geffen bbd9c900bf
Reduce dependencies for Windows builds (#278) 2019-02-24 19:13:11 +01:00
Ted John e2bf6b7186 Update to dependencies v1.1.0 2018-10-03 18:44:52 +01:00
Ted John b06978c487 Prepare vs project for dependencies nuget package 2018-09-04 10:49:45 +02:00
Aaron van Geffen 6524d17166
Glob filenames using wildcards in MSVC project (#190) 2018-06-27 00:34:12 +02:00
Aaron van Geffen 8273d5860a Implement Music Acknowledgements window. 2018-06-26 22:21:26 +02:00
Aaron van Geffen c4b89d59ca Initial work on about window. 2018-06-26 22:19:54 +02:00
Aaron van Geffen a9c81f615b Add git-describe info to AppVeyor builds. 2018-06-16 16:29:08 +02:00
Marijn van der Werf da329a08de Decompile and hook mouse wheel input processing 2018-06-13 15:18:45 +02:00
Marijn van der Werf 4b69797739 Move old mouse_input to viewport_interaction 2018-06-01 22:23:13 +02:00
Aaron van Geffen 256a16f724 Add mouse_input.cpp to MSVC project. 2018-06-01 16:49:48 +02:00
ζeh Matt 27807482a3 Add Natvis support for interop data. (#165) 2018-05-25 10:30:42 +01:00
duncanspumpkin 982582d624 Fix vcxproj file 2018-03-10 15:41:59 +00:00
Marijn van der Werf efa6a3c07f Process mouse 2018-02-25 15:29:14 +01:00
Marijn van der Werf 8f8ab7ca13 Decompile widget drawing 2018-02-25 15:06:02 +01:00
Ted John 90795bf5aa Define git info for version.cpp 2018-02-16 17:50:18 +00:00
Aaron van Geffen 2bba3c22ff Rename envionment.cpp to environment.cpp (#106) 2018-02-15 21:24:42 +00:00
Ted John 71f5fbf24f Store version info in a const char[] 2018-02-14 21:29:27 +00:00
Marijn van der Werf 682fc641e0 Draw version window 2018-02-14 21:29:27 +00:00
duncanspumpkin 4004e3ba0a Rework thing structure 2018-02-13 21:41:53 +00:00
Marijn van der Werf 48c9d593f0 Decompile tooltip window 2018-02-09 16:47:31 +01:00
Ted John 2ac01fde26
Add more identified fields and improve tile engine (#91) 2018-02-02 19:12:14 +00:00
Ted John 09bbda3d0c
Implement station::update (#87) 2018-01-31 22:34:59 +00:00
Marijn van der Werf 3be99e8238 Add files to VS solution 2018-01-28 20:13:28 +01:00
Ted John 07b25cec93 Refactor tile loop 2018-01-28 15:02:11 +00:00
Ted John 48b63cf122 finish implementing update_industry() 2018-01-28 15:00:53 +00:00
Ted John e5c653d0c0 Add map information and startings of update_industry 2018-01-28 15:00:53 +00:00
Ted John 7a12356220
Implement the industry struct and manager (#58) 2018-01-27 16:44:38 +00:00
Ted John 8e3e11ac12 Identify company struct 2018-01-26 17:28:47 +00:00
Ted John 02141827ff Refactor company properties 2018-01-26 17:28:47 +00:00
Ted John a0152c5158 Implement sub_48B244 2018-01-26 17:28:47 +00:00
duncanspumpkin 7a74de9be5 Use OpenRCT2 viewport names 2018-01-25 21:13:41 +00:00
duncanspumpkin a70a0f0ea4 Actually add it to the project 2018-01-25 21:09:29 +00:00
Ted John 895572254a Implement date_tick 2018-01-24 18:02:29 +00:00