Example #1
0
 void CheckInitControls()
 {
     if (!Terminals.InitedDrillControls)
     {
         Terminals.InitDrillControls();
     }
 }
Example #2
0
        void CheckInitControls()
        {
            string Message = "Attention! Due to a bug in the game itself, you might not be able to work with these tools via mouse-click.\nIf you run into this issue, you have to use the Toggle switch in terminal or on/off switch on toolbar.\nSorry for inconvenience.";

            if (IsWelder)
            {
                if (!Terminals.InitedWelderControls)
                {
                    Terminals.InitWelderControls();
                    MyAPIGateway.Utilities.ShowMessage("Laser Welders", Message);
                }
            }
            else if (IsGrinder)
            {
                if (!Terminals.InitedGrinderControls)
                {
                    Terminals.InitGrinderControls();
                    MyAPIGateway.Utilities.ShowMessage("Laser Grinders", Message);
                }
            }
        }