1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-13 04:13:03 +00:00

Add a setting for a gap between orbs and treasures

This commit is contained in:
Joseph C. Sible
2025-10-05 19:08:25 -04:00
parent 8b7e82b460
commit af8dfe7fa3
2 changed files with 7 additions and 1 deletions

View File

@@ -1224,6 +1224,11 @@ EX void initConfig() {
{"icons", ""}, {"icons", ""},
}, "orb display mode", 'o'); }, "orb display mode", 'o');
param_b(orb_treasure_gap, "orb_treasure_gap", false)
->editable("gap between orbs and treasures", 'G')
-> help("If set, a gap row will be left between orbs and treasures in the HUD")
-> set_reaction([] { vid.killreduction = 0; });
param_b(less_in_landscape, "less_in_landscape", false) param_b(less_in_landscape, "less_in_landscape", false)
->editable("less items/kills in landscape", 'L') ->editable("less items/kills in landscape", 'L')
-> help("If set, only the important items and kills will be shown") -> help("If set, only the important items and kills will be shown")

View File

@@ -462,7 +462,7 @@ EX void draw_crosshair() {
return; return;
} }
EX bool less_in_portrait, less_in_landscape; EX bool less_in_portrait, less_in_landscape, orb_treasure_gap;
EX string mode_description() { EX string mode_description() {
string md; string md;
@@ -629,6 +629,7 @@ EX void drawStats() {
rows = rowspace / buttonsize; if(!rows) return; rows = rowspace / buttonsize; if(!rows) return;
int coltaken = 0; int coltaken = 0;
for(int z=0; z<4; z++) { for(int z=0; z<4; z++) {
if(z == 1 && orb_treasure_gap) coltaken++;
if(z == 2 && !portrait) { if(z == 2 && !portrait) {
if(coltaken > columns) { vid.killreduction++; continue; } if(coltaken > columns) { vid.killreduction++; continue; }
coltaken = 0; coltaken = 0;