[closed] How to dialog:close() when >space< is typed into the text_box
Moderator: Forum Moderators
- ZombieKnight
- Posts: 231
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
[closed] How to dialog:close() when >space< is typed into the text_box
Hi
How to dialog:close() when >space< is typed into the text_box?
Thanks <3
How to dialog:close() when >space< is typed into the text_box?
Thanks <3
Last edited by ZombieKnight on April 27th, 2024, 1:26 pm, edited 1 time in total.
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Working on campaign Bandits from Brown Hills
- Celtic_Minstrel
- Developer
- Posts: 2258
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: How to dialog:close() when >space< is typed into the text_box
I'm pretty sure you posted the method you tried in the previous thread. Why is it not in this post?
- ZombieKnight
- Posts: 231
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
Re: How to dialog:close() when >space< is typed into the text_box
Oh, dumb me
Code: Select all
dialog.test_text.on_modified = function()
if dialog.test_text.text == " " then dialog:close() end
dialog.test_text.text =""
end
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Working on campaign Bandits from Brown Hills