From: Holger Schemel Date: Thu, 17 Dec 2020 16:13:22 +0000 (+0100) Subject: added style value for key arrangement on game panel (not used yet) X-Git-Tag: 4.2.2.0~8 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=49e9115e09b8bcd6b8f47a111b11b704c661d60b;p=rocksndiamonds.git added style value for key arrangement on game panel (not used yet) --- diff --git a/src/files.c b/src/files.c index ac928e8f..271e4283 100644 --- a/src/files.c +++ b/src/files.c @@ -10455,6 +10455,9 @@ int get_parameter_value(char *value_raw, char *suffix, int type) if (string_has_parameter(value, "reverse")) result |= STYLE_REVERSE; + if (string_has_parameter(value, "leftmost_position")) + result |= STYLE_LEFTMOST_POSITION; + if (string_has_parameter(value, "block_clicks")) result |= STYLE_BLOCK; diff --git a/src/libgame/system.h b/src/libgame/system.h index 0e05f56f..ce239f1d 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -353,16 +353,21 @@ #define ANIM_DEFAULT ANIM_LOOP -// values for special drawing styles (currently only for crumbled graphics) +// values for special drawing styles and event handling #define STYLE_NONE 0 + +// values used for crumbled graphics #define STYLE_ACCURATE_BORDERS (1 << 0) #define STYLE_INNER_CORNERS (1 << 1) + +// values used for game panel graphics #define STYLE_REVERSE (1 << 2) +#define STYLE_LEFTMOST_POSITION (1 << 3) -// values for special event handling style (used for global animation) -#define STYLE_BLOCK (1 << 3) -#define STYLE_PASSTHROUGH (1 << 4) -#define STYLE_MULTIPLE_ACTIONS (1 << 5) +// values used for global animations +#define STYLE_BLOCK (1 << 4) +#define STYLE_PASSTHROUGH (1 << 5) +#define STYLE_MULTIPLE_ACTIONS (1 << 6) #define STYLE_DEFAULT STYLE_NONE