The online racing simulator
#1 - Ziroh
Set street names on open config tracks, C#
Hey guys, I know I'm late but i really have no idea how to set street names on open config tracks

Before i used to create a button, to get the X and Y value, then use a code like this
if ((Conn.CompCar.Node >= NODE VALUE) && ((Conn.CompCar.X / 196608) < X VALUE) && ((Conn.CompCar.Y / 196608) < Y VALUE))
{
InSim.Send_BTN_CreateButton("STREETNAME", Flags.ButtonStyles.ISB_DARK, 6, 27, 80, 2, 171, (Conn.UniqueID), 2, false);
}

How should i do it now?

Edit, see my 2nd. post
Nodes are not available on open configs, you'd probably have to define some polygons representing the streets and check if a such a polygon contains the X,Y coords of a car... I can't think of any easier approach ATM.
-
(Ziroh) DELETED by Ziroh
#3 - Ziroh
Okey, I've tried LFS Polygons draw Tool and know how it works now.

The one and only problem now is how i should code it in C#. If anyone could help me, I'll be more than happy!

FGED GREDG RDFGDR GSFDG