Beispiel #1
0
 /// <summary>
 /// Sets a new device configuration.
 /// </summary>
 // <param name="_device">Name of the device.</param>
 public void SetDevice(Device _device)
 {
     deviceConfig                = ALPSDevice.GetConfig(_device);
     ALPSCamera.deviceConfig     = deviceConfig;
     ALPSBarrelMesh.deviceConfig = deviceConfig;
     ALPSCrosshairs.deviceConfig = deviceConfig;
     ClearDirty();
 }
    //=====================================================================================================
    // Functions
    //=====================================================================================================

    public void OnEnable()
    {
        controller                  = (ALPSController)target;
        deviceConfig                = (controller.deviceConfig == null)? ALPSDevice.GetConfig(Device.DEFAULT):controller.deviceConfig;
        controller.deviceConfig     = deviceConfig;
        ALPSCamera.deviceConfig     = deviceConfig;
        ALPSBarrelMesh.deviceConfig = deviceConfig;
        ALPSCrosshairs.deviceConfig = deviceConfig;
        screenSize                  = deviceConfig.GetScreenOption();
    }
    //=====================================================================================================
    // Functions
    //=====================================================================================================

    public void OnEnable()
    {
        controller              = (ALPSControllerLight)target;
        deviceConfig            = (controller.deviceConfig == null)? ALPSDevice.GetConfig(Device.DEFAULT):controller.deviceConfig;
        controller.deviceConfig = deviceConfig;
    }
Beispiel #4
0
 /// <summary>
 /// Sets a new device configuration.
 /// </summary>
 // <param name="_device">Name of the device.</param>
 public void SetDevice(Device _device)
 {
     deviceConfig = ALPSDevice.GetConfig(_device);
     ClearDirty();
 }