private static unsafe void DrawButtonStop() { ImGui.SameLine(); if (ImGui.Button(FontAwesomeIcon.Stop.ToIconString())) { PlaybackManager.Stop(); } }
private static unsafe void DrawButtonFastForward() { ImGui.SameLine(); if (ImGui.Button(FontAwesomeIcon.FastForward.ToIconString())) { PlaybackManager.Next(); } if (ImGui.IsItemHovered() && ImGui.IsMouseClicked(ImGuiMouseButton.Right)) { PlaybackManager.Last(); } }
private static unsafe void DrawButtonPlayPause() { var PlayPauseIcon = IsPlaying ? FontAwesomeIcon.Pause.ToIconString() : FontAwesomeIcon.Play.ToIconString(); if (ImGui.Button(PlayPauseIcon)) { PluginLog.Debug($"PlayPause pressed. wasplaying: {IsPlaying}"); if (IsPlaying) { PlaybackManager.Pause(); } else { PlaybackManager.Play(); } } }