aliens

Author Topic: [DONE][SUGGESTION] Align To Bottom in the Ufopedia  (Read 3500 times)

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
[DONE][SUGGESTION] Align To Bottom in the Ufopedia
« on: May 02, 2021, 05:17:19 pm »
I'd like to request a feature for Pedia articles type 7: an alignToBottom flag.

- What would this flag do?
- The only change is that it'd align the text to the bottom of the screen instead of the top.

- What for? It can be done with recText.
- Yes it can, but:
1) It's a thankless manual work with lots of attempts;
2) It messes translations (if the translated text is much shorter, it will leave a pointless clean strip below the text while the important centre of the background pic is covered by text; and vice versa, it may be hard to fit the text in another language, despite having lots of space above).
« Last Edit: December 23, 2021, 05:25:33 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
« Reply #1 on: December 23, 2021, 05:26:28 pm »
Done.

Example:

Code: [Select]
ufopaedia:
  - id: STR_UFO_POWER_SOURCE
    type_id: 7
    section: STR_UFO_COMPONENTS
    requires:
      - STR_UFO_POWER_SOURCE
    image_id: UP032.SPK
    text: STR_UFO_POWER_SOURCE_UFOPEDIA
    text_width: 163
    align_bottom: true

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
« Reply #2 on: December 24, 2021, 10:02:52 am »
Thank you for this, it is appreciated.

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
« Reply #3 on: December 25, 2021, 10:10:03 pm »
Many thanks, Meridian! This is a very nice feature.

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
« Reply #4 on: December 28, 2021, 07:08:38 pm »
Can it be added for cutscenes too?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
« Reply #5 on: December 28, 2021, 11:07:14 pm »
Yes, it is technically possible.

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
« Reply #6 on: December 29, 2021, 12:43:06 am »
Hm, I think I saw you wrote somewhere that question "is it possible to add/make something" is most likely pointless, as the answer would be "yes" in nearly all cases. But such an answer does not clear things, as if the feature is possible it does not mean you will add it in OXCE.
Also, as I am more or less familiar with the engine, I can understand that such simple things are definitely technically possible. If I doubted in the technical possibility of the feature with the framework we have, I would ask in the very different way.

So I would like to update my question - do you want it in OXCE?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
« Reply #7 on: December 29, 2021, 01:09:24 am »
Yes, I want it in OXCE.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
« Reply #8 on: December 30, 2021, 10:05:15 pm »
Can it be added for cutscenes too?

Done.

Code: [Select]
cutscenes:
  - type: xxx
    slideshow:
      slides:
        - imagePath: yyy
          caption: zzz
          captionSize: [190, 104]
          captionPos: [0, 0]
          captionColor: 249
          captionAlign: 0
          captionVerticalAlign: 0   # 0 = top, 1 = middle, 2 = bottom

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
« Reply #9 on: December 30, 2021, 10:17:33 pm »
Cool!  :)