Image's as buttons on Custom Login Screen

Hey there,

I was wondering if you could somehow make it so a button was an image and if you hovered over that button, it'd do some form of hover animation?

Thanks

Replies (2)

Last message on 26 Dec 2017

Size43 (Administrator) on 26 Dec 2017, 16:59:22
Yes!

The "background-sprite" property is supported. The way this would work is that you set a constant to the sprite, like gms_show_set_constant("my_sprite", sprite).

Then in your custom login screen code, you set the background by modifying the code to something like this:

button:
{
    width: max;
    height: 52;
    font: @f_text;
    color: @c_text;
    margin: 5;
        background-sprite: @my_sprite;
}
PenguinPalaceGame (Topicstarter) on 26 Dec 2017, 17:17:57
Alright, awesome :D

Appreciate all the help and replys today