Csantucci, on 07 September 2021 - 07:33 AM, said:
In the manual I read:
"Gauges of solid type have to be named AMMETER:1:10:100; where the three numbers indicate that
this is the second ammeter, that it has a width 10 mm, and a maximum length of 100 mm. The color
and direction/orientation follow those defined in .cvf files."
In your .s file the third numeric parameter is missing. In this case you probably get a gauge of length 0.
I'm not certain of what version I sent you, but we did what the manual says but for some reason we are finding only a black bar. It worked as it should be, but not with the color. Now we're trying to create a animation similar to a Needle gauge but "tranlating" the needle to a gauge.
Csantucci, on 07 September 2021 - 07:33 AM, said:
Re the digital problems, in the manual I read:
"Digits for 3D cabs can now use custom ACE files; e.g. name the part as CLOCK:1:15:CLOCKS. This will
draw the second clock with 15mm font dimension, with the CLOCKS.ACE file in CABVIEW3D containing
the font. If no ace is specified, the default will be used."
Maybe if you use for every digital two .cvf controls, one activated in the positive range which has the custom .ace with the color of the positive colour, and the other activated in the negative range which has the ,ace with the custom .ace with the color of the negative coloour, you can solve the problem.
That's a good idea. How can i activate and deactivate a display at cvf file? I know how to do this in a .sms file but I never saw this on a .cvf file.
Here's my load_meter display at 2D cab. When it's below zero I have the negative value at my display, but I have the O green value.
Digital (
Type ( LOAD_METER DIGITAL )
Position ( 416 211 37 50 )
ScaleRange ( -1 90000 )
Accuracy ( 0 )
AccuracySwitch ( 0 )
LeadingZeros ( 0 )
Justification ( 1 )
PositiveColour ( 1
ControlColour ( 0 157 0 )
)
NegativeColour ( 1
ControlColour ( 242 242 0 )
)
DecreaseColour ( 0
ControlColour ( 0 0 0 )
)
Units ( AMPS )
ORTSFont ( 4.1 1 "Arial" )
)
Digital (
Type ( LOAD_METER DIGITAL )
Position ( 416 211 37 50 )
ScaleRange ( -60000 0 )
Accuracy ( 0 )
AccuracySwitch ( 0 )
LeadingZeros ( 0 )
Justification ( 1 )
PositiveColour ( 1
ControlColour ( 0 157 0 )
)
NegativeColour ( 1
ControlColour ( 242 242 0 )
)
DecreaseColour ( 0
ControlColour ( 0 0 0 )
)
Units ( AMPS )
ORTSFont ( 4.1 1 "Arial" )
)