Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output RichText #228

Merged
merged 4 commits into from
Aug 22, 2022
Merged

Output RichText #228

merged 4 commits into from
Aug 22, 2022

Conversation

outofbearspace
Copy link
Contributor

@outofbearspace outofbearspace commented Aug 19, 2022

richtext enabled on output messages and changed "Line" to a textlabel since it wasn't being treated as a textbox

couldn't enable richtext on the entry line due to the way ui text rendering behaves
image

Closes #157

RichText enabled on Line and changed to a TextLabel since it wasn't being treated as a TextBox
outofbearspace added a commit to outofbearspace/Cmdr that referenced this pull request Aug 19, 2022
undid duplicate changes made in evaera#228
evaera pushed a commit that referenced this pull request Aug 19, 2022
* Entry Line Behavior

replaced "Line" TextBox with a TextLabel (wasn't being treated as a TextBox)

uses a UIListLayout instead of relying on code to position entry box (a roblox update somehow broke the positioning)

* Update CreateGui.lua

undid duplicate changes made in #228
@evaera
Copy link
Owner

evaera commented Aug 19, 2022

Not sure if I want to merge this. I don't particularly like RichText and I'm concerned about escaping RichText that is included in user input. If anything, it needs to be strictly opt-in per command

outofbearspace and others added 3 commits August 22, 2022 03:29
@outofbearspace
Copy link
Contributor Author

I have changed it to be opt-in like you said, replacing the "color" parameter in the AddLine method with an options table (includes backwards compatibility)

@evaera evaera merged commit 780de29 into evaera:master Aug 22, 2022
@outofbearspace outofbearspace deleted the patch3 branch August 22, 2022 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add RichText compatibility
2 participants