mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 16:31:43 -04:00
Mix colors for unread/cc in inbox with selected green
This commit is contained in:
parent
5e52138881
commit
3dcba740c0
1 changed files with 22 additions and 8 deletions
16
ui/inbox.lua
16
ui/inbox.lua
|
@ -56,8 +56,21 @@ function mail.show_inbox(name, sortfieldindex, sortdirection, filter)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if selected_id > 0 then
|
if selected_id > 0 then
|
||||||
|
if not message.read then
|
||||||
|
if not mail.player_in_list(name, message.to) then
|
||||||
|
formspec[#formspec + 1] = ",#A39E5D"
|
||||||
|
else
|
||||||
|
formspec[#formspec + 1] = ",#A39E19"
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if not mail.player_in_list(name, message.to) then
|
||||||
|
formspec[#formspec + 1] = ",#899888"
|
||||||
|
else
|
||||||
formspec[#formspec + 1] = ",#466432"
|
formspec[#formspec + 1] = ",#466432"
|
||||||
elseif not message.read then
|
end
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if not message.read then
|
||||||
if not mail.player_in_list(name, message.to) then
|
if not mail.player_in_list(name, message.to) then
|
||||||
formspec[#formspec + 1] = ",#FFD788"
|
formspec[#formspec + 1] = ",#FFD788"
|
||||||
else
|
else
|
||||||
|
@ -70,6 +83,7 @@ function mail.show_inbox(name, sortfieldindex, sortdirection, filter)
|
||||||
formspec[#formspec + 1] = ","
|
formspec[#formspec + 1] = ","
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
formspec[#formspec + 1] = ","
|
formspec[#formspec + 1] = ","
|
||||||
formspec[#formspec + 1] = minetest.formspec_escape(message.from)
|
formspec[#formspec + 1] = minetest.formspec_escape(message.from)
|
||||||
formspec[#formspec + 1] = ","
|
formspec[#formspec + 1] = ","
|
||||||
|
|
Loading…
Add table
Reference in a new issue