Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Load pic visual inv.


Tyr
 Share

Recommended Posts

hi all,

first of all, its not the code thats wrong but i needs some add ons.
the point of this edit is that you don't c the black background of a item in your inventory anymore (i already edited whole my item sheet also with that background so it fits perfectly)

the problem is that when i run the prog, the pictures where there is no item in are constantly refreshing to the same picture.
of course silly u would think its a loop!

well thats the point, does nayone has a idea how i could stop this constantly refreshing?

oh and here is the code if u needed it:

```
If Qq = 0 Then
                                frmMirage.picInv(Q).Picture = LoadPicture(App.Path & "\GFX\Icons\standard.gif")
                            Else
                                Call BitBlt(frmMirage.picInv(Q).hDC, 0, 0, PIC_X, PIC_Y, frmMirage.picItems.hDC, (Item(Qq).Pic - Int(Item(Qq).Pic / 6) * 6) * PIC_X, Int(Item(Qq).Pic / 6) * PIC_Y, SRCCOPY)
                            End If
```
thx by forward!

- Tyr
Link to comment
Share on other sites

  • 3 weeks later...
If Qq = 0 Then
                                if frmMirage.picInv(Q).Tag = 0 then
                                    frmMirage.picInv(Q).Picture = LoadPicture(App.Path & "\GFX\Icons\standard.gif")
                                    frmMirage.picInv(Q).Tag = 1
                                end if
                            Else
                                Call BitBlt(frmMirage.picInv(Q).hDC, 0, 0, PIC_X, PIC_Y, frmMirage.picItems.hDC, (Item(Qq).Pic - Int(Item(Qq).Pic / 6) * 6) * PIC_X, Int(Item(Qq).Pic / 6) * PIC_Y, SRCCOPY)
                                frmMirage.picInv(Q).Tag = 0
                            End If

this would be enough :-)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...