aliens

Author Topic: [Answered] Is there a way to turn off the "thinking" bar during enemy turns?  (Read 870 times)

Offline LeftoverRemains

  • Sergeant
  • **
  • Posts: 11
    • View Profile
I was curious, is there a way to turn off the "thinking" bar during enemy turns? I noticed its been there since at least 7.12.
« Last Edit: September 07, 2024, 08:40:38 am by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: Is there a way to turn off the
« Reply #1 on: September 05, 2024, 11:32:16 am »
I was curious, is there a way to turn off the "thinking" bar during enemy turns? I noticed its been there since at least 7.12.

Code: [Select]
extraStrings:
  - type: en-US
    strings:
      STR_THINKING: ""

interfaces:
  - type: battlescape
    elements:
      - id: thinkingProgressBar
        color: 0
        color2: 0
        border: 0 # 0 is ignored, in that case color+4 is used

Offline LeftoverRemains

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: Is there a way to turn off the
« Reply #2 on: September 05, 2024, 11:03:57 pm »
Ok, so I just did that : (standard/xcom1/interfaces.rul) -> color, color 2, and border are all 0 , yet the border box is still showing as a grey rectangle

As for the above bar name, when I set the (common/language/OXCE/en-US.yml) -> STR_Thinking to "" it shows the variable name above the bar as STR_Thinking, however, if i set it to " " then it becomes a hidden title.

Is there another file I need to change a setting in?

Also if I update OpenXcom in the future would I have to set the values in the files again?

Offline LeftoverRemains

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: Is there a way to turn off the
« Reply #3 on: September 06, 2024, 08:18:50 pm »
Code: [Select]
extraStrings:
  - type: en-US
    strings:
      STR_THINKING: ""

interfaces:
  - type: battlescape
    elements:
      - id: thinkingProgressBar
        color: 0
        color2: 0
        border: 0 # 0 is ignored, in that case color+4 is used

Based on your info about if border:0 , then border: color + 4, I was able to pinpoint what I believe is the issue for the bar remaining visible on 0, OpenXcom/src/interface/bar.cpp the line that adds the color value to the bar removes it's transparency, if I were to set the color: -4 then the progress bar appears, but the border is removed.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
It's a feature, not an issue.

Also, it is ProgresBar.cpp, not Bar.cpp.

Offline LeftoverRemains

  • Sergeant
  • **
  • Posts: 11
    • View Profile
It's a feature, not an issue.

Also, it is ProgresBar.cpp, not Bar.cpp.

I didn't mean an issue with the code, I meant trying to resolve my issue on my end, and what I came across as to what I thought I should be tinkering with, but thank you for the redirection.

You guys have done an amazing job bringing this game to modern consoles, and androids.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile