Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Stuff for uploading to PyPI and bugfixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Feb 17, 2017
1 parent 098a8db commit 45406a1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RSI.py
======

RSI.py is a library for using RSI files used in the SS13 remake YASSS13RTWCF.
10 changes: 8 additions & 2 deletions rsi/rsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def write(self, path: Union[str, Path]) -> None:
row = count % sheetdimensions[0] # type: int
column = count // sheetdimensions[0] # type: int

point = row * self.size[0], column * self.size[0] # type: Tuple[int, int]
point = row * self.size[0], column * self.size[1] # type: Tuple[int, int]
image.paste(icon, box=point)

count += 1
Expand Down Expand Up @@ -154,7 +154,13 @@ def from_dmi(cls: Type[T], path: str) -> T:

# BYOND does not permit direction specific delays so this is easy.
for x in range(rsstate.directions):
rsstate.delays[x] = dmstate.delay.copy()
rsstate.delays[x] = []
# Circumvent around a BYOND bug (?) where states have more delays than actual frames.
for y in range(dmstate.frames):
if dmstate.frames != 1:
delay = float(dmstate.delay[x])
rsstate.delays[x].append(delay)

rsstate.icons[x] = dmstate.icons[x * dmstate.frames:(x + 1) * dmstate.frames]

return rsi
17 changes: 15 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@

setup(
name="RSI.py",
version="1.0.1",
version="1.0.2",
description="A library for manipulation of the RSI format used in YASSS13RTWCF.",
url="https://github.com/NanotrasenInc/RSI.py",
author="Pieter-Jan Briers",
author_email="pieterjan.briers@gmail.com",
license="MIT",
packages=["rsi"]
packages=["rsi"],
python_requires=">=3.5",
install_requires=[
"Pillow"
],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Libraries :: Python Modules"
]
)

0 comments on commit 45406a1

Please sign in to comment.