[Feature Request] Colors in descriptions and item names

User avatar
lisacvuk
Member
 
Posts: 165
Joined: Sat Jul 19, 2014 11:52
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

[Feature Request] Colors in descriptions and item names

by lisacvuk » Fri Dec 25, 2015 13:38

I've got a Christmas wish. I would like that Minetest supports colors in descriptions and item names. Something like this...
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
"^3This text is red.^5This text is blue."

I just hope its not too much to ask for :D
400 character limit? Am I writing a book?
I'm a Minetest player, 'learning' C++ and OpenGL, listening to Blind Guardian, Nightwish, Amon Amarth. Administrator on Craig's server. Likes cookies.
I live in Serbia.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Feature Request] Colors in descriptions and item names

by rubenwardy » Fri Dec 25, 2015 13:43

This should be accompanied by allowing tools tips of an item to be changed at run time, using meta data.
 

User avatar
kaadmy
Member
 
Posts: 627
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: [Feature Request] Colors in descriptions and item names

by kaadmy » Fri Dec 25, 2015 16:53

@lisacvuk: Is that Quake inspiration?

@lisacvuk, @rubenwardy: +1 to both ideas :)
Never paint white stripes on roads near Zebra crossings.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Feature Request] Colors in descriptions and item names

by Calinou » Fri Dec 25, 2015 20:59

kaadmy wrote:@lisacvuk: Is that Quake inspiration?


If we ever go for Quake-style coloring, I would much prefer an Xonotic or Unvanquished-style syntax like this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
^xFFFWhite text, ^xF00Red text


This would be even better (4th component being the alpha channel):

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
^xFFFFWhite opaque text, ^xF008Red semi-transparent text
 

User avatar
everamzah
Member
 
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Feature Request] Colors in descriptions and item names

by everamzah » Fri Dec 25, 2015 23:18

^3quake ^2style ^7would be super ^0l33t ^2for regular in-game chat, tho. ^1(c) bulat
bulat did not actually say that

edit: actually, there's a lot of stuff that i miss from quake. the most important thing to me when i started playing this game was +zoom. sorry to derail. (ps: \bind command, and \alias oh my oh my)
 

User avatar
kaadmy
Member
 
Posts: 627
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: [Feature Request] Colors in descriptions and item names

by kaadmy » Fri Dec 25, 2015 23:50

cvars FTW ;)
Never paint white stripes on roads near Zebra crossings.
 

User avatar
lisacvuk
Member
 
Posts: 165
Joined: Sat Jul 19, 2014 11:52
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: [Feature Request] Colors in descriptions and item names

by lisacvuk » Sat Dec 26, 2015 22:03

Yeah, from Quake :D
My next suggestion would be binds. But later on that.
I really like the transparency idea.
This would make it possible to make mods that list item qualities, like in Team Fortress 2 for example, or for changing the color of the item name according to the number of times it was dug (making the fresh-crafted ones more statisfying to place :D)
400 character limit? Am I writing a book?
I'm a Minetest player, 'learning' C++ and OpenGL, listening to Blind Guardian, Nightwish, Amon Amarth. Administrator on Craig's server. Likes cookies.
I live in Serbia.
 

asanetargoss
Member
 
Posts: 36
Joined: Sun Apr 26, 2015 03:10

Re: [Feature Request] Colors in descriptions and item names

by asanetargoss » Tue Dec 29, 2015 20:27

rubenwardy wrote:This should be accompanied by allowing tools tips of an item to be changed at run time, using meta data.


As someone less familiar with the modding API, I am surprised this is not already a feature!
 

User avatar
kaadmy
Member
 
Posts: 627
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: [Feature Request] Colors in descriptions and item names

by kaadmy » Tue Dec 29, 2015 23:22

Or even better: allow tools to change dig capabilities with metadata.
Custom tools ;)
Never paint white stripes on roads near Zebra crossings.
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Feature Request] Colors in descriptions and item names

by sofar » Tue Jan 05, 2016 00:37

I'm working on a PR to support custom ItemStack text - the thing that gets displayed in the tooltip.

https://github.com/minetest/minetest/pull/3449

once that is done, I don't see why that code couldn't be enhanced to support color.
 

User avatar
lisacvuk
Member
 
Posts: 165
Joined: Sat Jul 19, 2014 11:52
GitHub: lisacvuk
IRC: lisac
In-game: lisacvuk

Re: [Feature Request] Colors in descriptions and item names

by lisacvuk » Tue Jan 05, 2016 02:32

sofar wrote:I'm working on a PR to support custom ItemStack text - the thing that gets displayed in the tooltip.

https://github.com/minetest/minetest/pull/3449

once that is done, I don't see why that code couldn't be enhanced to support color.


Awesome! I can try to help adding colors to it, but with my limited knowledge of C++, I'm not sure I can.
400 character limit? Am I writing a book?
I'm a Minetest player, 'learning' C++ and OpenGL, listening to Blind Guardian, Nightwish, Amon Amarth. Administrator on Craig's server. Likes cookies.
I live in Serbia.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 6 guests

cron