News:

Want to praise Simutrans?
Your feedback is important for us ;D.

[patch] add goto-button to chat messages

Started by Dwachs, February 09, 2012, 02:19:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dwachs

This patch adds the following: whenever a chat message contains a map coordinate in the form @(234,23) then a goto button is shown in front of the message (like for the automatic generated messages, where the button brings you to the crowded station etc).
Parsley, sage, rosemary, and maggikraut.

Milko


Fabio

Great idea, but isn't synthax @(x,y) non-intuitive for new players?
How to explain them?

Here's an idea: clicking inspection tool on a tile saves coordinates. A special button in chat window could paste the last coordinates saved in the appropriate format.

VS


My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

prissi

Why the @(x,y)? Simply (x,y) would work also well, as one would rarely type this without coordinates in mind.

jamespetts

How about middle clicking on a co-ordinate while in the chat window will paste the co-ordinates in the correct format into the chat text box?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Fabio

Middle clicking-- not somethings my hands want to do, nor an easy guess for new players... But the idea is good.
Maybe with chat window open and text input box selected the cursor could turn into a marker (like with schedule dialog) and a normal left click on a tile would add the formatted coordinates... 

jamespetts

I thought middle clicking because it is the default paste button for Linux.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Fabio

Sorry, I didn't know that. The only use I have for middle click is closing tabs in the browser...
It might be an option, although it needs to be more like copy than paste... :-[

sdog

gnome & chrome: i middle click to open windows with the copied string as search term. (i don't know how windows users survive without that)

what james suggests is exactly the opposite of the behaviour in many linux window managers, middle click pastes, while normal click selects. in line with this a middle click on the chat window would enter the map coordinate of the last clicked field. (which i would not be too happy about, as i want my middle clicks to copy&paste text strings, eg when renaming lines)

ӔO

I would suggest something simple to use, like last clicked coordinates that always results in a go to arrow.
This way there is no need to worry about using special commands in the message or special key strokes or mouse clicks to get it to work.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

Ters

How many mouse buttons do Macs have nowadays? Didn't they use to have just one? And what about touch devices, though their lack of a keyboard may be more problematic.

Ashley

Please avoid middle-click, it's not good for the Mac platform in general.

I agree that simply parsing any string of the form (x,y) should be sufficient, then put some text into the chat window to indicate that you can do this.
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

jamespetts

How about without the brackets? Or perhaps double-click, if middle is difficult for some platforms?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

sdog

without brackets it would confuse real values with a ',' as decimal separator (which is international standard, '.' is an american convention)

@10,6 with the @ but without the bracket could be alternatively used to the bracketed version. (on many keyboard layouts @ is easier to write than brackets)

ӔO

from a player standpoint, the less we have to learn or read, the happier we are.
macros, functions to copy/paste, they are not needed if any message typed simply gives the coordinates of the last clicked location.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

sdog

how about a syntax completion approach, writing @ and pressing tab would fill in the coordinate of the last pressed coordinate. tab completion is a gui concept anyone using a computer is likely accustomed to.

Fabio

A mix of sdog's,  AEO's and original proposals:
Every message gives the coordinates of last clicked tile, unless you type explicitly @x,y or (x,y) -- both being accepted. Maybe default coordinates go in default colour, whereas explicit coordinates go in red (if a player enters them manually he must have a very strong reason to do so).
A @ with no coordinates (but no tab needed) would mark in red the default coordinates without typing them.

Dwachs

Incorporated in r5339.

I implemented both suggestions to type coordinates: @x,y  and (x,y) - the closing bracket can even be omitted.

Still searching a smart hint text to be shown in the message window.
Something like "Hint: typing @x,y will add a goto-button to your message"

Suggestions?
Parsley, sage, rosemary, and maggikraut.

Fabio

What about the idea of simple "@" (i.e. x,y omitted) being additionally  interpreted as @x_last_clicked,y_last_clicked?