Project

General

Profile

Bug #19473

UI_ProgressBar setting maxValue to 0 causes the UI to freeze.

Added by Fengist over 5 years ago.

Status:
New
Severity:
Low
Assignee:
-
Category:
Controls and UI
Target version:
-
Start date:
08/02/2018
% Done:

0%

Version:
Platform:
Windows
Expansion:
Core Game
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

[KSPField(guiName = "Balloonet", guiActiveEditor = true, guiActive = true, isPersistant = true),
UI_ProgressBar(minValue = 0f, maxValue = 100f, scene = UI_Scene.All)]
public float atmosphereVolume = 0.0f;

works fine

[KSPField(guiName = "Balloonet", guiActiveEditor = true, guiActive = true, isPersistant = true),
UI_ProgressBar(minValue = 0f, maxValue = 0f, scene = UI_Scene.All)]
public float atmosphereVolume = 0.0f;

will cause the UI to freeze and lock up when the part is right clicked on. Though the game is still running the only option is to manually close KSP.

Also available in: Atom PDF