Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
	new file:   README.md
  • Loading branch information
AmirMahdaviAM committed Apr 6, 2024
1 parent 8897ab4 commit 3d16a89
Show file tree
Hide file tree
Showing 10 changed files with 403 additions and 217 deletions.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<p align="center">
<img width="40%" align="center" src="scshub/resource/image/splash.svg" alt="logo">
</p>
<p align="center">
An app to gather most of SCS games modding tools in one place
</p>

<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>

##
<p align="center">
<img align="center" src="image/home.png">
<img align="center" src="image/converter_pix.png">
</p>

## Feature
- [x] [**Converter PIX**](https://forum.scssoft.com/viewtopic.php?t=216158)
- [x] Single Model and Single TOBJ mode with conversion
- [x] Animation export
- [x] Past 1.47 material attributes
- [x] Extract specific File and Folder without conversion
- [ ] Convert whole archive
- [x] [**SCS Extractor**](https://modding.scssoft.com/wiki/Documentation/Tools/Game_Archive_Extractor)
- [x] Extract whole archive without conversion
- [ ] [**SXC Extractor**](https://forum.scssoft.com/viewtopic.php?t=276948)
- [ ] [**Batch DDS to TGA**](https://forum.scssoft.com/viewtopic.php?t=190908)

## Known issue
- App
- Not tested in Linux and Mac
- `Open log` and `Open Folder` buttons in InfoBar only work in windows
- `Badge` on button will be miss-aligned after select archive
- Converter PIX
- Ctrl + A in anim list will select all file and folder (just `Select & drag mouse` or `Single click`)
- SCS Extractor
- Only work in windows

## Thanks to

> [**zhiyiYo**](https://github.com/zhiyiYo) - [PyQt Fluent Widgets](https://github.com/zhiyiYo/PyQt-Fluent-Widgets) and it's gallery app code
> [**mwl4**](https://github.com/mwl4) - [Converter PIX](https://github.com/mwl4/ConverterPIX) project
> [**simon50keda**](https://github.com/simon50keda) - [Converter PIX Wrapper](https://github.com/simon50keda/ConverterPIXWrapper) for inspiration and code help
Binary file added 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.
Binary file added image/home.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: 1 addition & 2 deletions scshub/common/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
SCSHUB_FEEDBACK_URL = "https://github.com/AmirMahdaviAM/SCSHub/issues"
SCSHUB_FORUM_URL = "https://forum.scssoft.com"
FORUM_URL = "https://forum.scssoft.com"
CONVERTERPIX_GITHUB_URL = "https://forum.scssoft.com"


# set tools path
TOOLS_PATH = os.path.join(os.getcwd(), "tools")
Expand Down Expand Up @@ -59,6 +57,7 @@ class ScsHubIcon(FluentIconBase, Enum):
SCS_EXTRACTOR_FILL = "interface/scs_extractor_fill"

SCS = "scs"

FILE = "file"
FOLDER = "folder"
ANIM = "anim"
Expand Down
46 changes: 10 additions & 36 deletions scshub/view/interface/home_interface.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from PyQt5.QtCore import Qt, QRectF
from PyQt5.QtGui import QPixmap, QPainter, QColor, QBrush, QPainterPath, QLinearGradient
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QLabel, QSizePolicy
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QLabel

from qfluentwidgets import ScrollArea, FluentIcon, isDarkTheme

Expand Down Expand Up @@ -37,31 +37,7 @@ def __init__(self, parent=None):
)
self.linkCardView.addCard(
FluentIcon.GITHUB,
self.tr("GitHub repo"),
self.tr("Repository with source code and details"),
SCSHUB_GITHUB_URL,
)
self.linkCardView.addCard(
ScsHubIcon.SCS,
self.tr("SCS Forum"),
self.tr("Forum topic and all information about SCS Hub"),
SCSHUB_FORUM_URL,
)
self.linkCardView.addCard(
FluentIcon.GITHUB,
self.tr("GitHub repo"),
self.tr("Repository with source code and details"),
SCSHUB_GITHUB_URL,
)
self.linkCardView.addCard(
ScsHubIcon.SCS,
self.tr("SCS Forum"),
self.tr("Forum topic and all information about SCS Hub"),
SCSHUB_FORUM_URL,
)
self.linkCardView.addCard(
FluentIcon.GITHUB,
self.tr("GitHub repo"),
self.tr("GitHub Repo"),
self.tr("Repository with source code and details"),
SCSHUB_GITHUB_URL,
)
Expand Down Expand Up @@ -114,34 +90,32 @@ def __init__(self, parent=None):
self.setWidgetResizable(True)

self.banner = BannerWidget(self)
# self.mame = CreditWidget(self)

self.vBoxLayout = QVBoxLayout(self.view)
self.vBoxLayout.setContentsMargins(0, 0, 0, 0) # left, top, right, down
self.vBoxLayout.setContentsMargins(0, 0, 0, 0)
self.vBoxLayout.setSpacing(40)
self.vBoxLayout.addWidget(self.banner)
# self.vBoxLayout.addWidget(self.mame)

StyleSheet.HOME_INTERFACE.apply(self)

appsView = InterfaceCardView(self.tr("Apps"), self.view)

appsView.addSampleCard(
FluentIcon.DEVELOPER_TOOLS,
"Converter PIX",
ScsHubIcon.PIX_CONVERTER,
self.tr("Converter PIX"),
self.tr("Extractor and converter (*.PMX to *.PIX)"),
"pixInterface",
)
appsView.addSampleCard(
FluentIcon.IMAGE_EXPORT,
"SCS Extractor",
self.tr("Extract whole *.scs archive file without any change"),
ScsHubIcon.SCS_EXTRACTOR,
self.tr("SCS Extractor"),
self.tr("Extract whole *.scs archive file without conversion"),
"scsInterface",
)
appsView.addSampleCard(
FluentIcon.SETTING,
"Setting",
self.tr("A place to configure app and change theme"),
self.tr("Settings"),
self.tr("Place to configure and personlize app"),
"settingInterface",
)

Expand Down
Loading

0 comments on commit 3d16a89

Please sign in to comment.