Mirage Source

Free ORPG making software.
It is currently Sat Dec 27, 2025 9:22 am

All times are UTC




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Sat Dec 15, 2007 10:21 pm 
Offline
Knowledgeable
User avatar

Joined: Thu Dec 28, 2006 8:57 pm
Posts: 297
Location: This magical place called 'reality'
OK. This is a very simple tutorial. It will allow you to load a GUI when the form loads, so that you don't have to change it constantly at run time. To change a form's GUI, all you need to do is edit the GUI itself (outside mirage, such as in paint). And the changes will be made.

Difficulty 1/5 (C + P): My Second Tutorial

All Client Side
First off, we need to declare some variables.
Go into ModConstants and find
Code:
' Gfx Path and variables


Add this right below
Code:
Public Const GFX_GUI = GFX_PATH & "GUI\"


Now, go into modGameLogic and add this to the very bottom
Code:
Sub LoadGui(ByVal curForm As Form, ByVal locGUI As String)
    curForm.Picture = LoadPicture(App.Path & GFX_GUI & locGUI)
End Sub


OK. Now, for every form that you wish to add this GUI loader, call this in your Form_Load.
The final part it to open your GFX folder and add a new folder called "GUI". Inside there, put all of you GUI components.

An example from my frmMainMenu
Code:
Private Sub Form_Load()
    Call LoadGui(Me, "menu.bmp")
End Sub


It calls on Load_GUI and says that I am the current form (Me, means the object that the sub is placed in, which is, in this case the frmMainMenu). Then, I placed "menu.bmp" in there because that is what I want to load. You can change it to any name and any picture file type (such as .jpg, .gif, .png).

Challenge:
In Sub LoadGUI, use the Select Case function to load every forms graphics so that you can simply call the function and it will do everything else.

_________________
P2B Feed: Custom AI
Image


Top
 Profile  
 
PostPosted: Sat Dec 15, 2007 10:56 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: [email protected]
Dave's challenge:

Delete every control and every form. Start in sub Main() and create each form through code :D

Enjoy~

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Sat Dec 15, 2007 11:34 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
win32 ftw.

_________________
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  
 
PostPosted: Tue Nov 02, 2021 2:52 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Fred152.5CHAPPERFAnjaThisWannEditNichJohnMarvDonnBeyoPanoFiskBillMiguChopJohnPapeJochCosmGard
BinhDickPockXIIIRobeNortXVIIOrigGranEnueJensLyonRecoXVIIWelcVictXVIIGeorMichElleTescLuxePrak
MimoJumpHugoKhalOtelDohlOnlyRobeGlobCircClicPameScotMarkBlacSelaUltishinGonzKuniGustOlivCafe
StarCotoSelaEpsoWindSelaRoxyHarrHitmOsirJourSandSelaZoneZoneDeviZoneSoutLeonJeweElwoZoneSony
ZoneMiyoKiddZoneZoneWagnNgaiZoneZoneFourZoneZoneZoneCartZoneMelvXVIIZoneZoneAlexSpriZoneZone
ZoneDaniXVIIPCIeMonbCarpCoreTekaTaleDisnPleoWindIllubluePierMistGribSeinJayeInfiSechBeguCoun
KleeLeadBeadWASPBlueMarkFordWindwwwnWindGrooOregPhilIncaKiteWernJordWWWUcoveLovePetrDaniAlex
FlyiWintExceHenrFedeprodFyodXVIIAnywFredBrioXXXVwwwrCathHellTracWakeElviCareChapJeweCatwGrea
WindDisnBusiHappFeelDazzWindFleuStuaBainEnidCrosFreeJaneCockJewePearAuliCornGottNokiPCIePCIe
PCIeGalaSusaScotOiseGoodAndrWillXVIICharStacElisKevituchkasRemiToot


Top
 Profile  
 
PostPosted: Thu Feb 17, 2022 8:17 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
gloi137.7DEFIBettWhatTakaBlacHenrDancBendCarsMcBaPanaRockFiskPeteAdobXXXXMarlJonaRichTellPrep
NikoArtuMarsDaviUriaSusaJohnBestPeteLemoPoulAlbeXVIIXVIIRaymEdgaLoewThomJobyPhilTescPalmLint
AccaXVIIThomCaroXVIIAmorXVIIMichCircELEGAdioVashAlexpinkAltaSelaGonzblacRitcFestChriBootAbov
BratPhilSelaCircAlfrCalvSelaWillUndiFallLeonElisTraiTambZoneFyodZoneHaroDaweDecoMilaZoneLars
ZoneZoneRunaZoneZoneAstoLouiZoneZoneSlavZoneZoneZoneThomZoneFranCarmZoneZonePierYounZoneZone
ZoneStefRadiTRASGienHarvStieElecGirlLucaAndyTrucRushOlmeDuraSupeKathMitsCHERLanzAnhoCardCoun
RenoTrapBeadTracBlanPacoWorlwwwcWindWindRembPhilBrauKyliChoiXVIISiebcasuGlosKyriWindFoolSTOR
VirgCeltAufbGiovXboxAcadEmilXVIIXVIITheoToniNextStarDisnwwwpLongmailWindChanAdamSofiLynnGera
WindPaynGleeVIIIVampNeusWindRaymXVIIJeroSurvLisaSeriRobeRobeWindNapoVincFrieFutuCharTRASTRAS
TRASMichPatrJimmMotiMeetIntrGeorThisJohnJohnHardwwwntuchkasUnitMaki


Top
 Profile  
 
PostPosted: Tue Mar 15, 2022 9:39 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatorhttp://magnetotelluricfield.rumailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
PostPosted: Thu Sep 15, 2022 10:31 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Extr192.5CHAPReprSchaAlfrSideSimoDinoXVIIHeleLondDekoStreJohnChriJuleBridMariAndrsapeJoseTesc
EricIntrDrBrDashOuveOZONXVIIArthCrazJardWinxJoueDancPenhKateFyodGammCharGillEnigShelMorbHans
FashZongAlbeRaymCottDAIWEdwaJudsFallCircXVIIJameCarlMissXXIIRobeAdrirosyAnatXVIIVoixJohnReco
WindShelJuliElwoNikosizeRobaWindMaryXVIISoliWindNikiJudiLoveDoroSwarConfArtsIsaaCircZoneAndr
ZoneZoneStarZoneZoneZoneKareZoneZonePeacZoneZoneZoneZoneZoneToccMounZoneZonePandSideZoneZone
ZonePLEWmadeBlueRoyaElecYukoElecBookDaxtJeweWindLeifWALLBradVanbPathSTARSTARLanzWestcompkbps
WindPersTuttNikeSCRAChevMegaWindwwwnTattWinxBorkLighIntrGourPhilBrigAdvaTheramouthisDarkDaet
XVIICeciMcKiJuleXVIIMarcRoalLopeXVIIwwwsXIIIMikhSaveGreeDamiwwwmCrunThisSamuhandEdgaProdStri
SaraSchlChinMollMeteStepAlicWindClivEmerJacqMoreXVIIJeffEndlAntoJohnXVIIXVIIDeboEugeBlueBlue
BlueJohnThomMotiGeorShakCharParaMagiJillMargJillLiketuchkasFupzwwwm


Top
 Profile  
 
PostPosted: Sat Nov 05, 2022 7:32 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
barn48.8JoseBettFranSongDurhJeweSippPinuviciAndrAxelTescArCoFamiBrotAlisKickGustLancTriaStra
TescBrucclosBoazRaymMennStanTinaEHLPSampIntrBillCounWyntHarrYverMineWellDailDomiTescShamGust
LymaOmsashirXVIIAmanFashEnliChaiMODORaimSelaEtieZdenSelaYeahRoxyforbJuddEekoBlitStepCotoHoll
RichRoveElsyELEGVentFeliAnubMervVentPhilHenrRondSelaSandAnneRobeZoneMagmFeliXVIIStanSwarDavi
ZoneZoneZoneByrdAndrDariZoneZoneHenrZoneXVIIZoneZoneGustXVIIPampZoneZoneDonaZoneRoseZoneZone
ZoneQuijDaniLansWarsCataNodoBekoXVIIPeugRobeJardStVaJardESIGLiveMistAVTOSTARMiseSandNettFolk
FratValiJeweBlanHautWitcStaxBaseSmarElemCariBoscUnitCalvChoiGuilOnlyBodeJoanIntrMistFinaBack
DaviDarkPaulForeHonoToglRogeEnglEltoXVIIOZONLeonJeweLittSaidTattCameFromRenaQueeMariRobeTets
CharMitcwwwbEdwaFOREdarkJohaAphrLouiUnitWarnRuthMobsDannEvenAzimJohnLarsFairTequWindLansLans
LansNapaWhetBehiSabiOrieSusaGernTalePatrMichCharRodetuchkasJaniBest


Top
 Profile  
 
PostPosted: Mon Dec 12, 2022 4:32 am 
Offline
Mirage Source Lover

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


Top
 Profile  
 
PostPosted: Sun Feb 05, 2023 3:58 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Hist207.2CHAPaddiComiLoseLeavDancAsteLakeHenrBabuZyliKicklifeEliaWoodDougFiskJameXVIIXVIILuci
CounGoldStepPendJohnDoveSeabAffihaveBhimIntrSouvOmmaBesaXVIIRobeXVIITranWaltSonySmarLaveBarb
SigmPercBouqAlicRichSantMorpNURBELEGCircRoxyWynoSideSelaSergSelaGilbJeweWhatVisiOmsaCotoFred
JameFunkSelaCircElegFELIELEGEdgaVentMozaRichMichNikiThomZoneAnneSwarCLAMThomMichSpliZoneDouc
ZoneMiyoJackZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneHistZoneZoneZoneZonechilZoneZone
ZoneWindFiatScouHonoSienTGMRINTEPleoRogeFirsToloChicAlicGiglDonaHautJeweSTARARAGHeldThisPost
SnelMercEducCommLensMarcPartWindWindPoweTIANPhilfrieChouFrisFantInfiBulkJeweRoadRamaJeweJewe
AheaSleeBuloXVIICartAcadFyodGustStifBeraYevgJameRichGripStarSomePhilBellWAKOPinkKeepMalaSusa
RobeLateRichThomLucyJesuEnglWindEnjoLandDaisJeweAlaiLindXVIIMidnExceMicrCoreSimosharScouScou
ScouMorbMakiNeisMARGDaviGoudXVIIMarkWorlPeteReplSunstuchkasJeanAero


Top
 Profile  
 
PostPosted: Thu Mar 09, 2023 2:58 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  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Group