I'v hit a snag in my latest project.
Basically, Im experimenting with outgauge, and I cant seem to be able to do anyhting with the Flags.
I can output (and play with) rpm, speed, etc...
but flags... cant do a thing.
To test it, I did a small label, that chances its background color to indicate shift_light on or off.
this is the (not working) code:
That first line (the IF) is where the snag is.
I've tried (og.Flags.XXXX) - but og.Flags apparently only has ToString, Equals, etc...
I cant seem to get a way to see if the og (my outgauge packet) has the OG_Shiftlight flag or not (or for that matter, any other flag).
I know its something retardedly simple, but somehow its been eluding me for quite a while now....
EDIT:
I've managed to make it work, via this line:
if((og.Flags.ToString().Contains(Flags.OutGaugeFlags.OG_SHIFTLIGHT.ToString())))
... but this feels dirty. I feel like using a wreckingball to drive a nail into a wall...
Basically, Im experimenting with outgauge, and I cant seem to be able to do anyhting with the Flags.
I can output (and play with) rpm, speed, etc...
but flags... cant do a thing.
To test it, I did a small label, that chances its background color to indicate shift_light on or off.
this is the (not working) code:
if((og.Flags.OG_SHIFTLIGHT))
{
shift_light.BackColor = System.Drawing.Color.Red;
}
That first line (the IF) is where the snag is.
I've tried (og.Flags.XXXX) - but og.Flags apparently only has ToString, Equals, etc...
I cant seem to get a way to see if the og (my outgauge packet) has the OG_Shiftlight flag or not (or for that matter, any other flag).
I know its something retardedly simple, but somehow its been eluding me for quite a while now....
EDIT:
I've managed to make it work, via this line:
if((og.Flags.ToString().Contains(Flags.OutGaugeFlags.OG_SHIFTLIGHT.ToString())))
... but this feels dirty. I feel like using a wreckingball to drive a nail into a wall...