コード例 #1
0
        private static void updateUIP(object sender, SharpMod.SharpModEventArgs sme)
        {
            string lol = "";

            lol = String.Format("{0:000}/{1:000}", sme.PatternPosition, player.CurrentModule.Patterns[sme.SongPosition].RowsCount);

            lol = String.Format("{0:000}", sme.SongPosition);
        }
コード例 #2
0
        void player_OnGetPlayerInfos(object sender, SharpMod.SharpModEventArgs e)
        {
            GetPlayerInfosHandler method = new GetPlayerInfosHandler(updateUIP);

            try
            {
            }
            catch
            {
            }
        }
コード例 #3
0
ファイル: ModulePlayer.cs プロジェクト: VRDate/sharpmod
        void PlayerInstance_OnUpdateUI()
        {
            if (OnGetPlayerInfos == null)
            {
                return;
            }

            var sme = new SharpModEventArgs
            {
                PatternNumber   = PlayerInstance.CurrentUniMod.Positions[PlayerInstance.mp_sngpos],
                SongPosition    = PlayerInstance.mp_sngpos,
                PatternPosition = PlayerInstance.mp_patpos
            };

            if (OnGetPlayerInfos != null)
            {
                OnGetPlayerInfos(this, sme);
            }
        }