1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-25 13:17:46 +00:00
novus/parts/cmp/cmppart.h

62 lines
1.3 KiB
C
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QDoubleSpinBox>
#include <QHBoxLayout>
#include <QWidget>
#include <physis.hpp>
class RaceTreeData : public QObject
{
Q_OBJECT
public:
RaceTreeData(Race race, Subrace subrace)
: race(race)
, subrace(subrace)
{
}
Race race;
Subrace subrace;
};
class CmpPart : public QWidget
{
Q_OBJECT
public:
explicit CmpPart(GameData *data);
void load(physis_Buffer file);
private:
void loadRaceData(Race race, Subrace subrace);
GameData *data = nullptr;
physis_CMP cmp;
QDoubleSpinBox *maleMinSize = nullptr;
QDoubleSpinBox *maleMaxSize = nullptr;
QDoubleSpinBox *maleMinTail = nullptr;
QDoubleSpinBox *maleMaxTail = nullptr;
QDoubleSpinBox *femaleMinSize = nullptr;
QDoubleSpinBox *femaleMaxSize = nullptr;
QDoubleSpinBox *femaleMinTail = nullptr;
QDoubleSpinBox *femaleMaxTail = nullptr;
QDoubleSpinBox *bustMinX = nullptr;
QDoubleSpinBox *bustMinY = nullptr;
QDoubleSpinBox *bustMinZ = nullptr;
QDoubleSpinBox *bustMaxX = nullptr;
QDoubleSpinBox *bustMaxY = nullptr;
QDoubleSpinBox *bustMaxZ = nullptr;
QHBoxLayout *layout = nullptr;
};