mirror of
https://github.com/redstrate/Novus.git
synced 2025-05-19 14:47:46 +00:00
You can now select which layers are currently visible in the object list view, and makes the performance *so much better* because it doesn't load everything by default.
35 lines
674 B
C++
35 lines
674 B
C++
// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "filecache.h"
|
|
#include "mdlpart.h"
|
|
#include <QComboBox>
|
|
#include <QWidget>
|
|
#include <physis.hpp>
|
|
|
|
struct GameData;
|
|
class AppState;
|
|
|
|
class MapView : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MapView(GameData *data, FileCache &cache, AppState *appState, QWidget *parent = nullptr);
|
|
|
|
MDLPart &part() const;
|
|
|
|
public Q_SLOTS:
|
|
void addTerrain(QString basePath, physis_Terrain terrain);
|
|
|
|
private:
|
|
void reloadMap();
|
|
|
|
MDLPart *mdlPart = nullptr;
|
|
|
|
GameData *m_data;
|
|
FileCache &m_cache;
|
|
AppState *m_appState;
|
|
};
|