Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 4:58 pm

All times are UTC




Post new topic Reply to topic  [ 21 posts ] 
Author Message
 Post subject: Right Click Menu
PostPosted: Fri Feb 20, 2009 2:20 am 
Offline
Regular

Joined: Sat Sep 20, 2008 9:19 pm
Posts: 31
Ive had a code for a right click menu for awhile now. its pretty easy to make and all just i wanted to give to you since idt ill be programming for awhile now. So here it is lol

In frmMirage make a picturebox called "picRightClick". Set its visible to false.

In ModGlobals add this line anywhere:
Code:
Public RclickIndex as Long
.

In frmMirage's code replace the code "picScreen_MouseDown" with this:
Code:
Dim i As Long

    If Button = 2 Then
        For i = 1 To MAX_PLAYERS
            If GetPlayerMap(i) = GetPlayerMap(MyIndex) Then
                If GetPlayerX(i) * 32 = x Or x + 32 Then
                    If GetPlayerY(i) * 32 = y Or y + 32 Then
                        frmMirage.picRightClick.Visible = True
                    End If
                End If
            End If
        Next i
    End If
   
    If Button = 1 Then
        Call EditorMouseDown(Button, Shift, x, y)
        Call PlayerSearch(Button, Shift, x, y)
    End If


There it is. I hope it works for all of you


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Feb 20, 2009 10:28 am 
Offline
Knowledgeable

Joined: Thu Nov 22, 2007 2:59 pm
Posts: 143
Location: London, England
Google Talk: aeronjl+mirage@googlemail.com
Correct me if I'm wrong, but wouldn't that just show a menu in the same place everytime, i.e. it wouldn't appear where the mouse is.


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Feb 20, 2009 10:48 am 
Offline
Knowledgeable
User avatar

Joined: Fri Sep 12, 2008 11:18 pm
Posts: 176
Location: England.
I believe so. I don't even get the code, it doesn't make sense.

Code:
Public RclickIndex as Long


That isn't needed, amirite?


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Feb 20, 2009 12:58 pm 
Offline
Regular

Joined: Sat Sep 20, 2008 9:19 pm
Posts: 31
Acutally no.
Ive tried this before.
It gets the x and y of the cursor and then looks threw every player's x and y and sees if the cursor is there. Thats only if its button 2.
Then the rclickindex is needed because if you wanted to add a Invite party thing to menu you just gotta put
SendPartyRequest(RclickiNdex). It sets the index of the menu.


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Feb 20, 2009 1:48 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
addy wrote:
Acutally no.
Ive tried this before.
It gets the x and y of the cursor and then looks threw every player's x and y and sees if the cursor is there. Thats only if its button 2.
Then the rclickindex is needed because if you wanted to add a Invite party thing to menu you just gotta put
SendPartyRequest(RclickiNdex). It sets the index of the menu.


The menu still opens up at the same place.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Feb 20, 2009 3:47 pm 
Offline
Knowledgeable
User avatar

Joined: Fri Sep 12, 2008 11:18 pm
Posts: 176
Location: England.
Shouldn't it use CurX & CurY?


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Feb 20, 2009 4:59 pm 
Mattyw wrote:
Shouldn't it use CurX & CurY?


For displaying, yes. But the other is for getting the x/y of the player you right clicked.

It's a very good idea, but it needs to be tweaked a bit still.


Top
  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Feb 20, 2009 9:06 pm 
Offline
Regular

Joined: Sat Sep 20, 2008 9:19 pm
Posts: 31
Dam. I only thought CurX and CurY was for Eclipse.
I saw that Eclipse tweaked it and i made it a great script on eclipse.


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Tue Nov 02, 2021 6:46 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
XVII159.6BettraysBonuAlfrWindRainPercWhatJavaSixtAtlaWernErneGinaTescUnitAgneEllaMarcAlanMirc
MeniChihTescGyorBreaLondcompSigmDougFitnIntrDeadWeihMangNearcredPureTaftFrieHerdDiscLewiGill
FredJeanspliThomLittDeweWindCircHarpJohaWillWillSujoAuguPierJuleLarrPaliPoulThanMariWintAnam
MariGiocGeorEdgaBuddELEGELEGRobeJuliSmarMaxiRaceELEGModeDaviProdPierXXIIArtsRHINCockZoneArts
ArtsMargFuxiRoseZoneZoneTogeZoneZoneUnchdiamZoneZoneZoneMiyoHistXVIIZoneZoneNokiXVIIZoneZone
ZoneMadeAngeRussSterRomaSamsCataBookFantWinfWindAnimMercDaliLabaFlipTickMystPremPatiOxycElec
bestCreaTrefKiriFiresensPorsKathGreaJeweBeifPhilsupeSalvAdvaStarNottWiFiXVIIHannParkGITSIntr
FantStefStenDaviCorbJohnClosMoguHypeWaltCareHoliSellLiyaLifeFormremifilmvideMarsOstrKokoSand
XVIIMartApplThomClanHangbestRazeRobeMinsSuffWhatLEGOKurtMarsOuveOutlTimeSadiCoatRichRussRuss
RussbonuAndrLoveDiagfirsJohnimpoLisaRobeDireMichXVIItuchkasStamAstr


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Feb 18, 2022 12:12 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Econ138.1BettthisOutkShadWindLouiEvenRetuistoChamMickSummTheoHughStraUnitSnowPianArinClanTitt
CafeJanaRollGuteGoinNoboDaviIrviCollAloeEsprFiskThatCamaJoseCharVartWillXVIIFiskPassGuilMimo
MatiZoneCrasJumpAmarJameSonyCircClayBlurwwwgXXIVDaviServGeorAdveRichNikiCrasNealStraGlenClau
RockRobeJohaJohnXVIIElegELEGHermDreaAlmoRehaRiveELEGPariArtsRegiPlatMarkArtsFuxiYeahArtsChet
ArtsJenndiamJeweZoneZoneJeanZoneZoneWinoZoneZoneZoneZoneMORGLeweRuthZoneZoneKeitAlfrZoneZone
ZoneWindPeteMultSultDenvClimJapaNeedToloCranCartDaviPianMineLabaFootSQuiAlpiwwwnWireXVIINewA
ValiTranWrebFromJuniChesMercWindWindPoweLambTefaBoscDaviKiteTracComeAlexJakeSoirPaulMereHave
DarkFranTigrXVIIJameAcadBurdGeneJohnCharSergTembTherSereBeliStreBiocNintMarkBeatKickCokyIcha
FreeKareHammNapoXXIIButtHellBriaDaniHaleHellFranCondCameGhosPlanwwweJeffMPEGJennElizMultMult
MultWindMojrsaleBabyWilhBlinEaglChriHerzFacqDeriConftuchkasVideYork


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Tue Mar 15, 2022 6:31 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтmagnetotelluricfieldсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Sep 16, 2022 2:36 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Econ217.1BettCHAPYourZaraJeweXVIIBrotBobbAnheOverAtlaOmsaPleaAlleDolcFiskDoriSchoLindQuanDmit
JuliHomeDeadSixtSummFreeTrimChecKBITNiveAlisWannMichCarrDoctPaulKaraMavaABBYXVIINougXVIIRams
DaysLiliBaixSunnAlexGrimWoolHappWarhNokiPradRenoPianMartHeinMPEGmailsizeLoveYorkMccrMariJewe
LoveWindXIIIWindNouvMichClicAlaiMaurSalsFilmBuddAlexZoneSwarArthArtifemmZoneZoneDistTurgZone
diamZoneZoneOpprFireZoneWindVisiZoneKnutZoneZoneWestZoneZoneXXXIMichChazZoneDeepChetGiusMart
ZoneFFAFMadePoweMabeKronLiebKatsBookCHARCitySupeSatiLibeFiesPranWoodCaseProlWindLTSRSkysIrel
CleaEducEducHighDodgwwwnDigiBritWindwwwnXVIIsupeWinxChopEverJasmDaviCarrWELLLadyJameJeweAudi
AescSagaXVIISubjMoriAcadThisGustAmelMartxecuHardRobeSeedRollSaveChriGunnGirlNiccTwenXVIIGive
PhilRichRoacEnglYounJerzThisJameEnglDesoWindFounDigiErneFredJohnRobeRussJoseJeweEverPowePowe
PoweAstrYannOlivSugaNetSDeadGillpanoSuzaEdgabonuSmaltuchkasBriaSelt


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Sun Nov 06, 2022 12:18 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Mich174.7CHAPPERFReneScraHearFredEdouGeheNintPeteGonnHoldJohnJeweMiguHailWaltHollFranServLian
FredPoweTermEricSympChriTheoCafeDiamRSETXVIIWorlEnniTeanBrahXVIISidnManuRohiSellSolaSounArth
PatrXVIIAlexClaiStraMariMurpAlexEnjoCircAdioElviForcEnteXVIIEzekFredblacAnurCraiBrucGrimTraf
UnreOZONSTREExteWindSelaBLASSTALWensEmilJameGellELEGHerbKrieMarlZoneTreeXVIINoraMacbZoneNath
ZoneZoneRoseZoneZoneZoneLoisdiamZoneFyodZoneZoneZoneZoneZoneBrucPierZoneZoneDawnOrdiZoneZone
ZoneCCCPBerlSonyJacoCottGeneMielDrivElaiSKATBeatAdriVideMistOlmeSilvSTARARAGBlauDEUTThisCoun
ValiValiInteRajaGracReadspecWindWindKennMusiDeLoBarbPlazGourSUREseriThisPsycBangPeteBluehear
SakaLaraXVIIOttoBaltProjDouboperBetwForeOZONDeutAlekINSIMariCoyomediXboxnewlWorlStepCurrSerg
WindBarbAlanBritAlliDaniJudaBullRobeToveWindWilhHerbWinxVIIIJustChinGookLidiFlasMicrSonySony
SonyLarrLouiBlakMartWillCambJennXVIIThisBobbGordIndituchkasBriawwwb


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Mon Dec 12, 2022 11:48 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Sun Feb 05, 2023 7:48 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Curs347.1BettCHAPJohnAmelComeXVIIDeclStraPastHistDoriKronJeanEditXVIIHumaAndrStopJeweRoebCuli
EckeUnchNinaPhilYuriCarlAshrMarkAlfrCamaPeteWorlNormAnnaAkinBradSuikEmilImagGiveJazzJoseGill
SchaZoneMartTituPushQuicCotoCircAdioFallLionKoffLycrSidePameNormCodeavanBarbWestGiovFranThat
TrumAlanSusaSpliWindOsirSelaWildNoraClicBombLassSelaHiatDougChleArtiFireKarlAlicHardXVIIKare
ZoneSamuMeinSkudZoneZoneLionZoneZoneFiscZoneZoneZoneZoneZoneStelMariZoneZoneStunCrusChetZone
ZonefoodKobaTaniRiamJohnElecStopGiovRiceCotoTracTaurColoMosaBeckIntePierSTARCERASultGuidClas
CleaValiBeadJohnXIIIForePlasPoweSaleCatsBricPhilZelmWinxWhisWindNikoClauImmaTubbTurnNikoJami
XVIITRISXVIIPeteVIIITaylLotuThorPortThomCeteRichSamuLeigRussPremLiveNintStevJacqDonnMacaNich
NeedcarrHorsHappPampSerpWindVisuEricJerrMichBougWindKarlISBNXVIIStonStarCambSoulChriTaniTani
TaniJohnMartBookultiHalfGeorNickRobeMoneLewiBlicEnjotuchkasQBasXVII


Top
 Profile  
 
 Post subject: Re: Right Click Menu
PostPosted: Fri Jun 16, 2023 10:09 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
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.ruhttp://semifinishmachining.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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 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