This commit is contained in:
Lncvrt committed 2026-10-20 17:51:55 -07:00
1 parent 4cc9615164
commit aea0e8f878
2 files changed
+5 -4

No files matched your search

+1
View File
@@ -1 +1,2 @@
.DS_Store .DS_Store
build/
+4 -4
View File
@@ -134,9 +134,9 @@ class MainWindow(QMainWindow):
gdLvlGDShareLabel = QLabel("GDLVL/GDShare") gdLvlGDShareLabel = QLabel("GDLVL/GDShare")
self.convertToGdLvl = QPushButton("Convert to GDLVL") self.convertToGdLvl = QPushButton("Convert to GDLVL")
self.convertToGdLvl.clicked.connect(self.on_convert_to_gdlvl_click) self.convertToGdLvl.clicked.connect(self.on_convert_from_gmd_click)
self.convertToGmd = QPushButton("Convert to GMD") self.convertToGmd = QPushButton("Convert to GMD")
self.convertToGmd.clicked.connect(self.on_convert_to_gmd_click) self.convertToGmd.clicked.connect(self.on_convert_from_gdlvl_click)
gdLvlGDShareButtons = QHBoxLayout() gdLvlGDShareButtons = QHBoxLayout()
gdLvlGDShareButtons.addStretch() gdLvlGDShareButtons.addStretch()
@@ -263,7 +263,7 @@ class MainWindow(QMainWindow):
msg.setText("The encoded level data has been copied to your clipboard") msg.setText("The encoded level data has been copied to your clipboard")
msg.exec() msg.exec()
def on_convert_to_gdlvl_click(self): def on_convert_from_gdlvl_click(self):
file_path, _ = QFileDialog.getOpenFileName( file_path, _ = QFileDialog.getOpenFileName(
self, self,
"Select a GDLVL file", "Select a GDLVL file",
@@ -288,7 +288,7 @@ class MainWindow(QMainWindow):
with open(output_file_path, "w") as f: with open(output_file_path, "w") as f:
f.write(decode_level(data, False)) f.write(decode_level(data, False))
def on_convert_to_gmd_click(self): def on_convert_from_gmd_click(self):
file_path, _ = QFileDialog.getOpenFileName( file_path, _ = QFileDialog.getOpenFileName(
self, self,
"Select a GMD file", "Select a GMD file",