private void LoadSprites() { foreach (var ally in allies) { ally.Value.SpriteName = SpriteHelper.DownloadImageRiot(ally.Key.ChampionName, SpriteHelper.ChampionType.Champion, SpriteHelper.DownloadType.Champion, "SPI"); } }
void LoadSprites() { foreach (var enemy in _enemies) { enemy.Value.Name = SpriteHelper.DownloadImageRiot(enemy.Key.ChampionName, SpriteHelper.ChampionType.Champion, SpriteHelper.DownloadType.Champion, "UIM"); } }
private static void LoadSpritesAsync() { for (int i = 0; i < ChampSkinGUI.ChampSkins.Length; i++) { ChampSkinGUI.ChampSkins[i].PicName = SpriteHelper.DownloadImageRiot(ObjectManager.Player.ChampionName, SpriteHelper.ChampionType.ChampionSkin, SpriteHelper.DownloadType.ChampionSkinSmall, "SkinChanger\\Loading", i); ChampSkinGUI.ChampSkins[i].PicName = SpriteHelper.DownloadImageRiot(ObjectManager.Player.ChampionName, SpriteHelper.ChampionType.ChampionSkin, SpriteHelper.DownloadType.ChampionSkinBig, "SkinChanger\\Splash", i); } }
void LoadSprites() { //RafLoader.InitLoader(); foreach (var enemy in _enemies) { SpriteHelper.DownloadImageRiot(enemy.Key.ChampionName, SpriteHelper.DownloadType.Champion, "UIM"); } }
private static void LoadSpritesAsync() { for (int i = 0; i < ChampSkinGUI.ChampSkins.Length; i++) { SpriteHelper.DownloadImageRiot(ObjectManager.Player.ChampionName, SpriteHelper.ChampionType.ChampionSkin, SpriteHelper.DownloadType.ChampionSkinSmall, "SkinChanger\\Loading", i); ChampSkinGUI.ChampSkins[i].PicName = SpriteHelper.DownloadImageRiot(ObjectManager.Player.ChampionName, SpriteHelper.ChampionType.ChampionSkin, SpriteHelper.DownloadType.ChampionSkinBig, "SkinChanger\\Splash", i); ChampSkinGUI.ChampSkins[i].SpriteInfoSmall = new SpriteHelper.SpriteInfo(); ChampSkinGUI.ChampSkins[i].SpriteInfoSmall.Bitmap = SpriteHelper.SpecialBitmap.ResizeBitmap(SpriteHelper.SpecialBitmap.LoadBitmap(ChampSkinGUI.ChampSkins[i].PicName, @"SkinChanger\\Loading"), 0.4f); ChampSkinGUI.ChampSkins[i].SpriteInfoBig = new SpriteHelper.SpriteInfo(); ChampSkinGUI.ChampSkins[i].SpriteInfoBig.Bitmap = SpriteHelper.SpecialBitmap.ResizeBitmap(SpriteHelper.SpecialBitmap.LoadBitmap(ChampSkinGUI.ChampSkins[i].PicName, @"SkinChanger\\Splash"), 0.7f); ChampSkinGUI.ChampSkins[i].FinishedLoading = true; } }