public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            selectedKey = LocalizedKeySelector.SelectKeyGUI(selectedKey, true, LocalizedObjectType.STRING);

            if (!Application.isPlaying && GUILayout.Button("Use Key", GUILayout.Width(70)))
            {
                SL_NGUISpriteName spriteObject = ((SL_NGUISpriteName)target);
                spriteObject.localizedKey = selectedKey;
            }
        }
        /// <summary>
        /// Override of the OnInspectorGUI method
        /// </summary>
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            selectedKey = LocalizedKeySelector.SelectKeyGUI(selectedKey, true, LocalizedObjectType.AUDIO);

            if (!Application.isPlaying && GUILayout.Button("»спользовать  люч", GUILayout.Width(130)))
            {
                LocalizedAudioSource audioObject = ((LocalizedAudioSource)target);
                audioObject.localizedKey = selectedKey;
            }
        }
        /// <summary>
        /// Override of the OnInspectorGUI method
        /// </summary>
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            selectedKey = LocalizedKeySelector.SelectKeyGUI(selectedKey, true, LocalizedObjectType.STRING);

            if (!Application.isPlaying && GUILayout.Button("»спользовать  люч", GUILayout.Width(130)))
            {
                LocalizedGUIText textObject = ((LocalizedGUIText)target);
                textObject.localizedKey = selectedKey;
            }
        }
Esempio n. 4
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            selectedKey = LocalizedKeySelector.SelectKeyGUI(selectedKey, true, LocalizedObjectType.STRING);

            if (!Application.isPlaying && GUILayout.Button("Use Key", GUILayout.Width(70)))
            {
                LocalizedText textObject = ((LocalizedText)target);
                Undo.RecordObject(textObject, "Set Smart Localization text");
                textObject.localizedKey = selectedKey;
            }
        }