mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
451cbec0b9
## Link to GitHub Issue or related Pull Request, if one exists n/a ## Description of change Adds an overlay window widget for controlling OBS over WebSocket. Add new lines to the FPS widget that shows recording / streaming timers. Show notifications for major state changes (stream started/stopped, recording started/paused/resumed/stopped) ## Testing
23 lines
486 B
C++
23 lines
486 B
C++
#pragma once
|
|
|
|
#include <chrono>
|
|
#include "overlay/window.h"
|
|
|
|
namespace overlay::windows {
|
|
|
|
class FPS : public Window {
|
|
private:
|
|
std::chrono::system_clock::time_point start_time;
|
|
|
|
// anchored top-left position for a window of the given size, per FPS_LOCATION
|
|
ImVec2 anchored_pos(const ImVec2 &size) const;
|
|
|
|
public:
|
|
|
|
FPS(SpiceOverlay *overlay);
|
|
|
|
void calculate_initial_window() override;
|
|
void build_content() override;
|
|
};
|
|
}
|