Deck Skins - Suit Label Colors and UI Suit Icons #289
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding onto OneSuchKeeper's previous PR, this adds support for changing suit label colors and suit icons in the Full Deck menu for the DeckSkin GameObject.
These extra options get loaded/refreshed when the main menu loads, when the player changes their deck skin, or when the player toggles high contrast colors. If the current skin is default or a Friends of Jimbo collab, the colors and icons reset to default (this is also future-proofed for if any future collabs are added).
The DeckSkin API now accepts:
--Usage Example--
SMODS.Atlas{
key = "lc_icons",
path = "lc_Icons.png",
px = 18,
py = 18,
atlas_table = 'ASSET_ATLAS'
}
SMODS.Atlas{
key = "hc_icons",
path = "hc_Icons.png",
px = 18,
py = 18,
atlas_table = 'ASSET_ATLAS'
}
SMODS.Atlas{
key = "myLowContrast",
path = "myLowContrast.png",
px = 71,
py = 95,
atlas_table = 'ASSET_ATLAS'
}
SMODS.Atlas{
key = "myHighContrast",
path = "myHighContrast.png",
px = 71,
py = 95,
atlas_table = 'ASSET_ATLAS'
}
SMODS.DeckSkin{
key = "myDeckSkin",
suit = 'Spades',
ranks = { '2', '3', '4', '5', '6', '7', '8', '9', '10', 'Jack', 'Queen', "King", "Ace" },
hc_atlas = "myHighContrast",
lc_atlas = "myLowContrast",
loc_txt = {
['en-us'] = 'My Cool Deck Skin!'
},
posStyle = 'suit',
lc_colour = "e886f7",
hc_colour = "ab2abf",
lc_ui_atlas = "lc_icons",
hc_ui_atlas = "hc_icons",
ui_pos = { x = 0, y = 0 }
}