mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 04:27:45 +00:00
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.
32 lines
No EOL
525 B
C++
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;
|
|
}; |