BetonQuest / BetonQuest-Editor

[End of Life] Quest editor for BetonQuest plugin.
GNU General Public License v3.0
17 stars 12 forks source link

Small issue with red background #34

Closed Namnodorel closed 8 years ago

Namnodorel commented 8 years ago

On the conversations-tab, if I create a new option, it is highlighted red because it has no content yet. But I think the red background should be removed, as soon as any content is filled in the text field. As it is now, the background stays until I click on the option.

RiledUpCrow commented 8 years ago

I can't figure out any efficient way of doing it right now. I could remove and re-add all items in the list every time the user types a letter, but that doesn't seem to be a nice solution.

Namnodorel commented 8 years ago

I don't know JavaFX, but in Swing and the Android UI Framework the solution would be to override something like an onEdit-Event which gets fired every time the user types into the text field. Then it gets checked if the text field is empty or not, and the background is set to an appropiate color.