Gulix / geckos

An online Card Editor with Templates
http://gulix.github.io/geckos/
Other
48 stars 18 forks source link

Hiding Editable Fields #117

Open Dalick opened 7 years ago

Dalick commented 7 years ago

I am currently learning my way around Geckos by creating a template for a card game I am working on. The game itself has a few different types of cards in it, and each of those types could contain a field or image that is only used on that card. Reading the documentation I saw that I can use the visible property of a canvas field and that I can also use JavaScript to set a variable value. I can see how these would let me control what displays on the card itself depending upon the card type being filled out.

My question has to do with the editable fields and not the card canvas. is there a way to hide/show editable fields if they are not applicable to the card type being filled out?

Gulix commented 7 years ago

Currently, there's now way to set an editable field to be visible or not. But you can use the inheriting styles to match that : http://www.gulix.fr/geckos/wiki/doku.php?id=en:template:styles#inheriting_styles

As I understand your request, you have different types of card. Those could be different styles in the same template. But in the current state of development, a style is applied to all the cards of the set. Not a selection of cards. This will be treated with Issue #95 . Also, the possibility to hide (or other actions) editable fields, depending on other values in editable fields, is defined in Issue #18 .

I will put these Issues on top of the ToDo list.

Dalick commented 7 years ago

I did read the documentation on inheriting styles, but with the fact that a style was applied to every card in the set, it did not seem to cover what I was looking for. I did not realize that you already had open issues for dealing with both hiding editable fields as well as applying styles on a per card basis. I think I will go read all of the open issues to see what is there so that I do not open duplicate requests, but instead comment on existing ones.

Currently my friends and I are creating the first prototype for our card game and I am using Geckos to create the cards. As we iterate, I will probably end up completely redesigning the geckos templates several times, especially as I come to grip with the more advanced features. If there is anything that you would like tested or like feedback on, let me know as I will do so while I am discovering what I can do with Geckos.

Gulix commented 7 years ago

No worries ! It's good to have feedback. If you think something need to be pushed on top of the list, feel free to comment it. Also, feel free to create Issue for documentation. I'm happy to help you build your prototype.