Anders Jenbo
f13e66ad04
Mark all names as translatable
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Anders Jenbo
9e2206a673
Format code
5 years ago
arcas
6502a3ca4d
Adding resources for translation ( #1973 )
5 years ago
Anders Jenbo
b69d18f12d
🌐 Enable translation of all remaning strings
5 years ago
Anders Jenbo
dbfa9c27a5
✨ Enable translation for all menus
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
c3b4b5193f
Unify a chunk of Hellfire code
5 years ago
Anders Jenbo
1b69f1f5eb
Implement Hellfire credit screen
6 years ago
Gleb Mazovetskiy
f0a90f4717
DiabloUI: Credits improvements
...
1. Fix lines moving up and down on slower devices.
2. Cache rendered text surfaces (in a ring buffer).
3. SDL_Delay(1) between event polls to reduce CPU usage.
4. Move data to a separate compilation unit.
Refs #231
7 years ago
Gleb Mazovetskiy
17b5011916
DiabloUI: Move art and text code out of diablo.cpp
7 years ago
Gleb Mazovetskiy
7f61128d32
Fix more compilation warnings
...
```
SourceX/storm/storm.cpp:27:10: note: ‘snprintf’ output between 11 and 270 bytes into a destination of size 260
snprintf(file_path, DVL_MAX_PATH, "%sdiablo.ini", path);
```
SDL1 warnings:
```
devilutionX/SourceX/dx.cpp:199:24: warning: narrowing conversion of ‘(int)dwX’ from ‘int’ to ‘Sint16’ {aka ‘short int’} inside { } [-Wnarrowing]
SDL_Rect dst_rect = { (int)dwX, (int)dwY, w, h };
SourceS/sdl2_to_1_2_backports.h:616:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
if (final_dst.w < 0)
SourceS/sdl2_to_1_2_backports.h:777:24: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘long unsigned int’ [-Wsign-compare]
if ((rc > 0) && (rc < sizeof(path))) {
~~~^~~~~~~~~~~~~~
SourceX/storm/storm.cpp:479:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
if (out_len <= item->len) {
SourceX/storm/storm.cpp:716:60: warning: narrowing conversion of ‘((640 - scaledW) / 2)’ from ‘int’ to ‘Sint16’ {aka ‘short int’} inside { } [-Wnarrowing]
SDL_Rect pal_surface_offset = { (SCREEN_WIDTH - scaledW) / 2, (SCREEN_HEIGHT - scaledH) / 2, scaledW, scaledH };
DiabloUI/credits.cpp:525:30: warning: narrowing conversion of ‘- y’ from ‘int’ to ‘Sint16’ {aka ‘short int’} inside { } [-Wnarrowing]
SDL_Rect src_rect = { 0, -y, text_surface->w, 251 };
```
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
5cadee74c2
Fix a few compiler warnings
7 years ago
Bao Chi Tran Nguyen
c6d5dc48ff
Implemented text shadow at the credits.
7 years ago
Manuel K
32b0e99e90
Use SCREEN_Y (dX part)
7 years ago
Anders Jenbo
0f8545d3c4
Clean up SDL error logging
7 years ago
Anders Jenbo
b791b1093c
Clean up DDraw implementation
7 years ago
Anders Jenbo
aa017838e0
Fix some warning in the UI
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
Xadhoom
4d557709e0
Clean headers for network code
7 years ago
Xadhoom
af47577446
Begin restructuring headers
7 years ago
Anders Jenbo
89c2b533cb
Implement ui layout framework
7 years ago
Anders Jenbo
a58e3af89a
Refactor menu navigation
...
This also implements fully accurate list navigation
7 years ago
Anders Jenbo
d86ceb14cb
Refactor ui code
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
c75d50a82c
Split up menu code
7 years ago
Anders Jenbo
cead5831fd
Implement remaning keys
7 years ago
Anders Jenbo
bd1949a8e6
Remove redundant code
7 years ago
Anders Jenbo
6ffdbe66ed
Fix DrawMouse on scaled view and enabled resizing
7 years ago
Anders Jenbo
12d35a3dea
Enable v-sync
7 years ago
Anders Jenbo
e45df94905
Only init once
...
This fixes music playing to early
7 years ago
Anders Jenbo
7f9b67c210
Remove redundant code
7 years ago
Anders Jenbo
c643d65177
Font is nearly perfect now
7 years ago
Anders Jenbo
ed24d7bbf5
Adjust font hinting
7 years ago
Anders Jenbo
5fed0b1316
Match the credit menu look
...
This also adds transitions to menus
7 years ago
Anders Jenbo
490b5d8ab4
Simplify FPS calculation
7 years ago
Anders Jenbo
03641f4cce
Avoid screen overdraw
...
This fixes crashes from moving the mouse outside of the screen.
7 years ago
Anders Jenbo
75bf0419b1
Remove unused code
7 years ago
Anders Jenbo
aeedc755b5
Implement basic MP menu
7 years ago
Xadhoom
0332d81091
Unify including ../types.h everywhere; more fixes
7 years ago
Xadhoom
005e4f911a
Fixes and remove unused stuff
7 years ago
Anders Jenbo
1e4e826a36
Remove delta to devilution
7 years ago