예제 #1
0
        public void ForcePAWRefresh()
        {
            // Thanks to https://github.com/blowfishpro for finding this API call for me:
            UIPartActionWindow paw = UIPartActionController.Instance?.GetItem(part, false);

            if (paw != null)
            {
                paw.ClearList();
                paw.displayDirty = true;
            }
        }
예제 #2
0
        private void UpdatePartActionWindow()
        {
            UIPartActionWindow window = UIPartActionController.Instance?.GetItem(module.part, false);

            if (window is null)
            {
                return;
            }

            window.ClearList();
            window.displayDirty = true;
        }