yakui-lover / tablecloth-generator

A tool to create tableclothes for the /mjg/ League

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tablecloth Generator

A tool to create tableclothes for the /mjg/ League easily

Screenshot Screenshot-2 Screenshot-3
Blank version with no settings Preview window Team configuration screen

This simple tool just lets you pick up the teams in their according seat and then generate the tablecloth. No PAINT.net required. Easy, right?

Features

  • No layer selection
  • Pick the teams in their respective seating
  • Generate and copy to your majsoul plus folder

Installation

Download it from releases, extract and run the .exe file.

Will there be Linux releases?

Probably not, unless someone else compiles it. You're welcome to do it in a Pull Request.

Development

It was tested and compiled on Python 3.9. It is recommended to use virtualenv for testing/compiling.

mkvirtualenv tablecloth-generator

Then run the requirements.txt to install the dependencies.

pip install -r requirements.txt

Finally run the generator.py:

python generator.py

Building for source

First rename Tablecloth generator.spec.template to Tablecloth generator.spec. Then edit the empty paths (marked as <YOUR PATH> and <YOUR PYTHON/VIRTUALENV PATH>). Then, add the optimization lines:

(For Windows)

set PYTHONOPTIMIZE=1

(For Linux)

PYTHONOPTIMIZE=1

Finally run it through pyinstaller:

pyinstaller "Tablecloth generator.spec"

License

MIT

TO-DO

  • Improve the speed in which generates the Tablecloth.
  • Fix the bug which only allows it first to generate as a .png.
  • Write tests.
  • Reorganize the code so that it is much cleaner.
  • Export settings.

Contribute

Problems? Suggestions? Create an issue or. Pull requests are always welcomed.

About

A tool to create tableclothes for the /mjg/ League

License:MIT License


Languages

Language:Python 100.0%