forked from Cavemanon/SnootGame
Remove unused functions
This commit is contained in:
@ -23,9 +23,6 @@ init python:
|
|||||||
# { item: string; cg: Displayable; ext: string }[]
|
# { item: string; cg: Displayable; ext: string }[]
|
||||||
galleryItems = []
|
galleryItems = []
|
||||||
|
|
||||||
# Which page of the gallery is shown
|
|
||||||
galleryPage = 1
|
|
||||||
|
|
||||||
# Global function to unlock a cg
|
# Global function to unlock a cg
|
||||||
# fname should be a key used in galleryItems
|
# fname should be a key used in galleryItems
|
||||||
# (fname: string) -> None
|
# (fname: string) -> None
|
||||||
@ -126,14 +123,6 @@ init python:
|
|||||||
|
|
||||||
return { "x": x, "y": y }
|
return { "x": x, "y": y }
|
||||||
|
|
||||||
|
|
||||||
# Returns the pageth slice from galleryItems
|
|
||||||
# (page: int): Partial<typeof galleryItems>
|
|
||||||
def getGalleryPage(page):
|
|
||||||
start = (page - 1) * GALLERY_CGS_PER_PAGE
|
|
||||||
end = start + GALLERY_CGS_PER_PAGE
|
|
||||||
return galleryItems[start:end]
|
|
||||||
|
|
||||||
# Call to loading the gallery
|
# Call to loading the gallery
|
||||||
loadGallery()
|
loadGallery()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user