Add holiday box color

master
Wuzzy 2020-08-27 23:18:37 +02:00
parent cad42eedda
commit 995192fe67
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ end
local F = minetest.formspec_escape
local COLOR_HOLIDAY = "#00FF00"
local COLOR_DAYBOX_HOLIDAY = "#00200080"
local COLOR_DAYBOX = "#00000080"
local COLOR_DAYBOX_TODAY = "#FFFFFF80"
@ -83,6 +84,7 @@ function calendar.show_calendar(player_name, settings, wanted_months, wanted_yea
if #holidays > 0 then
table.insert(tooltip_lines, minetest.colorize(COLOR_HOLIDAY, holidays[1].name))
day_str = minetest.colorize(COLOR_HOLIDAY, day_str)
box_color = COLOR_DAYBOX_HOLIDAY
end
if tdays == total_days then
box_color = COLOR_DAYBOX_TODAY