From c90edfea149e0b1b8df5db7dca0c2a9e3963879b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 6 Jan 2023 23:16:38 +0100 Subject: [PATCH] added using GIC flags "request.button.player_X.draw_player" This "graphicsinfo.conf" flag was completely ignored until now. It can be used to control if player graphics should be drawn on top of the four request buttons to select the network player in the setup menu, or if only the buttons (without additional player graphics) should be used (which only makes sense if custom player request buttons are used with individual player graphics). The default value is "true". --- src/tools.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools.c b/src/tools.c index 351c36e4..5fb84526 100644 --- a/src/tools.c +++ b/src/tools.c @@ -5896,7 +5896,8 @@ void CreateToolButtons(void) } } - if (id >= TOOL_CTRL_ID_PLAYER_1 && id <= TOOL_CTRL_ID_PLAYER_4) + if (id >= TOOL_CTRL_ID_PLAYER_1 && id <= TOOL_CTRL_ID_PLAYER_4 && + pos->draw_player) { int player_nr = id - TOOL_CTRL_ID_PLAYER_1; -- 2.34.1