The International Simutrans Forum

 

Author Topic: rev.2011 Win-SDL+GDI: hovering chooses road/track type + menuconf.tab questions  (Read 2145 times)

0 Members and 1 Guest are viewing this topic.

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
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).
« Last Edit: September 10, 2008, 01:55:46 PM by whoami »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10663
  • Languages: De,EN,JP
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

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
The 's' key works fine now, hotkeys have been re-added in pak64 rev.99 => closed.