Ejemplo n.º 1
0
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释

        /* ctor */
        public MessageWindow(Dictionary <string, object> deserializeDictionary)
        {
            m_UpdatableComponent = deserializeDictionary[nameof(UpdatableComponent)] as UpdatableComponent ?? throw new ArgumentException($"{nameof(UpdatableComponent)} is null.");
            gameObject           = m_UpdatableComponent.gameObject;
            transform            = m_UpdatableComponent.transform;

            if (deserializeDictionary.TryGetValue(nameof(m_WindowAnimator), out object windowAnimator_object) &&
                windowAnimator_object is Animator windowAnimator_animator)
            {
                m_WindowAnimator = windowAnimator_animator;
            }
            else
            {
                m_WindowAnimator = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_ContentText), out object contentText_object) &&
                contentText_object is Text contentText_text)
            {
                m_ContentText = contentText_text;
            }
            else
            {
                m_ContentText = null;
            }

            m_MessageBuilder = new StringBuilder();
        }
Ejemplo n.º 2
0
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释

        /* ctor */
        public MakeSureWindow(Dictionary <string, object> deserializeDictionary)
        {
            m_UpdatableComponent = deserializeDictionary[nameof(UpdatableComponent)] as UpdatableComponent ?? throw new ArgumentException($"{nameof(UpdatableComponent)} is null.");
            gameObject           = m_UpdatableComponent.gameObject;
            transform            = m_UpdatableComponent.transform;

            if (deserializeDictionary.TryGetValue(nameof(m_WindowAnimator), out object windowAnimator_object) &&
                windowAnimator_object is Animator windowAnimator_animator)
            {
                m_WindowAnimator = windowAnimator_animator;
            }
            else
            {
                m_WindowAnimator = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_TitleText), out object titleText_object) &&
                titleText_object is Text titleText_text)
            {
                m_TitleText = titleText_text;
            }
            else
            {
                m_TitleText = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_ContentText), out object contentText_object) &&
                contentText_object is Text contentText_text)
            {
                m_ContentText = contentText_text;
            }
            else
            {
                m_ContentText = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_YesButton), out object yesButton_object) &&
                yesButton_object is Button yesButton_button)
            {
                m_YesButton = yesButton_button;
            }
            else
            {
                m_YesButton = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_NoButton), out object noButton_object) &&
                noButton_object is Button noButton_button)
            {
                m_NoButton = noButton_button;
            }
            else
            {
                m_NoButton = null;
            }
        }
Ejemplo n.º 3
0
        /* ctor */
        public UIBMPFontInfo(Dictionary <string, object> deserializeDictionary)
        {
            m_UpdatableComponent = deserializeDictionary[nameof(UpdatableComponent)] as UpdatableComponent ?? throw new ArgumentException($"{nameof(UpdatableComponent)} is null.");
            gameObject           = m_UpdatableComponent.gameObject;
            transform            = m_UpdatableComponent.transform;

            if (deserializeDictionary.TryGetValue(nameof(m_Animator), out object windowAnimator_object) &&
                windowAnimator_object is Animator windowAnimator_animator)
            {
                m_Animator = windowAnimator_animator;
            }
            else
            {
                m_Animator = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_FoldImage), out object foldImage_object) &&
                foldImage_object is Image foldImage_image)
            {
                m_FoldImage = foldImage_image;
            }
            else
            {
                m_FoldImage = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_UnfoldImage), out object unfoldImage_object) &&
                unfoldImage_object is Image unfoldImage_image)
            {
                m_UnfoldImage = unfoldImage_image;
            }
            else
            {
                m_UnfoldImage = null;
            }

            deserializeDictionary.TryPushValue(nameof(m_FaceText), out m_FaceText);
            deserializeDictionary.TryPushValue(nameof(m_SizeText), out m_SizeText);
            deserializeDictionary.TryPushValue(nameof(m_BoldToggle), out m_BoldToggle);
            deserializeDictionary.TryPushValue(nameof(m_ItalicToggle), out m_ItalicToggle);
            deserializeDictionary.TryPushValue(nameof(m_CharSetText), out m_CharSetText);
            deserializeDictionary.TryPushValue(nameof(m_UnicodeToggle), out m_UnicodeToggle);
            deserializeDictionary.TryPushValue(nameof(m_StretchHText), out m_StretchHText);
            deserializeDictionary.TryPushValue(nameof(m_SmoothToggle), out m_SmoothToggle);
            deserializeDictionary.TryPushValue(nameof(m_AAToggle), out m_AAToggle);
            deserializeDictionary.TryPushValue(nameof(m_PaddingText), out m_PaddingText);
            deserializeDictionary.TryPushValue(nameof(m_SpacingText), out m_SpacingText);
        }
Ejemplo n.º 4
0
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释

        /* ctor */
        public FontSettingWindow(Dictionary <string, object> deserializeDictionary)
        {
            m_UpdatableComponent = deserializeDictionary[nameof(UpdatableComponent)] as UpdatableComponent ?? throw new ArgumentException($"{nameof(UpdatableComponent)} is null.");
            gameObject           = m_UpdatableComponent.gameObject;
            transform            = m_UpdatableComponent.transform;

            if (deserializeDictionary.TryGetValue(nameof(m_WindowAnimator), out object windowAnimator_object) &&
                windowAnimator_object is Animator windowAnimator_animator)
            {
                m_WindowAnimator = windowAnimator_animator;
            }
            else
            {
                m_WindowAnimator = null;
            }

            deserializeDictionary.TryPushValue(nameof(m_UIBMPFontCommon), out m_UIBMPFontCommon);
            UIBMPFontCommon = m_UIBMPFontCommon.InstanceObject as UIBMPFontCommon ?? throw new NullReferenceException(nameof(UIBMPFontCommon));
            deserializeDictionary.TryPushValue(nameof(m_UIBMPFontInfo), out m_UIBMPFontInfo);
            UIBMPFontInfo = m_UIBMPFontInfo.InstanceObject as UIBMPFontInfo ?? throw new NullReferenceException(nameof(UIBMPFontInfo));
        }
Ejemplo n.º 5
0
        /* ctor */
        public UIBMPFontCommon(Dictionary <string, object> deserializeDictionary)
        {
            m_UpdatableComponent = deserializeDictionary[nameof(UpdatableComponent)] as UpdatableComponent ?? throw new ArgumentException($"{nameof(UpdatableComponent)} is null.");
            gameObject           = m_UpdatableComponent.gameObject;
            transform            = m_UpdatableComponent.transform;

            if (deserializeDictionary.TryGetValue(nameof(m_Animator), out object windowAnimator_object) &&
                windowAnimator_object is Animator windowAnimator_animator)
            {
                m_Animator = windowAnimator_animator;
            }
            else
            {
                m_Animator = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_FoldImage), out object foldImage_object) &&
                foldImage_object is Image foldImage_image)
            {
                m_FoldImage = foldImage_image;
            }
            else
            {
                m_FoldImage = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_UnfoldImage), out object unfoldImage_object) &&
                unfoldImage_object is Image unfoldImage_image)
            {
                m_UnfoldImage = unfoldImage_image;
            }
            else
            {
                m_UnfoldImage = null;
            }

            deserializeDictionary.TryPushValue(nameof(m_LineHelght), out m_LineHelght);
            deserializeDictionary.TryPushValue(nameof(m_Base), out m_Base);
            deserializeDictionary.TryPushValue(nameof(m_Scale), out m_Scale);
        }
Ejemplo n.º 6
0
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释

        /* ctor */
        public MenuWindow(Dictionary <string, object> deserializeDictionary)
        {
            m_UpdatableComponent = deserializeDictionary[nameof(UpdatableComponent)] as UpdatableComponent ?? throw new ArgumentException($"{nameof(UpdatableComponent)} is null.");
            gameObject           = m_UpdatableComponent.gameObject;
            transform            = m_UpdatableComponent.transform;

            if (deserializeDictionary.TryGetValue(nameof(m_WindowAnimator), out object windowAnimator_object) &&
                windowAnimator_object is Animator windowAnimator_animator)
            {
                m_WindowAnimator = windowAnimator_animator;
            }
            else
            {
                m_WindowAnimator = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_LoadFontButton), out object loadFontButton_object) &&
                loadFontButton_object is Button loadFontButton_button)
            {
                m_LoadFontButton = loadFontButton_button;
            }
            else
            {
                m_LoadFontButton = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_ExitButton), out object exitButton_object) &&
                exitButton_object is Button exitButton_button)
            {
                m_ExitButton = exitButton_button;
            }
            else
            {
                m_ExitButton = null;
            }
        }
Ejemplo n.º 7
0
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释

        /* ctor */
        public FileAndDirectoryWindow(Dictionary <string, object> deserializeDictionary)
        {
            m_UpdatableComponent = deserializeDictionary[nameof(UpdatableComponent)] as UpdatableComponent ?? throw new ArgumentException($"{nameof(UpdatableComponent)} is null.");
            gameObject           = m_UpdatableComponent.gameObject;
            transform            = m_UpdatableComponent.transform;

            if (deserializeDictionary.TryGetValue(nameof(m_WindowAnimator), out object windowAnimator_object) &&
                windowAnimator_object is Animator windowAnimator_animator)
            {
                m_WindowAnimator = windowAnimator_animator;
            }
            else
            {
                m_WindowAnimator = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_TitleText), out object titleText_object) &&
                titleText_object is Text titleText_text)
            {
                m_TitleText = titleText_text;
            }
            else
            {
                m_TitleText = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_FullPathText), out object fullPathText_object) &&
                fullPathText_object is InputField fullPathText_text)
            {
                m_FullPathText = fullPathText_text;
            }
            else
            {
                m_FullPathText = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_OKButton), out object okButton_object) &&
                okButton_object is Button okButton_button)
            {
                m_OKButton = okButton_button;
            }
            else
            {
                m_OKButton = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_CancleButton), out object cancleButton_object) &&
                cancleButton_object is Button cancleButton_button)
            {
                m_CancleButton = cancleButton_button;
            }
            else
            {
                m_CancleButton = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_CacheTrans), out object cache_object) &&
                cache_object is RectTransform cache_transform)
            {
                m_CacheTrans = cache_transform;
            }
            else
            {
                m_CacheTrans = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_ScrollContentTrans), out object scrollContentTrans_object) &&
                scrollContentTrans_object is RectTransform scrollContent_transform)
            {
                m_ScrollContentTrans = scrollContent_transform;
            }
            else
            {
                m_ScrollContentTrans = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_FileItemPrefab), out object fileItemPrefab_object) &&
                fileItemPrefab_object is GameObject fileItem_gameObject)
            {
                m_FileItemPrefab = fileItem_gameObject;
            }
            else
            {
                m_FileItemPrefab = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_DirectoryItemPrefab), out object directoryItemPrefab_object) &&
                directoryItemPrefab_object is GameObject directoryItem_gameObject)
            {
                m_DirectoryItemPrefab = directoryItem_gameObject;
            }
            else
            {
                m_DirectoryItemPrefab = null;
            }


            FileSystemInfos = new List <FileSystemInfo>();

            FileAndDirectoryItems = new List <IFileAndDirectoryItem>();
            FileItemsCache        = new Stack <IFileAndDirectoryItem>();
            DirectoryItemsCache   = new Stack <IFileAndDirectoryItem>();
        }
Ejemplo n.º 8
0
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释

        /* ctor */
        public RendererWindow(Dictionary <string, object> deserializeDictionary)
        {
            m_UpdatableComponent = deserializeDictionary[nameof(UpdatableComponent)] as UpdatableComponent ?? throw new ArgumentException($"{nameof(UpdatableComponent)} is null.");
            gameObject           = m_UpdatableComponent.gameObject;
            transform            = m_UpdatableComponent.transform;

            if (deserializeDictionary.TryGetValue(nameof(m_WindowAnimator), out object windowAnimator_object) &&
                windowAnimator_object is Animator windowAnimator_animator)
            {
                m_WindowAnimator = windowAnimator_animator;
            }
            else
            {
                m_WindowAnimator = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_PlusButton), out object plusButton_object) &&
                plusButton_object is Button plusButton_button)
            {
                m_PlusButton = plusButton_button;
            }
            else
            {
                m_PlusButton = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_MinusButton), out object minusButton_object) &&
                minusButton_object is Button minusButton_button)
            {
                m_MinusButton = minusButton_button;
            }
            else
            {
                m_MinusButton = null;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_MaxScale), out object maxScale_object) &&
                maxScale_object is float maxScale_float)
            {
                m_MaxScale = maxScale_float;
            }
            else
            {
                m_MaxScale = 3f;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_MinScale), out object minScale_object) &&
                minScale_object is float minScale_float)
            {
                m_MinScale = minScale_float;
            }
            else
            {
                m_MinScale = 0.3f;
            }

            if (deserializeDictionary.TryGetValue(nameof(m_ScrollContent), out object scrollContent_object) &&
                scrollContent_object is RectTransform scrollContent_trans)
            {
                m_ScrollContent = scrollContent_trans;
            }
            else
            {
                m_ScrollContent = null;
            }

            deserializeDictionary.TryPushValue(nameof(m_CharItemPrefab), out m_CharItemPrefab);
            deserializeDictionary.TryPushValue(nameof(m_InputField), out m_InputField);
            CharGo = new List <GameObject>();
        }
Ejemplo n.º 9
0
#pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释

        /* ctor */
        public UILayout(Dictionary <string, object> deserializeDictionary)
        {
            UpdatableComponent = deserializeDictionary[nameof(UpdatableComponent)] as UpdatableComponent ?? throw new ArgumentException($"{nameof(UpdatableComponent)} is null.");
            gameObject         = UpdatableComponent.gameObject;
            transform          = UpdatableComponent.transform as RectTransform;
        }