Page 1 of 1

Option to view mana costs on deck lists

Posted: Thu Oct 22, 2020 4:10 pm
by ZenN
I was just looking through some people's deck lists, and I was thinking that I would be really cool to be able to have an option to show the mana costs of the cards in the list.

What I'm thinking is something similar to what you see on Moxfield, like this:
Some random deck I just clicked on over at Moxfield
Show
Hide
image.png

Re: Option to view mana costs on deck lists

Posted: Mon Oct 26, 2020 2:02 pm
by Feyd_Ruin
Apologies. I had this tab open and forgot to actually respond >_<

I like the idea.
Things are hectic for me, so I can't guarantee the turn around, but should absolutely be doable

Re: Option to view mana costs on deck lists

Posted: Sat Jan 23, 2021 8:13 pm
by ZenN
@Feyd_Ruin Hey, just wondering if this is something that got added to a roadmap, or is in progress, or if it was forgotten, or if you decided not to implement for one reason or another. :)

Re: Option to view mana costs on deck lists

Posted: Sat Jan 23, 2021 8:18 pm
by Feyd_Ruin
Definitely on the road map.
Might be something good to do this weekend if time permits.. 🤔

Re: Option to view mana costs on deck lists

Posted: Sun Jan 24, 2021 5:26 am
by Feyd_Ruin
@ZenN
I'll still need to think on it some more.
It works well until you add a card with a long mana cost, like Progenitus.


Fixed that below too.
Turbo Fog by Upkeep

Fogs (12)

3 Fog
4 Tangle

Countermagic (6)

Win Conditions (4)

Lands (18)

3 Desert
7 Island
2 Forest
Approximate Total Cost:


Re: Option to view mana costs on deck lists

Posted: Sun Jan 24, 2021 5:47 am
by ZenN
@Feyd_Ruin Might make for a cleaner look with the mana costs on the other side of the name, and then just set the column min width to be equal to the width of the longest combination of name plus static min spacer plus mana cost. Little bit of easy JS to handle that. That way you have all the next left aligned and the costs right aligned and you get clean straight columns.

That said, I'm saying this while most of the way through a bottle of whiskey and having not inspected the elements, JS, or CSS involved at all. But I believe in you.

Re: Option to view mana costs on deck lists

Posted: Sun Jan 24, 2021 6:56 pm
by Feyd_Ruin
ZenN wrote: ↑
3 years ago
Might make for a cleaner look with the mana costs on the other side of the name
Swapped.
I like it. Also lets us keep the card count visible.
Makes me think I should do the same with the prices.

EDIT:
CMC/Mana/Price all swapped to the right.
Thoughts?

Re: Option to view mana costs on deck lists

Posted: Sun Jan 24, 2021 7:49 pm
by ZenN
Feyd_Ruin wrote: ↑
3 years ago
ZenN wrote: ↑
3 years ago
Might make for a cleaner look with the mana costs on the other side of the name
Swapped.
I like it. Also lets us keep the card count visible.
Makes me think I should do the same with the prices.

EDIT:
CMC/Mana/Price all swapped to the right.
Thoughts?
Looks awesome. Doesn't seem to work when I switch to standardized sorting, though.

Re: Option to view mana costs on deck lists

Posted: Sun Jan 24, 2021 7:59 pm
by Feyd_Ruin
ZenN wrote: ↑
3 years ago
Doesn't seem to work when I switch to standardized sorting
Whoops. Forgot to update that code for the new style/layout.
Fixed!

Re: Option to view mana costs on deck lists

Posted: Sun Jan 24, 2021 8:14 pm
by ZenN
Feyd_Ruin wrote: ↑
3 years ago
Whoops. Forgot to update that code for the new style/layout.
Fixed!
Awesome! Last thing I see is that the ellipsis text overflow doesn't seem to be working for CMC. Works fine for the full mana costs, though.

Re: Option to view mana costs on deck lists

Posted: Mon Jan 25, 2021 12:52 am
by Feyd_Ruin
ZenN wrote: ↑
3 years ago
Last thing I see is that the ellipsis text overflow doesn't seem to be working for CMC.
Changed that too.

Re: Option to view mana costs on deck lists

Posted: Mon Jan 25, 2021 1:12 am
by WizardMN
This is pretty nice actually and "fixes" another thing I had seen the other day where displaying the CMC overwrote the Quantity field. Putting it on the right looks really nice and solves that so you can still see the quantity.

While long mana costs still look "weird" in that it tends to overlap nearly the entire card name for something like Progenitus or Khalni Hydra it is probably acceptable so as to make it consistently uniform

Re: Option to view mana costs on deck lists

Posted: Mon Jan 25, 2021 1:24 am
by Feyd_Ruin
This is why I love good feedback. ^_^

Re: Option to view mana costs on deck lists

Posted: Mon Jan 25, 2021 1:33 am
by ZenN
Feyd_Ruin wrote: ↑
3 years ago
This is why I love good feedback. ^_^
You're welcome. ;)