Follow-up Comment #6, bug #22609 (project wesnoth):
> It's a valid expression, most other interpreter consoles i used were able to
handle expressions like 7 + 8 and then printed the result of the expression.
I think lua is just a bit wierd in this regard, I definitely remember using
Scheme and it being fine with this, but even the standard CL lua interpreter
seems to want you to use print. It dropped into a debugger when I gave an
expression that simply evaluated to an integer:
++
$ lua
Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> x = {}
> x.y = 5
> x.y
>> exit
stdin:2: syntax error near 'exit'
> print x.y
stdin:1: syntax error near 'x'
> print (x.y)
5
>
--
Again if you could see any easy way to make it work like it should I would
perhaps be willing to try to implement it, because it would be convenient. But
I actually don't see a good way to do this.
> according to the documentation of wesnoth.get_selected_tile it only works
when there is a unit selected
The one you actually want is "wesnoth.get_mouseover_tile", sorry for not being
more precise.
> No, the right ctrl key and the left ctrl key on the keyboard should have the
same effect. This is about key combinations 'ctrl'+'arrow right' and
'ctrl'+'arrow left'.
That wasn't how I intended you to parse what I wrote -- ofc left ctrl and
right ctrl should have the same effect. What needs to be added is handlers for
'ctrl'+'arrow right' and 'ctrl'+'arrow left', which putatively don't exist
afaik for gui2::ttextbox. Someone would have to look up whatever identifiers
SDL uses for these and write the couple lines of C++ to go back / forward a
word.
Unfortunately there are bound to be many issues like this since we decided to
make our own in-house gui widget toolkit... gui2 is more or less a one man
show, and the creator is mostly inactive now. But the expectations people will
have for its behavior are quite high, because of dominant design etc. Not
everything will work and I don't intend to become the point man for it -- we
need people to submit patches for the most important issues, and probably we
will live with the rest.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?22609>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs