Jibble

Author Topic: Why does GUI button icon changes in blocking mode  (Read 412 times)

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:


Re: Why does GUI button icon changes in blocking mode
« Reply #1 on: 01 Sep 2018, 09:53 »
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".

Re: Why does GUI button icon changes in blocking mode
« Reply #2 on: 01 Sep 2018, 12:15 »
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.

Re: Why does GUI button icon changes in blocking mode
« Reply #3 on: 01 Sep 2018, 12:48 »
You could put this in the repeatedly_execute_always():

Code: Adventure Game Studio
  1. if (IsInterfaceEnabled()) Button1.NormalGraphic = 1; // or whatever the button name and sprite slot number is
  2. else                      Button1.NormalGraphic = 2; // or whatever the button name and sprite slot number is
« Last Edit: 01 Sep 2018, 12:53 by Matti »