Vladimir Olteanu
252c5316d8
Have RenderUTF8_Solid_Wrapped return SDLSurfaceUniquePtr
5 years ago
qndel
ad6f9cb8e5
fix menu click offset
5 years ago
qndel
30de22f026
fix displayed save number
5 years ago
Thomas Christlieb
d06a36ea3c
make menus wrap around. fixes #2605 ( #2607 )
...
In this commit:
- Select Connection Menu
- Create or Join Game Menu
- Choose Class for new hero menu
-> Did not change Select Hero Menu, seems to be deliberately not wrapping around
5 years ago
obligaron
82cea78def
Apply clang-format
5 years ago
Aaron Sun
3ee90ca629
Add options for sub-panel alignment
5 years ago
Gleb Mazovetskiy
3e5a593021
🐞 Fix reading PCX files with odd widths
...
PCX files always have an even number of bytes on each uncompressed source line, which means there is an unused byte of each compressed line if the width is odd.
References:
1. https://kaba.hilvi.org/pastel-1.5.0/pastel/gfx/image_file/pcx/pcx_file.htm
2. https://www.moon-soft.com/program/FORMAT/graphics/pcx.htm#decoding%20.pcx%20files
5 years ago
qndel
81fadc79ae
fix name check and limit to multi ( #2486 )
5 years ago
ephphatha
8930b789d6
Rename UiType members to follow naming convention
...
Convention seems to be that scrollbar is treated as a single unhyphenated word so the UiScrollbar class was renamed to match.
5 years ago
ephphatha
0575716eac
Rename UiFlags members to group related options
5 years ago
ephphatha
bd140142c3
Convert UiType to a scoped enum
5 years ago
ephphatha
7d93cada67
Refactor UiItemBase and derived types to reduce duplicate constructors
...
Using optional arguments where possible so that all use cases can share the same constructor. Also moving member initialisation to the initialiser list syntax as this makes it clear that the derived class is only setting properties on that class, leaving the parent constructor to initialise members of the parent class.
5 years ago
ephphatha
4ad53232a0
Convert the UiFlags enum to a scoped enum type
...
Replace operator&& with named function
5 years ago
Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
Jonathan Bergeron
33ad9fa187
renamed Source/mainmenu.cpp and .h to menu.cpp/.h
5 years ago
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
5 years ago
obligaron
1956c6a1c2
Fix some 64bit warnings
5 years ago
Anders Jenbo
3ffedb7a69
💄 Apply code style to src
5 years ago
Anders Jenbo
b591824182
💚 Fix NOSOUND build
5 years ago
obligaron
91fe708e8f
Fix warnings in ui_item.h
5 years ago
obligaron
d2048c7ac0
Debug: Show save number in hero selection
5 years ago
obligaron
8b79041477
Allow creating hero with the same name
5 years ago
obligaron
f5b437dd9c
Use save number to load/save games (instead of hero name)
5 years ago
Vladimir Olteanu
ed9b105299
DiabloUI: make UiArtText follow mutating char*
5 years ago
Anders Jenbo
ef6275caac
Clean up private function names
5 years ago
JoBergeron
be3f1ba928
Pause game and mute music when game window loses focus ( #2337 )
5 years ago
Anders Jenbo
730c0750e7
Apply clang-tidy to code
5 years ago
Vladimir Olteanu
c57560674e
Use smart pointers for UI items
...
vector::push_back(new Foo(...)) leaks if resizing fails
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Anders Jenbo
6d492e8220
Rename UI globals
5 years ago
Anders Jenbo
56d3b5d710
clang-tidy/Android Stuidio cleanups 5
5 years ago
ephphatha
be23f6864b
Reorder int *= float operations that could be expressed using int fractions
...
This was triggering narrowing conversion warnings in msvc. I assume the compiler can optimise this into a float multiplication if it does turn out faster.
5 years ago
ephphatha
08ae390643
Add explicit casts for some implicit conversions
...
Some of these were triggering multiple warnings due to casts applied at times which forced potentially truncating operations.
5 years ago
Vladimir Olteanu
2d3ad5e3f0
Main menu: make title char *
5 years ago
Anders Jenbo
4eabc6024b
Apply various cleanups via Android Studio
5 years ago
Anders Jenbo
372b1dcba2
Clang-tidy: readability-identifier-naming.MemberCase: camelBack
5 years ago
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
5 years ago
Gleb Mazovetskiy
cb0dae8590
🚚 Rename `CelOutputBuf` to `Surface` and extract
5 years ago
Anders Jenbo
d9e0658643
Clang-tidy: basic naming
5 years ago
Anders Jenbo
0f2ad469ea
♻️ Clean up variable initialization
5 years ago
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
5 years ago
Juliano Leal Goncalves
fd9f2099d0
♻️ Leverage 'Point' to represent mouse position
5 years ago
Anders Jenbo
57caa192fb
Clang-tidy: performance-move-const-arg
5 years ago
Anders Jenbo
51d5c8bcab
Clang-tidy: performance-unnecessary-value-param
5 years ago
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
5 years ago
Anders Jenbo
5bb8f184db
Clang-tidy: modernize-use-nodiscard
5 years ago
Anders Jenbo
8f3266244a
Clang-tidy: readability-else-after-return
5 years ago
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
5 years ago
Anders Jenbo
de4ced7e4f
Clang-tidy: readability-qualified-auto
5 years ago
Anders Jenbo
48113d064a
Clang-tidy: readability-redundant-declaration
5 years ago