private SkillGUI(SkillEnabled buttonsEnabled, IGUIMessages receiver) { buttonRow[0] = SkillButtonGUI.CreateShoot(); buttonRow[1] = SkillButtonGUI.CreateBuild(); buttonRow[2] = SkillButtonGUI.CreateSilence(); buttonRow[3] = SkillButtonGUI.CreateSkillCap(); textRow[0] = SkillAmountGUI.CreateShoot(); textRow[1] = SkillAmountGUI.CreateBuild(); textRow[2] = SkillAmountGUI.CreateSilence(); textRow[3] = SkillAmountGUI.CreateSkillCap(); descriptions[0] = new SkillDescription(TowerType.shoot); descriptions[0].position = new Rect(0,0,300,200); descriptions[1] = new SkillDescription(TowerType.build); descriptions[1].position = new Rect(0,0,300,200); descriptions[2] = new SkillDescription(TowerType.silence); descriptions[2].position = new Rect(0,0,300,200); descriptions[3] = new SkillDescription(TowerType.skillCap); descriptions[3].position = new Rect(0,0,300,200); SetSkillButtons(buttonsEnabled); this.receiver = receiver; }
private SkillGUI() { buttonRow[0] = SkillButtonGUI.CreateShoot(); buttonRow[1] = SkillButtonGUI.CreateBuild(); buttonRow[2] = SkillButtonGUI.CreateSilence(); buttonRow[3] = SkillButtonGUI.CreateSkillCap(); textRow[0] = SkillAmountGUI.CreateShoot(); textRow[1] = SkillAmountGUI.CreateBuild(); textRow[2] = SkillAmountGUI.CreateSilence(); textRow[3] = SkillAmountGUI.CreateSkillCap(); descriptions[0] = new SkillDescription(TowerType.shoot); descriptions[0].position = new Rect(0,0,300,200); descriptions[1] = new SkillDescription(TowerType.build); descriptions[1].position = new Rect(0,0,300,200); descriptions[2] = new SkillDescription(TowerType.silence); descriptions[2].position = new Rect(0,0,300,200); descriptions[3] = new SkillDescription(TowerType.skillCap); descriptions[3].position = new Rect(0,0,300,200); for(int i=0;i<4;i++){ skillEn[i] = true; } }
public SkillData(SkillDescription description) { SkillId = description.SkillId; TargetType = description.TargetType; Description = description.Description; DamageDescription = description.DamageDescription; BaseCD = description.BaseCD; }
public Skill() { grade = 1; //level.current = 1; learned = true; this.level = new CurrentMaxi(0, 20); description = new SkillDescription(); icon = new Texture2D(0, 0); }
static SkillInfo() { foreach (var row in sheet) { if (row.id == -1) { continue; } if (row.charClass != null) { row._iconSpritesheetFilename = @"data\global\ui\spells\" + row.charClass.Substring(0, 2) + "Skillicon"; } else { row._iconSpritesheetFilename = @"data\global\ui\spells\Skillicon"; } row.castOverlay = OverlayInfo.Find(row.castOverlayId); row.startSound = SoundInfo.Find(row._stsound); row._description = SkillDescription.Find(row.skillDescId); if (row._description != null) { row.name = Translation.Find(row._description.strName); row.shortDescription = Translation.Find(row._description.strShort); row.longDescription = Translation.Find(row._description.strLong); row.shortName = Translation.Find(row._description.strAlt); } else { row.name = row.skill; } if (row._range == "none") { row.range = Range.NoRestrictions; } else if (row._range == "h2h") { row.range = Range.Melee; } else if (row._range == "rng") { row.range = Range.Ranged; } else if (row._range == "both") { row.range = Range.Both; } else { throw new System.Exception("Unknown skill range " + row._range); } map.Add(row.skill, row); idMap.Add(row.id, row); } Attack = Find("Attack"); }
public InfoWindow() { skillDescriptions[0] = new SkillDescription(TowerType.shoot); skillDescriptions[0].position = new Rect(0,position.height/2,position.width,position.height/2); skillDescriptions[1] = new SkillDescription(TowerType.build); skillDescriptions[1].position = new Rect(0,position.height/2,position.width,position.height/2); skillDescriptions[2] = new SkillDescription(TowerType.silence); skillDescriptions[2].position = new Rect(0,position.height/2,position.width,position.height/2); skillDescriptions[3] = new SkillDescription(TowerType.skillCap); skillDescriptions[3].position = new Rect(0,position.height/2,position.width,position.height/2); }
public static string SkillToString(SkillDescription desc) { string subrank = desc.Rank.ToLower().Replace(" ", string.Empty).Substring(0, 5); return ("<li class='" + desc.Category + " " + subrank + "' title='" + desc.Token + " | " + desc.Rank + " | " + desc.Points + "'>" + desc.Rank + " " + desc.Name + "</li>"); }
public IEnumerable <SkillTree> GetSkills() => WZ.BasePackage.MainDirectory .ResolveOutlink("Etc/SkillSelect").Children.Select(c => new SkillTree() { JobId = int.Parse(c.NameWithoutExtension), Description = SkillDescription.Parse(c.ResolveOutlink($"String/Skill/{c.NameWithoutExtension}")), Skills = c.Children .Select(a => a.ResolveFor <int>()) .Where(a => a != null) .Select(a => a.Value) .Select(a => SkillDescription.Parse(c.ResolveOutlink($"String/Skill/{a}"))).ToArray() });
public static void LoadAll() { var sw = System.Diagnostics.Stopwatch.StartNew(); Translation.Load(); SoundInfo.Load(); SoundEnvironment.Load(); ObjectInfo.Load(); BodyLoc.Load(); ExpTable.Load(); LevelType.Load(); LevelWarpInfo.Load(); LevelPreset.Load(); LevelMazeInfo.Load(); LevelInfo.Load(); OverlayInfo.Load(); MissileInfo.Load(); ItemStat.Load(); ItemRatio.Load(); ItemType.Load(); ItemPropertyInfo.Load(); ItemSet.Load(); UniqueItem.Load(); SetItem.Load(); TreasureClass.Load(); MagicAffix.Load(); CharStatsInfo.Load(); MonLvl.Load(); MonPreset.Load(); MonSound.Load(); MonStatsExtended.Load(); MonStat.Load(); SuperUnique.Load(); SkillDescription.Load(); SkillInfo.Load(); SpawnPreset.Load(); StateInfo.Load(); Debug.Log("All txt files loaded in " + sw.ElapsedMilliseconds + " ms"); }
void Awake() { current = this; }
// Use this for initialization void Start () { current = this; }
public SkillDescription GetSkillDescription(int id) => SkillDescription.Parse(WZ.Resolve($"String/Skill/{id}"));
void Awake() { current = this; }
// Use this for initialization void Start() { current = this; }
internal void AddSkill() { //Click on ShareSkill Tab SkillTab.Click(); //Populate the Excel Sheet GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "ShareSkill"); Thread.Sleep(1000); //Add in ShareSkill Title SkillTitle.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Title")); Assert.That(SkillTitle != null); //Add in ShareSkill Discription SkillDescription.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Description")); Assert.That(SkillDescription != null); //Click on ShareSkill Category SkillCategory.Click(); //Select Category SkillCategory.SendKeys(Keys.ArrowDown + Keys.ArrowDown + Keys.Enter); //Click on ShareSkill SubCategory SkillSubCategory.Click(); //Select SubCategory SkillSubCategory.SendKeys(Keys.ArrowDown + Keys.ArrowDown + Keys.Enter); for (int i = 1; i < 3; i++) { //Click on ShareSkill Tag SkillTag.Click(); if (i == 1) { //Add in Tag1 Thread.Sleep(1000); SkillTag.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Tag1") + Keys.Enter); } else { //Add in Tag2 Thread.Sleep(1000); SkillTag.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Tag2") + Keys.Enter); } } //Click on redio button [One-off service] ServiceType.Click(); //Click on redio button [On-site] LocationType.Click(); //Add Start Date StartDate.SendKeys("08/11/2019"); //Add End Date EndDate.SendKeys("09/11/2019"); //Tick on weekdays checkbox, Add Start time and End time for (int i = 1; i <= 7; i++) { Thread.Sleep(1000); GlobalDefinitions.driver.FindElement(By.XPath("(//INPUT[@tabindex='0'])[" + (i + 4) + "]")).Click(); Thread.Sleep(1000); GlobalDefinitions.driver.FindElement(By.XPath("(//INPUT[@name='StartTime'])[" + i + "]")).SendKeys("10:00AM"); Thread.Sleep(1000); GlobalDefinitions.driver.FindElement(By.XPath("(//INPUT[@name='EndTime'])[" + i + "]")).SendKeys("08:00PM"); } //Click on Skill Trade [Credit] SkillTrade.Click(); //Add value in Credit Credit.SendKeys("6"); //Upload File using AutoIT UploadBtn.Click(); AutoItX3 autoIt = new AutoItX3(); autoIt.WinActivate("Open"); Thread.Sleep(1000); autoIt.Send(@"C:\Users\nilay\Documents\Richa 2019\Richa Vyas-Test Analyst.pdf"); Thread.Sleep(1000); autoIt.Send("{ENTER}"); //Click on Active [Active] Active.Click(); //Click on Save Button SaveBtn.Click(); }
/// <summary> /// Saves the skill. /// </summary> /// <returns>Skill object</returns> public Skill SaveSkill() { SqlDataReader result; DatabaseConnection dbconn = new DatabaseConnection(); SqlCommand command = new SqlCommand(); SqlConnection connection = new SqlConnection(dbconn.SQLSEVERConnString); try { connection.Open(); command.Connection = connection; command.CommandType = CommandType.StoredProcedure; command.CommandText = "InsertUpdate_Skill"; command.Parameters.Add(dbconn.GenerateParameterObj("@SkillID", SqlDbType.Int, SkillID.ToString(), 0)); command.Parameters.Add(dbconn.GenerateParameterObj("@SkillName", SqlDbType.VarChar, SkillName.ToString(), 100)); command.Parameters.Add(dbconn.GenerateParameterObj("@SkillDescription", SqlDbType.VarChar, SkillDescription.ToString(), 1000)); command.Parameters.Add(dbconn.GenerateParameterObj("@AbilityID", SqlDbType.Int, AbilityID.ToString(), 0)); command.Parameters.Add(dbconn.GenerateParameterObj("@TrainedSkill", SqlDbType.Bit, TrainedSkill.ToString(), 0)); command.Parameters.Add(dbconn.GenerateParameterObj("@SkillTrainingFeatID", SqlDbType.Int, SkillTrainingFeatID.ToString(), 0)); command.Parameters.Add(dbconn.GenerateParameterObj("@AmorProfAffected", SqlDbType.Bit, AmorProfAffected.ToString(), 0)); result = command.ExecuteReader(); result.Read(); SetReaderToObject(ref result); } catch { Exception e = new Exception(); this._insertUpdateOK = false; this._insertUpdateMessage.Append(e.Message + " Inner Exception= " + e.InnerException); throw e; } finally { command.Dispose(); connection.Close(); } return(this); }