From 32a37a88f4b48f3b531ddce5550d3f5fa535b4ca Mon Sep 17 00:00:00 2001 From: xolatile Date: Thu, 6 Jun 2024 09:46:18 -0400 Subject: [PATCH] Resized tiny fill bars (right) and added HP, MP and SP... --- source/main.adb | 14 ++++++++++---- ui/dwarf/tiny_fill_bar_right.png | Bin 359 -> 354 bytes ui/fairy/tiny_fill_bar_right.png | Bin 360 -> 353 bytes ui/gnoll/tiny_fill_bar_right.png | Bin 418 -> 400 bytes ui/goblin/tiny_fill_bar_right.png | Bin 354 -> 341 bytes ui/imp/tiny_fill_bar_right.png | Bin 298 -> 296 bytes ui/kobold/tiny_fill_bar_right.png | Bin 525 -> 507 bytes ui/main/tiny_fill_bar_right.png | Bin 257 -> 254 bytes 8 files changed, 10 insertions(+), 4 deletions(-) diff --git a/source/main.adb b/source/main.adb index 864aa3c..1ffc20c 100644 --- a/source/main.adb +++ b/source/main.adb @@ -143,8 +143,10 @@ procedure main is x : constant integer := preview_width + core.icon; y : constant integer := core.icon; width : constant integer := side_panel - 2 * core.icon; - height : constant integer := 640; + height : constant integer := 480; offset : constant integer := 8; + at_x : integer := 0; + at_y : integer := 0; begin ui.draw_frame ("--", x, y, width, height); ui.draw_sprite (chad.view (player.index), chad.description (player.index).name.all, x + offset, y + offset, 0); @@ -181,9 +183,13 @@ procedure main is move_x := move_x + core.icon; end loop; end; - --~ui.draw_tiny_fill_bar (x + chad.view_width + 2 * 8, y + 1 * core.icon + 8, 360 - chad.view_width - 8, float (player.health.value) / float (player.health.limit), (127, 0, 0, 255)); - --~ui.draw_tiny_fill_bar (x + chad.view_width + 2 * 8, y + 2 * core.icon + 8, 360 - chad.view_width - 8, float (player.mana.value) / float (player.mana.limit), (0, 0, 127, 255)); - --~ui.draw_tiny_fill_bar (x + chad.view_width + 2 * 8, y + 3 * core.icon + 8, 360 - chad.view_width - 8, float (player.movement.value) / float (player.movement.limit), (0, 127, 0, 255)); + -- + at_x := x + offset; + at_y := y + offset + chad.view_height + core.icon; + -- + ui.draw_tiny_fill_bar (at_x, at_y + 0 * core.icon, width - 2 * offset, float (player.health.value) / float (player.health.limit), (127, 0, 0, 255)); + ui.draw_tiny_fill_bar (at_x, at_y + 1 * core.icon, width - 2 * offset, float (player.mana.value) / float (player.mana.limit), (0, 0, 127, 255)); + ui.draw_tiny_fill_bar (at_x, at_y + 2 * core.icon, width - 2 * offset, float (player.movement.value) / float (player.movement.limit), (0, 127, 0, 255)); -- --~ui.write (text => "Health " & player.health.value'image & " /" & player.health.limit'image, --~x => x + chad.view_width + core.icon + 3 * 8, diff --git a/ui/dwarf/tiny_fill_bar_right.png b/ui/dwarf/tiny_fill_bar_right.png index 1d9f15d86e4f79e47313fdef5c112330e5e8b190..c35665a1cb6ea10ac862257107da94c203b944d2 100644 GIT binary patch delta 341 zcmV-b0jmDz0^$N8iBL{Q4GJ0x0000DNk~Le0000O0000W2nGNE00>^VIFTV3e-ueX zK~zY`?Ulii!ypVrKOP!L3u?hFsD*3^swFj0LTXS8Zb2=igzP0a_HJy1e8^-bnqlAo zdcfBQ;2ZCbL`3)AMP`<~bF+wa@2Zq?_d=40bf18TP)c!~Br$Uc;Dv-Vr~nTnzgob| zFf$MlR29s;TBNG;SVVR;88)h9f7Snux`En61Y0*TMC;oN$({B857N4>+>>0#>l!fq zG$DhxYV=0HRGtlhj#rr3?sdg9xY-P8Y0?iE1vrs=dOo`Ir8ky-sRkUp0$1#4@N?}=9{w_`7Oms}E0DLIWRC`( nFEa#qJO{2%KMF|r#>d1jA6EENDE;}C00000NkvXXu0mjfFDsFJ delta 346 zcmV-g0j2)p0_OrDiBL{Q4GJ0x0000DNk~Le0000W0000W2nGNE0CReJ^pPPLe;G+c zK~z}7?UvmQ!Y~YkuT>Uc1+UN*yaJ5iS(qUsFoRcM1+Tye@X}wPQWBddYAI@8()*fR zE(VVJ_v(n~Sv$$hx+s7oBGr>}&d(@_PDH9#fQXQD4q1tgnVSHjAeuZd0YpHgZy#i4 zm>Gx&stRV_Oj6bPT|``-=yzPce|f&w1UL;5LCZ?+0+dt~M5;Xh9}wQ{NHyX*+_nJs ziyNXZb-g|axaVa6(BTF%b8SbP2Oc&u*)cU|9qVd>%1rpsJ_&I*E1~; zXVe(pG@5w*080UVLo$QyF&%@&Et;07*qoM6N<$f-^CYQ2+n{ diff --git a/ui/fairy/tiny_fill_bar_right.png b/ui/fairy/tiny_fill_bar_right.png index f5a7f54636554f9fa7e5f3785efc81d309a41c63..55bbe08f7fb00c3ddf53ec87cb53bcb9e4e03112 100644 GIT binary patch delta 340 zcmV-a0jvJ#0^tH7iBL{Q4GJ0x0000DNk~Le0000Q0000W2nGNE01T^W1(6{be-lYW zK~zY`?UvCIgCGose|jv?6*2=OIEynlf-^7zGcbZPWCcgC50tYiMS^Y5>zOwZ`I7J_ z5xDH^rid^}K46Bb0qJ2V-)u~MMB4kZjZJebb+=#LQ8uEs1(=s>M3`#sX*YH2lnn!5 zOc0O+sHL8HA7D>$6azH?I0q1Ie_wW8Qr?JJkN`CRSesT=YVFk_2~eE67-iqffQkrH zNsSPN$QfZX!Eb=;OvD0bhLX3Sdpkdj41$Mq@12W4{fT0=eCyogK0000#{HwTxhL;^ z0=NCURYVv|9yo_e5)x8i3zeGCo+hB4dF0b~n8Nz}5|X@K2T5S;~s`x=7K zyaHG%1j#Ch#Z}7j?hr^hUIA>ih3#{Oye>R%(|4+;-bp_5#P4hY`)LmdF4A002ovPDHLkV1g;^i=zMl diff --git a/ui/gnoll/tiny_fill_bar_right.png b/ui/gnoll/tiny_fill_bar_right.png index de859fc4f95332cdf8beb7b162d8190c56311074..64634e482c479471b367ff5b079cd8d0339c19f9 100644 GIT binary patch delta 387 zcmV-}0et?V1CRqDiBL{Q4GJ0x0000DNk~Le0000O0000W2nGNE00>^VIFTV3e?mz_ zK~zY`?UwJ2gD?!mUn>@11+PFy@Cvs=R_F>h11sDL9sySH2<-^;12WB}2}wx%<#d*i z5P#k;HYR>RCaA}PPX+Z@ZdWWVkn^7Sp|{<-{$RfXfKzJ^oG-5L=lqF1m{Q zkSf6K`U>#H4d6pc<1zxBUxpAOe+uxIgZzw}co%3B|)6d3hSvR@VxKpS; zSFN)k^=xe1W(UsXo)Fv>q01ViBL{Q4GJ0x0000DNk~Le0000W0000W2nGNE0CReJ^pPPLe^g0C zK~z}7?U&JYgD?z5UwT-86|@2!K`V3xuaFfw11n?&jX+k=2+0WagBo0eu?=?f6P=T< z0PpgU;0cHnwHWcLq88)him@id$Da6L08wBt^_;lG#BDJFpFN<@?Q;$TY~7hFE;@<3 z5IGeCzC5mL09V`sxDct8;#lL_f9yku0{mqlw|*869q(5v=q>$kTRS;3|zoIXqScwQkq~4n_CeF+-#+-&| zj-Ghb@*)l}PvdEwc!>jNg-sZKLz_Kxo9j8 zEha96D_(pt*;~ylL@n{8<^VIFTV3e+NlK zK~zY`?N!?igD?!dR4kAcyh2vESu#Uc=nAaR6|w>=cm+nFALZGiVuz3ZUSwtX-(Ebg46ntX=Eu}2;lcO@5 zlA8sbBuFCXJd;_Km@HD&&D~>{IfGB|^;V5w8-i)84l^J*+oGx~MPWmnY00008@Pzc?}`rN85Nl)6xYN@IeHNNxt z+ypq|-@}Q=P`b%_I2M5>hVo5qhk-@H#Zaz*c%bb#N?d9-Sr5bj)U@wS0hO{O;<-u` zn@~KLgcFZpopeelLHFhF5|u>rf3aGTomGW(Y159$6E)LOY(f!%1cmia;G@QDaz08a zE%mF8%5appMXmNL3J6= zbZ-&Ed-dbvXeL~PGQq3Q0v7m31w>@`N7UY~H1MjkfC*l8Az^|8K(kI*D@x=j_@N64 n1H4)R7WfeYv|I5RXZ$=KKi|M;%iW^d00000NkvXXu0mjfafgxd diff --git a/ui/imp/tiny_fill_bar_right.png b/ui/imp/tiny_fill_bar_right.png index 1f574f3285a300c4ec730cfac8be151f433c87c6..46e5b5f9705bdf9088a2ffe1e2415d2abdf01f74 100644 GIT binary patch delta 282 zcmV+#0p^VIFTV3f7(ez zK~zY`?UvmUgCG!uKQmNvwNML1Q46(PE9N1RFeYPGl<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