The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ceeac on February 18, 2023, 03:25:23 PM

Title: Pipette tool
Post by: ceeac on February 18, 2023, 03:25:23 PM
Small quality-of-life improvement: The pipette/eyedropper tool (general_tool #47) activates the tool associated with the object under the cursor. Now it is easier to build ways, wayobjs, signals, bridges, tunnels etc if there is already an object of the same type nearby.

Patch against r10843 attached.
Title: Re: Pipette tool
Post by: Dwachs on February 20, 2023, 06:36:51 PM
nice idea :)
Title: Re: Pipette tool
Post by: Yona-TYT on February 21, 2023, 01:47:52 AM
Quote from: Dwachs on February 20, 2023, 06:36:51 PMnice idea :)
Good! Let's implement then hehehehe. ;)
Title: Re: Pipette tool
Post by: Leartin on February 21, 2023, 03:38:29 AM
Can we really assume that the player should be able to build everything that's on the map?

- Some object types are off-limits in general. For example, citybuildings, curiosities, monuments,... I assume those are just not part of the pipette unless you are public player though.

- Some specific objects may not be available to the player. Rivers or city streets, for example, or objects that only exist for compatibility with old maps, but not to be built new. And do tunnels only use the graphics of the ways they reference, or are the underground ways those way objects?

- Some objects may not be available to the player at specific times, since the timeline is a thing. If objects are removed over time, let's assume they are not intended to be built anymore. I see timeline is checked for buildings, but  this also applies for all other objects.

Is it perhaps possible to perform a check whether the tool currently has an icon in the menu OR you are public player?

Title: Re: Pipette tool
Post by: hreintke on March 05, 2023, 11:30:55 AM
Not sure whether I used/configured it correct but this is what I did/noticed.

- Applied the patch.
- Added general_tool[47]=,,,i to menuconf.tab

Now I can get an item under the cursor using left click + i
And building f.e a road.

But deselecting using the ESC key doesn't work.
Deselecting using another left click + i does work.

When I select using the menu (usual way) I can deselect using the ESC key.

Do I need some additional configuration ?
Title: Re: Pipette tool
Post by: prissi on October 03, 2024, 08:38:55 AM
Finally incorporated in r11417 with more eligiblity checks and building also more things (and even more a public player).