Tytannial
30291bb18a
Update zhCN translation
...
Add translation for new content.
4 years ago
ephphatha
13c54102e0
Combine Add*Door functions
...
There's a bit of common code, but most of the initialisation logic relies on globals or other functions defined in objects.cpp so it's not really appropriate to move these wholesale into a member of the Object class.
4 years ago
ephphatha
939df1b9c3
Remove duplicate arguments to Add*Door functions
4 years ago
ephphatha
eebea35280
Pass object by reference
4 years ago
qndel
35c5144bde
fix indentation in items table ( #3868 )
4 years ago
Andrew James
fb8467b045
Move platform specific locale lookup code to platform directory ( #3862 )
4 years ago
Andrew James
e1d01aad7c
Replace en_US code with en when searching for user preferred languages ( #3859 )
4 years ago
ephphatha
abe4075a5a
Deduplicate code checking if the player is next to a two-tile object
...
Used to activate sarcophagi from the top/right tile, probably other objects too.
4 years ago
ephphatha
e65959e6fc
Use helper when checking if a player hit an object on attack
4 years ago
ephphatha
a6630eacb6
Use helper when checking if object exists in path.cpp
4 years ago
ephphatha
be2d89efaa
Refactor code for highlighting an object with a cursor
...
Reduces the use of Objects and removes the uses of dObjects in this file
4 years ago
ephphatha
099fad5cb9
Use ObjectAtPosition helper for remaining references in objects.cpp
...
There are a bunch of direct references to dObject related to testing if an area contains the interactable part of an object, this needs further cleanup.
4 years ago
ephphatha
82e9c3ea14
Clean up remaining dObject references in missiles.cpp
4 years ago
ephphatha
279fbe32b3
Tidy up checks for missile collision with objects/tiles
...
This was repeated in multiple places with essentially identical logic. Can expose the existing missiles.cpp function to capture the use in scrollrt.cpp
4 years ago
ephphatha
77a783098d
Use ObjectAtPosition when checking if an item can be dropped
...
This extracts some of the common object logic from ItemSpaceOk and CanPut, these functions are almost identical except for the way players and monsters are checked...
4 years ago
ephphatha
a0019d289d
Use Point based object lookups in themes.cpp
...
Move bookstand lookup inside coinflip if statement, minimises the scope of that pointer.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
ephphatha
0b3c162ea7
Use helper instead of explicit dObject lookup in IsTileWalkable
4 years ago
ephphatha
903b661307
Use ObjectAtPosition for debug object type display
...
The other use of dObject is displaying the contents of that array so makes sense to leave as is. We're also able to remove the map since we can reference the current object type value directly on the returned object.
4 years ago
ephphatha
01ffc2c501
Use ObjectAtPosition helper in DrawObject
4 years ago
ephphatha
379d6e87b3
Move ObjectAtPosition to objects.cpp and make it return a pointer
...
All set maps initialise objects as expected so dObject has the correct ID already, no need to iterate over all active objects. Also by returning a pointer we can use this function to test if an object exists at the target position.
While on msvc int8_t is typedefed to signed char we might as well match the expected data type for the dObject array
4 years ago
ephphatha
e633d7ff1e
Restrict dropping items to adjacent tiles
...
This more closely matches vanilla behaviour until more intelligent dropping item behaviour is implemented (see #3489 )
4 years ago
sheng-luwei
ae112c7820
Update German translation
4 years ago
ephphatha
1abc617e1a
Consistently trigger menu/movie transitions on mouse up instead of down
...
Keypresses still occur on keydown to allow for repetition (e.g. when scrolling)
4 years ago
KPhoenix
1c25cb4bf0
Fixed Event Messages color
4 years ago
Bubio
d1315e934a
Fixed issue #3788
4 years ago
Gleb Mazovetskiy
ccf8cc004d
Spell book: Fix "Level 0 - Unusable" overlap
...
Removes the display of mana and damage for unusable spells
and moves the "Unusable" text onto the second line, fixing
the overlap.
4 years ago
Gleb Mazovetskiy
a38e25b6c6
CMake: Fix GoogleTest on older Debian + CMake
4 years ago
M0Rf30
83bc99fcc2
Update Italian localization
4 years ago
KPhoenix
a08026097a
Chat Interface Revision ( #3840 )
...
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Anders Jenbo
6de6825ce0
Correct false positives translation warnings
4 years ago
staphen
74a77666b9
Improve behavior of ToControllerButtonEvent()
4 years ago
Gleb Mazovetskiy
45cf1366b9
Assets.cmake: Fix lang dependencies on Apple
4 years ago
Anders Jenbo
59e8502743
Fix clicking on triggers on the lower part of the screen
4 years ago
egonzalez
dc4c1a825b
Add missing translations
4 years ago
obligaron
18fb40ee32
Settingsmenu: Implement KeyInput
4 years ago
obligaron
419fe7b7ec
Change Keymapper to OptionCategory/OptionEntry
4 years ago
M0Rf30
901661880e
Update Italian localization
4 years ago
ephphatha
c783dd2bfd
Load MPQ archives before reading options so translations can be detected
4 years ago
Oleksandr Kalko
3376917945
Upgrade Gradle plugin version
4 years ago
Licaon_Kter
0ffba33cdb
Add two more Debian deps
4 years ago
Gleb Mazovetskiy
cacf55bb34
CMake: Split out platform libraries
4 years ago
Gleb Mazovetskiy
0a0baf0c64
CMake: Move more platform config to platforms/
...
Moves platform libraries, compile definitions, and compile options to
the platform CMake files.
4 years ago
Gleb Mazovetskiy
3e0a295dd3
CMake: Simpler Threads workaround for the 3DS
4 years ago
staphen
af59f7e254
Update fullscreen option in settings menu after Alt+Enter
4 years ago
Anders Jenbo
68e5805f1b
[touch] Adjust controller position after changing resolution
...
Fixes #3791
4 years ago
Anders Jenbo
b6bdbcfc98
Stip stippled transparency
4 years ago
Anders Jenbo
cf9b5ae79d
Split up graphics settings initializers
4 years ago
Anders Jenbo
0e2aac8cfe
Allow for software based rendering
4 years ago
Anders Jenbo
24a15d90e2
Do not recreate the render when switching scalingn quality
4 years ago
Gleb Mazovetskiy
6dd4c08d4b
CMake: Make -static-libstdc++ configurable
4 years ago