pionere
97d53ced7e
get rid of a few warnings (strncpy)
5 years ago
Anders Jenbo
47004ddd35
Add widescreen menus
5 years ago
Anders Jenbo
4ffbb32952
[hellfire] Allow continuing Diablo saves in Hellfire and vice versa
5 years ago
Anders Jenbo
e609e170d0
Merge a large chunk of Hellfire the code paths
5 years ago
Gleb Mazovetskiy
b10b4381ef
Multiple controllers support ( #935 )
5 years ago
Anders Jenbo
85f44063df
Fix menus wrapping in the up direction
5 years ago
Anders Jenbo
bc3602486f
Fix type warnings in DiabloUI
5 years ago
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.
6 years ago
Anders Jenbo
d9a1c2ae17
Fix keyboard not working for non-Switch in menu
...
Fixes #869
This was missed when backporting Switch Keyboard fix in
3ef2228d85
6 years ago
Anders Jenbo
3ef2228d85
[switch] Leave TextInput running
...
Text mode is on by default. Calling SDL_StartTextInput() will start the
virual keyboard, but does not allow for a default value. Calling it as
well as switch_start_text_input() will start the keyboard a secound
time.
We still turn TextInput off on other platforms when it's not needed as
it can require additional resources.
6 years ago
Anders Jenbo
88c85c54de
[switch] Leave TextInput running
...
Text mode is on by default. Calling SDL_StartTextInput() will start the
virual keyboard, but does not allow for a default value. Calling it as
well as switch_start_text_input() will start the keyboard a secound
time.
We still turn TextInput off on other platforms when it's not needed as
it can require additional resources.
6 years ago
Anders Jenbo
3b4db47995
Correct placment of Diablo logo on title screen
...
Fixes #841
6 years ago
Anders Jenbo
4a4486d616
Implement double clicking in menu for SDL1.2
...
Fixes #836
6 years ago
Tyler
ecde1f647e
Adjust UI to any resoution
6 years ago
Anders Jenbo
d749e5e6f2
Gard against overflows in UI
6 years ago
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.
6 years ago
Anders Jenbo
5a7d86b46e
Make ScrollBarArrowFrame C++03 compatible
6 years ago
Anders Jenbo
8726e80199
Make controller enums C++03 compatible
6 years ago
Anders Jenbo
dc8be6c0ab
C++03 compatibility ( #736 )
...
* Use C++03 compatible constructors
* Remove conflicting definitions
6 years ago
Anders Jenbo
7a90b9102a
When needed, clear buffer before rendering menu
6 years ago
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.
6 years ago
Anders Jenbo
69ad34f58f
Consistently use NULL instead of nullptr
...
While nullptr does have extra checking, most of the code uses NULL and
nullptr makes it harder to port the code to some targets like the
original XBox
6 years ago
Manuel Alfayate Corchete
03662be548
Remove atexit() calls and implement a diablo_deinit() function instea… ( #694 )
...
* Remove atexit() calls and implement a diablo_deinit() function instead that cleans up every subsystem if it has been init before.
6 years ago
Anders Jenbo
82f72713ed
Load current heros level from save game when on difficulty screen
...
Fixes #566
The hero is unloaded before entering this screen from a game, hacking
the game to track the hero level would not work with single player
(planned to also have a select screen) so the only proper solution is to
load the info from the save game. Using gszHero allows us to stay synced
with the engine.
6 years ago
Anders Jenbo
e6f1faea0e
Revert "Correctly detect player level on difficulty selection screen ( #626 )"
...
This reverts commit e6b6501079 .
6 years ago
SeanHenderson
e6b6501079
Correctly detect player level on difficulty selection screen ( #626 )
6 years ago
Gleb Mazovetskiy
1eefe841b6
mainmenu: Focus on the exit item before exiting
...
This affects both the B and the Esc key
Fixes #603
6 years ago
Gleb Mazovetskiy
803217538a
DiabloUI: Fix software scaling along the X axis
6 years ago
Anders Jenbo
3ad7e21e71
Fix flashing menu transitions
...
Fixes #591
6 years ago
Anders Jenbo
32d91cb446
Render menu directly to the output surface
...
Fixes fades not reset when switching to a new menu before fade had
ended.
Fixes incorrect start position for credits.
6 years ago
Anders Jenbo
3f3dae87e1
Fix MSVC build
6 years ago
Anders Jenbo
118e3668b4
Remove unused code
6 years ago
Anders Jenbo
08aa6a860a
Move generic helpers out of miniwin
6 years ago
Anders Jenbo
67c58583d8
Implement fullscreen toggeling via alt+enter
6 years ago
Anders Jenbo
baf2d14440
Remove unused parts of miniwin
6 years ago
Anders Jenbo
913de17a56
Use SDL_Color nativly instead of converting betwen it and PALETTEENTRY
6 years ago
Anders Jenbo
8d0c600e27
Fix compiler warning
6 years ago
Anders Jenbo
3703978483
Fix SDL1 build
6 years ago
Anders Jenbo
d04e0e44bb
Implement scroll wheel navigation
...
up/down/left/right = arrow keys
ctrl+up/down = zoom automap in/out
6 years ago
Anders Jenbo
2c541816e6
Track the mouse through the life of the application
6 years ago
Anders Jenbo
faaddcfd28
Allow controller events to also interupt attract mode
6 years ago
Anders Jenbo
c3f283429b
Fix high CPU load when game is minimized
6 years ago
Anders Jenbo
0bc40c6799
Remove DUMMY notice from UiProfileGetString
...
The original just returns the lable for the BNet user profile values and
are never used in the main application
6 years ago
Anders Jenbo
961e7f58c4
Implement UI errors
6 years ago
Anders Jenbo
16d3fa69c6
Fix checking if sound is playing
...
Fixes #392
6 years ago
Anders Jenbo
1ebeaa7cd7
Fix missing sounds in menu
...
Fixes #392
6 years ago
Anders Jenbo
e847108b78
Clean up event handeling
6 years ago
Anders Jenbo
f9d4073620
Detect when gamepads are added or removed
6 years ago
Fabian Bieler
8ee3e75199
Do not limit clipboard paste to 31 characters.
...
Previously the clipboard contents were limited to
SDL_TEXTINPUTEVENT_TEXT_SIZE-1 (31 characters).
This is not necessary since the contents of the clipboard are written
directly to the UI element's buffer.
This is especially useful when pasting IPv6 addresses.
6 years ago
rsn8887
d63c61e27c
Add virtual keyboard support on Switch
6 years ago