Commit graph

65 commits

Author SHA1 Message Date
Nailson
69c2e8b62a Use constexpr 2023-01-29 23:32:19 -03:00
Nailson
4ddd688506
Add actions history panel (#407)
* Check real changes when closing
2023-01-27 17:41:20 -03:00
Nailson
f411c41c2b Some changes 2023-01-26 11:25:11 -03:00
Nailson
70f55e451b Changes and cleanup 2023-01-26 11:17:55 -03:00
Nailson
782d68bf94 More changes and cleanup 2023-01-26 10:46:46 -03:00
Nailson
b8c6365a7c Code style changes 2023-01-25 21:44:24 -03:00
Nailson
25b5482a35 Draws position indicator, some code cleanup.
Draws position indicator for 3 seconds, when requested by some window like Go To Position.
2023-01-23 10:53:57 -03:00
Nailson
e5dba93c0c Fix: drawing always refreshing ui 2022-11-12 14:36:41 -03:00
Nailson
79b81228b2
Show indicators for pickupable and moveable items (#400)
* Show indicators for pickupable and moveable items.
* New editor sprites, remove item id dependentes.
* Add indicators toolbar.
2022-11-11 22:45:00 -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
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