OpenXcom Forum

Modding => OpenXcom Extended => OXCE Suggestions DONE => Topic started by: Solarius Scorch on May 02, 2021, 05:17:19 pm

Title: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: Solarius Scorch 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).
Title: Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: Meridian 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
Title: Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: The Martian on December 24, 2021, 10:02:52 am
Thank you for this, it is appreciated. (https://openxcom.org/forum/Themes/InsidiousV1-k/images/post/thumbup.gif)
Title: Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: Solarius Scorch on December 25, 2021, 10:10:03 pm
Many thanks, Meridian! This is a very nice feature.
Title: Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: Finnik on December 28, 2021, 07:08:38 pm
Can it be added for cutscenes too?
Title: Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: Meridian on December 28, 2021, 11:07:14 pm
Yes, it is technically possible.
Title: Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: Finnik 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?
Title: Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: Meridian on December 29, 2021, 01:09:24 am
Yes, I want it in OXCE.
Title: Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: Meridian 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
Title: Re: [DONE][SUGGESTION] Align To Bottom in the Ufopedia
Post by: Finnik on December 30, 2021, 10:17:33 pm
Cool!  :)