-
Notifications
You must be signed in to change notification settings - Fork 1
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
setting text color? #4
Comments
Hi, What library are you using for rendering text? |
Honestly I was just using winapi.Label, might not be possable to change text color using this from what I can see. The tr0 library might be better for my needs. I should probably sleep more, it helps when trying to figure stuff out! |
Make sure to check on the lib's status before using it. Many libs in here are quite low level and some are not even finished. Generally speaking, you need to know what you're doing and understand the trade-offs of different approaches (eg. doing your own text rendering vs using WinAPI, etc). |
I was thinking about using the tr0 library even though its unmaintained.
Looks like itll support emojis as well as colored text.
…On Tue, Nov 3, 2020, 9:41 AM Cosmin Apreutesei ***@***.***> wrote:
Make sure to check on the lib's status before using it. Many libs in here
are quite low level and some are not even finished. Generally speaking, you
need to know what you're doing and understand the trade-offs of different
approaches (eg. doing your own text rendering vs using WinAPI, etc).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFMUSQOMC7JJ7SWKNY633MLSOA6FZANCNFSM4TILFOAQ>
.
|
So using ui0 iv gotten things working but now I am trying to use a text tree to have better control over text coloration. I'm having an issue when I update the content of the scrollbox that's my main chat layer. I'm trying to just set the contents text with the updated text tree to cause it to rebuild the text the segments its actually drawing. If I replace it with a string it works fine but if I replace the contents text with the updated text tree it throws an Assertion failed! message and crashes. The important part of the error is D:\gcc-lua\luapower\bin\mingw64....\utf8.lua:44: attempt to compare number with nil My code is here if you want to check it out. The error happens when I update the chat window so you just enter some text into the edit box. |
Ah figured it out! |
Im working on making a twitch chat overlay with luapower and so far its been easy going but I cannot seem to figure out how to set color of text at all. Background color of the main window is fairly easy but otherwise iv had no luck...
The text was updated successfully, but these errors were encountered: