From baf94f8dcaa3f7380592560770d25859a407487c Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Mon, 4 Apr 2016 23:21:50 +0300 Subject: [PATCH] hud: keys are on top now --- data/scripts/api/hud.dacs | 1 + data/scripts/d2dhud.dacs | 5 ++++- dengapi.d | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/data/scripts/api/hud.dacs b/data/scripts/api/hud.dacs index cb6dc91..76beb06 100644 --- a/data/scripts/api/hud.dacs +++ b/data/scripts/api/hud.dacs @@ -24,3 +24,4 @@ public extern int spriteWidth (string spfile); public extern int spriteHeight (string spfile); public extern void drawSpriteAt (string spfile, int x, int y); +public extern void drawSpriteAtNoOfs (string spfile, int x, int y); diff --git a/data/scripts/d2dhud.dacs b/data/scripts/d2dhud.dacs index 4ac7d73..2078d8b 100644 --- a/data/scripts/d2dhud.dacs +++ b/data/scripts/d2dhud.dacs @@ -48,6 +48,8 @@ public void drawHud () { // draw keys // WARNING: keep in sync with INV_ITEM_KEY_xxx //writeln("HUD"); + int vw = viewportWidth; + int vh = viewportHeight; auto inv = pl.invitems; for (int kn = 0; kn < 3; ++kn) { if (inv&(1<