class DisplayGlassInkGameController extends DeviceInkGameControllerBase
{

	public function TurnOn()
	{
		if( GetOwner().GetDevicePS().IsTinted() )
		{
			m_rootWidget.SetVisible( true );
		}
	}

	public function TurnOff()
	{
		m_rootWidget.SetVisible( false );
	}

	public override function Refresh( state : EDeviceStatus )
	{
		SetupWidgets();
		switch( state )
		{
			case EDeviceStatus.ON:
				TurnOn();
			break;
			case EDeviceStatus.OFF:
				TurnOff();
			break;
			case EDeviceStatus.UNPOWERED:
				break;
			case EDeviceStatus.DISABLED:
				break;
			default:
				break;
		}
		super.Refresh( state );
	}

	protected override function GetOwner() : DisplayGlass
	{
		return ( ( DisplayGlass )( GetOwnerEntity() ) );
	}

}

