Mirage Engine
frmMapeditor - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: frmMapeditor (/showthread.php?tid=859)



frmMapeditor - Styre - 06-04-2007

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


- Xlithan - 07-04-2007

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


- Boo - 07-04-2007

try downloading an Elysium Diamond source and look how they did it.

http://www.elysium.splamm.com


- Reece - 07-04-2007

Or don't be a lazy source ripper and learn?


- Styre - 07-04-2007

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.


- Obsidian - 07-04-2007

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.


- Reece - 07-04-2007

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.


- Matt - 07-04-2007

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.


- Obsidian - 07-04-2007

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.


- Styre - 09-04-2007

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.


- William - 09-04-2007

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.


- Styre - 09-04-2007

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


- Robin - 09-04-2007

Make sure the picture box is visible and you don't change the visibility in the code.


- Styre - 09-04-2007

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



- Matt - 09-04-2007

The main image you copied over, set it's visible attrib to true.


- Styre - 09-04-2007

Yeeey thanks Advocate ,, I was checking the forms visibility for true -_- I hate it when I overlook something simple.


- Robin - 09-04-2007

Yeah, no thanks "Robin" who pointed out the picture box was invisible :roll:


- Matt - 09-04-2007

Haha. Yeah, the credit really does go to Robin. I just put what he said in simpler terms. ^_^


- Robin - 09-04-2007

Let's share the credit!

[/gay moment]


- Styre - 09-04-2007

meh ,, not as gay as a school mate of me is -_- alright cookie for Robin as he had the Idea first


- Matt - 09-04-2007

I dunno if I wanna share anything with you Robin. O_o

Specially since that was a gay moment of yours.

*Hides*


- Robin - 09-04-2007

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.


- Matt - 09-04-2007

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