示例#1
0
 private void SetupAnnounce(ANNOUNCE_TYPE type, string charaName)
 {
     //IL_0098: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
     //IL_00c8: Unknown result type (might be due to invalid IL or missing references)
     //IL_00fd: Unknown result type (might be due to invalid IL or missing references)
     //IL_010e: Unknown result type (might be due to invalid IL or missing references)
     //IL_011f: Unknown result type (might be due to invalid IL or missing references)
     if (type == ANNOUNCE_TYPE.DEAD || type == ANNOUNCE_TYPE.RETIRE)
     {
         deadBack.SetActive(true);
         deadEff.SetActive(true);
         rescueBack.SetActive(false);
         rescueEff.SetActive(false);
     }
     else
     {
         deadBack.SetActive(false);
         deadEff.SetActive(false);
         rescueBack.SetActive(true);
         rescueEff.SetActive(true);
     }
     announceName.text           = labelSettings[(int)type].text;
     announceName.gradientTop    = labelSettings[(int)type].topColor;
     announceName.gradientBottom = labelSettings[(int)type].bottomColor;
     announceName.effectColor    = labelSettings[(int)type].effectColor;
     announceEffect.text         = labelSettings[(int)type].text;
     playerName.text             = charaName;
     announceName.fontStyle      = style;
     announceEffect.fontStyle    = style;
     playerName.fontStyle        = style;
 }
示例#2
0
 public void Announce(ANNOUNCE_TYPE type, string charaName)
 {
     if (AnnounceStart())
     {
         SetupAnnounce(type, charaName);
     }
 }
示例#3
0
 public void Announce(ANNOUNCE_TYPE type, Player player)
 {
     if (AnnounceStart(player))
     {
         SetupAnnounce(type, player.charaName);
     }
 }
    public void Play(ANNOUNCE_TYPE type, string userName, Action onComplete)
    {
        SetActive((Enum)UI.WGT_ANCHOR_POINT, true);
        if (widget == null || tweenCtrl == null)
        {
            if (onComplete != null)
            {
                onComplete();
            }
        }
        else
        {
            switch (type)
            {
            case ANNOUNCE_TYPE.CREATED_PARTY:
            {
                string text3 = StringTable.Get(STRING_CATEGORY.LOUNGE, 0u);
                SetLabelText((Enum)UI.LBL_ANNOUNCE, text3);
                break;
            }

            case ANNOUNCE_TYPE.JOIN_LOUNGE:
            {
                string text2 = StringTable.Get(STRING_CATEGORY.LOUNGE, 1u);
                SetLabelText((Enum)UI.LBL_ANNOUNCE, text2);
                break;
            }

            case ANNOUNCE_TYPE.LEAVED_LOUNGE:
            {
                string text = StringTable.Get(STRING_CATEGORY.LOUNGE, 2u);
                SetLabelText((Enum)UI.LBL_ANNOUNCE, text);
                break;
            }
            }
            SetLabelText((Enum)UI.LBL_USER_NAME, userName);
            SetFontStyle((Enum)UI.LBL_ANNOUNCE, 2);
            SetFontStyle((Enum)UI.LBL_USER_NAME, 2);
            tweenCtrl.Reset();
            tweenCtrl.Play(true, delegate
            {
                if (onComplete != null)
                {
                    onComplete();
                }
            });
        }
    }
示例#5
0
 public void Announce(ANNOUNCE_TYPE type, Player player)
 {
     //IL_0033: Unknown result type (might be due to invalid IL or missing references)
     //IL_004b: Unknown result type (might be due to invalid IL or missing references)
     //IL_0085: Unknown result type (might be due to invalid IL or missing references)
     //IL_0096: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a7: Unknown result type (might be due to invalid IL or missing references)
     if (AnnounceStart(player))
     {
         announceName.text           = labelSettings[(int)type].text;
         announceName.gradientTop    = labelSettings[(int)type].topColor;
         announceName.gradientBottom = labelSettings[(int)type].bottomColor;
         announceEffect.text         = labelSettings[(int)type].text;
         playerName.text             = player.charaName;
         announceName.fontStyle      = style;
         announceEffect.fontStyle    = style;
         playerName.fontStyle        = style;
     }
 }
 public AnnounceData(ANNOUNCE_TYPE setType, string setName)
 {
     type = setType;
     name = setName;
 }