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
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
Anders Jenbo
3ad7e21e71
Fix flashing menu transitions
...
Fixes #591
6 years ago
Guillaume Roche
5f4ba26894
Use an enum for connection type
...
This fixes some "multi-character character constant" warnings.
7 years ago
Mathieu Maret
3c416b16d7
Fix display of Connection menu ( #354 )
7 years ago
Anders Jenbo
88039e9a21
Prepare release
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
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
17b5011916
DiabloUI: Move art and text code out of diablo.cpp
7 years ago
Marlon Beijer
3a267aa7f7
Add option to disable network support for builds
7 years ago
Gleb Mazovetskiy
2ba268e608
DiabloUI: Better char* handling
...
1. UI structs now use `const char*` because that's the type of C-string
literals.
2. Use `strcpy` instead of `sprintf` where possible.
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
Manuel K
af08ce4934
Use MAX_PLRS (dX part)
7 years ago
Xadhoom
f00e427ed2
Remove pch.h
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
Xadhoom
4d557709e0
Clean headers for network code
7 years ago
Xadhoom
af47577446
Begin restructuring headers
7 years ago
Xadhoom
b8379e7187
Menu for TCP and UDP; enable difficulty selection
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
a58e3af89a
Refactor menu navigation
...
This also implements fully accurate list navigation
7 years ago
Anders Jenbo
189c373c13
Correct var types
7 years ago
Anders Jenbo
d86ceb14cb
Refactor ui code
7 years ago
Anders Jenbo
03eea55ee7
Remove unimplemented network types from menu
7 years ago
Anders Jenbo
dd023c1072
Implement progressbar
7 years ago
Anders Jenbo
199fd17e2e
Remove mouse from credit page
7 years ago
Anders Jenbo
755612fc13
Fix unresponsive menu and match transitions to the original
7 years ago
Anders Jenbo
a2370114da
Add all network providers
7 years ago
Anders Jenbo
59fcb9d2e7
Add missing ui file
7 years ago