class PhotoModeCameraLocation extends inkLogicController
{
	editable var m_textWidget : inkWidgetRef;

	public function RefreshValue( photoModeSystem : PhotoModeSystem )
	{
		var textWidget : inkText;
		var cameraPosition : WorldPosition;
		photoModeSystem.GetCameraLocation( cameraPosition );
		textWidget = ( ( inkText )( inkWidgetRef.Get( m_textWidget ) ) );
		if( textWidget )
		{
			textWidget.SetText( ( ( ( ( ( "WPXYZ / " + FloatToStringPrec( WorldPosition.GetX( cameraPosition ), 3 ) ) + " / " ) + FloatToStringPrec( WorldPosition.GetY( cameraPosition ), 3 ) ) + " / " ) + FloatToStringPrec( WorldPosition.GetZ( cameraPosition ), 3 ) ) + " / CP" );
		}
	}

	public function OnHide()
	{
		var textWidget : inkText;
		textWidget = ( ( inkText )( inkWidgetRef.Get( m_textWidget ) ) );
		if( textWidget )
		{
			textWidget.SetText( "" );
		}
	}

}

