File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,14 +215,14 @@ public override void PrepareFrame(ElapsedTime elapsedTime, bool updateFull)
215215 }
216216 else if ( signalObj != null )
217217 {
218- string aspects = string . Join ( " / " , signalObj . Signal . SignalHeads . Select (
219- x => x . state . ToString ( ) + ( x . TextSignalAspect . Length > 0 ? $ " ({ x . TextSignalAspect } )" : string . Empty )
218+ var aspects = string . Join ( " / " , signalObj . Signal . SignalHeads . Select (
219+ head => $ " { head . state } " + ( head . TextSignalAspect . Length > 0 ? $ " ({ head . TextSignalAspect } )" : string . Empty )
220220 ) ) ;
221221 primitives . Add ( new DispatcherLabel ( currentPosition . WorldLocation ,
222222 GetAspect ( signalObj . Signal ) == DebugWindowSignalAspect . Stop ? Color . Red :
223223 GetAspect ( signalObj . Signal ) == DebugWindowSignalAspect . Warning ? Color . Yellow :
224224 Color . Green ,
225- String . Format ( "Signal {0} ({1})" , signalObj . Signal . thisRef , aspects ) ,
225+ $ "Signal { signalObj . Signal . thisRef } ( { aspects } )" ,
226226 Owner . TextFontDefaultOutlined ) ) ;
227227 }
228228
You can’t perform that action at this time.
0 commit comments