mirror of
https://github.com/mt-mods/mail.git
synced 2025-08-23 08:17:24 -04:00
Harmonize function names with snake case
This commit is contained in:
parent
6f7ccc77bd
commit
1c5e4b6cd6
9 changed files with 19 additions and 19 deletions
|
@ -27,7 +27,7 @@ local function rgb2hex(rgb)
|
|||
return "#" .. string.format("%x", rgb.r) .. string.format("%x", rgb.g) .. string.format("%x", rgb.b)
|
||||
end
|
||||
|
||||
local function rgbColorsMix(colors)
|
||||
local function rgb_colors_mix(colors)
|
||||
local R = 0
|
||||
local G = 0
|
||||
local B = 0
|
||||
|
@ -52,7 +52,7 @@ function mail.get_color(mix)
|
|||
for _, c in ipairs(mix) do
|
||||
colors2mix[#colors2mix+1] = hex2rgb(get_base_color(c))
|
||||
end
|
||||
local mixed_color = rgbColorsMix(colors2mix)
|
||||
local mixed_color = rgb_colors_mix(colors2mix)
|
||||
return rgb2hex(mixed_color)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ function mail.compile_contact_list(name, selected, playernames)
|
|||
|
||||
if playernames == nil then
|
||||
local length = 0
|
||||
for k, contact, i, l in mail.pairsByKeys(contacts) do
|
||||
for k, contact, i, l in mail.pairs_by_keys(contacts) do
|
||||
if i == 1 then length = l end
|
||||
formspec[#formspec + 1] = ","
|
||||
formspec[#formspec + 1] = ","
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue