public override void _Ready() { GetNode("TopLine/Cancel").Connect("pressed", this, nameof(OpenQuest), Global.ArrayFrom(-1)); questList = GetNode <VBoxContainer>("QuestSelection/Selection/List"); questTable = GetNode <Visual.Tables.QuestTable>("QuestSelection/QuestTable"); party = GetNode <PartyPanel>("Party"); Connect("visibility_changed", this, nameof(Refresh)); Refresh(); }
public override void _Ready() { instance = this; title = N <Label>("Title"); head = N <TabContainer>("Head"); characterList = N <Control>("Head/CharacterList/List"); coupleLeft = N <Visual.Tables.CharacterTable>("Head/CharacterCouple/Left"); coupleRight = N <Visual.Tables.CharacterTable>("Head/CharacterCouple/Right"); boaLeft = N <Visual.Icons.CharacterIcon>("Head/BirthOrAdoption/Left"); boaMiddle = N <Visual.Tables.CharacterTable>("Head/BirthOrAdoption/Middle"); boaRight = N <Visual.Icons.CharacterIcon>("Head/BirthOrAdoption/Right"); questTable = N <Visual.Tables.QuestTable>("Head/Quests/QuestTable"); smartDescription = N <SmartText>("Description"); buttonValidate = N <Button>("Buttons/Validate"); buttonNo = N <Button>("Buttons/No"); buttonThird = N <Button>("Buttons/Third"); buttonValidate.Connect("pressed", this, nameof(pressed), Global.ArrayFrom(ButtonOutcome.VALIDATE)); buttonNo.Connect("pressed", this, nameof(pressed), Global.ArrayFrom(ButtonOutcome.NO)); buttonThird.Connect("pressed", this, nameof(pressed), Global.ArrayFrom(ButtonOutcome.THIRD)); Task task = OutcomeProcess.Process(); }