Searching in All forums
(2 results)
[C#] Button doesn't display with LFSLib.NET
Mardaneus
S2 licensed
I'm currently testing some InSim stuff but am having trouble getting Buttons to show in LFS. Testing the LFSLib for .NET and using C# code.

I'm using this code:
InSim.LfsButton btn = new InSim.LfsButton(0);
btn.Clickable = true;
btn.Left = 10;
btn.Top = 10;
btn.Width = 200;
btn.Height = 200;
btn.Text = "Test button";
btn.TextAlignment = ButtonTextAlignment.Center;

handler.SetButton(btn, player.Id);

player ID fills up correctly, but the button does not show up on the racers screen. If I send a message to that players ID, it shows up, so the players ID is not an issue.

Testing the Time Monitor example from http://www.claassen.net/geek/blog/labels/LFSLib.NET.html the buttons don't show up either.

Can anyone give me some info on why this is occuring?
Mardaneus
S2 licensed
First of all, Merry Christmas, and thank you for this great new patch.

However, I have a question about the reasoning behind this "fix": Removed digital speedo option - now depends on type of car
Why has this option been removed? I'll be more willing to shift to analog speedo's if I understand why the developers made this decision.

Also it is kind of hard to get the idea behind the clutch temperature. More info on this would be nice.

BTW: BL GP has become awkward Didn't have the chance to test South City yet.
FGED GREDG RDFGDR GSFDG