OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Support => Topic started by: LeftoverRemains on September 05, 2024, 07:00:23 am

Title: [Answered] Is there a way to turn off the "thinking" bar during enemy turns?
Post by: LeftoverRemains on September 05, 2024, 07:00:23 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.
Title: Re: Is there a way to turn off the
Post by: Meridian 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
Title: Re: Is there a way to turn off the
Post by: LeftoverRemains 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?
Title: Re: Is there a way to turn off the
Post by: LeftoverRemains 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.
Title: Re: [Answered] Is there a way to turn off the "thinking" bar during enemy turns?
Post by: Meridian on September 07, 2024, 09:16:06 am
It's a feature, not an issue.

Also, it is ProgresBar.cpp, not Bar.cpp.
Title: Re: [Answered] Is there a way to turn off the "thinking" bar during enemy turns?
Post by: LeftoverRemains on September 07, 2024, 02:28:20 pm
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.
Title: Re: [Answered] Is there a way to turn off the "thinking" bar during enemy turns?
Post by: Meridian on September 10, 2024, 03:43:54 pm
Player option implemented, see: https://openxcom.org/forum/index.php?topic=10710.msg166237#msg166237