| Mirage Source http://www.miragesource.net/forums/ |
|
| Fill Tile Button http://www.miragesource.net/forums/viewtopic.php?f=210&t=3265 |
Page 1 of 1 |
| Author: | Anthony [ Sat Jan 12, 2008 10:24 pm ] |
| Post subject: | Fill Tile Button |
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 |
|
| Author: | Robin [ Sat Jan 12, 2008 10:54 pm ] |
| Post subject: | Re: Fill Tile Button |
Already been made xD Thanks anyway. |
|
| Author: | Anthony [ Sun Jan 13, 2008 12:40 am ] |
| Post subject: | Re: Fill Tile Button |
Oh haha, I couldn't find one |
|
| Author: | Rezeyu [ Sun Jan 13, 2008 12:52 am ] |
| Post subject: | Re: Fill Tile Button |
Actually there's 3. One fill, one attribute fill, then one more that did something odd.. Can't recall. |
|
| Author: | Anthony [ Sun Jan 13, 2008 1:12 am ] |
| Post subject: | Re: Fill Tile Button |
Ah I see it now and I did before but didn't read the entire post |
|
| Author: | DarkX [ Sat Sep 13, 2008 6:53 pm ] |
| Post subject: | Re: Fill Tile Button |
Sorry for necroing, but there is a fill attribute, fill layer, and then there is one that combines both of them into one button. |
|
| Author: | Robin [ Sat Sep 13, 2008 9:37 pm ] |
| Post subject: | Re: Fill Tile Button |
JEUSUS FUCKING CHIRST MAN WTF! LOCKED |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|