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); }
void player_OnGetPlayerInfos(object sender, SharpMod.SharpModEventArgs e) { GetPlayerInfosHandler method = new GetPlayerInfosHandler(updateUIP); try { } catch { } }
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); } }