1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 04:27:45 +00:00
novus/mdlviewer/include/fullmodelviewer.h
Joshua Goins 7407d26247 Overhaul mdlviewer to use the MDL part, and add the full model viewer
This is a major code overhaul for mdlviewer, which will make it easier
to extend and modify in the future (trust me, the old code was garbage).

The different views are now split up (SingleGearView, FullModelViewer,
and MDLPart) which makes the functionality easier to handle, and less
error-prone.

Right now bone debugging is disabled (not that it worked that well
anyway) but will be brought back in a future commit.
2023-04-09 15:31:19 -04:00

32 lines
No EOL
525 B
C++

#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:
std::optional<GearInfo> topSlot;
std::optional<GearInfo> bottomSlot;\
GearView* gearView = nullptr;
QComboBox* raceCombo, *genderCombo;
GameData* data = nullptr;
};