function to easily align text for display (actually, 4 now)
Re: function to easily align text for display (actually, 4 n
As I said in the feature request, would love if these became natural mudlet functions.
Re: function to easily align text for display (actually, 4 n
Hm does calign respect the tags? When I use cecho(calign(...)), it's off the center.
Re: function to easily align text for display (actually, 4 n
Here's my alignment function (called "bar" because I primarily use it to display a line of text pre- and post-fixed with centering characters), which strips tags for the alignment and then reinserts them afterwards. You can probably use this to modify demonnic's code.
Re: function to easily align text for display (actually, 4 n
is this broke? Ive tested them all and I cant seem to get any working :/
Re: function to easily align text for display (actually, 4 n
icester: errors. Are you getting any? What are they? Help us help you.
Re: function to easily align text for display (actually, 4 n
Great script, demonnic. Very helpful. Just what I was looking for!
Re: function to easily align text for display (actually, 4 n
Happy to help =)
I remember the night I wrote this... and I need to go back and make sure I fixed it up to respect the x/d/cecho tags.
I remember the night I wrote this... and I need to go back and make sure I fixed it up to respect the x/d/cecho tags.
Re: function to easily align text for display (actually, 4 n
Newly fixed up to properly calculate the string length when using color tags in the text for a [c|d|h]align() function. Slightly embarrassed I didn't catch that much much sooner, and more so it took me so long to post the fix.
Re: function to easily align text for display (actually, 4 n
New version pushed to github. Fixes issues with the color_names being used instead of colorNames.
Re: function to easily align text for display (actually, 4 n
sorry to revive such an ancient thread, but I have a question...
If I wanted to use this as part of a script, one kinda aimed towards novices to show them mudlet can be helpful and pretty, how could I go about it? Both from the perspective of easy 'installation' and also giving credit where credit is due. I don't really want to have to direct people to go to github, find the latest code, copy it into a new script and name that script "align" for safe measure. Is there a better way others would do it? Could I add it as a file within my package, with information/links to the github, BUT somehow have that not cause conflict if they already have a version of it (such as in the combined 'demonnic' pack for lusternia)
If I wanted to use this as part of a script, one kinda aimed towards novices to show them mudlet can be helpful and pretty, how could I go about it? Both from the perspective of easy 'installation' and also giving credit where credit is due. I don't really want to have to direct people to go to github, find the latest code, copy it into a new script and name that script "align" for safe measure. Is there a better way others would do it? Could I add it as a file within my package, with information/links to the github, BUT somehow have that not cause conflict if they already have a version of it (such as in the combined 'demonnic' pack for lusternia)