1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-18 10:51:23 +02:00

make wider UI

This commit is contained in:
XProger
2019-02-21 04:16:37 +03:00
parent 7fd4a938f5
commit faa3fe4fc4
2 changed files with 6 additions and 3 deletions

View File

@@ -1464,6 +1464,9 @@ struct Inventory {
float width = 320.0f; float width = 320.0f;
float height = optionsCount * LINE_HEIGHT + 8; float height = optionsCount * LINE_HEIGHT + 8;
if (item->type == TR::Entity::INV_CONTROLS || item->type == TR::Entity::INV_DETAIL)
width += 80;
float eye = UI::width * Core::eye * 0.02f; float eye = UI::width * Core::eye * 0.02f;
float x = ( UI::width - width ) * 0.5f - eye; float x = ( UI::width - width ) * 0.5f - eye;
float y = ( UI::height - height ) * 0.5f + LINE_HEIGHT; float y = ( UI::height - height ) * 0.5f + LINE_HEIGHT;

View File

@@ -236,13 +236,13 @@ enum StringID {
#define STR_LANGUAGES \ #define STR_LANGUAGES \
"English" \ "English" \
, "Fran|cais" \ , "Fran|cais" \
, "Deutsch" \ , "Deutsch" \
, "Espa(~nol" \ , "Espa(~nol" \
, "Italiano" \ , "Italiano" \
, "Polski" \ , "Polski" \
, "Portugu)es" \ , "Portugu)es" \
, "Russian" \ , "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>{<7B>" \
, "Japanese" \ , "Japanese" \
#define LANG_PREFIXES "_EN", "_FR", "_DE", "_ES", "_IT", "_PL", "_PT", "_RU", "_JA" #define LANG_PREFIXES "_EN", "_FR", "_DE", "_ES", "_IT", "_PL", "_PT", "_RU", "_JA"
@@ -826,7 +826,7 @@ const char *STR_DE[] = { "" // by Oktopaps
, "Beleuchtung" , "Beleuchtung"
, "Schatten" , "Schatten"
, "Wasser" , "Wasser"
, "V-Sync" , "VSync"
, "Stereo" , "Stereo"
, "Simple Items" , "Simple Items"
// sound options // sound options