Ejemplo n.º 1
0
 // Token: 0x06001150 RID: 4432 RVA: 0x001E802C File Offset: 0x001E622C
 public void Init(MapSpriteManager mapspriteManager)
 {
     this.mapspriteManager = mapspriteManager;
     this.JailNotice       = new GameObject("ManorJailIcon", new Type[]
     {
         typeof(SpriteRenderer)
     }).GetComponent <SpriteRenderer>();
     this.JailNotice.sprite       = mapspriteManager.GetSpriteByName("prompt_09");
     this.JailNotice.material     = mapspriteManager.SpriteMaterial;
     this.JailNotice.color        = Color.black;
     this.JailNotice.sortingOrder = -1;
     this.JailNotice.transform.SetParent(base.transform);
     this.JailNotice.transform.localScale    = Vector3.one;
     this.JailNotice.transform.localRotation = new Quaternion(0f, 0f, 0f, 0f);
     this.JailNotice.transform.localPosition = new Vector3(0.31f, 1.49f, 0.27f);
     this.Hide();
     this.UpdateData();
 }
Ejemplo n.º 2
0
    // Token: 0x0600116F RID: 4463 RVA: 0x001E88D4 File Offset: 0x001E6AD4
    public override GameObject InitialSprite(MapSpriteManager mapspriteManager)
    {
        this.mapspriteManager           = mapspriteManager;
        this.RootObj.transform.position = Vector3.zero;
        GameObject spriteObj = mapspriteManager.GetSpriteObj();

        this.spriteRender     = spriteObj.GetComponent <SpriteRenderer>();
        spriteObj             = mapspriteManager.GetSpriteObj();
        this.markspriteRender = spriteObj.GetComponent <SpriteRenderer>();
        spriteObj             = mapspriteManager.GetSpriteObj();
        this.LevelRender      = spriteObj.GetComponent <SpriteRenderer>();
        spriteObj             = mapspriteManager.GetSpriteObj();
        this.PromptRender     = spriteObj.GetComponent <SpriteRenderer>();
        spriteObj             = mapspriteManager.GetSpriteObj();
        this.UpgradeRender    = spriteObj.GetComponent <SpriteRenderer>();
        this.spriteRender.transform.SetParent(this.RootObj.transform);
        this.markspriteRender.transform.SetParent(this.spriteRender.transform);
        this.markspriteRender.renderer.sortingOrder = -32;
        this.LevelRender.transform.SetParent(this.RootObj.transform);
        this.LevelRender.renderer.sortingOrder = -32;
        this.PromptRender.transform.SetParent(this.spriteRender.transform);
        this.PromptRender.renderer.sortingOrder = -31;
        this.PromptRender.enabled = false;
        this.UpgradeRender.transform.SetParent(this.LevelRender.transform);
        this.UpgradeRender.renderer.sortingOrder = -32;
        this.UpgradeRender.enabled = false;
        this.spriteRender.gameObject.SetActive(true);
        this.markspriteRender.gameObject.SetActive(true);
        this.markspriteRender.sprite = mapspriteManager.GetSpriteByName("build_99");
        this.markspriteRender.transform.localPosition = Vector3.zero;
        this.markspriteRender.enabled = false;
        this.UpgradeRender.sprite     = mapspriteManager.GetSpriteByName("upgrade");
        this.UpgradeRender.transform.localPosition = new Vector3(0.6f, 0.27f, 0f);
        Quaternion localRotation = this.spriteRender.transform.localRotation;

        localRotation.eulerAngles = Vector3.zero;
        this.spriteRender.transform.localRotation = localRotation;
        this.OpenUIMotion        = new EasingEffect();
        this.OpenUIMotion.Motion = this;
        this.SetSprite(this.Index, 0);
        return(this.spriteRender.gameObject);
    }
Ejemplo n.º 3
0
 // Token: 0x06001168 RID: 4456 RVA: 0x001E88AC File Offset: 0x001E6AAC
 public virtual GameObject InitialSprite(MapSpriteManager mapspriteManager)
 {
     return(null);
 }
Ejemplo n.º 4
0
    // Token: 0x06001177 RID: 4471 RVA: 0x001EA2CC File Offset: 0x001E84CC
    public override GameObject InitialSprite(MapSpriteManager mapspriteManager)
    {
        this.mapspriteManager = mapspriteManager;
        GUIManager instance = GUIManager.Instance;

        this.RootObj.transform.position = Vector3.zero;
        GameObject gameObject = mapspriteManager.GetSpriteObj();

        this.spriteRender = gameObject.GetComponent <SpriteRenderer>();
        this.spriteRender.transform.SetParent(this.RootObj.transform);
        this.spriteRender.transform.localScale *= this.SpriteScale;
        this.spriteRender.renderer.sortingOrder = -50;
        this.spriteRender.color = Color.white;
        if (instance.IsArabic)
        {
            Quaternion rotation = this.spriteRender.transform.rotation;
            rotation.eulerAngles = new Vector3(0f, 180f, 0f);
            this.spriteRender.transform.rotation = rotation;
        }
        Sprite sprite = instance.LoadFrameSprite("Crowne01");

        gameObject                      = mapspriteManager.GetSpriteObj();
        this.FramespriteRender          = gameObject.GetComponent <SpriteRenderer>();
        this.FramespriteRender.material = instance.GetFrameMaterial();
        this.FramespriteRender.renderer.sortingOrder = -40;
        this.FramespriteRender.transform.SetParent(this.RootObj.transform);
        this.FramespriteRender.transform.localScale *= this.SpriteScale;
        this.FramespriteRender.color = Color.white;
        for (int i = 0; i < 3; i++)
        {
            gameObject = mapspriteManager.GetSpriteObj();
            this.GradespriteRender[i]        = gameObject.GetComponent <SpriteRenderer>();
            this.GradespriteRender[i].sprite = sprite;
            this.GradespriteRender[i].renderer.sortingOrder = -40;
            this.GradespriteRender[i].material = instance.GetFrameMaterial();
            this.GradespriteRender[i].transform.SetParent(this.RootObj.transform);
            this.GradespriteRender[i].transform.localScale   *= this.GradeScale;
            this.GradespriteRender[i].transform.localPosition = this.GradePos;
            this.GradespriteRender[i].enabled = false;
            this.GradespriteRender[i].color   = Color.white;
        }
        Vector3 localScale = new Vector3(6f, 6f, 6f);

        this.GradePos.Set(0.52f, -2.41f, 0f);
        gameObject = mapspriteManager.GetTextObj();
        gameObject.transform.localScale = localScale;
        gameObject.transform.SetParent(this.RootObj.transform);
        gameObject.transform.localPosition = this.GradePos;
        this.StageRender          = gameObject.GetComponent <SpriteRenderer>();
        this.StageRender.sprite   = instance.LoadFrameSprite("UI_black_top");
        this.StageRender.material = instance.GetFrameMaterial();
        this.StageRender.renderer.sortingOrder = -40;
        this.GradePos.Set(-0.066f, 0.203f, 0f);
        this.StageText = gameObject.transform.GetChild(0).GetComponent <TextMesh>();
        localScale.Set(1f / localScale.x, 1f / localScale.y, 1f / localScale.z);
        this.StageText.transform.localScale    = localScale;
        this.StageText.transform.localPosition = this.GradePos;
        this.StageStr.ClearString();
        this.StageStr.IntToFormat((long)DataManager.StageDataController.currentChapterID, 1, false);
        Vector3 localPosition = this.StageText.transform.localPosition;

        if (this.Index < 10)
        {
            localPosition.x = -0.066f;
        }
        else
        {
            localPosition.x = -0.227f;
        }
        this.StageText.transform.localPosition = localPosition;
        this.StageStr.IntToFormat((long)this.Index, 1, false);
        this.PointID = (ushort)((DataManager.StageDataController.currentChapterID - 1) * 6);
        if (DataManager.StageDataController._stageMode == StageMode.Full)
        {
            this.PointID *= 3;
            this.PointID += this.Index;
        }
        else
        {
            this.PointID += this.Index / 3;
        }
        if (instance.IsArabic)
        {
            this.StageStr.AppendFormat("{1}-{0}");
        }
        else
        {
            this.StageStr.AppendFormat("{0}-{1}");
        }
        this.StageText.text = this.StageStr.ToString();
        this.Score          = (byte)DataManager.StageDataController.GetStagePoint(this.PointID, 0);
        return(this.RootObj);
    }