diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-19 14:08:42 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-19 14:08:42 -0300 |
commit | 2e454f315637759666b93e711c29fd7437d78900 (patch) | |
tree | 515cfdb0c5afd0b3f8c455dc08849a96b29ce4ba | |
parent | e5d0a317c15f51059522b9c5045fc190ea8d1c82 (diff) | |
download | client-2e454f315637759666b93e711c29fd7437d78900.tar.gz client-2e454f315637759666b93e711c29fd7437d78900.tar.bz2 client-2e454f315637759666b93e711c29fd7437d78900.tar.xz client-2e454f315637759666b93e711c29fd7437d78900.zip |
Initial prototype redraw of the HUD
Still missing EXP bar.
Needs more width. Needs less height.
-rw-r--r-- | game/ATTRIBUTION | 2 | ||||
-rw-r--r-- | game/gfx/gui/crystal.png | bin | 0 -> 3103 bytes | |||
-rw-r--r-- | game/gui/HUD.png | bin | 0 -> 128359 bytes | |||
-rw-r--r-- | game/screens.rpy | 26 |
4 files changed, 22 insertions, 6 deletions
diff --git a/game/ATTRIBUTION b/game/ATTRIBUTION index 7b0eb5c..7120c67 100644 --- a/game/ATTRIBUTION +++ b/game/ATTRIBUTION @@ -81,6 +81,7 @@ Where relevant, you must also include a link to https://tmw2.org in your credit. ## GUI gfx/gui/cog_hover.png (JellyCat) (CC0) (OpenGameArt/Modified) gfx/gui/cog_idle.png (JellyCat) (CC0) (OpenGameArt/Modified) + gfx/gui/crystal.png (Phobi) (CC0) (OpenGameArt/Modified) gfx/gui/ele_0.png gfx/gui/ele_1.png (Chrisdesign) (CC0) (From OpenGameArt) gfx/gui/ele_2.png (Chrisdesign) (CC0) (From OpenGameArt) @@ -123,6 +124,7 @@ Where relevant, you must also include a link to https://tmw2.org in your credit. # GUI gui/elegant.png (?) (CC0) (Open Game Art) + gui/HUD.png (Melle) (CC0) (Open Game Art) gui/WideBB_insensitive.png (Jesusalva) (CC0) ***All other assets are default Ren'Py assets (MIT)*** diff --git a/game/gfx/gui/crystal.png b/game/gfx/gui/crystal.png Binary files differnew file mode 100644 index 0000000..9915b41 --- /dev/null +++ b/game/gfx/gui/crystal.png diff --git a/game/gui/HUD.png b/game/gui/HUD.png Binary files differnew file mode 100644 index 0000000..73d0acc --- /dev/null +++ b/game/gui/HUD.png diff --git a/game/screens.rpy b/game/screens.rpy index fd943be..870d37d 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -255,16 +255,30 @@ screen quick_menu(): ## Main HUD Control if hud_interface: frame: - background "#0009" + #background "#0009" + background "gui/HUD.png" xalign 0.5 yalign 0.0 - hbox: + frame: style_prefix "quick" - xalign 0.5 - yalign 0.0 - - label _("%s, Rank %d, %d/%d AP\nGP %d, Crystals %d" % ((persistent.nickname or "Guest"), Player["level"], Player["ap"], Player["max_ap"], Player["gp"], Player["crystals"])) + background "gfx/actionarea.png" + xmargin 50 + ymargin 50 + vbox: + spacing 24 + label _("%s (Lv. %d)" % (persistent.nickname or "Guest", Player["level"])): + xalign 0.5 + hbox: + spacing 24 + label _("AP") + bar: + value StaticValue(Player["ap"], Player["max_ap"]) + xsize 200 + label _("%d/%d" % (Player["ap"], Player["max_ap"])) + vbox: + text _("{size=40}$ %d{/size}" % Player["gp"]) + text _("{image=gfx/gui/crystal.png}{size=40}%d{/size}" % Player["crystals"]) ## DownLoader Screen |