Draw player name/race in yellow. Not great, I think; the rest of the HUD draws labels in, yellow and actual content in white, and this conflicts with that. Remove gold; shrink HUD by one line. Experience: David's idea Experiment: use ===— for hp/mp bar
On % screen: Make spelling and order of AC/Ev/Sh consistent with HUD Move gold to below HP/MP so god name is not cut off ("The Shining On***" looks awful)
Did not do: HP->Health on HUD; currently not enough space for "Health: 123/456 (789)"
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4068 c06c8d41-db1a-0410-9941-cceddc491573
NY5JJY33IHF5EKTLPDFVYTN3PFNKV4A3MAH5MRQ3AWH53L2HFIQQC IQH2WYD3AQYBHKW5IUKLA22N5DPJSDJKENVXCK44LAS77HYTAQAAC FXVDNB6MAAOSEP37HP7CIPPXNS7FDECN3GCRMT5UFFCKLHIL6IVAC X33DHOW2PFC4YDGNF5UH5NOX7QXT6BTE634NDT4RNYGCWW6TT5DAC Q263OF72GJOH2VQHGCF5IYZ5UHKV5DNX3J3WTCEONPN3WGGNZOUQC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC FMBJCM5LJKCG326YRJGOOJU6QNWONXAHK2AB4CP4SAOHKJ5CORXQC ZBPZZ5A7AB2VFZKQ2UJXVDGUK22OCZJCEN2RWTGDGK3VXFCCDKVAC IHOKNI4O7EEW4UBMKHP6XOZNEIQSW4AYOT4O3JXUIXNNR553IQAQC EOMCPVNQLX3IMLC46EAO67DPBH5KEG2FQTPBLGU62HIRWA3UQ7XQC 25CH7HH4LKXFIZ75YNMXS3TSXO6O27DYSOPLOD45K4OCNFWLS4LQC RISMOCQM6BKK4XSIRKYLOBB2UPDYJNDAL6OGIIR5GGNZQAK5YSZAC 4UQBOVCMAMNCCF6PPX222H6JJO7MPYOKKC2NBKMVYIT5R5FOACNAC LBOWQK6P35RBX6CTIW5RFQVGRYNJ6XP3TVAAQCQ5ABBCEQAXIMXQC PS2BPOBKMUTQPFSQX4MTQ3A7B6MQGLWKTRAGUZED47KCWF5DPCJAC 3VWSZUGYL36SO5AOZRASGK3VHFCFZUGGCGRT3R7BZB36IZPN7OSQC TM35IHKZZNBCMR3ERBS4EYHGUK5IVCPUT2JUITMT74AYAIUZSYFQC X76YXE6RFL7QY5WL6MSSS44WHVA5FQMDQY3XTYP2UL6UZB4E6XMQC 7NDXS36TE7QVXTXJWMYSVG5UHCCLPIO4VL6NXFGTDK3ZNKE3A2IAC JR2RAQ523LOWNDYJNK6AZVKI6WVMI622PIV72XWOVZYPXPUKSQWAC HYS3HXTXATFPN7GLN3WBGDCP22UT2D3JBVUS7SP5FE7L54TDCJRQC FNPJHOTJ6ERHAA76XYFQ7WLLFMJBMTYCFESPXTKUZEMN24NN575AC SVY2PTCLXR3KNPQAWXVXTTGCC5DR334HOAKHYO3VDDRWM2BWMALAC /* ************************************************************************ called from: skills* *********************************************************************** */void redraw_skill(const std::string &your_name, const std::string &class_name);
void redraw_skill(const std::string &your_name, const std::string &class_name){std::string title = your_name + " the " + class_name;int in_len = title.length();if (in_len > 40){in_len -= 3; // what we're getting back from removing "the"const int name_len = your_name.length();std::string trimmed_name = your_name;// squeeze name if required, the "- 8" is to not squeeze too muchif (in_len > 40 && (name_len - 8) > (in_len - 40))trimmed_name =trimmed_name.substr(0, name_len - (in_len - 40) - 1);
title = trimmed_name + ", " + class_name;}cgotoxy(1, 1, GOTO_STAT);textcolor( LIGHTGREY );cprintf( "%-41s", title.c_str() );}
if (you.redraw_gold){cgotoxy(1+6, 8, GOTO_STAT);cprintf( "%-8d", you.gold );you.redraw_gold = false;}
if (you.wield_change) { you.wield_change = false; _print_stats_wp(11); }if (you.quiver_change) { you.quiver_change = false; _print_stats_qv(12); }
if (you.wield_change) { you.wield_change = false; _print_stats_wp(10); }if (you.quiver_change) { you.quiver_change = false; _print_stats_qv(11); }
void redraw_skill(const std::string &your_name, const std::string &class_name){std::string title = your_name + " the " + class_name;int in_len = title.length();const int WIDTH = 40; // use crawl_view.hudsz.x instead?if (in_len > WIDTH){in_len -= 3; // what we're getting back from removing "the"
const int name_len = your_name.length();std::string trimmed_name = your_name;// squeeze name if required, the "- 8" is to not squeeze too muchif (in_len > WIDTH && (name_len - 8) > (in_len - WIDTH))trimmed_name =trimmed_name.substr(0, name_len - (in_len - WIDTH) - 1);title = trimmed_name + ", " + class_name;}cgotoxy(1, 1, GOTO_STAT);textcolor( YELLOW );cprintf( "%-41s", title.c_str() );cgotoxy(1, 2, GOTO_STAT);cprintf("%s", species_name( you.species, you.experience_level ).c_str());if (you.wizard){textcolor( LIGHTBLUE );cgotoxy(1 + crawl_view.hudsz.x-9, 2, GOTO_STAT);cprintf(" *WIZARD*");}textcolor( LIGHTGREY );}
snprintf(buf, sizeof buf,"AC %2d\n""EV %2d\n""Sh %2d\n",player_AC(),player_evasion(),player_shield_class());
snprintf(buf, sizeof buf, "AC %2d" , player_AC());cols1.add_formatted(2, buf, false);if (you.equip[EQ_SHIELD] == -1){textcolor( DARKGREY );snprintf(buf, sizeof buf, "Sh <darkgrey>-</darkgrey>");}else{snprintf(buf, sizeof buf, "Sh %2d", player_shield_class());}