public string GetSpriteFromJob(ReadableTuple <int> tuple, PreviewHelper helper) { if (helper.PreviewSprite == PreviewHelper.SpriteNone) { return(helper.PreviewSprite); } return(LuaHelper.GetSpriteFromJob(helper.Grf, helper.Job, helper, helper.PreviewSprite, LuaHelper.ViewIdTypes.Headgear) + ".act"); }
public string GetSpriteFromJob(ReadableTuple <int> tuple, PreviewHelper helper) { var name = LuaHelper.GetSpriteFromJob(helper.Grf, null, helper, helper.PreviewSprite, LuaHelper.ViewIdTypes.Npc); if (name.EndsWith(".gr2")) { return(name); } return(name + ".act"); }
public void Read(ReadableTuple <int> tuple, PreviewHelper helper, List <Job> jobs) { helper.PreviewSprite = LuaHelper.GetSpriteFromViewId(tuple.GetIntNoThrow(ServerItemAttributes.ClassNumber), LuaHelper.ViewIdTypes.Weapon, helper.Db, tuple); if (helper.PreviewSprite == null) { helper.SetError(PreviewHelper.ViewIdNotSet); return; } helper.SetJobs(jobs); }
public void Read(ReadableTuple <int> tuple, PreviewHelper helper, List <Job> jobs) { helper.PreviewSprite = LuaHelper.GetSpriteFromViewId(helper.ViewId, LuaHelper.ViewIdTypes.Npc, helper.Db, tuple); if (helper.PreviewSprite == null) { helper.SetError(PreviewHelper.ViewIdNotSet); return; } helper.SetJobs(new List <Job>()); }
public string GetSpriteFromJob(ReadableTuple <int> tuple, PreviewHelper helper) { return(LuaHelper.GetSpriteFromJob(helper.Grf, helper.Job, helper, helper.PreviewSprite, LuaHelper.ViewIdTypes.Shield) + ".act"); }
public string GetSpriteFromJob(ReadableTuple <int> tuple, PreviewHelper helper) { return(PreviewHelper.SpriteNone); }
public void Read(ReadableTuple <int> tuple, PreviewHelper helper, List <Job> jobs) { helper.SetError("Item type not supported."); }