From a8d824ad1611bd59f60b1709c7553493adec8758 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 8 May 2024 01:00:06 +0200 Subject: [PATCH] add symbols to gauges --- assets/sprites/gauge_battery.png | Bin 0 -> 1113 bytes assets/sprites/gauge_fuel.png | Bin 0 -> 3579 bytes assets/sprites/gauge_heart.png | Bin 0 -> 3048 bytes assets/sprites/gauge_o2.png | Bin 0 -> 2318 bytes assets/sprites/gauge_suit.png | Bin 0 -> 1235 bytes src/hud.rs | 20 ++++--- src/svg/gauge_battery.svg | 99 +++++++++++++++++++++++++++++++ src/svg/gauge_fuel.svg | 90 ++++++++++++++++++++++++++++ src/svg/gauge_heart.svg | 92 ++++++++++++++++++++++++++++ src/svg/gauge_o2.svg | 91 ++++++++++++++++++++++++++++ src/svg/gauge_suit.svg | 95 +++++++++++++++++++++++++++++ 11 files changed, 479 insertions(+), 8 deletions(-) create mode 100644 assets/sprites/gauge_battery.png create mode 100644 assets/sprites/gauge_fuel.png create mode 100644 assets/sprites/gauge_heart.png create mode 100644 assets/sprites/gauge_o2.png create mode 100644 assets/sprites/gauge_suit.png create mode 100644 src/svg/gauge_battery.svg create mode 100644 src/svg/gauge_fuel.svg create mode 100644 src/svg/gauge_heart.svg create mode 100644 src/svg/gauge_o2.svg create mode 100644 src/svg/gauge_suit.svg diff --git a/assets/sprites/gauge_battery.png b/assets/sprites/gauge_battery.png new file mode 100644 index 0000000000000000000000000000000000000000..7c40cd5b46a36a90a27767620d3d4d1626f1ca5d GIT binary patch literal 1113 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K58911MRQ8&P5Fo`_;1OBOz`%DHgc*PN#1Wn&;7k0cxwNV zlyirQjCNJtMoz1a_wcx!Poq6O1J*&Uw8cQ@t*i{>!n-G1D^bAR*(E{>(|;h zv#Lj;*eF8bfTP&uSk)Y_r+Qgu91DN@Z(r;;&GhgwlgG=pEazt4aYAWzo6pK)emga? z{(EVE%lNIB{4II;7A;oBnl9VOZ>lM0uD>vp=VrRmV|O$7#Ej)H3}>@4y8O>ii#)J= z;ldx9zwPTFUm~#NX?;Y<9_B-|{BjyX^marmYR({l9e{zWaRNi*NH1>oa>> zSocOI`G+Xsv&OOlyRu1=EH%zrU5XN`F?-heJ#6ln`%Mepnw> z!X;pg1sV;ohFMkzviJ_vykaP}WO({~%lCS{=e4al%XlxG`O6oZyL3RJE0CVX+-A^f2y$jYny|Kgw%&Os|bPI~rBzc=VXbktW1$EN9zv)IpfF6PeO?YVWE h!7X(}O1t#`mihM8CapWO((OQYd%F6$taD0e0sx(7r<(u( literal 0 HcmV?d00001 diff --git a/assets/sprites/gauge_fuel.png b/assets/sprites/gauge_fuel.png new file mode 100644 index 0000000000000000000000000000000000000000..6a30f9081457dc4d11191897d5426ec0c97d0f8e GIT binary patch literal 3579 zcmZXW2{_bSAIE=VA7adcl4ZJbZP%8Rq>Qq4iJ7rP*DgwA$-a-}T9U2aLY5{=wiYc{ zV$2|_D@_uuLZT>1SzpBapW*F!-uph!|Nort`TalVd%owKnddp_WGgdKVQFCi5ItaS zOa(w85(PrMNaK6O!4_%If##0E0AlwzFX}-+)e)q)Da6Df#3sNyB;5U^7len0Yxwy4 z279^(dT9ilJX$zuAPvAXMz*vyLEu#Y8qjLMjs>JH@J2*E9AFXM?#tNSl0JA>%9JHx z*G{mi#~oVs;Es3QP20+XlP4QWS=y6~eR;sEq`xX1pB>M{UJfBXF}g zwH0%afw5`EkXaH|tr9j20)i2|Gs0u32+zP;BhDP2KxPmShQh>?5l=2d=6E77mdr#vxqLI$ znu({d@Z@GZ6%kAv88K|etqa7E3v--V*mZ`r#&Z}7i_0UUntzgb3O5+%Q!|c=FkFo5 ziKQ^HWUePC6%$WItT-?i`!CE5z#)-m4M1Ry4<|Vef!F8dhFmkGa^U|Oasdv{1=a*N z1}8s)amn?s95=2l;z{N14A%--EN6Q;6LB|WU97=KgAyg|H zK=JVM@e2qFp@l^@h>Bsvu{bKd9_+S_!t z>+aa8w@ZJw!JfT_B%^)%jZI9=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Qm9 z8~4l?<7oHvS97JmkW9py7rOo9_ zUW>h1R&bRcyQVZ<)aQ9@;(@~0!XKE^e501K772EcVnDBv*fwY)?blq%?(n;`zx_av zhnBV#(OcSFSB!gn()Uj8f;hY``!F_XOnO~>UyUDswRg|^J@dt$e$#aG`7+k(baw3a z)1)~?3x*ytaPW_!mFo|v6r@9yU+nJF!+Qs6B2esTbWUepG)RZ@$(`Z=T1lxZl zAw?$|N1b?nz0^Wt@8p5CH&va(b@QbRXf=Vd?@I)xP{(L&D=!}_{`A?@!QFe0H%tak zVKDS(NyTg#A~#vx7m%rl)>o0 zVpW`NcFz%CFKO$`t`UQN&KJu9%xjnZbV43l+Uv@M+2nsw%BQe&pDUg@A2ujwRpJX|>If?db| z=7Xm$t$i_38$YjXKh3~G6Ft`Qt?w{G4sfeW@(yOIcw6YGnikW?ZMP`}m@N$%{CH#v eo}6aW6X!Xv65$H}HUV!dAZL3wyE+^4+5Z91ZdZi> literal 0 HcmV?d00001 diff --git a/assets/sprites/gauge_o2.png b/assets/sprites/gauge_o2.png new file mode 100644 index 0000000000000000000000000000000000000000..47ed7d2567d1b5387e5a6326c906a11a7fac9e06 GIT binary patch literal 2318 zcmcJPdpML?9LLWXxz1oNGAW5!?blEapM2Se$WHfu;(YE{a|Gv*N=lq`Y`+h&)-^@GDNn_GI@LI-N006w_ zYBx3j7+7L}1{Q8nrEC4*rnz->U>pEC_2>uF$S)3uheq-4YvX}(8xN(j^2&mD>t03ZM<0UR-)wSbMVxB@)Ib3<>;;{0jsBi83! zC)2MGJ*x>Eu^zKt*Q-*8Q-f!T@ji7p&b67W8Us4i)REa$WV(>V5fj<9L|iO6&@$+woo5)pmH1eQpT1%b7CzCtovL}rS~zCsdHL}EZf4Ur`z zGN7i0z<`_@G8-C|hfFbS5tt%^uZX~g0wIARf_4&1OkxU2Y!Q(uBtkxvO?ROZ77z;s zN)3@ER(3zj2y7vo1Zqeun2r*l423`xEZ8En%S5L|XJexiqO+mh=@g|MCBUxI0=u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zu_*V1(gDp$XI8ggR)c729J*grSI? z>HB&58U_RQ^O*AuLsK;o_gxs*Y#dlL6Gv+|0&5o<&3!0wN$f6c-&fy%8S`SlT7D;W zN&m9R$f2l?mSh*C{W{k`b9T2%aaKy$f`I-;f1B`T^?b>dBm6d_JO;gj(s0(mJ9=y1 z$H?CuvP^E;SkDtIyuZ!7X>@Un?%{Qt(hVJ?sE9ALB literal 0 HcmV?d00001 diff --git a/assets/sprites/gauge_suit.png b/assets/sprites/gauge_suit.png new file mode 100644 index 0000000000000000000000000000000000000000..5de1f16ff2d84adcc87a55a3fe2140099a2bbb2c GIT binary patch literal 1235 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K58911MRQ8&P5Fo`_;1OBOz`%DHgc* z0Fv7nJogC&>=z2!FBrH_2#f>+_ktJ!Ag(Zw5d;;7$im1)x)N`IW{H;s`2{mDF|)9- z2Zu*YT(EHYij{ZnJ$Ur>+xOpHN2TsFFfhOLba4!+xb^n#?Xp`AJgtctng@L!?chA} z{{OPQZ(cDbdqx{i`~Cj*8qRt8Gj1ejTF7uHwg@=EiB!Mo*SDX)Iph5H>!&m2Kils= ze{RqGa)ZB*4cLujPM`n(Tjtd1>;J3&U1fdrdA;s}8TF}*XaBtBTJbDC)WQ7!ET-en zBWFCXy3Tx9=WM{cU*%%UZ-jo#3}XKCBaG{T(do}2TnSg0dzLb&*&Ybtda#Op$26uH z!b}d84b$}(cE9+rFOUWtmidQl%w9|OZ8@=SI+G`z-v-j_OG0E{$FsuKpD7#%vVCMh(++x{!Q~pTn zFX5>8ukb%^Q&j2F7q_aESD*i|=IJz@D!qN0M^~qK|DSg4JL8J*+UfsvyMOcO-}K~7n8mm-)?hhZE!zj2xQnoWFAC{QZsyQI5C- zJ~kYIn-D01BJ+YXA#>6snSw|ATpv~MI{y1t1)oLneWjniZx_3H{$_msE_%uS)$&&u zzU@1@kAeT!w=?W-GM2sL*>Gojx^05Lb!~dX(|xwD8LQ1gUho=dF&=ATm@Jf_#ZeH< zbf=0r##+AN@l*RH48gVxxv$?u@H^bLsa?swAb0-zTE#{C1U5g9;dR(|@l61?!~fK` zwfXK>w?E#u`N3W;hih)9Wv4H>;$8IV3xh?DCW@1>aSp6sQ?*0tN6@sj%xmiRy!#zB zub24-m(D+(f*Xtt8xN%1kZ#y{;?*8~hU%Gj->2q1Wt3^1=D(Y%V9KpNASp7-4@h45 zeZP$LfkxRpL`X8+&~Etj9L2%|WekhVt#xN_MpE_R*v9)0+KXzwyLcxodc0dbibYiR zzU@V$9WQ>o>lAZxJO15&gNT{UzWSu27e0QxE3Dn#-+%v5q(DYTK+pXH>I?U)x*5%b cW!1=;^8*aO7Ownk^AlvTr>mdKI;Vst09u;-(*OVf literal 0 HcmV?d00001 diff --git a/src/hud.rs b/src/hud.rs index 1263c66..f7e0162 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -348,11 +348,13 @@ fn setup( // HP/O2/Suit Integrity/Power Gauges let gauges_handle: Handle = asset_server.load("sprites/gauge_horizontal.png"); let gauges = [ - ("sprites/dashboard_highbeams.png", Gauge::Health), - ("sprites/dashboard_highbeams.png", Gauge::Power), - ("sprites/dashboard_highbeams.png", Gauge::Oxygen), - ("sprites/dashboard_highbeams.png", Gauge::Integrity), + ("sprites/gauge_heart.png", Gauge::Health), + ("sprites/gauge_battery.png", Gauge::Power), + ("sprites/gauge_o2.png", Gauge::Oxygen), + ("sprites/gauge_suit.png", Gauge::Integrity), ]; + let icon_size = 24.0; + let gauge_bar_padding_left = 4.0; for (i, (sprite, gauge)) in gauges.iter().enumerate() { let bar_length = if i == 0 { 196.0 } else { 128.0 }; @@ -380,7 +382,7 @@ fn setup( width: Val::Px(118.0), height: Val::Px(10.0), bottom: Val::Px(8.0), - left: Val::Px(32.0), + left: Val::Px(gauge_bar_padding_left + icon_size), ..Default::default() }, visibility, @@ -410,18 +412,20 @@ fn setup( Dashboard, ToggleableHudElement, )).with_children(|builder| { + // The gauge symbol builder.spawn(( ImageBundle { image: UiImage::new(asset_server.load(sprite.to_string())), style: Style { - width: Val::Px(28.0), - height: Val::Px(28.0), + width: Val::Px(icon_size), + height: Val::Px(icon_size), ..Default::default() }, visibility, ..Default::default() }, )); + // The gauge bar border builder.spawn(( ImageBundle { image: UiImage::new(gauges_handle.clone()), @@ -429,7 +433,7 @@ fn setup( width: Val::Px(bar_length), height: Val::Px(10.0), bottom: Val::Px(8.0), - left: Val::Px(4.0), + left: Val::Px(gauge_bar_padding_left), ..Default::default() }, visibility, diff --git a/src/svg/gauge_battery.svg b/src/svg/gauge_battery.svg new file mode 100644 index 0000000..dd1c801 --- /dev/null +++ b/src/svg/gauge_battery.svg @@ -0,0 +1,99 @@ + + + + diff --git a/src/svg/gauge_fuel.svg b/src/svg/gauge_fuel.svg new file mode 100644 index 0000000..d46b9fb --- /dev/null +++ b/src/svg/gauge_fuel.svg @@ -0,0 +1,90 @@ + + + + diff --git a/src/svg/gauge_heart.svg b/src/svg/gauge_heart.svg new file mode 100644 index 0000000..46f379d --- /dev/null +++ b/src/svg/gauge_heart.svg @@ -0,0 +1,92 @@ + + + + diff --git a/src/svg/gauge_o2.svg b/src/svg/gauge_o2.svg new file mode 100644 index 0000000..c7f0853 --- /dev/null +++ b/src/svg/gauge_o2.svg @@ -0,0 +1,91 @@ + + + + diff --git a/src/svg/gauge_suit.svg b/src/svg/gauge_suit.svg new file mode 100644 index 0000000..41bfe9c --- /dev/null +++ b/src/svg/gauge_suit.svg @@ -0,0 +1,95 @@ + + + +