Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Update to V2
Browse files Browse the repository at this point in the history
Added GUI instead of being console based script
No longer extracting mods, read them directly instead
Added a logo to the app
Added steam and custom directory support
Updated compiler for better compatibility
Updated requirements.txt
  • Loading branch information
AallynReed committed Jul 3, 2022
1 parent 8854a66 commit 4156590
Show file tree
Hide file tree
Showing 10 changed files with 1,097 additions and 180 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: python -m pip install pyinstaller

- name: Compile code into EXE
run: pyinstaller --onefile main.py
run: pyinstaller --onefile --add-data="images/*.png;images" --noconsole --icon=AppLogo.ico main.py

- name: Move Files
run: move dist/main.exe TroveModConfigGenerator.exe
Expand Down
Binary file added AppLogo.ico
Binary file not shown.
54 changes: 54 additions & 0 deletions about.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import sys
from pathlib import Path

from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_About(object):
def setupUi(self, About):
About.setObjectName("About")
About.resize(506, 154)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(About.sizePolicy().hasHeightForWidth())
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(str(Path(sys._MEIPASS).joinpath("images", "AppLogo.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
About.setWindowIcon(icon)
About.setSizePolicy(sizePolicy)
About.setStyleSheet("background: #313233;color: #bbb")
self.label = QtWidgets.QLabel(About)
self.label.setGeometry(QtCore.QRect(10, 100, 71, 16))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(About)
self.label_2.setGeometry(QtCore.QRect(20, 125, 47, 13))
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(About)
self.label_3.setGeometry(QtCore.QRect(10, 10, 47, 13))
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(About)
self.label_4.setGeometry(QtCore.QRect(40, 30, 451, 61))
self.label_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.label_4.setWordWrap(True)
self.label_4.setObjectName("label_4")
self.label_6 = QtWidgets.QLabel(About)
self.label_6.setGeometry(QtCore.QRect(120, 100, 71, 16))
self.label_6.setObjectName("label_6")
self.label_5 = QtWidgets.QLabel(About)
self.label_5.setGeometry(QtCore.QRect(130, 125, 191, 16))
self.label_5.setStyleSheet("")
self.label_5.setOpenExternalLinks(True)
self.label_5.setObjectName("label_5")

self.retranslateUi(About)
QtCore.QMetaObject.connectSlotsByName(About)

def retranslateUi(self, About):
_translate = QtCore.QCoreApplication.translate
About.setWindowTitle(_translate("About", "Dialog"))
self.label.setText(_translate("About", "Developed by"))
self.label_2.setText(_translate("About", "Sly"))
self.label_3.setText(_translate("About", "About"))
self.label_4.setText(_translate("About", "This tool was made to make it easier to generate configuration files for User Interface (UI)\nmods in Trove, it also can correct empty files or completely recreate said configuration files\n\nThis app is 100% free to use and code is open-source"))
self.label_6.setText(_translate("About", "Github"))
self.label_5.setText(_translate("About", "<a href=\"https://github.com/Sly0511/TroveModConfigGenerator\">Github/TroveModConfigGenerator</a>"))
121 changes: 121 additions & 0 deletions about.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>About</class>
<widget class="QDialog" name="About">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>506</width>
<height>154</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<property name="styleSheet">
<string notr="true">background: #313233;color: #bbb</string>
</property>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>100</y>
<width>71</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Developed by</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>20</x>
<y>125</y>
<width>47</width>
<height>13</height>
</rect>
</property>
<property name="text">
<string>Sly</string>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>47</width>
<height>13</height>
</rect>
</property>
<property name="text">
<string>About</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>40</x>
<y>30</y>
<width>451</width>
<height>61</height>
</rect>
</property>
<property name="text">
<string>This tool was made to make it easier to generate configuration files for User Interface (UI)
mods in Trove, it also can correct empty files or completely recreate said configuration files

This app is 100% free to use and code is open-source</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>120</x>
<y>100</y>
<width>71</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Github</string>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>130</x>
<y>125</y>
<width>191</width>
<height>16</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>&lt;a href=&quot;https://github.com/Sly0511/TroveModConfigGenerator&quot;&gt;Github/TroveModConfigGenerator&lt;/a&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>
Binary file added images/AppLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/GlyphLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/SteamLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4156590

Please sign in to comment.