Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Item editor not showing pics...
#1
OK, when, in my item editor, i click the scroll button, it changes the number, but not the picture.

Can anyone help with that?

~Braydok
Reply
#2
Make sure you has this:
Code:
Public Sub ItemEditorBltItem()
    Call BitBlt(frmItemEditor.picPic.hdc, 0, 0, PIC_X, PIC_Y, frmItemEditor.picItems.hdc, 0, frmItemEditor.scrlPic.Value * PIC_Y, SRCCOPY)
End Sub

Private Sub tmrPic_Timer()
    Call ItemEditorBltItem
End Sub

And the tmrPic (timer) set to interval for example 50.
Reply
#3
Still doesn't work, here is what I have for my itemeditor:

[code]
Public Sub ItemEditorInit()
'****************************************************************
'* WHEN WHO WHAT
'* ---- --- ----
'* 07/12/2005 Shannara Added gfx constant.
'****************************************************************
'App.Path
frmItemEditor.picPic.Picture = LoadPicture(App.Path & GFX_PATH & "items" & GFX_EXT)

frmItemEditor.txtName.Text = Trim(Item(EditorIndex).Name)
frmItemEditor.scrlPic.Value = (Item(EditorIndex).Pic)
frmItemEditor.cmbType.ListIndex = Item(EditorIndex).Type
' Npc(EditorIndex).Sprite = frmNpcEditor.scrlSprite.Value

If (frmItemEditor.cmbType.ListIndex >= ITEM_TYPE_WEAPON) And (frmItemEditor.cmbType.ListIndex = ITEM_TYPE_POTIONADDHP) And (frmItemEditor.cmbType.ListIndex = ITEM_TYPE_WEAPON) And (frmItemEditor.cmbType.ListIndex = ITEM_TYPE_POTIONADDHP) And (frmItemEditor.cmbType.ListIndex
Reply
#4
I can not see something wrong with it.
Reply
#5
Hmm, could you post your entire item editor script? Then I could replace mine with it, and hopefully it would work.
Reply
#6
Just check a unedited version of MSE.
Reply
#7
I know, but I didn't edit the code, so it came like that.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)