Mirage Source
/editmap command - Printable Version

+- Mirage Source (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: /editmap command (/showthread.php?tid=1709)



/editmap command - Labmonkey - 27-04-2008

I know this is pretty simple, but people coming from elysium may find it really annoying to type "/editmap" and have nothing happen, and then realize that they have to type "/mapeditor" also it is really counter-intuitive to have every other editor be "/editX" expect for the map.


Ok anyway.
in modGameLogic, in the HandleKeypresses sub, find
Code:
' Map Editor
            If LCase$(Mid$(MyText, 1, 10)) = "/mapeditor" Then
                frmMirage.Width = 14175
                Call SendRequestEditMap
                MyText = vbNullString
                frmMirage.txtMyChat.Text = vbNullString
                Exit Sub
            End If

under it put

Code:
' Map Editor Alternative
            If LCase$(Mid$(MyText, 1, 8)) = "/editmap" Then
                frmMirage.Width = 14175
                Call SendRequestEditMap
                MyText = vbNullString
                frmMirage.txtMyChat.Text = vbNullString
                Exit Sub
            End If



Re: /editmap command - Beres - 06-05-2008

OMG thx soo much! You saved my life :wink:


Re: /editmap command - Labmonkey - 06-05-2008

Your welcome Wink


Re: /editmap command - Robin - 06-05-2008

Who said Americans can't detect sarcasm? Wink


Re: /editmap command - Tony - 07-05-2008

Code:
' Map Editor
            If LCase$(Mid$(MyText, 1, 10)) = "/mapeditor" or LCase$(Mid$(MyText, 1, 8)) = "/editmap" Then
                frmMirage.Width = 14175
                Call SendRequestEditMap
                MyText = vbNullString
                frmMirage.txtMyChat.Text = vbNullString
                Exit Sub
            End If



Re: /editmap command - Labmonkey - 07-05-2008

Thank you for that great optimization! I am sure it will help people with slow computers!


Re: /editmap command - Robin - 07-05-2008

Actually, speed-wise it does fuck all. It's still doing two checks.

Just saves on space.


Re: /editmap command - Labmonkey - 07-05-2008

And you say americans cant detect sarcasm... unless you where also being sarcastic... damn I'm confused.


Re: /editmap command - Soyokaze - 08-05-2008

Labmonkey Wrote:And you say americans cant detect sarcasm... unless you where also being sarcastic... damn I'm confused.

Keep on trying, I'm sure you'll learn how to properly utilize the amazing skills of sarcasm eventually.


Re: /editmap command - Robin - 08-05-2008

Labmonkey Wrote:And you say americans cant detect sarcasm... unless you where also being sarcastic... damn I'm confused.

I know you were being sarcastic. From what you said though, I thought you were just exaggerating on the sense that it would increase speed by a small amount.


Re: /editmap command - Labmonkey - 08-05-2008

I hate when this happens on the internet.... the sarcasm part, not the ... wait what parts weren't sarcastic???