mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
use proper colors in mcl_books
This commit is contained in:
parent
a2fcd28a3d
commit
f8a627915e
2 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
local S =minetest.get_translator("mcl_books")
|
local S = minetest.get_translator("mcl_books")
|
||||||
|
|
||||||
local max_text_length = 4500 -- TODO: Increase to 12800 when scroll bar was added to written book
|
local max_text_length = 4500 -- TODO: Increase to 12800 when scroll bar was added to written book
|
||||||
local max_title_length = 64
|
local max_title_length = 64
|
||||||
|
@ -67,7 +67,7 @@ local make_description = function(title, author, generation)
|
||||||
else
|
else
|
||||||
desc = S("Tattered Book")
|
desc = S("Tattered Book")
|
||||||
end
|
end
|
||||||
desc = desc .. "\n" .. minetest.colorize("#AAAAAA", S("by @1", author))
|
desc = desc .. "\n" .. minetest.colorize(mcl_colors.GRAY, S("by @1", author))
|
||||||
return desc
|
return desc
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -147,8 +147,8 @@ minetest.register_on_player_receive_fields(function ( player, formname, fields )
|
||||||
local formspec = "size[8,9]"..
|
local formspec = "size[8,9]"..
|
||||||
header..
|
header..
|
||||||
"background[-0.5,-0.5;9,10;mcl_books_book_bg.png]"..
|
"background[-0.5,-0.5;9,10;mcl_books_book_bg.png]"..
|
||||||
"field[0.75,1;7.25,1;title;"..minetest.formspec_escape(minetest.colorize("#000000", S("Enter book title:")))..";]"..
|
"field[0.75,1;7.25,1;title;"..minetest.formspec_escape(minetest.colorize(mcl_colors.BLACK, S("Enter book title:")))..";]"..
|
||||||
"label[0.75,1.5;"..minetest.formspec_escape(minetest.colorize("#404040", S("by @1", name))).."]"..
|
"label[0.75,1.5;"..minetest.formspec_escape(minetest.colorize(mcl_colors.DARK_GRAY, S("by @1", name))).."]"..
|
||||||
"button_exit[0.75,7.95;3,1;sign;"..minetest.formspec_escape(S("Sign and Close")).."]"..
|
"button_exit[0.75,7.95;3,1;sign;"..minetest.formspec_escape(S("Sign and Close")).."]"..
|
||||||
"tooltip[sign;"..minetest.formspec_escape(S("Note: The book will no longer be editable after signing")).."]"..
|
"tooltip[sign;"..minetest.formspec_escape(S("Note: The book will no longer be editable after signing")).."]"..
|
||||||
"button[4.25,7.95;3,1;cancel;"..minetest.formspec_escape(S("Cancel")).."]"
|
"button[4.25,7.95;3,1;cancel;"..minetest.formspec_escape(S("Cancel")).."]"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name = mcl_books
|
name = mcl_books
|
||||||
author = celeron55
|
author = celeron55
|
||||||
description = Books mod for MCL2
|
description = Books mod for MCL2
|
||||||
optional_depends = mcl_init, mcl_core, mcl_sounds, mcl_mobitems, mcl_dye
|
optional_depends = mcl_init, mcl_core, mcl_sounds, mcl_mobitems, mcl_dye, mcl_colors
|
||||||
|
|
Loading…
Reference in a new issue