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
25e0e20797
Do not overwrite the null byte
6 years ago
Anders Jenbo
9fd34ec927
Correct name length
6 years ago
Tyler
ecde1f647e
Adjust UI to any resoution
6 years ago
Tyler
d7ca28ff8e
Added single-player difficulty menu.
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
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
0da3461d35
Use explicit types instead of auto
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
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
Anders Jenbo
3ad7e21e71
Fix flashing menu transitions
...
Fixes #591
6 years ago
Anders Jenbo
f7541fbeb9
Ask before overwriting hero
6 years ago
Anders Jenbo
961e7f58c4
Implement UI errors
6 years ago
Gleb Mazovetskiy
a13f1580d5
Prefill player name from list
6 years ago
Gleb Mazovetskiy
6b9a9faebc
Fix hero dialog image
...
Regression introduced in b536d0efa2
Fixes #318
7 years ago
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.
7 years ago
Pyr0Byt3
e7e1ba96dc
fix hero order
7 years ago
Gleb Mazovetskiy
458fbcef88
DiabloUI: Implement some dialogs
...
Partially addresses #303
7 years ago
Gleb Mazovetskiy
0710d1c425
DiabloUI: Rename UiButton to UiArtTextButton
7 years ago
Gleb Mazovetskiy
e4ef58f73d
DiabloUI: Add a scroll bar to hero selection
...
Has the same weird behaviour as the actual Diablo scrollbar but without
the subtle mouse interaction bugs.
7 years ago
Gleb Mazovetskiy
7573446763
Make hero selection list scrollable
...
No scrollbar yet, keyboard scrolling only
7 years ago
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).
7 years ago
Anders Jenbo
18532e7c9b
Format SourceX and SourceS
...
Fixes #262
7 years ago
Gleb Mazovetskiy
cf0f867ca0
DrawArt via SDL
7 years ago
Anders Jenbo
6207832d6e
Update to latest upstream headers
7 years ago
Anders Jenbo
7b745e34a9
Enable delete key in hero menu
7 years ago
danellos
4c96cc8479
Only play sound if delete is enabled.
7 years ago
danellos
d032094bed
Made function names more consistent with Yes/No
7 years ago
danellos
89cef3f9c9
Note about NO selected by default; fixed a bug with Delete.
7 years ago
danellos
0f9fc228ce
Full "Delete Hero" implementation
7 years ago
Xadhoom
f00e427ed2
Remove pch.h
7 years ago
Xadhoom
c1ba436e69
miniwin_misc.h macro-clean
7 years ago
Xadhoom
30fbfa36a1
Progress with miniwin macros
7 years ago
Xadhoom
5283a9ffd1
Put everything into namespace dvl
7 years ago
Anders Jenbo
ddfa0a1337
Cast button functions to void explicitly
7 years ago
Anders Jenbo
76290b8e23
Implement password prompt
7 years ago
Anders Jenbo
40a2e16548
Fix crash when creating multiple games in one frame
7 years ago
Xadhoom
4d557709e0
Clean headers for network code
7 years ago
Xadhoom
af47577446
Begin restructuring headers
7 years ago
Anders Jenbo
281ade83c2
Move select game logic to UiSelectGame()
7 years ago
Anders Jenbo
50809cb255
Clean up event code and hook up all cancle buttons
7 years ago
Anders Jenbo
89c2b533cb
Implement ui layout framework
7 years ago
Anders Jenbo
806f3e9902
Fix starting locale game
7 years ago
Anders Jenbo
90466f3fbb
Correct art for all existing menus
7 years ago
Anders Jenbo
599936c9b2
Handle text input correctly
...
Also you can now paste test from the clip board
7 years ago