aliens

Author Topic: [Suggestion] Making ufopaedia article hidden by default  (Read 175 times)

Offline WarStalkeR

  • Captain
  • ***
  • Posts: 55
  • Repensum Est Canicula
    • View Profile
[Suggestion] Making ufopaedia article hidden by default
« on: September 08, 2024, 08:50:39 pm »
By default, all ufopaedia articles are assigned default visibility flag. The 'ufopediaRuleStatus' entry is only modifiable during gameplay via ufopaedia list (by right mouse button click on the entry).

Option to make specific article hidden by default will make possible to add proper ufopaedia entries for damaged/ruined facilities that will open, once you're clicking middle mouse button, but won't appear in the list nor will show up, when you switching to the next or previous ufopaedia entry.

So far I haven't found anything that allows me to make ufopaedia entry hidden on initialization or tech unlock.

Is there any chance to add something like this?
« Last Edit: September 09, 2024, 10:32:44 pm by WarStalkeR »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8888
    • View Profile
Re: [Suggestion] Making ufopaedia article hidden by default
« Reply #1 on: September 08, 2024, 09:12:04 pm »
I will gladly consider adding modding features if modders ask for it.

PS: hiding pedia articles is a user feature, not a modder feature. Whatever the requirement is here, the solution would be different than proposed.

Offline WarStalkeR

  • Captain
  • ***
  • Posts: 55
  • Repensum Est Canicula
    • View Profile
Re: [Suggestion] Making ufopaedia article hidden by default
« Reply #2 on: September 08, 2024, 10:05:36 pm »
I will gladly consider adding modding features if modders ask for it.
While making submod for XPZ, I was thinking it is a shame that all ruined versions of the facility can be seen only in debug mode, because they are hidden behind unresearchable technology (to avoid filling ufopaedia list and articles with unnecessary spam I assume).

PS: hiding pedia articles is a user feature, not a modder feature. Whatever the requirement is here, the solution would be different than proposed.
This idea is something like this:
Code: [Select]
ufopaedia:
  - id: STR_HANGAR_DAMAGED
    type_id: 6
    section: STR_BASE_FACILITIES
    requires:
      - STR_HANGARS_TECH
    text: STR_HANGAR_DAMAGED
    defaultUfopediaStatus: hidden
    listOrder: 19171
And article is in the 'hidden' category by default. Player doesn't see it, once technology in 'requires' was researched, but can do RMB click on relevant facility in the basescape to open relevant ufopaedia article. Of course, if player wants - it can be seen in hidden category and can me changed to always visible.