Cleanup
This commit is contained in:
parent
4763463469
commit
2f9ca2d5ca
5
init.lua
5
init.lua
|
@ -1740,7 +1740,8 @@ local function get_inventory_mode(player, fs, data, full_height)
|
||||||
fs(fmt("image", i + 0.234 + (i * 0.25), 6.1, 1, 1, "i3_hb_bg.png"))
|
fs(fmt("image", i + 0.234 + (i * 0.25), 6.1, 1, 1, "i3_hb_bg.png"))
|
||||||
end
|
end
|
||||||
|
|
||||||
fs("listring[current_player;main]",
|
fs("listcolors[#bababa50;#bababa99]",
|
||||||
|
"listring[current_player;main]",
|
||||||
"list[current_player;main;0.234,6.1;8,1;]",
|
"list[current_player;main;0.234,6.1;8,1;]",
|
||||||
"list[current_player;main;0.234,7.4;8,3;8]")
|
"list[current_player;main;0.234,7.4;8,3;8]")
|
||||||
|
|
||||||
|
@ -1776,8 +1777,6 @@ local function get_inventory_mode(player, fs, data, full_height)
|
||||||
fs("style_type[label;font=bold;font_size=+6]", fmt("label", xoffset, yoffset + 0.2, ESC(name)),
|
fs("style_type[label;font=bold;font_size=+6]", fmt("label", xoffset, yoffset + 0.2, ESC(name)),
|
||||||
"style_type[label;font=normal;font_size=+0]", fmt("box", xoffset, yoffset + 0.5, 5.5, 0.05, "#666"))
|
"style_type[label;font=normal;font_size=+0]", fmt("box", xoffset, yoffset + 0.5, 5.5, 0.05, "#666"))
|
||||||
|
|
||||||
fs("listcolors[#bababa50;#bababa99]")
|
|
||||||
|
|
||||||
local hp = data.hp or player:get_hp()
|
local hp = data.hp or player:get_hp()
|
||||||
local half = ceil((hp / 2) % 1)
|
local half = ceil((hp / 2) % 1)
|
||||||
local hearts = (hp / 2) + half
|
local hearts = (hp / 2) + half
|
||||||
|
|
Ŝarĝante…
Reference in New Issue