Slay the Spire

Slay the Spire

29 ratings
Shop Grid
   
Award
Favorite
Favorited
Unfavorite
Api
File Size
Posted
77.228 KB
Nov 19, 2024 @ 3:16pm
1 Change Note ( view )

Subscribe to download
Shop Grid

Description
An API for interacting with the shop. Subscribe and list as a dependency in your own mod to start using it. My intention for this was to provide the community with a standardized way of adding items to the shop, mainly to prevent things like overlap.

Includes the following:
  • Adds an abstraction to add custom items to the shop: CustomShopItem
  • Interfaces to subscribe to:
    • PostGridInitializeSubscriber: called after the grid is created. use to change the initial shape of the shop grid
    • PostShopInitializeSubscriber: called after the shop is fully done being initialized. use to add more pages and such
  • Extends the 2x3 grid in the shop to be able to:
    • have multiple pages
    • have any number of rows on a page
    • have any number of columns on a page
    • handle pretty large shop pages, like really large shop pages
    • Console commands for the shop
  • Mod compatibility: (i think these all work im like 90% sure)
    • Run 'shop add page 0' in the console to add a blank page in case a mod item overlaps with the grid and cannot be clicked
    • Shop Mod 1.2.4
    • Spicy Shops 1.2.4 (the visual effects might be buggy)

    Hastily written guide on how to use: https://github.com/TheDanDLion/ShopGrid/wiki/Main
    The code can be found here: https://github.com/TheDanDLion/ShopGrid

    I can be slow to responding to comments so I apologize in advance if you have questions.
Popular Discussions View All (2)
2
Mar 5 @ 4:51pm
PINNED: Bug Board
DandyLion
0
Feb 9 @ 12:10pm
PINNED: Feature Request
DandyLion
8 Comments
守望者 Mar 9 @ 3:28am 
So this mod requires a front-end console operation, not just being able to enter the store directly, right?
Roan1001 Feb 19 @ 9:31am 
added all mods i used to collection on account(they are public), u can check them if u want
https://steamcommunity.com/sharedfiles/filedetails/?id=3430479013
rawiggins Feb 10 @ 10:15am 
Dope man that makes me so happy to hear. I play with a ton of modded relic mods and its almost impossible to find specific things at this point. I'll be so happy when those settings get added so i can expand my shop size.
DandyLion  [author] Feb 9 @ 12:15pm 
This mod was mainly intended for other modders to be able to add to the shop without needing to implement their own logic, but I didn't consider that people would want want to change the default size but that makes sense in hindsight, so I can add some settings, thanks for the suggestion

@Roan1001 I'm sorry you're getting crashes, could you post what mods you're using? I'd be happy to look into it further but I don't have any information to go off of. In terms of compatibility, I mainly test other shop-related mods so there's likely something I missed. You're help would be greatly appreciated
Roan1001 Jan 25 @ 5:46pm 
get many crashes because of it
rawiggins Jan 24 @ 10:55pm 
Any chance you would be willing to add settings to the in game mod config that allow users to change the size of their shops and add complete pages with relics and potions permanently? I tried using the console commands but it seems to reset every time I enter a shop, and adding a new page doesn't populate it with any relics aside from 1 relic and 1 potion.
DandyLion  [author] Jan 6 @ 2:08pm 
interesting, I wonder if the buttons are misaligned, I'll have to boot it up on my steam deck to investigate. thanks for reporting!
Will((ow)|(iam)) Jan 4 @ 5:04am 
I can't go to the next page on SteamOS, either with the controller buttons or with the touch screen.