Commit Graph
29 Commits
Author SHA1 Message Date
Anders Jenbo 47004ddd35 Add widescreen menus 2021-01-18 20:56:08 +01:00
Anders Jenbo e609e170d0 Merge a large chunk of Hellfire the code paths 2021-01-06 08:07:20 +01:00
Anders Jenbo 4e8843ee7c Implement most of the Hellfire menu
Still missing is the support screen (functionally identical to the
credit screen)

This also fixes a long standing issue with the menu code where it would
some times return the index and some times the value of the selected
menu item. It now always returns the index and reciver must look up the
value.
2020-10-12 14:37:36 +02:00
Anders Jenbo 3b4db47995 Correct placment of Diablo logo on title screen
Fixes #841
2020-09-30 00:34:22 +02:00
Tyler ecde1f647e Adjust UI to any resoution 2020-09-28 07:01:27 +02:00
Anders Jenbo da10151dad Settle on DevilutionX behaviour in menu 2020-09-09 05:14:30 +02:00
BDC 62de5f1600 Refactor DiabloUI to dynamic C++03 compatible code
This will help with porting the game to the original Xbox, and also make
it easier to implement dynamic resolutions and translations.
2020-09-09 05:14:30 +02:00
Anders Jenbo 8726e80199 Make controller enums C++03 compatible 2020-05-19 17:19:50 +02:00
Anders Jenbo ca82f81582 Move menu elements to the center of the screen
Previously the rendering was just shifted which gave the mouse an odd
position and made it impossible to place new elements in the left side.
2020-05-15 19:12:03 +02:00
Anders Jenbo 25993b4043 Merge branch 'master' of github.com:diasurgical/devilution 2020-02-14 23:03:31 +01:00
Anders Jenbo 3ad7e21e71 Fix flashing menu transitions
Fixes #591
2020-02-09 14:39:18 +01:00
Anders Jenbo e847108b78 Clean up event handeling 2019-12-03 01:59:13 +01:00
Anders Jenbo f9d4073620 Detect when gamepads are added or removed 2019-12-03 01:59:13 +01:00
Gleb Mazovetskiy a2e821d241 Game controller support
Initial game controller support.

Actions are based on the Switch branch but the controller code itself is
implemented differently, allowing for easy remapping and minimizing
changes to the Source/ directory.

Many subtle and not so subtle controller bugs have been fixed
in this implementation, including:

1. Smoother & more responsive movement with the joysticks.
2. Consistent controls for all the menus in the game (stores, quest log,
etc).
3. Cursor appearance / disappearance at appropriate times.

Low-level controls are abstracted and 3 SDL interfaces are supported:
game controller, joystick, and keyboard. See SourceX/controls/ for more
details on this.

Wishlist for the future:

1. Primary button and use button should attack continously.
   This is hard as it requires checking the cooldowns / attack speed.
2. Quick spell menu navigation is very buggy. It is also buggy in the
   switch branch. I haven't had a change to investigate.
2019-11-06 02:13:07 +01:00
Anders Jenbo ba9288c6cf Unify error dialogs, for looks and portability
- Use UiOkDialog() to display all error messages
- Add SDL simple message, and console fallbacks to UiOkDialog()
- Boot graphics early on to facilitate most error messages with build in
gui
- Some more miniwin clean ups
2019-10-06 01:27:11 +02:00
Gleb Mazovetskiy b536d0efa2 DiabloUI: Handle logo like all the other elements
Adds the `animated` flag to `UiImage`, allowing us to
remove special handling for the logo.
2019-10-03 21:17:08 +02:00
Gleb Mazovetskiy 458fbcef88 DiabloUI: Implement some dialogs
Partially addresses #303
2019-10-02 22:44:44 +02:00
Gleb Mazovetskiy 17b5011916 DiabloUI: Move art and text code out of diablo.cpp 2019-10-01 21:30:27 +02:00
Anders Jenbo d2c4b461d4 Add option to compile shareware version 2019-10-01 17:42:40 +02:00
Gleb Mazovetskiy 37936c6d15 DiabloUI: Refactor UI_Item to tagged unions
Makes the code easier to understand.
Also makes building lists easier.

Also fixes focus indicator in SELLOAD_DIALOG (this type of bug is
impossible with the new structs).
2019-09-29 18:55:16 +02:00
Anders Jenbo 18532e7c9b Format SourceX and SourceS
Fixes #262
2019-09-26 01:28:27 +02:00
Gleb Mazovetskiy cf0f867ca0 DrawArt via SDL 2019-09-25 01:01:25 +02:00
Anders Jenbo aa017838e0 Fix some warning in the UI 2019-03-19 04:07:52 +01:00
Xadhoom f00e427ed2 Remove pch.h 2019-03-17 18:28:37 +00:00
Xadhoom c1ba436e69 miniwin_misc.h macro-clean 2019-03-13 13:23:05 +00:00
Xadhoom 30fbfa36a1 Progress with miniwin macros 2019-03-11 23:48:35 +00:00
Xadhoom 5283a9ffd1 Put everything into namespace dvl 2019-03-11 20:10:23 +00:00
Xadhoom 4d557709e0 Clean headers for network code 2019-02-24 10:46:16 +00:00
Xadhoom af47577446 Begin restructuring headers 2019-02-23 07:49:22 +00:00