1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-21 19:57:44 +00:00
novus/mdlviewer/include/fullmodelviewer.h

40 lines
732 B
C
Raw Normal View History

#pragma once
#include <QWidget>
#include "gearview.h"
struct GameData;
class FullModelViewer : public QWidget {
Q_OBJECT
public:
explicit FullModelViewer(GameData* data);
Q_SIGNALS:
void gearChanged();
public Q_SLOTS:
void clear();
void addGear(GearInfo &info);
private Q_SLOTS:
void reloadGear();
private:
void updateHeightScaling(float scale);
void updateBustScaling(float scale);
void updateCharacterParameters();
std::optional<GearInfo> topSlot;
std::optional<GearInfo> bottomSlot;
GearView *gearView = nullptr;
QComboBox *raceCombo, *genderCombo;
GameData *data = nullptr;
physis_CMP cmp;
float heightScale = 0.5f;
float bustScale = 0.5f;
};