Skip to content
Snippets Groups Projects
Commit 809849c9 authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@4767 51575b47-30f0-44d4-a5cc-537603b46e54
parent af6e1ccb
No related branches found
No related tags found
No related merge requests found
......@@ -446,6 +446,21 @@ function _M:displayResources(scale)
local p = 1
shat[1]:toScreenPrecise(x+49, y+10, shat[6] * p, shat[7], 0, p * 1/shat[4], 0, 1/shat[5], equi_c[1], equi_c[2], equi_c[3], 1)
if equi_sha.shad then equi_sha.shad:use(false) end
if not self.res.equilibrium or self.res.equilibrium.vc ~= player.equilibrium or self.res.equilibrium.vr ~= chance then
self.res.equilibrium = {
vc = player.equilibrium, vr = chance,
cur = {core.display.drawStringBlendedNewSurface(font_sha, ("%d"):format(player.equilibrium), 255, 255, 255):glTexture()},
regen={core.display.drawStringBlendedNewSurface(sfont_sha, ("%d%%"):format(100-chance), 255, 255, 255):glTexture()},
}
end
local dt = self.res.equilibrium.cur
dt[1]:toScreenFull(2+x+64, 2+y+10 + (shat[7]-dt[7])/2, dt[6], dt[7], dt[2], dt[3], 0, 0, 0, 0.7)
dt[1]:toScreenFull(x+64, y+10 + (shat[7]-dt[7])/2, dt[6], dt[7], dt[2], dt[3])
dt = self.res.equilibrium.regen
dt[1]:toScreenFull(2+x+144, 2+y+10 + (shat[7]-dt[7])/2, dt[6], dt[7], dt[2], dt[3], 0, 0, 0, 0.7)
dt[1]:toScreenFull(x+144, y+10 + (shat[7]-dt[7])/2, dt[6], dt[7], dt[2], dt[3])
local front = fshat_equi
if chance <= 85 then front = fshat_equi_dark end
front[1]:toScreenFull(x, y, front[6], front[7], front[2], front[3])
......
game/modules/tome/data/gfx/ui/resources/front_hate.png

13.9 KiB | W: | H:

game/modules/tome/data/gfx/ui/resources/front_hate.png

13.9 KiB | W: | H:

game/modules/tome/data/gfx/ui/resources/front_hate.png
game/modules/tome/data/gfx/ui/resources/front_hate.png
game/modules/tome/data/gfx/ui/resources/front_hate.png
game/modules/tome/data/gfx/ui/resources/front_hate.png
  • 2-up
  • Swipe
  • Onion skin
game/modules/tome/data/gfx/ui/resources/front_hate_dark.png

13.8 KiB | W: | H:

game/modules/tome/data/gfx/ui/resources/front_hate_dark.png

13.9 KiB | W: | H:

game/modules/tome/data/gfx/ui/resources/front_hate_dark.png
game/modules/tome/data/gfx/ui/resources/front_hate_dark.png
game/modules/tome/data/gfx/ui/resources/front_hate_dark.png
game/modules/tome/data/gfx/ui/resources/front_hate_dark.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment