Skip to content

Commit da46176

Browse files
committed
fix for GUI width/height stuff not loading properly
1 parent 04edc7a commit da46176

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Binary file not shown.

Plugin/SSTUTools/KSPShaderTools/GUI/CraftRecolorGUI.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ public void Awake()
3636
graphWidth = KSPShaderLoader.recolorGUIWidth;
3737
graphHeight = KSPShaderLoader.recolorGUITotalHeight;
3838
sectionHeight = KSPShaderLoader.recolorGUISectionHeight;
39+
windowRect.x = Screen.width - (graphWidth + 100);
3940
}
4041

4142
internal void openGUIPart(Part part)
4243
{
44+
windowRect.width = graphWidth;
45+
windowRect.height = graphHeight;
4346
if (part != openPart)
4447
{
4548
moduleIndex = -1;

0 commit comments

Comments
 (0)