예제 #1
0
    //===================================================================================
    //
    // Event
    //
    //===================================================================================
    /// <summary>
    /// 길드마크 변경 버튼.
    /// </summary>
    /// <param name="go"></param>
    private void OnEmblemChange(GameObject go)
    {
        if (go != null)
        {
            SoundManager.Instance.PlayFX(enSoundFXUI.BUTTON_MEDIUM);
        }
        if (m_GuildEmblemPopupWindow == null)
        {
            m_GuildEmblemPopupWindow = UIResourceMgr.CreatePrefab <GuildEmblem>(BUNDLELIST.PREFABS_UI_GUILD, transform, "GuildEmblem");
            m_GuildEmblemPopupWindow.Init(this);
        }

        m_GuildEmblemPopupWindow.OpenUI();
    }
예제 #2
0
    //===================================================================================
    //
    // Method
    //
    //===================================================================================
    public void Init()
    {
        m_GuildEmblemPopupWindow = UIResourceMgr.CreatePrefab <GuildEmblem>(BUNDLELIST.PREFABS_UI_GUILD, transform, "GuildEmblem");
        m_GuildEmblemPopupWindow.Init(this);
        m_GuildEmblemPopupWindow.CloseUI();

        SetJoinButton(_enGuildJoinMethod.eGuildJoinMethod_Free);

        m_iGuildCreateCountGold   = (int)CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.Guild_Create_Count_Gold).Value;
        m_iGuildCreateStringCount = (int)CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.Guild_CreateString_Count).Value;
        m_iGuildCreateLevel       = (int)CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.Guild_CreateLevel).Value;
        m_iGuildIntroStringCount  = (int)CDATA_FIXED_CONSTANTS.Get(DATA_FIXED_CONSTANTS._enConstant.Guild_IntroString_Count).Value;

        m_GuildNameTitleLabel.text       = StringTableManager.GetData(6261);
        m_GuildEmblemTitleLabel.text     = StringTableManager.GetData(6266);
        m_JoinMethodTitleLabel.text      = StringTableManager.GetData(6268);
        m_GuildDescTitleLabel.text       = StringTableManager.GetData(6249);
        m_DuplicateCheckButtonLabel.text = StringTableManager.GetData(6263);
        m_ChooseEmblemButtonLabel.text   = StringTableManager.GetData(6266);
        m_FreeJoinLabel.text             = StringTableManager.GetData(6233);
        m_ApprovalJoinLabel.text         = StringTableManager.GetData(6239);

        m_GuildCreateMoneyLabel.text   = m_iGuildCreateCountGold.ToString();
        m_GuildRequiredLevelLabel.text = string.Format(StringTableManager.GetData(6584), m_iGuildCreateLevel.ToString()); // Lv {0} 이상.

        m_CreateGuildButtonLabel.text = StringTableManager.GetData(6260);

        m_strGuildNameDefault           = StringTableManager.GetData(6262);
        m_GuildNameInput.defaultText    = m_strGuildNameDefault;
        m_GuildNameInput.characterLimit = m_iGuildCreateStringCount;

        m_strGuildDescDefault           = StringTableManager.GetData(6269);
        m_GuildDescInput.defaultText    = m_strGuildDescDefault;
        m_GuildDescInput.characterLimit = m_iGuildIntroStringCount;     // 길드소개 글자 제한 수.

        // 6585    길드 마크와 가입 형태는 추후 변경 가능합니다.
        m_BottomLabel.text = StringTableManager.GetData(6585);
    }