BeNjO Posted August 7, 2012 Author Share Posted August 7, 2012 Just curious on how to get the item editor picture to work on CSDE. Iv tryed everything, bmp/png diff sizes, .png count works; the scroll bar is the right amount of items in my folder, bmp the scroll bar is 0.Iv been trying to figure this out for the past few days and everything i have done i have returned beaten. Link to comment Share on other sites More sharing options...
Ariel Posted August 7, 2012 Share Posted August 7, 2012 What?sorry i didnt understend the problem, is the item icon not changing in the item editor when you change the scrl?make sure the items in the "Items" folder are 1, 2, 3, 4, 5, ETC. and they mast be PNG. Link to comment Share on other sites More sharing options...
BeNjO Posted August 7, 2012 Author Share Posted August 7, 2012 they are .png and are correctly numbered, the little 32x32 picture box is black, and changing the scroll does nothing but change the number. Link to comment Share on other sites More sharing options...
Ariel Posted August 7, 2012 Share Posted August 7, 2012 Have you implement any edits? Link to comment Share on other sites More sharing options...
BeNjO Posted August 7, 2012 Author Share Posted August 7, 2012 nothing concerning items as far as i am aware. Link to comment Share on other sites More sharing options...
Ariel Posted August 7, 2012 Share Posted August 7, 2012 Ummmm does your item in inventory have an icon?is it equals to the one that in the Items folder? Link to comment Share on other sites More sharing options...
BeNjO Posted August 7, 2012 Author Share Posted August 7, 2012 No this did not exist:```Public Sub GDIRenderItem(ByRef picItem As PictureBox, ByVal Item As Long)Dim height As Long, width As Long, sRECT As RECT ' exit out if doesn't exist If Item <= 0 Or Item > Count_Item Then Exit Sub height = D3DT_TEXTURE(Tex_Item(Item)).height width = D3DT_TEXTURE(Tex_Item(Item)).width sRECT.top = 0 sRECT.bottom = 32 sRECT.left = 0 sRECT.Right = 32 ' Start Rendering Call D3DDevice8.Clear(0, ByVal 0, D3DCLEAR_TARGET, 0, 1#, 0) Call D3DDevice8.BeginScene 'EngineRenderRectangle Tex_Item(sprite), 0, 0, 0, 0, 32, 32, 32, 32, 32, 32 RenderTexture Tex_Item(Item), 0, 0, 0, 0, 32, 32, 32, 32 ' Finish Rendering Call D3DDevice8.EndScene Call D3DDevice8.Present(sRECT, ByVal 0, picItem.hwnd, ByVal 0)End Sub```And some more bits about the rendering and saving of the images. It works now thanks all /lock Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now