{"action":"created","issue":{"url":"https://api.github.com/repos/GarageGames/Torque2D/issues/215","labels_url":"https://api.github.com/repos/GarageGames/Torque2D/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/GarageGames/Torque2D/issues/215/comments","events_url":"https://api.github.com/repos/GarageGames/Torque2D/issues/215/events","html_url":"https://github.com/GarageGames/Torque2D/issues/215","id":36801808,"number":215,"title":"[Request] Enable the syntax \"NL\" in GUI buttons","user":{"login":"Webbstre","id":3615256,"avatar_url":"https://avatars.githubusercontent.com/u/3615256?v=3","gravatar_id":"","url":"https://api.github.com/users/Webbstre","html_url":"https://github.com/Webbstre","followers_url":"https://api.github.com/users/Webbstre/followers","following_url":"https://api.github.com/users/Webbstre/following{/other_user}","gists_url":"https://api.github.com/users/Webbstre/gists{/gist_id}","starred_url":"https://api.github.com/users/Webbstre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Webbstre/subscriptions","organizations_url":"https://api.github.com/users/Webbstre/orgs","repos_url":"https://api.github.com/users/Webbstre/repos","events_url":"https://api.github.com/users/Webbstre/events{/privacy}","received_events_url":"https://api.github.com/users/Webbstre/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GarageGames/Torque2D/labels/New%20Feature%20Request","name":"New Feature Request","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-06-30T14:22:45Z","updated_at":"2015-11-15T00:27:50Z","closed_at":null,"body":"I'm discovering that making larger buttons where one word appears below another word in GUI buttons is extremely difficult. The biggest suggestion I've gotten is to make new GuiTextCtrl children of the button, but honestly getting it to resize properly is extremely difficult, and you have to add a lot more code simply to get a line break.\r\n\r\nThe other Torque Syntax options ( @ , TAB, and SPC ) all appear to work when processed in this manner, but the NL only displays a square where the line break should be. I'm hoping this request isn't too hard (Especially since in my web search I discovered it was typically much easier to do a line break in competing engines)."},"comment":{"url":"https://api.github.com/repos/GarageGames/Torque2D/issues/comments/156764968","html_url":"https://github.com/GarageGames/Torque2D/issues/215#issuecomment-156764968","issue_url":"https://api.github.com/repos/GarageGames/Torque2D/issues/215","id":156764968,"user":{"login":"chaigler","id":3131257,"avatar_url":"https://avatars.githubusercontent.com/u/3131257?v=3","gravatar_id":"","url":"https://api.github.com/users/chaigler","html_url":"https://github.com/chaigler","followers_url":"https://api.github.com/users/chaigler/followers","following_url":"https://api.github.com/users/chaigler/following{/other_user}","gists_url":"https://api.github.com/users/chaigler/gists{/gist_id}","starred_url":"https://api.github.com/users/chaigler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaigler/subscriptions","organizations_url":"https://api.github.com/users/chaigler/orgs","repos_url":"https://api.github.com/users/chaigler/repos","events_url":"https://api.github.com/users/chaigler/events{/privacy}","received_events_url":"https://api.github.com/users/chaigler/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T00:27:50Z","updated_at":"2015-11-15T00:27:50Z","body":"@capnlove is correct. GuiMLTextCtrl is intended to be used for mult-line text. If you need multi-line text in your buttons, simply create a new GuiMLTextCtrl and parent it to the button control. \r\n\r\nThe reason other syntax options (such as TAB and SPC) work with GuiTextCtrl is because the control's \"text\" field gets processed by the console system, which manually inserts spaces accordingly. \r\n\r\nYou could rewrite GuiTextCtrl to support newline commands but there's really no need. I recommend closing this issue. "}}