diff --git a/DZU-ENG1.py b/DZU-ENG1.py index 5d353eb..03ee614 100755 --- a/DZU-ENG1.py +++ b/DZU-ENG1.py @@ -579,8 +579,8 @@ def qpop(qmsg, xpos, ypos, keyid="0", nokey="0", quyn=0, specialquit=0, fgcol=ui hoverkey=labref.attrib.get('hoverkey', "0") clicksoundflg=int(labref.attrib.get('sfxclick', "0")) soundname=(labref.attrib.get('sound', "0")) - vscrollval=int(labref.attrib.get('vscroll', "0")) - hscrollval=int(labref.attrib.get('hscroll', "0")) + vscrollval=float(labref.attrib.get('vscroll', "0")) + hscrollval=float(labref.attrib.get('hscroll', "0")) vscfl=int(labref.attrib.get('vscINT', "0")) hscfl=int(labref.attrib.get('hscINT', "0")) folmousehflg=int(labref.attrib.get('mouseh', "0")) @@ -602,8 +602,8 @@ def qpop(qmsg, xpos, ypos, keyid="0", nokey="0", quyn=0, specialquit=0, fgcol=ui hscfl=1 labref.set('hscINT', "1") labref.set('hscINTOF', str(hscrollval)) - vscoffset=int(labref.attrib.get('vscINTOF', "0")) - hscoffset=int(labref.attrib.get('hscINTOF', "0")) + vscoffset=float(labref.attrib.get('vscINTOF', "0")) + hscoffset=float(labref.attrib.get('hscINTOF', "0")) imggfx=filelookup(imgcon) if folmousehflg==1: imgx=pos[0] @@ -638,9 +638,9 @@ def qpop(qmsg, xpos, ypos, keyid="0", nokey="0", quyn=0, specialquit=0, fgcol=ui #imggfx=pygame.image.load(imgcon) if hscfl==1: - imggfx=dzulib.hscroll(hscoffset, imggfx) + imggfx=dzulib.hscroll(int(hscoffset), imggfx) if vscfl==1: - imggfx=dzulib.vscroll(vscoffset, imggfx) + imggfx=dzulib.vscroll(int(vscoffset), imggfx) clickref=screensurf.blit(imggfx, (imgx, imgy)) if hoverkey!="0": if clickref.collidepoint(pos)==1: diff --git a/test1.xml b/test1.xml index 164bd6a..3723ce2 100644 --- a/test1.xml +++ b/test1.xml @@ -40,7 +40,7 @@ last timeout in the sequence trigger one of these.--> no-tr-animtest1a.png - + no-tr-animtest1a.png