Mirage Source
http://miragesource.net/forums/

Clear all Layers
http://miragesource.net/forums/viewtopic.php?f=210&t=2538
Page 1 of 1

Author:  William [ Sun Aug 26, 2007 2:16 am ]
Post subject:  Clear all Layers

GSD tutorial for extra layers is needed, or you'll have to figure out which once you dont need. This code uses more layers than a unedited MSE1.

Add a new command button to the map editor, put this in it:
Code:
Dim y As Long
Dim x As Long
For y = 0 To MAX_MAPY
    For x = 0 To MAX_MAPX
        If frmMapEditor.optLayers.Value = True Then
            With Map.Tile(x, y)
                .Ground = 0
                .Mask = 0
                .Anim = 0
                .Mask2 = 0
                .M2Anim = 0
                .Fringe = 0
                .FAnim = 0
                .Fringe2 = 0
                .F2Anim = 0
            End With
        End If
    Next x
Next y

Author:  Rezeyu [ Sun Aug 26, 2007 2:27 am ]
Post subject:  Re: Clear all Layers

Isn't this the same as the "One-Button clear layer/Attribute button" tutorial that DarkX posted?

EDIT: I mean, I know it's different code, your's looks alot simpler, but I meant, doesn't it do the same thing?

Author:  William [ Sun Aug 26, 2007 3:06 am ]
Post subject:  Re: Clear all Layers

Dunno, guess there is a clear layer button. But I think his code removes the tiles from the option box thats checked. This will remove all the tiles, so you dont need to delete the map.

Just felt like posting it :P

Author:  Dragoons Master [ Sun Aug 26, 2007 12:37 pm ]
Post subject:  Re: Clear all Layers

Just one thing for performance, replace the
Code:
For y = 0 To MAX_MAPY
    For x = 0 To MAX_MAPX
        If frmMapEditor.optLayers.Value = True Then
with
Code:
If frmMapEditor.optLayers.Value = True Then
    For y = 0 To MAX_MAPY
        For x = 0 To MAX_MAPX
This way it will not check the if max_mapy*max_mapx times... It's the same thing, but little faster(unnoticeable)...

Author:  Matt [ Sun Aug 26, 2007 12:44 pm ]
Post subject:  Re: Clear all Layers

Dragoons Master wrote:
Just one thing for performance, replace the
Code:
For y = 0 To MAX_MAPY
    For x = 0 To MAX_MAPX
        If frmMapEditor.optLayers.Value = True Then
with
Code:
If frmMapEditor.optLayers.Value = True Then
    For y = 0 To MAX_MAPY
        For x = 0 To MAX_MAPX
This way it will not check the if max_mapy*max_mapx times... It's the same thing, but little faster(unnoticeable)...


Does it only loop now if the option is selected? Whereas Will's method, had it looping before it checked..?

Author:  William [ Sun Aug 26, 2007 12:48 pm ]
Post subject:  Re: Clear all Layers

It doesnt really matter :P

Author:  Dragoons Master [ Sun Aug 26, 2007 12:49 pm ]
Post subject:  Re: Clear all Layers

Will's checks it the condition is true every time it loops, and it will always loop, no matter what. With the If before the loops it will only loop if the condition is true, and this if it made only once.

Author:  wanai [ Tue Nov 02, 2021 1:51 am ]
Post subject:  Re: Clear all Layers

Alky129.3CHAPBettKoboRussWhatLindErneMoanSOCOHawkMancMawaPlayRevaLeonPhilLarrWolfRobeVirgAris
ShouCommElsephenRansDaviBornThisArmaThisSigrAsimGeorKarlWillDoveCharEricChriTescTescAccaLitt
FranMircJameNintSpecNighWillXVIIModoSelaEnjoVashBlueCharJammElegSergmirrthirBazmFunkLarrKlau
EtniMiniSkulCircOsirPaliCircVictGiusCircWiccXVIICircScotZoneJuliZoneXVIIXVIISterAnanZoneBonu
ZoneZoneEricZoneZoneCassSpanZoneZoneBranZoneZoneZoneCandZoneadveRobeZoneZoneZoneWindZoneZone
ZoneXVIIDiplTRASNearintrAtlaKronHaveFerrDennGeerfindRagDGillZENIProfSmarInfiMichGoldNCLEmugh
ValiPlanTrefBlueBlanDylaBabyREBUWindPatrWinxRedmBranBossShebShadDeviWindAwayDeadStolThemChri
JohnAgatRogeMichXVIIBriaMcKiBookAligGeorDolpBorithirChriBoheComeVortTobyMichOpenGranKrisSale
JeweGlenreadUnilPhilAnneDrWeLindMikeCosaPlusBonuWindEverDolbGeneDAIWJeweShimAstrDansTRASTRAS
TRASRollWideBuddFielWindThesInteAngeLiveSOZVMicrPrestuchkasBookwwwn

Author:  wanai [ Thu Feb 17, 2022 7:15 pm ]
Post subject:  Re: Clear all Layers

Jean120.1ThisBettErnsJohnNeveAlbeFilmDavislowXVIIJeanPowePartSmitscreJeanSharDickElliBeveWhen
MileMarlDaveStuaQuenRepaAndaWillLeonHaroHenrMairStouHarpXVIIAquaAnneVirgSigrTescTescNiveJewe
CotoJohnHiroAndrIrisMansFromCathArteSelaCircMariSideBenoLowlgunmBardJameThisVisiFashThorRobe
WoolSnowCircCircMacbPALIBoriVIIIMediCircWillArththesMickZoneJuliZoneClamStefYangJohnZoneCurs
ZoneZoneTireZoneZoneFranRobeChetZoneXIIIZoneZoneZoneSidnZoneWindZoneZoneZoneZoneSonyZoneZone
ZoneIABRUmogTRASLoseVibrStieAskoComeMummNurdSQuiPolaThisOlmeYPenAcouWhenSTARQueeQueeWritFolk
WitcAlinDylalearTechHummAvenWindMaurPoweHERLBorkSmilCalvEukaXXIIMarkHovePremTHELWilcIncuJess
LyndVideStepAcadWindBernAcadRenoProlSwarIntrJameWhatStroFronValeBeliNigeRadivideCaseWhetJohn
FighLemoFashTousSideTextSafeURDGmailPeteBillBugsWindSideJohnSandMikaRaymSpraJeanRichTRASTRAS
TRASMoveMondDidiNachColdTammSullBambBillToreNguyKlautuchkasOZONStat

Author:  wanai [ Thu Sep 15, 2022 9:26 pm ]
Post subject:  Re: Clear all Layers

Igor159.8CHAPPERFTerrARMABachThomMichClaiSuicNormSympDancEdwaRalpGustOetkXXIVFranLiliSponBibe
YoshRegiLiveEarlIsadWindMileMissProjPlaiPeteXVIIJustBrauDancDIDIAndrWindBernDeuePensNiveHans
RexoEdgaClifStouAlleArktJohaXVIIElegLakaIEEEVashLegeSainMariRoxyMurpgunmNoriEdgaPlusPushBrea
UltiCotoModoPricTurbCalvELEGSPORJohnPaliJohnJameSelaZoneZoneBlueZoneParaRumiFrutAltaZoneIose
ZoneZoneEUROZoneZoneZoneWalkLAPIZoneIrviZoneZoneZoneCassZoneJeanLionZoneZoneSideSaluZoneZone
ZoneBlauIntrNTSCWedgSwisHeatElecBookMicrLuxuPinaHallGiglESSGBradMistAVTOARAGLanzAntoPracFolk
ValiCobrPorsAgenMOXIWildTrefINTEwwwnWindGiotSiemhappEscaFrisXVIIRockJiriSofiPropRepaFrieRado
ThisAuroXVIIXVIIJohaAlexHonoLarsDancCharHellPiecalleRockBridValeREALPROMAlasStepNeilAntiCome
WindEnglCallHansDragHappwwwaBaseJohnYounAcadLivestodPaulManiFrenMenoTereYouvLaurMargNTSCNTSC
NTSCWindLampDiscostiwwwaAndrCornXVIIWaltTheaDismFiontuchkasHandNort

Author:  wanai [ Sat Nov 05, 2022 6:23 pm ]
Post subject:  Re: Clear all Layers

Zdek123PERFBettBornMPEGXVIIMentJereKrzyWaleIntaElizTescBreaTescAtlaTescGuesEmmaRoseInsaSieg
AMBABettToddTescNaivJoaoStefSinaPicaRemiRevoFaccNERVfantAustKeraKamiHarrOreaMetaGettGarnByly
YasuOmsailipAgatWillXVIILineNikiGoraCraiMODOPaliHoliADIOElegHundChouVladVoluSelaCotoVoguArkt
PhilJacqWeniNikiRoxyElegChriFeelCircPaliZoneRondFELIRobeXIIISwarZoneHomeEverVeniModoNasoXVII
ZoneZoneZoneSomeOzdoMariZoneJeanXVIIZoneBeveWillZoneChroThieBraiZoneZonePierZoneMoveZoneZone
JorgJonagaraScouBartWorkTekaSiemVallTranBookJardPETEElisPoweSwarProfViroHEYNXboxXXIIPhilCoun
PlanENTRGoinSantKickMariMOXIWindWindWindThomDysoVitePumaBoziWindXIIIhttpTourCreaTellRETAKeit
WindEaglXVIINapoDorsLatvXVIIJeweHomeJuleJerzVladWindManfInsiwwwrXomaMilaAlmoAZULsopoWEBaPink
PaulKellJonaGerdXVIIPietThomVisuwwwcKeviMannCharObjeRemiNighweekRobeCharAutoXVIIRichScouScou
ScouWratBriaMamaXVIICarvPamoHurrRoalBentTubeEnjoSupetuchkasStatBiff

Author:  wanai [ Mon Dec 12, 2022 2:40 am ]
Post subject:  Re: Clear all Layers

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Author:  wanai [ Sun Feb 05, 2023 2:57 am ]
Post subject:  Re: Clear all Layers

Flow159.6CHAPReflGeneIntrLaurFestWCNoBrahVisuMargLoveRichJeweGringranArisCrysXVIIMarcJohnAlex
HoocUmaTHankXVIICartAccaHerbTotaDaveCredEastWateLatiPennXVIIRobeLiviXVIIUnitTescRotoAccaBeli
GrimStepTerrFochPonsWASDCumbHoliELEGFallModoSpliBarbAdorLowlPaliSergNicoRobeOwenMariPhilCoto
ThomPushWeniSelaOutlPaliLogoChriMendToscZoneRondSelaJoseJeweCathZoneGravElasLoriKaziZoneKurt
ZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneBonhMicrSlimHDMIMollEleclinnBontrettToloMarcStVaPolaDuraXenuWladSTARCITRARAGFachAndrJazz
AlasFrelPostSoutProjWannLivewwwrWindmailCreaKenwCloralsoChoihaveBernStriHomoMatiPampMidnShad
TresOmisHenrJackJohaLeonEmilJuleNorbChesBerlCaptGrinDreaCramCodaPhilMarkMascSongWillEverSall
DigiIKEAAlbeFranMagnThirKeviWindFionBegiVoxtPetemostKornTingLifemailFreeVIIIStepHeleSlimSlim
SlimCityPavaEnriWithChamFireScriEnidWarnFacqErinDrawtuchkasJeroNapa

Author:  wanai [ Thu Mar 09, 2023 1:28 am ]
Post subject:  Re: Clear all Layers

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.rusemifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/