예제 #1
0
        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;
            }
        }
예제 #3
0
        /// <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;
            }
        }
예제 #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;
            }
        }