The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: stmaker on May 27, 2010, 06:44:01 am

Title: Editing Buttons from above Toolbar
Post by: stmaker on May 27, 2010, 06:44:01 am
Can I edit the buttons located the toolbar on above the window?
Title: Re: Editing Buttons from above Toolbar
Post by: vilvoh on May 27, 2010, 07:05:55 am
Edit in what sense? names, icons?
Title: Re: Editing Buttons from above Toolbar
Post by: stmaker on May 27, 2010, 08:31:36 am
Icons.
Title: Re: Editing Buttons from above Toolbar
Post by: vilvoh on May 27, 2010, 10:07:42 am
Then you need to get the sources, dat and png files, from the SVN (link (http://simutrans.svn.sourceforge.net/viewvc/simutrans/pak64/other/)) modify the png images and using makeobj, recompile them in order to create a new pak file.

The files you need to get from the SVN are wkz_icons.png and new_menus.dat

I forgot to mention that every pakset has its own menus and icons so this is only valid for pak64.
Title: Re: Editing Buttons from above Toolbar
Post by: Frank on May 27, 2010, 06:01:01 pm
you can create a menubutton pak file and then define this file in menuconf.tab

examples dats
Quote
Obj=menu
name=narrowgauge1_button
Image[0]=> narrowgauge_buttons.0.0
---
Obj=menu
name=narrowgauge2_button
Image[0]=> narrowgauge_buttons.0.1
---

examples lines in menuconf.tab
Quote
...
toolbar[0][5]=toolbar[3],narrowgauge1_button,,NARROWGAUGETOOLS,narrowgaugetools.txt
...
Quote
...
toolbar[3][6]=general_tool[17],narrowgauge2_button,,8
...

empty buttons found in the Tikiwiki (http://simutrans-germany.com/wiki/wiki/tiki-index.php?page=de_painter64_HowTo)
Title: Re: Editing Buttons from above Toolbar
Post by: stmaker on May 28, 2010, 03:13:05 am
Ok thanks