News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

rev.2011 Win-SDL+GDI: hovering chooses road/track type + menuconf.tab questions

Started by whoami, September 10, 2008, 01:47:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

whoami

Initial observation: road building chooses random road types in Pak128

After some testing I conclude: if I choose to build a road by the key 's', the chosen road type is the one that the mouse cursor last hovered over in the road building menue. (EDIT: this also happens with Pak64.) The preferred behaviour would be to remember the last type (is this still implemented after the switch to the new menue system?), and the type should change only when I select another type by clicking on the icon.

Related question for menuconf.tab: can I define an exaxt road/track/wayobj type for a hotkey? Currently, first comes a sequence of the available types (all to be shown in the toolbar), then a key definition (if I have understood this right):

toolbar[2][0]=ways(2,0)
toolbar[2][1]=ways(2,1)
...
toolbar[2][10]=general_tool[14],,t,2 # <- the "2" is for rail - no subtype?

I figured that "toolbar[8][12]=general_tool[14],,l,128" is the way to get the hotkey for powerlines back (this and the 'e' key are missing in Pak64).

prissi

And in principle the last waytype should be remebered ... For electricfication general_tool[18],,e,2 should do the trick for rail.

And you could use fixed assignements using just the name of the pak. The waybuilder is called with a string.
=general_tool[14],,s,city_road

whoami

The 's' key works fine now, hotkeys have been re-added in pak64 rev.99 => closed.