Example #1
0
        private void DrawGuildRank(float constractAlpha, float currentalpha)
        {
            QuestLoader.QuestRank rank = gameManager.GuildInfo.Rank();
            Vector2 rankPosition       =
                backLayer.GetRightCenter() +
                new Vector2(Def.WindowDef.WINDOW_WIDTH / 2 - 380, -220);

            renderer.DrawTexture(
                "guild_rank", rankPosition,
                new Rectangle((int)rank * 256, 0, 256, 256),
                constractAlpha * currentalpha);

            Vector2 gagePos = rankPosition + new Vector2(-128, 300);
            float   expRate = gameManager.GuildInfo.Rate();

            renderer.DrawTexture(
                "guild_gage_back", gagePos,
                constractAlpha * currentalpha);
            renderer.DrawTexture(
                "guild_gage_middle", gagePos,
                new Rectangle(0, 0, (int)(512 * expRate), 64),
                constractAlpha * currentalpha);
            renderer.DrawTexture(
                "guild_gage_front", gagePos,
                constractAlpha * currentalpha);
        }
 public PlayerGuildRank(int rank, int exp)
 {
     this.rank  = (QuestLoader.QuestRank)rank;
     currentExp = exp;
 }
 public void LoadSaveData(SaveData save)
 {
     this.currentExp = save.GetGuildInfo().currentExp;
     this.rank       = save.GetGuildInfo().rank;
 }
 public PlayerGuildRank()
 {
     rank       = QuestLoader.QuestRank.F;
     currentExp = 0;
 }