Commit graph

73 commits

Author SHA1 Message Date
Eduardo Dantas
047113ade3 Merge branch 'master' 2022-08-19 02:43:27 -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
Nailson
ad6b3065ae New Replace Items dialog, allows to replace multiple items at once.
Fix: cannot undo after replacing items
2021-10-02 22:41:32 -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
58c2f07a86 Fix menu not being enabled 2020-07-30 09:06:11 +02:00
Elime1
bb38067971 Menu should not be usable before main frame is shown 2020-07-11 11:18:18 +02:00
Elime1
5a9162568e Add sizers and fix warnings 2020-06-21 17:18:03 +02:00
Mignari
c76fddd473 Add 'Remove Item' in 'Select' menu. 2020-05-22 19:32:03 -03:00
Mignari
6e1a55f64c New Select menu 2020-05-21 23:38:02 -03:00
Mignari
7a391ebc65 Replace limit reached message. 2020-05-21 20:50:43 -03:00
Mignari
c6eb0019da Add 'Replace on Selected Area' menu, some cleanup 2020-05-21 20:09:02 -03:00
Mignari
792396c689 Avoid replacing with the same item. 2020-05-19 00:28:38 -03:00
Mignari
e07784e85f Avoids crash when replacing an item 2020-05-18 23:16:31 -03: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
Mignari
c7c0a6fe26 Add position toolbar. 2019-06-03 23:50:56 -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
202a907404 Add option to find item on a selected area.
Menu Edit > Find on Selected Area > Find Item
2019-05-24 13:44:41 -03:00
Mignari
8227054ef2 Make spawns visible when placing a new spawn. 2018-08-24 21:30:19 -03:00
Mignari
c8dba24a9f Show as minimap.
Show only the tile minimap colors.
Shortcut Shift+E
2018-04-22 10:54:06 -03:00
Mignari
b5de55cc2f Show hook indicators for walls. 2017-11-10 13:15:08 -03:00
Nailson
8358e7e601 Configurable copy position format. Closes #190 2017-05-26 00:27:36 -03:00
Nailson
63aebafe54 New Find/Jump to Item Dialog, some code cleanup. 2017-05-19 15:19:10 -03:00
Nailson
f65ecc00b5 Merge remote-tracking branch 'refs/remotes/origin/master' into tooltips 2016-11-09 13:29:41 -03:00
Nailson
cbd3ae3de9 Add animations preview. Closes #143
Keyboard shortcut L
2016-11-09 12:17:17 -03:00
Nailson
c03898bc7f Fix tooltips option in settings. Some changes. 2016-11-05 23:36:26 -03:00
Nailson
de27e90d4c Merge remote-tracking branch 'refs/remotes/origin/master' into tooltips 2016-11-05 19:23:22 -03:00
Nailson
ea330ca737 Fix Win compilation. 2016-11-05 19:10:21 -03:00
Elime1
610aeeaeaa Remove use of wxT macro. Closes #141 2016-11-05 15:28:14 +01:00
Nailson
3b4a53b33c Fix Show Pathing menu is not checked at load. 2016-11-05 09:06:36 -03:00
Nailson
e340efcc0f Code changes for Tooltips. 2016-10-25 11:16:31 -03:00
Nailson
d7e863cb86 Rename global variable 'creature_db' to 'g_creatures'. 2016-10-25 10:22:46 -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
61b58aea42 Search unique id, action id, containers or writable items on selected area. 2016-10-23 09:35:08 -03:00
Nailson
335e750590 Fix #126 2016-10-22 11:45:23 -03:00
Nailson
2f007e5dea Fix 'Go To Previous Position' keyboard shortcut on Ubuntu. 2016-10-18 14:32:44 -03:00
Nailson
da44549cee Export minimap by selected area. 2016-10-18 13:54:41 -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
23a8fb15a1 Trim trailing whitespaces. 2016-09-29 19:24:45 -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
8c3f94e253 Disable some menus when there is no map. 2016-03-02 21:14:24 -03:00
Nailson
9a82a02001 Centralize dialogues on the screen. 2016-02-29 21:47:54 -03:00
Nailson
7570acf087 Temporary fix for shortcuts on Linux. #10
Tested on Ubuntu 14.04, but a few are still not working.
2016-02-28 20:19:44 -03:00
Nailson
0936e38ec9 Use map const. 2016-02-28 19:44:08 -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
491724ca7b Define some constants for the map. 2016-02-25 14:21:27 -03:00