Commit Graph

137 Commits

Author SHA1 Message Date
Aaron van Geffen 070ec04888
Fix caption 22 widget text rendering (#1124) 2021-08-23 10:47:48 +02:00
rdrdrdrd95 ce8f6bca9f
Implement exception message box popups (#1104) 2021-08-20 14:53:10 +02:00
Duncan 3c4937e7ca
Fix road dropdown not remembering selection (#1108)
* Fix road dropdown not remembering selection

Incorrectly signed type was causing comparisons of equality to fail

* Update changelog
2021-08-14 14:20:48 +01:00
duncanspumpkin 29b405007e Start v21.08+ 2021-08-12 22:14:56 +01:00
duncanspumpkin 7aecfa55ef Update OpenLoco version to v21.08 2021-08-12 22:11:49 +01:00
Duncan cba3bd06d1
Fix: #366. Implement deliver cargo to nearby stations (#1101)
* Fix: #366. Implement deliver cargo to nearby stations

Original game had a bug where it would write to bad memory and end up
delivering cargo to stations that it shouldn't

* Add note and break

* Update changelog

* Adjust variable name
2021-08-12 11:52:41 +01:00
Aaron van Geffen 44f5210c2f
Prevent invalid filename due to off-by-one in file browser (#1102) 2021-08-11 23:16:49 +02:00
Aaron van Geffen ae294ad80e
Only use red text colour for expenditure sums (#1095) 2021-08-10 15:14:01 +02:00
Duncan 8461ad721b
Implement construction open At functions (#1094)
* Implement openAtTrack

* Split up functions for reuse

* Implement openAtRoad

* Minor refactorings

* Update changelog
2021-08-10 11:53:41 +01:00
Aaron van Geffen 139eebf1c0
Make tree clusters cost money outside editor (#1089)
* Change: tree clusters now cost money outside editor

* Query viability before executing placement command

* Fix error title for cluster tools

* Only play sound if tree planting was successful

* Refactor the tree cluster tool to use one templated func

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2021-08-08 13:56:35 +02:00
Aaron van Geffen ecae932561
Allow rotating buildings in town list by keyboard shortcut (#1079) 2021-08-03 21:11:22 +02:00
Duncan f85b375063
Townlist ToolUpdate/Down (#1035)
* Start work

* Further work

* Finish function

* Implement toolDown

* Remove unused type

* Fix colour. Improve interfaces

* Fix dropdown colour selection

* Update changelog
2021-08-01 18:59:20 +01:00
Duncan 26256545ba
Fix station naming crashing after exahusting realNames (#1070) 2021-08-01 09:57:46 +02:00
duncanspumpkin 70c9d8635c Start v21.07+ 2021-07-18 07:40:47 +01:00
duncanspumpkin 7ec445f7f7 Update OpenLoco version to v21.07 2021-07-18 07:14:25 +01:00
Duncan f57a13a7da
Refactor and fix headquarter placement (#1044)
* Refactor and fix headquarter placement

* Add changelog entry
2021-07-14 17:45:02 +01:00
Aaron van Geffen fbc145a5bf
Station rename command (#984)
This re-introduces the possibility of resetting/regenerating station names automatically
by using an empty station name. Previously, our re-implementation (C++ code) inadvertently
removed this option.
2021-07-01 19:59:37 +02:00
Aaron van Geffen 6a10da15ca
Allow filtering the vehicle list by station or cargo (#997) 2021-06-26 11:12:20 +02:00
Duncan 6eaf015902
Fix incorrect comparison and naming (#1016)
* Fix incorrect comparison and naming

* Remove function as it is incorrect

* Correct notes

* Add changelog entry
2021-06-25 11:22:02 +01:00
Michał Janiszewski 475e9075b9
Merge pull request #1006 from janisozaur/breakpad
Add breakpad to MSVC builds
2021-06-21 22:58:11 +02:00
Duncan bfd99e849d
Fix 32bit overflow warnings (#1008)
* Fix 32bit overflow warnings

* Fix ui bug
2021-06-21 17:58:46 +01:00
Michał Janiszewski 0dd240a503 Add changelog entry for #1006: breakpad for MSVC 2021-06-19 23:45:50 +02:00
Michał Janiszewski 4d58d913fd
Retry hook installation (#993)
* Add more logging in case of errors

* Retry hook installation, as it can fail in some circumstances

This can happen on some versions of wine which would fail on
WriteProcessMemory calls with specific addresses. Skipping to next entry
works just fine.

* Add change log entry for hook reinstallation
2021-06-15 14:47:48 +01:00
Duncan 92543a09a7
Update changelog for #986 (#988) 2021-06-10 11:58:22 +02:00
Duncan c1cc552b4b
Fix incorrect rating calc for cargo (#982)
* Fix incorrect rating calc for cargo

* Update changelog
2021-06-01 14:10:10 +01:00
Aaron van Geffen cacb426f6f Update OpenLoco version to v21.05 2021-05-11 22:28:26 +02:00
Aaron van Geffen 8e54f42a41
Temporarily hide multiplayer functionality (#975)
Occasionally, new players assume OpenLoco has working multiplayer functionality,
while it's been broken since the first release. This change hides the toggle button
from the title menu, while still making it easy to re-enable.
2021-05-11 22:23:38 +02:00
Aaron van Geffen b0b6ac8325
Fix element name not showing when inspecting track elements (#957)
Co-authored-by: Duncan <duncans_pumpkin@hotmail.co.uk>
2021-05-01 14:01:34 +02:00
ζeh Matt 2bfbb3208c
Entity Tweening (#923)
* Add entity tweening

* Add hook to remove entities from tweening

* Rebase

* Decouple window rendering from updating

* Tween only bodies and bogies in the vehicle list

* Adhere code style

* Update CHANGELOG.md

* Move tick interrupt into a function

* Get around null dereference warning
2021-04-26 12:52:32 +01:00
Aaron van Geffen 96c87a57b4
Fix #945: Station construction preview image is using wrong colours (#946) 2021-04-24 14:09:40 +02:00
Peter Gaal 392a81551e
Feature #857: Remember last save directory in configuration variable (#907) 2021-04-22 10:10:04 +02:00
Duncan 893f552956
Fix #914. Actually fix correctly this time. (#925)
* Fix #914. Actually fix correctly this time.

Wrong size of height variable caused truncation at high water levels
which caused docks to not be marked as occupied. Which caused a crash
when trying to unoccupy the dock when removing a boat.

* Update changelog
2021-04-20 18:42:13 +01:00
Aaron van Geffen a1ac80f8d8
Implement cheats window (#910)
* Add skeleton for cheats window

* Implement clearLoan, switchCompany cheats

* Implement tab switching

* Improve company cheats tab layout

* Implement toggle bankruptcy and toggle jail cheats

* Implement acquire company assets cheat

* Implement addCash cheat

* Implement vehicleReliability cheat

* Implement companyRatings cheat

* Move cheats and tile inspector to top of cheats menu

* Amend changelog
2021-04-18 20:12:46 +02:00
Aaron van Geffen c774323ce3
Fix not all industries showing up in fund industries tab (#927) 2021-04-17 15:35:52 +02:00
duncanspumpkin 7e9528eb6c Start v21.04.1+ 2021-04-14 20:27:53 +01:00
duncanspumpkin 753b60ea0f Update OpenLoco version to v21.04.1 2021-04-14 20:07:37 +01:00
Duncan f59a373168
Fix #914. Ships not marking stations as occupied (#917)
This would cause ships to never leave the approaching dock mode
2021-04-13 08:09:08 +01:00
Duncan d668605fda
Fix #915: Money subtractions with large values incorrectly calculated (#916)
Mistake in the currency struct caused large values to be interpreted as negatives
2021-04-12 12:30:26 +02:00
Aaron van Geffen dfdb813f67 Start v21.04+ 2021-04-10 22:32:46 +02:00
Aaron van Geffen 84090672d7 Update OpenLoco version to v21.04 2021-04-10 21:40:06 +02:00
Duncan 4b551cff23
Update changelog for #391 2021-04-10 21:35:24 +02:00
Aaron van Geffen 7c5863c29b Add initial version of the tile inspector. 2021-03-11 16:29:47 +01:00
Duncan 71f538c0bf
Fix capacity string showing incorrect data (#860)
* Fix capacity string showing incorrect data

If a vehicle does not carry any cargo (e.g. is a train engine) the previous items capacity string (or anything else) would be shown as the capcity. This is because a global variable is being used that has not been correctly intialised.

* Add changelog entry
2021-03-29 11:26:17 +01:00
Aaron van Geffen fea95bf09d Change layout of the Option window's display tab; amend changelog 2021-03-28 00:42:09 +01:00
Aaron van Geffen 86de7364ac
Implement an optional FPS counter (#850)
Shows a counter at the top of the screen, indicating the number of frames drawn per second, based on std::chrono.
2021-03-27 01:06:24 +01:00
Aaron van Geffen 6d5b481b61
Implement PromptBrowseWindow::handleInput (#841)
Fixes #804

* Implement PromptBrowseWindow::handleInput

* Refactor PromptBrowseWindow to use TextInput::InputSession
2021-03-27 00:29:08 +01:00
Duncan 138e57e5b3
Fix monthly town update (#844)
* Fix monthly town update

* Add changelog entry
2021-03-22 20:03:47 +00:00
Aaron van Geffen d831911c4f
Fix #838: Escape key doesn't work in confirmation windows (#839) 2021-03-19 22:57:43 +01:00
ζeh Matt 223048ac51
Use simplified vector implementations with resolution translation (#809)
* Use simplified vector implementations with resolution translation

* Add compile time check of vector size

* Fix z not being passed for audio

* Apply refactor suggestions

* Narrow conversation from int to T in Vector

* Remove unused operators

* Update CHANGELOG.md

* Fix rebase
2021-03-11 18:43:44 +00:00
Aaron van Geffen af53b4b20b Fix bug in TownWindow::renameTownPrompt 2021-03-08 17:15:10 +01:00