| Mirage Source http://miragesource.net/forums/ |
|
| Item editor not showing pics... http://miragesource.net/forums/viewtopic.php?f=201&t=1440 |
Page 1 of 11 |
| Author: | Braydok [ Sun Mar 04, 2007 8:54 pm ] |
| Post subject: | Item editor not showing pics... |
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 |
|
| Author: | William [ Sun Mar 04, 2007 9:36 pm ] |
| Post subject: | |
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. |
|
| Author: | Braydok [ Sun Mar 04, 2007 9:49 pm ] |
| Post subject: | |
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_SHIELD) Then frmItemEditor.fraEquipment.Visible = True frmItemEditor.scrlDurability.Value = Item(EditorIndex).Data1 frmItemEditor.scrlStrength.Value = Item(EditorIndex).Data2 Else frmItemEditor.fraEquipment.Visible = False End If If (frmItemEditor.cmbType.ListIndex >= ITEM_TYPE_POTIONADDHP) And (frmItemEditor.cmbType.ListIndex <= ITEM_TYPE_POTIONSUBSP) Then frmItemEditor.fraVitals.Visible = True frmItemEditor.scrlVitalMod.Value = Item(EditorIndex).Data1 Else frmItemEditor.fraVitals.Visible = False End If If (frmItemEditor.cmbType.ListIndex = ITEM_TYPE_SPELL) Then frmItemEditor.fraSpell.Visible = True frmItemEditor.scrlSpell.Value = Item(EditorIndex).Data1 Else frmItemEditor.fraSpell.Visible = False End If frmItemEditor.Show vbModal End Sub Public Sub ItemEditorOk() Item(EditorIndex).Name = frmItemEditor.txtName.Text Item(EditorIndex).Pic = frmItemEditor.scrlPic.Value Item(EditorIndex).Type = frmItemEditor.cmbType.ListIndex If (frmItemEditor.cmbType.ListIndex >= ITEM_TYPE_WEAPON) And (frmItemEditor.cmbType.ListIndex <= ITEM_TYPE_SHIELD) Then Item(EditorIndex).Data1 = frmItemEditor.scrlDurability.Value Item(EditorIndex).Data2 = frmItemEditor.scrlStrength.Value Item(EditorIndex).Data3 = 0 End If If (frmItemEditor.cmbType.ListIndex >= ITEM_TYPE_POTIONADDHP) And (frmItemEditor.cmbType.ListIndex <= ITEM_TYPE_POTIONSUBSP) Then Item(EditorIndex).Data1 = frmItemEditor.scrlVitalMod.Value Item(EditorIndex).Data2 = 0 Item(EditorIndex).Data3 = 0 End If If (frmItemEditor.cmbType.ListIndex = ITEM_TYPE_SPELL) Then Item(EditorIndex).Data1 = frmItemEditor.scrlSpell.Value Item(EditorIndex).Data2 = 0 Item(EditorIndex).Data3 = 0 End If Call SendSaveItem(EditorIndex) InItemsEditor = False Unload frmItemEditor End Sub Public Sub ItemEditorCancel() InItemsEditor = False Unload frmItemEditor End Sub 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 Can you see any problem? |
|
| Author: | William [ Sun Mar 04, 2007 10:13 pm ] |
| Post subject: | |
I can not see something wrong with it. |
|
| Author: | Braydok [ Tue Mar 06, 2007 9:02 pm ] |
| Post subject: | |
Hmm, could you post your entire item editor script? Then I could replace mine with it, and hopefully it would work. |
|
| Author: | William [ Tue Mar 06, 2007 9:16 pm ] |
| Post subject: | |
Just check a unedited version of MSE. |
|
| Author: | Braydok [ Wed Mar 14, 2007 6:05 pm ] |
| Post subject: | |
I know, but I didn't edit the code, so it came like that. |
|
| Author: | wanai [ Wed May 25, 2022 3:27 pm ] |
| Post subject: | Re: Item editor not showing pics... |
flac |
|
| Author: | wanai [ Wed May 25, 2022 3:28 pm ] |
| Post subject: | Re: Item editor not showing pics... |
181.8 |
|
| Author: | wanai [ Wed May 25, 2022 3:30 pm ] |
| Post subject: | Re: Item editor not showing pics... |
CHAP |
|
| Author: | wanai [ Wed May 25, 2022 3:31 pm ] |
| Post subject: | Re: Item editor not showing pics... |
FUND |
|
| Author: | wanai [ Wed May 25, 2022 3:32 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Jizz |
|
| Author: | wanai [ Wed May 25, 2022 3:33 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Henr |
|
| Author: | wanai [ Wed May 25, 2022 3:34 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Poll |
|
| Author: | wanai [ Wed May 25, 2022 3:35 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Swam |
|
| Author: | wanai [ Wed May 25, 2022 3:36 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Ston |
|
| Author: | wanai [ Wed May 25, 2022 3:37 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Whis |
|
| Author: | wanai [ Wed May 25, 2022 3:38 pm ] |
| Post subject: | Re: Item editor not showing pics... |
SELF |
|
| Author: | wanai [ Wed May 25, 2022 3:40 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Atla |
|
| Author: | wanai [ Wed May 25, 2022 3:41 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Pale |
|
| Author: | wanai [ Wed May 25, 2022 3:42 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Irwi |
|
| Author: | wanai [ Wed May 25, 2022 3:43 pm ] |
| Post subject: | Re: Item editor not showing pics... |
Wall |
|
| Page 1 of 11 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|