Compare commits

...

5 Commits

Author SHA1 Message Date
251a8b1bc9 Show fav icon only once 2020-02-03 00:31:14 +01:00
4dd40e06f5 New favorite icons 2020-02-02 21:39:56 +01:00
f9f9988868 Fix crash in progressive mode 2020-01-23 00:22:05 +01:00
dcb479dc44 Fix color in HUD 2020-01-22 00:06:47 +01:00
82bb95387e style 2020-01-12 23:30:57 +01:00
3 changed files with 5 additions and 14 deletions

View File

@ -892,17 +892,7 @@ local function get_grid_fs(data, fs, rcp, spacing)
end
local function get_panels(data, fs)
local start_y
if data.fs_version >= 3 then
if sfinv_only then
start_y = 0.33
else
start_y = 0
end
else
start_y = 0.33
end
local start_y = data.fs_version >= 3 and (sfinv_only and 0.33 or 0) or 0.33
local panels = {
{dat = data.usages or {}, height = 3.5},
@ -925,7 +915,7 @@ local function get_panels(data, fs)
fs[#fs + 1] = fmt("background9[8.1,%f;6.6,%f;%s;false;%d]",
-0.2 + spacing, v.height, PNG.bg_full, 10)
if data.fs_version >= 3 and k ~= "favs" then
if data.fs_version >= 3 and k == 2 then
local fav = is_fav(data)
local nfavs = #data.favs
@ -1624,7 +1614,8 @@ local function fields(player, _f)
end
local recipes, usages = get_recipes(item, data, player)
if not recipes and not usages then return end
if not recipes and not usages then return end
if data.show_usages and not usages then return end
data.query_item = item
data.recipes = recipes
@ -1982,7 +1973,7 @@ if progressive_mode then
hud_elem_type = "text",
position = {x = 0.84, y = 1.04},
alignment = {x = 1, y = 1},
number = 0xfff,
number = 0xffffff,
text = "",
},
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 916 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB