mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-04 15:50:42 -07:00
Initial commit for GitHub migration based on spice2x-25-03-03
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "games/drs/drs.h"
|
||||
#include "overlay/window.h"
|
||||
|
||||
namespace overlay::windows {
|
||||
|
||||
class DRSDanceFloorDisplay : public Window {
|
||||
public:
|
||||
DRSDanceFloorDisplay(SpiceOverlay *overlay);
|
||||
void calculate_initial_window() override;
|
||||
void build_content() override;
|
||||
|
||||
private:
|
||||
static void keep_aspect_ratio(ImGuiSizeCallbackData* data) {
|
||||
const float ratio = (float)DRS_TAPELED_ROWS / (float)DRS_TAPELED_COLS;
|
||||
data->DesiredSize.y = (data->DesiredSize.x * ratio) + ImGui::GetFrameHeight();
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user