Commit graph

187 commits

Author SHA1 Message Date
ephphatha
903b661307 Use ObjectAtPosition for debug object type display
The other use of dObject is displaying the contents of that array so makes sense to leave as is. We're also able to remove the map since we can reference the current object type value directly on the returned object.
2021-12-28 16:01:37 +01:00
KPhoenix
a08026097a
Chat Interface Revision (#3840)
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2021-12-25 10:11:42 +00:00
Gleb Mazovetskiy
c57644970f Move UiFlags and UiPanels into their own files
The first breaks circular dependency between `DiabloUI` and `text_render`.
The latter one moves `UiPanels` to a more appropriate place.
2021-11-25 12:22:27 +01:00
Gleb Mazovetskiy
7e1fea6f76 clang-format all files in {Source,test}/
Also includes a few manual tweaks to comments and newlines for better results.

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2021-11-24 23:44:12 +01:00
Gleb Mazovetskiy
213abdda71 debug.cpp Fix -Wswitch 2021-11-17 07:09:26 +00:00
Anders Jenbo
56170b3372 Clean up id normalization 2021-11-07 23:15:10 +01:00
qndel
53f89fb9d9
debug fps command (#3418) 2021-11-07 11:23:31 +00:00
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG (#3135) 2021-11-07 03:11:16 +01:00
qndel
46ed79ad42
add megatiles to tiledata (#3211) 2021-11-06 18:53:53 +01:00
qndel
7250aeae66 tweak automap colors 2021-10-25 16:57:16 +02:00
qndel
e567953bc9 Sharing automap exploration in multiplayer 2021-10-25 02:58:41 +02:00
qndel
5193abebcb add objectindex to tiledata 2021-10-20 22:30:18 +02:00
qndel
00307c7dad add more stuff to tiledata 2021-10-20 22:30:18 +02:00
Anders Jenbo
c6468522c8 Fix buffer overflow when sending game messages as chat 2021-09-25 09:06:25 +02:00
qndel
c44ae7b0d4
Faster and better debug unique drop
Drop unique debug command tweak
2021-09-24 16:03:19 +02:00
Anders Jenbo
4f791948ff Fix missing switch cases 2021-09-23 16:55:13 +02:00
obligaron
a99a824647 Introduce playerinfo debug command and remove d hotkey 2021-09-17 21:05:31 +02:00
obligaron
ccbdf3bf55 Introduce questinfo debug command and remove PrintDebugQuest Keybinding 2021-09-17 21:05:31 +02:00
obligaron
3368ff5a3b Introduce iteminfo debug command and remove ItemInfo Keybinding 2021-09-17 21:05:31 +02:00
obligaron
f9192d2312 Remove debug command line argument -^ (Enable debug tools) and added
scrollview debug command
2021-09-17 21:05:31 +02:00
obligaron
5d315b46b0 Merge coords and cursorcoords in tiledata debug command 2021-09-16 19:18:06 +02:00
obligaron
9678d002d3 Reduce exported functions in debug.h 2021-09-16 19:18:06 +02:00
Juliano Leal Goncalves
379a27b64a ♻️ Convert 'ItemType' enum to enum class
🎨 Rename 'ItemType' elements to enum class standards
2021-09-13 00:25:49 +02:00
qndel
a0461bd1c0 stop displaying 0's in tiledata debug command 2021-09-12 18:15:45 +02:00
qndel
d05316c67d tiledata debug command 2021-09-12 15:20:27 +02:00
qndel
a3603d824e debug X toggle 2021-09-12 12:15:41 +02:00
Anders Jenbo
064a70a9b1 Fix double encoding of monster names 2021-09-12 01:37:28 +02:00
Anders Jenbo
cd79f0204d 🚨 Fix compiler warnings 2021-09-12 01:37:28 +02:00
obligaron
f957c3a099 Allow to spawn more than 8 monsters 2021-09-11 14:41:30 +02:00
obligaron
7d86991534 debug spawn command with configurable monster count 2021-09-11 14:41:30 +02:00
qndel
d47d2e3030 debug monster commands 2021-09-11 14:41:30 +02:00
Juliano Leal Goncalves
ce23cd6bce 🚚 Rename 'QuestData' global array to 'QuestsData'
This will allow us to disambiguate from the 'QuestDataStruct' after the 'Struct' suffix is removed.
2021-09-06 12:54:40 +02:00
obligaron
be4aeca196 DebugCmdWarpToLevel: Use correct WM_DIABTOWNWARP instead of the up-to-town WM_DIABTWARPUP 2021-09-02 21:55:37 +02:00
obligaron
2e07a59582 DebugCmdLoadMap: Fix transition from level to map 2021-09-02 21:55:37 +02:00
obligaron
82a5af7332 DebugCmdWarpToLevel: Fix transition from map to level 2021-09-02 21:55:37 +02:00
qndel
96d784912f fix currlevel in map command 2021-09-01 09:58:07 +02:00
Juliano Leal Goncalves
01823e1324 ♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition' 2021-08-30 06:45:51 +02:00
Anders Jenbo
4044fadeb5 Clean up some players references 2021-08-30 03:26:17 +02:00
Anders Jenbo
eb04c5f554 Fix GCC 6.2 builds 2021-08-29 18:05:28 +02:00
Anders Jenbo
de01f15398 Make debug compatible with GCC 6.2 2021-08-29 17:54:40 +02:00
obligaron
369829164d DebugCmdResetLevel: Use stoul for parameter seed parsing 2021-08-29 14:13:18 +02:00
obligaron
d954a9751c Log executed debug commands with result 2021-08-29 11:13:59 +02:00
obligaron
cc881a1c85 Add "seedinfo" debug command 2021-08-29 11:13:59 +02:00
obligaron
ec54654bee Debug command restart can now set a specific seed 2021-08-29 11:13:59 +02:00
qndel
8436e1f641
Merge pull request #2711 from qndel/show_coords 2021-08-28 17:15:24 +02:00
obligaron
a40bd8d3b9 DebugCmdLoadMap: Show Map Ids 2021-08-26 08:28:46 +02:00
obligaron
b83528161f DebugCmdQuest: Show Quest ids 2021-08-26 08:28:46 +02:00
obligaron
a27ab517dc Enable multiline DiabloMsg and use it in debug.cpp 2021-08-26 08:28:46 +02:00
BC Ko
4df798808e
2435 refactor global variable Items part 2 (#2673) 2021-08-26 08:06:48 +02:00
Anders Jenbo
7ed3db5f68 Add command for revealing the map 2021-08-22 02:54:31 +02:00