[Solved]How do you know if a button is visible or not? How can you get a count of QuickSaves?
Posted: Thu Oct 20, 2022 7:28 pm
EDIT: Long story short, I needed to specify an insensitive image for my custom quick load button. So I don't need to know if the button is visible or not, just specify the insensitive image for it's disabled state, then the button will get shown properly.
I want to know if the QuickLoad button is hidden or not. If it's not possible to know the visible state of a button; for example, looking up its visible state by ID, then is there a way to count how many Quick Saves are? If you know there are 0 quick saves, then you can safely assume the Quick Load button is hidden, yes?
For now, the only solution I can think of is to force a Quick Save right at the beginning of a new game, so the Quick Load button doesn't hide.
The reason I need to know if the Quick Load button is hidden or not, is because I put a hotkey label over it, so the user knows what hotkey to press to use it fast. If there's no Quick Load button, I don't want to show my label.
I want to know if the QuickLoad button is hidden or not. If it's not possible to know the visible state of a button; for example, looking up its visible state by ID, then is there a way to count how many Quick Saves are? If you know there are 0 quick saves, then you can safely assume the Quick Load button is hidden, yes?
For now, the only solution I can think of is to force a Quick Save right at the beginning of a new game, so the Quick Load button doesn't hide.
Code: Select all
$ renpy.save('quick-1')