Why does GUI button icon changes in blocking mode

Started by artium, Sat 01/09/2018 09:39:30

Previous topic - Next topic

artium

This happens in AGS 3.4.1, on a project that was created from a 3.4.0 default template.

When the game is in "blocking" mode, such as if a dialog is open or the character is saying something, then button's image will look distorted.

Is this a bug or could have I done something wrong?

Button parameters:


How it looks normally:


How it looks with distortion:


Matti

The button is not distorted, it's greyed out. In general settings under "Visual" look up "When player interface is disabled, GUIs should" and change it to "Display normally".

artium

Thank you!

Whichever method it use for graying out, it is not working well with this sprite. I would have expected an option to provide custom sprite for this, similar to mouse over image.

Matti

You could put this in the repeatedly_execute_always():

Code: ags

if (IsInterfaceEnabled()) Button1.NormalGraphic = 1; // or whatever the button name and sprite slot number is
else                      Button1.NormalGraphic = 2; // or whatever the button name and sprite slot number is

SMF spam blocked by CleanTalk