help with Chili.Editbox in 100

help with Chili.Editbox in 100

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
Zigaroula
Posts: 10
Joined: 10 Mar 2016, 17:46

help with Chili.Editbox in 100

Post 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?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: KeyPress signature

Post 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.
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: help with Chili.Editbox in 100

Post 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.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: help with Chili.Editbox in 100

Post 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
Zigaroula
Posts: 10
Joined: 10 Mar 2016, 17:46

Re: help with Chili.Editbox in 100

Post 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.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: help with Chili.Editbox in 100

Post 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
Zigaroula
Posts: 10
Joined: 10 Mar 2016, 17:46

Re: help with Chili.Editbox in 100

Post 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.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: help with Chili.Editbox in 100

Post 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.
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: help with Chili.Editbox in 100

Post 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
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: help with Chili.Editbox in 100

Post by Silentwings »

Oh, surprised to discover the downloads page is offering 100.
Post Reply

Return to “Lua Scripts”