File src/rsod.cpp changed (mode: 100644) (index 22be402..5ca3694) |
... |
... |
std::map<std::string,std::string> global_strings; |
344 |
344 |
int choice_index = 0; |
int choice_index = 0; |
345 |
345 |
|
|
346 |
346 |
// Fonts. |
// Fonts. |
|
347 |
|
std::string font_mono_file = "DmcaSansSerif.ttf"; |
347 |
348 |
fgl::Font font_vn, font_mono; |
fgl::Font font_vn, font_mono; |
348 |
349 |
|
|
349 |
350 |
// UI textures. |
// UI textures. |
|
... |
... |
int bloom_w = 512, bloom_h = 512; // Medium quality. |
428 |
429 |
// The text to display on the initial loading screen. |
// The text to display on the initial loading screen. |
429 |
430 |
std::string init_text = u8"▪ ▪ ▪"; |
std::string init_text = u8"▪ ▪ ▪"; |
430 |
431 |
|
|
431 |
|
// The default monospaced font. |
|
432 |
|
std::string font_mono_file = "DmcaSansSerif.ttf"; |
|
433 |
|
|
|
434 |
432 |
void InitEngine( std::string file_name ); |
void InitEngine( std::string file_name ); |
435 |
433 |
|
|
436 |
434 |
void ParseSettings(); |
void ParseSettings(); |
|
... |
... |
void InitSettings(){ |
1361 |
1359 |
"reload", |
"reload", |
1362 |
1360 |
SDL_GetKeyName( SDL_GetKeyFromScancode( SDL_SCANCODE_R ) ) |
SDL_GetKeyName( SDL_GetKeyFromScancode( SDL_SCANCODE_R ) ) |
1363 |
1361 |
); |
); |
1364 |
|
kb.set( |
|
1365 |
|
"chat", |
|
1366 |
|
SDL_GetKeyName( SDL_GetKeyFromScancode( SDL_SCANCODE_T ) ) |
|
1367 |
|
); |
|
1368 |
1362 |
// Only create the flashlight setting if it is enabled by the game config. |
// Only create the flashlight setting if it is enabled by the game config. |
1369 |
1363 |
if( player_toggle_light ){ |
if( player_toggle_light ){ |
1370 |
1364 |
kb.set( |
kb.set( |
|
... |
... |
void Render(){ |
2571 |
2565 |
*k_light = kb ? &kb->get( "light" ) : nullptr, |
*k_light = kb ? &kb->get( "light" ) : nullptr, |
2572 |
2566 |
*k_interact = kb ? &kb->get( "interact" ) : nullptr, |
*k_interact = kb ? &kb->get( "interact" ) : nullptr, |
2573 |
2567 |
*k_reload = kb ? &kb->get( "reload" ) : nullptr, |
*k_reload = kb ? &kb->get( "reload" ) : nullptr, |
2574 |
|
*k_chat = kb ? &kb->get( "chat" ) : nullptr, |
|
2575 |
2568 |
*k_hud = kb ? &kb->get( "hud" ) : nullptr; |
*k_hud = kb ? &kb->get( "hud" ) : nullptr; |
2576 |
2569 |
|
|
2577 |
2570 |
// Buttons for actions and menus. |
// Buttons for actions and menus. |