Inventory DX8

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 :(

Why would you want to render a black texture over a picture box?

😧 Noo the bug in EO 3.0 is this

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

That is the question. Why do you want to render black over a pic box? Just change the background color of the picture box into black.

Nooo :(, The problem is

This the black box, i need delete this :(.

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…

Abhi, stop trolling me :D

Abhi, stop trolling me :D

Don’t worry those were done before I changed my name. And plz shush

scotter how to change the black texture to dx8 texture? :(

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.

I add this 😧 and the black box appear equal :c

Sorry!! im wrong THIS FIX :D! THANK YOU SCOTT :)! I forget to put “LoadTexture Tex_Inventory” RESOLVED!

Log in to reply