Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
frmMapeditor
#1
Can someone make a tutorial, or Explain how I can make a separte form for my mapeditor? I hate having it in my frmMirage and I can't find a way to make it a seperate form in the source -_-.

Thanks for your time.

-- Styre
Reply
#2
You can use the Oasis v0.3.0 source to figure this out. It may even be possible to rip it. http://www.os.nevetsweb.com
Reply
#3
try downloading an Elysium Diamond source and look how they did it.

http://www.elysium.splamm.com
Reply
#4
Or don't be a lazy source ripper and learn?
Reply
#5
I'd prefer the last. That's why I asked for help here -_-. But I'll look at those sources and see how they did it.
Reply
#6
It's actually a pretty good way to learn to rip from source codes. As long as you give proper credit, who cares anyways?

When i went to MS from Konfuze, i tried ripping a bunch of Konfuze's features, it helped me to learn a lot.
Reply
#7
Obsidian Wrote:It's actually a pretty good way to learn to rip from source codes. As long as you give proper credit, who cares anyways?

When i went to MS from Konfuze, i tried ripping a bunch of Konfuze's features, it helped me to learn a lot.

Fair play, people are different back in the day when I copy and pasted I didn't learn much.
Reply
#8
It's really not hard, move all the controls and the code to a new form. Find where it calls all the stuff for the mapeditor and change frmMirage to frmMEdit or frmMapEditor or w/e you decide. It's REALLY simple.
Reply
#9
i guess i wasn't trying rip stuff as easy as the map editor. here's a basic rundown of what you need to do.

basically move the entire picMapEditor to a new form that you create. Then everywhere in the code, change the frmMirage.picMapEditor, to frmMapEditor (.visible, etc.)... it really is quite simple to do.
Reply
#10
Tried what Obsidian said. It words fine expecpt for 1 thing. I have no buttons at all on my editor. And I can't seem to find where it comes from.
Reply
#11
Styre Wrote:Tried what Obsidian said. It words fine expecpt for 1 thing. I have no buttons at all on my editor. And I can't seem to find where it comes from.
You need to move the code from frmMirage that are related to the buttons to frmMapEditor.
Reply
#12
Did that.

I'll edit with a screenie in a sec.

EDIT: My MApeditor when I open it In game

[Image: MapEditor.jpg]

It should look like the basic Mirage Mapeditor
Reply
#13
Make sure the picture box is visible and you don't change the visibility in the code.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#14
I didn't change any options when transferring it to a form, and I don't think my code says it needs to be like that look:

Code:
' // MAP EDITOR STUFF //
Option Explicit

Private Sub optLayers_Click()
    If optLayers.Value = True Then
        fraLayers.Visible = True
        fraAttribs.Visible = False
    End If
End Sub

Private Sub optAttribs_Click()
    If optAttribs.Value = True Then
        fraLayers.Visible = False
        fraAttribs.Visible = True
    End If
End Sub
Private Sub picBackSelect_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    Call EditorChooseTile(Button, Shift, x, y)
End Sub

Private Sub picBackSelect_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
    Call EditorChooseTile(Button, Shift, x, y)
End Sub

Private Sub cmdSend_Click()
    Call EditorSend
End Sub

Private Sub cmdCancel_Click()
    Call EditorCancel
End Sub

Private Sub cmdProperties_Click()
    frmMapProperties.Show vbModal
End Sub

Private Sub optWarp_Click()
    frmMapWarp.Show vbModal
End Sub

Private Sub optItem_Click()
    frmMapItem.Show vbModal
End Sub

Private Sub optKey_Click()
    frmMapKey.Show vbModal
End Sub

Private Sub optKeyOpen_Click()
    frmKeyOpen.Show vbModal
End Sub

Private Sub scrlPicture_Change()
    Call EditorTileScroll
End Sub

Private Sub cmdClear_Click()
    Call EditorClearLayer
End Sub

Private Sub cmdClear2_Click()
    Call EditorClearAttribs
End Sub
Reply
#15
The main image you copied over, set it's visible attrib to true.
Reply
#16
Yeeey thanks Advocate ,, I was checking the forms visibility for true -_- I hate it when I overlook something simple.
Reply
#17
Yeah, no thanks "Robin" who pointed out the picture box was invisible :roll:
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#18
Haha. Yeah, the credit really does go to Robin. I just put what he said in simpler terms. ^_^
Reply
#19
Let's share the credit!

[/gay moment]
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#20
meh ,, not as gay as a school mate of me is -_- alright cookie for Robin as he had the Idea first
Reply
#21
I dunno if I wanna share anything with you Robin. O_o

Specially since that was a gay moment of yours.

*Hides*
Reply
#22
Advocate Wrote:I dunno if I wanna share anything with you Robin. O_o

Specially since that was a gay moment of yours.

*Hides*

Hey, I don't get turned on by guy's who are taken.

But stay away from Kenko for a while.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#23
Why am I staying away from Kenko? He hates me, remember?

Btw, we're going to get this thread locked prolly. O_o

Problems fixed though, by us, so maybe we won't get into trouble.

XD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)