Page 1 of 1

How do I show the skip button only when the player can skip

Posted: Wed Mar 02, 2022 5:05 pm
by justcolorado
I have a skip button and it works perfectly as expected.

Code: Select all

screen inGameMenuButton:
    imagebutton idle At("gui/button/in_game_menu_small.png", three_quarters) hover At("gui/button/in_game_menu_small_p.png", three_quarters)action ShowMenu("quickMenu") xpos 1700 ypos 10
    imagebutton idle At("gui/button/Skip.png", three_quarters) hover At("gui/button/Skip_p.png", three_quarters) action Skip() alternate Skip(fast=True, confirm=True) xpos 1700 ypos 900
My issue is that when the player has settings to skip unseen text, the button will always be visible but it won't actually skip unless they read it already. That might be confuse some users, because they will click and it won't work. And then when they are replaying, they might not know what the button does because it did not do anything in the past.

I want to have a nice big skip button for the things that the player already read...
but I do not want the player to see that button at all if the player hasn't read that text yet.

is there a way I can do this with SensitiveIf or
Does anyone know another way to do this?