Do not know if this is possible but I would like to show a preview when coordinates are entered in a message.
I want to use this in the "is_work_allowed_here" when a warning message is returned.
It is the same behavior you see in the chat.
(https://www.mediafire.com/convkey/4ab3/sd6gp8eviqhqn3f6g.jpg)
This is possible to implement, but not easy: The return value of is_allowed_* are just text, which is displayed as an error message. No markup possible (right now). The chat messages use a different system.
This is now possible with r7880. Syntax as in chat messages: @12,34 or (12,34). Use coord_to_string to get the right coordinate when map is rotated.
Thank you very much. ;D
@Dwachs, Where you can call it a print("")? (For a moment I thought that "print()" was used to show pop-up. :o )
Better said, how I can display a pop-up?, Is there a function?.
check these functions
http://dwachs.github.io/simutrans-sqapi-doc/classgui.html
they do not work in network games
Quote from: Dwachs on September 17, 2016, 02:13:52 PM
check these functions
http://dwachs.github.io/simutrans-sqapi-doc/classgui.html (http://dwachs.github.io/simutrans-sqapi-doc/classgui.html)
they do not work in network games
If I had already noticed that, the problem is that it will not display a pop-up until the player configure. :-[
@Dwachs
It does not work with "is_waystop_correct(player,schedule,nr,load,wait,coord)".
(https://www.mediafire.com/convkey/34bc/5hsxhoblk2ii1v96g.jpg)
edit: you mean the error messages of is_schedule_allowed? That should be easily possible.
(is_schedule_allowed still does not work in network games)
Quote from: Dwachs on October 07, 2016, 05:31:11 AM
edit: you mean the error messages of is_schedule_allowed? That should be easily possible.
(is_schedule_allowed still does not work in network games)
This is for the tutorial scenario, I'm getting a little better things to make it easier. ;)
works in r7891
Thank you !.