- Updated the minimum required CMake version.
- Updated the minimum required C++ standard version to match the
functions used in the code base.
- Added missing `public` visibility specifier for classes deriving from
wxEvtHandler (DatDebugView and MainMenuBar) that is required to
access the event table from the derived classes.
- Fixed a typo in the MainMenuBar code (`REPLACE_ITEM` =>
`REPLACE_ITEMS`).
- Added missing ZLIB search to the CMake project (previously it was
implicitly linked by older wxWidgets versions?).
- Fixed GLUT compatibility with newer CMake version.
- Added a new `FROM_DIP` macro that fixes wxSize scaling compatibility
with wxWidgets <3.1.0.
- Fixed catching std::bad_cast exceptions by value instead of const
ref.
Closes#329.
Closes#345.
Closes#371.
Closes#373.
Closes#375.
Created the complete organization of npcs, that way, it is possible to create own files for npcs, no longer depending on being together with the monsters
this pull request was made to be worked together with the canary project: https://github.com/opentibiabr/canary
The spawns npcs is "yellow" and spawns monsters is "red" (the old)
With this change, the map will automatically create an "npc.xml" the first time it is saved.
It is possible to edit only the xml, it is not necessary to add or modify the npc by opening the editor map
Thus, there is a script for npcs, similar to how it works with old spawns
Sometimes when using 'Go To Position', 'Go To Town Position' or 'Go To
Teleport Destination', we want to return to the previous position.
- Renamed 'CenterOnPosition' to 'SetScreenCenterPosition'.
- Added 'GetScreenCenterPosition' and 'GoToPreviousCenterPosition'
methods.
- Remove trailing spaces.