Grayed out checkboxes
Sora574
23 Feb 2013, 06:19Why hello there.
Since you're already here, maybe you can answer a little question of mine.
I'm making some libraries set into the Cores of the game, and I was wondering if you can make grayed out checkboxes that are automatically set to true or false (or even a string) if triggered by something.
I don't exactly know how to explain this further, other than saying that it might look something like this:
Where Always (false) would be the grayed out checkbox set to false.
So, my question is: Is there something similar to this?
If not, then it might be neat to incorporate it into Quest 5.4
Just a thought.
Since you're already here, maybe you can answer a little question of mine.
I'm making some libraries set into the Cores of the game, and I was wondering if you can make grayed out checkboxes that are automatically set to true or false (or even a string) if triggered by something.
I don't exactly know how to explain this further, other than saying that it might look something like this:
if (game.showhealth = false) {
game.showarmor = Always (false)
}
Where Always (false) would be the grayed out checkbox set to false.
So, my question is: Is there something similar to this?
If not, then it might be neat to incorporate it into Quest 5.4
Just a thought.

jaynabonne
23 Feb 2013, 09:32Where would these checkboxes appear? Is this while editing or playing?

Pertex
23 Feb 2013, 16:43You can show or hide elements with
<onlydisplayif>game.showhealth</onlydisplayif>
<onlydisplayif>game.showhealth</onlydisplayif>
Sora574
23 Feb 2013, 17:15jaynabonne wrote:Where would these checkboxes appear? Is this while editing or playing?
Sorry, I might while editing.
Pertex wrote:You can show or hide elements with
<onlydisplayif>game.showhealth</onlydisplayif>
Yes yes I know, but the problem with that is that it doesn't actually set the checkbox to false. It just sort of... hides it.
Sora574
23 Feb 2013, 17:36Ok so... I went back to see what I could do that I hadn't tried. And I got this, set into the core:
Not exactly what I wanted, but it gets the job done.
Still though, gray boxes would be cool.
if (game.showarmor) {
if (game.showhealth) {
~code~
}
else {
game.showarmor = false
}
}
Not exactly what I wanted, but it gets the job done.
Still though, gray boxes would be cool.