using System; using System.Collections; using System.Collections.Generic; using System.IO; using DarkTonic.MasterAudio; using TMPro; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; // Token: 0x0200009F RID: 159 public class Creation : MonoBehaviour { // Token: 0x06000EAF RID: 3759 RVA: 0x00117A55 File Offset: 0x00115C55 private void Awake() { } // Token: 0x06000EB0 RID: 3760 RVA: 0x00117A57 File Offset: 0x00115C57 private void OnDisable() { this.RecycleCreature(); this.RecycleModel(); } // Token: 0x06000EB1 RID: 3761 RVA: 0x00117A65 File Offset: 0x00115C65 private void OnDestroy() { this.RecycleCreature(); this.RecycleModel(); } // Token: 0x06000EB2 RID: 3762 RVA: 0x00117A74 File Offset: 0x00115C74 private void Start() { Links.x.renderPortraits.ToggleCrossFades(true); this.targetAlpha = -1f; this.FlipToDomeRT(); Links.x.hudControl.ChangeHudVisibility(false, true); this.canvas.worldCamera = Links.x.menuCamera; this.tooltipText.spriteAsset = Links.x.GetSpriteSheetAsset(Links.x.gameplay.currentSpriteSheetAsset); this.noticeController.spriteAsset = Links.x.GetSpriteSheetAsset(Links.x.gameplay.currentSpriteSheetAsset); this.archetypeDescriptionText.spriteAsset = Links.x.GetSpriteSheetAsset(Links.x.gameplay.currentSpriteSheetAsset); TextMeshProUGUI component = this.nextCharacterButtonController.transform.GetChild(1).gameObject.GetComponent(); component.spriteAsset = Links.x.GetSpriteSheetAsset(Links.x.gameplay.currentSpriteSheetAsset); this.controllerSwitchL.spriteAsset = Links.x.GetSpriteSheetAsset(Links.x.gameplay.currentSpriteSheetAsset); this.controllerSwitchR.spriteAsset = Links.x.GetSpriteSheetAsset(Links.x.gameplay.currentSpriteSheetAsset); component.text = ""; this.tooltip.SetActive(false); this.controllerSwitchL.enabled = false; this.controllerSwitchR.enabled = false; this.animator.Play("CreationStart"); this.currentScreen = 0; this.currentModelIndex = 0; this.currentHairModelIndex = 0; this.nameInputField.SetActive(true); this.tokenConfirm.SetActive(false); this.paganPopup.SetActive(false); this.portraits[0].gameObject.SetActive(true); this.portraits[1].gameObject.SetActive(false); this.portraits[2].gameObject.SetActive(false); this.portraits[3].gameObject.SetActive(false); Links.x.characterSheet.characterCamera.SetActive(true); Links.x.characterSheet.characterSpawn.gameObject.SetActive(false); Links.x.characterSheet.characterCreationSpawn.gameObject.SetActive(true); Links.x.characterSheet.characterCreationDefault.SetActive(true); GameObject gameObject = new GameObject("Look At"); this.lookAt = gameObject.transform; this.lookAt.SetParent(Links.x.camera3D.gameObject.transform, true); if (this.fromBeginning) { this.party = Links.x.party; this.characterCount = 0; this.finishButton.SetActive(false); } else if (this.justRespec) { this.party = Links.x.party; this.nextCharacterButton.SetActive(false); this.nextCharacterButtonController.SetActive(false); this.finishButton.SetActive(true); this.characterCount = 0; this.currentCharacterIndex = this.party.IndexOf(this.respecCharacter); Links.x.hudControl.ChangeHudVisibility(false, true); } else { this.party = new List(); this.party.Add(Links.x.portraitOrder[Links.x.GetPartyCount() - 1]); this.nextCharacterButton.SetActive(false); this.nextCharacterButtonController.SetActive(false); this.finishButton.SetActive(true); this.characterCount = 0; this.currentCharacterIndex = 0; Links.x.hudControl.ChangeHudVisibility(false, true); } this.ChangeCharacter(); this.timeSinceCharacterChange = Time.realtimeSinceStartup; this.testing = false; if (!this.fromBeginning) { this.testing = false; } if (!Records.x.editor) { this.testing = false; } if (this.testing) { this.currentArchetype = "Tank"; this.character.stats.SetMajorsMinors("Strength", "Dexterity", "Aura", "", "", "", false); this.majorStat1 = this.character.stats.GetMajorsMinors(0); this.majorStat2 = this.character.stats.GetMajorsMinors(1); this.minorStat3 = this.character.stats.GetMajorsMinors(2); this.character.stats.displayName = "Quez"; this.input.text = this.character.stats.displayName; this.selectedRace = this.character.stats.race; this.SetRace(false); this.SetCharacterInfo(); this.currentCharacterIndex = 1; this.ChangeCharacter(); this.currentArchetype = "Archer"; this.character.stats.SetMajorsMinors("Dexterity", "Agility", "Strength", "", "", "", false); this.majorStat1 = this.character.stats.GetMajorsMinors(0); this.majorStat2 = this.character.stats.GetMajorsMinors(1); this.minorStat3 = this.character.stats.GetMajorsMinors(2); this.character.stats.displayName = "Relia"; this.character.stats.race = "Ameythevian"; this.selectedRace = this.character.stats.race; this.input.text = this.character.stats.displayName; this.SetRace(false); this.SetCharacterInfo(); this.currentCharacterIndex = 2; this.ChangeCharacter(); this.currentArchetype = "Summoner"; this.character.stats.SetMajorsMinors("Sensory", "Dexterity", "Agility", "", "", "", false); this.majorStat1 = this.character.stats.GetMajorsMinors(0); this.majorStat2 = this.character.stats.GetMajorsMinors(1); this.minorStat3 = this.character.stats.GetMajorsMinors(2); this.character.stats.displayName = "Isla"; this.character.stats.race = "Varuchov"; this.selectedRace = this.character.stats.race; this.input.text = this.character.stats.displayName; this.SetRace(false); this.SetCharacterInfo(); this.currentCharacterIndex = 3; this.ChangeCharacter(); this.currentArchetype = "Pagan 1"; this.character.stats.SetMajorsMinors("Pagan", "Strength", "Sensory", "", "", "", false); this.majorStat1 = this.character.stats.GetMajorsMinors(0); this.majorStat2 = this.character.stats.GetMajorsMinors(1); this.minorStat3 = this.character.stats.GetMajorsMinors(2); this.character.stats.displayName = "Hannah"; this.character.stats.race = "Taratorith"; this.selectedRace = this.character.stats.race; this.input.text = this.character.stats.displayName; this.skin.value = 1.1f; this.SetRace(false); this.SetCharacterInfo(); this.characterCount = 4; this.nextCharacterButton.SetActive(false); this.finishButton.SetActive(true); this.nextCharacterButtonController.SetActive(false); } Links.x.creation = this; Links.x.camera3D.enabled = true; if (QualitySettings.antiAliasing == 0) { Links.x.camera3D.targetTexture = this.domeRT; } else if (QualitySettings.antiAliasing == 2) { Links.x.camera3D.targetTexture = this.domeRT2; } else if (QualitySettings.antiAliasing == 4) { Links.x.camera3D.targetTexture = this.domeRT4; } else if (QualitySettings.antiAliasing == 8) { Links.x.camera3D.targetTexture = this.domeRT8; } else { Links.x.camera3D.targetTexture = this.domeRT; } this.domeCharacterImage.texture = Links.x.camera3D.targetTexture; this.domeCharacterImage.enabled = true; this.open = true; Records.x.SetTypingState(true); this.openIndex = 0; if (this.fromBeginning) { Links.x.gaia.SetEnvironmentPlaylist(false, false, false); } if (Records.x.paused) { Links.x.gameplay.TogglePause(false); } this.SetBorder(0); Links.x.cameraEffects.ToggleObscurance(); this.Controllers(Links.x.joy); } // Token: 0x06000EB3 RID: 3763 RVA: 0x001183C8 File Offset: 0x001165C8 public void Controllers(bool joystick) { if (joystick) { this.SetBorder(1); Links.x.gameplay.SetInteractableSelected(EventSystem.current, this.input.gameObject); this.tokenMajorStat1.gameObject.GetComponent