Commit graph

57 commits

Author SHA1 Message Date
Eduardo Dantas
3807946822 Fix conflict errors 2022-08-19 02:50:53 -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
João Carlos Dias
bf9b5561da
Fix map display OnMouseActionClick functin logic (fix objects selection) (#17)
Resolves #13
2022-05-12 13:45:08 -03:00
Marco Oliveira
29cb0ae6f8
Remove trailing whitespace (#376) 2022-03-03 18:36:26 -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
Matheus Matias
362d2f324b
Formatting (#325)
*A few formatting changes to better fit the project.
2020-08-13 22:08:03 -03:00
Matheus Matias
b4c26bd644
Performance Optimization & Teleport 'Open Door' fix (#316)
*Adds a minor performance update by removing 'tooltip' allocations every time 'DrawTile' was called, this should increase the performance when moving around the map(e.g. using arrow keys when zoomed out), slow computers should benefit the most from this.
The performance increase can be seen in the comparison bellow, where I used the same map, distance from the ground and movement from a specific point to benchmark.

*Teleports should no longer have the option to 'Open Door' when right-clicking them.
2020-08-08 11:38:49 -03:00
Evil Puncker
cfe36ce5b3
license headers (#315) 2020-07-30 11:42:28 -03:00
Elime1
ee81d8ffdd Try out scale factor for high dpi support 2020-06-26 08:58:54 +02:00
Sarah Wesker
bc00252861 Small detail 2020-04-27 11:58:11 -04:00
Sarah Wesker
b40dfa2031 Max stack overflow (filling)
There is a problem that crashes the application when you try to fill too large areas, enough that some drills do not support such recursion, my way of fixing it is not the best, but if someone can give me a suggestion I will agree to make any changes.
2020-04-22 01:32:40 -04:00
Elime1
2854dca4dd Merge remote-tracking branch 'origin/welcome_dialog_feature' 2019-06-26 23:02:18 +02:00
Elime1
c4551731fd Add welcome window 2019-06-25 18:07:36 +02:00
Sascha Striegel
3279024760 update logically wrong function name (#270) 2019-06-25 11:53:04 -03:00
Elime1
316ee29ead Fix project not building on macOS 2019-06-25 11:12:33 +02: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
c79c232078 Add 'Copy Item Server Id', 'Copy Item Client Id' and 'Copy Item Name' menus. Closes #251 2018-10-14 19:29:37 -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
Nailson
5e1e363b82
Implements flood fill in Ground Brush. (#230) 2018-04-22 10:22:04 -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
2ac2acbf7c Fix text disappearing, some changes. 2016-12-03 10:12:01 -03:00
Nailson
56e06f5489 Merge remote-tracking branch 'refs/remotes/origin/master' into tooltips 2016-12-02 22:33:22 -03:00
Nailson
1afdd10d49 Code improvements. 2016-11-12 10:30:06 -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
de27e90d4c Merge remote-tracking branch 'refs/remotes/origin/master' into tooltips 2016-11-05 19:23:22 -03:00
Elime1
610aeeaeaa Remove use of wxT macro. Closes #141 2016-11-05 15:28:14 +01:00
Nailson
e340efcc0f Code changes for Tooltips. 2016-10-25 11:16:31 -03:00
Nailson
b458163331 Rename global variable 'brushes' to 'g_brushes'. 2016-10-25 10:19:42 -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
243ec65e68 Add Select RAW button on the Browse Field window. 2016-04-24 12:14:38 -03:00
Nailson
8753947fb1 Ctrl+Shift is already used, changed shortcut to Ctrl+Alt+Click. #105 2016-03-02 11:41:37 -03:00
Nailson
5ff10bb646 Select raw brush by shortcut Ctrl+Shift+Click. Closes #105 2016-03-02 11:27:23 -03:00
Nailson
3ff8b6386a Using comma for coordinates. 2016-02-29 22:22:05 -03:00
Nailson
0936e38ec9 Use map const. 2016-02-28 19:44:08 -03:00
Nailson
0a76f46a8c Fix: zoom 100% is not set to the center of the screen. 2016-02-28 11:22:38 -03:00
Nailson
fb0b1e6be0 If zoom is 100%, move one tile at a time. 2016-02-27 21:20: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
491724ca7b Define some constants for the map. 2016-02-25 14:21:27 -03:00
Nailson
d7a4254604 Code style and some cleanup. 2015-12-06 11:42:37 -03:00
Nailson
054dd472a1 Changed some labels. 2015-05-08 12:50:15 -03:00
Nailson
ed5803a71c Fix clipboard exception on Linux. 2015-01-23 20:49:41 -03:00
Nailson
d265026857 Added Delete button in Browse Field window. 2015-01-21 13:41:44 -03:00
Nailson
cbc6df420b Added browse field window. 2015-01-19 00:44:47 -03: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