mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-24 04:57:45 +00:00
sagasu: Add support for texpart to preview texture files
This commit is contained in:
parent
718ea74c1f
commit
e5f0a9cd00
2 changed files with 6 additions and 1 deletions
|
@ -22,6 +22,6 @@ target_sources(novus-sagasu PRIVATE
|
|||
src/filepropertieswindow.cpp
|
||||
src/filetreemodel.cpp)
|
||||
target_include_directories(novus-sagasu PRIVATE include)
|
||||
target_link_libraries(novus-sagasu PRIVATE Qt6::Concurrent hexpart exlpart mdlpart exdpart novus-sagasu-static)
|
||||
target_link_libraries(novus-sagasu PRIVATE Qt6::Concurrent hexpart exlpart mdlpart exdpart texpart novus-sagasu-static)
|
||||
|
||||
install(TARGETS novus-sagasu ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "filetreewindow.h"
|
||||
#include "hexpart.h"
|
||||
#include "mdlpart.h"
|
||||
#include "texpart.h"
|
||||
|
||||
MainWindow::MainWindow(QString gamePath, GameData *data)
|
||||
: NovusMainWindow()
|
||||
|
@ -87,6 +88,10 @@ void MainWindow::refreshParts(QString path)
|
|||
auto mdlWidget = new MDLPart(data, fileCache);
|
||||
mdlWidget->addModel(physis_mdl_parse(file.size, file.data), QStringLiteral("mdl"), {}, 0);
|
||||
partHolder->addTab(mdlWidget, QStringLiteral("Model"));
|
||||
} else if (info.completeSuffix() == QStringLiteral("tex")) {
|
||||
auto texWidget = new TexPart(data);
|
||||
texWidget->load(file);
|
||||
partHolder->addTab(texWidget, QStringLiteral("Texture"));
|
||||
}
|
||||
|
||||
auto hexWidget = new HexPart();
|
||||
|
|
Loading…
Add table
Reference in a new issue