Пример #1
0
 public UIGraph_BuildLabels()
 {
     try
     {
         pixelsToUnits = FastDelegateFactory.Create <PixelsToUnitsDelegate>(typeof(UIComponent), "PixelsToUnits", instanceMethod: true);
         addSolidQuad  = FastDelegateFactory.Create <AddSolidQuadDelegate>(typeof(UIGraph), "AddSolidQuad", instanceMethod: true);
     }
     catch (Exception ex)
     {
         Log.Error("The 'Real Time' mod failed to create delegates for the UIGraph. Error message: " + ex);
     }
 }
Пример #2
0
 public UIGraph_BuildLabels()
 {
     try
     {
         pixelsToUnits = FastDelegate.Create <UIComponent, PixelsToUnitsDelegate>("PixelsToUnits");
         addSolidQuad  = FastDelegate.Create <UIGraph, AddSolidQuadDelegate>("AddSolidQuad");
     }
     catch (Exception ex)
     {
         Log.Error("The 'Real Time' mod failed to create delegates for the UIGraph. Error message: " + ex);
     }
 }