Skip to content

Commit 346068e

Browse files
committed
VSCode reverted changes?
Build failed bc of string converting, unsure why it undid the change when im currently running this build in-game
1 parent d2a1cf1 commit 346068e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/kOS/Module/kOSProcessor.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,18 @@ private void UpdateRP1TechLevel(bool InEditor)
373373
private void PopulateDiskSpaceUI()
374374
{
375375
//populate diskSpaceUI selector
376-
diskSpaceUI = diskSpace.ToString();
376+
// Set the initial value to current disk space
377+
diskSpaceUI = diskSpace;
378+
379+
// Get the field and setup the slider
377380
BaseField field = Fields["diskSpaceUI"];
381+
378382

379383
UI_FloatRange slider = new UI_FloatRange
380384
{
381385
minValue = baseDiskSpace,
382386
maxValue = baseDiskSpace * 8,
383-
stepIncrement = baseDiskSpace / 4f,
387+
stepIncrement = baseDiskSpace / 8f,
384388
scene = UI_Scene.Editor
385389
};
386390

0 commit comments

Comments
 (0)