コード例 #1
0
ファイル: VRSEX.cs プロジェクト: pypy-vrc/VRSEX
 public static void SetActivity(ActivityInfo info)
 {
     while (m_ActivityInfos.Count >= 100)
     {
         m_ActivityInfos.RemoveAt(0);
     }
     m_ActivityInfos.Add(info);
     if ((info.Type == ActivityType.Moderation ||
          (info.Group > 0 &&
           (info.Type == ActivityType.PlayerLogin ||
            info.Type == ActivityType.PlayerLogout ||
            info.Type == ActivityType.PlayerJoined ||
            info.Type == ActivityType.PlayerLeft))) &&
         "true".Equals(LocalConfig.GetString("Overlay", "true"), StringComparison.OrdinalIgnoreCase))
     {
         var s = info.Text;
         if (s.Length > 6)
         {
             s = s.Substring(6);
         }
         SetNotify(new NotifyInfo
         {
             Text = s
         });
     }
 }
コード例 #2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     label_author.Text = VRSEX.APP + " by pypy (mina#5656)";
     checkbox_discord_presence.Checked = "true".Equals(LocalConfig.GetString("DiscordPresence", "true"), StringComparison.OrdinalIgnoreCase);
     checkbox_show_location.Checked    = "true".Equals(LocalConfig.GetString("ShowLocation", "true"), StringComparison.OrdinalIgnoreCase);
     checkbox_overlay.Checked          = "true".Equals(LocalConfig.GetString("Overlay", "true"), StringComparison.OrdinalIgnoreCase);
     OnLogin();
 }