/// <summary>Initializes the dialog.</summary> void Awake() { searchText = ""; createQuantity = "1"; GuiUpdateSearch(searchText); guiMainWindowPos = new Rect(100, 100, 500, 0); _guiScale = new GuiScale(getPivotFn: () => new Vector2(guiMainWindowPos.x, guiMainWindowPos.y)); }
void Awake() { hintOverlay = new HintOverlay( () => HighLogic.Skin, () => new GUIStyle(GUI.skin.box) { padding = GUI.skin.button.padding, margin = GUI.skin.button.margin, alignment = TextAnchor.MiddleLeft, fontSize = HintFontSize, }, adjustGuiScale: true); _guiMainScale = new GuiScale(getPivotFn: () => _mousePosition); }