Secound GUI or backlight for hotspot

Started by hegemonista, Sun 24/04/2011 23:43:32

Previous topic - Next topic

hegemonista

Hello,
I would like to ask for your advice in a case solution for my problem. The case is as follows: on main background I need to have one element of GUI: Exit. But in other rooms I need more elements like Back to previous room or Back to main background. OK. I can do it. But how to do backlight for hotspot or how to do second GUI? I hope so you will understand me. Sorry for my not-perfect English, but I am Poles and English is not my native language.
I forgot say: I already have graphic with done elements. Also with backlight. Here is my not-ready background yet:
http://img545.imageshack.us/f/mapaznow.png/
In right top is Exit

monkey0506

I'm not entirely sure what you mean by "backlight" in this context. I think you might be referring to the Button.MouseOverGraphic which allows you to change a Button on a GUI to show a different image when the user hovers the mouse over the button. There is also Button.PushedGraphic that allows you to specify how the button should look when the user holds down the left or right mouse button on the GUI Button.

Otherwise, if not that, then I think you might be talking about an alpha channel. For that you would have to make sure that the GUI's background image has an alpha channel (even if the entire background of the GUI is transparent), make sure your game is 32-bit, and make sure you select to use the alpha channel when importing the graphics.

Those are the only two things I can think of that you might mean, so sorry if I misunderstood you, or have explained myself clearly. Hopefully this will help you. Also, welcome to AGS! :=

hegemonista

#2
QuoteI think you might be referring to the Button.MouseOverGraphic which allows you to change a Button on a GUI to show a different image when the user hovers the mouse over the button.

Thanks, I mean it. This being the case I have one question: where can I found to apply of Button.MouseOverGraphic in practice? I am newbie yet and I can't add parameters myself. I used Search but I do not found solution. Only it:
Code: ags
function off_SoTurnOn(this Button*)
{
  if (this.NormalGraphic == 1175)
  {
    this.NormalGraphic = 1176;
    this.PushedGraphic = 1175; 
    this.MouseOverGraphic = 1184;
  } 
}


I should do that? 

Edit: Oh, I forgot: Thanks for advices about graphic. I will do it.

SMF spam blocked by CleanTalk