Skip to content

Commit

Permalink
Release on forum
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirMahdaviAM committed Apr 7, 2024
2 parents 3d16a89 + 6509624 commit 2cdfeac
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 30 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

<p align="center">
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/AmirMahdaviAM/SCSHub">
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/AmirMahdaviAM/SCSHub">
<img alt="python" src="https://img.shields.io/badge/python-v3.10.6+-blue.svg">
<img alt="code style" src="https://img.shields.io/badge/code%20style-black-black.svg">
</p>
Expand All @@ -18,6 +17,25 @@
<img align="center" src="image/converter_pix.png">
</p>

## Install
- Windows
- Download `SCSHub_x.x-windows.zip` asset from [releases](https://github.com/AmirMahdaviAM/SCSHub/releases), extract and run .exe file
- Or you can procced with below instruction
- Linux, Mac
- Required `Python 3.10+` (maybe lower, not tested)
- Clone repo or download repo zip
```shell
git clone https://github.com/AmirMahdaviAM/SCSHub
```
- Install requirements
```shell
pip install -r requirements.txt
```
- Run app
```shell
python SCSHub.py
```

## Feature
- [x] [**Converter PIX**](https://forum.scssoft.com/viewtopic.php?t=216158)
- [x] Single Model and Single TOBJ mode with conversion
Expand Down
Binary file modified image/converter_pix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PyQt5>=5.15.0
PyQt-Fluent-Widgets>=1.5.2
requests>=2.30.0
3 changes: 1 addition & 2 deletions scshub/common/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
# link
SCSHUB_GITHUB_URL = "https://github.com/AmirMahdaviAM/SCSHub/"
SCSHUB_FEEDBACK_URL = "https://github.com/AmirMahdaviAM/SCSHub/issues"
SCSHUB_FORUM_URL = "https://forum.scssoft.com"
FORUM_URL = "https://forum.scssoft.com"
SCSHUB_FORUM_URL = "https://forum.scssoft.com/viewtopic.php?t=328411"

# set tools path
TOOLS_PATH = os.path.join(os.getcwd(), "tools")
Expand Down
14 changes: 1 addition & 13 deletions scshub/view/interface/pix_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,11 @@ def __init__(self):

def initUi(self):

# create badge for run button
self.runErrorBadge = InfoBadge()
self.runSuccessBadge = InfoBadge()

# checking for converter pix file and download it if not exist
if os.path.isfile(PIX_PATH):
self.runSuccessBadge = InfoBadge.success("", self, self.runButton)
self.runSuccessBadge.setFixedSize(9, 9)
self.downloadPixButton.hide()
logger.info("ConverterPIX exist")
else:
self.runErrorBadge = InfoBadge.error("", self, self.runButton)
self.runErrorBadge.setFixedSize(9, 9)
self.runErrorBadge.show()
self.selectScsButton.setDisabled(True)
self.downloadPixButton.clicked.connect(lambda: self.donwloadPix())
logger.info("ConverterPIX not exist")
Expand Down Expand Up @@ -789,10 +780,6 @@ def downloadPixFinish(self, result):

match result:
case 0:
self.runErrorBadge.hide()
self.runSuccessBadge = InfoBadge.success("", self, self.runButton)
self.runSuccessBadge.setFixedSize(9, 9)
self.runSuccessBadge.show()
self.downloadPixButton.hide()
self.downloadPixButton.setDisabled(True)
self.selectScsButton.setEnabled(True)
Expand All @@ -803,6 +790,7 @@ def downloadPixFinish(self, result):

case 1:
self.downloadPixButton.setEnabled(True)

InfoBar.error(
"Failed", "Error during downloading\nCheck internet", duration=2000, parent=self
)
14 changes: 1 addition & 13 deletions scshub/view/interface/scs_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,11 @@ def __init__(self):

def initUi(self):

# create badge for run button
self.runErrorBadge = InfoBadge()
self.runSuccessBadge = InfoBadge()

# checking for converter pix file and download it if not exist
if os.path.isfile(SCS_PATH):
self.runSuccessBadge = InfoBadge.success("", self, self.runButton)
self.runSuccessBadge.setFixedSize(9, 9)
self.downloadScsButton.hide()
logger.info("SCSExtractor exist")
else:
self.runErrorBadge = InfoBadge.error("", self, self.runButton)
self.runErrorBadge.setFixedSize(9, 9)
self.runErrorBadge.show()
self.selectScsButton.setDisabled(True)
self.downloadScsButton.clicked.connect(lambda: self.donwloadScs())
logger.info("SCSExtractor not exist")
Expand Down Expand Up @@ -311,10 +302,6 @@ def donwloadScsFinish(self, result):

match result:
case 0:
self.runErrorBadge.hide()
self.runSuccessBadge = InfoBadge.success("", self, self.runButton)
self.runSuccessBadge.setFixedSize(9, 9)
self.runSuccessBadge.show()
self.downloadScsButton.hide()
self.downloadScsButton.setDisabled(True)
self.selectScsButton.setEnabled(True)
Expand All @@ -325,6 +312,7 @@ def donwloadScsFinish(self, result):

case 1:
self.downloadScsButton.setEnabled(True)

InfoBar.error(
"Failed", "Error during downloading\nCheck internet", duration=2000, parent=self
)
2 changes: 1 addition & 1 deletion scshub/view/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def initNavigation(self):

# bottom
self.navigationInterface.addItem( "theme", FluentIcon.CONSTRACT, self.tr("Theme"), toggleTheme, False, position=NavigationItemPosition.BOTTOM)
self.addSubInterface(self.settingInterface, FluentIcon.LIBRARY, self.tr("Settings"), FluentIcon.LIBRARY_FILL, NavigationItemPosition.BOTTOM)
self.addSubInterface(self.settingInterface, FluentIcon.SETTING, self.tr("Settings"), position=NavigationItemPosition.BOTTOM)

# set active interface
self.navigationInterface.setCurrentItem(self.homeInterface.objectName())
Expand Down

0 comments on commit 2cdfeac

Please sign in to comment.