protected override void SafeAwake()
        {
            HardnessMenu = AddMenu("Hardness", Hardness, new List <string> {
                "低碳钢", "中碳钢", "高碳钢"
            }, false);
            HardnessMenu.ValueChanged += (int value) => { Hardness = value; ChangedProperties(); };
            BlockDataLoadEvent        += (XDataHolder BlockData) => { Hardness = HardnessMenu.Value; };

            ExtendKey = AddKey("伸出", "Extend", ExtendKeyCodes);
            ShrinkKey = AddKey("收回", "Shrink", ShrinkKeyCodes);

            PressureToggle          = AddToggle("液压模式", "Pressure", Pressure);
            PressureToggle.Toggled += (bool value) => { Pressure = ExtendKey.DisplayInMapper = ShrinkKey.DisplayInMapper = FeedSlider.DisplayInMapper = value; ChangedProperties(); };
            BlockDataLoadEvent     += (XDataHolder BlockData) => { Pressure = PressureToggle.IsActive; };

            FeedSlider = AddSlider("进给速度", "feed", Feed, 0f, 2f, false);
            FeedSlider.ValueChanged += (float value) => { Feed = value; ChangedProperties(); };
            BlockDataLoadEvent      += (XDataHolder BlockData) => { Feed = FeedSlider.Value; };

            ExtendLimitSlider = AddSlider("伸出限制", "ExtendLimit", ExtendLimit, 0f, 3f, false);
            ExtendLimitSlider.ValueChanged += (float value) => { ExtendLimit = value; ChangedProperties(); };
            BlockDataLoadEvent             += (XDataHolder BlockData) => { ExtendLimit = ExtendLimitSlider.Value; };

            ShrinkLimitSlider = AddSlider("收缩限制", "ShrinkLimit", ShrinkLimit, 0f, 3f, false);
            ShrinkLimitSlider.ValueChanged += (float value) => { ShrinkLimit = value; ChangedProperties(); };
            BlockDataLoadEvent             += (XDataHolder BlockData) => { ShrinkLimit = ShrinkLimitSlider.Value; };



#if DEBUG
            ConsoleController.ShowMessage("悬挂添加进阶属性");
#endif
        }
Example #2
0
        public string Add(MMenu obj)
        {
            MMenuRPO RPO = new MMenuRPO(imap_);

            RPO.Insert(obj, ref exec);
            return(exec.Message);
        }
Example #3
0
        public string Update(MMenu objRole)
        {
            MMenuRPO roleRPO = new MMenuRPO(imap_);

            roleRPO.Update(objRole, ref exec);
            return(exec.Message);
        }
Example #4
0
        public override void SafeAwake()
        {
            HardnessMenu = BB.AddMenu(LanguageManager.hardness, Hardness, MetalHardness, false);
            HardnessMenu.ValueChanged += (int value) => { Hardness = value; ChangedProperties(); };

            ExtendKey = BB.AddKey(LanguageManager.extend, "Extend", KeyCode.E);
            ShrinkKey = BB.AddKey(LanguageManager.retract, "Shrink", KeyCode.F);

            HydraulicToggle          = BB.AddToggle(LanguageManager.hydraulicMode, "Pressure", Hydraulic);
            HydraulicToggle.Toggled += (bool value) => { Hydraulic = R2CToggle.DisplayInMapper = ExtendKey.DisplayInMapper = ShrinkKey.DisplayInMapper = FeedSlider.DisplayInMapper = ExtendLimitSlider.DisplayInMapper = ShrinkLimitSlider.DisplayInMapper = value; ChangedProperties(); };

            R2CToggle          = BB.AddToggle(LanguageManager.returnToCenter, "Return to center", R2C);
            R2CToggle.Toggled += (bool value) => { R2C = value; ChangedProperties(); };

            FeedSlider = BB.AddSlider(LanguageManager.feedSpeed, "feed", Feed, 0f, 2f);
            FeedSlider.ValueChanged += (float value) => { Feed = value; ChangedProperties(); };

            ExtendLimitSlider = BB.AddSlider(LanguageManager.extendLimit, "ExtendLimit", ExtendLimit, 0f, 3f);
            ExtendLimitSlider.ValueChanged += (float value) => { ExtendLimit = value; ChangedProperties(); };

            ShrinkLimitSlider = BB.AddSlider(LanguageManager.retractLimit, "ShrinkLimit", RetractLimit, 0f, 3f);
            ShrinkLimitSlider.ValueChanged += (float value) => { RetractLimit = value; ChangedProperties(); };



#if DEBUG
            ConsoleController.ShowMessage("悬挂添加进阶属性");
#endif
        }
Example #5
0
        public IActionResult SubmitUpdate(string obj)
        {
            MMenu  obj_   = new MMenu();
            string errMsg = Validate(obj, ref obj_);

            if (errMsg == "")
            {
                bool isExist = mmgr.CheckIsExist(obj_.ID, ref errMsg);
                if (errMsg == "")
                {
                    errMsg = !isExist ? "Data does not exist" : "";
                }
                else
                {
                    _logger.ERROR(errMsg);
                    errMsg = "Internal Server Error";
                }
            }
            if (errMsg == "")
            {
                errMsg = mmgr.Update(obj_);
                if (!string.IsNullOrEmpty(errMsg))
                {
                    _logger.ERROR(errMsg);
                    errMsg = "Internal Server Error";
                }
            }

            return(Z_Result.SetResult(errMsg));
        }
Example #6
0
        void AddTankTypeMenu(Block block)
        {
            MMenu tankTypeMenu = block.InternalObject.AddMenu(new MMenu("tankTypeMenu", 5, Enum.GetNames(typeof(TankType)).ToList(), false));

            tankTypeMenu.ValueChanged += tankTypeInt =>
            {
                if (!StatMaster.levelSimulating)
                {
                    if (block.Machine == PlayerMachine.GetLocal())
                    {
                        MachineInspector.Instance.SetTankType((TankType)tankTypeInt);
                        StartCoroutine(this.SetTankTypeCoroutine(block.Machine, tankTypeInt));
                    }
                }
            };
            MachineInspector.Instance.OnTypeChangeFromGUI += x =>
            {
                if (block.Machine == PlayerMachine.GetLocal())
                {
                    tankTypeMenu.SetValue(x);
                    tankTypeMenu.ApplyValue();
                    block.InternalObject.OnSave(new XDataHolder());
                }
            };
        }
Example #7
0
        public IActionResult SubmitAdd(string obj)
        {
            MMenu  obj_   = new MMenu();
            string errMsg = Validate(obj, ref obj_);

            if (errMsg == "")
            {
                obj_.ID = obj_.ID.ToUpper();
                bool isDuplicate = mmgr.CheckIsExist(obj_.ID, ref errMsg);
                if (errMsg == "")
                {
                    errMsg = isDuplicate ? "Data Already Exist" : "";
                }
                else
                {
                    _logger.ERROR(errMsg);
                    errMsg = "Internal Server Error";
                }
            }

            if (errMsg == "")
            {
                errMsg = mmgr.Add(obj_);
                if (!string.IsNullOrEmpty(errMsg))
                {
                    _logger.ERROR(errMsg);
                    errMsg = "Internal Server Error";
                }
            }

            return(Z_Result.SetResult(errMsg));
        }
Example #8
0
        private bool HasAccess(MMenu menu, IList <TPrivilege> privileges)
        {
            var hasAccess = privileges
                            .Where(e => e.MenuId.Equals(menu))
                            .FirstOrDefault();

            return(hasAccess != null ? true : false);
        }
Example #9
0
        protected MMenu AddMenu(string key, int defaultIndex, List <string> items, bool footerMenu)
        {
            MMenu mMenu = new MMenu(key, defaultIndex, items, footerMenu);

            myMapperTypes.Add(mMenu);

            return(mMenu);
        }
Example #10
0
    public override void SafeAwake()
    {
        UpKey          = AddKey(LanguageManager.Instance.CurrentLanguage.UpKey, "Up", KeyCode.U);
        DownKey        = AddKey(LanguageManager.Instance.CurrentLanguage.DownKey, "Down", KeyCode.J);
        BackKey        = AddKey(LanguageManager.Instance.CurrentLanguage.BackKey, "Back", KeyCode.K);
        ClutchKey      = AddKey(LanguageManager.Instance.CurrentLanguage.ClutchKey, "Clutch", KeyCode.C);
        ModelMenu      = AddMenu("Model", 0, LanguageManager.Instance.CurrentLanguage.Model);
        StrengthSlider = AddSlider(LanguageManager.Instance.CurrentLanguage.Strength, "Force", Strength, 0, 10f);
        RatioSlider    = AddSlider(LanguageManager.Instance.CurrentLanguage.Ratio, "Ratio", Ratio, 0f, 2f);

        ModelMenu.ValueChanged += (value) =>
        {
            Model = (model)ModelMenu.Value;
            DisplayInMapper();
        };
        StrengthSlider.ValueChanged += (value) => { Strength = value; };
        RatioSlider.ValueChanged    += (value) => { Ratio = value; };

        OutAxis = null;
        foreach (var go in GetComponentsInChildren <Transform>())
        {
            if (go.name == "OutAxis")
            {
                OutAxis = go.gameObject;
            }
        }

        if (OutAxis == null)
        {
            OutAxis      = GameObject.CreatePrimitive(PrimitiveType.Cylinder);
            OutAxis.name = "OutAxis";
            OutAxis.transform.SetParent(transform);
            OutAxis.transform.position         = transform.TransformPoint(transform.InverseTransformPoint(transform.position) + Vector3.forward * 0.75f);
            OutAxis.transform.rotation         = transform.rotation;
            OutAxis.transform.localEulerAngles = Vector3.right * 90f;
            OutAxis.transform.localScale       = Vector3.one * 0.2f;

            CJ_Axis                   = OutAxis.AddComponent <ConfigurableJoint>();
            CJ_Axis.axis              = Vector3.up; CJ_Axis.secondaryAxis = Vector3.right;
            CJ_Axis.connectedBody     = Rigidbody;
            CJ_Axis.angularYMotion    = CJ_Axis.angularZMotion = ConfigurableJointMotion.Locked;
            CJ_Axis.xMotion           = CJ_Axis.yMotion = CJ_Axis.zMotion = ConfigurableJointMotion.Locked;
            CJ_Axis.rotationDriveMode = RotationDriveMode.XYAndZ;

            AddPoint(OutAxis, Vector3.up * -1.25f, Vector3.right * 90f, true);
        }
        else
        {
            CJ_Axis = OutAxis.GetComponent <ConfigurableJoint>();
        }
        axisRigidbody             = OutAxis.GetComponent <Rigidbody>();
        axisRigidbody.isKinematic = true;

        CJ = GetComponent <ConfigurableJoint>();

        DisplayInMapper();
    }
Example #11
0
 /// <summary>
 /// 对象转化
 /// </summary>
 /// <param name="mMenu">MMenu</param>
 /// <returns>ZtreeMenu</returns>
 public static ZtreeMenu ToZtreeMenu(this MMenu mMenu)
 {
     return(new ZtreeMenu
     {
         id = mMenu.Id.ToString(),
         pId = mMenu.ParentId.ToString(),
         name = mMenu.Title
     });
 }
        public ActionResult DeleteConfirmed(int id)
        {
            MMenu mMenu = db.Menu.Find(id);

            db.Menu.Remove(mMenu);
            db.SaveChanges();
            Thongbao.set_flash("Đã xóa vĩnh viễn menu!", "success");
            return(RedirectToAction("Trash"));
        }
        public override void SafeAwake()
        {
            HardnessMenu = BB.AddMenu(LanguageManager.hardness, Hardness, WoodHardness, false);
            HardnessMenu.ValueChanged += (int value) => { Hardness = value; ChangedProperties(); };

#if DEBUG
            ConsoleController.ShowMessage("木头组件添加进阶属性");
#endif
        }
Example #14
0
        /// <summary>
        /// After Save.
        /// </summary>
        /// <param name="newRecord">new record</param>
        /// <param name="success">success</param>
        /// <returns>true if save complete (if not overwritten true)</returns>
        protected override bool AfterSave(bool newRecord, bool success)
        {
            log.Fine("Success=" + success);
            if (success && newRecord)
            {
                //	save all nodes -- Creating new Workflow
                MWFNode[] nodes = GetNodesInOrder(0);
                for (int i = 0; i < nodes.Length; i++)
                {
                    nodes[i].Save(Get_Trx());
                }
            }

            if (newRecord)
            {
                int             AD_Role_ID = GetCtx().GetAD_Role_ID();
                MWorkflowAccess wa         = new MWorkflowAccess(this, AD_Role_ID);
                wa.Save();
            }
            //	Menu/Workflow
            else if (Is_ValueChanged("IsActive") || Is_ValueChanged("Name") ||
                     Is_ValueChanged("Description") || Is_ValueChanged("Help"))
            {
                MMenu[] menues = MMenu.Get(GetCtx(), "AD_Workflow_ID=" + GetAD_Workflow_ID());
                for (int i = 0; i < menues.Length; i++)
                {
                    menues[i].SetIsActive(IsActive());
                    menues[i].SetName(GetName());
                    menues[i].SetDescription(GetDescription());
                    menues[i].Save();
                }
                X_AD_WF_Node[] nodes = MWindow.GetWFNodes(GetCtx(), "AD_Workflow_ID=" + GetAD_Workflow_ID());
                for (int i = 0; i < nodes.Length; i++)
                {
                    bool changed = false;
                    if (nodes[i].IsActive() != IsActive())
                    {
                        nodes[i].SetIsActive(IsActive());
                        changed = true;
                    }
                    if (nodes[i].IsCentrallyMaintained())
                    {
                        nodes[i].SetName(GetName());
                        nodes[i].SetDescription(GetDescription());
                        nodes[i].SetHelp(GetHelp());
                        changed = true;
                    }
                    if (changed)
                    {
                        nodes[i].Save();
                    }
                }
            }

            return(success);
        }
Example #15
0
 /// <summary>
 /// 对象转化
 /// </summary>
 /// <param name="mMenu">MMenu</param>
 /// <returns>EsayUIMenu</returns>
 public static EsayUIMenu ToEsayUIMenu(this MMenu mMenu)
 {
     return(new EsayUIMenu
     {
         MenuId = mMenu.Id,
         Icon = mMenu.Icon,
         MenuName = mMenu.Title,
         Url = mMenu.Url
     });
 }
 static MiscMenu()
 {
     MMenu.AddGroupLabel("Ek Ayarlar");
     _enableKS = MMenu.Add("KSEnabled", new CheckBox("Kullan KS"));
     _itemUsage = MMenu.Add("miscUseItems", new CheckBox("İtemleri Kullan OrmanTemizleme/LaneTemizleme"));
     MMenu.AddGroupLabel("Potion Manager");
     _enablePotion = MMenu.Add("Potion", new CheckBox("İksirleri Kullan"));
     _minHPPotion = MMenu.Add("minHPPotion", new Slider("Canım Şundan Az %", 60));
     _minMPPotion = MMenu.Add("minMPPotion", new Slider("Manam Şundan Az %", 20));
 }
Example #17
0
 /// <summary>
 /// 对象转化
 /// </summary>
 /// <param name="mMenu">MMenu</param>
 /// <returns>EsayUIMenu</returns>
 public static EsayUIMenu ToEsayUIMenu(this MMenu mMenu)
 {
     return(new EsayUIMenu
     {
         menuid = mMenu.Id,
         icon = mMenu.Icon,
         menuname = mMenu.Title,
         url = mMenu.Url
     });
 }
Example #18
0
 static MiscMenu()
 {
     MMenu.AddGroupLabel("Misc Options");
     _enableKS  = MMenu.Add("KSEnabled", new CheckBox("Use KS"));
     _itemUsage = MMenu.Add("miscUseItems", new CheckBox("Use Items JungleClear/LaneClear"));
     MMenu.AddGroupLabel("Potion Manager");
     _enablePotion = MMenu.Add("Potion", new CheckBox("Use Potions"));
     _minHPPotion  = MMenu.Add("minHPPotion", new Slider("Use at % Health", 60));
     _minMPPotion  = MMenu.Add("minMPPotion", new Slider("Use at % Mana", 20));
 }
Example #19
0
 static MiscMenu()
 {
     MMenu.AddGroupLabel("Misc Options");
     _RInterrupt = MMenu.Add("InterruptR", new CheckBox("Use R to interrupt"));
     _enableKSQ  = MMenu.Add("KSQ", new CheckBox("Enable KS Q"));
     _enableKSW  = MMenu.Add("KSW", new CheckBox("Enable KS W"));
     MMenu.AddGroupLabel("Potion Manager");
     _enablePotion = MMenu.Add("Potion", new CheckBox("Use Potions"));
     _minHPPotion  = MMenu.Add("minHPPotion", new Slider("Use at % Health", 60));
     _minMPPotion  = MMenu.Add("minMPPotion", new Slider("Use at % Mana", 20));
 }
Example #20
0
        void EnglishInitialize()
        {
            // Setup config window
            LaserEditModeMenu = AddMenu("laserEditMode", 0, new List <string>()
            {
                "Ability", "Misc."
            });
            //LaserAbilityModeMenu = AddMenu("laserAbilityMode", 0, new List<string>() { "Fire", "Kinetic", "Freeze", "Explosive", "Just Visual Effect" });
            LaserAbilityModeMenu = AddMenu("laserAbilityMode", 0, new List <string>()
            {
                "Fire", "Kinetic", "Not Available", "Explosive(N/A in MP)", "Visual Effects Only"
            });

            LaserColourSlider = AddColourSlider("Beam Colour", "laserColour", Color.red, true);

            LaserFocusSlider  = AddSlider("Laser Focus", "laserFocus", 1f, 0.08f, 0.5f);
            LaserLengthSlider = AddSlider("Laser Length", "laserLength", 200f, 0.1f, 1500);
            LaserSafetyRange  = AddSlider("Safety Length", "laserSafeLength", 1f, 0.1f, 1500);

            //LaserKineticUpDownSlider = AddSlider("Up/Down Force", "laserKinUpDown", 1f, -2.5f, 2.5f);
            LaserKineticInOutSlider = AddSlider("Force", "laserKinInOut", 0f, -2.5f, 2.5f);
            //LaserKineticSideSlider = AddSlider("Sideways Force", "laserKinSide", 0f, -2.5f, 2.5f);

            //LaserFastUpdateToggle = AddToggle("Fast Raycasting", "laserFastUpdate", false);
            LaserOnOffToggle  = AddToggle("Start On", "laserOnOffToggle", true);
            LightOptionToggle = AddToggle("Always Provide Light", "LightProbeToggle", false);
            LaserOnOffKey     = AddKey("On/Off", "laserOnOffKey", KeyCode.Y);

            LaserWidth = AddSlider("Laser Width", "laserWidth", 0.5f, 0.001f, 10f);

            PenetrativeLengthMultiplier = AddSlider("Penetrative Multiplier", "PeneMulty", 0, 0, 1);

            EffectActivateKey = AddKey("Charge Laser", "DoBomb", KeyCode.K);

            EffectKeyText1 = "Charge Laser";
            EffectKeyText2 = "Deploy Bomb";


            ShrinkEffectToggle = AddToggle("Use Charging Effect", "UseShrink", true);
            InvertShrinking    = AddToggle("Inverse Shrinking to Expanding", "InverseShrink", false);
            ChargeHoldGasp     = AddSlider("Charging Countdown", "CountDown", 2.3f, 0, 10f);

            EffectParticleChargingPosition = AddMenu("ChargePosition", 0, new List <string> {
                "Both block and target", "Only Block have particles", "Only target have particles", "None"
            });

            HoldingToEmit = AddToggle("Only emit laser when holding", "HoldOnly", false);

            UseLegacy   = AddToggle("Use Legacy Rending", "Legacy", true);
            UseNotTrans = AddToggle("Nontransparent", "NonTran", false);

            // register mode switching functions with menu delegates
            LaserAbilityModeMenu.ValueChanged += CycleAbilityMode;
        }
Example #21
0
 public override void SafeAwake()
 {
     activateKey = AddKey("Activate", "activate", KeyCode.B);
     triggerMode = AddMenu("triggerMode", 0, new List <string>()
     {
         "Trigger: Press",
         "Trigger: Release"
     });
     configureToggle          = AddToggle("Configure", "configure", false);
     configureToggle.Toggled += Toggled;
 }
 static MiscMenu()
 {
     MMenu.AddGroupLabel("Ek Options");
     _RInterrupt = MMenu.Add("InterruptR", new CheckBox("İnterrupt için R"));
     _enableKSQ  = MMenu.Add("KSQ", new CheckBox("KS'de Q Kullan"));
     _enableKSW  = MMenu.Add("KSW", new CheckBox("KS'de W Kullan"));
     MMenu.AddGroupLabel("Potion Manager");
     _enablePotion = MMenu.Add("Potion", new CheckBox("İksirleri Kullan"));
     _minHPPotion  = MMenu.Add("minHPPotion", new Slider("Canım Şundan Az %", 60));
     _minMPPotion  = MMenu.Add("minMPPotion", new Slider("Manam Şundan Az %", 20));
 }
Example #23
0
                static MiscMenu()
                {
                    MMenu.AddGroupLabel("Misc Options");
                    _enableKSQ = MMenu.Add("KSQ", new CheckBox("Use [Q] on Killable"));
                    _smartW    = MMenu.Add("smartW", new CheckBox("Automatic disable [W] (Smart)"));
                    _WSdelay   = MMenu.Add("WSdelay", new Slider("Smart [W] Delay (ms)", 0, 0, 500));


                    MMenu.AddGroupLabel("Potion Manager");
                    _enablePotion = MMenu.Add("Potion", new CheckBox("Use Potions"));
                    _minHPPotion  = MMenu.Add("minHPPotion", new Slider("Use at % Health", 60));
                }
        public override void SafeAwake()
        {
            Key1 = AddKey("Spawn block",             //按键信息
                          "Spawn",                   //名字
                          KeyCode.V);                //默认按键

            List <string> list = new List <string>();

            foreach (var pair in PrefabMaster.BlockPrefabs)
            {
                list.Add(pair.Value.name);
            }
            模块ID = AddMenu("Block", 0, list);
            模块ID.ValueChanged += (v) => {
                blockModified = true;
            };

            modifyBlock          = AddToggle("Modify Spawned Block", "modifySpawnedBlock", false);
            modifyBlock.Toggled += (b) => {
                if (b)
                {
                    if (blockModified)
                    {
                        SpawnChild();
                    }
                    modifyBlock.IsActive = false;
                    BlockMapper.Open(blockToSpawn);
                }
            };

            生成间隔 = AddSlider("Spawn Frequency",               //滑条信息
                             "Freq",                          //名字
                             0.25f,                           //默认值
                             0f,                              //最小值
                             10f);                            //最大值

            生成大小 = AddSlider("Block Scale",                   //滑条信息
                             "Scale",                         //名字
                             1f,                              //默认值
                             0.01f,                           //最小值
                             100f);                           //最大值

            继承速度 = AddToggle("Inherit My Velocity",           //toggle信息
                             "IMV",                           //名字
                             true);                           //默认状态
            FunnyMode = AddToggle("Funny Mode",               //toggle信息
                                  "FMD",                      //名字
                                  false);                     //默认状态
            FunnyMode.Toggled += (t) => {
                blockModified = true;
                modifyBlock.DisplayInMapper = !t;
            };
        }
Example #25
0
 static MiscMenu()
 {
     MMenu.AddGroupLabel("Misc Options");
     _igniteks = MMenu.Add("ksignite", new CheckBox("Use Ignite to KS"));
     _ksq      = MMenu.Add("ksq", new CheckBox("Use Q to KS"));
     _ksw      = MMenu.Add("ksw", new CheckBox("Use W to KS"));
     _kse      = MMenu.Add("kse", new CheckBox("Use E to KS"));
     MMenu.AddGroupLabel("Potion Manager");
     _enablePotion = MMenu.Add("Potion", new CheckBox("Use Potions"));
     _minHPPotion  = MMenu.Add("minHPPotion", new Slider("Use at % Health", 60));
     _minMPPotion  = MMenu.Add("minMPPotion", new Slider("Use at % Mana", 20));
 }
 static MiscMenu()
 {
     MMenu.AddGroupLabel("Ek");
     _igniteks = MMenu.Add("ksignite", new CheckBox("KS'de Tutuştur Kullan"));
     _ksq      = MMenu.Add("ksq", new CheckBox("KS'de Q Kullan"));
     _ksw      = MMenu.Add("ksw", new CheckBox("KS'de W Kullan"));
     _kse      = MMenu.Add("kse", new CheckBox("KS'de E Kullan"));
     MMenu.AddGroupLabel("İksir Yardımcısı");
     _enablePotion = MMenu.Add("Potion", new CheckBox("İksirleri Kullan"));
     _minHPPotion  = MMenu.Add("minHPPotion", new Slider("Canım Şundan Az %", 60));
     _minMPPotion  = MMenu.Add("minMPPotion", new Slider("Manam Şundan Az %", 20));
 }
Example #27
0
        public override void SafeAwake()
        {
            HardnessMenu = BB.AddMenu(LanguageManager.hardness, Hardness, MetalHardness, false);
            HardnessMenu.ValueChanged += (value) => { Hardness = value; ChangedProperties(); };

            LimitSlider = BB.AddSlider(LanguageManager.limit, "Limit", Limit, 0, orginLimit);
            LimitSlider.ValueChanged += (value) => { Limit = value; ChangedProperties(); };

#if DEBUG
            ConsoleController.ShowMessage("活塞添加进阶属性");
#endif
        }
Example #28
0
        public static void CreateMenu()
        {
            Menu = MainMenu.AddMenu("PureTrundle", "Menu");
            Menu.AddGroupLabel("PureTrundle By Darakath");

            CMenu = Menu.AddSubMenu("Combo", "cMenu");
            CMenu.Add("W", new CheckBox("Use W"));
            CMenu.AddSeparator();
            CMenu.Add("E", new CheckBox("Use E"));
            CMenu.AddSeparator();
            CMenu.Add("R", new CheckBox("Use R"));
            CMenu.AddSeparator();
            CMenu.Add("BC", new CheckBox("Use Botrk/Cutlass"));
            CMenu.AddSeparator();
            CMenu.Add("TH", new CheckBox("Use Tiamat/Hydra"));

            HMenu = Menu.AddSubMenu("Harass", "hMenu");
            HMenu.Add("W", new CheckBox("Use W"));
            HMenu.AddSeparator();
            HMenu.Add("E", new CheckBox("Use E"));
            HMenu.AddSeparator();
            HMenu.Add("TH", new CheckBox("Use Tiamat/Hydra"));

            WMenu = Menu.AddSubMenu("Wave/Jungle Clear", "wMenu");
            WMenu.Add("QW", new CheckBox("Use Q for WaveClear", false));
            WMenu.AddSeparator();
            WMenu.Add("QJ", new CheckBox("Use Q for JungleClear", false));
            WMenu.AddSeparator();
            WMenu.Add("WW", new CheckBox("Use W for WaveClear", false));
            WMenu.AddSeparator();
            WMenu.Add("WJ", new CheckBox("Use W for JungleClear", false));
            WMenu.AddSeparator();
            WMenu.Add("TH", new CheckBox("Use Tiamat/Hydra"));

            MMenu = Menu.AddSubMenu("Mana", "mMenu");
            MMenu.Add("Q", new Slider("Mana for Q"));
            MMenu.Add("W", new Slider("Mana for W"));
            MMenu.Add("E", new Slider("Mana for E"));
            MMenu.Add("R", new Slider("Mana for R"));
            Menu.AddSeparator();
            MMenu.Add("WC", new Slider("Mana for WaveClear"));
            MMenu.Add("JF", new Slider("Mana for JungleFarm"));
            MMenu.Add("H", new Slider("Mana for Harass"));

            DMenu = Menu.AddSubMenu("Drawings", "dMenu");
            DMenu.Add("W", new CheckBox("Draw W Range", false));
            DMenu.Add("E", new CheckBox("Draw E Range", false));
            DMenu.Add("R", new CheckBox("Draw R Range"));
            DMenu.Add("RD", new CheckBox("HP Bar Indicator (Q+R+AA+Items)"));

            OMenu = Menu.AddSubMenu("Other", "oMenu");
            OMenu.Add("GC", new CheckBox("Auto Anti-GapCloser", false));
        }
Example #29
0
        public override void SafeAwake()
        {
            HardnessMenu = BB.AddMenu(LanguageManager.hardness, Hardness, WoodHardness, false);
            HardnessMenu.ValueChanged += (int value) => { Hardness = value; ChangedProperties(); };

            FrictionSlider = BB.AddSlider(LanguageManager.friction, "Friction", Friction, 0f, 1000f);
            FrictionSlider.ValueChanged += (float value) => { Friction = Mathf.Abs(value); ChangedProperties(); };


#if DEBUG
            ConsoleController.ShowMessage("摩擦垫添加进阶属性");
#endif
        }
Example #30
0
 static MiscMenu()
 {
     MMenu.AddGroupLabel("Misc Options");
     _rKS        = MMenu.Add("ksR", new CheckBox("Use R to KS"));
     _qKS        = MMenu.Add("ksQ", new CheckBox("Use Q to KS"));
     _qInterrupt = MMenu.Add("InterruptQ", new CheckBox("Use Q to Interrupt"));
     _qGapclose  = MMenu.Add("GapcloseQ", new CheckBox("Use Q on enemy gapcloser"));
     _turnoffR   = MMenu.Add("miscturnoffR", new CheckBox("Turn off R if no enemies in R range always?"));
     MMenu.AddGroupLabel("Potion Manager");
     _enablePotion = MMenu.Add("Potion", new CheckBox("Use Potions"));
     _minHPPotion  = MMenu.Add("minHPPotion", new Slider("Use at % Health", 60));
     _minMPPotion  = MMenu.Add("minMPPotion", new Slider("Use at % Mana", 20));
 }
        public override void SafeAwake()
        {
            Key1 = AddKey("Spawn block", //按键信息
                                 "Spawn",           //名字
                                 KeyCode.V);       //默认按键

            List<string> list = new List<string>();
            foreach (BlockPrefab pair in PrefabMaster.BlockPrefabs.Values)
            {
                list.Add(pair.gameObject.GetComponent<MyBlockInfo>().blockName);
                对应的IDs.Add(pair.ID);
            }
            模块ID = AddMenu("Block", 0, list);
            模块ID.ValueChanged += IDChanged;

            modifyBlock = AddToggle("Modify Spawned Block", "modifySpawnedBlock", false);
            modifyBlock.Toggled += (b) => {
                if (b)
                {
                    SpawnChild();
                    modifyBlock.IsActive = false;
                    BlockMapper.Open(blockToSpawn);
                }
            };

            生成间隔 = AddSlider("Spawn Frequency",       //滑条信息
                                    "Freq",       //名字
                                   0.25f,            //默认值
                                    0f,          //最小值
                                    10f);           //最大值

            生成大小 = AddSlider("Block Scale",       //滑条信息
                                    "Scale",       //名字
                                    1f,            //默认值
                                    0.01f,          //最小值
                                    100f);           //最大值

            继承速度 = AddToggle("Inherit My Velocity",   //toggle信息
                                       "IMV",       //名字
                                       true);             //默认状态
            FunnyMode = AddToggle("Funny Mode",   //toggle信息
                                       "FMD",       //名字
                                       false);             //默认状态
            FunnyMode.Toggled += (t) => {
                modifyBlock.DisplayInMapper = !t;
            };
        }
        public override void SafeAwake()
        {
            引爆 = AddKey("Detonated", //按键信息
                                 "Deto",           //名字
                                 KeyCode.K);       //默认按键

            保险 = AddKey("Safety", //按键信息
                                 "Safe",           //名字
                                 KeyCode.Alpha1);       //默认按键

            延迟 = AddSlider("Collision Explosion Delay",       //滑条信息
                                    "Delay",       //名字
                                    0.2f,            //默认值
                                    0f,          //最小值
                                    10f);           //最大值
            模式 = AddMenu("Modes", 0, new List<string>() { "Bomb", "Motion Stopper", "DestroyImmediate" });
        }