Author Topic: Width\Height = (percentage %)  (Read 1086 times)

STAiNLESS

  • Newbie
  • *
  • Posts: 48
  • Karma: +49/-13
  • CORE
    • View Profile
Width\Height = (percentage %)
« on: November 21, 2022, 07:57:50 PM »
Would it be possible to implement width\height as a percentage?

I have a lot of art for a lot of systems. It's difficult, if not impossible to get them to all scale correctly relative to the covers\medium_front without using individual layouts per system.
If I sized all my art to actual dimensions in px, then set height\width to say 50%, I think that would solve it.

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Width\Height = (percentage %)
« Reply #1 on: November 21, 2022, 11:20:50 PM »
Wouldn't you want all art to have roughly the same size?

STAiNLESS

  • Newbie
  • *
  • Posts: 48
  • Karma: +49/-13
  • CORE
    • View Profile
Re: Width\Height = (percentage %)
« Reply #2 on: November 21, 2022, 11:27:59 PM »
going for authentic as possible.
example, gamecube disc is much smaller than playstation irl.

if the layout could just use the png's absolute dimensions (which it can) and modify by say 50%, sizing should scale uniformly throughout the systems.
(as long as png is sized correctly, but thats for me to worry about.)
« Last Edit: November 21, 2022, 11:30:18 PM by STAiNLESS »

STAiNLESS

  • Newbie
  • *
  • Posts: 48
  • Karma: +49/-13
  • CORE
    • View Profile
Re: Width\Height = (percentage %)
« Reply #3 on: November 21, 2022, 11:38:32 PM »
Just to paint the picture.
i have artwork_front, and medium_front displaying, I would like to show the medium at the correct size relative to its cover.
Currently its hard\impossible to get something like a tg-16 card to scale correctly next to its cover, wilst also a super famicom cartridge scaling correctly next to its cover (using single layout.xml).
The card\cart show at the same size. i think being ablet to set widthPercent="50" would solve. The card\cart would show at 50% of the png actual size.
« Last Edit: November 21, 2022, 11:43:06 PM by STAiNLESS »

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Width\Height = (percentage %)
« Reply #4 on: November 21, 2022, 11:43:51 PM »
I'll give it some thought; I may do some programming again next month anyway, and this doesn't sound like a very complex feature to add.

STAiNLESS

  • Newbie
  • *
  • Posts: 48
  • Karma: +49/-13
  • CORE
    • View Profile
Re: Width\Height = (percentage %)
« Reply #5 on: November 22, 2022, 12:04:34 AM »
appreciate it, thanks  ;D