coolmagicdude2 Posted October 17, 2009 Author Share Posted October 17, 2009 I changed the inventory to be separate from the rest of the mini menus, it works like a charm but the image i made for it wont show!Please help heres the code```Private Sub Form_Load() Dim i As Long Dim Ending As String For i = 1 To 4 If i = 1 Then Ending = ".gif" If i = 2 Then Ending = ".jpg" If i = 3 Then Ending = ".png" If i = 4 Then Ending = ".bmp" If FileExists("GUI\800X600" & Ending) Then frmMirage.Picture = LoadPicture(App.Path & "\GUI\800X600" & Ending) End If If FileExists("GUI\Inventory" & Ending) Then picInventory.Picture = LoadPicture(App.Path & "\GUI\Inventory" & Ending) End If Next iEnd Sub```"gui/inventory" is the picture i made for the inventory windowIm fairly noobish with VB but i can find my way around it by now so i tought i'd try my hand at sourcing. Please be gentle with the flaming? XD Link to comment Share on other sites More sharing options...
coolmagicdude2 Posted October 17, 2009 Author Share Posted October 17, 2009 I changed the inventory to be separate from the rest of the mini menus, it works like a charm but the image i made for it wont show!Please help heres the code```Private Sub Form_Load() Dim i As Long Dim Ending As String For i = 1 To 4 If i = 1 Then Ending = ".gif" If i = 2 Then Ending = ".jpg" If i = 3 Then Ending = ".png" If i = 4 Then Ending = ".bmp" If FileExists("GUI\800X600" & Ending) Then frmMirage.Picture = LoadPicture(App.Path & "\GUI\800X600" & Ending) End If If FileExists("GUI\Inventory" & Ending) Then picInventory.Picture = LoadPicture(App.Path & "\GUI\Inventory" & Ending) End If Next iEnd Sub```"gui/inventory" is the picture i made for the inventory windowIm fairly noobish with VB but i can find my way around it by now so i tought i'd try my hand at sourcing. Please be gentle with the flaming? XD Link to comment Share on other sites More sharing options...
Ruins of Hell Posted October 17, 2009 Share Posted October 17, 2009 We won't flame you.Did you add .png support? Eclipse uses DX7 which won't support .png. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted October 17, 2009 Share Posted October 17, 2009 We won't flame you.Did you add .png support? Eclipse uses DX7 which won't support .png. Link to comment Share on other sites More sharing options...
Zananok Posted October 17, 2009 Share Posted October 17, 2009 @The:> We won't flame you.lol, nah jk ^^.Remove or comment:``` If FileExists("GUI\Inventory" & Ending) Then picInventory.Picture = LoadPicture(App.Path & "\GUI\Inventory" & Ending) End If```Place this under:```picInventory.Picture = LoadPicture(App.Path & "\GUI\Inventory.XextX```Replace '.XextX' with the extension of the file (if its png, get a support or re-make the image on another format).Comments,From: Zananok Link to comment Share on other sites More sharing options...
Zananok Posted October 17, 2009 Share Posted October 17, 2009 @The:> We won't flame you.lol, nah jk ^^.Remove or comment:``` If FileExists("GUI\Inventory" & Ending) Then picInventory.Picture = LoadPicture(App.Path & "\GUI\Inventory" & Ending) End If```Place this under:```picInventory.Picture = LoadPicture(App.Path & "\GUI\Inventory.XextX```Replace '.XextX' with the extension of the file (if its png, get a support or re-make the image on another format).Comments,From: Zananok Link to comment Share on other sites More sharing options...
coolmagicdude2 Posted October 17, 2009 Author Share Posted October 17, 2009 Thanks got it working! Wow that was fast. Link to comment Share on other sites More sharing options...
coolmagicdude2 Posted October 17, 2009 Author Share Posted October 17, 2009 Thanks got it working! Wow that was fast. Link to comment Share on other sites More sharing options...
Zananok Posted October 17, 2009 Share Posted October 17, 2009 No problem ^^.Comments,From: Zananok Link to comment Share on other sites More sharing options...
Zananok Posted October 17, 2009 Share Posted October 17, 2009 No problem ^^.Comments,From: Zananok Link to comment Share on other sites More sharing options...
anasky Posted October 18, 2009 Share Posted October 18, 2009 The thing you had around it was just looking for the file, and if it is there, it loads it.Unnecessary works, as you know it should be there (unless players are dumb and remove it). Link to comment Share on other sites More sharing options...
anasky Posted October 18, 2009 Share Posted October 18, 2009 The thing you had around it was just looking for the file, and if it is there, it loads it.Unnecessary works, as you know it should be there (unless players are dumb and remove it). 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