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
Posts: 345
Threads: 48
Joined: Nov 2021
Reputation:
0
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
try downloading an Elysium Diamond source and look how they did it.
http://www.elysium.splamm.com
Or don't be a lazy source ripper and learn?
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.
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.
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.
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.
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.
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.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
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.
Did that.
I'll edit with a screenie in a sec.
EDIT: My MApeditor when I open it In game
It should look like the basic Mirage Mapeditor
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
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?
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
The main image you copied over, set it's visible attrib to true.
Yeeey thanks Advocate ,, I was checking the forms visibility for true -_- I hate it when I overlook something simple.
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
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?
Haha. Yeah, the credit really does go to Robin. I just put what he said in simpler terms. ^_^
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
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?
meh ,, not as gay as a school mate of me is -_- alright cookie for Robin as he had the Idea first
I dunno if I wanna share anything with you Robin. O_o
Specially since that was a gay moment of yours.
*Hides*
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
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?
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
|