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

Inventory DX8


DarkDino
 Share

Recommended Posts

I have this error from DX8 3.0 Source!, I try to fix it but have a problem.

I add this

RenderTexture Tex_Gui, frmMain.picInventory.CurrentX, frmMain.picInventory.CurrentX, 0, 0, Tex_Gui.Width + 15, Tex_Gui.Height + 15, Tex_Gui.Width + 15, Tex_Gui.Height + 15

Below this

Direct3D_Device.BeginScene

And declare Tex_Gui etc etc, but in the game dont show Inventory.png

Please help ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)
Link to comment
Share on other sites

D: Noo the bug in EO 3.0 is this

![](http://www.subeimagenes.com/img/waaaath-345454.PNG)

I add this

RenderTexture Tex_Gui, frmMain.picInventory.CurrentX, frmMain.picInventory.CurrentX, 0, 0, Tex_Gui.Width + 15, Tex_Gui.Height + 15, Tex_Gui.Width + 15, Tex_Gui.Height + 15

Add this because I see it in a forum solution
Link to comment
Share on other sites

Nooo ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png), The problem is

![](http://www.subeimagenes.com/img/waaaath-345454.PNG)

This the black box, i need delete this ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png).
Link to comment
Share on other sites

You can't remove that black thing. All You can is:

1\. Rewrite the inventory drawing to use dx8 instead of picture box

2\. Change the black texture to dx8 texture, so it will render two images. One for background and the second one for the front..
Link to comment
Share on other sites

In

```

Sub DrawInventory()

```
Find:

```

Direct3D_Device.Clear 0, ByVal 0, D3DCLEAR_TARGET, D3DColorRGBA(255, 255, 255, 0), 1#, 0

Direct3D_Device.BeginScene

```
Change it to:

```

Direct3D_Device.Clear 0, ByVal 0, D3DCLEAR_TARGET, D3DColorRGBA(255, 255, 255, 0), 1#, 0

RenderTexture Tex_Inventory, frmMain.picInventory.CurrentX, frmMain.picInventory.CurrentX, 0, 0, frmMain.picInventory.Width, frmMain.picInventory.Height, frmMain.picInventory.Width, frmMain.picInventory.Height

Direct3D_Device.BeginScene

```

Then in:

```

Private Sub LoadTextures()

```
Add:

```

Tex_Inventory.filepath = App.Path & "\data files\graphics\gui\main\inventory.jpg" //Look at the filename. Maybe you will need to change that.

Tex_Inventory.Texture = NumTextures - 12

LoadTexture Tex_Inventory

```
Above:

```

Tex_Fade.filepath = App.Path & "\data files\graphics\misc\fader.png"

Tex_Fade.Texture = NumTextures - 10

LoadTexture Tex_Fade

```
And add 1 to:

```

NumTextures = NumTextures + 11

```

Later:

In:

```

ModGraphics

```
After:

```
Public Tex_Fade As DX8TextureRec
```
Add:

```
Public Tex_Inventory As DX8TextureRec
```

I hope it will work… It's the worst possible solution, but with my skills I can't find any better.
Link to comment
Share on other sites

Sorry!! im wrong THIS FIX ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)! THANK YOU SCOTT ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)! I forget to put "LoadTexture Tex_Inventory" RESOLVED!
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...