Page 1 of 1
help with Chili.Editbox in 100
Posted: 02 May 2016, 17:14
by Zigaroula
I also don't seem to be able to make my editboxes work on Spring 100, has anyone found a solution about this problem?
Re: KeyPress signature
Posted: 02 May 2016, 19:56
by Silentwings
No obvious relation to the 2 year old thread you've necroed (
viewtopic.php?f=23&t=32013),
split.
I think you'll need to give more details of the problem you're having before anyone can help.
Re: help with Chili.Editbox in 100
Posted: 02 May 2016, 23:14
by hokomoko
IIRC the issue is that the engine's widgethandler lacks a TextInput callin. It has been fixed in later versions and in games with their own handler.
Re: help with Chili.Editbox in 100
Posted: 03 May 2016, 04:13
by gajop
It seems to me you're using a custom widget handler (which you probably shouldn't imo). In that case, see
https://github.com/ZeroK-RTS/Zero-K/pull/647
Re: help with Chili.Editbox in 100
Posted: 03 May 2016, 11:31
by Zigaroula
The problem is that when I try to type text in an editbox, nothing is typed. I thought it was related with the changes in the KeyPress signature, so that's why I posted a message on the aforementioned thread. Sorry for that.
I'm currently using the engine as downloaded from the website, without any custom widget handler. From there, I manually added the TextInput callin using gajop's link, and it seems to work now. Thank you for your help.
Re: help with Chili.Editbox in 100
Posted: 03 May 2016, 12:11
by gajop
The newest engine should definitely work. Maybe you're using an old chili framework or you haven't updated your api_chili.lua
Re: help with Chili.Editbox in 100
Posted: 03 May 2016, 13:00
by Zigaroula
Well, I installed it using the windows installer found here :
https://springrts.com/wiki/Download and I can assure you that the TextInput callin was not in the widgets.lua and main.lua files. Don't know if I did something wrong (since I used two different versions of Spring on the same computer), but this happened to me.
Re: help with Chili.Editbox in 100
Posted: 03 May 2016, 13:27
by Silentwings
It's a mystery to me why the installer-created LuaUI dir contains a (stand-alone) WH, but it does and iirc the dir is
https://github.com/spring/spring/tree/d ... cont/LuaUI, and its easy to see that it does contain widget:TextInput.
So afaics your description of your install process is wrong, or possibly (but I can't imagine how) you've managed to get a conflict with some older installation.
Re: help with Chili.Editbox in 100
Posted: 03 May 2016, 17:02
by hokomoko
No, as I said, it doesn't contain Textinput.
https://github.com/spring/spring/commit ... 58a356ba26 was only applied post 100.0 and Zigaroula is using 100.0
Re: help with Chili.Editbox in 100
Posted: 03 May 2016, 18:11
by Silentwings
Oh, surprised to discover the downloads page is offering 100.