public void InitializeWith(ActionEditorBox controller, IProcessingData data) { _controller = controller; _actionDescriptionNode = GetNode <TextEdit>("ActionTextEditor"); _actionDescriptionNode.Connect("focus_exited", this, nameof(OnTextEditorFocusExited)); _actionDescriptionNode.Connect("text_changed", this, nameof(OnActionTextChanged)); _qualifierNode = GetNode <MenuButton>("ActionQualifierSelector"); ConfigureQualifierPopupMenu(); ActionMaster.UpdateColorKeys(_actionDescriptionNode, data); }
public override void _Ready() { texteditor = GetNode <TextEdit>("TextEdit"); button = texteditor.GetNode <Godot.Button>("Button"); button.Connect("pressed", this, "_onButton"); texteditor.Connect("text_changed", this, "_onTextEditChange"); preview = GetNode("HBox").GetNode <RichTextLabel>("Preview"); }
void InitControls() { adventureLabel = Menu.Label("Adventure Mode"); AddChild(adventureLabel); nameLabel = Menu.Label(NameLabelText); AddChild(nameLabel); nameBox = Menu.TextBox("new_adventure", false); nameBox.Connect("cursor_changed", this, nameof(UpdateName)); AddChild(nameBox); loadAdventureButton = Menu.Button("Load Adventure", GoToLoadAdventure); AddChild(loadAdventureButton); }
public void Initialise() { _textEdit = GetNode <TextEdit>("TransitionTextEditor"); _patchController = GetNode <SfcPatchNode>("..").SfcPatchControl; _textEdit.Connect("focus_exited", this, nameof(OnTextEditorFocusExited)); _textEdit.Connect("mouse_entered", this, nameof(OnMouseEntered)); _textEdit.Connect("mouse_exited", this, nameof(OnMouseExited)); _textEdit.Connect("focus_entered", this, nameof(OnFocusEntered)); _textEdit.Connect("focus_exited", this, nameof(OnFocusExited)); _textEdit.Connect("text_changed", this, nameof(OnTextChanged)); }