Commit graph

62 commits

Author SHA1 Message Date
Luan Santos
2ee365e836
ci: add clang-format linter (#54) 2023-10-09 19:12:16 -07:00
Beats
6b55201a64
feat: synchronizing commits with the official rme repository (#36)
* Show indicators for pickupable and moveable items

* Fix: drawing always refreshing ui

* Fix crash on invalid friend for wallbrush

* Option to remove empty spawns

* Draws position indicator, some code cleanup

* Teleport copy/paste improvements

* Fix flood fill

* Add function to get minimap/8bit color

* Small code cleanup

* Cleanup Position

* Code cleanup and small optimizations

* Code cleanup

* Code cleanup and small optimizations (#406)

* Cleanup and cast functions.

* Avoid adding a new Unique ID if it already exists

* Code cleanup and small optimizations

* More changes and cleanup

* Changes and cleanup

* Some changes

* Fix copy position.

* Only show uid/aid alert if it really changed

* Add actions history panel

* Does not draw tooltips on minimap mode

* Use constexpr

* Replace items fix (#408)

* Draw grid small optimization

* Small change in selection box and Fix #409

* Fix some xpm

* Ingame box improvements, add lights support.

* Fix go to previous position (#410)

* Fix depot crash (#411)

* Fix XPMs

* Export minimap as .otmm (otclient format) or .png (#413)

* Fix glitch after drawing secondary map

* fix

* Update about_window.cpp

* sonar

* fix Minimap and progress bar

* fix erro load items.xml

* fix

* fix doodad brush

* fix: slightly more accurate house size estimation

* feat: update items.otb and items.xml

* fix: bad merge

* Revert "feat: update items.otb and items.xml"

This reverts commit 40f1edc70f.

---------

Co-authored-by: Nailson <Mignari@users.noreply.github.com>
Co-authored-by: wtver <51377408+maattch@users.noreply.github.com>
Co-authored-by: Majesty <32709570+majestyotbr@users.noreply.github.com>
Co-authored-by: Luan Santos <github@luan.sh>
2023-10-09 19:02:37 -07:00
Beats
17e42a5056
feat: improve cmake build and add pugixml integration (#40) 2023-09-08 03:04:02 -03:00
Eduardo Dantas
047113ade3 Merge branch 'master' 2022-08-19 02:43:27 -03:00
Nailson
05b791ee07 Use standard min,mas,abs functions, fix compile warning. 2022-06-16 22:39:12 -03:00
diath
8bf57e35a6
Fix build errors (#380)
- 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.
2022-02-02 18:55:27 -03:00
Eduardo Dantas
adef6c47c1
Change ids to clientid and organize data folder and tilesets (#6)
This only works with the canary server: https://github.com/opentibiabr/canary

Added support only for client .dat and .spr 11.00 outdated (10x), signature: data format="11" dat="0x4A10" spr="0x59E48E02"

Otb cllient 11, version 3, id 62

In addition to the ids being converted to client id (for compatibility with canary), the data folder has been completely reorganized for ease of understanding.
The organization of tilesets was also started, which will be further improved in other pulls.
2021-06-23 21:30:37 -03:00
Eduardo Dantas
e09f3e94c8
Decouple npcs from the creature class (it's create npc.xml file in the map folder) (#3)
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
2021-05-25 00:29:12 -03:00
Evil Puncker
cfe36ce5b3
license headers (#315) 2020-07-30 11:42:28 -03:00
Elime1
bb38067971 Menu should not be usable before main frame is shown 2020-07-11 11:18:18 +02:00
Elime1
91336937c1 Add dpi awareness 2020-06-26 14:25:49 +02:00
Elime1
ae62b0c954 Introduce snapshot version for versions not yet released (ie built from source at any point). The official release should not be a snapshot version. 2020-06-26 14:17:32 +02:00
Elime1
d96bb5902b Reintroduce old behaviour when welcome dialog is toggled off 2020-06-26 08:44:56 +02:00
Elime1
39023fcc30 Make welcome dialog optional 2020-06-18 19:08:13 +02:00
Elime1
1198f9c34c Update vs configuration for 32 bit 2020-01-19 19:30:54 +01:00
Nailson
4bfd7347a7
Load assets name from otfi file. (#276) 2019-07-23 10:21:07 -03:00
Elime1
6b11485da0 Move welcome dialog to gui 2019-06-28 15:24:25 +02:00
Elime1
e3856e8dbc Use non modal welcome dialog 2019-06-27 22:23:28 +02:00
Elime1
c4551731fd Add welcome window 2019-06-25 18:07:36 +02:00
Mignari
12754fd889 Add Sizes toolbar. 2019-06-05 01:43:52 -03:00
Nailson
860febd663
Add tool bar (#144) (#23) (#264)
* Add default tool bar.

* Add Toobars menu.

* Add brushes toolbar.
2019-06-03 14:14:18 -03:00
Mignari
272c0a987f Define const for assets files. 2018-10-14 19:54:08 -03:00
Mignari
8227054ef2 Make spawns visible when placing a new spawn. 2018-08-24 21:30:19 -03:00
Elime1
e0e3400bb6 Find data directory when building using generated Xcode project 2016-12-21 17:05:36 +01:00
Elime1
d2aba9289a Fix a problem where the map could be loaded too early. Also make the code more coherent. 2016-12-02 16:40:51 +01:00
Nailson
1afdd10d49 Code improvements. 2016-11-12 10:30:06 -03:00
Elime1
610aeeaeaa Remove use of wxT macro. Closes #141 2016-11-05 15:28:14 +01:00
Nailson
ba5cd683a8 Restore last position when opening a map. Closes #139 2016-11-02 08:05:10 -03:00
Nailson
d7e863cb86 Rename global variable 'creature_db' to 'g_creatures'. 2016-10-25 10:22:46 -03:00
Nailson
b458163331 Rename global variable 'brushes' to 'g_brushes'. 2016-10-25 10:19:42 -03:00
Nailson
f6c84ed67b Rename global variable 'item_db' to 'g_items'. 2016-10-25 09:47:00 -03:00
Nailson
5d265c1976 Rename global variable 'materials' to 'g_materials'. 2016-10-25 09:46:12 -03:00
Nailson
970539dc73 Add CanUndo, CanRedo, DoUndo and DoRedo methods. 2016-09-29 21:21:33 -03:00
Nailson
d6d7643176 Rename global variable 'settings' to 'g_settings'. 2016-09-29 20:37:43 -03:00
Nailson
6ab0f851a4 Rename global variable 'gui' to 'g_gui'. 2016-09-29 20:30:54 -03:00
Nailson
f3b82b8734 Add 'Go To Previous Position' menu item. Hotkey 'P'.
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.
2016-09-29 18:36:27 -03:00
Nailson
bf9cda1eb4 Clarify variable names. 2016-02-28 10:26:33 -03:00
Nailson
f93e43f679 Add zoom menu.
Shortcuts:

Ctrl++ Zoom in
Ctrl+- Zoom out
Ctrl+0 Normal zoom (100%)
2016-02-25 21:32:05 -03:00
Nailson
d7a4254604 Code style and some cleanup. 2015-12-06 11:42:37 -03:00
Nailson
4108f39a12 Implements OTFI.
OTFI is an OTML file with information about the features enabled in the
dat/spr.
This commit removes the extended and transparency options in
preferences. Please use an otfi file along with the dat / spr to inform
the required features.
It's not necessary to regular files.
2015-02-17 10:41:13 -03:00
dominique120
97df12771e Few more fixes and support for Mac OSX. 2014-08-02 13:09:03 -05:00
dalkon
43a6834fc5 Code cleanup 2014-03-01 14:44:11 +01:00
dalkon
c74b6dbeae Bug fix and misc
GUI::SetLoadDone was taking way too long to update and made any map load
very slowly.
Changed any "uint" to "uint32_t"
Fixed a bunch of warnings.
2014-02-28 22:34:25 +01:00
dalkon
4a729176c4 Fixes and changes.
Rewrote RME Live to use boost asio instead of wxSocket, this seemed to
fix random stops when using the function, some other things were fixed
aswell when using this.
Added 10.10 & 10.21+ (I have not added the otbs and such yet.)
Bug fix and some small cleanups.
2014-02-21 13:55:09 +01:00
Eduardo Bart
5e988148f9 Make able to run from linux build directories
* Remove annoying std::cout
* Update linux README instructions
2014-01-24 16:11:10 -02:00
Henrique Santiago
8d5f486960 Run using working directory, remove unecessary ; 2014-01-24 02:33:09 -02:00
dalkon
886cbc23a7 Lots of changes
Removed libxml2 to use pugixml.
Fixed a bug with the progress bar.
Changed some things in most xml files that pugixml did not like.
Updated the Visual Studio project.
Any NULL symbol has been changed to nullptr.
This most probably broke the CMake that was recently added.
And probably some other things.
2014-01-22 20:16:17 +01:00
Mark Samman
05fe1243c4 Remove unused variables 2014-01-20 03:29:49 +01:00
Mark Samman
c5d7d0ce06 Fix pos_retries bug
This commit also removes an unnecessary check
2014-01-20 03:05:35 +01:00
Hampus Joakim Nilsson
a82cb9cd44 Fixed focus dropping during progress again.
Also now possible to open .otgz maps from the command line.
2012-07-20 09:33:21 +02:00