Fixes
This commit is contained in:
2 files changed
+6
-5
No files matched your search
+2
-1
@@ -1 +1,2 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
build/
|
||||||
+4
-4
@@ -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",
|
||||||
|
|||||||
Reference in new issue
Block a user