The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: RESTRICTED ACCOUNT on September 16, 2020, 09:37:47 AM

Title: display setting dialog issues
Post by: RESTRICTED ACCOUNT on September 16, 2020, 09:37:47 AM
Thank you for your daily maintenance.
Report multiple small bugs. (´・ω・`)

(1) hide building setting combobox does not respond to shortcut key changes
For example, hide tree checkbox is sane, but it's not.
(https://i.imgur.com/EcHWWtY.gif)


(2) The "show nothing" display is incorrect (a colored background is displayed), but as far as I can see in the code, the behavior seems unintended.

case 2:
display_outline_proportional_rgb( p.x + LINESPACE + D_H_SPACE, p.y, color_idx_to_rgb(COL_YELLOW), color_idx_to_rgb(COL_BLACK), text, 1 );
display_ddd_box_clip_rgb(         p.x,                     p.y,   LINESPACE,   LINESPACE,   pc-2, pc+2 );
display_fillbox_wh_clip_rgb(      p.x+1,                   p.y+1, LINESPACE-2, LINESPACE-2, pc,   true);
break;
case 3: // show nothing
break;

(https://i.imgur.com/NKzOmfx.gif)


Also, I think the yellow text color looks better if the vertical alignment is middle.


(3)
display_settings.cc line 104,
// add controls to info container
add_table(2,3);

add_table(2,4) is correct. (Although it has no effect in standard, a layout error occurred when adding a table below it in extended.)
Title: Re: display setting dialog issues
Post by: prissi on September 16, 2020, 01:54:04 PM
Thank you, fixed in r 9242
Title: Re: display setting dialog issues
Post by: RESTRICTED ACCOUNT on November 01, 2020, 03:32:20 PM
Quote from: jamespetts on October 31, 2020, 03:54:05 PM* In the display settings dialogue, there appears to be an errant number next to the "show station names" setting (or is this intended? If so, this should be explained in the tooltip)
This was pointed out by James in the incorporating from standard thread.
I was also curious about this display. This looks like a kind of debug display, but it's always visible. Is this intended?
Title: Re: display setting dialog issues
Post by: prissi on November 02, 2020, 03:05:09 AM
Should be fixed in r9352. Indeed, leftover debug code.