From 28bc931b6fff40d5a125eff34d93d2e327a32f6a Mon Sep 17 00:00:00 2001 From: Fulldroper <40297614+Fulldroper@users.noreply.github.com> Date: Wed, 14 Oct 2026 10:13:46 +0300 Subject: [PATCH] Player row: a cell sunk into the andesite casing, darker wood inside Co-Authored-By: Claude Opus 5.5 --- .../createrp/textures/gui/sprites/tab_row.png | Bin 265 -> 248 bytes .../textures/gui/sprites/tab_row.png.mcmeta | 2 +- tools/branding/build.py | 17 ++++++++++------- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/branding/resources/createrp/textures/gui/sprites/tab_row.png b/branding/resources/createrp/textures/gui/sprites/tab_row.png index 2c9744fd3d367ed0edece8c3dae1b8563b44632d..8d823220734f3a20f8fcb7eb0ce0a472a6861cf5 100644 GIT binary patch literal 248 zcmV~Yj4O}P;6x$g|Uqri{B4*K$Cf}d*(QNkH34dUk zm)rG%`*T3w`Vd+Z9)kf%w;%2P{|5Q~$Vil$X~UaS+>s!K7>CjnW*&1>*^ y5D7r~`0mLw=*H%wiEKQF_uqPbI2EV(wY>q>FlXcxi=h<&0000O8U_z3V zIqwONwnL1A#*@S2*@MZ!k<0p}e%@~yFgt9U0K=_)VZ|O#0oH+_4W6%eY*wSDiG9|@ zz_{Go#eO!T@1=CBP;;q?fcTr2P5>TmRO6?z`9Ql>L>hyQvv8{!YW!4;pP~g8aVU?J zgXV|V`YA6w%xR9PSVK)RJ*?JG`fGpP!jR`Tp-p2m)q0KJ9ZtuwgFoO6_xO1PYUuOH P00000NkvXXu0mjfk+yae diff --git a/branding/resources/createrp/textures/gui/sprites/tab_row.png.mcmeta b/branding/resources/createrp/textures/gui/sprites/tab_row.png.mcmeta index 31def43..d733e47 100644 --- a/branding/resources/createrp/textures/gui/sprites/tab_row.png.mcmeta +++ b/branding/resources/createrp/textures/gui/sprites/tab_row.png.mcmeta @@ -1 +1 @@ -{"gui": {"scaling": {"type": "nine_slice", "width": 32, "height": 8, "border": 1}}} +{"gui": {"scaling": {"type": "nine_slice", "width": 34, "height": 8, "border": 1}}} diff --git a/tools/branding/build.py b/tools/branding/build.py index 1e6dcea..e9a8fef 100644 --- a/tools/branding/build.py +++ b/tools/branding/build.py @@ -643,16 +643,19 @@ def main() -> None: for (y, x), (ty, tx) in (((1, 1), (0, 0)), ((1, 28), (0, 13)), ((28, 1), (13, 0)), ((28, 28), (13, 13))): frame[y:y + 3, x:x + 3, :3] = casing_tile[ty:ty + 3, tx:tx + 3] Image.fromarray(frame, 'RGBA').save(sprites / 'tab_frame.png') - # a player's row: a recessed strip of darker wood, shadow above, the frame's light below - row = np.zeros((8, 32, 4), np.uint8) + # a player's row: a cell sunk into the casing — andesite rim lit from below (shadow on top and left, light on the + # bottom and right), inside the same wood, darker. 34 px wide so the 32 px middle repeats the 16 px wood seamlessly. + rim_light, rim_dark = casing_tile[1, 8], casing_tile[14, 8] + row = np.zeros((8, 34, 4), np.uint8) row[..., 3] = 255 - row[:, :, :3] = np.clip(np.tile(casing_wood / 0.8, (1, 2, 1))[:8, :32] * 0.34, 0, 255) - row[0, :, :3] = np.clip(row[0, :, :3] * 0.5, 0, 255) - row[:, 0, :3] = np.clip(row[:, 0, :3] * 0.6, 0, 255) - row[7, :, :3] = casing_tile[1, 8] + row[1:7, 1:33, :3] = np.clip(np.tile(casing_wood / 0.8, (1, 3, 1))[2:8, :32] * 0.45, 0, 255) + row[0, :, :3] = np.clip(rim_dark * 0.7, 0, 255) + row[:, 0, :3] = np.clip(rim_dark * 0.7, 0, 255) + row[7, 1:, :3] = rim_light + row[1:, 33, :3] = rim_light Image.fromarray(row, 'RGBA').save(sprites / 'tab_row.png') (sprites / 'tab_row.png.mcmeta').write_text( - '{"gui": {"scaling": {"type": "nine_slice", "width": 32, "height": 8, "border": 1}}}\n', encoding='utf-8', newline='\n') + '{"gui": {"scaling": {"type": "nine_slice", "width": 34, "height": 8, "border": 1}}}\n', encoding='utf-8', newline='\n') (sprites / 'tab_frame.png.mcmeta').write_text( '{"gui": {"scaling": {"type": "nine_slice", "width": 32, "height": 32, "border": 4}}}\n', encoding='utf-8', newline='\n')