Example #1
0
 private static unsafe void DrawButtonStop()
 {
     ImGui.SameLine();
     if (ImGui.Button(FontAwesomeIcon.Stop.ToIconString()))
     {
         PlaybackManager.Stop();
     }
 }
Example #2
0
        private static unsafe void DrawButtonFastForward()
        {
            ImGui.SameLine();
            if (ImGui.Button(FontAwesomeIcon.FastForward.ToIconString()))
            {
                PlaybackManager.Next();
            }

            if (ImGui.IsItemHovered() && ImGui.IsMouseClicked(ImGuiMouseButton.Right))
            {
                PlaybackManager.Last();
            }
        }
Example #3
0
        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();
                }
            }
        }