Gleb Mazovetskiy
295b5bce81
🧹 DiabloUI: Clean up text render cache
...
Cleans up the handling of text render cache for `UiText` and `UiButton`.
This also happens to fix a memory leak (`FreeCache` was never called).
5 years ago
Gleb Mazovetskiy
92485ed222
DiabloUI: Support non-doublebuf HW surfaces
...
If using a hardware surface without double-buffering, perform
rendering in a single blit to avoid flickering and tearing.
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
5 years ago
Anders Jenbo
67a7ff98c5
🚨 Clean up compiler warnings
5 years ago
Juliano Leal Goncalves
8cf972e843
♻️ Move 'HeroClass::ClassCount' to external tracking template
...
This eliminates the problem where the compiler complains we are not handling all enumeration values by moving the "hack" counting member into somewhere else external to the enum.
5 years ago
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
5 years ago
Epifanov Ivan
e108e30338
Use custom IME handler on Vita ( #1442 )
5 years ago
Anders Jenbo
9d037bafff
🚨 Fix remaning clang warnings
5 years ago
Gleb Mazovetskiy
d966a1380e
Migrate DiabloUI/art to SDLSurfaceUniquePtr
5 years ago
Epifanov Ivan
fde936195c
Use custom IME handler on Vita ( #1442 )
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Gleb Mazovetskiy
5059ce4085
Fix narrowing conversion warnings on SDL1
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Gleb Mazovetskiy
87dcbcb6d7
Save 1.5 MiB RAM in-game by freeing more DiabloUI art
5 years ago
Anders Jenbo
bc3dc545da
🔥 Remove unused parts of game creation logic
5 years ago
Gleb Mazovetskiy
a6019f4e55
DiabloUI: Render to DiabloUiSurface()
...
Use that instead of using `GetOutputSurface()` directly.
For the rg99 port, we'll want to render this to the `pal_surface`
instead of output surface directly.
Might also be useful for 3ds, perhaps to render to the bottom screen.
5 years ago
Anders Jenbo
e2eea6c377
✨ Load variable size heros.pcx and individual portraits
...
closes #936
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
Anders Jenbo
cee6029da0
🔥 Rely less on storm.h
5 years ago
Anders Jenbo
6e3908aa58
🚨 Fix a few warnings from various builds
5 years ago
Gleb Mazovetskiy
0f46e9c4c1
Thumb stick / DPad repeating navigation in DiabloUI, gmenu, and quest log ( #1206 )
5 years ago
Anders Jenbo
e280432b92
🚨 Fix all SDL1 warnings
5 years ago
Gleb Mazovetskiy
ae75c0cdc2
DiabloUI: Consider ListOffset for focus selector
...
The original version of this had a min/max range, so `SelectedItem` could be compared to `m_value`
With the recent changes, `SelectedItem` now refers to an index in the array.
This unfortunately means the function that draws the list must now know about the potential existence of the scrollbar and consider its `ListOffset` into account.
Fixes #1006
5 years ago
Anders Jenbo
39999791b3
Revamp ini options and sync in multiplayer
...
[NetMsg]
F12=Now you DIE!
F11=Here's something for you.
F10=Follow me.
F9=I need help! Come Here!
[Game]
Speed=50
Fast Walk=1
Grab Input=0
Theo Quest=0
Cow Quest=0
[Audio]
Sound Volume=0
Music Volume=0
Walking Sound=1
[Graphics]
Fullscreen=1
Fit to Screen=1
Scaling Quality=2
Integer Scaling=0
Vertical Sync=1
Blended Transparency=1
Gamma Correction=100
Color Cycling=1
[Diablo]
Intro=0
[Hellfire]
Intro=0
SItem=
[Phone Book]
Entry1=127.0.0.1
[Network]
Bind Address=0.0.0.0
5 years ago
Anders Jenbo
b4e78c5e79
Remove some unused junk
5 years ago
Anders Jenbo
36a196389b
Fix remaning basic compiler errors and warnings
5 years ago
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