Code Review #7678

Display volume|speed in proper units

Added by George about 4 years ago. Updated 5 months ago.

Status:AssignedStart date:2015-05-28
Priority:LowDue date:
Assignee:-% Done:

0%

Category:Тексты / строки
Target version:0.7

Description

Описания переведены на построение на лету, но лимит на 12 строк параметров никто не отменял (6 регистров)
ПС, который использует скорость в параметрах, имеет 13 параметров, так что применение пока невозможно
----
http://www.tt-forums.net/viewtopic.php?p=1143264#p1143264

it's probably not "small", but this is the code i use:
Code:
switch(FEAT_TRAINS, SELF, VEH_ID(text_switch_default), [STORE_TEMP(string(STR_AUTO_0) | string(STR_USAGE_PASSENGER) << 16, 0x100), STORE_TEMP(string(STR_TRACK_TYPES_DEFAULT) | string(STR_TRACK_TYPE_E) << 16, 0x101), 0]) {
return string(STR_ENG_DESCRIPTION);
}
with these strings:
Code:
STR_AUTO_0 :Bo'Bo'
STR_USAGE_PASSENGER :Main line passenger
STR_TRACK_TYPES_DEFAULT :{STRING}
STR_TRACK_TYPE_E :{YELLOW}electrified{ORANGE}
STR_ENG_DESCRIPTION :{BLACK}Axle Scheme: {GOLD}{STRING}{BLACK} Use: {GOLD}{STRING}{BLACK}{}Track Class: {GOLD}{STRING}{BLACK}

History

#1 Updated by George about 3 years ago

  • Subject changed from Display volume in proper units to Display volume|speed in proper units

#2 Updated by George 8 months ago

  • Description updated (diff)

#3 Updated by George 5 months ago

  • Assignee deleted (George)

Also available in: Atom PDF