Author Topic: Slight improvement to menu buttons  (Read 2570 times)

0 Members and 1 Guest are viewing this topic.

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15682
  • Total likes: 395
  • Helpful: 174
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Slight improvement to menu buttons
« on: January 07, 2014, 12:36:06 AM »
I have made some slight improvements to the menu buttons. The most significant change is that I have created a graphical button for the network/multiplayer game menu, replacing the existing "Net-work" word in black. This is based on the globe icon from Pak128 with a slightly enlarged version of the little networking icon that one sees in the bottom right of the screen if one is connected to a network game overlayed upon it.

The second most significant change is the addition of shortcut key hints to menu buttons: previously, some buttons had these and some did not. I am not sure whether the Standard version of Pak128.Britain has all of these bindings, but, if not, I suggest that the relevant file from Experimental be used, as it is useful to have a full set of shortcut keys.

I have also used one of my new trams as the tram icon, as the previous icon was of a tram which was not at the correct scale (either in absolute terms, or in the proportion of its width to its length).

Finally, I have removed some stray pixels and other small errors. I hope that this assists.



(The only difference in this one is the addition of the "L" in the icon to show that the tool for placing power lines can be selected using the shortcut key "L".)

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.

Offline Drewthegreat87

Re: Slight improvement to menu buttons
« Reply #1 on: January 07, 2014, 05:22:10 PM »
Would these new keybindings and menu buttons seamlessly work with standard or is there some code tinkering that I would need to do to get it to work? Standard doesn't have the "remove catenary/electrification" option, so I'm pretty interested in getting this going...unless the hotkey is present in standard and it just doesn't have the menu button...

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15682
  • Total likes: 395
  • Helpful: 174
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Slight improvement to menu buttons
« Reply #2 on: January 07, 2014, 05:28:49 PM »
There are no changes to the actual game code required for these to work in Standard, but you will need to borrow menuconf.tab from the Experimental version of the pakset, which can be found here.
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.

Offline Drewthegreat87

Re: Slight improvement to menu buttons
« Reply #3 on: January 08, 2014, 12:14:53 AM »
Should I build this in a pak file or is there a subfolder that it goes in? I'm searching through trying to find a source of the menu buttons. I'll edit this post accordingly if I get it to work.

Thanks!

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15682
  • Total likes: 395
  • Helpful: 174
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Slight improvement to menu buttons
« Reply #4 on: January 08, 2014, 12:36:05 AM »
If you are building from source using makeobj, this should go into ~/gui/gui64. I hope that this helps!
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.

Offline kierongreen

  • Dev Team, Coder/patcher
  • Moderator
  • *
  • Posts: 2249
  • Total likes: 46
  • Helpful: 90
Re: Slight improvement to menu buttons
« Reply #5 on: January 12, 2014, 02:28:55 PM »
Note that these menu buttons don't include the tools necessary for climates and half/double slopes.

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15682
  • Total likes: 395
  • Helpful: 174
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Slight improvement to menu buttons
« Reply #6 on: January 12, 2014, 03:53:04 PM »
Ahh - thank you for pointing that out. Is there a set of Pak128.Britain menu buttons that does include the requisite graphics?
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.

Offline kierongreen

  • Dev Team, Coder/patcher
  • Moderator
  • *
  • Posts: 2249
  • Total likes: 46
  • Helpful: 90
Re: Slight improvement to menu buttons
« Reply #7 on: January 12, 2014, 06:41:28 PM »
SVN

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15682
  • Total likes: 395
  • Helpful: 174
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Slight improvement to menu buttons
« Reply #8 on: January 12, 2014, 07:04:43 PM »
Ahh, thank you. Splendid. I have now produced a composited version of the .png file with the improved menu buttons together with the extended buttons for climates, here:



May I ask - are the revised menuconf.tab configuration settings compatible with pre-double heights code?
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.

Offline kierongreen

  • Dev Team, Coder/patcher
  • Moderator
  • *
  • Posts: 2249
  • Total likes: 46
  • Helpful: 90
Re: Slight improvement to menu buttons
« Reply #9 on: January 12, 2014, 08:27:21 PM »
No - slope numbers don't match at all. Plus not sure what non-existent climate tools and water raise/lower would do.

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 15682
  • Total likes: 395
  • Helpful: 174
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Slight improvement to menu buttons
« Reply #10 on: January 12, 2014, 08:32:24 PM »
Thank you for letting me know - that is helpful. I shall have to create a branch on Github for testing, in that case.
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.