git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6827 c06c8d41-db1a-0410-9941-cceddc491573
IYKF7624NNMXQET3NQ5RVEB6DXXCZX4GQOPUGWF2DWBOIMUAB2QAC SIDH2P7NBIG5KEOE27XHD3ZT2NQ2OJZFN6VZXWNWYFFY5YVXSSVQC XKNRIFG2ULQLAAQ5GC4RBZPOERV73DLCNILEA5EP37JLIX5EP3OQC Q3B3UVMYEVC4YJUPYVSNTR4DJH4E6J4JJDHZNT5LNOCHCPPMEMXAC STQDS62PD6PCLYBAB7LPYTG47WMBJP3FIJL55UHC3XFDPGERC3UQC RZP5Z6JM74GVX2M6L2JOFRJ5VT2XGFHBNRDESVHSKF66PQKIW32QC RVST2QHYJ757ZHK4AUJ5NGPDZ44AD6RVFVXYPKQIBJXZBDNUCHXQC TM35IHKZZNBCMR3ERBS4EYHGUK5IVCPUT2JUITMT74AYAIUZSYFQC 25CH7HH4LKXFIZ75YNMXS3TSXO6O27DYSOPLOD45K4OCNFWLS4LQC EHSY6DVGUMI6C67WKET3GDJVLWJWGYBYQONNDK5JVT7BCTHBEZVAC OYYZVCE3QHBVJM6IEKK5HTJRG5YOVQNCBRMSJENTHOI2WPJLNCFAC DGB7DKTR6OEQEMOOF3MAHDT4PAPKZ54Y33MWYVD7XIOESPFAXHQQC SV4XJBN5JF7SRWFSW2KTTM4OSKSRFQLHQYGZSN6O4LESFFXWAD3QC unsigned int max_pack_row = (ENDOFPACK-1) / m_region_self_inv->mx + 1;max_pack_row = std::min(m_region_self_inv->my - 1, max_pack_row);unsigned int max_pack_items = max_pack_row * m_region_self_inv->mx;
// item.base_type <-> char conversion tableconst static char *obj_syms = ")([/%#?=!#+\\0}x";
// TODO enne - only fill up 52 squares of inventory, then start// showing floor.
// If the inventory is full, show at least one row of the ground.unsigned int min_ground = std::min(num_ground, mx);max_pack_items = std::min(max_pack_items, mx * my - min_ground);
// How many ground items do we have?unsigned int num_ground = 0;for (int i = igrd(you.pos()); i != NON_ITEM; i = mitm[i].link)num_ground++;// Add extra rows, if needed.unsigned int ground_rows =std::max(((int)num_ground-1) / (int)m_region_self_inv->mx + 1, 1);
int remaining = mx*my- inv.size();int empty_on_this_row = mx - inv.size() % mx;
for (unsigned int i = 0; i < m_region_self_inv->mx; i++)
if ((int)num_ground > remaining - empty_on_this_row){// Fill out part of this row.int fill = remaining - num_ground;for (int i = 0; i < fill; i++){InventoryTile desc;inv.push_back(desc);}}else
InventoryTile desc;inv.push_back(desc);
// Fill out the rest of this row.while (inv.size() % mx != 0){InventoryTile desc;inv.push_back(desc);}// Add extra rows, if needed.unsigned int ground_rows =std::max(((int)num_ground-1) / (int)mx + 1, 1);while (inv.size() / mx + ground_rows < my){for (unsigned int i = 0; i < mx; i++){InventoryTile desc;inv.push_back(desc);}}
tile_tooltip_ms = 1000The number of milliseconds before a tooltip appears when hovering themouse over part of the screen.tile_window_width = 1024tile_window_height = 768The width and height of the window, in pixels.tile_map_pixels = 4The number of pixels each minimap square should take up.tile_full_screen = falseSetting this option to true will start Crawl in full screen mode.