Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: How are icon sizes determined?  (Read 2964 times)

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
How are icon sizes determined?
« on: August 22, 2011, 12:12:36 PM »

How does the game determine what size to scale the icons to?

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24118
    • View Profile
Re: How are icon sizes determined?
« Reply #1 on: August 26, 2011, 08:44:27 AM »

It's set to a certain size (42x42) and then scaled down based on the ship size class. That's likely to change, though.
Logged

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Re: How are icon sizes determined?
« Reply #2 on: August 26, 2011, 08:48:00 AM »

Ok, that explains why some icons I can't get to display properly (ie, the pheonix) - it seems like the map sprite is being downsized and then upsized.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24118
    • View Profile
Re: How are icon sizes determined?
« Reply #3 on: August 26, 2011, 08:55:29 AM »

Ok, that explains why some icons I can't get to display properly (ie, the pheonix) - it seems like the map sprite is being downsized and then upsized.

Well, that should never happen, since it'll always use the exact texture you provide, at whatever size it ultimately decides to draw.

But as I recall, the Phoenix is rather flat and wide, so it'll look smallish compared to other ships if they're all fitted into a set area. We'll get it straightened out one way or another - finalizing how the icons work is on the near-term todo list.
Logged

Avan

  • Admiral
  • *****
  • Posts: 1399
  • Pioneer of Starfarer Modding
    • View Profile
    • DevDB forums
Re: How are icon sizes determined?
« Reply #4 on: August 26, 2011, 08:58:52 AM »

Once I am back home (at work atm) I'll put up a screen of the problem I'm getting - its distinctly blurry, even though its a 100px icon file