Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ProjectMage.player.debug.PlayerDebug
- // Token: 0x06000620 RID: 1568 RVA: 0x000548AC File Offset: 0x00052AAC
- public void Update(float frameTime, float realTime)
- {
- if (ConfigMgr.debug != 1)
- {
- return;
- }
- if (this.p.charIdx < 0)
- {
- return;
- }
- Character character = CharMgr.character[this.p.charIdx];
- if (GameState.dpsTest)
- {
- this.debugDPS.Update(frameTime);
- }
- if (character != null)
- {
- if (this.active)
- {
- int num = this.selCategory;
- if (this.alpha < 1f)
- {
- this.alpha += realTime * 10f;
- if (this.alpha > 1f)
- {
- this.alpha = 1f;
- }
- }
- if (this.selX < (float)this.selCategory)
- {
- this.selX += ((float)this.selCategory - this.selX) * realTime * 10f;
- if (this.selX > (float)this.selCategory)
- {
- this.selX = (float)this.selCategory;
- }
- }
- if (this.selX > (float)this.selCategory)
- {
- this.selX -= (this.selX - (float)this.selCategory) * realTime * 10f;
- if (this.selX < (float)this.selCategory)
- {
- this.selX = (float)this.selCategory;
- }
- }
- this.category[this.selCategory].Update(realTime);
- if (character.keys.keyDebugUp)
- {
- this.category[this.selCategory].selItem--;
- if (this.category[this.selCategory].selItem < 0)
- {
- this.category[this.selCategory].selItem = this.category[this.selCategory].item.Length - 1;
- }
- }
- if (character.keys.keyDebugDown)
- {
- this.category[this.selCategory].selItem++;
- if (this.category[this.selCategory].selItem > this.category[this.selCategory].item.Length - 1)
- {
- this.category[this.selCategory].selItem = 0;
- }
- }
- if (character.keys.keyDebugLeft)
- {
- if (this.selCategory > 0)
- {
- this.selCategory--;
- }
- else
- {
- this.selCategory = this.category.Length - 1;
- this.selX = (float)this.selCategory + 1f;
- }
- }
- if (character.keys.keyDebugRight)
- {
- if (this.selCategory < this.category.Length - 1)
- {
- this.selCategory++;
- }
- else
- {
- this.selCategory = 0;
- this.selX = -1f;
- }
- }
- if (num != this.selCategory && this.selCategory == 1)
- {
- ((DebugSpawnemy)this.category[1]).CreateList();
- }
- if (character.keys.keyDebugClick)
- {
- this.category[this.selCategory].Fire(character, this.p);
- this.active = false;
- }
- if (character.keys.keyLeftRun || character.keys.keyRightRun)
- {
- this.active = false;
- return;
- }
- }
- else
- {
- if (this.alpha > 0f)
- {
- this.alpha -= realTime * 10f;
- if (this.alpha < 0f)
- {
- this.alpha = 0f;
- }
- }
- if (character.keys.keyDebugLeft || character.keys.keyDebugRight || character.keys.keyDebugUp || character.keys.keyDebugDown)
- {
- this.active = true;
- DebugCategory[] array = this.category;
- for (int i = 0; i < array.Length; i++)
- {
- array[i].Activate(character, this.p);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement