Author Topic: [DONE] [Suggestion] Custom armor preview for a 2x2 unit  (Read 5556 times)

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 683
    • View Profile
[DONE] [Suggestion] Custom armor preview for a 2x2 unit
« on: January 22, 2018, 02:16:05 am »
Custom armor preview for a 2x2 unit

can someone make this change/add to sugestions for 2x2 armored units?
armors:
  - type: exemple
   customArmorPreviewIndex: [5, 6]

and using the both slots 5 and 6 in this case !

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8974
    • View Profile
Re: Custom armor preview for a 2x2 unit
« Reply #1 on: January 22, 2018, 09:43:35 am »
Yes, I will make support for larger armor previews.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8974
    • View Profile
Re: Custom armor preview for a 2x2 unit
« Reply #2 on: May 12, 2018, 05:55:19 pm »
Will be available in the next release

Code: [Select]
extraSprites:
  - type: CustomArmorPreviews
    width: 120
    height: 20
    subX: 12
    subY: 20
    files:
      0: Resources/GUI_Soldiers.png
  - type: CustomItemPreviews
    width: 120
    height: 20
    subX: 12
    subY: 20
    files:
      0: Resources/GUI_Items.png
armors:
  - type: STR_PERSONAL_ARMOR_UC
    customArmorPreviewIndex: 1
  - type: STR_POWER_SUIT_UC
    customArmorPreviewIndex: [2, 3]
items:
  - type: STR_TANK_LASER_CANNON
    customItemPreviewIndex: 1
  - type: STR_HOVERTANK_PLASMA
    customItemPreviewIndex: [2, 3]
« Last Edit: September 26, 2019, 12:47:29 pm by Meridian »

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 683
    • View Profile
Re: Custom armor preview for a 2x2 unit
« Reply #3 on: May 12, 2018, 10:08:24 pm »
Nicceeee

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 683
    • View Profile
Re: Custom armor preview for a 2x2 unit
« Reply #4 on: May 21, 2018, 02:08:13 am »
well it works perfectly but i have to use 3 spaces

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11672
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Custom armor preview for a 2x2 unit
« Reply #5 on: May 21, 2018, 09:32:20 am »
But it looks so fantastic!

Offline SuperCaffeineDude

  • Colonel
  • ****
  • Posts: 108
    • View Profile
    • supercaffeinedude
Re: Custom armor preview for a 2x2 unit
« Reply #6 on: June 01, 2018, 11:57:13 pm »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8974
    • View Profile
Re: [DONE] [Suggestion] Custom armor preview for a 2x2 unit
« Reply #7 on: July 19, 2018, 03:16:22 pm »
@bulletdesigner

I noticed you are using 12x20 sprites like Dioxine... who used it only to see more clearly the beginning and the end of each sprite... and maybe to have easier calculations...

...but, the game will only render the 10x18 (from top left)... so it may be easier for you to switch to such size... instead of splitting the big units as seen in the attachment

PS: also, 1x1 units may be a bit too wide too... looks like they take more than 10 pixels sometimes
« Last Edit: July 19, 2018, 03:19:47 pm by Meridian »

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 683
    • View Profile
Re: [DONE] [Suggestion] Custom armor preview for a 2x2 unit
« Reply #8 on: July 19, 2018, 04:12:41 pm »
@bulletdesigner

I noticed you are using 12x20 sprites like Dioxine... who used it only to see more clearly the beginning and the end of each sprite... and maybe to have easier calculations...

...but, the game will only render the 10x18 (from top left)... so it may be easier for you to switch to such size... instead of splitting the big units as seen in the attachment

PS: also, 1x1 units may be a bit too wide too... looks like they take more than 10 pixels sometimes


yes i noticed something was off, but i like the end result, like soldier stacking up and the last one get more pixels. But i will take the info into account if a make a new 2x2 prev  thks for the hand