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

Dont call map editor when moving mouse but staying on same t
http://miragesource.net/forums/viewtopic.php?f=183&t=4677
Page 1 of 66

Author:  Joost [ Sat Nov 01, 2008 11:45 pm ]
Post subject:  Dont call map editor when moving mouse but staying on same t

ile


Basicly, if you move your mouse while it's pressed, the map editor lays down a tile. Even though that tile is already there. Not required, easy fix

Private Sub picScreen_MouseMove
Code:
    If CurX = X \ PIX_X And CurY = Y \ PIC_Y And Button = vbLeftButton Then Exit Sub


And right above that, under If InEditor Then add
Code:
        CurX = 100
        CurY = 100


Just to make sure you can edit a tile you just placed.

Author:  Labmonkey [ Mon Nov 03, 2008 1:41 am ]
Post subject:  Re: Dont call map editor when moving mouse but staying on same t

Code:
        CurX = 100
        CurY = 100

Joost, please explain..

Author:  Joost [ Mon Nov 03, 2008 11:09 am ]
Post subject:  Re: Dont call map editor when moving mouse but staying on same t

I probably added that to reset the X and Y if you select a different tile, because (0,0) is a tile, I couldn't set them both to 0. Best way would've been setting them to MAX Y/X + 1 or something, but 100 works as welll :D

Author:  Labmonkey [ Mon Nov 03, 2008 12:30 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on same t

It appears you reset curx and y, and then check if you were on the same tile as the reset values, which means

Code:
    If CurX = X \ PIX_X And CurY = Y \ PIC_Y And Button = vbLeftButton Then Exit Sub

will never get called.

Author:  wanai [ Wed Dec 01, 2021 8:14 am ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffuserhttp://semiasphalticflux.rusemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchuckинфоtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimate.rutemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Author:  wanai [ Thu Dec 30, 2021 11:05 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Econ

Author:  wanai [ Thu Dec 30, 2021 11:06 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

64.4

Author:  wanai [ Thu Dec 30, 2021 11:07 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Bett

Author:  wanai [ Thu Dec 30, 2021 11:08 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Bett

Author:  wanai [ Thu Dec 30, 2021 11:09 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Serg

Author:  wanai [ Thu Dec 30, 2021 11:11 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Inva

Author:  wanai [ Thu Dec 30, 2021 11:12 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Mejo

Author:  wanai [ Thu Dec 30, 2021 11:13 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

XVII

Author:  wanai [ Thu Dec 30, 2021 11:14 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Geor

Author:  wanai [ Thu Dec 30, 2021 11:15 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Cash

Author:  wanai [ Thu Dec 30, 2021 11:16 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Wind

Author:  wanai [ Thu Dec 30, 2021 11:17 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Care

Author:  wanai [ Thu Dec 30, 2021 11:18 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Tesc

Author:  wanai [ Thu Dec 30, 2021 11:19 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Luxo

Author:  wanai [ Thu Dec 30, 2021 11:21 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Fisk

Author:  wanai [ Thu Dec 30, 2021 11:22 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

JOHA

Author:  wanai [ Thu Dec 30, 2021 11:23 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Jewe

Author:  wanai [ Thu Dec 30, 2021 11:24 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Clas

Author:  wanai [ Thu Dec 30, 2021 11:25 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Mart

Author:  wanai [ Thu Dec 30, 2021 11:26 pm ]
Post subject:  Re: Dont call map editor when moving mouse but staying on sa

Agog

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