diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-02-11 02:37:39 -0600 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-02-11 02:37:39 -0600 |
| commit | 7ee008e150bc5bcf76082d726f719ee0fdfda982 (patch) | |
| tree | 27fb39be241fdb5ac2734c574de678977d1856d0 /libs/installer_omod/src/oldstuff | |
Fluorine Manager: full Linux port of Mod Organizer 2
Complete native Linux port with FUSE-based virtual filesystem,
Proton/umu-run integration, and Flatpak packaging.
Key features:
- FUSE VFS replacing Windows USVFS (in-process + standalone helper for Flatpak)
- Proton/GE-Proton/umu-run launcher with env var forwarding
- Flatpak support (sandbox-aware VFS, NXM handler, umu-run)
- Wine prefix management UI
- Case-insensitive path resolution for Linux filesystems
- QSettings-safe INI handling (avoids Bethesda INI corruption)
- Portable instance support with auto-generated launcher scripts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'libs/installer_omod/src/oldstuff')
8 files changed, 660 insertions, 0 deletions
diff --git a/libs/installer_omod/src/oldstuff/DialogSelect.cpp b/libs/installer_omod/src/oldstuff/DialogSelect.cpp new file mode 100644 index 0000000..9d387a8 --- /dev/null +++ b/libs/installer_omod/src/oldstuff/DialogSelect.cpp @@ -0,0 +1,301 @@ +#include "DialogSelect.h" + +#include <functional> + +#include <QCheckBox> +#include <QDialog> +#include <QDialogButtonBox> +#include <QDebug> +#include <QImageReader> +#include <QPlainTextEdit> +#include <QRadioButton> +#include <QScrollArea> +#include <QSplitter> +#include <QStackedWidget> +#include <QVBoxLayout> + +#include "MIT-licencedCodeToDoStuff/checkboxwordwrap.h" + +// there is no hover signal, the only way to know is to override enterEvent() +// +template <class T, typename... Args> +class HoverableWidget : public T +{ +public: + std::function<void ()> onHover; + + HoverableWidget(Args... args, std::function<void ()> h) + : T(args...), onHover(std::move(h)) + { + } + +protected: void enterEvent(QEnterEvent*) override + { + onHover(); + } +}; + + +FixedAspectRatioImageLabel::FixedAspectRatioImageLabel(QWidget* parent) : QLabel(parent) +{ +} + +void FixedAspectRatioImageLabel::setUnscaledPixmap(const QPixmap& pixmap) +{ + mUnscaledPixmap = pixmap; + setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); + rescalePixmap(size()); + + copySizeLabel.setPixmap(pixmap); +} + +const QPixmap& FixedAspectRatioImageLabel::unscaledPixmap() const +{ + return mUnscaledPixmap; +} + +QSize FixedAspectRatioImageLabel::sizeHint() const +{ + if (mUnscaledPixmap.isNull()) + { + return QLabel::sizeHint(); + } + else + { + // maybe should add frame border + return mUnscaledPixmap.size(); + //return copySizeLabel.sizeHint(); + } +} + +bool FixedAspectRatioImageLabel::hasHeightForWidth() const +{ + return true; +} + +int FixedAspectRatioImageLabel::heightForWidth(int width) const +{ + // this ignores the difference between size and contentsRect size + return mUnscaledPixmap.height() * width / (double)mUnscaledPixmap.width(); +} + +int FixedAspectRatioImageLabel::widthForHeight(int height) const +{ + return mUnscaledPixmap.width() * height / (double)mUnscaledPixmap.height(); +} + +void FixedAspectRatioImageLabel::resizeEvent(QResizeEvent* resizeEvent) +{ + QLabel::resizeEvent(resizeEvent); + rescalePixmap(contentsRect().size()); +} + +void FixedAspectRatioImageLabel::rescalePixmap(const QSize& size) +{ + setPixmap(mUnscaledPixmap.scaled(size, Qt::KeepAspectRatio, Qt::SmoothTransformation)); +} + + +std::optional<QVector<int>> DialogSelect( + QWidget* parent, const QString& title, const QVector<QString>& items, + const QVector<QString>& descriptions, const QVector<QString>& pixmaps, + bool multiSelect) +{ + QDialog d(parent); + d.setWindowTitle(title); + + auto* mainLayout = new QVBoxLayout(&d); + d.setLayout(mainLayout); + + auto* splitter = new QSplitter(&d); + mainLayout->addWidget(splitter); + + // button box + auto* buttons = new QDialogButtonBox( + QDialogButtonBox::Ok|QDialogButtonBox::Cancel, &d); + + /* QObject::connect: signal not found in QDialogButtonBox + even though this worked with my initial attempt. + Holt had the same issue: https://stackoverflow.com/questions/61879664/qobjectconnect-not-working-signal-not-found-with-function-syntax + The new syntax is much better, but as this code wants replacing, that's not a hill I'm going to die on. + QObject::connect(buttons, &QDialogButtonBox::accepted, [&] { + d.accept(); + }); + + QObject::connect(buttons, &QDialogButtonBox::rejected, [&] { + d.reject(); + }); + */ + QObject::connect(buttons, SIGNAL(accepted()), &d, SLOT(accept())); + QObject::connect(buttons, SIGNAL(rejected()), &d, SLOT(reject())); + + mainLayout->addWidget(buttons); + + + // left panel + auto* left = new QWidget(splitter); + auto* leftLayout = new QVBoxLayout(left); + leftLayout->setContentsMargins(0, 0, 0, 0); + + auto* stack = new QStackedWidget(left); + leftLayout->addWidget(stack); + + // don't put descriptions of pixmaps at all if there aren't any + const bool hasDescriptions = !descriptions.empty(); + const bool hasPixmaps = !pixmaps.empty(); + + // for each description/item + for (int i=0; i < std::max(descriptions.size(), pixmaps.size()); ++i) { + auto* panel = new QWidget(left); + auto* panelLayout = new QVBoxLayout(panel); + //panelLayout->setContentsMargins(0, 0, 0, 0); + + if (hasPixmaps) { + auto* pixmapLabel = new FixedAspectRatioImageLabel(panel); + + pixmapLabel->setFrameStyle(QFrame::StyledPanel); + pixmapLabel->setLineWidth(1); + + // make it resizable + //pixmapLabel->setMinimumSize(1, 150); + //pixmapLabel->setScaledContents(true); + //pixmapLabel->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + + if (i < pixmaps.size()) { + // this item has a pixmap + // Use QImageReader as (despite what the documentation says) QPixmap uses the extension, rather than the file header, to determine the format. + QImageReader reader(pixmaps[i]); + reader.setDecideFormatFromContent(true); + QImage image = reader.read(); + if (image.isNull()) { + pixmapLabel->setText(QString("failed to load '%1': %2 (code %3)").arg(pixmaps[i], reader.errorString(), QString::number(reader.error()))); + } else { + QPixmap pixmap = QPixmap::fromImage(image); + pixmapLabel->setUnscaledPixmap(std::move(pixmap)); + } + } + + panelLayout->addWidget(pixmapLabel); + } + + if (hasDescriptions) + { + // description under pixmap (if any) + auto* description = new QPlainTextEdit(descriptions[i], panel); + + // this puts the description on top if there's no pixmap + //description->setAlignment(Qt::AlignLeft|Qt::AlignTop); + + //description->setWordWrap(true); + + panelLayout->addWidget(description); + } + + // if the pixmap is first, it'll take as much space as it can; if the + // description is first, the AlignTop makes it work anyways + panelLayout->setStretch(0, 1); + + stack->addWidget(panel); + } + + + // right panel + auto* right = new QWidget(&d); + auto* rightOuterLayout = new QVBoxLayout(right); + rightOuterLayout->setContentsMargins(0, 0, 0, 0); + + // title + auto* titleLabel = new QLabel(title, right); + titleLabel->setWordWrap(true); + rightOuterLayout->addWidget(titleLabel); + + QWidget* rightInner; + QBoxLayout* rightInnerLayout; + + // Doing this unconditionally breaks HGEC lower body choices. + // Somehow the fixed aspect ratio image label forces the scroll area to be resized below its preferred size. + // Because the word wrapped radio buttons aren't good at telling Qt their size hint is only minimal for the current width, + // the layout ends up with their preferred width as its minimum and won't let itself be shrunk smaller than that even though you can't see the right hand side. + // This means that as they're in a widget with enough space, the text isn't wrapped. + // The exact same behaviour happens with non-wrappable radio buttons, but it's more expected. + // Making the fixed aspect ratio image label play nicely with being shrunk will probably fix this. + // It only seems to be MEAT that actually needs a scrollbar, though, and that looks fine, so fixing this mess is left as an exercise for the reader. + if (items.size() >= 10) + { + QScrollArea* rightScrollArea = new QScrollArea(right); + rightOuterLayout->addWidget(rightScrollArea); + rightScrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); + rightScrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); + + rightInner = new QWidget(right); + rightScrollArea->setWidget(rightInner); + rightScrollArea->setWidgetResizable(true); + + rightInnerLayout = new QVBoxLayout(rightInner); + } + else + { + rightInner = right; + rightInnerLayout = rightOuterLayout; + } + + // callback when hovering + auto onHover = [&](int i) { + stack->setCurrentIndex(i); + }; + + + // remember buttons to see which were checked + QVector<QAbstractButton*> itemButtons; + + // for each item + for (int i=0; i<items.size(); ++i) { + QAbstractButton* w = nullptr; + + QString labelText = items[i]; + bool checked = false; + + // THIS IS IMPORTANT WHEN REPLACING THIS WITH BETTER CODE. OMODS HAVE A PIPE AT THE START OF ANY OPTIONS SELECTED BY DEFAULT. + if (labelText.startsWith('|')) + { + labelText = labelText.remove(0, 1); + checked = true; + } + + if (multiSelect) { + w = new HoverableWidget<CheckBoxWordWrap, const QString&, QWidget*>(labelText, rightInner, [=]{ onHover(i); }); + } else { + w = new HoverableWidget<RadioButtonWordWrap, const QString&, QWidget*>(labelText, rightInner, [=]{ onHover(i); }); + checked |= i == 0; + } + + rightInnerLayout->addWidget(w); + itemButtons.push_back(w); + w->setChecked(checked); + } + + // push all the items to the top + rightInnerLayout->addStretch(1); + + splitter->addWidget(left); + splitter->addWidget(right); + + // decent initial size + d.resize(800, 500); + + if (d.exec() != QDialog::Accepted) { + return std::nullopt; + } + + + // go through every button, it doesn't matter whether they're checkboxes or + // radio buttons + QVector<int> selection; + for (int i=0; i<itemButtons.size(); ++i) { + if (itemButtons[i]->isChecked()) { + selection.push_back(i); + } + } + + return selection; +} diff --git a/libs/installer_omod/src/oldstuff/DialogSelect.h b/libs/installer_omod/src/oldstuff/DialogSelect.h new file mode 100644 index 0000000..0e0f1bb --- /dev/null +++ b/libs/installer_omod/src/oldstuff/DialogSelect.h @@ -0,0 +1,46 @@ +#pragma once + +#include <optional> + +#include <QLabel> +#include <QVector> +#include <QWidget> + +std::optional<QVector<int>> DialogSelect(QWidget* parent, const QString& title, const QVector<QString>& items, + const QVector<QString>& descriptions, const QVector<QString>& pixmaps, + bool multiSelect); + + +// For some reason, this can be resized bigger but not smaller. +class FixedAspectRatioImageLabel : public QLabel +{ + Q_OBJECT + + Q_PROPERTY(QPixmap unscaledPixmap READ unscaledPixmap WRITE setUnscaledPixmap) + +public: + FixedAspectRatioImageLabel() = default; + + FixedAspectRatioImageLabel(QWidget* parent); + + void setUnscaledPixmap(const QPixmap& pixmap); + + const QPixmap& unscaledPixmap() const; + + QSize sizeHint() const override; + + bool hasHeightForWidth() const override; + + int heightForWidth(int width) const override; + + int widthForHeight(int height) const; + +protected: + void resizeEvent(QResizeEvent* resizeEvent) override; + +private: + void rescalePixmap(const QSize& size); + + QPixmap mUnscaledPixmap; + QLabel copySizeLabel; +}; diff --git a/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/LICENSE b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/LICENSE new file mode 100644 index 0000000..e2874c2 --- /dev/null +++ b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) unknown thibdev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/checkboxwordwrap.cpp b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/checkboxwordwrap.cpp new file mode 100644 index 0000000..d686c58 --- /dev/null +++ b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/checkboxwordwrap.cpp @@ -0,0 +1,165 @@ +#include "checkboxwordwrap.h" + +#include <QStyle> +#include <QStyleOptionButton> + +CheckBoxWordWrap::CheckBoxWordWrap(QWidget *parent) + : QCheckBox (parent) + , m_hMainLayout(new QHBoxLayout(this)) + , m_label(new ClickableLabel(this)) +{ + init(); +} + +CheckBoxWordWrap::CheckBoxWordWrap(const QString &text, QWidget *parent) + : QCheckBox (parent) + , m_hMainLayout(new QHBoxLayout(this)) + , m_label(new ClickableLabel(text, this)) +{ + init(); +} + +CheckBoxWordWrap::~CheckBoxWordWrap() +{ + delete m_label; + delete m_hMainLayout; +} + +bool CheckBoxWordWrap::isWordWrap() const +{ + return m_label->wordWrap(); +} + +void CheckBoxWordWrap::setWordWrap(bool wordwrap) +{ + m_label->setWordWrap(wordwrap); +} + +QString CheckBoxWordWrap::text() const +{ + return m_label->text(); +} + +void CheckBoxWordWrap::setText(const QString &text) +{ + m_label->setText(text); +} + +QSize CheckBoxWordWrap::sizeHint() const +{ + QFontMetrics fm(m_label->font()); + QRect r = m_label->rect(); + r.setLeft(r.left()+m_label->indent()+separation); + QRect bRect = fm.boundingRect(r, int(Qt::AlignLeft | Qt::AlignVCenter | Qt::TextWordWrap), m_label->text()); + QSize ret = QSize(QWidget::sizeHint().width(), bRect.height()); + return ret; +} + +void CheckBoxWordWrap::labelIsClicked() +{ + setChecked(!isChecked()); +} + +void CheckBoxWordWrap::resizeEvent(QResizeEvent *event) +{ + QWidget::resizeEvent(event); + updateGeometry(); +} + +void CheckBoxWordWrap::init() +{ + setLayout(m_hMainLayout); + QStyleOptionButton opt; + initStyleOption(&opt); + int indicatorW = style()->pixelMetric(QStyle::PixelMetric::PM_IndicatorWidth, &opt, this); + // Useless in our case, we only need the indicator width + //int indicatorH = style()->pixelMetric(QStyle::PixelMetric::PM_IndicatorHeight, &opt, this); + m_hMainLayout->setContentsMargins(0, 0, 0, 0); + m_hMainLayout->addWidget(m_label); + m_label->setIndent(indicatorW+separation); + m_label->setWordWrap(true); + + setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum); + connect(m_label, SIGNAL(clicked()), this, SLOT(labelIsClicked())); +} + + +RadioButtonWordWrap::RadioButtonWordWrap(QWidget* parent) + : QRadioButton(parent) + , m_hMainLayout(new QHBoxLayout(this)) + , m_label(new ClickableLabel(this)) +{ + init(); +} + +RadioButtonWordWrap::RadioButtonWordWrap(const QString& text, QWidget* parent) + : QRadioButton(parent) + , m_hMainLayout(new QHBoxLayout(this)) + , m_label(new ClickableLabel(text, this)) +{ + init(); +} + +RadioButtonWordWrap::~RadioButtonWordWrap() +{ + delete m_label; + delete m_hMainLayout; +} + +bool RadioButtonWordWrap::isWordWrap() const +{ + return m_label->wordWrap(); +} + +void RadioButtonWordWrap::setWordWrap(bool wordwrap) +{ + m_label->setWordWrap(wordwrap); +} + +QString RadioButtonWordWrap::text() const +{ + return m_label->text(); +} + +void RadioButtonWordWrap::setText(const QString& text) +{ + m_label->setText(text); +} + +QSize RadioButtonWordWrap::sizeHint() const +{ + QFontMetrics fm(m_label->font()); + QRect r = m_label->rect(); + r.setLeft(r.left() + m_label->indent() + separation); + QRect bRect = fm.boundingRect(r, int(Qt::AlignLeft | Qt::AlignVCenter | Qt::TextWordWrap), m_label->text()); + QSize ret = QSize(QWidget::sizeHint().width(), bRect.height()); + return ret; +} + +void RadioButtonWordWrap::labelIsClicked() +{ + setChecked(!isChecked()); +} + +void RadioButtonWordWrap::resizeEvent(QResizeEvent* event) +{ + QWidget::resizeEvent(event); + updateGeometry(); +} + +void RadioButtonWordWrap::init() +{ + setLayout(m_hMainLayout); + QStyleOptionButton opt; + initStyleOption(&opt); + int indicatorW = style()->pixelMetric(QStyle::PixelMetric::PM_IndicatorWidth, &opt, this); + // Useless in our case, we only need the indicator width + //int indicatorH = style()->pixelMetric(QStyle::PixelMetric::PM_IndicatorHeight, &opt, this); + m_hMainLayout->setContentsMargins(0, 0, 0, 0); + m_hMainLayout->addWidget(m_label); + m_label->setIndent(indicatorW + separation); + m_label->setWordWrap(true); + + setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum); + connect(m_label, SIGNAL(clicked()), this, SLOT(labelIsClicked())); +} diff --git a/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/checkboxwordwrap.h b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/checkboxwordwrap.h new file mode 100644 index 0000000..dc4d30c --- /dev/null +++ b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/checkboxwordwrap.h @@ -0,0 +1,75 @@ +#ifndef CHECKBOXWORDWRAP_H +#define CHECKBOXWORDWRAP_H + +#include <QCheckBox> +#include <QHBoxLayout> +#include <QRadioButton> + +#include "clickablelabel.h" + +/** + * @author thibdev + */ +class CheckBoxWordWrap : public QCheckBox +{ + Q_OBJECT + + Q_PROPERTY(bool wordwrap READ isWordWrap WRITE setWordWrap) + Q_PROPERTY(QString text READ text WRITE setText) + +public: + CheckBoxWordWrap(QWidget *parent = Q_NULLPTR); + CheckBoxWordWrap(const QString &text, QWidget *parent = Q_NULLPTR); + ~CheckBoxWordWrap(); + bool isWordWrap() const; + void setWordWrap(bool wordwrap); + QString text() const; + void setText(const QString &text); + QSize sizeHint() const override; + +private slots: + void labelIsClicked(); + +protected: + void resizeEvent(QResizeEvent *event) override; + +private: + void init(); + const int separation = 5; + QHBoxLayout *m_hMainLayout; + ClickableLabel *m_label; + +}; + +class RadioButtonWordWrap : public QRadioButton +{ + Q_OBJECT + + Q_PROPERTY(bool wordwrap READ isWordWrap WRITE setWordWrap) + Q_PROPERTY(QString text READ text WRITE setText) + +public: + RadioButtonWordWrap(QWidget* parent = Q_NULLPTR); + RadioButtonWordWrap(const QString& text, QWidget* parent = Q_NULLPTR); + ~RadioButtonWordWrap(); + bool isWordWrap() const; + void setWordWrap(bool wordwrap); + QString text() const; + void setText(const QString& text); + QSize sizeHint() const override; + +private slots: + void labelIsClicked(); + +protected: + void resizeEvent(QResizeEvent* event) override; + +private: + void init(); + const int separation = 5; + QHBoxLayout* m_hMainLayout; + ClickableLabel* m_label; + +}; + +#endif diff --git a/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/clickablelabel.cpp b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/clickablelabel.cpp new file mode 100644 index 0000000..6f8d47f --- /dev/null +++ b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/clickablelabel.cpp @@ -0,0 +1,24 @@ +#include "clickablelabel.h" + +ClickableLabel::ClickableLabel(QWidget *parent, Qt::WindowFlags f) + : QLabel(parent, f) +{ + +} + +ClickableLabel::ClickableLabel(const QString &text, QWidget *parent, Qt::WindowFlags f) + : QLabel(text, parent, f) +{ + +} + +ClickableLabel::~ClickableLabel() +{ + +} + +void ClickableLabel::mouseReleaseEvent(QMouseEvent *event) +{ + Q_UNUSED(event); + emit clicked(); +} diff --git a/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/clickablelabel.h b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/clickablelabel.h new file mode 100644 index 0000000..c3ee22b --- /dev/null +++ b/libs/installer_omod/src/oldstuff/MIT-licencedCodeToDoStuff/clickablelabel.h @@ -0,0 +1,27 @@ +#ifndef CLICKABLELABEL_H +#define CLICKABLELABEL_H + +#include <QLabel> +#include <QMouseEvent> + +/** + * @brief The ClickableLabel class + * https://wiki.qt.io/Clickable_QLabel + */ +class ClickableLabel : public QLabel +{ + Q_OBJECT +public: + explicit ClickableLabel(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags()); + explicit ClickableLabel(const QString &text, QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags()); + ~ClickableLabel() override; + +signals: + void clicked(); + +protected: + void mouseReleaseEvent(QMouseEvent *event) override; + +}; + +#endif // CLICKABLELABEL_H diff --git a/libs/installer_omod/src/oldstuff/folder.md b/libs/installer_omod/src/oldstuff/folder.md new file mode 100644 index 0000000..3b5009a --- /dev/null +++ b/libs/installer_omod/src/oldstuff/folder.md @@ -0,0 +1 @@ +This is stuff I'm just lifting from my original attempt at an OMOD installer. It's probably terrible and I'm barely going to fix it. I expect and want other MO2 devs to rework/replace it with something better. |
