static void LoadDefaultSettingsQ() { string[] str = new string[1000 / 250]; for (var i = 250; i <= 1000; i += 250) { str[i / 250 - 1] = i + " ms. "; } MenuSettingQ.Item("Settings.Q.VisibleDelay").SetValue(new StringList(str, 0)); MenuSettingQ.Item("Settings.Q.CastDelay").SetValue(new StringList(str, 0)); }
static void LoadDefaultSettingsQ() { string[] strQ = new string[1000 / 250]; //for (var i = 250; i <= 1000; i += 250) //{ // str[i / 250 - 1] = i + " ms. "; //} for (float i = 250; i <= 1000; i += 250) { strQ[(int)(i / 250 - 1)] = (i / 100) + " sec. "; } MenuSettingQ.Item("Settings.SpellCast.VisibleDelay").SetValue(new StringList(strQ, 2)); //MenuSettingQ.Item("Settings.SpellCast.Clone").SetValue(new StringList(new[] {"Off", "Cast Q", "Cast W", "Cast E"}, 3)); }