Skip to content

Commit e2ce0eb

Browse files
committed
how did this even get back in the code?
1 parent e40f9e7 commit e2ce0eb

File tree

1 file changed

+0
-112
lines changed

1 file changed

+0
-112
lines changed

lib/ui.lua

Lines changed: 0 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -465,117 +465,5 @@ function G.UIDEF.use_and_sell_buttons(card)
465465
} })
466466
return abc
467467
end
468-
if
469-
card.area
470-
and card.edition
471-
and (card.area == G.jokers or card.area == G.consumeables or card.area == G.hand)
472-
and card.edition.cry_double_sided
473-
and not Card.no(card, "dbl")
474-
then
475-
local use = {
476-
n = G.UIT.C,
477-
config = { align = "cr" },
478-
nodes = {
479-
{
480-
n = G.UIT.C,
481-
config = {
482-
ref_table = card,
483-
align = "cr",
484-
maxw = 1.25,
485-
padding = 0.1,
486-
r = 0.08,
487-
hover = true,
488-
shadow = true,
489-
colour = G.C.UI.BACKGROUND_INACTIVE,
490-
one_press = true,
491-
button = "flip",
492-
func = "can_flip_card",
493-
},
494-
nodes = {
495-
{ n = G.UIT.B, config = { w = 0.1, h = 0.3 } },
496-
{
497-
n = G.UIT.T,
498-
config = {
499-
text = localize("b_flip"),
500-
colour = G.C.UI.TEXT_LIGHT,
501-
scale = 0.3,
502-
shadow = true,
503-
},
504-
},
505-
},
506-
},
507-
},
508-
}
509-
local m = abc.nodes[1]
510-
if not card.added_to_deck then
511-
use.nodes[1].nodes = { use.nodes[1].nodes[2] }
512-
if card.ability.consumeable then
513-
m = abc
514-
end
515-
end
516-
m.nodes = m.nodes or {}
517-
table.insert(m.nodes, { n = G.UIT.R, config = { align = "cl" }, nodes = {
518-
use,
519-
} })
520-
return abc
521-
end
522-
if
523-
card.area
524-
and (card.area == G.jokers or card.area == G.consumeables or card.area == G.hand)
525-
and (not card.edition or not card.edition.cry_double_sided)
526-
and not card.ability.eternal
527-
and not Card.no(card, "dbl")
528-
then
529-
for i = 1, #card.area.cards do
530-
if card.area.cards[i].edition and card.area.cards[i].edition.cry_double_sided then
531-
local use = {
532-
n = G.UIT.C,
533-
config = { align = "cr" },
534-
nodes = {
535-
{
536-
n = G.UIT.C,
537-
config = {
538-
ref_table = card,
539-
align = "cr",
540-
maxw = 1.25,
541-
padding = 0.1,
542-
r = 0.08,
543-
hover = true,
544-
shadow = true,
545-
colour = G.C.UI.BACKGROUND_INACTIVE,
546-
one_press = true,
547-
button = "flip_merge",
548-
func = "can_flip_merge_card",
549-
},
550-
nodes = {
551-
{ n = G.UIT.B, config = { w = 0.1, h = 0.3 } },
552-
{
553-
n = G.UIT.T,
554-
config = {
555-
text = localize("b_merge"),
556-
colour = G.C.UI.TEXT_LIGHT,
557-
scale = 0.3,
558-
shadow = true,
559-
},
560-
},
561-
},
562-
},
563-
},
564-
}
565-
local m = abc.nodes[1]
566-
if not card.added_to_deck then
567-
use.nodes[1].nodes = { use.nodes[1].nodes[2] }
568-
if card.ability.consumeable then
569-
m = abc
570-
end
571-
end
572-
m.nodes = m.nodes or {}
573-
table.insert(m.nodes, { n = G.UIT.R, config = { align = "cl" }, nodes = {
574-
use,
575-
} })
576-
return abc
577-
end
578-
end
579-
end
580468
return abc
581469
end

0 commit comments

Comments
 (0)