Support #3795

Purchase menu sprites specification

Added by foobar about 7 years ago. Updated almost 7 years ago.

Status:ClosedStart date:2012-03-10
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Purchase menu graphics
Target version:-

Description

Below is the specification on how purchase sprites must be made.

Graphical requirements:
  • Size: 60 px wide, 12 px high.
  • From left to right, the sprites will contain the following:
    • 3x12 px vertical Dutch flag, 1x12 px red RGB (196,0,0), 1x12 px white RGB (232,232,232), 1x12 px blue RGB (0,52,160).
    • 1x12 px space.
    • 12x12 px engine class icon: steam, diesel, electric or metro.
      • For wagons there will be a 12x12 px empty space here.
    • 1x12 px space.
      • note that the distance between the electric icon and the vehicle sprite is 2 px!
    • 43x12 px vehicle preview: the engine is aligned to the left of this box, if it's longer, it is cut off at the end of the box.
    • the last 4x12 pixels of the previous engine box is half-transparent. This is done by overlaying a chequerboard transparent-blue pixel grid. The top left of this pattern will show train, the bottom right is transparent.
  • All trains in the purchase menu are travelling towards the left, so you need the seventh column of each vehicle sprite template to get the sprites from.
  • Do not repeat engines to show more liveries. This confuses the user, as it will appear that an articulated engine will be purchased, which is not the case.
  • There are templates for all this in the repo: http://dev.openttdcoop.org/projects/dutchtrains/repository/show/gfx/purchase
Liveries:
  • If a train has multiple year-dependent liveries, there must be a purchase sprite for each engine.
  • Special liveries that are available randomly at the same time as a 'regular' livery don't need a purchase menu sprite.
  • Trains that only have random liveries (mostly modern trains): pick one livery. It would be nice to show each company at least once in the purchase list.
Saving:
  • Each purchase sprite must be saved in a separate png file, exactly 60x12 px in size.
  • The name of the file must be equal to the name of the graphics file in the repo. If there are multiple liveries, add an underscore to the file name, followed by the name of the livery (no official convention here, just as long as it's clear what livery it is).
  • File extensions are lower case. Do not use any special characters or spaces in the file name.
  • If two MUs would have the same purchase menu sprite, save the sprite only once, no need to duplicate.
  • All files must be saved with the Windows palette. The templates (except for the overlay) already have this palette applied, so as long as you (or your editor) don't remove that you'll be fine.
Example:
  • Some examples are available in the attachments below.

Do not use this issue for posting purchase sprites you made. Make a new issue instead.

IRM.png (3.75 KB) foobar, 2012-03-10 16:10

Mat46ELD2_olive.png (3.81 KB) foobar, 2012-03-10 16:10

Mat46ELD4_olive.png (3.81 KB) foobar, 2012-03-10 16:10

RET_TypeR_randstadrail.png (3.81 KB) foobar, 2012-03-10 16:10

RET_TypeR_silvergreen.png (3.8 KB) foobar, 2012-03-10 16:10


Related issues

Related to Dutch Trains 2 - Bug #3369: purchase menu sprites alignment Closed 2011-12-16

Associated revisions

Revision 401:31b9abc1fc2b
Added by foobar about 7 years ago

Feature: new purchase sprites for remaining wagons (issue #3795)

Revision 402:40f67d2c15e7
Added by foobar about 7 years ago

Feature: new purchase sprites for remaining EMUs (issue #3795)

Revision 403:2b387c826041
Added by foobar about 7 years ago

Feature: new purchase sprites for remaining DMUs (issue #3795)

Revision 404:6dec4b955446
Added by foobar about 7 years ago

Feature: new purchase sprites for remaining metros (issue #3795)

Revision 405:7e029f3f0eed
Added by foobar about 7 years ago

Feature: new purchase sprites for steamers (issue #3795)

Revision 406:ac2f34ed443c
Added by foobar about 7 years ago

Feature: new purchase sprites for diesels (issue #3795)

Revision 407:ca350d9c99c5
Added by foobar about 7 years ago

Feature: new purchase sprites for electrics (issue #3795)

History

#1 Updated by foobar about 7 years ago

  • Description updated (diff)

Note on palette added.

#2 Updated by foobar about 7 years ago

  • Description updated (diff)

Added note on wagons and electric icon.

#3 Updated by foobar about 7 years ago

Please use this issue to indicate what you're working on. Just post the results in a NEW issue. You may upload multiple in one issue at once. Just don't keep adding to that issue, that way it is easier for me to keep track of what's done and what's not. Thanks!

#4 Updated by Mahoo76 about 7 years ago

#5 Updated by Transportman about 7 years ago

TGV done (but not yet to be included due to uncertainty about drawer+license). http://dev.openttdcoop.org/issues/3810

#6 Updated by Transportman about 7 years ago

DH1 and DH2 done.

I noticed I didn't follow the rule on the no spaces in the name before, so I will fix that.

#7 Updated by Purno about 7 years ago

Transportman wrote:

TGV done (but not yet to be included due to uncertainty about drawer+license). http://dev.openttdcoop.org/issues/3810

The files you link to are mine, but those aren't shaded yet (I assumed Voyager already did that).

#8 Updated by foobar about 7 years ago

  • Category set to Purchase menu graphics

#9 Updated by foobar about 7 years ago

Just as a heads-up: all purchase sprites except those for the electric engines are now done. The diesel engine ones still need coding, the rest is already coded.

#10 Updated by foobar about 7 years ago

  • Target version deleted (2.0.0-alpha1)

All purchase sprites are done; we'll keep this issue for future reference.

#11 Updated by foobar almost 7 years ago

  • Status changed from New to Closed

I've now linked this from the Documents section.

Also available in: Atom PDF