Simutrans Forum Archive

The International Simutrans Forum > Resources & Development > Makeobj (Moderator: Timothy) > Topic: Makin' Buttons (Editing the mainmenu)
Author
Topic: Makin' Buttons (Editing the mainmenu)  (Read 839 times)
raven
Guest
Makin' Buttons (Editing the mainmenu)
Last Edit: June 12, 2006, 06:57:13 AM by Timothy
Well, I cannot discover why it's not working...

Obj=menu
name=MainMenu
Image[0]=> ../Skin/Buttons.0.0
Image[1]=> ../Skin/Buttons.0.1
Image[2]=> ../Skin/Buttons.0.2
Image[3]=> ../Skin/Buttons.0.4
Image[4]=> ../Skin/Buttons.0.5
Image[5]=> ../Skin/Buttons.0.6
Image[6]=> ../Skin/Buttons.0.7
Image[7]=> ../Skin/Buttons.0.8
Image[8]=> ../Skin/Buttons.0.9
Image[9]=> ../Skin/Buttons.0.10
Image[10]=> ../Skin/Buttons.0.11
--------------------
This is the execute path for makeobj (simutrans loads the paks from this Release folder)
D:\NENE\r-sim\dats64\makeobj.exe pak64 ../Release/ ./


Thanks

EDIT: I've also tried to code it as pak32 (obvoiously changing image coordinates0.0 0.2 0.4...)
martin
Member
*
*
*
*
*
Gender: Male
Posts: 345
Re: Makin' Buttons
Last Edit: June 12, 2006, 05:37:39 AM by martin
Looking for something like this:
(BTW:  the other 8 buttons are also in mainmenu.pak)
EDIT: forgot pak-file
raven
Guest
Re: Makin' Buttons
cool!
thx

how?

Cheesy
martin
Member
*
*
*
*
*
Gender: Male
Posts: 345
Re: Makin' Buttons
group buttons two by two, pak as pak64.
Timothy
Board Mod
Member
*
*
*
*
*
Gender: Male
Posts: 2163
pak64 - every pixel counts
Re: Makin' Buttons
Here's the mainmenu.pak png for pak64, should give you some idea how this works, buttons are grouped in twos...

<< Click here for a list of my Simutrans creations >>
raven
Guest
Re: Makin' Buttons (Editing the mainmenu)
lol, I'd never imagined so!

That's why nothing worked, and also explains why I could only see 10 diferent images and found no trace of the list icons and such.

Thanks a million
fagonella
live from Bucharest
Member
*
*
*
*
*
*
*
Gender: Male
Posts: 4016
Re: Makin' Buttons (Editing the mainmenu)
this is more a makeobj tip, now... *moved*
napik
Member
*
*
*
*
Gender: Male
Posts: 2477
128x128 set...
Re: Makin' Buttons (Editing the mainmenu)
Note: some other menus work differently - with separate image entry for each button (like the first try).

Tomas
128x128 set home: http://128.simutrans.com
My home: http://www.tomaskubes.net
raven
Guest
Re: Makin' Buttons (Editing the mainmenu)
Am I wrong, or in fact all menus but the Top One work with one button per image¿
Timothy
Board Mod
Member
*
*
*
*
*
Gender: Male
Posts: 2163
pak64 - every pixel counts
Re: Makin' Buttons (Editing the mainmenu)
Am I wrong, or in fact all menus but the Top One work with one button per image¿

You are correct, only the mainmenu has this 2-button per image system, all other menus are comprised of individual images for each button.

<< Click here for a list of my Simutrans creations >>
The International Simutrans Forum > Resources & Development > Makeobj (Moderator: Timothy) > Topic: Makin' Buttons (Editing the mainmenu)