diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2013-10-30 17:49:56 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2013-10-30 17:55:39 +0100 |
commit | d938c595830be2dcaae8d99621945988006b2f69 (patch) | |
tree | 89274e0c96652718a389ff2f76332dba9252659d /crawl-ref/source/newgame.cc | |
parent | 5bf649e60a6adcb6c6245b3d218fb843b9e3eccf (diff) | |
download | crawl-ref-d938c595830be2dcaae8d99621945988006b2f69.tar.gz crawl-ref-d938c595830be2dcaae8d99621945988006b2f69.zip |
Increase the size of the description box in species/job selection menu.
Most languages are not as concise as english, it's quite hard to fit
translations on 2 lines. Besides, there's plenty of room on the screen.
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r-- | crawl-ref/source/newgame.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index b2b676b05f..42adc8d5a4 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -541,8 +541,11 @@ static void _mark_fully_random(newgame_def* ng, newgame_def* ng_choice, */ static const int COLUMN_WIDTH = 25; static const int X_MARGIN = 4; -static const int CHAR_DESC_START_Y = 17; -static const int SPECIAL_KEYS_START_Y = CHAR_DESC_START_Y + 3; +static const int CHAR_DESC_START_Y = 16; +static const int CHAR_DESC_HEIGHT = 3; +static const int SPECIAL_KEYS_START_Y = CHAR_DESC_START_Y + + CHAR_DESC_HEIGHT + 1; + static void _construct_species_menu(const newgame_def* ng, const newgame_def& defaults, MenuFreeform* menu) @@ -788,7 +791,8 @@ static void _prompt_species(newgame_def* ng, newgame_def* ng_choice, _construct_species_menu(ng, defaults, freeform); MenuDescriptor* descriptor = new MenuDescriptor(&menu); descriptor->init(coord_def(X_MARGIN, CHAR_DESC_START_Y), - coord_def(get_number_of_cols(), CHAR_DESC_START_Y + 2), + coord_def(get_number_of_cols(), CHAR_DESC_START_Y + + CHAR_DESC_HEIGHT), "descriptor"); menu.attach_object(descriptor); |