csharp/365082218/meteor_original_ios/Assets/ThirdParty/NGUI/Scripts/Editor/UILabelInspector.cs

UILabelInspector.cs
//----------------------------------------------
//            NGUI: Next-Gen UI kit
// Copyright © 2011-2013 Tasharen Entertainment
//----------------------------------------------

using UnityEngine;
using UnityEditor;
using System;

/// 
/// Inspector clast used to edit UILabels.
/// 

[CustomEditor(typeof(UILabel))]
public clast UILabelInspector : UIWidgetInspector
{
	UILabel mLabel;
	UILabel mLanguage;
	/// 
	/// Register an Undo command with the Unity editor.
	/// 

	void RegisterUndo () { NGUIEditorTools.RegisterUndo("Label Change", mLabel); }

	void ReLoadLanguage(){
        //LanguagesManager.Instance.ReLoad();
    }
	/// 
	/// Font selection callback.
	/// 


	void OnSelectFont (MonoBehaviour obj)
	{
		if (mLabel != null)
		{
			NGUIEditorTools.RegisterUndo("Font Selection", mLabel);
			bool resize = (mLabel.font == null);
			mLabel.font = obj as UIFont;
			if (resize) mLabel.MakePixelPerfect();
		}
	}
}