// Token: 0x06000B49 RID: 2889 RVA: 0x00105728 File Offset: 0x00103928 public MapTileLevel(Transform realmGroup, UISpritesArray tileSprites) { this.LevelSprite = new Sprite[25]; for (int i = 0; i < this.LevelSprite.Length; i++) { this.LevelSprite[i] = tileSprites.GetSprite(i + 113); } this.DarkLevelSprite = new Sprite[5]; for (int j = 0; j < this.DarkLevelSprite.Length; j++) { this.DarkLevelSprite[j] = tileSprites.GetSprite(j + 256); } GameObject gameObject = new GameObject("MapTileLevel"); this.LevelLayout = gameObject.transform; this.LevelLayout.position = Vector3.forward * 3968f; this.LevelLayout.SetParent(realmGroup, false); this.poolsCounter = 0; }
// Token: 0x0600159A RID: 5530 RVA: 0x0024E04C File Offset: 0x0024C24C public ManorMissionKind(Transform transform, eUIMissionKind Kind, UISpritesArray SpriteArray) : base(transform) { this.Kind = Kind; this.transform = transform; this.TitleText = transform.GetChild(0).GetComponent <UIText>(); this.TitleText.text = DataManager.Instance.mStringTable.GetStringByID((uint)(1533 + Kind)); this.MissionSlot = new _MissionSlot[ManorAimMission.MaxSlot]; Image component = transform.GetComponent <Image>(); component.sprite = SpriteArray.GetSprite(1); for (int i = 0; i < ManorAimMission.MaxSlot; i++) { this.MissionSlot[i] = new _MissionSlot(); this.MissionSlot[i].Init(transform.GetChild(1 + i), this); this.MissionSlot[i].Reward.gameObject.SetActive(false); this.ItemBtn[i] = this.MissionSlot[i].ItemBtn; this.ItemBtn[i].m_BtnID4 = i; component = this.MissionSlot[i].transform.GetComponent <Image>(); component.sprite = SpriteArray.GetSprite(3); } this.MissionData = DataManager.MissionDataManager.UIManorAimKind[(int)((byte)Kind)]; this.MissionIDs = new ushort[ManorAimMission.MaxSlot]; }
// Token: 0x06000C89 RID: 3209 RVA: 0x00125B90 File Offset: 0x00123D90 public WorldMapYolk(Transform totalityGroup, UISpritesArray tileSprites) { this.YolkSprite = new Sprite[50]; for (int i = 0; i < this.YolkSprite.Length; i++) { this.YolkSprite[i] = tileSprites.GetSprite(10 + i); } GameObject gameObject = new GameObject("MapTileYolk"); this.YolkLayout = gameObject.transform; this.YolkLayout.position = Vector3.forward * 1920f; this.YolkLayout.SetParent(totalityGroup, false); this.poolsCounter = 0; this.sheepTickImage = new WorldMapImage[16]; this.wolfTickImage = new WorldMapImage[16]; }
// Token: 0x06000C74 RID: 3188 RVA: 0x00122A60 File Offset: 0x00120C60 public WorldMapName(Transform totalityGroup, UISpritesArray tileSprites) { GameObject gameObject = new GameObject("WorldMapNameName"); this.BloodNameLayout = gameObject.transform; this.BloodNameLayout.position = Vector3.forward * 1664f; this.BloodNameLayout.SetParent(totalityGroup, false); Color color = new Color(0f, 0f, 0f, 0.3f); this.NameTex = new Texture2D(2, 2); for (int i = 0; i < this.NameTex.height; i++) { for (int j = 0; j < this.NameTex.width; j++) { this.NameTex.SetPixel(j, i, color); } } this.NameTex.Apply(); this.NameSprite = Sprite.Create(this.NameTex, new Rect(0f, 0f, 2f, 2f), new Vector2(0.5f, 0.5f)); this.PointPoolsCounter = 0; this.myPosSprite = tileSprites.GetSprite(0); this.myPosMaterial = new Material(tileSprites.m_Image.material); this.myPosMaterial.renderQueue = 2800; }
// Token: 0x06000C6D RID: 3181 RVA: 0x001202FC File Offset: 0x0011E4FC public WorldMapGraphic(Transform totalityGroup, UISpritesArray tileSprites) { this.WorldMapSprites[0] = tileSprites.GetSprite(1); this.WorldMapSprites[1] = tileSprites.GetSprite(9); this.WorldMapSprites[3] = tileSprites.GetSprite(101); int num = 60; for (int i = 4; i < this.WorldMapSprites.Length - 2; i++) { this.WorldMapSprites[i] = tileSprites.GetSprite(num); num++; } this.WorldMapSprites[44] = tileSprites.GetSprite(102); this.WorldMapSprites[45] = tileSprites.GetSprite(103); this.GraphicSpriteMaterial = new Material(tileSprites.m_Image.material); this.GraphicSpriteMaterial.renderQueue = 2750; GameObject gameObject = new GameObject("WorldMapGraphic"); this.GraphicLayout = gameObject.transform; this.GraphicLayout.position = Vector3.forward * 1536f; this.GraphicLayout.SetParent(totalityGroup, false); gameObject = new GameObject("G1"); this.G1 = gameObject.transform; this.G1.SetParent(this.GraphicLayout, false); gameObject = new GameObject("G2"); this.G2 = gameObject.transform; this.G2.SetParent(this.GraphicLayout, false); gameObject = new GameObject("G3"); this.G3 = gameObject.transform; this.G3.SetParent(this.GraphicLayout, false); this.kindomYolkHeight = new float[tileSprites.m_Sprites.Length - 10]; for (int j = 0; j < this.kindomYolkHeight.Length; j++) { this.kindomYolkHeight[j] = tileSprites.GetSprite(j + 10).rect.size.y; } }
// Token: 0x06000BB3 RID: 2995 RVA: 0x0010E70C File Offset: 0x0010C90C public MapTileSelect(Transform realmGroup, UISpritesArray tileSprites) { if (this.FBSABKey == 0) { this.FBSAB = AssetManager.GetAssetBundle("UI/FootBallSprites", out this.FBSABKey, false); this.mFBS = (UnityEngine.Object.Instantiate(this.FBSAB.mainAsset) as GameObject); this.FBSprites = this.mFBS.GetComponent <UISpritesArray>(); Image component = this.mFBS.GetComponent <Image>(); this.mFootBall[0] = new Vector2(0f, 128f); this.mFootBall[1] = new Vector2(128f, 64f); this.mFootBall[2] = new Vector2(256f, 0f); this.mFootBall[3] = new Vector2(128f, -64f); this.mFootBall[4] = new Vector2(0f, -128f); this.mFootBall[5] = new Vector2(-128f, -64f); this.mFootBall[6] = new Vector2(-256f, 0f); this.mFootBall[7] = new Vector2(-128f, 64f); this.FootBallGameObject = new GameObject("MapFootBall"); this.FootBallT = this.FootBallGameObject.AddComponent <RectTransform>(); this.FootBallT.position = Vector3.forward * 3840f; this.FootBallT.SetParent(realmGroup, false); this.FootBallT.sizeDelta = new Vector2(256f, 128f); this.FootBallT.anchoredPosition = Vector2.zero; this.FootBallGameObject.SetActive(false); for (int i = 0; i < 4; i++) { this.mGO_FBBG[i] = new GameObject("FBBG"); this.mRT_FBBG[i] = this.mGO_FBBG[i].AddComponent <RectTransform>(); this.mRT_FBBG[i].position = Vector3.zero; this.mRT_FBBG[i].SetParent(this.FootBallT, false); this.mRT_FBBG[i].sizeDelta = new Vector2(384f, 192f); this.mImg_FBBG[i] = this.mGO_FBBG[i].AddComponent <Image>(); this.mImg_FBBG[i].sprite = this.FBSprites.m_Sprites[0]; this.mImg_FBBG[i].material = component.material; this.mGO_FBBG[i].SetActive(false); } this.mRT_FBBG[0].anchoredPosition = new Vector2(-this.mRT_FBBG[0].sizeDelta.x / 2f, this.mRT_FBBG[0].sizeDelta.y / 2f); this.mRT_FBBG[1].anchoredPosition = new Vector2(this.mRT_FBBG[0].sizeDelta.x / 2f, this.mRT_FBBG[0].sizeDelta.y / 2f); this.mRT_FBBG[1].localScale = new Vector3(-1f, 1f, 1f); this.mRT_FBBG[2].anchoredPosition = new Vector2(-this.mRT_FBBG[0].sizeDelta.x / 2f, -this.mRT_FBBG[0].sizeDelta.y / 2f); this.mRT_FBBG[2].localScale = new Vector3(1f, -1f, 1f); this.mRT_FBBG[3].anchoredPosition = new Vector2(this.mRT_FBBG[0].sizeDelta.x / 2f, -this.mRT_FBBG[0].sizeDelta.y / 2f); this.mRT_FBBG[3].localScale = new Vector3(-1f, -1f, 1f); for (int j = 0; j < 8; j++) { this.mGO_FBBGD[j] = new GameObject("mGO_FBBGD"); this.mRT_FBBGD[j] = this.mGO_FBBGD[j].AddComponent <RectTransform>(); this.mRT_FBBGD[j].position = Vector3.zero; this.mRT_FBBGD[j].SetParent(this.FootBallT, false); this.mRT_FBBGD[j].sizeDelta = new Vector2(256f, 128f); this.mRT_FBBGD[j].anchoredPosition = this.mFootBall[j]; this.mImg_FBBGD[j] = this.mGO_FBBGD[j].AddComponent <Image>(); this.mImg_FBBGD[j].material = component.material; this.mGO_FBBGD[j].SetActive(false); } this.mImg_FBBGD[0].sprite = this.FBSprites.m_Sprites[3]; this.mImg_FBBGD[1].sprite = this.FBSprites.m_Sprites[2]; this.mRT_FBBGD[1].localScale = new Vector3(-1f, 1f, 1f); this.mImg_FBBGD[2].sprite = this.FBSprites.m_Sprites[1]; this.mRT_FBBGD[2].localScale = new Vector3(-1f, 1f, 1f); this.mImg_FBBGD[3].sprite = this.FBSprites.m_Sprites[2]; this.mRT_FBBGD[3].localScale = new Vector3(-1f, -1f, 1f); this.mImg_FBBGD[4].sprite = this.FBSprites.m_Sprites[3]; this.mRT_FBBGD[4].localScale = new Vector3(1f, -1f, 1f); this.mImg_FBBGD[5].sprite = this.FBSprites.m_Sprites[2]; this.mRT_FBBGD[5].localScale = new Vector3(1f, -1f, 1f); this.mImg_FBBGD[6].sprite = this.FBSprites.m_Sprites[1]; this.mImg_FBBGD[7].sprite = this.FBSprites.m_Sprites[2]; this.FootBallSkillGameObject = new GameObject("MapFootBallSkill"); this.FootBallSkillT = this.FootBallSkillGameObject.AddComponent <RectTransform>(); this.FootBallSkillT.position = Vector3.forward * 3840f; this.FootBallSkillT.SetParent(realmGroup, false); this.FootBallSkillT.sizeDelta = new Vector2(256f, 128f); this.FootBallSkillT.anchoredPosition = Vector2.zero; this.FootBallSkillGameObject.SetActive(false); for (int k = 0; k < 15; k++) { this.mGO_FBSkill[k] = new GameObject("FBSkill"); this.mRT_FBSkill[k] = this.mGO_FBSkill[k].AddComponent <RectTransform>(); this.mRT_FBSkill[k].position = Vector3.zero; this.mRT_FBSkill[k].SetParent(this.FootBallSkillT, false); this.mRT_FBSkill[k].sizeDelta = new Vector2(242f, 121f); this.mRT_FBSkill[k].anchoredPosition = Vector2.zero; this.mImg_FBSkill[k] = this.mGO_FBSkill[k].AddComponent <Image>(); this.mImg_FBSkill[k].sprite = this.FBSprites.m_Sprites[4]; this.mImg_FBSkill[k].material = component.material; this.mGO_FBSkill[k].SetActive(false); } } GameObject gameObject = new GameObject("MapTileSelect"); this.TileSelect = gameObject.AddComponent <RectTransform>(); this.TileSelect.position = Vector3.forward * 3840f; this.TileSelect.SetParent(realmGroup, false); this.TileSelect.sizeDelta = new Vector2(256f, 128f); this.TileSelect.anchoredPosition = Vector2.zero; this.TileSelectImage = gameObject.AddComponent <Image>(); this.TileSelectImage.sprite = tileSprites.GetSprite(138); this.TileSelectImage.material = tileSprites.m_Image.material; gameObject.SetActive(false); this.TileMarkGameObject = new GameObject("MapTileMark"); this.TileMark = this.TileMarkGameObject.AddComponent <RectTransform>(); this.TileMark.position = Vector3.forward * 3712f; this.TileMark.SetParent(realmGroup, false); this.TileMark.sizeDelta = new Vector2(256f, 128f); this.TileMark.anchoredPosition = Vector2.zero; this.TileMarkImage = this.TileMarkGameObject.AddComponent <Image>(); this.TileMarkImage.sprite = tileSprites.GetSprite(150); this.TileMarkImage.material = tileSprites.m_Image.material; this.TileMarkImage.color = Color.white; this.TileMarkImage.SetNativeSize(); this.TileMarkGameObject.SetActive(false); }