Mirage Source

Free ORPG making software.
It is currently Sat Apr 27, 2024 5:52 pm

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Fill Tile Button
PostPosted: Sat Jan 12, 2008 10:24 pm 
Offline
Pro

Joined: Mon May 29, 2006 5:01 pm
Posts: 420
Location: Canada, BC
Google Talk: anthony.fleck@gmail.com
I noticed there wasn't a tutorial for a Fill button. Decided to make one quickly.

Difficulty 1/5 - Simple Copy/Paste

Client Side

Go to frmMirage and add a command button to your map editor and name it cmdFill. Double click it to open the code and add this between the sub that appears.

Code:
Call EditorFillLayer


Then find EditorClearAttribs sub in modGameLogic and underneath that sub add this new sub.

Code:
Public Sub EditorFillLayer()
Dim y As Long
Dim x As Long
    For y = 0 To MAX_MAPY
        For x = 0 To MAX_MAPX
            If frmMirage.optLayers.Value = True Then
                    With Map.Tile(x, y)
                        If frmMirage.optGround.Value = True Then .Ground = EditorTileY * 7 + EditorTileX
                        If frmMirage.optMask.Value = True Then .Mask = EditorTileY * 7 + EditorTileX
                        If frmMirage.optAnim.Value = True Then .Anim = EditorTileY * 7 + EditorTileX
                        If frmMirage.optFringe.Value = True Then .Fringe = EditorTileY * 7 + EditorTileX
                        End With
                End If
        Next x
    Next y
End Sub


I am not sure if the 7 should be something else? Not sure what vanilla MSE is, I can't remember :P. So if it's filling a different tile than what you clicked on then change it to whatever yours is supposed to be. If that makes sense haha. Thats all.


Top
 Profile  
 
 Post subject: Re: Fill Tile Button
PostPosted: Sat Jan 12, 2008 10:54 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Already been made xD

Thanks anyway.

_________________
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?


Image


Top
 Profile  
 
 Post subject: Re: Fill Tile Button
PostPosted: Sun Jan 13, 2008 12:40 am 
Offline
Pro

Joined: Mon May 29, 2006 5:01 pm
Posts: 420
Location: Canada, BC
Google Talk: anthony.fleck@gmail.com
Oh haha, I couldn't find one :P. Oh well..


Top
 Profile  
 
 Post subject: Re: Fill Tile Button
PostPosted: Sun Jan 13, 2008 12:52 am 
Offline
Pro
User avatar

Joined: Thu Dec 14, 2006 3:20 am
Posts: 495
Location: California
Google Talk: Rezeyu@Gmail.com
Actually there's 3.

One fill, one attribute fill, then one more that did something odd..
Can't recall.


Top
 Profile  
 
 Post subject: Re: Fill Tile Button
PostPosted: Sun Jan 13, 2008 1:12 am 
Offline
Pro

Joined: Mon May 29, 2006 5:01 pm
Posts: 420
Location: Canada, BC
Google Talk: anthony.fleck@gmail.com
Ah I see it now and I did before but didn't read the entire post :P. Just looked at the attribute fill part and skipped over the layer fill.


Top
 Profile  
 
 Post subject: Re: Fill Tile Button
PostPosted: Sat Sep 13, 2008 6:53 pm 
Offline
Knowledgeable
User avatar

Joined: Tue May 30, 2006 1:42 am
Posts: 346
Location: Florida
Sorry for necroing, but there is a fill attribute, fill layer, and then there is one that combines both of them into one button.

_________________
shut your manpleaser
http://www.kazmostech.com


Top
 Profile  
 
 Post subject: Re: Fill Tile Button
PostPosted: Sat Sep 13, 2008 9:37 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
JEUSUS FUCKING CHIRST MAN WTF!

LOCKED

_________________
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?


Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group