OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started 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).
-
Done.
Example:
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
-
Thank you for this, it is appreciated. (https://openxcom.org/forum/Themes/InsidiousV1-k/images/post/thumbup.gif)
-
Many thanks, Meridian! This is a very nice feature.
-
Can it be added for cutscenes too?
-
Yes, it is technically possible.
-
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?
-
Yes, I want it in OXCE.
-
Can it be added for cutscenes too?
Done.
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
-
Cool! :)