4849505152535455565758
public StoryAgentOverlay ui; public StoryAgent(IState setState, String guiName) { state = setState; ui = new StoryAgentOverlay(); ui.init(setState); textBox = ui.textBox; actionButtons = ui.buttons; background = ui.back;