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
741 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();
2023-07-07 16:16:21 -04:00
public Q_SLOTS:
void clear();
2023-07-07 16:16:21 -04:00
void addGear(GearInfo& info);
2023-07-07 16:16:21 -04:00
private Q_SLOTS:
void reloadGear();
2023-07-07 16:16:21 -04:00
private:
void updateHeightScaling(float scale);
void updateBustScaling(float scale);
void updateCharacterParameters();
std::optional<GearInfo> topSlot;
std::optional<GearInfo> bottomSlot;
2023-07-07 16:16:21 -04:00
GearView* gearView = nullptr;
QComboBox *raceCombo, *subraceCombo, *genderCombo;
2023-07-07 16:16:21 -04:00
GameData* data = nullptr;
physis_CMP cmp;
float heightScale = 0.5f;
float bustScale = 0.5f;
};