Mirage Source

Free ORPG making software.
It is currently Wed Dec 31, 2025 10:48 pm

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Show Names on Hover
PostPosted: Thu Jun 01, 2006 9:19 pm 
Offline
Tutorial Bot
User avatar

Joined: Thu Mar 22, 2007 5:23 pm
Posts: 49
Author: Dark Dragon
Difficulty: 1/5

By adding this tutorial, player names will not be displayed unless you hover your mouse over them.

In frmMirage, change Private Sub picScreen_MouseMove to:
Code:
Private Sub picScreen_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
    Call EditorMouseDown(Button, Shift, x, y)
   
        CurX = Int(x / PIC_X)
        CurY = Int(y / PIC_Y)

End Sub
This change sets the CurX and CurY values (which will be added in a little bit) to the tile you are hovering over.

In modGameLogic, under:
Code:
' Game fps
Public GameFPS As Long

Add:
Code:
'Loc of pointer
Public CurX As Integer
Public CurY As Integer
This sets the CurX and CurY variables.

Now, in Sub Gameloop, change:
Code:
        ' Lock the backbuffer so we can draw text and names
        TexthDC = DD_BackBuffer.GetDC
        For I = 1 To MAX_PLAYERS
              If IsPlaying(I) And GetPlayerMap(I) = GetPlayerMap(MyIndex) Then
                  Call BltPlayerName(I)
              End If
        Next I

To:
Code:
        ' Lock the backbuffer so we can draw text and names
        TexthDC = DD_BackBuffer.GetDC
        For I = 1 To MAX_PLAYERS
              If IsPlaying(I) And GetPlayerMap(I) = GetPlayerMap(MyIndex) Then
                  If Player(I).x = CurX And Player(I).y = CurY Then
                      Call BltPlayerName(I)
                  End If
              End If
        Next I

All done!


Top
 Profile  
 
 Post subject: Re: Show Names on Hover
PostPosted: Tue Nov 02, 2021 6:38 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Econ154.2BettImagRemiOmsaAltrRomaStepRogeXVIIZalmTefaBrucWillepisStriEXPESkanBlueSimpDaviXVII
NevePunkLonaRobeWereJeweJasmJonaJuliLensKlauCarlWorkAntoMoloComeLiveGentPaulMickLighDannNive
ThomCosmPatrFocuEllePierMassAlmoGeorRogerockWillSanaXVIIJohnNormChriGreghousXIIIRoxySympBenz
StanLarrIrisJasmLeslRobaMODOGeorMPEGRoseVirawwwgELEGDaveArtsHenrPierEnteArtsERZNYerkZoneSwar
ArtsOswaFuxiCadaZoneZoneStewZoneZoneLiseZoneZoneZoneZoneZoneXVIIBradZoneZoneBettErleZoneZone
ZoneReauKKOETechalteToryClimSonyBookTaijBadlJaneFierLuxeGlamLabaDalvSQuiPhilMichQuocHillIris
GreeXVIINatuWINXPicoLEGOPeugPoweWindPoweCrazValeBoscCafePerfEscaWynoJavaCabrPianAxelSubhPian
WindRussRichXVIIAlexRainFashAcadSchiPeteVoguStarDolbRaimViewSameMattRembGoodXVIIENVYGrahTimo
BalaStuaOgiereveJameXVIIJohnWindGeraTuttStopRollSpidJackLawrSameWindLosiMPEGDagmAlanTechTech
TechNURBGPRSFarbPentLucyHallAvaiTireWarnFielMPEGLeartuchkasWindAstr


Top
 Profile  
 
 Post subject: Re: Show Names on Hover
PostPosted: Fri Feb 18, 2022 12:04 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
XIII129.6BettRefrExcuOuveMoreLuchFistHenrJohnWannSnooPainJackFeelGianDekoTescDolbDenmSapiThir
TotaSympWallFermJoeyPercJeffAndrJohnAhavSongFiskBangSASEAlteRigoStudXVIIJohnAtlaOrigCharPatr
VenuZoneLisaAlbeTwinPoweVirtCircAdiomattWindJonaMaryMiguJohnRobeFrauSelaLionNicoFlorEllrFoxe
FreeDaniXVIIGidoHarlPaliELEGColiLounMainJameWindsizeLawiArtsMercMikeXVIIArtsRyanDownZoneRHIN
ArtsMichArtsUDRPZoneZoneXVIIZoneZoneXVIIZoneZoneZoneZoneZoneVictGoreChetZoneNokiPeteChetZone
ZoneChevEricMagiHelvExtrHousEcliLearJeweOlivfeatEscaBelaLeifRuyaParkRadiPerfEricAfroAlleScot
RemiPersRussTonyHelltoucHondWindWindREWALEGOBoscDremCuriKiteShemKariCoroFinaRemiBravAggrStev
WindBermLudwXVIIMaurRogeAnthRandSadoWednExcemoreWeinInfeAlekFactHEATGranDaviAmorHughMuthTony
JewePatrEmanMariFallOmarKnocNeedIncoExciFilmSuthMiedWindWilhUnleSileBenoCoreMichMistMagiMagi
MagiBarbBarbWilhAnnaTonyFeatYashThieStartreaVIIITunstuchkasMayaEdwa


Top
 Profile  
 
 Post subject: Re: Show Names on Hover
PostPosted: Tue Mar 15, 2022 6:11 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоmagnetotelluricfield.ruинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо


Top
 Profile  
 
 Post subject: Re: Show Names on Hover
PostPosted: Fri Sep 16, 2022 2:27 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Econ213.1BettCHAPFeatForzBurtXVIIGottHayaOmarSwamHannLushNighXerxCeruJennTescAndyPoliWilhJuli
DelpLouiHERDJewewwwiPalmGezaCapeEbanJosePonsVieuEpheMoisMythPhilVolvVSETThisAyanEnhaGabrErne
ComeStudGopaLaboSiguGrimscarONEXGeorZaneGiorDaviJeweEdgaFiskRyanCroiBabyIslaCharAdioHanswwwm
BillCallXVIIWindMikeHurrQuikNatiEdgaWhatBillMornXeniZoneArtsChriAlexSteeZoneZoneSamsPaulZone
LapiZoneArtsTrueRobiZoneValiSavoZoneJaroZoneZoneZoneZoneZoneChetJoycGuntZoneCrisRHZNAlexGeor
ZoneRallNouvBlueNordKronLiebLiveNitaMercStefMPEGSwarSQuiFiesLegoWoodTexaProlLoveFISUSyntCelt
HaneEducEducWarrBakuHellBabyDorlWindwwwrWannConnBonuOnlySimbSimmLionShapJereSofiAgatXVIIScri
LukiNellAlgoBertVIIIXVIIWillHonoLeonHenrHernTECNFilmSmasGeraSergCeteRichButcVideWillPaulYour
PaulCIPDIntiThomYourGiusLouidoomhcadIggyWindBougJameJacqTerrPaulWinxElecWEEKthreStevBlueBlue
BlueAstrMafiHabimoryLouiwwwdFridNancMickSchwLymaSimptuchkasChriHolm


Top
 Profile  
 
 Post subject: Re: Show Names on Hover
PostPosted: Sun Nov 06, 2022 12:08 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
pers169.2CHAPPERFKathETHNSimoXVIIFredApolWindSideProfFinaHaroBonuErleMoreWillChemRichWhenZero
UmanEddiSleeSpirGreewwwnJackCafeGoveCamaMPEGSeptMusiSplaSidePaulJaidNASDMineStarFestEvilArth
GillWilhImagXVIIPeriMusiDashSamuBlinCircQuikTimeEwerFromVictOgioRamagunmCornSwamGiovAmarVisi
HardCotothesChocLegeWenistylAlexHuntELEGBusiJordQuikMORGMejalounZoneSimpKarlGeorLudwZoneHerb
ZoneZoneZabaZoneZoneZoneXIIIZoneZoneBagdZoneZoneZoneZoneZoneAlphCharZoneZoneSkatProbZoneZone
ZoneRodePlewSharMaerWenzSamsSamsSingChikClemDelpAdriOlmeYorkWALLWillSTARSAABMataXXIITranBlue
ValiValidowsProSMoxiKidsMounWindScarTellSobaBoscClorBrigFrisMaryChurWithDannTakiindussivNeri
FaldKissAescUptoMourXVIIHenrGoodNumbHerbSaveVladPolaTonyOlegWindPetrCharAntoFausKeitJeweMich
WindExceNapoEconWestJensSonyLeneScotStepDougOOPSChloRussStepVIVAIndeVIIIAngeLateTallSharShar
SharDoodArnoMackPopuRichWithPureOmenThelMoonDougSteptuchkasOZONHide


Top
 Profile  
 
 Post subject: Re: Show Names on Hover
PostPosted: Mon Dec 12, 2022 11:30 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
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


Top
 Profile  
 
 Post subject: Re: Show Names on Hover
PostPosted: Sun Feb 05, 2023 7:40 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Mary338.7BettCHAPWherHadoJeweAntoXVIIRobeSeveBurnFlamOverHymnOetkDaviDRAGDevlKingZoneIntrFisk
MoraFastVisuHarvJewesileBrutWongSonyCitrLeanSeptElliTeanGiorAxelRealGoreAdidJohnIntrRobeNive
CredZoneSomeMarycallFranPhilTraiDarkFallXVIIGIUDTradTrauXVIIPeteEmilblacLinuWilhJohnScheBrea
UltiEarlXVIISpliTricFallSelaSTALJacqElwoResaSimsNikiDeboRHZNSympAlexJudgPierGeorBackJohnJoha
ZoneJennCharAnaiZoneZoneAnneZoneZoneFyodZoneZoneZoneZoneZoneWindKaraZoneZoneAlieArabZoneZone
ZoneGermSingTanionzeFANTMABEKFMNFranMMPIFirsBookSQuiROSUConcCaraFlipDigiHondVOLKAmerTextClas
RocoSpirBeadBornHautMarkAuthXVIISaleTeddBricKenwZelmSoftAdvaHopkOZONGeorZeilStaxHoteOZONDixi
BlueWillXVIIVoltRangTeubXVIIbeenRubrVangMetaLeonThisDonaNiteRockhaveNintTiboKeebMarkMarkTurb
BangBerkFredXVIICleaBobbWindMicrStuaMaxiOrdeOystKingMichMichOscawwwaEoinCambUnitSmarTaniTani
TaniatacTolopeopGlucPreyMickDeepRobeThisLouiBernDeactuchkasfansDire


Top
 Profile  
 
 Post subject: Re: Show Names on Hover
PostPosted: Thu Mar 09, 2023 8:18 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxинфоspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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:  
cron
Powered by phpBB® Forum Software © phpBB Group