From 96398cafdff8c991fc97ec9528a2b6083e8c9720 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Tue, 26 Jan 2021 02:01:31 +0100 Subject: [PATCH] Make slots and boxes look better --- init.lua | 9 ++++++--- textures/i3_hb_bg.png | Bin 1284 -> 0 bytes 2 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 textures/i3_hb_bg.png diff --git a/init.lua b/init.lua index d5f1c51..56eff3f 100644 --- a/init.lua +++ b/init.lua @@ -1813,14 +1813,16 @@ local function get_award_list(fs, ctn_len, yextra, award_list, awards_unlocked, end fs(fmt("image", 0, y + 0.01, icon_size, icon_size, icon), - fmt("box", icon_size + 0.1, y, box_len, icon_size, "#bababa25")) + "style_type[box;colors=#bababa30,#bababa30,#bababa05,#bababa05]", + fmt("box", icon_size + 0.1, y, box_len, icon_size, "")) if progress then local current, target = progress.current, progress.target local curr_bar = (current * box_len) / target fs(fmt("box", icon_size + 0.1, y + 0.8, box_len, 0.3, "#101010"), - fmt("box", icon_size + 0.1, y + 0.8, curr_bar, 0.3, "#9dc34c"), + "style_type[box;colors=#9dc34c80,#9dc34c,#9dc34c,#9dc34c80]", + fmt("box", icon_size + 0.1, y + 0.8, curr_bar, 0.3, ""), "style_type[label;font_size=14]", fmt("label", icon_size + 0.5, y + 0.97, fmt("%u / %u", current, target))) @@ -2177,9 +2179,10 @@ local function get_inv_slots(data, fs) local inv_x, inv_y = 0.234, 6.6 local width, size, spacing, extra = HOTBAR_COUNT, 0.96, 0.15, 0 local bag = data.bag_size + fs("style_type[box;colors=#77777710,#77777710,#777777,#777777]") for i = 0, HOTBAR_COUNT - 1 do - fs(fmt("image", i + inv_x + (i * 0.1), inv_y, size, size, "i3_hb_bg.png")) + fs(fmt("box", i + inv_x + (i * 0.1), inv_y, size, size, "")) end fs(fmt("style_type[list;size=%f;spacing=%f]", size, spacing), diff --git a/textures/i3_hb_bg.png b/textures/i3_hb_bg.png deleted file mode 100644 index f238e458e3330f6fbbe2bce0b8aee8ec433d9ca3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1284 zcmV+f1^fDmP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+U=HGlH4E+MgLhvmVhLL#Bwm0s_Y=k&jmlGduH;g z>)Q+09JD>#gP%{>PoYcr6qGqLW6&Rigq;sNrBkTv#~>HC$51yu`gS_5 zP|j0qN#7##K0F$dAxmB1CCs~!#C7!}0+}aCML(}BiRUOU3kP(%TVb_2d2|4(hG%+rj$ z2_O`!$-t&a1+0`5^<&9VLsdnSs%ACyphatzoU-PeEzeD^npiTmY-Vo7s*5LA&u;Es zycRBkJy1(7R=ku_D~F1SDzqy6D=ZstvZYP8yxHbk*=j@iwA8faX3bk^wR4w_ZKCIH z-FxYEr?6wE*we0i-fj22>~)~lhKw|H`E;>ahLJf)l00D(*LqkwWLqi~Na&Km7Y-Iodc$|HaJxIe)6opSyMUkq5 z9f~+)sDfZYRK!uMP=pGhR%q41VH5$GS;m|sCE;6N z_tZ^w7vov}eScQ3nzI-X5Q%4*VcNtS#M7I$!FiuJ%!;x~d`>)O(glehxvqHp#<}3K zz%#>UIyFxmCKd~Ath6yJni}yGaa7fG$`>*otDLtuYvn3y-jlyDl+#z1xlU^c2`pj> z5=1DdqJ%PR#Aw$^v5=zkxQ~C(^-JVZ$W;O(#{w$QAiI9>KlnXcD?d5mC57TZ=ZoWf z3(i|qi@Or1GhlWnm4!RIZhvdG|eh`0~{OzBL&J{_jz}B``rHRY0mElH&t?vyq