Exemple #1
0
 protected override void OnDraw(SharpDX.Direct2D1.WindowRenderTarget device)
 {
     if (Program.GameImplementation.GetValue <YesNo>("menuEnabled") == YesNo.Yes)
     {
         mainMenu.Draw(device);
     }
     if (Program.GameImplementation.GetValue <YesNo>("radarEnabled") == YesNo.Yes)
     {
         ctrlRadar.Draw(device);
     }
     if (Program.GameImplementation.GetValue <YesNo>("espEnabled") == YesNo.Yes)
     {
         ctrlEsp.Draw(device);
     }
     if (Program.GameImplementation.GetValue <YesNo>("crosshairEnabled") == YesNo.Yes)
     {
         ctrlCrosshair.Draw(device);
     }
     if (Program.GameImplementation.GetValue <YesNo>("miscInfoEnabled") == YesNo.Yes)
     {
         ctrlPlayerInformation.Draw(device);
     }
 }