Joakim Thorén
c66cf03a8c
Adhere to coding guidelines https://github.com/vcmi/vcmi/blob/develop/docs/developers/Coding_Guidelines.md
2024-11-24 17:05:19 +01:00
Joakim Thorén
75ad171285
Remove redundant 'selectedFilePath'. This information is stored in the currently selected widget anyway.
2024-11-24 16:58:43 +01:00
Joakim Thorén
bdaaa0b584
RecentFileDialog widgets are pointers
2024-11-24 16:57:44 +01:00
Joakim Thorén
5747781dda
Store "selectedFilePath" internally in RecentFileDialog instead of connecting to dialog internals from outside RecentFileDialog
2024-11-24 16:35:38 +01:00
Joakim Thorén
9b0e6763e7
Oops, accedentially undid reordering of parent argument.
2024-11-24 16:30:44 +01:00
Joakim Thorén
d1e40411dd
Connect "actionOpenRecentMore" directly to "on_actionOpenRecent_triggered"
2024-11-24 16:29:34 +01:00
Joakim Thorén
02a656d16f
Fix compilation error
2024-11-24 15:24:19 +01:00
Joakim Thorén
2678bf1e05
RecentFileDialog is class instead of struct
2024-11-24 15:23:30 +01:00
Joakim Thorén
e3b520a1f1
Header inclusion style consistency
2024-11-24 15:22:19 +01:00
Joakim Thorén
3304e55346
Rename "filename" to "filePath". Previous name was misleading at best.
...
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2024-11-24 15:16:17 +01:00
Joakim Thorén
1b9b925ab9
Localized string for "Recently Opened Files"'
...
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2024-11-24 15:15:38 +01:00
Joakim Thorén
5bff1ec2c1
Update mapeditor/mainwindow.cpp
...
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2024-11-24 15:14:21 +01:00
Joakim Thorén
2ed83e53b7
Prompt about unsaved changes when trying to load a map instead of prompting when opening the dialogue.
2024-11-18 23:09:08 +01:00
Joakim Thorén
5e898b9aa8
Fix bug where onSelect was triggered twice on double click in Recently Opened Files
2024-11-18 23:07:16 +01:00
Joakim Thorén
7d53150bdb
Open Recent is a submenu with recently opened files and a "More..."-action.
2024-11-18 22:55:46 +01:00
Joakim Thorén
b892221b9f
Replace "actionOpenRecent" with "menuOpenRecent". Add "actionOpenRecentMore" as an element in the "menuOpenRecent"-submenu.
2024-11-18 22:05:03 +01:00
Joakim Thorén
e9e129263a
Add 'Open Recent' to mapeditor
2024-11-18 21:07:17 +01:00
Laserlicht
f28502c981
update german
2024-11-16 22:53:12 +01:00
Ivan Savenko
2da2fc48e2
Merge pull request #4861 from GeorgeK1ng/develop
...
Updated Czech translation + Shrine spell readability fix
2024-11-06 22:02:57 +02:00
George King
e95d375a02
Updated Czech translation
2024-11-02 10:53:36 +01:00
Ivan Savenko
d3af9f1c67
Removed pointer to VLC entity from CStackBasicDescriptor
2024-10-30 16:47:02 +00:00
Ivan Savenko
08fbcd5239
TerrainTile now uses identifiers instead of pointers to VLC
2024-10-30 16:22:11 +00:00
godric3
9e9f118b09
another attempt of using CGHeroInstance::NO_PATROLLING
in map editor
2024-10-29 21:41:42 +01:00
godric3
37f7ce0ad6
improve translation for patrol radius
2024-10-29 21:22:10 +01:00
godric3
ed087b7a5b
Use max ui32 value instead of -1 for NO_PATROLLING
2024-10-29 18:34:02 +01:00
godric3
da5bae301a
try to fix build, use plain -1
in place of CGHeroInstance::NO_PATROLLING
2024-10-28 22:46:48 +01:00
godric3
911961da46
try to fix build
2024-10-28 19:59:03 +01:00
godric3
a9e04428c8
Possibility to set hero patrol radius in map editor
2024-10-28 18:30:30 +01:00
Ivan Savenko
c2e49bd10a
Merge pull request #4821 from IvanSavenko/flaggable
...
Basic support for configurable flaggable objects
2024-10-27 21:19:22 +02:00
Ivan Savenko
2fa0021c28
Merge pull request #4825 from godric3/map-editor-fix-copying-town
...
Map editor: fix duplicated spells in copy-pasted town
2024-10-27 21:16:23 +02:00
godric3
7e66bd4a90
Don't use separate versioning for map editor
2024-10-26 13:48:12 +02:00
godric3
152962354d
Don't paste objects that cannot be placed, show warning only if error occurred
2024-10-26 12:20:13 +02:00
godric3
1246333350
Initialize town's possibleSpells
only if hasn't been initialized already(for example when copying existing town)
2024-10-26 12:15:40 +02:00
Ivan Savenko
8a5ac73438
Basic support for configurable flaggable objects
...
Converted CGLighthouse class into FlaggableMapObject
Bonus provided by Lighthouse/Flaggable is now defined in config and is
accessible to mods.
2024-10-25 16:48:10 +00:00
George King
10332547ac
Updated Czech translation
2024-10-17 09:42:46 +02:00
Ivan Savenko
60fe8a05b9
Merge pull request #4775 from dydzio0614/map-editor-event-day-fix
...
Count days from 1 instead of 0 in map editor timed event UI
2024-10-15 18:00:23 +03:00
Ivan Savenko
604e3b5c67
Merge pull request #4763 from IvanSavenko/herohandler_split
...
Split CHeroHandler.cpp/.h into 1 file per class
2024-10-14 19:05:48 +03:00
Dydzio
69b6e9c167
Count days from 1 instead of 0 in map editor timed event UI
2024-10-14 17:19:34 +02:00
Ivan Savenko
10ad0fc760
Split CHeroHandler.cpp/.h into 1 file per class
...
All parts of CHeroHandler.cpp are now in lib/entities/hero
Adjusted includes to use new paths
No functionality changes
2024-10-13 14:01:09 +00:00
Ivan Savenko
31095248ab
Removed typeName and subtypeName properties from CGObjectInstance
2024-10-13 13:05:50 +00:00
Ivan Savenko
4bdc503186
Workaround for prison hero reset on loading map in editor
2024-10-13 08:28:37 +00:00
Ivan Savenko
e221cdccab
Fix initialization of hero type in map editor
2024-10-11 15:01:55 +00:00
Ivan Savenko
3dd4fa2528
Reduce usage of pointers to VLC entities
...
Final goal (of multiple PR's) is to remove all remaining pointers from
serializeable game state, and replace them with either identifiers or
with shared/unique pointers.
CGTownInstance::town and CGHeroInstance::type members have been removed.
Now this data is computed dynamically using subID member.
VLC entity of a town can now be accessed via following methods:
- getFactionID() returns ID of a faction
- getFaction() returns pointer to a faction
- getTown() returns pointer to a town
VLC entity of a hero can now be accessed via following methods:
- getHeroTypeID() returns ID of a hero
- getHeroClassID() returns ID of a hero class
- getHeroType() returns pointer to a hero
- getHeroClass() returns pointer to a hero class
2024-10-10 12:28:08 +00:00
Ivan Savenko
5aebf287b9
Merge pull request #4735 from IvanSavenko/private_pos
...
Reduce usages of ambiguos CGObjectInstance::pos
2024-10-10 15:00:50 +03:00
Ivan Savenko
51481210c4
Merge pull request #4744 from wb180/vcmiqt_lib
...
Fix static linking
2024-10-10 14:56:40 +03:00
Ivan Savenko
a8f8c3f4b1
Replaced most of accesses to CGObjectInstance::pos with anchorPoint()
2024-10-09 15:43:46 +00:00
Evgeniy Meshcheryakov
7847fc4bba
Fix static linking
2024-10-09 11:27:43 +03:00
Ivan Savenko
13712a5da9
Merge pull request #4717 from wb180/mapeditor_fix
...
Map editor: Transparency fix
2024-10-07 17:38:30 +03:00
Ivan Savenko
1687606a4b
Merge pull request #4726 from wb180/vcmiqt_lib
...
Separate vcmiqt static lib
2024-10-07 17:37:51 +03:00
Evgeniy Meshcheryakov
40576e9bb9
Separate vcmiqt lib
2024-10-07 08:47:00 +03:00