using Godot; using System; using System.Collections.Generic; [GlobalClass] public partial class EmailScreen : Control { private Stack emailStack; private static PackedScene emailBtn = GD.Load("res://Scenes/emailBtn.tscn"); // Public constructor to init a stack of emails. public EmailScreen(){ emailStack = new Stack(); } private void createEmail(string subject, string content){ var scrollView = GetNode("ScrollContainer/emailHolder"); var copy = emailBtn.Instantiate(); scrollView.AddChild(copy); } private void createBtn(string title){ /* 1. Create the button 2. add details 3. place on screen in the v-box 4. save every */ Button btn = new Button(); EmailBtn newBtn = new EmailBtn(); //emailStack.push(newBtn); } private void saveDay(){ } }