Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions src/overrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1027,11 +1027,13 @@ function G.UIDEF.view_deck(unplayed_only)

if wheel_flipped > 0 then flip_col = mix_colours(G.C.FILTER, G.C.WHITE, 0.7) end

local rank_cols = {}
for i = #rank_name_mapping, 1, -1 do
if rank_tallies[rank_name_mapping[i]] ~= 0 or SMODS.add_to_pool(SMODS.Ranks[rank_name_mapping[i]], {suit=''}) then
local rank_cols = {}
local temp_cols = {}

for i = #rank_name_mapping, 1, -1 do
if rank_tallies[rank_name_mapping[i]] ~= 0 or SMODS.add_to_pool(SMODS.Ranks[rank_name_mapping[i]], { suit = '' }) then
local mod_delta = mod_rank_tallies[rank_name_mapping[i]] ~= rank_tallies[rank_name_mapping[i]]
rank_cols[#rank_cols + 1] = {n = G.UIT.R, config = {align = "cm", padding = 0.07}, nodes = {
temp_cols[#temp_cols + 1] = {n = G.UIT.R, config = {align = "cm", padding = 0.07}, nodes = {
{n = G.UIT.C, config = {align = "cm", r = 0.1, padding = 0.04, emboss = 0.04, minw = 0.5, colour = G.C.L_BLACK}, nodes = {
{n = G.UIT.T, config = {text = SMODS.Ranks[rank_name_mapping[i]].shorthand, colour = G.C.JOKER_GREY, scale = 0.35, shadow = true}},}},
{n = G.UIT.C, config = {align = "cr", minw = 0.4}, nodes = {
Expand All @@ -1041,8 +1043,25 @@ function G.UIDEF.view_deck(unplayed_only)
colours = { G.C.RED }, scale = 0.4, y_offset = -2, silent = true, shadow = true, pop_in_rate = 10, pop_delay = 4
})}}
or {n = G.UIT.T, config = {text = rank_tallies[rank_name_mapping[i]], colour = flip_col, scale = 0.45, shadow = true } },}}}}
end
end

if #temp_cols >= 13 then
rank_cols[#rank_cols + 1] = {
n = G.UIT.C,
config = { align = "cm" },
nodes = temp_cols
}
temp_cols = {}
end
end
end

if #temp_cols > 0 then
rank_cols[#rank_cols + 1] = {
n = G.UIT.C,
config = { align = "cm" },
nodes = temp_cols
}
end

local tally_ui = {
-- base cards
Expand Down