X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibgame%2Fmisc.c;h=7a780511fde0a6743c6c00c74cede00d30dde723;hb=5c94351c5b8a12d8615b447b6275dd2f68615be4;hp=3fcf5af1ce6a38d7af105dd5eb6e89306c47bde7;hpb=884012f34f9f3c22bf75d1468e4ed57d7795a24b;p=rocksndiamonds.git diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 3fcf5af1..7a780511 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -1811,8 +1811,6 @@ int get_parameter_value(char *value_raw, char *suffix, int type) string_has_parameter(value, "horizontal") ? ANIM_HORIZONTAL : string_has_parameter(value, "vertical") ? ANIM_VERTICAL : string_has_parameter(value, "centered") ? ANIM_CENTERED : - string_has_parameter(value, "fade") ? ANIM_FADE : - string_has_parameter(value, "crossfade") ? ANIM_CROSSFADE : ANIM_DEFAULT); if (string_has_parameter(value, "reverse")) @@ -1824,6 +1822,13 @@ int get_parameter_value(char *value_raw, char *suffix, int type) if (string_has_parameter(value, "static_panel")) result |= ANIM_STATIC_PANEL; } + else if (strEqual(suffix, ".fade_mode")) + { + result = (string_has_parameter(value, "none") ? FADE_MODE_NONE : + string_has_parameter(value, "fade") ? FADE_MODE_FADE : + string_has_parameter(value, "crossfade") ? FADE_MODE_CROSSFADE : + FADE_MODE_DEFAULT); + } else if (strEqual(suffix, ".font")) { result = gfx.get_font_from_token_function(value);