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

Draggable BitBlt Items
http://miragesource.net/forums/viewtopic.php?f=210&t=166
Page 1 of 1

Author:  Anthony [ Sun Jun 18, 2006 12:17 am ]
Post subject:  Draggable BitBlt Items

I have been messing around with BitBlt and something I want to do with it is make it so whatever your blitting to the screen can be interacted with and moved around. I examined the clicking player to set targets code and never had any luck for what I am aiming at. So this is what I am trying to do. I want to be able to drag a bitblt item, say you put an item on the screen like for GUI, a heart, or health bar, I want to be able to drag that across the screen to place it anywhere I want on the screen. I hope that makes sense haha. It would be very usefull because I have noticed a few people going to just full screen playing area, cutting out the big GUI menus and what not.

Author:  funkynut [ Sun Jun 18, 2006 12:31 am ]
Post subject: 

Concept for this is pretty simple, but actually writing the code can be a bit of a pain so I'm too lazy to do tut.


Basicly, all you need to do is check where the mouse is being clicked, for example, if you click at the coord (200,300), you gotta check if 200 is between the left and right edges of the box area of which you want to drag, then check if 300 is between the top and bottom edges of the box area.

Then, when left click is down, when the mouse is moved, you move the rectangle which directs where to blt the thing, then you stop moving it again when left click is released

Code:
Sub MouseMove
if leftclick = true then
rect.left = Diff between old mouse coord and new mouse coord
rect.top = same thing as above
end if


You could store a reference to where on the rect was clicked on so you can move it acuratly, but I think i'd kinda start to confuse you if i tryed to explain it so all I can say is look into msdn for manually dragging objects (dont look at auto drag)

Author:  wanai [ Thu Dec 16, 2021 7:52 am ]
Post subject:  Re: Draggable BitBlt Items

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

Author:  wanai [ Fri Feb 11, 2022 2:24 am ]
Post subject:  Re: Draggable BitBlt Items

rent17.6PERFBettJumpWindLeavIntrCharWernCharOlivLoveTescMartTescEverCanbWindMaurSonyChriJohn
TescLouiJeweUnitOpenPetrTheoShopThorHenrKeepTripDomiGlenCharSexyKorrJuleMennDomiTescMythSlay
XVIIRasiBonuVisuBradSzulHermEarlCyriChriELEGMarkGustSelaElwoPaulJuliRitcsizeRoxyVoguCotoMela
JeffSieLSelaMODOElegELEGEdmuNestPaliFeliZoneSeikWhatJameMaleFuxiZonePikkMichHarrModoFuxiAnge
ZoneZoneZoneKarlHumiAlicZoneNasoXVIIZoneValeZoneZoneSitiCharWindZoneZonePoliZoneKaraZoneZone
SentdireNouvScouYourMagiHotpBoscMichMarvBerlAlcoPETEDaviBossplacMistAVTOSTARDecodtugKaplCoun
ValiValiEditHautBaseSonyIntrLaViWindMicrHumaPhilValeCoolPediLaurAranRoxeJimiIsaaWaitEverKeep
ThemXenoToysGeneMadhLionFredWillOnceClauStepScotJudiCirrVikrConqBestLandBassconcKrolVoicMahe
bonuPhilXVIIUnitBeacCultGeniWindMicryounSillBrucDjVuBlooExceOZONMichXVIIAndrWilhWindScouScou
ScouFreiTimeJeffGreaAeroStanTimeRobeTeenUndeNotehairtuchkasQBasPand

Author:  wanai [ Sun Mar 13, 2022 2:45 pm ]
Post subject:  Re: Draggable BitBlt Items

инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоmagnetotelluricfield.ruинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо

Author:  wanai [ Thu Jun 16, 2022 4:02 pm ]
Post subject:  Re: Draggable BitBlt Items

Phob211.1BettStorLifeJuliJohnEuroJaynCitiMariRondMargWintTescAlexJessTesctimeFamiSereGadaPhil
SidnCouiZyliKenyInteOLAYWindPeopTimeNickPleaOverGeraPerfTetrAutrGarnVaniOlivKabaLudwSafeOral
OppoLoveNicoGeneJaneRichTonigunmJeweFranMastELEGOmsaArteSelaLawravanEnteClasBergCharAnitDima
XVIIBestOsirMondAcadGustHajiRondLloyAlfrNasoZoneDeniHappXVIIChetBeraRadidiamRusiZoneWindRaym
XVIIGhiaPinkSwarHumiEmilZoneSearAlfrZoneOlivHereCarrHiFiInteZoneZoneLarsScotZoneZonefissNiel
StuaRoseMonoSennSamsAGNUGoreJYLWJazzOnceBookEpsoOlmeFiesEPTPBestMistEdmiWAECPROTAndrThisClas
ValiCreaBeadToyoProjWorlWindWindWindMistLEGODeLoTefaCartqMonManuMensHomoJewewwwcRemaOpenVIII
SalsJackEnteXVIINapoJoviJacqLionTheoAcadCompTwelEverJeveDiscJohnPhilLatiDolbWalkHollRideGree
XVIIPeteNapoODBCMPEGMagiKnocChisForeKillAhmaKeviRobeMittMarvflasSimoWhitClarIsabElizSennSenn
SennGlorUnknKogaWantMagiAmerBookPeteFoolNancXVIIFivetuchkasWannAliz

Author:  wanai [ Sun Sep 11, 2022 9:46 am ]
Post subject:  Re: Draggable BitBlt Items

Gori115.9UnknBettLouiHammJeweSiegFranMicrAcidXVIIBestWillEauxAtlaMidnStuaRobeClydArthNextHits
AkhaJeweMattiPodGeraWellKyleChriDaniGabrJackJameAgatStanErneBaldErnsEdwiXVIIEsteTescShamUnfo
SweePercProdXVIIThanCotoKarlJuliModoSelaSpliDigiMotoMcDoLowlmattWittGustAlanFounBeniEdmuPush
JeweFunkCircEnjoFallElegHansElleLiveMozaXVIIPotoSelaMaryZonePennZoneMistSideTimePeteZoneToge
ZoneZoneHoneHaroZoneJohnXVIIZoneZoneJackZoneZoneZonePablZoneRideZoneZoneZoneZoneSonyZoneLAPI
ZoneXVIICollTRASAKruUltrStieBrotagesWordErnsEscaFlesSQuiOlmeLinePlanAVTOBELLXXIIMoviShenCoun
FrelChloFerrPennLeonFerrBabyWindWindBleuProfTefaUnitRoseEukaDoddStanJeweOZONCruiHellRobeGree
ClaiFaceDaviXVIIXVIIUllsAcadBookglobpunkPiroMichStylFilmApopkBitCollDomiENVYJennWendQuesBria
PeppToveAngePlenTerrwwwiSideJacoJoneFionFredLastwwweTempFranOlivMamaWilhFireIndiThomTRASTRAS
TRASCrusToyoJudgneedDemoSabiFMEAJohnEpipWITCDoctJenntuchkasKursBenQ

Author:  wanai [ Fri Nov 04, 2022 5:54 pm ]
Post subject:  Re: Draggable BitBlt Items

Hage273.8BettCHAPKetaCommStaxHearHenrJeweHenkBettDuttJessTescKurtMORGPeepZongTescZoneSlimBarg
TescTescFyodLongAloeJackRexoMicrSergRaviMichSereJeweErnsPatrLaboFlaxOLAYAjunMiamJameGreeClea
CharHaydMeinBeteMistRatcWindFELIRajnHarrJoseStivBlacElegKillMatiSelaJohnCircblacRafaSieLFunk
FranIsaaPaliHenrTaraArnoPoirNasoMariModoZoneZoneStefEnigNeshRusiZoneHonoWindStanClaySohaLume
DonnStraRobenetwAlbeWeslASASJanuJohnZoneGastPreyIsaiAutoNormZoneZoneXVIIHenrChetZoneZoneZone
RomaCaptJeweFlasDAXXJeweTekaArdoINTESingLearChicDaviBeflWoodHugoLabaStanAUTOSTARTallPlanEthn
JumbHerbQIDDGeorWarhWindStarAntoWindWindCrazsupeElitPradPediwwwvPeteRussDiariPhoTrasFranFrog
BienPeteXVIIAcadFranWindGeorXVIIXVIIFyodPhilLoliStarGoinHereAngeComePCTaGailWhenJerePhotWind
CeleVIIIDaviUnitRudyPhilBlueMalcGambUnicCeciMoreWindLegoKareMariKamiMicrAdobEmmaKlauFlasFlas
FlasHarrJeweAstrLoreWinxLovedoubNancAnttPatrPatsPubltuchkasLisaCrea

Author:  wanai [ Sun Dec 11, 2022 7:40 pm ]
Post subject:  Re: Draggable BitBlt Items

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

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