Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Option Explicit
- Private Sub chkMapKey_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- KeyEditorTake = chkMapKey.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "chkMapKey_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmbHeal_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- MapEditorHealType = cmbHeal.ListIndex + 1
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmbHeal_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmbShop_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- EditorShop = cmbShop.ListIndex
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmbShop_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmbSlide_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- MapEditorSlideDir = cmbSlide.ListIndex
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmbSlide_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdHeal_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- MapEditorHealType = cmbHeal.ListIndex + 1
- MapEditorHealAmount = scrlHeal.value
- picAttributes.Visible = False
- fraHeal.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdHeal_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdKeyOpen_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- KeyOpenEditorX = scrlKeyX.value
- KeyOpenEditorY = scrlKeyY.value
- picAttributes.Visible = False
- fraKeyOpen.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdKeyOpen_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdMapItem_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ItemEditorNum = scrlMapItem.value
- ItemEditorValue = scrlMapItemValue.value
- picAttributes.Visible = False
- fraMapItem.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdMapItem_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdMapKey_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- KeyEditorNum = scrlMapKey.value
- KeyEditorTake = chkMapKey.value
- picAttributes.Visible = False
- fraMapKey.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdMapKey_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdMapWarp_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- EditorWarpMap = scrlMapWarp.value
- EditorWarpX = scrlMapWarpX.value
- EditorWarpY = scrlMapWarpY.value
- picAttributes.Visible = False
- fraMapWarp.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdMapWarp_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdNpcSpawn_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- SpawnNpcNum = lstNpc.ListIndex + 1
- SpawnNpcDir = scrlNpcDir.value
- picAttributes.Visible = False
- fraNpcSpawn.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdNpcSpawn_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdResourceOk_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ResourceEditorNum = scrlResource.value
- picAttributes.Visible = False
- fraResource.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdResourceOk_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdShop_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- EditorShop = cmbShop.ListIndex
- picAttributes.Visible = False
- fraShop.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdShop_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdSlide_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- MapEditorSlideDir = cmbSlide.ListIndex
- picAttributes.Visible = False
- fraSlide.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdSlide_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdTrap_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- MapEditorHealAmount = scrlTrap.value
- picAttributes.Visible = False
- fraTrap.Visible = False
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdTrap_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub Form_Load()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ' move the entire attributes box on screen
- picAttributes.Left = 8
- picAttributes.top = 8
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "Form_Load", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub lstNpc_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- SpawnNpcNum = lstNpc.ListIndex + 1
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "lstNpc_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optDoor_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraMapWarp.Visible = True
- scrlMapWarp.max = MAX_MAPS
- scrlMapWarp.value = 1
- scrlMapWarpX.max = MAX_BYTE
- scrlMapWarpY.max = MAX_BYTE
- scrlMapWarpX.value = 0
- scrlMapWarpY.value = 0
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optDoor_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optHeal_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraHeal.Visible = True
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optHeal_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optLayers_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- If optLayers.value Then
- fraLayers.Visible = True
- fraAttribs.Visible = False
- End If
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optLayers_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optAttribs_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- If optAttribs.value Then
- fraLayers.Visible = False
- fraAttribs.Visible = True
- End If
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optAttribs_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optNpcSpawn_Click()
- Dim n As Long
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lstNpc.Clear
- For n = 1 To MAX_MAP_NPCS
- If Map.Npc(n) > 0 Then
- lstNpc.AddItem n & ": " & Npc(Map.Npc(n)).name
- Else
- lstNpc.AddItem n & ": No Npc"
- End If
- Next n
- scrlNpcDir.value = 0
- lstNpc.ListIndex = 0
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraNpcSpawn.Visible = True
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optNpcSpawn_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optResource_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraResource.Visible = True
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optResource_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optShop_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraShop.Visible = True
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optShop_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optSlide_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraSlide.Visible = True
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optSlide_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optTrap_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraTrap.Visible = True
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optTrap_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub picBackSelect_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- Call MapEditorChooseTile(Button, x, y)
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "picBackSelect_MouseDown", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub picBackSelect_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- shpLoc.top = (y \ PIC_Y) * PIC_Y
- shpLoc.Left = (x \ PIC_X) * PIC_X
- shpLoc.Visible = True
- Call MapEditorDrag(Button, x, y)
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "picBackSelect_MouseMove", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdSend_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- Call MapEditorSend
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdSend_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdCancel_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- Call MapEditorCancel
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdCancel_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdProperties_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- Load frmEditor_MapProperties
- MapEditorProperties
- frmEditor_MapProperties.Show vbModal
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdProperties_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optWarp_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraMapWarp.Visible = True
- scrlMapWarp.max = MAX_MAPS
- scrlMapWarp.value = 1
- scrlMapWarpX.max = MAX_BYTE
- scrlMapWarpY.max = MAX_BYTE
- scrlMapWarpX.value = 0
- scrlMapWarpY.value = 0
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optWarp_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optItem_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraMapItem.Visible = True
- scrlMapItem.max = MAX_ITEMS
- scrlMapItem.value = 1
- lblMapItem.Caption = Trim$(Item(scrlMapItem.value).name) & " x" & scrlMapItemValue.value
- EditorMap_BltMapItem
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optItem_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optKey_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- picAttributes.Visible = True
- fraMapKey.Visible = True
- scrlMapKey.max = MAX_ITEMS
- scrlMapKey.value = 1
- chkMapKey.value = 1
- EditorMap_BltKey
- lblMapKey.Caption = "Item: " & Trim$(Item(scrlMapKey.value).name)
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optKey_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub optKeyOpen_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- ClearAttributeDialogue
- fraKeyOpen.Visible = True
- picAttributes.Visible = True
- scrlKeyX.max = Map.MaxX
- scrlKeyY.max = Map.MaxY
- scrlKeyX.value = 0
- scrlKeyY.value = 0
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "optKeyOpen_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdFill_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- MapEditorFillLayer
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdFill_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdClear_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- Call MapEditorClearLayer
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdClear_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub cmdClear2_Click()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- Call MapEditorClearAttribs
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "cmdClear2_Click", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlHeal_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblHeal.Caption = "Amount: " & scrlHeal.value
- MapEditorHealAmount = scrlHeal.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlHeal_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlKeyX_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblKeyX.Caption = "X: " & scrlKeyX.value
- KeyOpenEditorX = scrlKeyX.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlKeyX_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlKeyX_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlKeyX_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlKeyX_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlKeyY_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblKeyY.Caption = "Y: " & scrlKeyY.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlKeyY_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlKeyY_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlKeyY_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlKeyY_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlTrap_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblTrap.Caption = "Amount: " & scrlTrap.value
- MapEditorHealAmount = scrlTrap.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlTrap_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapItem_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- If Item(scrlMapItem.value).Type = ITEM_TYPE_CURRENCY Then
- scrlMapItemValue.Enabled = True
- Else
- scrlMapItemValue.value = 1
- scrlMapItemValue.Enabled = False
- End If
- EditorMap_BltMapItem
- lblMapItem.Caption = Trim$(Item(scrlMapItem.value).name) & " x" & scrlMapItemValue.value
- ItemEditorNum = scrlMapItem.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapItem_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapItem_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlMapItem_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapItem_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapItemValue_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblMapItem.Caption = Trim$(Item(scrlMapItem.value).name) & " x" & scrlMapItemValue.value
- ItemEditorValue = scrlMapItemValue.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapItemValue_change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapItemValue_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlMapItemValue_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapItemValue_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapKey_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblMapKey.Caption = "Item: " & Trim$(Item(scrlMapKey.value).name)
- KeyEditorNum = scrlMapKey.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapKey_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapKey_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlMapKey_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapKey_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapWarp_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblMapWarp.Caption = "Map: " & scrlMapWarp.value
- EditorWarpMap = scrlMapWarp.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapWarp_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapWarp_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlMapWarp_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapWarp_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapWarpX_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblMapWarpX.Caption = "X: " & scrlMapWarpX.value
- EditorWarpX = scrlMapWarpX.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapWarpX_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapWarpX_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlMapWarpX_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapWarpX_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapWarpY_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblMapWarpY.Caption = "Y: " & scrlMapWarpY.value
- EditorWarpY = scrlMapWarpY.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapWarpY_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlMapWarpY_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlMapWarpY_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlMapWarpY_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlNpcDir_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- Select Case scrlNpcDir.value
- Case DIR_DOWN
- lblNpcDir = "Direction: Down"
- Case DIR_UP
- lblNpcDir = "Direction: Up"
- Case DIR_LEFT
- lblNpcDir = "Direction: Left"
- Case DIR_RIGHT
- lblNpcDir = "Direction: Right"
- End Select
- SpawnNpcDir = scrlNpcDir.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlNpcDir_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlNpcDir_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlNpcDir_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlNpcDir_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlResource_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- lblResource.Caption = "Resource: " & Resource(scrlResource.value).name
- ResourceEditorNum = scrlResource.value
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlResource_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlResource_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlResource_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlResource_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlPictureX_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- Call MapEditorTileScroll
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlPictureX_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlPictureY_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- Call MapEditorTileScroll
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlPictureY_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlPictureX_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlPictureY_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlPictureX_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlPictureY_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlPictureY_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlPictureY_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlTileSet_Change()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- fraTileSet.Caption = "Tileset: " & scrlTileSet.value
- Call EditorMap_BltTileset
- frmEditor_Map.scrlPictureY.max = (frmEditor_Map.picBackSelect.height \ PIC_Y) - (frmEditor_Map.picBack.height \ PIC_Y)
- frmEditor_Map.scrlPictureX.max = (frmEditor_Map.picBackSelect.width \ PIC_X) - (frmEditor_Map.picBack.width \ PIC_X)
- MapEditorTileScroll
- frmEditor_Map.picBackSelect.Left = 0
- frmEditor_Map.picBackSelect.top = 0
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlTileSet_Change", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
- Private Sub scrlTileSet_Scroll()
- ' If debug mode, handle error then exit out
- If Options.Debug = 1 Then On Error GoTo errorhandler
- scrlTileSet_Change
- ' Error handler
- Exit Sub
- errorhandler:
- HandleError "scrlTileSet_Scroll", "frmEditor_Map", Err.Number, Err.Description, Err.Source, Err.HelpContext
- Err.Clear
- Exit Sub
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement