From 2d0703e281a62c15c6cc02d734087bd55847948c Mon Sep 17 00:00:00 2001 From: Grinch_ Date: Thu, 3 Dec 2020 03:19:16 +0600 Subject: [PATCH] Added files --- CheatMenu.sln | 22 + CheatMenu/Animation.cpp | 142 + CheatMenu/Animation.h | 25 + CheatMenu/CheatMenu.cpp | 212 + CheatMenu/CheatMenu.h | 61 + CheatMenu/CheatMenu.vcxproj.filters | 72 + CheatMenu/CheatMenu.vcxproj.vcxproj | 224 + CheatMenu/CheatMenu.vcxproj.vcxproj.filters | 109 + CheatMenu/Events.cpp | 12 + CheatMenu/Events.h | 10 + CheatMenu/Game.cpp | 478 + CheatMenu/Game.h | 58 + CheatMenu/Hook.cpp | 189 + CheatMenu/Hook.h | 31 + CheatMenu/Json.cpp | 36 + CheatMenu/Json.h | 57 + CheatMenu/Menu.cpp | 404 + CheatMenu/Menu.h | 42 + CheatMenu/NeonAPI.cpp | 75 + CheatMenu/NeonAPI.h | 15 + CheatMenu/Paint.cpp | 191 + CheatMenu/Paint.h | 26 + CheatMenu/Ped.cpp | 280 + CheatMenu/Ped.h | 39 + CheatMenu/Player.cpp | 432 + CheatMenu/Player.h | 33 + CheatMenu/Teleport.cpp | 239 + CheatMenu/Teleport.h | 34 + CheatMenu/Ui.cpp | 759 + CheatMenu/Ui.h | 169 + CheatMenu/Util.cpp | 191 + CheatMenu/Util.h | 16 + CheatMenu/VKeys.h | 209 + CheatMenu/Vehicle.cpp | 1144 + CheatMenu/Vehicle.h | 91 + CheatMenu/Visual.cpp | 327 + CheatMenu/Visual.h | 30 + CheatMenu/Weapon.cpp | 210 + CheatMenu/Weapon.h | 35 + CheatMenu/external/imgui/imconfig.h | 109 + CheatMenu/external/imgui/imgui.cpp | 10860 +++++++ CheatMenu/external/imgui/imgui.h | 2482 ++ CheatMenu/external/imgui/imgui_demo.cpp | 5593 ++++ CheatMenu/external/imgui/imgui_draw.cpp | 3804 +++ CheatMenu/external/imgui/imgui_impl_dx11.cpp | 551 + CheatMenu/external/imgui/imgui_impl_dx11.h | 25 + CheatMenu/external/imgui/imgui_impl_dx9.cpp | 284 + CheatMenu/external/imgui/imgui_impl_dx9.h | 24 + CheatMenu/external/imgui/imgui_impl_win32.cpp | 441 + CheatMenu/external/imgui/imgui_impl_win32.h | 37 + CheatMenu/external/imgui/imgui_internal.h | 2093 ++ CheatMenu/external/imgui/imgui_widgets.cpp | 8299 +++++ CheatMenu/external/imgui/imstb_rectpack.h | 639 + CheatMenu/external/imgui/imstb_textedit.h | 1447 + CheatMenu/external/imgui/imstb_truetype.h | 4903 +++ CheatMenu/external/imgui/stb_image.h | 7762 +++++ CheatMenu/external/json.hpp | 25447 ++++++++++++++++ CheatMenu/external/kiero/kiero.cpp | 661 + CheatMenu/external/kiero/kiero.h | 102 + .../external/kiero/minhook/include/MinHook.h | 186 + .../external/moon/pool_object_extender.h | 74 + CheatMenu/external/moon/texture_manager.cpp | 58 + CheatMenu/external/moon/texture_manager.h | 33 + CheatMenu/external/moon/vehicle_renderer.cpp | 145 + CheatMenu/external/moon/vehicle_renderer.h | 87 + CheatMenu/pch.cpp | 18 + CheatMenu/pch.h | 108 + .../clothes/Extras/17$balaclava$balaclava.jpg | Bin .../clothes/Extras/17$countrytr$countrytr.jpg | Bin .../clothes/Extras/17$garagetr$garageleg.jpg | Bin .../clothes/Extras/17$gimpleg$gimpleg.jpg | Bin .../clothes/Extras/17$medictr$medictr.jpg | Bin .../clothes/Extras/17$pimptr$pimptr.jpg | Bin .../clothes/Extras/17$policetr$policetr.jpg | Bin .../clothes/Extras/17$valet$croupier.jpg | Bin .../clothes/Extras/17$valet$valet.jpg | Bin .../Glasses/15$bandmask$bandblack3.jpg | Bin .../clothes/Glasses/15$bandmask$bandblue3.jpg | Bin .../clothes/Glasses/15$bandmask$bandgang3.jpg | Bin .../clothes/Glasses/15$bandmask$bandred3.jpg | Bin .../clothes/Glasses/15$eyepatch$eyepatch.jpg | Bin .../Glasses/15$glasses01$glasses01.jpg | Bin .../Glasses/15$glasses01$glasses01dark.jpg | Bin .../Glasses/15$glasses03$glasses03.jpg | Bin .../Glasses/15$glasses03$glasses03blue.jpg | Bin .../Glasses/15$glasses03$glasses03dark.jpg | Bin .../Glasses/15$glasses03$glasses03red.jpg | Bin .../Glasses/15$glasses03$glasses05.jpg | Bin .../Glasses/15$glasses03$glasses05dark.jpg | Bin .../Glasses/15$glasses04$glasses04.jpg | Bin .../Glasses/15$glasses04$glasses04dark.jpg | Bin .../clothes/Glasses/15$grouchos$groucho.jpg | Bin .../clothes/Glasses/15$zorromask$zorro.jpg | Bin .../clothes/Hats/16$bandana$bandblack.jpg | Bin .../clothes/Hats/16$bandana$bandblue.jpg | Bin .../clothes/Hats/16$bandana$bandgang.jpg | Bin .../clothes/Hats/16$bandana$bandred.jpg | Bin .../clothes/Hats/16$bandknots$bandblack2.jpg | Bin .../clothes/Hats/16$bandknots$bandblue2.jpg | Bin .../clothes/Hats/16$bandknots$bandgang2.jpg | Bin .../clothes/Hats/16$bandknots$bandred2.jpg | Bin .../clothes/Hats/16$beret$beretblk.jpg | Bin .../clothes/Hats/16$beret$beretred.jpg | Bin .../Hats/16$bikerhelmet$bikerhelmet.jpg | Bin .../clothes/Hats/16$boater$boater.jpg | Bin .../clothes/Hats/16$boater$boaterblk.jpg | Bin .../clothes/Hats/16$bowler$bowler.jpg | Bin .../clothes/Hats/16$bowler$bowlerblue.jpg | Bin .../clothes/Hats/16$bowler$bowlergang.jpg | Bin .../clothes/Hats/16$bowler$bowlerred.jpg | Bin .../clothes/Hats/16$bowler$bowleryellow.jpg | Bin .../clothes/Hats/16$boxingcap$boxingcap.jpg | Bin .../CheatMenu}/clothes/Hats/16$cap$capblk.jpg | Bin .../clothes/Hats/16$cap$capblue.jpg | Bin .../clothes/Hats/16$cap$capgang.jpg | Bin .../CheatMenu}/clothes/Hats/16$cap$capred.jpg | Bin .../CheatMenu}/clothes/Hats/16$cap$capzip.jpg | Bin .../clothes/Hats/16$capback$capblkback.jpg | Bin .../clothes/Hats/16$capback$capblueback.jpg | Bin .../clothes/Hats/16$capback$capgangback.jpg | Bin .../clothes/Hats/16$capback$capredback.jpg | Bin .../clothes/Hats/16$capback$capzipback.jpg | Bin .../clothes/Hats/16$capknit$capknitgrn.jpg | Bin .../clothes/Hats/16$capovereye$capblkover.jpg | Bin .../Hats/16$capovereye$capblueover.jpg | Bin .../Hats/16$capovereye$capgangover.jpg | Bin .../clothes/Hats/16$capovereye$capredover.jpg | Bin .../clothes/Hats/16$capovereye$capzipover.jpg | Bin .../clothes/Hats/16$caprimup$capblkup.jpg | Bin .../clothes/Hats/16$caprimup$capblueup.jpg | Bin .../clothes/Hats/16$caprimup$capgangup.jpg | Bin .../clothes/Hats/16$caprimup$capredup.jpg | Bin .../clothes/Hats/16$caprimup$capzipup.jpg | Bin .../clothes/Hats/16$capside$capblkside.jpg | Bin .../clothes/Hats/16$capside$capblueside.jpg | Bin .../clothes/Hats/16$capside$capgangside.jpg | Bin .../clothes/Hats/16$capside$capredside.jpg | Bin .../clothes/Hats/16$capside$capzipside.jpg | Bin .../clothes/Hats/16$captruck$captruck.jpg | Bin .../clothes/Hats/16$cowboy$cowboy.jpg | Bin .../clothes/Hats/16$cowboy$hattiger.jpg | Bin .../clothes/Hats/16$hatmanc$hatmancblk.jpg | Bin .../clothes/Hats/16$hatmanc$hatmancplaid.jpg | Bin .../clothes/Hats/16$helmet$helmet.jpg | Bin .../clothes/Hats/16$hockeymask$hockey.jpg | Bin .../CheatMenu}/clothes/Hats/16$moto$moto.jpg | Bin .../clothes/Hats/16$skullycap$skullyblk.jpg | Bin .../clothes/Hats/16$skullycap$skullygrn.jpg | Bin .../clothes/Hats/16$trilby$trilbydrk.jpg | Bin .../clothes/Hats/16$trilby$trilbylght.jpg | Bin .../CheatMenu}/clothes/Heads/1$afro$afro.jpg | Bin .../clothes/Heads/1$afro$afrobeard.jpg | Bin .../clothes/Heads/1$afro$afroblond.jpg | Bin .../clothes/Heads/1$afro$afrogoatee.jpg | Bin .../clothes/Heads/1$afro$afrotash.jpg | Bin .../clothes/Heads/1$cornrows$cornrows.jpg | Bin .../clothes/Heads/1$cornrows$cornrowsb.jpg | Bin .../clothes/Heads/1$elvishair$elvishair.jpg | Bin .../clothes/Heads/1$flattop$flattop.jpg | Bin .../clothes/Heads/1$groovecut$groovecut.jpg | Bin .../CheatMenu}/clothes/Heads/1$head$bald.jpg | Bin .../clothes/Heads/1$head$baldbeard.jpg | Bin .../clothes/Heads/1$head$baldgoatee.jpg | Bin .../clothes/Heads/1$head$baldtash.jpg | Bin .../CheatMenu}/clothes/Heads/1$head$beard.jpg | Bin .../clothes/Heads/1$head$goatee.jpg | Bin .../clothes/Heads/1$head$hairblond.jpg | Bin .../clothes/Heads/1$head$hairblue.jpg | Bin .../clothes/Heads/1$head$hairgreen.jpg | Bin .../clothes/Heads/1$head$hairpink.jpg | Bin .../clothes/Heads/1$head$hairred.jpg | Bin .../clothes/Heads/1$head$highfade.jpg | Bin .../clothes/Heads/1$head$player_face.jpg | Bin .../CheatMenu}/clothes/Heads/1$head$tash.jpg | Bin .../clothes/Heads/1$highafro$highafro.jpg | Bin .../clothes/Heads/1$jheri$jhericurl.jpg | Bin .../clothes/Heads/1$mohawk$mohawk.jpg | Bin .../clothes/Heads/1$mohawk$mohawkbeard.jpg | Bin .../clothes/Heads/1$mohawk$mohawkblond.jpg | Bin .../clothes/Heads/1$mohawk$mohawkpink.jpg | Bin .../clothes/Heads/1$slope$slope.jpg | Bin .../clothes/Heads/1$tramline$tramline.jpg | Bin .../clothes/Heads/1$wedge$wedge.jpg | Bin .../clothes/Necklaces/13$neck$dogtag.jpg | Bin .../clothes/Necklaces/13$neck$neckafrica.jpg | Bin .../clothes/Necklaces/13$neck$neckcross.jpg | Bin .../clothes/Necklaces/13$neck$neckdollar.jpg | Bin .../clothes/Necklaces/13$neck$neckhash.jpg | Bin .../clothes/Necklaces/13$neck$neckls.jpg | Bin .../clothes/Necklaces/13$neck$necksaints.jpg | Bin .../clothes/Necklaces/13$neck$stopwatch.jpg | Bin .../clothes/Necklaces/13$neck2$neckgold.jpg | Bin .../clothes/Necklaces/13$neck2$neckropeg.jpg | Bin .../clothes/Necklaces/13$neck2$neckropes.jpg | Bin .../clothes/Necklaces/13$neck2$necksilver.jpg | Bin .../clothes/Shirts/0$baseball$bandits.jpg | Bin .../Shirts/0$baskball$baskballdrib.jpg | Bin .../clothes/Shirts/0$baskball$baskballloc.jpg | Bin .../clothes/Shirts/0$baskball$baskballrim.jpg | Bin .../Shirts/0$bbjack$bballjackrstar.jpg | Bin .../clothes/Shirts/0$bbjack$bbjackrim.jpg | Bin .../clothes/Shirts/0$coach$coach.jpg | Bin .../clothes/Shirts/0$coach$coachsemi.jpg | Bin .../clothes/Shirts/0$denim$denimfade.jpg | Bin .../clothes/Shirts/0$field$field.jpg | Bin .../clothes/Shirts/0$hawaii$bowling.jpg | Bin .../clothes/Shirts/0$hawaii$hawaiired.jpg | Bin .../clothes/Shirts/0$hawaii$hawaiiwht.jpg | Bin .../Shirts/0$hoodjack$hoodjackbeige.jpg | Bin .../clothes/Shirts/0$hoodyA$hoodyAblack.jpg | Bin .../clothes/Shirts/0$hoodyA$hoodyAblue.jpg | Bin .../clothes/Shirts/0$hoodyA$hoodyAgreen.jpg | Bin .../clothes/Shirts/0$hoodya$hoodyabase5.jpg | Bin .../clothes/Shirts/0$hoodya$hoodyamerc.jpg | Bin .../Shirts/0$hoodya$hoodyarockstar.jpg | Bin .../clothes/Shirts/0$leather$leather.jpg | Bin .../clothes/Shirts/0$painter$painter.jpg | Bin .../clothes/Shirts/0$shirta$shirtablue.jpg | Bin .../clothes/Shirts/0$shirta$shirtagrey.jpg | Bin .../clothes/Shirts/0$shirta$shirtayellow.jpg | Bin .../clothes/Shirts/0$shirtb$shirtbcheck.jpg | Bin .../clothes/Shirts/0$shirtb$shirtbgang.jpg | Bin .../clothes/Shirts/0$shirtb$shirtbplaid.jpg | Bin .../clothes/Shirts/0$sleevt$bbjersey.jpg | Bin .../clothes/Shirts/0$sleevt$letter.jpg | Bin .../clothes/Shirts/0$sleevt$sleevtbrown.jpg | Bin .../clothes/Shirts/0$suit1$suit1blk.jpg | Bin .../clothes/Shirts/0$suit1$suit1blue.jpg | Bin .../clothes/Shirts/0$suit1$suit1gang.jpg | Bin .../clothes/Shirts/0$suit1$suit1grey.jpg | Bin .../clothes/Shirts/0$suit1$suit1red.jpg | Bin .../clothes/Shirts/0$suit1$suit1yellow.jpg | Bin .../clothes/Shirts/0$suit2$suit2grn.jpg | Bin .../clothes/Shirts/0$suit2$tuxedo.jpg | Bin .../clothes/Shirts/0$sweat$hockeytop.jpg | Bin .../clothes/Shirts/0$sweat$sweatrstar.jpg | Bin .../clothes/Shirts/0$torso$player_torso.jpg | Bin .../clothes/Shirts/0$trackytop1$shellsuit.jpg | Bin .../clothes/Shirts/0$trackytop1$sportjack.jpg | Bin .../Shirts/0$trackytop1$trackytop1pro.jpg | Bin .../Shirts/0$trackytop1$trackytop2eris.jpg | Bin .../clothes/Shirts/0$tshirt$sixtyniners.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtbase5.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtblunts.jpg | Bin .../Shirts/0$tshirt$tshirtbobomonk.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtbobored.jpg | Bin .../clothes/Shirts/0$tshirt$tshirterisorn.jpg | Bin .../Shirts/0$tshirt$tshirterisyell.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtheatwht.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtilovels.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtlocgrey.jpg | Bin .../Shirts/0$tshirt$tshirtmaddgrey.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtmaddgrn.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtproblk.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtprored.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtsuburb.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtwhite.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtzipcrm.jpg | Bin .../clothes/Shirts/0$tshirt$tshirtzipgry.jpg | Bin .../clothes/Shirts/0$tshirt2$tshirt2horiz.jpg | Bin .../CheatMenu}/clothes/Shirts/0$vest$vest.jpg | Bin .../clothes/Shirts/0$vest$vestblack.jpg | Bin .../clothes/Shirts/0$wcoat$wcoatblue.jpg | Bin .../clothes/Shoes/3$bask1$bask1eris.jpg | Bin .../clothes/Shoes/3$bask1$bask1problk.jpg | Bin .../clothes/Shoes/3$bask1$bask1prowht.jpg | Bin .../clothes/Shoes/3$bask1$bask2heatband.jpg | Bin .../clothes/Shoes/3$bask1$bask2heatwht.jpg | Bin .../clothes/Shoes/3$bask1$bask2semi.jpg | Bin .../clothes/Shoes/3$bask1$hitop.jpg | Bin .../clothes/Shoes/3$bask1$timberfawn.jpg | Bin .../clothes/Shoes/3$bask1$timbergrey.jpg | Bin .../clothes/Shoes/3$bask1$timberhike.jpg | Bin .../clothes/Shoes/3$bask1$timberred.jpg | Bin .../clothes/Shoes/3$biker$biker.jpg | Bin .../clothes/Shoes/3$biker$boxingshoe.jpg | Bin .../clothes/Shoes/3$biker$cowboyboot.jpg | Bin .../clothes/Shoes/3$biker$cowboyboot2.jpg | Bin .../clothes/Shoes/3$biker$snakeskin.jpg | Bin .../clothes/Shoes/3$conv$convheatblk.jpg | Bin .../clothes/Shoes/3$conv$convheatorn.jpg | Bin .../clothes/Shoes/3$conv$convheatred.jpg | Bin .../clothes/Shoes/3$conv$convproblk.jpg | Bin .../clothes/Shoes/3$conv$convproblu.jpg | Bin .../clothes/Shoes/3$conv$convprogrn.jpg | Bin .../CheatMenu}/clothes/Shoes/3$feet$foot.jpg | Bin .../clothes/Shoes/3$flipflop$flipflop.jpg | Bin .../clothes/Shoes/3$flipflop$sandal.jpg | Bin .../clothes/Shoes/3$flipflop$sandalsock.jpg | Bin .../clothes/Shoes/3$shoe$shoedressblk.jpg | Bin .../clothes/Shoes/3$shoe$shoedressbrn.jpg | Bin .../clothes/Shoes/3$shoe$shoespatz.jpg | Bin .../Shoes/3$sneaker$sneakerbincblk.jpg | Bin .../Shoes/3$sneaker$sneakerbincblue.jpg | Bin .../Shoes/3$sneaker$sneakerbincgang.jpg | Bin .../Shoes/3$sneaker$sneakerheatblk.jpg | Bin .../Shoes/3$sneaker$sneakerheatgry.jpg | Bin .../Shoes/3$sneaker$sneakerheatwht.jpg | Bin .../clothes/Shoes/3$sneaker$sneakerproblu.jpg | Bin .../clothes/Shoes/3$sneaker$sneakerprored.jpg | Bin .../clothes/Shoes/3$sneaker$sneakerprowht.jpg | Bin .../clothes/Tattoos back/8$8gun$8gun.jpg | Bin .../clothes/Tattoos back/8$8poker$8poker.jpg | Bin .../clothes/Tattoos back/8$8sa$8sa.jpg | Bin .../clothes/Tattoos back/8$8sa2$8sa2.jpg | Bin .../clothes/Tattoos back/8$8sa3$8sa3.jpg | Bin .../Tattoos back/8$8santos$8santos.jpg | Bin .../Tattoos back/8$8westside$8westside.jpg | Bin .../Tattoos left chest/9$9bullet$9bullet.jpg | Bin .../Tattoos left chest/9$9crown$9crown.jpg | Bin .../Tattoos left chest/9$9gun$9gun.jpg | Bin .../Tattoos left chest/9$9gun2$9gun2.jpg | Bin .../9$9homeboy$9homeboy.jpg | Bin .../Tattoos left chest/9$9rasta$9rasta.jpg | Bin .../4$5CROSS$5CROSS.jpg | Bin .../4$5CROSS2$5CROSS2.jpg | Bin .../4$5CROSS3$5CROSS3.jpg | Bin .../Tattoos left lower arm/4$5GUN$5GUN.jpg | Bin .../Tattoos left upper arm/5$4rip$4rip.jpg | Bin .../5$4spider$4spider.jpg | Bin .../Tattoos left upper arm/5$4weed$4weed.jpg | Bin .../12$12angels$12angels.jpg | Bin .../12$12bandit$12bandit.jpg | Bin .../12$12cross7$12cross7.jpg | Bin .../12$12dagger$12dagger.jpg | Bin .../12$12mayabird$12mayabird.jpg | Bin .../12$12mayafce$12myfac.jpg | Bin .../Tattoos right chest/10$10LS$10LS.jpg | Bin .../Tattoos right chest/10$10LS2$10LS2.jpg | Bin .../Tattoos right chest/10$10LS3$10LS3.jpg | Bin .../Tattoos right chest/10$10LS4$10LS4.jpg | Bin .../Tattoos right chest/10$10OG$10OG.jpg | Bin .../Tattoos right chest/10$10WEED$10WEED.jpg | Bin .../Tattoos right chest/10$10ls5$10ls5.jpg | Bin .../7$7CROSS$7CROSS.jpg | Bin .../7$7CROSS2$7CROSS2.jpg | Bin .../7$7CROSS3$7CROSS3.jpg | Bin .../Tattoos right lower arm/7$7MARY$7MARY.jpg | Bin .../6$6AFRICA$6AFRICA.jpg | Bin .../6$6AZTEC$6AZTEC.jpg | Bin .../6$6CLOWN$6CLOWN.jpg | Bin .../6$6CROWN$6CROWN.jpg | Bin .../Tattoos stomach/11$11DICE$11DICE.jpg | Bin .../Tattoos stomach/11$11DICE2$11DICE2.jpg | Bin .../Tattoos stomach/11$11GROVE$11GROVE.jpg | Bin .../Tattoos stomach/11$11JAIL$11JAIL.jpg | Bin .../11$11godsgift$11godsgift.jpg | Bin .../Tattoos stomach/11$11grove2$11grove2.jpg | Bin .../Tattoos stomach/11$11grove3$11grove3.jpg | Bin .../Trousers/2$boxingshort$bbshortred.jpg | Bin .../Trousers/2$boxingshort$bbshortwht.jpg | Bin .../Trousers/2$boxingshort$boxshort.jpg | Bin .../clothes/Trousers/2$chinosb$biegetr.jpg | Bin .../Trousers/2$chinosb$chinosbiege.jpg | Bin .../Trousers/2$chinosb$chinosblack.jpg | Bin .../clothes/Trousers/2$chinosb$chinosblue.jpg | Bin .../Trousers/2$chinosb$chinoskhaki.jpg | Bin .../Trousers/2$chonger$chongerblue.jpg | Bin .../Trousers/2$chonger$chongergang.jpg | Bin .../Trousers/2$chonger$chongergrey.jpg | Bin .../clothes/Trousers/2$chonger$chongerred.jpg | Bin .../clothes/Trousers/2$jeans$denimsgang.jpg | Bin .../clothes/Trousers/2$jeans$denimsred.jpg | Bin .../clothes/Trousers/2$jeans$jeansdenim.jpg | Bin .../Trousers/2$leathertr$leathertr.jpg | Bin .../Trousers/2$leathertr$leathertrchaps.jpg | Bin .../clothes/Trousers/2$legs$legsblack.jpg | Bin .../clothes/Trousers/2$legs$legsheart.jpg | Bin .../clothes/Trousers/2$legs$player_legs.jpg | Bin .../Trousers/2$shorts$cutoffchinos.jpg | Bin .../Trousers/2$shorts$cutoffchinosblue.jpg | Bin .../Trousers/2$shorts$cutoffdenims.jpg | Bin .../clothes/Trousers/2$shorts$shortsgang.jpg | Bin .../clothes/Trousers/2$shorts$shortsgrey.jpg | Bin .../clothes/Trousers/2$shorts$shortskhaki.jpg | Bin .../clothes/Trousers/2$suit1tr$suit1trblk.jpg | Bin .../Trousers/2$suit1tr$suit1trblk2.jpg | Bin .../Trousers/2$suit1tr$suit1trblue.jpg | Bin .../Trousers/2$suit1tr$suit1trgang.jpg | Bin .../Trousers/2$suit1tr$suit1trgreen.jpg | Bin .../Trousers/2$suit1tr$suit1trgrey.jpg | Bin .../clothes/Trousers/2$suit1tr$suit1trred.jpg | Bin .../Trousers/2$suit1tr$suit1tryellow.jpg | Bin .../Trousers/2$tracktr$shellsuittr.jpg | Bin .../clothes/Trousers/2$tracktr$tracktr.jpg | Bin .../Trousers/2$tracktr$tracktrblue.jpg | Bin .../Trousers/2$tracktr$tracktreris.jpg | Bin .../Trousers/2$tracktr$tracktrgang.jpg | Bin .../clothes/Trousers/2$tracktr$tracktrpro.jpg | Bin .../Trousers/2$tracktr$tracktrwhstr.jpg | Bin .../Trousers/2$worktr$worktrcamogrn.jpg | Bin .../Trousers/2$worktr$worktrcamogry.jpg | Bin .../clothes/Trousers/2$worktr$worktrgrey.jpg | Bin .../clothes/Trousers/2$worktr$worktrkhaki.jpg | Bin .../clothes/Watches/14$watch$watchcro.jpg | Bin .../clothes/Watches/14$watch$watchcro2.jpg | Bin .../clothes/Watches/14$watch$watchgno.jpg | Bin .../clothes/Watches/14$watch$watchgno2.jpg | Bin .../clothes/Watches/14$watch$watchpink.jpg | Bin .../clothes/Watches/14$watch$watchpro.jpg | Bin .../clothes/Watches/14$watch$watchpro2.jpg | Bin .../clothes/Watches/14$watch$watchsub1.jpg | Bin .../clothes/Watches/14$watch$watchsub2.jpg | Bin .../clothes/Watches/14$watch$watchyellow.jpg | Bin .../clothes/Watches/14$watch$watchzip1.jpg | Bin .../clothes/Watches/14$watch$watchzip2.jpg | Bin Files/CheatMenu/json/animation.json | 1983 ++ Files/CheatMenu/json/cheat name.json | 94 + Files/CheatMenu/json/mission.json | 161 + Files/CheatMenu/json/ped special.json | 46 + Files/CheatMenu/json/ped.json | 312 + Files/CheatMenu/json/stat.json | 305 + Files/CheatMenu/json/teleport.json | 850 + Files/CheatMenu/json/weapon.json | 47 + .../CheatMenu}/peds/Ballas/102.jpg | Bin .../CheatMenu}/peds/Ballas/103.jpg | Bin .../CheatMenu}/peds/Ballas/104.jpg | Bin .../CheatMenu}/peds/Beach/138.jpg | Bin .../CheatMenu}/peds/Beach/139.jpg | Bin .../CheatMenu}/peds/Beach/140.jpg | Bin .../CheatMenu}/peds/Beach/154.jpg | Bin .../CheatMenu}/peds/Beach/18.jpg | Bin .../CheatMenu}/peds/Beach/45.jpg | Bin .../CheatMenu}/peds/Biker/247.jpg | Bin .../CheatMenu}/peds/Biker/248.jpg | Bin .../CheatMenu}/peds/Body guard/24.jpg | Bin .../CheatMenu}/peds/Body guard/25.jpg | Bin .../CheatMenu}/peds/Bouncer/163.jpg | Bin .../CheatMenu}/peds/Bouncer/164.jpg | Bin .../CheatMenu}/peds/Bouncer/165.jpg | Bin .../CheatMenu}/peds/Bouncer/166.jpg | Bin .../CheatMenu}/peds/Boxer/80.jpg | Bin .../CheatMenu}/peds/Boxer/81.jpg | Bin .../CheatMenu}/peds/Businessman/141.jpg | Bin .../CheatMenu}/peds/Businessman/147.jpg | Bin .../CheatMenu}/peds/Businessman/148.jpg | Bin .../CheatMenu}/peds/Businessman/150.jpg | Bin .../CheatMenu}/peds/Businessman/17.jpg | Bin .../CheatMenu}/peds/Businessman/227.jpg | Bin .../CheatMenu}/peds/Businessman/228.jpg | Bin .../CheatMenu}/peds/Cab driver/182.jpg | Bin .../CheatMenu}/peds/Cab driver/206.jpg | Bin .../CheatMenu}/peds/Cab driver/220.jpg | Bin .../CheatMenu}/peds/Cab driver/234.jpg | Bin .../CheatMenu}/peds/Cab driver/261.jpg | Bin .../CheatMenu}/peds/Cab driver/262.jpg | Bin .../CheatMenu}/peds/Clothes seller/211.jpg | Bin .../CheatMenu}/peds/Clothes seller/217.jpg | Bin .../CheatMenu}/peds/Construction/153.jpg | Bin .../CheatMenu}/peds/Construction/260.jpg | Bin .../CheatMenu}/peds/Construction/27.jpg | Bin .../CheatMenu}/peds/Country/157.jpg | Bin .../CheatMenu}/peds/Country/158.jpg | Bin .../CheatMenu}/peds/Country/159.jpg | Bin .../CheatMenu}/peds/Country/160.jpg | Bin .../CheatMenu}/peds/Country/161.jpg | Bin .../CheatMenu}/peds/Country/162.jpg | Bin .../CheatMenu}/peds/Country/196.jpg | Bin .../CheatMenu}/peds/Country/197.jpg | Bin .../CheatMenu}/peds/Country/198.jpg | Bin .../CheatMenu}/peds/Country/199.jpg | Bin .../CheatMenu}/peds/Country/200.jpg | Bin .../CheatMenu}/peds/Criminal/100.jpg | Bin .../CheatMenu}/peds/Criminal/143.jpg | Bin .../CheatMenu}/peds/Criminal/181.jpg | Bin .../CheatMenu}/peds/Criminal/183.jpg | Bin .../CheatMenu}/peds/Criminal/184.jpg | Bin .../CheatMenu}/peds/Criminal/21.jpg | Bin .../CheatMenu}/peds/Criminal/223.jpg | Bin .../CheatMenu}/peds/Criminal/250.jpg | Bin .../CheatMenu}/peds/Criminal/47.jpg | Bin .../CheatMenu}/peds/Croupier/11.jpg | Bin .../CheatMenu}/peds/Croupier/171.jpg | Bin .../CheatMenu}/peds/Croupier/172.jpg | Bin .../CheatMenu}/peds/Da nang boys/121.jpg | Bin .../CheatMenu}/peds/Da nang boys/122.jpg | Bin .../CheatMenu}/peds/Da nang boys/123.jpg | Bin .../CheatMenu}/peds/Drug dealer/254.jpg | Bin .../CheatMenu}/peds/Drug dealer/28.jpg | Bin .../CheatMenu}/peds/Drug dealer/29.jpg | Bin .../CheatMenu}/peds/Drug dealer/30.jpg | Bin .../CheatMenu}/peds/Elvis/82.jpg | Bin .../CheatMenu}/peds/Elvis/83.jpg | Bin .../CheatMenu}/peds/Elvis/84.jpg | Bin .../CheatMenu}/peds/Fire fighter/277.jpg | Bin .../CheatMenu}/peds/Fire fighter/278.jpg | Bin .../CheatMenu}/peds/Fire fighter/279.jpg | Bin .../CheatMenu}/peds/Golf/36.jpg | Bin .../CheatMenu}/peds/Golf/37.jpg | Bin .../CheatMenu}/peds/Golf/38.jpg | Bin .../CheatMenu}/peds/Grl/190-1.jpg | Bin .../CheatMenu}/peds/Grl/190-2.jpg | Bin .../CheatMenu}/peds/Grl/190.jpg | Bin .../CheatMenu}/peds/Grl/191-1.jpg | Bin .../CheatMenu}/peds/Grl/191-2.jpg | Bin .../CheatMenu}/peds/Grl/191.jpg | Bin .../CheatMenu}/peds/Grl/192-1.jpg | Bin .../CheatMenu}/peds/Grl/192-2.jpg | Bin .../CheatMenu}/peds/Grl/192.jpg | Bin .../CheatMenu}/peds/Grl/193-1.jpg | Bin .../CheatMenu}/peds/Grl/193-2.jpg | Bin .../CheatMenu}/peds/Grl/193.jpg | Bin .../CheatMenu}/peds/Grl/194-1.jpg | Bin .../CheatMenu}/peds/Grl/194-2.jpg | Bin .../CheatMenu}/peds/Grl/194.jpg | Bin .../CheatMenu}/peds/Grl/195-1.jpg | Bin .../CheatMenu}/peds/Grl/195-2.jpg | Bin .../CheatMenu}/peds/Grl/195.jpg | Bin .../peds/Grove street families/105.jpg | Bin .../peds/Grove street families/106.jpg | Bin .../peds/Grove street families/107.jpg | Bin .../peds/Grove street families/149.jpg | Bin .../peds/Grove street families/269.jpg | Bin .../peds/Grove street families/270.jpg | Bin .../peds/Grove street families/271.jpg | Bin .../CheatMenu}/peds/Heckler/258.jpg | Bin .../CheatMenu}/peds/Heckler/259.jpg | Bin .../CheatMenu}/peds/Hippie/72.jpg | Bin .../CheatMenu}/peds/Hippie/73.jpg | Bin .../CheatMenu}/peds/Jogger/90.jpg | Bin .../CheatMenu}/peds/Jogger/96.jpg | Bin .../CheatMenu}/peds/Karate student/203.jpg | Bin .../CheatMenu}/peds/Karate student/204.jpg | Bin .../CheatMenu}/peds/Law enforcement/265.jpg | Bin .../CheatMenu}/peds/Law enforcement/266.jpg | Bin .../CheatMenu}/peds/Law enforcement/267.jpg | Bin .../CheatMenu}/peds/Law enforcement/280.jpg | Bin .../CheatMenu}/peds/Law enforcement/281.jpg | Bin .../CheatMenu}/peds/Law enforcement/282.jpg | Bin .../CheatMenu}/peds/Law enforcement/283.jpg | Bin .../CheatMenu}/peds/Law enforcement/284.jpg | Bin .../CheatMenu}/peds/Law enforcement/285.jpg | Bin .../CheatMenu}/peds/Law enforcement/286.jpg | Bin .../CheatMenu}/peds/Law enforcement/287.jpg | Bin .../CheatMenu}/peds/Law enforcement/288.jpg | Bin .../CheatMenu}/peds/Law enforcement/71.jpg | Bin .../CheatMenu}/peds/Life guard/251.jpg | Bin .../CheatMenu}/peds/Life guard/97.jpg | Bin .../CheatMenu}/peds/Los santos vagos/108.jpg | Bin .../CheatMenu}/peds/Los santos vagos/109.jpg | Bin .../CheatMenu}/peds/Los santos vagos/110.jpg | Bin .../CheatMenu}/peds/Low class female/10.jpg | Bin .../CheatMenu}/peds/Low class female/129.jpg | Bin .../CheatMenu}/peds/Low class female/130.jpg | Bin .../CheatMenu}/peds/Low class female/131.jpg | Bin .../CheatMenu}/peds/Low class female/151.jpg | Bin .../CheatMenu}/peds/Low class female/201.jpg | Bin .../CheatMenu}/peds/Low class female/31.jpg | Bin .../CheatMenu}/peds/Low class male/128.jpg | Bin .../CheatMenu}/peds/Low class male/132.jpg | Bin .../CheatMenu}/peds/Low class male/133.jpg | Bin .../CheatMenu}/peds/Low class male/202.jpg | Bin .../CheatMenu}/peds/Low class male/32.jpg | Bin .../CheatMenu}/peds/Low class male/33.jpg | Bin .../CheatMenu}/peds/Low class male/34.jpg | Bin .../CheatMenu}/peds/Mafia/111.jpg | Bin .../CheatMenu}/peds/Mafia/112.jpg | Bin .../CheatMenu}/peds/Mafia/113.jpg | Bin .../CheatMenu}/peds/Mafia/124.jpg | Bin .../CheatMenu}/peds/Mafia/125.jpg | Bin .../CheatMenu}/peds/Mafia/126.jpg | Bin .../CheatMenu}/peds/Mafia/127.jpg | Bin .../CheatMenu}/peds/Medic/274.jpg | Bin .../CheatMenu}/peds/Medic/275.jpg | Bin .../CheatMenu}/peds/Medic/276.jpg | Bin .../CheatMenu}/peds/Misc/0.jpg | Bin .../CheatMenu}/peds/Misc/1.jpg | Bin .../CheatMenu}/peds/Misc/10.jpg | Bin .../CheatMenu}/peds/Misc/119.jpg | Bin .../CheatMenu}/peds/Misc/13.jpg | Bin .../CheatMenu}/peds/Misc/144.jpg | Bin .../CheatMenu}/peds/Misc/145.jpg | Bin .../CheatMenu}/peds/Misc/146.jpg | Bin .../CheatMenu}/peds/Misc/187.jpg | Bin .../CheatMenu}/peds/Misc/19.jpg | Bin .../CheatMenu}/peds/Misc/2.jpg | Bin .../CheatMenu}/peds/Misc/208.jpg | Bin .../CheatMenu}/peds/Misc/209.jpg | Bin .../CheatMenu}/peds/Misc/210.jpg | Bin .../CheatMenu}/peds/Misc/214.jpg | Bin .../CheatMenu}/peds/Misc/218.jpg | Bin .../CheatMenu}/peds/Misc/225.jpg | Bin .../CheatMenu}/peds/Misc/226.jpg | Bin .../CheatMenu}/peds/Misc/23.jpg | Bin .../CheatMenu}/peds/Misc/232.jpg | Bin .../CheatMenu}/peds/Misc/233.jpg | Bin .../CheatMenu}/peds/Misc/263.jpg | Bin .../CheatMenu}/peds/Misc/264.jpg | Bin .../CheatMenu}/peds/Misc/272.jpg | Bin .../CheatMenu}/peds/Misc/273.jpg | Bin .../CheatMenu}/peds/Misc/289.jpg | Bin .../CheatMenu}/peds/Misc/3.jpg | Bin .../CheatMenu}/peds/Misc/35.jpg | Bin .../CheatMenu}/peds/Misc/39.jpg | Bin .../CheatMenu}/peds/Misc/4.jpg | Bin .../CheatMenu}/peds/Misc/41.jpg | Bin .../CheatMenu}/peds/Misc/42.jpg | Bin .../CheatMenu}/peds/Misc/49.jpg | Bin .../CheatMenu}/peds/Misc/5.jpg | Bin .../CheatMenu}/peds/Misc/54.jpg | Bin .../CheatMenu}/peds/Misc/56.jpg | Bin .../CheatMenu}/peds/Misc/6.jpg | Bin .../CheatMenu}/peds/Misc/62.jpg | Bin .../CheatMenu}/peds/Misc/65.jpg | Bin .../CheatMenu}/peds/Misc/68.jpg | Bin .../CheatMenu}/peds/Misc/69.jpg | Bin .../CheatMenu}/peds/Misc/7.jpg | Bin .../CheatMenu}/peds/Misc/70.jpg | Bin .../CheatMenu}/peds/Misc/76.jpg | Bin .../CheatMenu}/peds/Misc/8.jpg | Bin .../CheatMenu}/peds/Misc/89.jpg | Bin .../CheatMenu}/peds/Misc/93.jpg | Bin .../peds/Mountain cloud triad/117.jpg | Bin .../peds/Mountain cloud triad/118.jpg | Bin .../peds/Mountain cloud triad/120.jpg | Bin .../CheatMenu}/peds/Mountain/26.jpg | Bin .../CheatMenu}/peds/Mountain/51.jpg | Bin .../CheatMenu}/peds/Mountain/52.jpg | Bin .../CheatMenu}/peds/Pol/66.jpg | Bin .../CheatMenu}/peds/Pol/67.jpg | Bin .../CheatMenu}/peds/Prostitute/152.jpg | Bin .../CheatMenu}/peds/Prostitute/178.jpg | Bin .../CheatMenu}/peds/Prostitute/207.jpg | Bin .../CheatMenu}/peds/Prostitute/237.jpg | Bin .../CheatMenu}/peds/Prostitute/238.jpg | Bin .../CheatMenu}/peds/Prostitute/243.jpg | Bin .../CheatMenu}/peds/Prostitute/244.jpg | Bin .../CheatMenu}/peds/Prostitute/245.jpg | Bin .../CheatMenu}/peds/Prostitute/246.jpg | Bin .../CheatMenu}/peds/Prostitute/249.jpg | Bin .../CheatMenu}/peds/Prostitute/63.jpg | Bin .../CheatMenu}/peds/Prostitute/64.jpg | Bin .../CheatMenu}/peds/Prostitute/75.jpg | Bin .../CheatMenu}/peds/Prostitute/85.jpg | Bin .../CheatMenu}/peds/Prostitute/87.jpg | Bin .../CheatMenu}/peds/Rich female/12.jpg | Bin .../CheatMenu}/peds/Rich female/169.jpg | Bin .../CheatMenu}/peds/Rich female/215.jpg | Bin .../CheatMenu}/peds/Rich female/216.jpg | Bin .../CheatMenu}/peds/Rich female/219.jpg | Bin .../CheatMenu}/peds/Rich female/224.jpg | Bin .../CheatMenu}/peds/Rich female/231.jpg | Bin .../CheatMenu}/peds/Rich female/40.jpg | Bin .../CheatMenu}/peds/Rich female/53.jpg | Bin .../CheatMenu}/peds/Rich female/55.jpg | Bin .../CheatMenu}/peds/Rich female/88.jpg | Bin .../CheatMenu}/peds/Rich female/9.jpg | Bin .../CheatMenu}/peds/Rich female/91.jpg | Bin .../CheatMenu}/peds/Rich male/14.jpg | Bin .../CheatMenu}/peds/Rich male/185.jpg | Bin .../CheatMenu}/peds/Rich male/186.jpg | Bin .../CheatMenu}/peds/Rich male/20.jpg | Bin .../CheatMenu}/peds/Rich male/221.jpg | Bin .../CheatMenu}/peds/Rich male/235.jpg | Bin .../CheatMenu}/peds/Rich male/240.jpg | Bin .../CheatMenu}/peds/Rich male/43.jpg | Bin .../CheatMenu}/peds/Rich male/46.jpg | Bin .../CheatMenu}/peds/Rich male/57.jpg | Bin .../CheatMenu}/peds/Rich male/59.jpg | Bin .../CheatMenu}/peds/Rich male/94.jpg | Bin .../CheatMenu}/peds/Rich male/98.jpg | Bin .../CheatMenu}/peds/Roller blade/92.jpg | Bin .../CheatMenu}/peds/Roller blade/99.jpg | Bin .../CheatMenu}/peds/San fierro rifa/173.jpg | Bin .../CheatMenu}/peds/San fierro rifa/174.jpg | Bin .../CheatMenu}/peds/San fierro rifa/175.jpg | Bin .../CheatMenu}/peds/Shop seller/155.jpg | Bin .../CheatMenu}/peds/Shop seller/156.jpg | Bin .../CheatMenu}/peds/Shop seller/167.jpg | Bin .../CheatMenu}/peds/Shop seller/168.jpg | Bin .../CheatMenu}/peds/Shop seller/176.jpg | Bin .../CheatMenu}/peds/Shop seller/177.jpg | Bin .../CheatMenu}/peds/Shop seller/179.jpg | Bin .../CheatMenu}/peds/Shop seller/180.jpg | Bin .../CheatMenu}/peds/Shop seller/205.jpg | Bin .../CheatMenu}/peds/Special/290.jpg | Bin .../CheatMenu}/peds/Special/291.jpg | Bin .../CheatMenu}/peds/Special/292.jpg | Bin .../CheatMenu}/peds/Special/293.jpg | Bin .../CheatMenu}/peds/Special/294.jpg | Bin .../CheatMenu}/peds/Special/295.jpg | Bin .../CheatMenu}/peds/Special/296.jpg | Bin .../CheatMenu}/peds/Special/297.jpg | Bin .../CheatMenu}/peds/Special/298.jpg | Bin .../CheatMenu}/peds/Special/299.jpg | Bin .../CheatMenu}/peds/Street male/101.jpg | Bin .../CheatMenu}/peds/Street male/142.jpg | Bin .../CheatMenu}/peds/Street male/15.jpg | Bin .../CheatMenu}/peds/Street male/170.jpg | Bin .../CheatMenu}/peds/Street male/188.jpg | Bin .../CheatMenu}/peds/Street male/22.jpg | Bin .../CheatMenu}/peds/Street male/222.jpg | Bin .../CheatMenu}/peds/Street male/229.jpg | Bin .../CheatMenu}/peds/Street male/236.jpg | Bin .../CheatMenu}/peds/Street male/241.jpg | Bin .../CheatMenu}/peds/Street male/242.jpg | Bin .../CheatMenu}/peds/Street male/44.jpg | Bin .../CheatMenu}/peds/Street male/48.jpg | Bin .../CheatMenu}/peds/Street male/58.jpg | Bin .../CheatMenu}/peds/Street male/60.jpg | Bin .../CheatMenu}/peds/Street male/95.jpg | Bin .../CheatMenu}/peds/Tramp female/256.jpg | Bin .../CheatMenu}/peds/Tramp female/257.jpg | Bin .../CheatMenu}/peds/Tramp female/77.jpg | Bin .../CheatMenu}/peds/Tramp male/134.jpg | Bin .../CheatMenu}/peds/Tramp male/135.jpg | Bin .../CheatMenu}/peds/Tramp male/136.jpg | Bin .../CheatMenu}/peds/Tramp male/137.jpg | Bin .../CheatMenu}/peds/Tramp male/212.jpg | Bin .../CheatMenu}/peds/Tramp male/213.jpg | Bin .../CheatMenu}/peds/Tramp male/230.jpg | Bin .../CheatMenu}/peds/Tramp male/239.jpg | Bin .../CheatMenu}/peds/Tramp male/78.jpg | Bin .../CheatMenu}/peds/Tramp male/79.jpg | Bin .../CheatMenu}/peds/Valet/189.jpg | Bin .../CheatMenu}/peds/Valet/252.jpg | Bin .../peds/Varrios los aztecas/114.jpg | Bin .../peds/Varrios los aztecas/115.jpg | Bin .../peds/Varrios los aztecas/116.jpg | Bin .../CheatMenu}/peds/Worker/16.jpg | Bin .../CheatMenu}/peds/Worker/253.jpg | Bin .../CheatMenu}/peds/Worker/255.jpg | Bin .../CheatMenu}/peds/Worker/268.jpg | Bin .../CheatMenu}/peds/Worker/50.jpg | Bin .../CheatMenu}/peds/Worker/61.jpg | Bin .../vehicles/components/Bullbar/1100.jpg | Bin .../vehicles/components/Bullbar/1109.jpg | Bin .../vehicles/components/Bullbar/1110.jpg | Bin .../vehicles/components/Bullbar/1115.jpg | Bin .../vehicles/components/Bullbar/1116.jpg | Bin .../vehicles/components/Bullbar/1123.jpg | Bin .../vehicles/components/Bullbar/1125.jpg | Bin .../vehicles/components/Exhaust/1018.jpg | Bin .../vehicles/components/Exhaust/1019.jpg | Bin .../vehicles/components/Exhaust/1020.jpg | Bin .../vehicles/components/Exhaust/1021.jpg | Bin .../vehicles/components/Exhaust/1022.jpg | Bin .../vehicles/components/Exhaust/1028.jpg | Bin .../vehicles/components/Exhaust/1029.jpg | Bin .../vehicles/components/Exhaust/1034.jpg | Bin .../vehicles/components/Exhaust/1037.jpg | Bin .../vehicles/components/Exhaust/1043.jpg | Bin .../vehicles/components/Exhaust/1044.jpg | Bin .../vehicles/components/Exhaust/1045.jpg | Bin .../vehicles/components/Exhaust/1046.jpg | Bin .../vehicles/components/Exhaust/1059.jpg | Bin .../vehicles/components/Exhaust/1064.jpg | Bin .../vehicles/components/Exhaust/1065.jpg | Bin .../vehicles/components/Exhaust/1066.jpg | Bin .../vehicles/components/Exhaust/1089.jpg | Bin .../vehicles/components/Exhaust/1092.jpg | Bin .../vehicles/components/Exhaust/1104.jpg | Bin .../vehicles/components/Exhaust/1105.jpg | Bin .../vehicles/components/Exhaust/1113.jpg | Bin .../vehicles/components/Exhaust/1114.jpg | Bin .../vehicles/components/Exhaust/1126.jpg | Bin .../vehicles/components/Exhaust/1127.jpg | Bin .../vehicles/components/Exhaust/1129.jpg | Bin .../vehicles/components/Exhaust/1132.jpg | Bin .../vehicles/components/Exhaust/1135.jpg | Bin .../vehicles/components/Exhaust/1136.jpg | Bin .../vehicles/components/Front bumper/1117.jpg | Bin .../vehicles/components/Front bumper/1152.jpg | Bin .../vehicles/components/Front bumper/1153.jpg | Bin .../vehicles/components/Front bumper/1155.jpg | Bin .../vehicles/components/Front bumper/1157.jpg | Bin .../vehicles/components/Front bumper/1160.jpg | Bin .../vehicles/components/Front bumper/1165.jpg | Bin .../vehicles/components/Front bumper/1166.jpg | Bin .../vehicles/components/Front bumper/1169.jpg | Bin .../vehicles/components/Front bumper/1170.jpg | Bin .../vehicles/components/Front bumper/1171.jpg | Bin .../vehicles/components/Front bumper/1172.jpg | Bin .../vehicles/components/Front bumper/1173.jpg | Bin .../vehicles/components/Front bumper/1174.jpg | Bin .../vehicles/components/Front bumper/1175.jpg | Bin .../vehicles/components/Front bumper/1179.jpg | Bin .../vehicles/components/Front bumper/1181.jpg | Bin .../vehicles/components/Front bumper/1182.jpg | Bin .../vehicles/components/Front bumper/1185.jpg | Bin .../vehicles/components/Front bumper/1188.jpg | Bin .../vehicles/components/Front bumper/1189.jpg | Bin .../vehicles/components/Front bumper/1190.jpg | Bin .../vehicles/components/Front bumper/1191.jpg | Bin .../vehicles/components/Front sign/1111.jpg | Bin .../vehicles/components/Front sign/1112.jpg | Bin .../vehicles/components/Hood/1004.jpg | Bin .../vehicles/components/Hood/1005.jpg | Bin .../vehicles/components/Hood/1011.jpg | Bin .../vehicles/components/Hood/1012.jpg | Bin .../vehicles/components/Lamps/1013.jpg | Bin .../vehicles/components/Lamps/1024.jpg | Bin .../vehicles/components/Misc/1086.jpg | Bin .../vehicles/components/Misc/1087.jpg | Bin .../vehicles/components/Nitros/1008.jpg | Bin .../vehicles/components/Nitros/1009.jpg | Bin .../vehicles/components/Nitros/1010.jpg | Bin .../vehicles/components/Rear bumper/1140.jpg | Bin .../vehicles/components/Rear bumper/1141.jpg | Bin .../vehicles/components/Rear bumper/1148.jpg | Bin .../vehicles/components/Rear bumper/1149.jpg | Bin .../vehicles/components/Rear bumper/1150.jpg | Bin .../vehicles/components/Rear bumper/1151.jpg | Bin .../vehicles/components/Rear bumper/1154.jpg | Bin .../vehicles/components/Rear bumper/1156.jpg | Bin .../vehicles/components/Rear bumper/1159.jpg | Bin .../vehicles/components/Rear bumper/1161.jpg | Bin .../vehicles/components/Rear bumper/1167.jpg | Bin .../vehicles/components/Rear bumper/1168.jpg | Bin .../vehicles/components/Rear bumper/1176.jpg | Bin .../vehicles/components/Rear bumper/1177.jpg | Bin .../vehicles/components/Rear bumper/1178.jpg | Bin .../vehicles/components/Rear bumper/1180.jpg | Bin .../vehicles/components/Rear bumper/1183.jpg | Bin .../vehicles/components/Rear bumper/1184.jpg | Bin .../vehicles/components/Rear bumper/1186.jpg | Bin .../vehicles/components/Rear bumper/1187.jpg | Bin .../vehicles/components/Rear bumper/1192.jpg | Bin .../vehicles/components/Rear bumper/1193.jpg | Bin .../vehicles/components/Roof/1006.jpg | Bin .../vehicles/components/Roof/1032.jpg | Bin .../vehicles/components/Roof/1033.jpg | Bin .../vehicles/components/Roof/1035.jpg | Bin .../vehicles/components/Roof/1038.jpg | Bin .../vehicles/components/Roof/1053.jpg | Bin .../vehicles/components/Roof/1054.jpg | Bin .../vehicles/components/Roof/1055.jpg | Bin .../vehicles/components/Roof/1061.jpg | Bin .../vehicles/components/Roof/1067.jpg | Bin .../vehicles/components/Roof/1068.jpg | Bin .../vehicles/components/Roof/1088.jpg | Bin .../vehicles/components/Roof/1091.jpg | Bin .../vehicles/components/Roof/1103.jpg | Bin .../vehicles/components/Roof/1128.jpg | Bin .../vehicles/components/Roof/1130.jpg | Bin .../vehicles/components/Roof/1131.jpg | Bin .../vehicles/components/Sideskirt/1007 | Bin .../vehicles/components/Sideskirt/1017.jpg | Bin .../vehicles/components/Sideskirt/1026.jpg | Bin .../vehicles/components/Sideskirt/1027.jpg | Bin .../vehicles/components/Sideskirt/1030.jpg | Bin .../vehicles/components/Sideskirt/1031.jpg | Bin .../vehicles/components/Sideskirt/1036.jpg | Bin .../vehicles/components/Sideskirt/1039.jpg | Bin .../vehicles/components/Sideskirt/1040.jpg | Bin .../vehicles/components/Sideskirt/1041.jpg | Bin .../vehicles/components/Sideskirt/1042.jpg | Bin .../vehicles/components/Sideskirt/1047.jpg | Bin .../vehicles/components/Sideskirt/1048.jpg | Bin .../vehicles/components/Sideskirt/1051.jpg | Bin .../vehicles/components/Sideskirt/1052.jpg | Bin .../vehicles/components/Sideskirt/1056.jpg | Bin .../vehicles/components/Sideskirt/1057.jpg | Bin .../vehicles/components/Sideskirt/1062.jpg | Bin .../vehicles/components/Sideskirt/1063.jpg | Bin .../vehicles/components/Sideskirt/1069.jpg | Bin .../vehicles/components/Sideskirt/1070.jpg | Bin .../vehicles/components/Sideskirt/1071.jpg | Bin .../vehicles/components/Sideskirt/1072.jpg | Bin .../vehicles/components/Sideskirt/1090.jpg | Bin .../vehicles/components/Sideskirt/1093.jpg | Bin .../vehicles/components/Sideskirt/1094.jpg | Bin .../vehicles/components/Sideskirt/1095.jpg | Bin .../vehicles/components/Sideskirt/1099.jpg | Bin .../vehicles/components/Sideskirt/1101.jpg | Bin .../vehicles/components/Sideskirt/1102.jpg | Bin .../vehicles/components/Sideskirt/1106.jpg | Bin .../vehicles/components/Sideskirt/1107.jpg | Bin .../vehicles/components/Sideskirt/1108.jpg | Bin .../vehicles/components/Sideskirt/1118.jpg | Bin .../vehicles/components/Sideskirt/1119.jpg | Bin .../vehicles/components/Sideskirt/1120.jpg | Bin .../vehicles/components/Sideskirt/1121.jpg | Bin .../vehicles/components/Sideskirt/1122.jpg | Bin .../vehicles/components/Sideskirt/1124.jpg | Bin .../vehicles/components/Sideskirt/1133.jpg | Bin .../vehicles/components/Sideskirt/1134.jpg | Bin .../vehicles/components/Sideskirt/1137.jpg | Bin .../vehicles/components/Spoiler/1000.jpg | Bin .../vehicles/components/Spoiler/1001.jpg | Bin .../vehicles/components/Spoiler/1002.jpg | Bin .../vehicles/components/Spoiler/1003.jpg | Bin .../vehicles/components/Spoiler/1014.jpg | Bin .../vehicles/components/Spoiler/1015.jpg | Bin .../vehicles/components/Spoiler/1016.jpg | Bin .../vehicles/components/Spoiler/1023.jpg | Bin .../vehicles/components/Spoiler/1049.jpg | Bin .../vehicles/components/Spoiler/1050.jpg | Bin .../vehicles/components/Spoiler/1058.jpg | Bin .../vehicles/components/Spoiler/1060.jpg | Bin .../vehicles/components/Spoiler/1138.jpg | Bin .../vehicles/components/Spoiler/1139.jpg | Bin .../vehicles/components/Spoiler/1146.jpg | Bin .../vehicles/components/Spoiler/1147.jpg | Bin .../vehicles/components/Spoiler/1158.jpg | Bin .../vehicles/components/Spoiler/1162.jpg | Bin .../vehicles/components/Spoiler/1163.jpg | Bin .../vehicles/components/Spoiler/1164.jpg | Bin .../vehicles/components/Vents/1142.jpg | Bin .../vehicles/components/Vents/1143.jpg | Bin .../vehicles/components/Vents/1144.jpg | Bin .../vehicles/components/Vents/1145.jpg | Bin .../vehicles/components/Wheels/1025.jpg | Bin .../vehicles/components/Wheels/1073.jpg | Bin .../vehicles/components/Wheels/1074.jpg | Bin .../vehicles/components/Wheels/1075.jpg | Bin .../vehicles/components/Wheels/1076.jpg | Bin .../vehicles/components/Wheels/1077.jpg | Bin .../vehicles/components/Wheels/1078.jpg | Bin .../vehicles/components/Wheels/1079.jpg | Bin .../vehicles/components/Wheels/1080.jpg | Bin .../vehicles/components/Wheels/1081.jpg | Bin .../vehicles/components/Wheels/1082.jpg | Bin .../vehicles/components/Wheels/1083.jpg | Bin .../vehicles/components/Wheels/1084.jpg | Bin .../vehicles/components/Wheels/1085.jpg | Bin .../vehicles/components/Wheels/1096.jpg | Bin .../vehicles/components/Wheels/1097.jpg | Bin .../vehicles/components/Wheels/1098.jpg | Bin .../images/2 door & compact cars/401.jpg | Bin .../images/2 door & compact cars/410.jpg | Bin .../images/2 door & compact cars/419.jpg | Bin .../images/2 door & compact cars/434.jpg | Bin .../images/2 door & compact cars/436.jpg | Bin .../images/2 door & compact cars/439.jpg | Bin .../images/2 door & compact cars/474.jpg | Bin .../images/2 door & compact cars/480.jpg | Bin .../images/2 door & compact cars/491.jpg | Bin .../images/2 door & compact cars/496.jpg | Bin .../images/2 door & compact cars/517.jpg | Bin .../images/2 door & compact cars/518.jpg | Bin .../images/2 door & compact cars/526.jpg | Bin .../images/2 door & compact cars/527.jpg | Bin .../images/2 door & compact cars/533.jpg | Bin .../images/2 door & compact cars/545.jpg | Bin .../images/2 door & compact cars/555.jpg | Bin .../images/2 door & compact cars/558.jpg | Bin .../images/2 door & compact cars/559.jpg | Bin .../images/2 door & compact cars/562.jpg | Bin .../images/2 door & compact cars/565.jpg | Bin .../images/2 door & compact cars/587.jpg | Bin .../images/2 door & compact cars/589.jpg | Bin .../images/2 door & compact cars/600.jpg | Bin .../images/2 door & compact cars/602.jpg | Bin .../images/4 door & luxary cars/405.jpg | Bin .../images/4 door & luxary cars/409.jpg | Bin .../images/4 door & luxary cars/421.jpg | Bin .../images/4 door & luxary cars/426.jpg | Bin .../images/4 door & luxary cars/445.jpg | Bin .../images/4 door & luxary cars/466.jpg | Bin .../images/4 door & luxary cars/467.jpg | Bin .../images/4 door & luxary cars/492.jpg | Bin .../images/4 door & luxary cars/507.jpg | Bin .../images/4 door & luxary cars/516.jpg | Bin .../images/4 door & luxary cars/529.jpg | Bin .../images/4 door & luxary cars/540.jpg | Bin .../images/4 door & luxary cars/546.jpg | Bin .../images/4 door & luxary cars/547.jpg | Bin .../images/4 door & luxary cars/550.jpg | Bin .../images/4 door & luxary cars/551.jpg | Bin .../images/4 door & luxary cars/560.jpg | Bin .../images/4 door & luxary cars/566.jpg | Bin .../images/4 door & luxary cars/580.jpg | Bin .../images/4 door & luxary cars/585.jpg | Bin .../images/4 door & luxary cars/604.jpg | Bin .../vehicles/images/Airplanes/460.jpg | Bin .../vehicles/images/Airplanes/476.jpg | Bin .../vehicles/images/Airplanes/511.jpg | Bin .../vehicles/images/Airplanes/512.jpg | Bin .../vehicles/images/Airplanes/513.jpg | Bin .../vehicles/images/Airplanes/519.jpg | Bin .../vehicles/images/Airplanes/520.jpg | Bin .../vehicles/images/Airplanes/553.jpg | Bin .../vehicles/images/Airplanes/577.jpg | Bin .../vehicles/images/Airplanes/592.jpg | Bin .../vehicles/images/Airplanes/593.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/448.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/461.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/462.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/463.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/468.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/481.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/509.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/510.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/521.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/522.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/581.jpg | Bin .../CheatMenu}/vehicles/images/Bikes/586.jpg | Bin .../CheatMenu}/vehicles/images/Boats/430.jpg | Bin .../CheatMenu}/vehicles/images/Boats/446.jpg | Bin .../CheatMenu}/vehicles/images/Boats/452.jpg | Bin .../CheatMenu}/vehicles/images/Boats/453.jpg | Bin .../CheatMenu}/vehicles/images/Boats/454.jpg | Bin .../CheatMenu}/vehicles/images/Boats/472.jpg | Bin .../CheatMenu}/vehicles/images/Boats/473.jpg | Bin .../CheatMenu}/vehicles/images/Boats/484.jpg | Bin .../CheatMenu}/vehicles/images/Boats/493.jpg | Bin .../CheatMenu}/vehicles/images/Boats/595.jpg | Bin .../vehicles/images/Civil service/408.jpg | Bin .../vehicles/images/Civil service/420.jpg | Bin .../vehicles/images/Civil service/431.jpg | Bin .../vehicles/images/Civil service/437.jpg | Bin .../vehicles/images/Civil service/438.jpg | Bin .../vehicles/images/Civil service/485.jpg | Bin .../vehicles/images/Civil service/525.jpg | Bin .../vehicles/images/Civil service/552.jpg | Bin .../vehicles/images/Civil service/574.jpg | Bin .../images/Government vehicles/407.jpg | Bin .../images/Government vehicles/416.jpg | Bin .../images/Government vehicles/427.jpg | Bin .../images/Government vehicles/428.jpg | Bin .../images/Government vehicles/432.jpg | Bin .../images/Government vehicles/433.jpg | Bin .../images/Government vehicles/470.jpg | Bin .../images/Government vehicles/490.jpg | Bin .../images/Government vehicles/523.jpg | Bin .../images/Government vehicles/528.jpg | Bin .../images/Government vehicles/544.jpg | Bin .../images/Government vehicles/596.jpg | Bin .../images/Government vehicles/597.jpg | Bin .../images/Government vehicles/598.jpg | Bin .../images/Government vehicles/599.jpg | Bin .../images/Government vehicles/601.jpg | Bin .../images/Heavy & utility truck/403.jpg | Bin .../images/Heavy & utility truck/406.jpg | Bin .../images/Heavy & utility truck/414.jpg | Bin .../images/Heavy & utility truck/423.jpg | Bin .../images/Heavy & utility truck/443.jpg | Bin .../images/Heavy & utility truck/455.jpg | Bin .../images/Heavy & utility truck/456.jpg | Bin .../images/Heavy & utility truck/486.jpg | Bin .../images/Heavy & utility truck/498.jpg | Bin .../images/Heavy & utility truck/499.jpg | Bin .../images/Heavy & utility truck/514.jpg | Bin .../images/Heavy & utility truck/515.jpg | Bin .../images/Heavy & utility truck/524.jpg | Bin .../images/Heavy & utility truck/531.jpg | Bin .../images/Heavy & utility truck/532.jpg | Bin .../images/Heavy & utility truck/573.jpg | Bin .../images/Heavy & utility truck/578.jpg | Bin .../images/Heavy & utility truck/588.jpg | Bin .../images/Heavy & utility truck/609.jpg | Bin .../vehicles/images/Helicopters/417.jpg | Bin .../vehicles/images/Helicopters/425.jpg | Bin .../vehicles/images/Helicopters/447.jpg | Bin .../vehicles/images/Helicopters/469.jpg | Bin .../vehicles/images/Helicopters/487.jpg | Bin .../vehicles/images/Helicopters/488.jpg | Bin .../vehicles/images/Helicopters/497.jpg | Bin .../vehicles/images/Helicopters/548.jpg | Bin .../vehicles/images/Helicopters/563.jpg | Bin .../images/Light trucks & vans/413.jpg | Bin .../images/Light trucks & vans/418.jpg | Bin .../images/Light trucks & vans/422.jpg | Bin .../images/Light trucks & vans/440.jpg | Bin .../images/Light trucks & vans/459.jpg | Bin .../images/Light trucks & vans/478.jpg | Bin .../images/Light trucks & vans/482.jpg | Bin .../images/Light trucks & vans/530.jpg | Bin .../images/Light trucks & vans/543.jpg | Bin .../images/Light trucks & vans/554.jpg | Bin .../images/Light trucks & vans/572.jpg | Bin .../images/Light trucks & vans/582.jpg | Bin .../images/Light trucks & vans/583.jpg | Bin .../images/Light trucks & vans/605.jpg | Bin .../vehicles/images/Low riders/412.jpg | Bin .../vehicles/images/Low riders/534.jpg | Bin .../vehicles/images/Low riders/535.jpg | Bin .../vehicles/images/Low riders/536.jpg | Bin .../vehicles/images/Low riders/567.jpg | Bin .../vehicles/images/Low riders/575.jpg | Bin .../vehicles/images/Low riders/576.jpg | Bin .../vehicles/images/Muscle cars/402.jpg | Bin .../vehicles/images/Muscle cars/475.jpg | Bin .../vehicles/images/Muscle cars/542.jpg | Bin .../vehicles/images/Muscle cars/549.jpg | Bin .../vehicles/images/Muscle cars/603.jpg | Bin .../vehicles/images/RC vehicles/441.jpg | Bin .../vehicles/images/RC vehicles/464.jpg | Bin .../vehicles/images/RC vehicles/465.jpg | Bin .../vehicles/images/RC vehicles/501.jpg | Bin .../vehicles/images/RC vehicles/564.jpg | Bin .../vehicles/images/RC vehicles/594.jpg | Bin .../vehicles/images/Recreational/424.jpg | Bin .../vehicles/images/Recreational/444.jpg | Bin .../vehicles/images/Recreational/457.jpg | Bin .../vehicles/images/Recreational/471.jpg | Bin .../vehicles/images/Recreational/483.jpg | Bin .../vehicles/images/Recreational/495.jpg | Bin .../vehicles/images/Recreational/500.jpg | Bin .../vehicles/images/Recreational/504.jpg | Bin .../vehicles/images/Recreational/508.jpg | Bin .../vehicles/images/Recreational/539.jpg | Bin .../vehicles/images/Recreational/556.jpg | Bin .../vehicles/images/Recreational/557.jpg | Bin .../vehicles/images/Recreational/568.jpg | Bin .../vehicles/images/Recreational/571.jpg | Bin .../vehicles/images/SUVs & wagons/400.jpg | Bin .../vehicles/images/SUVs & wagons/404.jpg | Bin .../vehicles/images/SUVs & wagons/442.jpg | Bin .../vehicles/images/SUVs & wagons/458.jpg | Bin .../vehicles/images/SUVs & wagons/479.jpg | Bin .../vehicles/images/SUVs & wagons/489.jpg | Bin .../vehicles/images/SUVs & wagons/505.jpg | Bin .../vehicles/images/SUVs & wagons/561.jpg | Bin .../vehicles/images/SUVs & wagons/579.jpg | Bin .../vehicles/images/Street racers/411.jpg | Bin .../vehicles/images/Street racers/415.jpg | Bin .../vehicles/images/Street racers/429.jpg | Bin .../vehicles/images/Street racers/451.jpg | Bin .../vehicles/images/Street racers/477.jpg | Bin .../vehicles/images/Street racers/494.jpg | Bin .../vehicles/images/Street racers/502.jpg | Bin .../vehicles/images/Street racers/503.jpg | Bin .../vehicles/images/Street racers/506.jpg | Bin .../vehicles/images/Street racers/541.jpg | Bin .../vehicles/images/Trailers/435.jpg | Bin .../vehicles/images/Trailers/450.jpg | Bin .../vehicles/images/Trailers/584.jpg | Bin .../vehicles/images/Trailers/591.jpg | Bin .../vehicles/images/Trailers/606.jpg | Bin .../vehicles/images/Trailers/607.jpg | Bin .../vehicles/images/Trailers/608.jpg | Bin .../vehicles/images/Trailers/610.jpg | Bin .../vehicles/images/Trailers/611.jpg | Bin .../CheatMenu}/vehicles/images/Trains/449.jpg | Bin .../CheatMenu}/vehicles/images/Trains/537.jpg | Bin .../CheatMenu}/vehicles/images/Trains/538.jpg | Bin .../vehicles/paintjobs/carbonfiber.png | Bin .../vehicles/paintjobs/stickerbomb.png | Bin .../CheatMenu}/vehicles/paintjobs/uvtest.png | Bin .../CheatMenu}/weapons/Assault rifles/30.jpg | Bin .../CheatMenu}/weapons/Assault rifles/31.jpg | Bin .../CheatMenu}/weapons/Handguns/22.jpg | Bin .../CheatMenu}/weapons/Handguns/23.jpg | Bin .../CheatMenu}/weapons/Handguns/24.jpg | Bin .../CheatMenu}/weapons/Heavy weapons/35.jpg | Bin .../CheatMenu}/weapons/Heavy weapons/36.jpg | Bin .../CheatMenu}/weapons/Heavy weapons/37.jpg | Bin .../CheatMenu}/weapons/Heavy weapons/38.jpg | Bin Files/CheatMenu/weapons/Melee/0.jpg | Bin 0 -> 15896 bytes .../CheatMenu}/weapons/Melee/1.jpg | Bin .../CheatMenu}/weapons/Melee/2.jpg | Bin .../CheatMenu}/weapons/Melee/3.jpg | Bin .../CheatMenu}/weapons/Melee/4.jpg | Bin .../CheatMenu}/weapons/Melee/5.jpg | Bin .../CheatMenu}/weapons/Melee/6.jpg | Bin .../CheatMenu}/weapons/Melee/7.jpg | Bin .../CheatMenu}/weapons/Melee/8.jpg | Bin .../CheatMenu}/weapons/Melee/9.jpg | Bin .../CheatMenu/weapons/Misc/-1.jpg | Bin .../CheatMenu}/weapons/Misc/10.jpg | Bin .../CheatMenu}/weapons/Misc/11.jpg | Bin .../CheatMenu}/weapons/Misc/12.jpg | Bin .../CheatMenu}/weapons/Misc/13.jpg | Bin .../CheatMenu}/weapons/Misc/14.jpg | Bin .../CheatMenu}/weapons/Misc/15.jpg | Bin .../CheatMenu}/weapons/Misc/41.jpg | Bin .../CheatMenu}/weapons/Misc/42.jpg | Bin .../CheatMenu}/weapons/Misc/43.jpg | Bin .../CheatMenu}/weapons/Misc/44.jpg | Bin .../CheatMenu}/weapons/Misc/45.jpg | Bin .../CheatMenu}/weapons/Misc/46.jpg | Bin .../CheatMenu}/weapons/Projectiles/16.jpg | Bin .../CheatMenu}/weapons/Projectiles/17.jpg | Bin .../CheatMenu}/weapons/Projectiles/18.jpg | Bin .../CheatMenu}/weapons/Projectiles/39.jpg | Bin .../CheatMenu}/weapons/Rifles/33.jpg | Bin .../CheatMenu}/weapons/Rifles/34.jpg | Bin .../CheatMenu}/weapons/Shotguns/25.jpg | Bin .../CheatMenu}/weapons/Shotguns/26.jpg | Bin .../CheatMenu}/weapons/Shotguns/27.jpg | Bin .../weapons/Sub machine guns/28.jpg | Bin .../weapons/Sub machine guns/29.jpg | Bin .../weapons/Sub machine guns/32.jpg | Bin neon_api.asi => Files/neon_api.asi | Bin README.md | 44 +- moonloader/cheat-menu.lua | 779 - moonloader/lib/MoonAdditions.dll | Bin 765440 -> 0 bytes moonloader/lib/cheat-menu/fonts/Trebucbd.ttf | Bin 123096 -> 0 bytes moonloader/lib/cheat-menu/fonts/tahoma.ttf | Bin 383140 -> 0 bytes moonloader/lib/cheat-menu/fonts/tahomabd.ttf | Bin 355436 -> 0 bytes moonloader/lib/cheat-menu/fonts/verdana.ttf | Bin 171792 -> 0 bytes moonloader/lib/cheat-menu/json/animation.json | 1 - .../lib/cheat-menu/json/cheat name.json | 94 - .../lib/cheat-menu/json/coordinate.json | 1 - .../json/first person camera offsets.json | 1 - .../lib/cheat-menu/json/handling flags.json | 30 - moonloader/lib/cheat-menu/json/memory.json | 1 - moonloader/lib/cheat-menu/json/mission.json | 160 - .../lib/cheat-menu/json/model flags.json | 34 - moonloader/lib/cheat-menu/json/neon data.json | 54 - .../lib/cheat-menu/json/ped special.json | 46 - moonloader/lib/cheat-menu/json/ped.json | 316 - .../lib/cheat-menu/json/radar sprite.json | 66 - moonloader/lib/cheat-menu/json/stat.json | 307 - moonloader/lib/cheat-menu/json/styles.json | 1 - moonloader/lib/cheat-menu/json/weapon.json | 46 - moonloader/lib/cheat-menu/libraries/casts.lua | 147 - .../lib/cheat-menu/libraries/memory.lua | 238 - .../lib/cheat-menu/modules/animation.lua | 166 - moonloader/lib/cheat-menu/modules/common.lua | 1338 - moonloader/lib/cheat-menu/modules/config.lua | 416 - moonloader/lib/cheat-menu/modules/const.lua | 149 - moonloader/lib/cheat-menu/modules/game.lua | 1223 - moonloader/lib/cheat-menu/modules/memory.lua | 265 - moonloader/lib/cheat-menu/modules/menu.lua | 557 - moonloader/lib/cheat-menu/modules/mission.lua | 56 - moonloader/lib/cheat-menu/modules/ped.lua | 305 - moonloader/lib/cheat-menu/modules/player.lua | 460 - moonloader/lib/cheat-menu/modules/stat.lua | 96 - moonloader/lib/cheat-menu/modules/style.lua | 311 - .../lib/cheat-menu/modules/teleport.lua | 212 - moonloader/lib/cheat-menu/modules/vehicle.lua | 1458 - moonloader/lib/cheat-menu/modules/visual.lua | 503 - moonloader/lib/cheat-menu/modules/weapon.lua | 344 - moonloader/lib/lfs.dll | Bin 14848 -> 0 bytes moonloader/lib/mimgui/cdefs.lua | 1961 -- moonloader/lib/mimgui/cimguidx9.dll | Bin 543744 -> 0 bytes moonloader/lib/mimgui/dx9.lua | 171 - moonloader/lib/mimgui/imgui.lua | 2231 -- moonloader/lib/mimgui/init.lua | 368 - moonloader/lib/ziplib.dll | Bin 134787 -> 0 bytes 1223 files changed, 86819 insertions(+), 14936 deletions(-) create mode 100644 CheatMenu.sln create mode 100644 CheatMenu/Animation.cpp create mode 100644 CheatMenu/Animation.h create mode 100644 CheatMenu/CheatMenu.cpp create mode 100644 CheatMenu/CheatMenu.h create mode 100644 CheatMenu/CheatMenu.vcxproj.filters create mode 100644 CheatMenu/CheatMenu.vcxproj.vcxproj create mode 100644 CheatMenu/CheatMenu.vcxproj.vcxproj.filters create mode 100644 CheatMenu/Events.cpp create mode 100644 CheatMenu/Events.h create mode 100644 CheatMenu/Game.cpp create mode 100644 CheatMenu/Game.h create mode 100644 CheatMenu/Hook.cpp create mode 100644 CheatMenu/Hook.h create mode 100644 CheatMenu/Json.cpp create mode 100644 CheatMenu/Json.h create mode 100644 CheatMenu/Menu.cpp create mode 100644 CheatMenu/Menu.h create mode 100644 CheatMenu/NeonAPI.cpp create mode 100644 CheatMenu/NeonAPI.h create mode 100644 CheatMenu/Paint.cpp create mode 100644 CheatMenu/Paint.h create mode 100644 CheatMenu/Ped.cpp create mode 100644 CheatMenu/Ped.h create mode 100644 CheatMenu/Player.cpp create mode 100644 CheatMenu/Player.h create mode 100644 CheatMenu/Teleport.cpp create mode 100644 CheatMenu/Teleport.h create mode 100644 CheatMenu/Ui.cpp create mode 100644 CheatMenu/Ui.h create mode 100644 CheatMenu/Util.cpp create mode 100644 CheatMenu/Util.h create mode 100644 CheatMenu/VKeys.h create mode 100644 CheatMenu/Vehicle.cpp create mode 100644 CheatMenu/Vehicle.h create mode 100644 CheatMenu/Visual.cpp create mode 100644 CheatMenu/Visual.h create mode 100644 CheatMenu/Weapon.cpp create mode 100644 CheatMenu/Weapon.h create mode 100644 CheatMenu/external/imgui/imconfig.h create mode 100644 CheatMenu/external/imgui/imgui.cpp create mode 100644 CheatMenu/external/imgui/imgui.h create mode 100644 CheatMenu/external/imgui/imgui_demo.cpp create mode 100644 CheatMenu/external/imgui/imgui_draw.cpp create mode 100644 CheatMenu/external/imgui/imgui_impl_dx11.cpp create mode 100644 CheatMenu/external/imgui/imgui_impl_dx11.h create mode 100644 CheatMenu/external/imgui/imgui_impl_dx9.cpp create mode 100644 CheatMenu/external/imgui/imgui_impl_dx9.h create mode 100644 CheatMenu/external/imgui/imgui_impl_win32.cpp create mode 100644 CheatMenu/external/imgui/imgui_impl_win32.h create mode 100644 CheatMenu/external/imgui/imgui_internal.h create mode 100644 CheatMenu/external/imgui/imgui_widgets.cpp create mode 100644 CheatMenu/external/imgui/imstb_rectpack.h create mode 100644 CheatMenu/external/imgui/imstb_textedit.h create mode 100644 CheatMenu/external/imgui/imstb_truetype.h create mode 100644 CheatMenu/external/imgui/stb_image.h create mode 100644 CheatMenu/external/json.hpp create mode 100644 CheatMenu/external/kiero/kiero.cpp create mode 100644 CheatMenu/external/kiero/kiero.h create mode 100644 CheatMenu/external/kiero/minhook/include/MinHook.h create mode 100644 CheatMenu/external/moon/pool_object_extender.h create mode 100644 CheatMenu/external/moon/texture_manager.cpp create mode 100644 CheatMenu/external/moon/texture_manager.h create mode 100644 CheatMenu/external/moon/vehicle_renderer.cpp create mode 100644 CheatMenu/external/moon/vehicle_renderer.h create mode 100644 CheatMenu/pch.cpp create mode 100644 CheatMenu/pch.h rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Extras/17$balaclava$balaclava.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Extras/17$countrytr$countrytr.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Extras/17$garagetr$garageleg.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Extras/17$gimpleg$gimpleg.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Extras/17$medictr$medictr.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Extras/17$pimptr$pimptr.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Extras/17$policetr$policetr.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Extras/17$valet$croupier.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Extras/17$valet$valet.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$bandmask$bandblack3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$bandmask$bandblue3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$bandmask$bandgang3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$bandmask$bandred3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$eyepatch$eyepatch.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses01$glasses01.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses01$glasses01dark.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses03$glasses03.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses03$glasses03blue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses03$glasses03dark.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses03$glasses03red.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses03$glasses05.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses03$glasses05dark.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses04$glasses04.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$glasses04$glasses04dark.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$grouchos$groucho.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Glasses/15$zorromask$zorro.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bandana$bandblack.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bandana$bandblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bandana$bandgang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bandana$bandred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bandknots$bandblack2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bandknots$bandblue2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bandknots$bandgang2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bandknots$bandred2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$beret$beretblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$beret$beretred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bikerhelmet$bikerhelmet.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$boater$boater.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$boater$boaterblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bowler$bowler.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bowler$bowlerblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bowler$bowlergang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bowler$bowlerred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$bowler$bowleryellow.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$boxingcap$boxingcap.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$cap$capblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$cap$capblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$cap$capgang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$cap$capred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$cap$capzip.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capback$capblkback.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capback$capblueback.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capback$capgangback.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capback$capredback.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capback$capzipback.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capknit$capknitgrn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capovereye$capblkover.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capovereye$capblueover.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capovereye$capgangover.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capovereye$capredover.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capovereye$capzipover.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$caprimup$capblkup.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$caprimup$capblueup.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$caprimup$capgangup.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$caprimup$capredup.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$caprimup$capzipup.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capside$capblkside.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capside$capblueside.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capside$capgangside.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capside$capredside.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$capside$capzipside.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$captruck$captruck.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$cowboy$cowboy.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$cowboy$hattiger.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$hatmanc$hatmancblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$hatmanc$hatmancplaid.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$helmet$helmet.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$hockeymask$hockey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$moto$moto.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$skullycap$skullyblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$skullycap$skullygrn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$trilby$trilbydrk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Hats/16$trilby$trilbylght.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$afro$afro.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$afro$afrobeard.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$afro$afroblond.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$afro$afrogoatee.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$afro$afrotash.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$cornrows$cornrows.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$cornrows$cornrowsb.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$elvishair$elvishair.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$flattop$flattop.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$groovecut$groovecut.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$bald.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$baldbeard.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$baldgoatee.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$baldtash.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$beard.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$goatee.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$hairblond.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$hairblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$hairgreen.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$hairpink.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$hairred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$highfade.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$player_face.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$head$tash.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$highafro$highafro.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$jheri$jhericurl.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$mohawk$mohawk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$mohawk$mohawkbeard.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$mohawk$mohawkblond.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$mohawk$mohawkpink.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$slope$slope.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$tramline$tramline.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Heads/1$wedge$wedge.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck$dogtag.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck$neckafrica.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck$neckcross.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck$neckdollar.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck$neckhash.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck$neckls.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck$necksaints.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck$stopwatch.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck2$neckgold.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck2$neckropeg.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck2$neckropes.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Necklaces/13$neck2$necksilver.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$baseball$bandits.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$baskball$baskballdrib.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$baskball$baskballloc.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$baskball$baskballrim.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$bbjack$bballjackrstar.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$bbjack$bbjackrim.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$coach$coach.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$coach$coachsemi.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$denim$denimfade.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$field$field.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hawaii$bowling.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hawaii$hawaiired.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hawaii$hawaiiwht.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hoodjack$hoodjackbeige.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hoodyA$hoodyAblack.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hoodyA$hoodyAblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hoodyA$hoodyAgreen.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hoodya$hoodyabase5.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hoodya$hoodyamerc.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$hoodya$hoodyarockstar.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$leather$leather.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$painter$painter.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$shirta$shirtablue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$shirta$shirtagrey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$shirta$shirtayellow.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$shirtb$shirtbcheck.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$shirtb$shirtbgang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$shirtb$shirtbplaid.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$sleevt$bbjersey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$sleevt$letter.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$sleevt$sleevtbrown.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$suit1$suit1blk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$suit1$suit1blue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$suit1$suit1gang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$suit1$suit1grey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$suit1$suit1red.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$suit1$suit1yellow.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$suit2$suit2grn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$suit2$tuxedo.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$sweat$hockeytop.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$sweat$sweatrstar.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$torso$player_torso.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$trackytop1$shellsuit.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$trackytop1$sportjack.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$trackytop1$trackytop1pro.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$trackytop1$trackytop2eris.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$sixtyniners.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtbase5.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtblunts.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtbobomonk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtbobored.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirterisorn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirterisyell.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtheatwht.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtilovels.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtlocgrey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtmaddgrey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtmaddgrn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtproblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtprored.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtsuburb.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtwhite.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtzipcrm.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt$tshirtzipgry.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$tshirt2$tshirt2horiz.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$vest$vest.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$vest$vestblack.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shirts/0$wcoat$wcoatblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$bask1eris.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$bask1problk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$bask1prowht.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$bask2heatband.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$bask2heatwht.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$bask2semi.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$hitop.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$timberfawn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$timbergrey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$timberhike.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$bask1$timberred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$biker$biker.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$biker$boxingshoe.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$biker$cowboyboot.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$biker$cowboyboot2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$biker$snakeskin.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$conv$convheatblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$conv$convheatorn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$conv$convheatred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$conv$convproblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$conv$convproblu.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$conv$convprogrn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$feet$foot.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$flipflop$flipflop.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$flipflop$sandal.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$flipflop$sandalsock.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$shoe$shoedressblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$shoe$shoedressbrn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$shoe$shoespatz.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$sneaker$sneakerbincblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$sneaker$sneakerbincblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$sneaker$sneakerbincgang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$sneaker$sneakerheatblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$sneaker$sneakerheatgry.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$sneaker$sneakerheatwht.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$sneaker$sneakerproblu.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$sneaker$sneakerprored.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Shoes/3$sneaker$sneakerprowht.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos back/8$8gun$8gun.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos back/8$8poker$8poker.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos back/8$8sa$8sa.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos back/8$8sa2$8sa2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos back/8$8sa3$8sa3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos back/8$8santos$8santos.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos back/8$8westside$8westside.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left chest/9$9bullet$9bullet.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left chest/9$9crown$9crown.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left chest/9$9gun$9gun.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left chest/9$9gun2$9gun2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left chest/9$9homeboy$9homeboy.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left chest/9$9rasta$9rasta.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left lower arm/4$5CROSS$5CROSS.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left lower arm/4$5CROSS2$5CROSS2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left lower arm/4$5CROSS3$5CROSS3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left lower arm/4$5GUN$5GUN.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left upper arm/5$4rip$4rip.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left upper arm/5$4spider$4spider.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos left upper arm/5$4weed$4weed.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos lower back/12$12angels$12angels.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos lower back/12$12bandit$12bandit.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos lower back/12$12cross7$12cross7.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos lower back/12$12dagger$12dagger.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos lower back/12$12mayabird$12mayabird.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos lower back/12$12mayafce$12myfac.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right chest/10$10LS$10LS.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right chest/10$10LS2$10LS2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right chest/10$10LS3$10LS3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right chest/10$10LS4$10LS4.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right chest/10$10OG$10OG.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right chest/10$10WEED$10WEED.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right chest/10$10ls5$10ls5.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right lower arm/7$7CROSS$7CROSS.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right lower arm/7$7CROSS2$7CROSS2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right lower arm/7$7CROSS3$7CROSS3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right lower arm/7$7MARY$7MARY.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right upper arm/6$6AFRICA$6AFRICA.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right upper arm/6$6AZTEC$6AZTEC.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right upper arm/6$6CLOWN$6CLOWN.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos right upper arm/6$6CROWN$6CROWN.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos stomach/11$11DICE$11DICE.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos stomach/11$11DICE2$11DICE2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos stomach/11$11GROVE$11GROVE.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos stomach/11$11JAIL$11JAIL.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos stomach/11$11godsgift$11godsgift.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos stomach/11$11grove2$11grove2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Tattoos stomach/11$11grove3$11grove3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$boxingshort$bbshortred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$boxingshort$bbshortwht.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$boxingshort$boxshort.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$chinosb$biegetr.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$chinosb$chinosbiege.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$chinosb$chinosblack.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$chinosb$chinosblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$chinosb$chinoskhaki.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$chonger$chongerblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$chonger$chongergang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$chonger$chongergrey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$chonger$chongerred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$jeans$denimsgang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$jeans$denimsred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$jeans$jeansdenim.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$leathertr$leathertr.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$leathertr$leathertrchaps.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$legs$legsblack.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$legs$legsheart.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$legs$player_legs.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$shorts$cutoffchinos.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$shorts$cutoffchinosblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$shorts$cutoffdenims.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$shorts$shortsgang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$shorts$shortsgrey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$shorts$shortskhaki.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$suit1tr$suit1trblk.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$suit1tr$suit1trblk2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$suit1tr$suit1trblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$suit1tr$suit1trgang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$suit1tr$suit1trgreen.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$suit1tr$suit1trgrey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$suit1tr$suit1trred.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$suit1tr$suit1tryellow.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$tracktr$shellsuittr.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$tracktr$tracktr.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$tracktr$tracktrblue.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$tracktr$tracktreris.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$tracktr$tracktrgang.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$tracktr$tracktrpro.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$tracktr$tracktrwhstr.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$worktr$worktrcamogrn.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$worktr$worktrcamogry.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$worktr$worktrgrey.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Trousers/2$worktr$worktrkhaki.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchcro.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchcro2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchgno.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchgno2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchpink.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchpro.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchpro2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchsub1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchsub2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchyellow.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchzip1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/clothes/Watches/14$watch$watchzip2.jpg (100%) create mode 100644 Files/CheatMenu/json/animation.json create mode 100644 Files/CheatMenu/json/cheat name.json create mode 100644 Files/CheatMenu/json/mission.json create mode 100644 Files/CheatMenu/json/ped special.json create mode 100644 Files/CheatMenu/json/ped.json create mode 100644 Files/CheatMenu/json/stat.json create mode 100644 Files/CheatMenu/json/teleport.json create mode 100644 Files/CheatMenu/json/weapon.json rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Ballas/102.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Ballas/103.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Ballas/104.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Beach/138.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Beach/139.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Beach/140.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Beach/154.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Beach/18.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Beach/45.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Biker/247.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Biker/248.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Body guard/24.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Body guard/25.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Bouncer/163.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Bouncer/164.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Bouncer/165.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Bouncer/166.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Boxer/80.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Boxer/81.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Businessman/141.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Businessman/147.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Businessman/148.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Businessman/150.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Businessman/17.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Businessman/227.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Businessman/228.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Cab driver/182.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Cab driver/206.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Cab driver/220.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Cab driver/234.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Cab driver/261.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Cab driver/262.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Clothes seller/211.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Clothes seller/217.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Construction/153.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Construction/260.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Construction/27.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/157.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/158.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/159.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/160.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/161.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/162.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/196.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/197.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/198.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/199.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Country/200.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Criminal/100.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Criminal/143.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Criminal/181.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Criminal/183.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Criminal/184.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Criminal/21.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Criminal/223.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Criminal/250.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Criminal/47.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Croupier/11.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Croupier/171.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Croupier/172.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Da nang boys/121.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Da nang boys/122.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Da nang boys/123.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Drug dealer/254.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Drug dealer/28.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Drug dealer/29.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Drug dealer/30.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Elvis/82.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Elvis/83.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Elvis/84.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Fire fighter/277.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Fire fighter/278.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Fire fighter/279.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Golf/36.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Golf/37.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Golf/38.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/190-1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/190-2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/190.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/191-1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/191-2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/191.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/192-1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/192-2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/192.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/193-1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/193-2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/193.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/194-1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/194-2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/194.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/195-1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/195-2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grl/195.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grove street families/105.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grove street families/106.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grove street families/107.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grove street families/149.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grove street families/269.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grove street families/270.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Grove street families/271.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Heckler/258.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Heckler/259.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Hippie/72.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Hippie/73.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Jogger/90.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Jogger/96.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Karate student/203.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Karate student/204.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/265.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/266.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/267.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/280.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/281.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/282.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/283.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/284.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/285.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/286.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/287.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/288.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Law enforcement/71.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Life guard/251.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Life guard/97.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Los santos vagos/108.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Los santos vagos/109.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Los santos vagos/110.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class female/10.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class female/129.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class female/130.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class female/131.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class female/151.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class female/201.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class female/31.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class male/128.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class male/132.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class male/133.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class male/202.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class male/32.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class male/33.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Low class male/34.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mafia/111.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mafia/112.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mafia/113.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mafia/124.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mafia/125.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mafia/126.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mafia/127.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Medic/274.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Medic/275.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Medic/276.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/0.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/10.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/119.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/13.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/144.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/145.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/146.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/187.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/19.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/208.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/209.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/210.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/214.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/218.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/225.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/226.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/23.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/232.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/233.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/263.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/264.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/272.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/273.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/289.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/35.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/39.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/4.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/41.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/42.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/49.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/5.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/54.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/56.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/6.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/62.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/65.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/68.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/69.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/7.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/70.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/76.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/8.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/89.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Misc/93.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mountain cloud triad/117.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mountain cloud triad/118.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mountain cloud triad/120.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mountain/26.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mountain/51.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Mountain/52.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Pol/66.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Pol/67.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/152.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/178.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/207.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/237.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/238.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/243.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/244.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/245.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/246.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/249.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/63.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/64.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/75.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/85.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Prostitute/87.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/12.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/169.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/215.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/216.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/219.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/224.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/231.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/40.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/53.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/55.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/88.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/9.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich female/91.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/14.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/185.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/186.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/20.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/221.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/235.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/240.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/43.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/46.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/57.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/59.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/94.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Rich male/98.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Roller blade/92.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Roller blade/99.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/San fierro rifa/173.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/San fierro rifa/174.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/San fierro rifa/175.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Shop seller/155.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Shop seller/156.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Shop seller/167.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Shop seller/168.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Shop seller/176.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Shop seller/177.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Shop seller/179.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Shop seller/180.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Shop seller/205.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/290.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/291.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/292.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/293.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/294.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/295.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/296.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/297.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/298.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Special/299.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/101.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/142.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/15.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/170.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/188.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/22.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/222.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/229.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/236.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/241.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/242.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/44.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/48.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/58.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/60.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Street male/95.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp female/256.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp female/257.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp female/77.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/134.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/135.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/136.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/137.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/212.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/213.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/230.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/239.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/78.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Tramp male/79.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Valet/189.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Valet/252.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Varrios los aztecas/114.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Varrios los aztecas/115.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Varrios los aztecas/116.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Worker/16.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Worker/253.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Worker/255.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Worker/268.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Worker/50.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/peds/Worker/61.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Bullbar/1100.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Bullbar/1109.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Bullbar/1110.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Bullbar/1115.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Bullbar/1116.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Bullbar/1123.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Bullbar/1125.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1018.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1019.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1020.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1021.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1022.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1028.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1029.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1034.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1037.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1043.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1044.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1045.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1046.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1059.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1064.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1065.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1066.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1089.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1092.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1104.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1105.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1113.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1114.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1126.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1127.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1129.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1132.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1135.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Exhaust/1136.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1117.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1152.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1153.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1155.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1157.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1160.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1165.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1166.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1169.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1170.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1171.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1172.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1173.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1174.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1175.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1179.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1181.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1182.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1185.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1188.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1189.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1190.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front bumper/1191.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front sign/1111.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Front sign/1112.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Hood/1004.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Hood/1005.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Hood/1011.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Hood/1012.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Lamps/1013.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Lamps/1024.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Misc/1086.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Misc/1087.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Nitros/1008.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Nitros/1009.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Nitros/1010.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1140.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1141.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1148.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1149.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1150.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1151.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1154.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1156.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1159.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1161.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1167.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1168.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1176.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1177.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1178.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1180.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1183.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1184.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1186.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1187.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1192.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Rear bumper/1193.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1006.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1032.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1033.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1035.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1038.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1053.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1054.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1055.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1061.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1067.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1068.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1088.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1091.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1103.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1128.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1130.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Roof/1131.jpg (100%) rename moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1007.jpg => Files/CheatMenu/vehicles/components/Sideskirt/1007 (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1017.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1026.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1027.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1030.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1031.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1036.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1039.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1040.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1041.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1042.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1047.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1048.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1051.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1052.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1056.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1057.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1062.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1063.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1069.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1070.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1071.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1072.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1090.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1093.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1094.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1095.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1099.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1101.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1102.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1106.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1107.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1108.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1118.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1119.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1120.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1121.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1122.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1124.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1133.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1134.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Sideskirt/1137.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1000.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1001.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1002.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1003.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1014.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1015.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1016.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1023.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1049.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1050.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1058.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1060.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1138.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1139.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1146.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1147.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1158.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1162.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1163.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Spoiler/1164.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Vents/1142.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Vents/1143.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Vents/1144.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Vents/1145.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1025.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1073.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1074.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1075.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1076.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1077.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1078.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1079.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1080.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1081.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1082.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1083.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1084.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1085.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1096.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1097.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/components/Wheels/1098.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/401.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/410.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/419.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/434.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/436.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/439.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/474.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/480.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/491.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/496.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/517.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/518.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/526.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/527.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/533.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/545.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/555.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/558.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/559.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/562.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/565.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/587.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/589.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/600.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/2 door & compact cars/602.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/405.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/409.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/421.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/426.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/445.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/466.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/467.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/492.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/507.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/516.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/529.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/540.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/546.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/547.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/550.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/551.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/560.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/566.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/580.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/585.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/4 door & luxary cars/604.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/460.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/476.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/511.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/512.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/513.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/519.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/520.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/553.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/577.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/592.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Airplanes/593.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/448.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/461.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/462.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/463.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/468.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/481.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/509.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/510.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/521.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/522.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/581.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Bikes/586.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/430.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/446.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/452.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/453.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/454.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/472.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/473.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/484.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/493.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Boats/595.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Civil service/408.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Civil service/420.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Civil service/431.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Civil service/437.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Civil service/438.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Civil service/485.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Civil service/525.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Civil service/552.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Civil service/574.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/407.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/416.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/427.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/428.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/432.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/433.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/470.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/490.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/523.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/528.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/544.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/596.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/597.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/598.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/599.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Government vehicles/601.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/403.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/406.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/414.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/423.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/443.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/455.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/456.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/486.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/498.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/499.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/514.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/515.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/524.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/531.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/532.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/573.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/578.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/588.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Heavy & utility truck/609.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Helicopters/417.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Helicopters/425.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Helicopters/447.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Helicopters/469.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Helicopters/487.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Helicopters/488.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Helicopters/497.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Helicopters/548.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Helicopters/563.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/413.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/418.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/422.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/440.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/459.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/478.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/482.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/530.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/543.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/554.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/572.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/582.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/583.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Light trucks & vans/605.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Low riders/412.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Low riders/534.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Low riders/535.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Low riders/536.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Low riders/567.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Low riders/575.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Low riders/576.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Muscle cars/402.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Muscle cars/475.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Muscle cars/542.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Muscle cars/549.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Muscle cars/603.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/RC vehicles/441.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/RC vehicles/464.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/RC vehicles/465.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/RC vehicles/501.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/RC vehicles/564.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/RC vehicles/594.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/424.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/444.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/457.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/471.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/483.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/495.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/500.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/504.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/508.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/539.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/556.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/557.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/568.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Recreational/571.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/SUVs & wagons/400.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/SUVs & wagons/404.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/SUVs & wagons/442.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/SUVs & wagons/458.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/SUVs & wagons/479.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/SUVs & wagons/489.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/SUVs & wagons/505.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/SUVs & wagons/561.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/SUVs & wagons/579.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/411.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/415.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/429.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/451.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/477.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/494.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/502.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/503.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/506.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Street racers/541.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trailers/435.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trailers/450.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trailers/584.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trailers/591.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trailers/606.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trailers/607.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trailers/608.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trailers/610.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trailers/611.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trains/449.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trains/537.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/images/Trains/538.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/paintjobs/carbonfiber.png (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/paintjobs/stickerbomb.png (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/vehicles/paintjobs/uvtest.png (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Assault rifles/30.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Assault rifles/31.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Handguns/22.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Handguns/23.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Handguns/24.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Heavy weapons/35.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Heavy weapons/36.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Heavy weapons/37.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Heavy weapons/38.jpg (100%) create mode 100644 Files/CheatMenu/weapons/Melee/0.jpg rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Melee/1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Melee/2.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Melee/3.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Melee/4.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Melee/5.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Melee/6.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Melee/7.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Melee/8.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Melee/9.jpg (100%) rename moonloader/lib/cheat-menu/weapons/Misc/Jetpack.jpg => Files/CheatMenu/weapons/Misc/-1.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/10.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/11.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/12.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/13.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/14.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/15.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/41.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/42.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/43.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/44.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/45.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Misc/46.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Projectiles/16.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Projectiles/17.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Projectiles/18.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Projectiles/39.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Rifles/33.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Rifles/34.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Shotguns/25.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Shotguns/26.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Shotguns/27.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Sub machine guns/28.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Sub machine guns/29.jpg (100%) rename {moonloader/lib/cheat-menu => Files/CheatMenu}/weapons/Sub machine guns/32.jpg (100%) rename neon_api.asi => Files/neon_api.asi (100%) delete mode 100644 moonloader/cheat-menu.lua delete mode 100644 moonloader/lib/MoonAdditions.dll delete mode 100644 moonloader/lib/cheat-menu/fonts/Trebucbd.ttf delete mode 100644 moonloader/lib/cheat-menu/fonts/tahoma.ttf delete mode 100644 moonloader/lib/cheat-menu/fonts/tahomabd.ttf delete mode 100644 moonloader/lib/cheat-menu/fonts/verdana.ttf delete mode 100644 moonloader/lib/cheat-menu/json/animation.json delete mode 100644 moonloader/lib/cheat-menu/json/cheat name.json delete mode 100644 moonloader/lib/cheat-menu/json/coordinate.json delete mode 100644 moonloader/lib/cheat-menu/json/first person camera offsets.json delete mode 100644 moonloader/lib/cheat-menu/json/handling flags.json delete mode 100644 moonloader/lib/cheat-menu/json/memory.json delete mode 100644 moonloader/lib/cheat-menu/json/mission.json delete mode 100644 moonloader/lib/cheat-menu/json/model flags.json delete mode 100644 moonloader/lib/cheat-menu/json/neon data.json delete mode 100644 moonloader/lib/cheat-menu/json/ped special.json delete mode 100644 moonloader/lib/cheat-menu/json/ped.json delete mode 100644 moonloader/lib/cheat-menu/json/radar sprite.json delete mode 100644 moonloader/lib/cheat-menu/json/stat.json delete mode 100644 moonloader/lib/cheat-menu/json/styles.json delete mode 100644 moonloader/lib/cheat-menu/json/weapon.json delete mode 100644 moonloader/lib/cheat-menu/libraries/casts.lua delete mode 100644 moonloader/lib/cheat-menu/libraries/memory.lua delete mode 100644 moonloader/lib/cheat-menu/modules/animation.lua delete mode 100644 moonloader/lib/cheat-menu/modules/common.lua delete mode 100644 moonloader/lib/cheat-menu/modules/config.lua delete mode 100644 moonloader/lib/cheat-menu/modules/const.lua delete mode 100644 moonloader/lib/cheat-menu/modules/game.lua delete mode 100644 moonloader/lib/cheat-menu/modules/memory.lua delete mode 100644 moonloader/lib/cheat-menu/modules/menu.lua delete mode 100644 moonloader/lib/cheat-menu/modules/mission.lua delete mode 100644 moonloader/lib/cheat-menu/modules/ped.lua delete mode 100644 moonloader/lib/cheat-menu/modules/player.lua delete mode 100644 moonloader/lib/cheat-menu/modules/stat.lua delete mode 100644 moonloader/lib/cheat-menu/modules/style.lua delete mode 100644 moonloader/lib/cheat-menu/modules/teleport.lua delete mode 100644 moonloader/lib/cheat-menu/modules/vehicle.lua delete mode 100644 moonloader/lib/cheat-menu/modules/visual.lua delete mode 100644 moonloader/lib/cheat-menu/modules/weapon.lua delete mode 100644 moonloader/lib/lfs.dll delete mode 100644 moonloader/lib/mimgui/cdefs.lua delete mode 100644 moonloader/lib/mimgui/cimguidx9.dll delete mode 100644 moonloader/lib/mimgui/dx9.lua delete mode 100644 moonloader/lib/mimgui/imgui.lua delete mode 100644 moonloader/lib/mimgui/init.lua delete mode 100644 moonloader/lib/ziplib.dll diff --git a/CheatMenu.sln b/CheatMenu.sln new file mode 100644 index 0000000..d2462bd --- /dev/null +++ b/CheatMenu.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheatMenu", "CheatMenu\CheatMenu.vcxproj.vcxproj", "{B212DDA4-2A8E-45B2-914D-7BEEB31D06B1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + GTASA Release|x86 = GTASA Release|x86 + GTASA zDebug|x86 = GTASA zDebug|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B212DDA4-2A8E-45B2-914D-7BEEB31D06B1}.GTASA Release|x86.ActiveCfg = GTASA Release|Win32 + {B212DDA4-2A8E-45B2-914D-7BEEB31D06B1}.GTASA Release|x86.Build.0 = GTASA Release|Win32 + {B212DDA4-2A8E-45B2-914D-7BEEB31D06B1}.GTASA zDebug|x86.ActiveCfg = GTASA zDebug|Win32 + {B212DDA4-2A8E-45B2-914D-7BEEB31D06B1}.GTASA zDebug|x86.Build.0 = GTASA zDebug|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/CheatMenu/Animation.cpp b/CheatMenu/Animation.cpp new file mode 100644 index 0000000..ffaafdf --- /dev/null +++ b/CheatMenu/Animation.cpp @@ -0,0 +1,142 @@ +#include "pch.h" +#include "Animation.h" + +bool Animation::loop = false; +bool Animation::secondary = false; +char Animation::ifp_buffer[INPUT_BUFFER_SIZE] = ""; +char Animation::anim_buffer[INPUT_BUFFER_SIZE] = ""; + +ImGuiTextFilter Animation::filter = ""; +std::vector Animation::search_categories; +std::string Animation::selected_item = "All"; + +CJson Animation::json = CJson("animation"); + +std::vector fighting_vec{ "Default","Boxing","Kung fu","Kick Boxing","Punch Kick" }; +int fighting_selected = 0; + +std::vector walking_vec{ "default", "man", "shuffle", "oldman", "gang1", "gang2", +"oldfatman", "fatman", "jogger", "drunkman", "blindman", "swat", "woman", "shopping", "busywoman", +"sexywoman", "pro", "oldwoman", "fatwoman", "jogwoman", "oldfatwoman", "skate" }; + +std::string walking_selected = "default"; + +Animation::Animation() +{ + json.LoadJsonData(search_categories, selected_item); +} + +void Animation::Main() +{ + if (ImGui::BeginTabBar("Animation", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) + { + ImGui::Spacing(); + int hplayer = CPools::GetPedRef(FindPlayerPed()); + + ImGui::Spacing(); + + if (ImGui::BeginTabItem("Anims")) + { + ImGui::Spacing(); + if (ImGui::Button("Stop animation", Ui::GetSize())) + { + if (hplayer) + Command(hplayer); + } + + ImGui::Spacing(); + + ImGui::Columns(2, 0, false); + ImGui::Checkbox("Loop", &loop); + ImGui::NextColumn(); + ImGui::Checkbox("Secondary", &secondary); + ImGui::Columns(1); + ImGui::Spacing(); + + if (ImGui::BeginChild("Anims Child")) + { + ImGui::Spacing(); + Ui::DrawJSON(json, search_categories, selected_item, filter, &PlayAnimation, &RemoveEntry); + ImGui::EndChild(); + } + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Misc")) + { + ImGui::Spacing(); + if (Ui::ListBox("Fighting", fighting_vec, fighting_selected)) + { + Command(hplayer, fighting_selected + 4, 6); + CHud::SetHelpMessage("Fighting anim set",false,false,false); + } + if (Ui::ListBoxStr("Walking", walking_vec, walking_selected)) + { + if (walking_selected == "default") + { + patch::Set(0x609A4E, 0x4D48689, false); + patch::Set(0x609A52, 0, false); + } + else + { + const char* cwalking_selected = walking_selected.c_str(); + + patch::Set(0x609A4E, -0x6F6F6F70, false); + patch::Nop(0x609A52, 2, false); + + Command(cwalking_selected); + Command(); + Command(hplayer, cwalking_selected); + Command(cwalking_selected); + } + CHud::SetHelpMessage("Walking anim set", false, false, false); + } + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Custom")) + { + ImGui::InputTextWithHint("IFP name", "ped", ifp_buffer, INPUT_BUFFER_SIZE); + ImGui::InputTextWithHint("Anim name", "cower", anim_buffer, INPUT_BUFFER_SIZE); + ImGui::Spacing(); + if (ImGui::Button("Add animation", Ui::GetSize())) + { + json.data["Custom"][anim_buffer] = ("0, " + std::string(ifp_buffer)); + } + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } +} + +void Animation::PlayAnimation(std::string& ifp, std::string& anim, std::string& ifp_repeat) +{ + int hplayer = CPools::GetPedRef(FindPlayerPed()); + + if (ifp != "PED") + { + Command(ifp.c_str()); + Command(); + } + + Command(hplayer); + if (secondary) + Command(hplayer, anim.c_str(), ifp.c_str(), 4.0, loop, 0, 0, 0, -1); + else + Command(hplayer, anim.c_str(), ifp.c_str(), 4.0, loop, 0, 0, 0, -1); + + if (ifp != "PED") + Command(ifp.c_str()); +} + +void Animation::RemoveEntry(std::string& ifp, std::string& anim, std::string& ifp_repeat) +{ + flog << ifp << std::endl; + if (ifp == "Custom") + { + json.data["Custom"].erase(anim); + CHud::SetHelpMessage("Animation removed", false, false, false); + }else CHud::SetHelpMessage("You can only remove custom anims", false, false, false); + +} + diff --git a/CheatMenu/Animation.h b/CheatMenu/Animation.h new file mode 100644 index 0000000..740e7a9 --- /dev/null +++ b/CheatMenu/Animation.h @@ -0,0 +1,25 @@ +#pragma once +class Animation +{ +private: + static bool loop; + static bool secondary; + + static CJson json; + static ImGuiTextFilter filter; + static std::vector search_categories; + static std::string selected_item; + + static char ifp_buffer[INPUT_BUFFER_SIZE]; + static char anim_buffer[INPUT_BUFFER_SIZE]; + +protected: + Animation(); + ~Animation() {}; +public: + static void Main(); + static void PlayAnimation(std::string& rootkey, std::string& anim, std::string& ifp); + + static void RemoveEntry(std::string& rootkey, std::string& anim, std::string& ifp); +}; + diff --git a/CheatMenu/CheatMenu.cpp b/CheatMenu/CheatMenu.cpp new file mode 100644 index 0000000..c39c723 --- /dev/null +++ b/CheatMenu/CheatMenu.cpp @@ -0,0 +1,212 @@ +#include "pch.h" +#include "CheatMenu.h" + +unsortedMap CheatMenu::header{ + { "Teleport", &Teleport::Main },{ "Player", &Player::Main },{ "Ped", &Ped::Main }, + { "Animation", &Animation::Main },{ "Vehicle", &Vehicle::Main },{ "Weapon", &Weapon::Main }, + { "Game", &Game::Main },{ "Visual", &Visual::Main },{ "Menu", &Menu::Main } +}; + +void CheatMenu::ProcessMenu() +{ + ImGui::SetNextWindowSize(Globals::menu_size); + if (ImGui::Begin(Globals::menu_title.c_str(), &Globals::show_menu, ImGuiWindowFlags_NoCollapse)) + { + ImGui::PushStyleVar(ImGuiStyleVar_WindowMinSize, ImVec2(250, 350)); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(ImGui::GetWindowWidth() / 85, ImGui::GetWindowHeight() / 200)); + + Ui::DrawHeaders(header); + + Globals::menu_size = ImGui::GetWindowSize(); + ImGui::PopStyleVar(2); + ImGui::End(); + } +} + +void CheatMenu::ProcessWindow() +{ + ImGuiIO& io = ImGui::GetIO(); + + if (!FrontEndMenuManager.m_bMenuActive && (Globals::show_menu || Menu::commands::show_menu)) + { + CPlayerPed* player = FindPlayerPed(); + CPad *pad = player->GetPadFromPlayer(); + pad->bPlayerSafe = 1; + + if (Globals::show_menu) + { + ProcessMenu(); + + if (Globals::show_menu) + patch::PutRetn(0x6194A0); + else + { + patch::SetUChar(0x6194A0, 0xE9); + pad->bPlayerSafe = 0; + } + + io.MouseDrawCursor = true; + } + else + { + io.MouseDrawCursor = false; + } + + if (Menu::commands::show_menu) + { + Menu::ProcessShortcutsWindow(); + + if (!Menu::commands::show_menu) + pad->bPlayerSafe = 0; + } + } + else + io.MouseDrawCursor = false; + + Menu::ProcessOverlay(); +} + +CheatMenu::CheatMenu() +{ + ApplyImGuiStyle(); + Hook::window_func = std::bind(&ProcessWindow); + + Events::initRwEvent += []() + { + flog << "Log Started." << std::endl; + + // Load menu settings + Globals::menu_size.x = config.GetValue("window.sizeX", screen::GetScreenWidth() / 4.0f); + Globals::menu_size.y = config.GetValue("window.sizeY", screen::GetScreenHeight() / 1.2f); + }; + + Events::processScriptsEvent += [this] + { + Hook::disable_controls = ImGui::GetIO().WantCaptureKeyboard || Menu::commands::show_menu; + + if (Globals::init_done && !FrontEndMenuManager.m_bMenuActive && CTimer::m_snTimeInMilliseconds - Globals::last_key_timer > 250) + { + CPlayerPed* player = FindPlayerPed(); + CPad *pad = player->GetPadFromPlayer(); + + if (Ui::HotKeyPressed(hotkey::menu_open)) + { + Globals::show_menu = !Globals::show_menu; + + if (Globals::show_menu) + Util::ClearCharTasksVehCheck(player); + + pad->bPlayerSafe = Globals::show_menu; + Globals::last_key_timer = CTimer::m_snTimeInMilliseconds; + } + + if (Ui::HotKeyPressed(hotkey::command_window)) + { + Menu::commands::show_menu = !Menu::commands::show_menu; + + if (Menu::commands::show_menu) + Util::ClearCharTasksVehCheck(player); + else + { + Menu::ProcessCommands(); + strcpy(Menu::commands::input_buffer, ""); + } + + pad->bPlayerSafe = Menu::commands::show_menu; + + Globals::last_key_timer = CTimer::m_snTimeInMilliseconds; + } + } + }; + + Events::shutdownRwEvent += [] + { + // Save config data + config.SetValue("window.sizeX", Globals::menu_size.x); + config.SetValue("window.sizeY", Globals::menu_size.y); + + flog << "Log Finished." << std::endl; + }; +} + +CheatMenu::~CheatMenu() +{ +} + +void CheatMenu::ApplyImGuiStyle() +{ + ImGuiStyle* style = &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + style->WindowRounding = 1; + style->ScrollbarRounding = 1; + style->GrabRounding = 1; + style->WindowRounding = 1; + style->ChildRounding = 1; + style->ScrollbarSize = 12; + style->ScrollbarRounding = 1; + style->GrabRounding = 1; + style->FrameRounding = 0; + style->TabRounding = 1.0; + style->IndentSpacing = 20; + style->AntiAliasedLines = true; + style->AntiAliasedFill = true; + style->ItemSpacing = ImVec2(8, 4); + style->FramePadding = ImVec2(5, 3); + style->Alpha = 1; + + style->FrameBorderSize = 0; + style->ChildBorderSize = 0; + style->TabBorderSize = 0; + style->WindowBorderSize = 0; + style->PopupBorderSize = 0; + + colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.06f, 0.06f, 0.94f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f); + colors[ImGuiCol_Border] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.29f, 0.48f, 0.54f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.04f, 0.04f, 0.04f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.16f, 0.29f, 0.48f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.00f, 0.00f, 0.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.51f, 0.51f, 0.51f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.24f, 0.52f, 0.88f, 1.00f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.0f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.10f, 0.40f, 0.75f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.10f, 0.40f, 0.75f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.25f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImVec4(0.18f, 0.35f, 0.58f, 0.86f); + colors[ImGuiCol_TabHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_TabActive] = ImVec4(0.20f, 0.41f, 0.68f, 1.00f); + colors[ImGuiCol_TabUnfocused] = ImVec4(0.07f, 0.10f, 0.15f, 0.97f); + colors[ImGuiCol_TabUnfocusedActive] = ImVec4(0.14f, 0.26f, 0.42f, 1.00f); + colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); +} \ No newline at end of file diff --git a/CheatMenu/CheatMenu.h b/CheatMenu/CheatMenu.h new file mode 100644 index 0000000..5af1f8b --- /dev/null +++ b/CheatMenu/CheatMenu.h @@ -0,0 +1,61 @@ +/* + Required: + Visual Studio 2015.3 (v140) + Plugin SDK +*/ + +#pragma once +#include "Animation.h" +#include "Game.h" +#include "Hook.h" +#include "Menu.h" +#include "Ped.h" +#include "Player.h" +#include "Teleport.h" +#include "Vehicle.h" +#include "Visual.h" +#include "Weapon.h" + +class CheatMenu : Hook, Animation, Game, Menu, Ped, Player, Teleport, Vehicle, Visual, Weapon +{ +private: + static unsortedMap header; + static void ProcessMenu(); + static void ProcessWindow(); + static void ApplyImGuiStyle(); + +public: + CheatMenu(); + ~CheatMenu(); +}; + +class Launcher +{ +public: + Launcher() + { + bool launch = true; + + uint gameVersion = GetGameVersion(); + if (gameVersion != GAME_10US_HOODLUM && gameVersion != GAME_10US_COMPACT) { + MessageBox(HWND_DESKTOP, "CheatMenu requires v1.0 US of the game.", "CheatMenu", MB_ICONERROR); + flog << "Game version isn't 1.0" << std::endl; + launch = false; + } + else + { + Events::initRwEvent += [&launch]() + { + if (GetModuleHandleA("SAMP.dll")) { + MessageBox(HWND_DESKTOP, "SAMP detected. Exiting CheatMenu.", "CheatMenu", MB_ICONERROR); + flog << "SAMP detected. Exiting..." << std::endl; + launch = false; + } + + if (launch) + static CheatMenu cheatmenu; + }; + } + } +} launcher; + diff --git a/CheatMenu/CheatMenu.vcxproj.filters b/CheatMenu/CheatMenu.vcxproj.filters new file mode 100644 index 0000000..26b7ce5 --- /dev/null +++ b/CheatMenu/CheatMenu.vcxproj.filters @@ -0,0 +1,72 @@ + + + + + include\imgui + + + include\imgui + + + include\imgui + + + include\imgui + + + include\imgui + + + include\imgui + + + + + + include\imgui + + + include\imgui + + + include\imgui + + + include\imgui + + + include\imgui + + + include\imgui + + + include\imgui + + + include\imgui + + + include + + + + + + {76d7c5f4-7966-4299-babe-1441756fd761} + + + {b4b37f77-034a-404c-9ec1-8fcec9d1052e} + + + + + include + + + + + include + + + \ No newline at end of file diff --git a/CheatMenu/CheatMenu.vcxproj.vcxproj b/CheatMenu/CheatMenu.vcxproj.vcxproj new file mode 100644 index 0000000..fb82e2c --- /dev/null +++ b/CheatMenu/CheatMenu.vcxproj.vcxproj @@ -0,0 +1,224 @@ + + + + + GTASA Release + Win32 + + + GTASA zDebug + Win32 + + + + {B212DDA4-2A8E-45B2-914D-7BEEB31D06B1} + true + Win32Proj + CheatMenu + CheatMenu + 8.1 + + + + DynamicLibrary + false + MultiByte + v140 + true + + + DynamicLibrary + true + MultiByte + v140 + + + + + + + + + + + + + F:\GTASanAndreas\ + $(ProjectDir).obj\GTASA\Release\ + .asi + $(IncludePath);$(DIRECTX9_SDK_DIR)\Include\ + $(LibraryPath);$(DIRECTX9_SDK_DIR)\Lib\x86\ + $(ProjectName) + + + F:\GTASanAndreas\ + $(ProjectDir).obj\GTASA\Debug\ + $(ProjectName) + .asi + $(IncludePath);$(DIRECTX9_SDK_DIR)\Include\ + $(LibraryPath);$(DIRECTX9_SDK_DIR)\Lib\x86\ + + + + Level3 + MaxSpeed + true + true + false + MultiThreaded + $(PLUGIN_SDK_DIR)\plugin_sa\;$(PLUGIN_SDK_DIR)\plugin_sa\game_sa\;$(PLUGIN_SDK_DIR)\shared\;$(PLUGIN_SDK_DIR)\shared\game\;%(AdditionalIncludeDirectories) + _NDEBUG;_CRT_SECURE_NO_WARNINGS;_CRT_NON_CONFORMING_SWPRINTFS;GTASA;GTAGAME_NAME="San Andreas";GTAGAME_ABBR="SA";GTAGAME_ABBRLOW="sa";GTAGAME_PROTAGONISTNAME="CJ";GTAGAME_CITYNAME="San Andreas";_LA_SUPPORT;_DX9_SDK_INSTALLED;PLUGIN_SGV_10US;%(PreprocessorDefinitions) + stdcpplatest + pch.h + Use + + + true + true + No + UseLinkTimeCodeGeneration + $(PLUGIN_SDK_DIR)\output\lib\;%(AdditionalLibraryDirectories) + plugin.lib;d3d9.lib;d3dx9.lib;d3d11.lib;d3dx11.lib;$(ProjectDir)external\kiero\minhook\lib\libMinHook-x86-v140-mt.lib;$(ProjectDir)external\kiero\minhook\lib\libMinHook-x86-v140-md.lib;%(AdditionalDependencies) + Windows + false + + + taskkill /f /fi "imagename eq gta_sa.exe" + + + + + Level3 + Disabled + false + MultiThreadedDebug + $(PLUGIN_SDK_DIR)\plugin_sa\;$(PLUGIN_SDK_DIR)\plugin_sa\game_sa\;$(PLUGIN_SDK_DIR)\shared\;$(PLUGIN_SDK_DIR)\shared\game\;%(AdditionalIncludeDirectories) + _DEBUG;_CRT_SECURE_NO_WARNINGS;_CRT_NON_CONFORMING_SWPRINTFS;GTASA;GTAGAME_NAME="San Andreas";GTAGAME_ABBR="SA";GTAGAME_ABBRLOW="sa";GTAGAME_PROTAGONISTNAME="CJ";GTAGAME_CITYNAME="San Andreas";_LA_SUPPORT;_DX9_SDK_INSTALLED;PLUGIN_SGV_10US;%(PreprocessorDefinitions) + stdcpplatest + pch.h + Use + + + Debug + Default + $(PLUGIN_SDK_DIR)\output\lib\;%(AdditionalLibraryDirectories) + plugin_d.lib;d3d9.lib;d3dx9.lib;d3d11.lib;d3dx11.lib;$(ProjectDir)external\kiero\minhook\lib\libMinHook-x86-v140-mtd.lib;$(ProjectDir)external\kiero\minhook\lib\libMinHook-x86-v140-mdd.lib;%(AdditionalDependencies) + Windows + + + taskkill /f /fi "imagename eq gta_sa.exe" + + + + + + NotUsing + NotUsing + + + NotUsing + NotUsing + + + + + NotUsing + NotUsing + + + NotUsing + NotUsing + + + + + + + + + + + + NotUsing + NotUsing + + + NotUsing + NotUsing + + + NotUsing + NotUsing + + + NotUsing + NotUsing + + + NotUsing + NotUsing + + + NotUsing + NotUsing + + + Use + pch.h + + + Create + Create + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/CheatMenu/CheatMenu.vcxproj.vcxproj.filters b/CheatMenu/CheatMenu.vcxproj.vcxproj.filters new file mode 100644 index 0000000..dcf1479 --- /dev/null +++ b/CheatMenu/CheatMenu.vcxproj.vcxproj.filters @@ -0,0 +1,109 @@ + + + + + + external + + + external + + + external + + + external + + + external + + + external + + + + + + + + + + + + + + + + + + + + + + + + + + + + external + + + external + + + external + + + external + + + external + + + external + + + external + + + external + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {f1569096-fe99-4d5d-871f-c0e55624f9d4} + + + + + + + + + \ No newline at end of file diff --git a/CheatMenu/Events.cpp b/CheatMenu/Events.cpp new file mode 100644 index 0000000..e0d6f21 --- /dev/null +++ b/CheatMenu/Events.cpp @@ -0,0 +1,12 @@ +#include "pch.h" +#include "Events.h" + + +namespace plugin +{ + namespace Events + { + decltype(vehicleResetAfterRender) vehicleResetAfterRender; + decltype(renderscence) renderscence; + } +} diff --git a/CheatMenu/Events.h b/CheatMenu/Events.h new file mode 100644 index 0000000..38f9784 --- /dev/null +++ b/CheatMenu/Events.h @@ -0,0 +1,10 @@ +#pragma once + +namespace plugin +{ + namespace Events + { + extern ThiscallEvent, PRIORITY_BEFORE, ArgPickN, void(CVehicle*)> vehicleResetAfterRender; + extern ThiscallEvent, PRIORITY_BEFORE, ArgPickNone, void()> renderscence; + } +} diff --git a/CheatMenu/Game.cpp b/CheatMenu/Game.cpp new file mode 100644 index 0000000..5e27edf --- /dev/null +++ b/CheatMenu/Game.cpp @@ -0,0 +1,478 @@ +#include "pch.h" +#include "Game.h" +#include "Menu.h" + +ImGuiTextFilter Game::filter = ""; +std::vector Game::search_categories; +std::string Game::selected_item = "All"; +std::vector Game::day_names{ "Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday" }; +char Game::save_game_name[22] = ""; + +CJson Game::json = CJson("mission"); + +CJson Game::stat::json = CJson("stat"); +std::vector Game::stat::search_categories; +std::string Game::stat::selected_item = "All"; +ImGuiTextFilter Game::stat::filter = ""; + +bool Game::random_cheats::enable = false; +int Game::random_cheats::enable_wait_time = 10; +uint Game::random_cheats::timer = 0; +std::string Game::random_cheats::enabled_cheats[92][2]; + +bool Game::airbreak::init_done = false; +bool Game::airbreak::enable = false; +float Game::airbreak::speed = 0.4f; +float Game::airbreak::tmouseX = 0; +float Game::airbreak::tmouseY = 0; + +bool Game::disable_cheats = false; +bool Game::disable_replay = false; +bool Game::forbidden_area_wl = true; +bool Game::freeze_mission_timer = false; +bool Game::freeze_time = false; +bool Game::keep_stuff = false; +bool Game::solid_water = false; +bool Game::ss_shortcut = false; +bool Game::sync_time = false; + +uint Game::ss_shotcut_timer = 0; +uint Game::sync_time_timer = 0; + +uint Game::solid_water_object = 0; + +CJson Game::random_cheats::name_json = CJson("cheat name"); + +Game::Game() +{ + Events::initGameEvent += [] + { + json.LoadJsonData(search_categories, selected_item); + stat::json.LoadJsonData(stat::search_categories, stat::selected_item); + + // Generate enabled cheats vector + for (auto element : random_cheats::name_json.data.items()) + { + /* + [ + cheat_id = [ cheat_name, state (true/false) ] + ] + */ + random_cheats::enabled_cheats[std::stoi(element.key())][0] = element.value().get(); + random_cheats::enabled_cheats[std::stoi(element.key())][1] = "true"; + } + }; + + Events::processScriptsEvent += [] + { + uint timer = CTimer::m_snTimeInMilliseconds; + static CPlayerPed *player = FindPlayerPed(); + static int hplayer = CPools::GetPedRef(player); + + if (ss_shortcut) + { + if (Ui::HotKeyPressed(Menu::hotkey::quick_ss) && timer - ss_shotcut_timer > 1000) + { + Command(); + CHud::SetHelpMessage("Screenshot taken", false, false, false); + ss_shotcut_timer = timer; + } + } + + if (solid_water) + { + CVector pos = player->GetPosition(); + + float water_height = 0; + Command(pos.x, pos.y, false, &water_height); + + if (!Command(hplayer) && water_height != -1000.0f && pos.z > (water_height+1)) + { + if (solid_water_object == 0) + { + Command(3095, pos.x, pos.y, water_height, &solid_water_object); + Command(solid_water_object, false); + } + else + Command(solid_water_object, pos.x, pos.y, water_height); + } + else + { + if (solid_water_object != 0) + { + Command(solid_water_object); + solid_water_object = 0; + } + } + } + + // improve this later + if (sync_time && timer - sync_time_timer > 50) + { + std::time_t t = std::time(0); + std::tm* now = std::localtime(&t); + + CClock::ms_nGameClockHours = now->tm_hour; + CClock::ms_nGameClockMinutes = now->tm_min; + + sync_time_timer = timer; + } + + if (random_cheats::enable + && (timer - random_cheats::timer) > (uint(random_cheats::enable_wait_time)*1000)) + { + int id = cheat_id(gen); + + for (int i = 0; i < 92; i++) + { + if (i == id) + { + if (random_cheats::enabled_cheats[i][1] == "true") + { + ((void(*)(int))0x00438370)(id); // cheatEnableLegimate(int CheatID) + CHud::SetHelpMessage(random_cheats::enabled_cheats[i][0].c_str(), false, false, false); + random_cheats::timer = timer; + } + break; + } + } + } + + if (airbreak::enable) + { + AirbreakMode(player,hplayer); + } + }; +} + +Game::~Game() +{ +} + +void SetPlayerMission(std::string& rootkey, std::string& name, std::string& id) +{ + CPlayerPed *player = FindPlayerPed(); + uint hplayer = CPools::GetPedRef(player); + int interior = 0; + + Command<0x09E8>(hplayer,&interior); + if ( Util::IsOnMission() && interior == 0) + { + player->SetWantedLevel(0); + Command(std::stoi(id)); + } + else CHud::SetHelpMessage("Can't start mission now", false, false, false); + +} + +void Game::AirbreakMode(CPlayerPed* player, int hplayer) +{ + CVector pos = player->GetPosition(); + + if (!airbreak::init_done) + { + Command(0, true); + Command(hplayer,true); + Command(hplayer, false); + Command(hplayer, false); + player->m_nPedFlags.bDontRender = true; + + CHud::bScriptDontDisplayRadar = true; + CHud::m_Wants_To_Draw_Hud = false; + + airbreak::tmouseX = TheCamera.GetHeading() + (90.0f * 3.1416f / 180.0f); + airbreak::tmouseY = 0; + airbreak::init_done = true; + } + + float mul = 1.0f; + + airbreak::tmouseX -= (CPad::NewMouseControllerState.X / 6.0f); + airbreak::tmouseY += (CPad::NewMouseControllerState.Y / 3.0f); + + airbreak::tmouseY = (airbreak::tmouseY > 17.1887f) ? 17.1887f : airbreak::tmouseY; + airbreak::tmouseY = (airbreak::tmouseY < -17.1887f) ? -17.1887f : airbreak::tmouseY; + + TheCamera.m_fOrientation = airbreak::tmouseY * (3.1416 / 180); + + if (KeyPressed(VK_RCONTROL)) + mul /= 2; + + if (KeyPressed(VK_RSHIFT)) + mul *= 2; + + if (KeyPressed(VK_KEY_I) || KeyPressed(VK_KEY_K)) + { + if (KeyPressed(VK_KEY_K)) + mul *= -1; + + float angle = TheCamera.GetHeading() + (90.0f * 3.1416f / 180.0f); + + pos.x += airbreak::speed * cos(angle) * mul; + pos.y += airbreak::speed * sin(angle) * mul; + pos.z += airbreak::speed * sin(TheCamera.m_fOrientation*2) * mul; + } + + if (KeyPressed(VK_KEY_J) || KeyPressed(VK_KEY_L)) + { + if (KeyPressed(VK_KEY_J)) + mul *= -1; + + float angle = TheCamera.GetHeading() + (90.0f * 3.1416f / 180.0f); + + pos.x += airbreak::speed * cos(angle) * mul; + pos.y += airbreak::speed * sin(angle) * mul; + } + + player->SetPosn(pos); +} + +void Game::Main() +{ + ImGui::Spacing(); + static CPlayerPed *player = FindPlayerPed(); + static int hplayer = CPools::GetPedRef(player); + + if (ImGui::BeginTabBar("Game", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) + { + if (ImGui::BeginTabItem("Checkboxes")) + { + ImGui::Spacing(); + ImGui::Columns(2, 0, false); + if (ImGui::Checkbox("Disable cheats", &disable_cheats)) + { + if (disable_cheats) + { + patch::Set(0x4384D0, 0xE9, false); + patch::SetInt(0x4384D1, 0xD0, false); + patch::Nop(0x4384D5, 4, false); + } + else + { + patch::Set(0x4384D0, 0x83, false); + patch::SetInt(0x4384D1, -0x7DF0F908, false); + patch::SetInt(0x4384D5, 0xCC, false); + } + } + if (ImGui::Checkbox("Disable F1 & F3 replay", &disable_replay)) + { + if (disable_replay) + patch::SetInt(0x460500, 0xC3, false); + else + patch::SetInt(0x460500, 0xBD844BB, false); + } + + Ui::CheckboxAddress("Faster clock", 0x96913B); + + if (Ui::CheckboxWithHint("Forbidden area wl", &forbidden_area_wl, "Wanted levels that appears outside\ +of LS without completing missions")) + { + if (forbidden_area_wl) + patch::Set(0x441770, 0x83, false); + else + patch::Set(0x441770, 0xC3, false); + } + + Ui::CheckboxAddress("Free pay n spray", 0x96C009); + + ImGui::NextColumn(); + + if (ImGui::Checkbox("Freeze misson timer", &freeze_mission_timer)) + Command(freeze_mission_timer); + + if (Ui::CheckboxWithHint("Keep stuff", &keep_stuff, "Keep stuff after arrest/death")) + { + Command(keep_stuff); + Command(keep_stuff); + } + Ui::CheckboxWithHint("Screenshot shortcut", &ss_shortcut, (("Take screenshot using ") + Ui::GetHotKeyNameString(Menu::hotkey::quick_ss)).c_str()); + if (Ui::CheckboxWithHint("Solid water", &solid_water, "Player can walk on water")) + { + if (!solid_water && solid_water_object != 0) + { + Command(solid_water_object); + solid_water_object = 0; + } + } + ImGui::Checkbox("Sync system time", &sync_time); + + ImGui::Columns(1); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Menus")) + { + if (ImGui::CollapsingHeader("Airbreak mode")) + { + if (Ui::CheckboxWithHint("Enable", &airbreak::enable, "Forward: I\tBackward: K\ +\nLeft: J\t\t Right: L\n\nSlower: RCtrl\tFaster: RShift")) + { + if (!airbreak::enable) + { + airbreak::init_done = false; + Command(0, false); + Command(hplayer, false); + Command(hplayer, true); + Command(hplayer, true); + player->m_nPedFlags.bDontRender = false; + + CHud::bScriptDontDisplayRadar = false; + CHud::m_Wants_To_Draw_Hud = true; + + CVector pos = player->GetPosition(); + CEntity* player_entity = FindPlayerEntity(-1); + pos.z = CWorld::FindGroundZFor3DCoord(pos.x, pos.y, 1000, 0, &player_entity) + 0.5f; + player->SetPosn(pos); + Command(); + } + } + ImGui::Spacing(); + + ImGui::SliderFloat("Movement Speed", &airbreak::speed, 0.0, 5.0); + + ImGui::Spacing(); + ImGui::Separator(); + } + if (ImGui::CollapsingHeader("Current day")) + { + int day = CClock::CurrentDay-1; + if (Ui::ListBox("Select day", day_names, day)) + CClock::CurrentDay = day+1; + ImGui::Spacing(); + ImGui::Separator(); + } + Ui::EditAddress("Days passed", 0xB79038, 0, 9999); + Ui::EditReference("FPS limit", RsGlobal.frameLimit, 1, 30, 60); + Ui::EditReference("Game speed", CTimer::ms_fTimeScale,0, 1, 10); + Ui::EditFloat("Gravity", 0x863984, -1.0f, 0.008f, 1.0f); + + if (ImGui::CollapsingHeader("Set time")) + { + int hour = CClock::ms_nGameClockHours; + int minute = CClock::ms_nGameClockMinutes; + + if (ImGui::InputInt("Hour", &hour)) + { + if (hour < 0) hour = 23; + if (hour > 23) hour = 0; + CClock::ms_nGameClockHours = hour; + } + + if (ImGui::InputInt("Minute", &minute)) + { + if (minute < 0) minute = 59; + if (minute > 59) minute = 0; + CClock::ms_nGameClockMinutes = minute; + } + + ImGui::Spacing(); + ImGui::Separator(); + } + + static std::vector themes { { "Beach", 0x969159 }, { "Country" ,0x96917D }, { "Fun house" ,0x969176 }, { "Ninja" ,0x96915C }}; + Ui::EditRadioButtonAddress("Themes", themes); + + if (ImGui::CollapsingHeader("Weather")) + { + typedef void func(void); + if (ImGui::Button("Foggy",Ui::GetSize(3))) + ((func*)0x438F80)(); + + ImGui::SameLine(); + if (ImGui::Button("Overcast", Ui::GetSize(3))) + ((func*)0x438F60)(); + + ImGui::SameLine(); + if (ImGui::Button("Rainy", Ui::GetSize(3))) + ((func*)0x438F70)(); + + if (ImGui::Button("Sandstorm", Ui::GetSize(3))) + ((func*)0x439590)(); + + ImGui::SameLine(); + if (ImGui::Button("Thunderstorm", Ui::GetSize(3))) + ((func*)0x439570)(); + + ImGui::SameLine(); + if (ImGui::Button("Very sunny", Ui::GetSize(3))) + ((func*)0x438F50)(); + + ImGui::Spacing(); + ImGui::Separator(); + } + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Missions")) + { + ImGui::Spacing(); + + if (ImGui::Button("Fail current mission", ImVec2(Ui::GetSize()))) + { + if (!CCutsceneMgr::ms_running) + Command(); + } + + ImGui::Spacing(); + + Ui::DrawJSON(json, search_categories, selected_item, filter, SetPlayerMission, nullptr); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Stats")) + { + // similat to Ui::DrawJSON() + ImGui::Spacing(); + + ImGui::PushItemWidth(ImGui::GetContentRegionAvailWidth() / 2 - 5); + Ui::ListBoxStr("##Categories", stat::search_categories, stat::selected_item); + ImGui::SameLine(); + Ui::FilterWithHint("##Filter", stat::filter, "Search"); + ImGui::PopItemWidth(); + + ImGui::Spacing(); + + ImGui::BeginChild("STATCHILD"); + for (auto root : stat::json.data.items()) + { + if (root.key() == stat::selected_item || stat::selected_item == "All") + { + for (auto _data : root.value().items()) + { + std::string name = _data.value().get(); + if (stat::filter.PassFilter(name.c_str())) + Ui::EditStat(name.c_str(), std::stoi(_data.key())); + } + } + } + ImGui::EndChild(); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Random cheats")) + { + ImGui::Spacing(); + ImGui::Checkbox("Enable", &random_cheats::enable); + ImGui::Spacing(); + + ImGui::PushItemWidth(ImGui::GetWindowContentRegionWidth() / 2); + + ImGui::SliderInt("Activate cheat timer", &random_cheats::enable_wait_time, 5, 60); + Ui::ShowTooltip("Wait time after a cheat is activated."); + + ImGui::PopItemWidth(); + + ImGui::TextWrapped("Select cheats"); + ImGui::Separator(); + if (ImGui::BeginChild("Cheats list")) + { + for (auto element : random_cheats::enabled_cheats) + { + bool selected = (element[1] == "true") ? true : false; + + if (ImGui::MenuItem(element[0].c_str(), 0, selected)) + element[1] = selected ? "false" : "true"; + } + ImGui::EndChild(); + } + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } +} diff --git a/CheatMenu/Game.h b/CheatMenu/Game.h new file mode 100644 index 0000000..e52ae67 --- /dev/null +++ b/CheatMenu/Game.h @@ -0,0 +1,58 @@ +#pragma once +class Game +{ +private: + static CJson json; + static ImGuiTextFilter filter; + static std::vector search_categories; + static std::string selected_item; + static std::vector day_names; + + static char save_game_name[22]; + + struct random_cheats + { + static bool enable; + static int enable_wait_time; + static CJson name_json; + static uint timer; + static std::string enabled_cheats[92][2]; + }; + + struct airbreak + { + static bool enable; + static float speed; + static bool init_done; + static float tmouseX, tmouseY; + }; + + static bool disable_cheats; + static bool disable_replay; + static bool forbidden_area_wl; + static bool freeze_mission_timer; + static bool freeze_time; + static bool keep_stuff; + static bool solid_water; + static bool ss_shortcut; + static bool sync_time; + + static uint ss_shotcut_timer; + static uint sync_time_timer; + static uint solid_water_object; + + struct stat + { + static CJson json; + static ImGuiTextFilter filter; + static std::vector search_categories; + static std::string selected_item; + }; + +public: + Game(); + ~Game(); + static void Main(); + static void AirbreakMode(CPlayerPed* player, int hplayer); +}; + diff --git a/CheatMenu/Hook.cpp b/CheatMenu/Hook.cpp new file mode 100644 index 0000000..774125a --- /dev/null +++ b/CheatMenu/Hook.cpp @@ -0,0 +1,189 @@ +#include "pch.h" +#include "Hook.h" +#include "external\kiero\kiero.h" +#include "external\kiero\minhook\include\MinHook.h" + +WNDPROC Hook::oWndProc = NULL; +f_Reset Hook::oReset9 = NULL; +f_Present11 Hook::oPresent11 = NULL; +f_Present9 Hook::oPresent9 = NULL; + +bool Hook::disable_controls = false; +std::function Hook::window_func = NULL; + +LRESULT Hook::InputProc(const HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) +{ + ImGui_ImplWin32_WndProcHandler(hWnd, uMsg, wParam, lParam); + + if (disable_controls) + return 1; + else + return CallWindowProc(oWndProc, hWnd, uMsg, wParam, lParam); +} + +HRESULT Hook::ResetDx9(IDirect3DDevice9 * pDevice, D3DPRESENT_PARAMETERS * pPresentationParameters) +{ + ImGui_ImplDX9_InvalidateDeviceObjects(); + long result = oReset9(pDevice, pPresentationParameters); + ImGui_ImplDX9_CreateDeviceObjects(); + + return result; +} + +HRESULT Hook::PresentDx9(IDirect3DDevice9 *pDevice, RECT* pSourceRect, RECT* pDestRect, HWND hDestWindowOverride, RGNDATA* pDirtyRegion) +{ + ImGuiIO& io = ImGui::GetIO(); + + if (Globals::init_done) + { + // Change font size if the game resolution changes + if (Globals::font_screen_size.x != screen::GetScreenWidth() + && Globals::font_screen_size.y != screen::GetScreenHeight()) + { + int font_size = int(screen::GetScreenHeight() / 54.85); // manually tested + + io.FontDefault = io.Fonts->AddFontFromFileTTF("C:/Windows/Fonts/trebucbd.ttf", font_size); + io.Fonts->Build(); + ImGui_ImplDX9_InvalidateDeviceObjects(); + + Globals::font_screen_size = ImVec2(screen::GetScreenWidth(), screen::GetScreenHeight()); + } + + ImGui_ImplDX9_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + if (window_func != NULL) + window_func(); + + ImGui::EndFrame(); + ImGui::Render(); + ImGui_ImplDX9_RenderDrawData(ImGui::GetDrawData()); + } + else + { + Globals::init_done = true; + + ImGui::CreateContext(); + + ImGuiStyle& style = ImGui::GetStyle(); + + ImGui_ImplWin32_Init(RsGlobal.ps->window); + ImGui_ImplDX9_Init(pDevice); + ImGui_ImplWin32_EnableDpiAwareness(); + + io.IniFilename = NULL; + io.LogFilename = NULL; + + style.WindowTitleAlign = ImVec2(0.5, 0.5); + oWndProc = (WNDPROC)SetWindowLongPtr(RsGlobal.ps->window, GWL_WNDPROC, (LRESULT)InputProc); + } + + return oPresent9(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);; +} + +HRESULT Hook::PresentDx11(IDXGISwapChain* pSwapChain, UINT SyncInterval, UINT Flags) +{ + ImGuiIO& io = ImGui::GetIO(); + + if (Globals::init_done) + { + static RwBool fullscreen = RsGlobal.ps->fullScreen; + + if (fullscreen != RsGlobal.ps->fullScreen) + { + fullscreen = RsGlobal.ps->fullScreen; + ImGui_ImplDX11_InvalidateDeviceObjects(); + } + + // Change font size if the game resolution changes + if (Globals::font_screen_size.x != screen::GetScreenWidth() + && Globals::font_screen_size.y != screen::GetScreenHeight()) + { + int font_size = int(screen::GetScreenHeight() / 54.85); // manually tested + + io.FontDefault = io.Fonts->AddFontFromFileTTF("C:/Windows/Fonts/trebucbd.ttf", font_size); + io.Fonts->Build(); + ImGui_ImplDX11_InvalidateDeviceObjects(); + + Globals::font_screen_size = ImVec2(screen::GetScreenWidth(), screen::GetScreenHeight()); + } + + ImGui_ImplDX11_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + if (window_func != NULL) + window_func(); + + ImGui::EndFrame(); + ImGui::Render(); + ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); + } + else + { + Globals::init_done = true; + + ImGuiStyle& style = ImGui::GetStyle(); + + DXGI_SWAP_CHAIN_DESC desc; + pSwapChain->GetDesc(&desc); + + pSwapChain->GetDevice(__uuidof(ID3D11Device), (void**)&Globals::device11); + ID3D11DeviceContext* context; + Globals::device11->GetImmediateContext(&context); + + ImGui::CreateContext(); + ImGui_ImplWin32_Init(desc.OutputWindow); + ImGui_ImplDX11_Init(Globals::device11, context); + ImGui_ImplWin32_EnableDpiAwareness(); + + io.IniFilename = NULL; + io.LogFilename = NULL; + + style.WindowTitleAlign = ImVec2(0.5, 0.5); + + oWndProc = (WNDPROC)SetWindowLongPtr(RsGlobal.ps->window, GWL_WNDPROC, (LONG)InputProc); + } + + return oPresent11(pSwapChain, SyncInterval, Flags); +} + +Hook::Hook() +{ + ImGui::CreateContext(); + Events::initRwEvent += []() + { + if (kiero::init(kiero::RenderType::D3D9) == kiero::Status::Success) + { + assert(kiero::bind(16, (void**)&oReset9, ResetDx9) == kiero::Status::Success); + assert(kiero::bind(17, (void**)&oPresent9, PresentDx9) == kiero::Status::Success); + Globals::renderer = Render_DirectX9; + + flog << "Successfully hooked dx9 device." << std::endl; + } + else + { + // gtaRenderHook + if (kiero::init(kiero::RenderType::D3D11) == kiero::Status::Success) + { + kiero::bind(8, (void**)&oPresent11, PresentDx11); + Globals::renderer = Render_DirectX11; + + flog << "Successfully hooked dx11 device." << std::endl; + } + else + { + flog << "Failed to hook device" << std::endl; + } + } + }; +} + +Hook::~Hook() +{ + ImGui_ImplDX9_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + kiero::shutdown(); +} \ No newline at end of file diff --git a/CheatMenu/Hook.h b/CheatMenu/Hook.h new file mode 100644 index 0000000..3d32f02 --- /dev/null +++ b/CheatMenu/Hook.h @@ -0,0 +1,31 @@ +#pragma once + +typedef HRESULT(CALLBACK *f_Reset)(IDirect3DDevice9*, D3DPRESENT_PARAMETERS*); +typedef HRESULT(CALLBACK *f_Present9)(IDirect3DDevice9*, RECT*, RECT*, HWND, RGNDATA*); +typedef HRESULT(CALLBACK *f_Present11)(IDXGISwapChain*, UINT, UINT); + +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + +class Hook +{ +private: + static WNDPROC oWndProc; + static f_Reset oReset9; + static f_Present11 oPresent11; + static f_Present9 oPresent9; + + static HRESULT CALLBACK ResetDx9(IDirect3DDevice9 * pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters); + static HRESULT CALLBACK PresentDx9(IDirect3DDevice9 *pDevice, RECT* pSourceRect, RECT* pDestRect, HWND hDestWindowOverride, RGNDATA* pDirtyRegion); + static HRESULT CALLBACK PresentDx11(IDXGISwapChain* pSwapChain, UINT SyncInterval, UINT Flags); + static LRESULT CALLBACK InputProc(const HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); + +protected: + static bool disable_controls; + static std::function window_func; + +public: + Hook(); + ~Hook(); +}; + + diff --git a/CheatMenu/Json.cpp b/CheatMenu/Json.cpp new file mode 100644 index 0000000..3e0db33 --- /dev/null +++ b/CheatMenu/Json.cpp @@ -0,0 +1,36 @@ +#include "pch.h" +#include "Json.h" + +CJson::CJson(const char* name,bool create_new) +{ + file_path = "./CheatMenu/json/"+ std::string(name) +".json"; + + if (std::experimental::filesystem::exists(file_path)) + { + std::ifstream file(file_path); + file >> data; + file.close(); + } + else + { + if (create_new) + { + std::fstream new_file(file_path,std::fstream::out); + data = "{}"_json; + new_file.close(); + } + else flog << "File doesn't exist " << file_path << std::endl; + } +} + +void CJson::LoadJsonData(std::vector& vec, std::string& selected) +{ + for (auto element : data.items()) + vec.push_back(element.key()); +} + +CJson::~CJson() +{ + std::ofstream file(file_path); + file << data.dump(4) << std::endl; +} diff --git a/CheatMenu/Json.h b/CheatMenu/Json.h new file mode 100644 index 0000000..3d5f395 --- /dev/null +++ b/CheatMenu/Json.h @@ -0,0 +1,57 @@ +#pragma once +#include "external\json.hpp" + +class CJson +{ + +private: + std::string file_path; +public: + nlohmann::json data; + template + T GetValue(std::string&& key, T&& default_val) + { + try { + std::stringstream ss(key); + std::string line; + + nlohmann::json *json = &data; + + while (getline(ss, line, '.')) + json = &((*json)[line]); + + // json library bugs with bool, using int instead + if (typeid(T) == typeid(bool)) + { + return ((json->get() == 1) ? true : false); + } + else + return json->get(); + } + catch (...) { + return default_val; + } + } + template + void SetValue(std::string&& key, T&& val) + { + std::stringstream ss(key); + std::string line; + + nlohmann::json *json = &data; + + while (getline(ss, line, '.')) + json = &((*json)[line]); + + // json library bugs with bool, using int instead + if (typeid(T) == typeid(bool)) + *json = (val ? 1 : 0); + else + *json = val; + } + void LoadJsonData(std::vector& vec, std::string& selected); + CJson(const char* text, bool create_new = false); + virtual ~CJson(); +}; + + diff --git a/CheatMenu/Menu.cpp b/CheatMenu/Menu.cpp new file mode 100644 index 0000000..8023983 --- /dev/null +++ b/CheatMenu/Menu.cpp @@ -0,0 +1,404 @@ +#include "pch.h" +#include "Menu.h" +#include "Teleport.h" +#include "Weapon.h" + +bool Menu::overlay::coord = false; +bool Menu::overlay::fps = false; +bool Menu::overlay::loc_name = false; +bool Menu::overlay::transparent = false; +bool Menu::overlay::veh_health = false; +bool Menu::overlay::veh_speed = false; +std::vector Menu::overlay::pos_names{ "Custom", "Top left", "Top right", "Bottom left", "Bottom right" }; +int Menu::overlay::selected_pos = 4; +float Menu::overlay::posX = NULL; +float Menu::overlay::posY = NULL; + +int Menu::hotkey::command_window[]{ VK_LMENU ,VK_KEY_C }; +int Menu::hotkey::menu_open[]{VK_LCONTROL ,VK_KEY_M}; +int Menu::hotkey::aim_skin_changer[]{ VK_RETURN ,VK_RETURN }; +int Menu::hotkey::quick_ss[]{ VK_LCONTROL ,VK_KEY_S }; +int Menu::hotkey::quick_tp[]{ VK_KEY_X ,VK_KEY_Y }; + +bool Menu::commands::show_menu = false; +char Menu::commands::input_buffer[INPUT_BUFFER_SIZE] = ""; + +Menu::Menu() +{ + Events::initGameEvent += [] + { + // improve these later, use struct + // Load config data + overlay::coord = config.GetValue("overlay.coord", false); + overlay::fps = config.GetValue("overlay.fps", false); + overlay::loc_name = config.GetValue("overlay.loc_name", false); + overlay::transparent = config.GetValue("overlay.transparent", false); + overlay::veh_health = config.GetValue("overlay.veh_health", false); + overlay::veh_speed = config.GetValue("overlay.veh_speed", false); + overlay::selected_pos = config.GetValue("overlay.selected_pos", 4); + overlay::posX = config.GetValue("overlay.posX", 0); + overlay::posY = config.GetValue("overlay.posY", 0); + + // Hotkeys + hotkey::aim_skin_changer[0] = config.GetValue("hotkey.aim_skin_changer.key1", VK_RETURN); + hotkey::aim_skin_changer[1] = config.GetValue("hotkey.aim_skin_changer.key2", VK_RETURN); + + hotkey::quick_ss[0] = config.GetValue("hotkey.quick_screenshot.key1", VK_LCONTROL); + hotkey::quick_ss[1] = config.GetValue("hotkey.quick_screenshot.key2", VK_KEY_S); + + hotkey::quick_tp[0] = config.GetValue("hotkey.quick_tp.key1", VK_KEY_X); + hotkey::quick_tp[1] = config.GetValue("hotkey.quick_tp.key2", VK_KEY_Y); + + hotkey::menu_open[0] = config.GetValue("hotkey.menu_open.key1", VK_LCONTROL); + hotkey::menu_open[1] = config.GetValue("hotkey.menu_open.key2", VK_KEY_M); + + hotkey::command_window[0] = config.GetValue("hotkey.command_window.key1", VK_LMENU); + hotkey::command_window[1] = config.GetValue("hotkey.command_window.key2", VK_KEY_C); + }; + + Events::shutdownRwEvent += [] + { + // save config data + config.SetValue("overlay.coord", overlay::coord); + config.SetValue("overlay.fps", overlay::fps); + config.SetValue("overlay.loc_name", overlay::loc_name); + config.SetValue("overlay.transparent", overlay::transparent); + config.SetValue("overlay.veh_health", overlay::veh_health); + config.SetValue("overlay.veh_speed", overlay::veh_speed); + config.SetValue("overlay.selected_pos", overlay::selected_pos); + config.SetValue("overlay.posX", overlay::posX); + config.SetValue("overlay.posY", overlay::posY); + + // Hotkeys + config.SetValue("hotkey.aim_skin_changer.key1", hotkey::aim_skin_changer[0]); + config.SetValue("hotkey.aim_skin_changer.key2", hotkey::aim_skin_changer[1]); + + config.SetValue("hotkey.quick_screenshot.key1", hotkey::quick_ss[0]); + config.SetValue("hotkey.quick_screenshot.key2", hotkey::quick_ss[1]); + + config.SetValue("hotkey.quick_tp.key1", hotkey::quick_tp[0]); + config.SetValue("hotkey.quick_tp.key2", hotkey::quick_tp[1]); + + config.SetValue("hotkey.menu_open.key1", hotkey::menu_open[0]); + config.SetValue("hotkey.menu_open.key2", hotkey::menu_open[1]); + + config.SetValue("hotkey.command_window.key1", hotkey::command_window[0]); + config.SetValue("hotkey.command_window.key2", hotkey::command_window[1]); + }; +} + +Menu::~Menu() +{ +} + +void Menu::ProcessOverlay() +{ + CPlayerPed *player = FindPlayerPed(); + bool show_menu = overlay::coord || overlay::fps || overlay::loc_name || + ((overlay::veh_health || overlay::veh_speed) && player->m_pVehicle && player->m_pVehicle->IsDriver(player)); + + int corner = overlay::selected_pos - 1; + const float offset = 10.0f; + ImGuiIO& io = ImGui::GetIO(); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav; + + if (corner != -1) + { + window_flags |= ImGuiWindowFlags_NoMove; + ImVec2 window_pos = ImVec2((corner & 1) ? io.DisplaySize.x - offset : offset, (corner & 2) ? io.DisplaySize.y - offset : offset); + ImVec2 window_pos_pivot = ImVec2((corner & 1) ? 1.0f : 0.0f, (corner & 2) ? 1.0f : 0.0f); + ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always, window_pos_pivot); + } + else + { + if (overlay::posX != NULL && overlay::posY != NULL) + ImGui::SetNextWindowPos(ImVec2(overlay::posX, overlay::posY), ImGuiCond_Once); + } + + ImGui::SetNextWindowBgAlpha(overlay::transparent ? 0.0f : 0.5f); + + if (show_menu && ImGui::Begin("Overlay", NULL, window_flags)) + { + CPlayerPed *player = FindPlayerPed(); + + if (overlay::coord) + { + CVector pos = player->GetPosition(); + + std::string text = "Coord: " + std::to_string(int(pos.x)) + ", " + std::to_string(int(pos.y)) + ", " + + std::to_string(int(pos.z)); + + ImGui::Text(text.c_str()); + } + + if (overlay::fps) + ImGui::Text((std::string("Frames: ") + std::to_string(int(io.Framerate))).c_str()); + + if (overlay::loc_name) + ImGui::Text((std::string("Location: ") + Util::GetLocationName(&player->GetPosition())).c_str()); + + if (player->m_pVehicle && player->m_pVehicle->IsDriver(player)) + { + if (overlay::veh_health) + ImGui::Text((std::string("Veh Health: ") + std::to_string(int(player->m_pVehicle->m_fHealth))).c_str()); + + if (overlay::veh_speed) + { + int speed = player->m_pVehicle->m_vecMoveSpeed.Magnitude()*50; // 02E3 - GET_CAR_SPEED + ImGui::Text((std::string("Veh Speed: ") + std::to_string(speed)).c_str()); + } + } + + ImVec2 pos = ImGui::GetWindowPos(); + overlay::posX = pos.x; + overlay::posY = pos.y; + + ImGui::End(); + } +} + +void Menu::ProcessShortcutsWindow() +{ + int resX = int(screen::GetScreenWidth()); + int resY = int(screen::GetScreenHeight()); + + ImGui::SetNextWindowPos(ImVec2(0, resY - 40), ImGuiCond_Always); + ImGui::SetNextWindowSize(ImVec2(resX, 40)); + + ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration + ImGuiWindowFlags_AlwaysAutoResize + ImGuiWindowFlags_NoSavedSettings + + ImGuiWindowFlags_NoMove; + + if (ImGui::Begin("Shortcuts window", NULL, flags)) + { + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(ImGui::GetStyle().FramePadding.x, resY / 130)); + ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(3, 3)); + + ImGui::SetNextItemWidth(resX); + ImGui::SetKeyboardFocusHere(-1); + + ImGui::InputTextWithHint("##TEXTFIELD", "Enter command", commands::input_buffer, INPUT_BUFFER_SIZE); + + ImGui::PopStyleVar(2); + ImGui::End(); + } +} + +void Menu::ProcessCommands() +{ + std::stringstream ss(commands::input_buffer); + + std::string command; + ss >> command; + + if (command == "hp") + { + try + { + std::string temp; + ss >> temp; + FindPlayerPed()->m_fHealth = std::stof(temp); + } + catch (...) { + CHud::SetHelpMessage("Invalid value", false, false, false); + } + } + + if (command == "time") + { + try + { + std::string temp; + ss >> temp; + CClock::ms_nGameClockHours = std::stoi(temp); + + ss >> temp; + CClock::ms_nGameClockMinutes = std::stoi(temp); + } + catch (...) { + CHud::SetHelpMessage("Invalid value", false, false, false); + } + } + + if (command == "tp") + { + try { + CVector pos; + std::string temp; + + ss >> temp; + pos.x = std::stof(temp); + + ss >> temp; + pos.y = std::stof(temp); + + ss >> temp; + pos.z = std::stof(temp); + + Teleport::TeleportPlayer(false, &pos, 0); + } + catch (...) { + CHud::SetHelpMessage("Invalid location", false, false, false); + } + } + + if (command == "wep") + { + std::string wep_name; + ss >> wep_name; + + if (wep_name == "jetpack") + { + Weapon::GiveWeaponToPlayer(std::string("-1")); + CHud::SetHelpMessage("Weapon given", false, false, false); + } + else + { + eWeaponType weapon = CWeaponInfo::FindWeaponType((char*)wep_name.c_str()); + CWeaponInfo* pweaponinfo = CWeaponInfo::GetWeaponInfo(weapon, 1); + + if (wep_name != "" && pweaponinfo->m_nModelId1 != -1) + { + Weapon::GiveWeaponToPlayer(std::to_string(weapon)); + CHud::SetHelpMessage("Weapon given", false, false, false); + } + else + CHud::SetHelpMessage("Invalid command", false, false, false); + } + + return; + } +} + +void Menu::Main() +{ + if (ImGui::BeginTabBar("Menu", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) + { + if (ImGui::BeginTabItem("Overlay")) + { + ImGui::Spacing(); + ImGui::Spacing(); + ImGui::SameLine(); + Ui::ListBox("Overlay", overlay::pos_names, overlay::selected_pos); + ImGui::Spacing(); + + ImGui::Columns(2, NULL, false); + ImGui::Checkbox("No background", &overlay::transparent); + ImGui::Checkbox("Show coordinates", &overlay::coord); + ImGui::Checkbox("Show FPS", &overlay::fps); + ImGui::NextColumn(); + + ImGui::Checkbox("Show location", &overlay::loc_name); + ImGui::Checkbox("Show veh health", &overlay::veh_health); + ImGui::Checkbox("Show veh speed", &overlay::veh_speed); + ImGui::Columns(1); + + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Hotkeys")) + { + ImGui::Spacing(); + ImGui::BeginChild("Hotkeys"); + Ui::HotKey("Open/ close cheat menu", hotkey::menu_open); + Ui::HotKey("Open/ close command window", hotkey::command_window); + + ImGui::Dummy(ImVec2(0,10)); + + Ui::HotKey("Activate aim skin changer", hotkey::aim_skin_changer); + Ui::HotKey("Take quick screenshot", hotkey::quick_ss); + Ui::HotKey("Toggle quick teleport", hotkey::quick_tp); + + ImGui::Dummy(ImVec2(0, 10)); + + ImGui::EndChild(); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Commands")) + { + if (ImGui::BeginChild("CommandsChild")) + { + ImGui::TextWrapped(std::string("Open or close command window using " + Ui::GetHotKeyNameString(hotkey::command_window)).c_str()); + ImGui::Spacing(); + if (ImGui::CollapsingHeader("Set health")) + { + ImGui::Spacing(); + ImGui::TextWrapped("Set player health.\nExample: hp (health)."); + ImGui::Spacing(); + ImGui::Separator(); + } + if (ImGui::CollapsingHeader("Set time")) + { + ImGui::Spacing(); + ImGui::TextWrapped("Set current game time.\nExample: time (hour) (minute).\n"); + ImGui::TextWrapped("Writing something like 'time 12' would be interpreted as 'time 12 12'"); + ImGui::Spacing(); + ImGui::Separator(); + } + if (ImGui::CollapsingHeader("Quick vehicle spawner")) + { + ImGui::Spacing(); + ImGui::TextWrapped("Spawn vehicles by typing their model names.\nExample: veh (veh_name)"); + ImGui::Spacing(); + ImGui::Separator(); + } + if (ImGui::CollapsingHeader("Quick weapon spawner")) + { + ImGui::Spacing(); + ImGui::TextWrapped("Spawn weapons by typing their model names.\nExample: wep (wep_name)"); + ImGui::Spacing(); + ImGui::Separator(); + } + + ImGui::EndChild(); + } + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("About")) + { + ImGui::Spacing(); + + if (ImGui::Button("Discord server", ImVec2(Ui::GetSize(2)))) + ShellExecute(NULL, "open", "https://discord.gg/ZzW7kmf", NULL, NULL, SW_SHOWNORMAL); + + ImGui::SameLine(); + + if (ImGui::Button("GitHub repo", ImVec2(Ui::GetSize(2)))) + ShellExecute(NULL, "open", "https://github.com/user-grinch/Cheat-Menu", NULL, NULL, SW_SHOWNORMAL); + + ImGui::Spacing(); + + if (ImGui::BeginChild("AboutChild")) + { + ImGui::Columns(2, NULL, false); + ImGui::Text("Author: Grinch_"); + + ImGui::Text((std::string("Version: ") + MENU_VERSION).c_str()); + + ImGui::NextColumn(); + ImGui::Text(std::string("Imgui: " + std::string(ImGui::GetVersion())).c_str()); + ImGui::Text((std::string("Build: ") + BUILD_NUMBER).c_str()); + + ImGui::Columns(1); + + ImGui::Dummy(ImVec2(0, 10)); + ImGui::TextWrapped("Special thanks to,"); + ImGui::Columns(2, NULL, false); + + ImGui::TextWrapped("Dowglas_"); + ImGui::TextWrapped("Israel"); + + ImGui::NextColumn(); + ImGui::TextWrapped("Junior-Djjr"); + + ImGui::Columns(1); + + ImGui::Dummy(ImVec2(0, 10)); + ImGui::TextWrapped("Copyright GPLv3 2019-2020 Grinch_"); + + ImGui::EndChild(); + } + + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } +} \ No newline at end of file diff --git a/CheatMenu/Menu.h b/CheatMenu/Menu.h new file mode 100644 index 0000000..5ba8c94 --- /dev/null +++ b/CheatMenu/Menu.h @@ -0,0 +1,42 @@ +#pragma once + +class Menu +{ +private: + struct overlay + { + static bool coord; + static bool fps; + static bool loc_name; + static bool transparent; + static bool veh_health; + static bool veh_speed; + static std::vector pos_names; + static int selected_pos; + static float posX; + static float posY; + }; +public: + struct hotkey + { + static int command_window[2]; + static int menu_open[2]; + static int aim_skin_changer[2]; + static int quick_ss[2]; + static int quick_tp[2]; + }; + struct commands + { + static bool show_menu; + static char input_buffer[INPUT_BUFFER_SIZE]; + }; + + Menu(); + ~Menu(); + static void Main(); + static void ProcessOverlay(); + static void ProcessShortcutsWindow(); + static void ProcessCommands(); + +}; + diff --git a/CheatMenu/NeonAPI.cpp b/CheatMenu/NeonAPI.cpp new file mode 100644 index 0000000..6b220f8 --- /dev/null +++ b/CheatMenu/NeonAPI.cpp @@ -0,0 +1,75 @@ +#include "pch.h" +#include "NeonAPI.h" + +bool NeonAPI::api_installed = false; +HMODULE NeonAPI::hapi = false; + +extern "C" +{ + static int(__cdecl *_installneon)(CVehicle*, uchar, uchar) = nullptr; + static int(__cdecl *_setred)(CVehicle*, uchar) = nullptr; + static int(__cdecl *_setgreen)(CVehicle*, uchar) = nullptr; + static int(__cdecl *_setblue)(CVehicle*, uchar) = nullptr; + static bool(__cdecl *_isneoninstalled)(CVehicle*) = nullptr; + static bool(__cdecl *_removeneon)(CVehicle*) = nullptr; +} + +template +static inline void InitFun(T &fun, HMODULE lib, const char *name) +{ + fun = (T)GetProcAddress(lib, name); +} + +NeonAPI::NeonAPI() +{ + Events::initGameEvent += [this] + { + hapi = LoadLibraryW(L"neon_api.asi"); + if (hapi) + { + api_installed = true; + + InitFun(_installneon,hapi,"InstallNeon"); + InitFun(_setred, hapi, "SetRed"); + InitFun(_setgreen, hapi, "SetGreen"); + InitFun(_setblue, hapi, "SetBlue"); + InitFun(_isneoninstalled, hapi, "IsNeonInstalled"); + InitFun(_removeneon, hapi, "RemoveNeon"); + } + }; +} + + +NeonAPI::~NeonAPI() +{ +} + +bool NeonAPI::IsNeonInstalled(CVehicle *veh) +{ + return api_installed && _isneoninstalled(veh); +} + +bool NeonAPI::InstallNeon(CVehicle *veh, int red, int green, int blue) +{ + if (api_installed) + { + _installneon(veh, 0, 0); + _setred(veh, red); + _setgreen(veh, green); + _setblue(veh, blue); + + return true; + } + return false; +} + +bool NeonAPI::RemoveNeon(CVehicle *veh) +{ + if (api_installed) + { + _removeneon(veh); + + return true; + } + return false; +} diff --git a/CheatMenu/NeonAPI.h b/CheatMenu/NeonAPI.h new file mode 100644 index 0000000..99035aa --- /dev/null +++ b/CheatMenu/NeonAPI.h @@ -0,0 +1,15 @@ +#pragma once + +class NeonAPI +{ +private: + static bool api_installed; + static HMODULE hapi; +public: + NeonAPI(); + ~NeonAPI(); + static bool InstallNeon(CVehicle *veh, int red, int green, int blue); + static bool IsNeonInstalled(CVehicle *veh); + static bool RemoveNeon(CVehicle *veh); +}; + diff --git a/CheatMenu/Paint.cpp b/CheatMenu/Paint.cpp new file mode 100644 index 0000000..8d9c00c --- /dev/null +++ b/CheatMenu/Paint.cpp @@ -0,0 +1,191 @@ +#include "pch.h" +#include "Paint.h" +#include "NodeName.h" +#include "external/moon/texture_manager.h" + +std::vector Paint::veh_nodes::names_vec{ "Default" }; +std::string Paint::veh_nodes::selected = "Default"; + +std::map> Paint::textures; + +Paint::Paint() +{ + + Events::initGameEvent += [] + { + std::string dir_path = std::string(".\\CheatMenu\\vehicles\\paintjobs\\").c_str(); + + for (auto &p : fs::recursive_directory_iterator(dir_path)) + { + if (p.path().extension() == ".png") + { + std::string file_name = p.path().stem().string(); + textures[file_name]= std::make_shared(*(texture_manager::loadTextureFromPngFile(p.path()))); + } + } + }; + + Events::vehicleRenderEvent.before += [](CVehicle* veh) { + if (veh) + VehicleRenderer::get()->processRender(veh); + }; + + Events::vehicleResetAfterRender += [](CVehicle* veh) { + if (veh) + VehicleRenderer::get()->postRender(veh); + }; +} + +Paint::~Paint() +{ +} + +void Paint::NodeWrapperRecursive(RwFrame *frame, CVehicle* pVeh, std::function func) +{ + if (frame) + { + func(frame); + + if (RwFrame * newFrame = frame->child) + NodeWrapperRecursive(newFrame, pVeh, func); + if (RwFrame * newFrame = frame->next) + NodeWrapperRecursive(newFrame, pVeh, func); + } + return; +} + +void Paint::UpdateNodeListRecursive(CVehicle* pVeh) +{ + RwFrame *frame = (RwFrame *)pVeh->m_pRwClump->object.parent; + + NodeWrapperRecursive(frame, pVeh, [](RwFrame *frame) + { + const std::string name = GetFrameNodeName(frame); + + if (!(std::find(veh_nodes::names_vec.begin(), veh_nodes::names_vec.end(), name) != veh_nodes::names_vec.end())) + veh_nodes::names_vec.push_back(name); + }); +} + +void Paint::SetNodeColor(CVehicle* pVeh, std::string node_name, CRGBA color, bool filter_mat) +{ + RwFrame *frame = (RwFrame *)pVeh->m_pRwClump->object.parent; + + NodeWrapperRecursive(frame, pVeh, [&](RwFrame *frame) + { + const std::string name = GetFrameNodeName(frame); + + struct ST + { + CRGBA _color; + bool _filter; + } st; + + st._color = color; + st._filter = filter_mat; + + if (node_name == "Default" || node_name == name) + { + RwFrameForAllObjects(frame, [](RwObject* object, void* data) -> RwObject* { + if (object->type == rpATOMIC) + { + RpAtomic *atomic = reinterpret_cast(object); + + ST* st = reinterpret_cast(data); + CRGBA* color = &st->_color; + bool filter_mat = st->_filter; + + for (int i = 0; i < atomic->geometry->matList.numMaterials; ++i) + VehicleRenderer::get()->setMaterialColor(FindPlayerPed()->m_pVehicle, atomic->geometry->matList.materials[i], atomic->geometry, { color->r,color->g,color->b, 255 }, filter_mat); + } + return object; + }, &st); + } + }); +} + + +void Paint::SetNodeTexture(CVehicle* pVeh, std::string node_name, std::string texturename, bool filter_mat) +{ + RwFrame *frame = (RwFrame *)pVeh->m_pRwClump->object.parent; + NodeWrapperRecursive(frame, pVeh, [&](RwFrame *frame) + { + const std::string name = GetFrameNodeName(frame); + + struct ST + { + std::string _texturename; + std::map> _textures; + bool _filter; + } st; + + st._textures = textures; + st._texturename = texturename; + st._filter = filter_mat; + + if (node_name == "Default" || node_name == name) + { + RwFrameForAllObjects(frame, [](RwObject* object, void* data) -> RwObject* { + + if (object->type == rpATOMIC) + { + RpAtomic *atomic = reinterpret_cast(object); + + ST* st = reinterpret_cast(data); + for (int i = 0; i < atomic->geometry->matList.numMaterials; ++i) + VehicleRenderer::get()->setMaterialTexture(FindPlayerPed()->m_pVehicle, atomic->geometry->matList.materials[i], st->_textures[st->_texturename], st->_filter); + } + return object; + }, &st); + } + }); +} + +void Paint::ResetNodeColor(CVehicle *pVeh, std::string node_name) +{ + RwFrame *frame = (RwFrame *)pVeh->m_pRwClump->object.parent; + + NodeWrapperRecursive(frame, pVeh, [&](RwFrame *frame) + { + const std::string name = GetFrameNodeName(frame); + + if (node_name == "Default" || node_name == name) + { + RwFrameForAllObjects(frame, [](RwObject* object, void* data) -> RwObject* { + if (object->type == rpATOMIC) + { + RpAtomic *atomic = reinterpret_cast(object); + + for (int i = 0; i < atomic->geometry->matList.numMaterials; ++i) + VehicleRenderer::get()->resetMaterialColor(FindPlayerPed()->m_pVehicle, atomic->geometry->matList.materials[i]); + } + return object; + }, nullptr); + } + }); +} + +void Paint::ResetNodeTexture(CVehicle *pVeh, std::string node_name) +{ + RwFrame *frame = (RwFrame *)pVeh->m_pRwClump->object.parent; + + NodeWrapperRecursive(frame, pVeh, [&](RwFrame *frame) + { + const std::string name = GetFrameNodeName(frame); + + if (node_name == "Default" || node_name == name) + { + RwFrameForAllObjects(frame, [](RwObject* object, void* data) -> RwObject* { + + if (object->type == rpATOMIC) + { + RpAtomic *atomic = reinterpret_cast(object); + + for (int i = 0; i < atomic->geometry->matList.numMaterials; ++i) + VehicleRenderer::get()->resetMaterialTexture(FindPlayerPed()->m_pVehicle, atomic->geometry->matList.materials[i]); + } + return object; + }, nullptr); + } + }); +} \ No newline at end of file diff --git a/CheatMenu/Paint.h b/CheatMenu/Paint.h new file mode 100644 index 0000000..fa58863 --- /dev/null +++ b/CheatMenu/Paint.h @@ -0,0 +1,26 @@ +#pragma once +#include "external/moon/vehicle_renderer.h" + +class Paint : VehicleRenderer +{ +public: + Paint(); + ~Paint(); + + struct veh_nodes + { + static std::vector names_vec; + static std::string selected; + }; + static std::map> textures; + +protected: + + static void UpdateNodeListRecursive(CVehicle* pVeh); + static void NodeWrapperRecursive(RwFrame * frame, CVehicle* pVeh, std::function func); + static void SetNodeColor(CVehicle* pVeh, std::string node_name, CRGBA color, bool filter_mat = false); + static void SetNodeTexture(CVehicle* pVeh, std::string node_name, std::string texturename, bool filter_mat = false); + static void ResetNodeColor(CVehicle *veh, std::string node_name); + static void ResetNodeTexture(CVehicle *pVeh, std::string node_name); +}; + diff --git a/CheatMenu/Ped.cpp b/CheatMenu/Ped.cpp new file mode 100644 index 0000000..59ed83d --- /dev/null +++ b/CheatMenu/Ped.cpp @@ -0,0 +1,280 @@ +#include "pch.h" +#include "Ped.h" + +ImGuiTextFilter Ped::filter = ""; +std::string Ped::selected_item = "All"; +std::vector Ped::search_categories; +std::vector> Ped::peds_vec; + +CJson Ped::ped_json = CJson("ped"); +CJson Ped::pedspecial_json = CJson("ped special"); + +std::vector Ped::gang_names = { "Ballas", "Grove street families", "Los santos vagos", "San fierro rifa", +"Da nang boys", "Mafia", "Mountain cloud triad", "Varrio los aztecas", "Gang9", "Gang10" }; + +bool Ped::exgangwars_installed = false; + +std::vector Ped::spawn_ped::list; +int Ped::spawn_ped::accuracy = 50; +int Ped::spawn_ped::health = 100; +int Ped::spawn_ped::selected_ped_type = 0; +bool Ped::spawn_ped::dont_move = false; +bool Ped::spawn_ped::ped_bleed = false; +int Ped::spawn_ped::weapon_id = 0; + +std::vector Ped::spawn_ped::ped_type = {"Civ male","Civ female","Cop","Ballas","Grove Street Families","Los Santos Vagos", + "San Fierro Rifa","Da Nang Boys","Mafia","Mountain Cloud Triads","Varrio Los Aztecas", + "Gang 9","Medic","Dealer","Criminal","Fireman","Prostitute"}; + + +Ped::Ped() +{ + Events::initGameEvent += [] + { + std::string dir_path = (std::string(".\\CheatMenu\\peds\\")).c_str(); + Util::LoadTexturesInDirRecursive(dir_path.c_str(), ".jpg", search_categories, peds_vec); + + if (LoadLibraryW(L"ExGangWars.asi")) + exgangwars_installed = true; + + }; +} + +Ped::~Ped() +{ + for (CPed* ped : spawn_ped::list) + { + CWorld::Remove(ped); + ped->Remove(); + } +} + + +void Ped::SpawnPed(std::string& model) +{ + if (spawn_ped::list.size() == SPAWN_PED_LIMIT) + { + CHud::SetHelpMessage("Max limit reached", false, false, false); + return; + } + + if (Ped::ped_json.data.contains(model)) + { + CPlayerPed *player = FindPlayerPed(); + CVector pos = player->GetPosition(); + pos.y += 1; + + CPed *ped; + int hplayer; + + if (Ped::pedspecial_json.data.contains(model)) + { + std::string name; + if (Ped::pedspecial_json.data.contains(model)) + name = Ped::pedspecial_json.data[model].get().c_str(); + else + name = model; + + CStreaming::RequestSpecialChar(1, name.c_str(), PRIORITY_REQUEST); + CStreaming::LoadAllRequestedModels(true); + + Command (spawn_ped::selected_ped_type + 4, 291, pos.x, pos.y, pos.z + 1, &hplayer); + CStreaming::SetSpecialCharIsDeletable(291); + } + else + { + int imodel = std::stoi(model); + CStreaming::RequestModel(imodel, eStreamingFlags::PRIORITY_REQUEST); + CStreaming::LoadAllRequestedModels(false); + + Command (spawn_ped::selected_ped_type + 4,imodel,pos.x,pos.y,pos.z+1,&hplayer); + CStreaming::SetModelIsDeletable(imodel); + } + + ped = CPools::GetPed(hplayer); + + if (spawn_ped::dont_move) + spawn_ped::list.push_back(ped); + else + { + Command(hplayer); + } + ped->m_nPedFlags.bPedIsBleeding = spawn_ped::ped_bleed; + ped->m_nWeaponAccuracy = spawn_ped::accuracy; + ped->m_fHealth = spawn_ped::health; + + if (spawn_ped::weapon_id != 0) + { + int model = 0; + Command(spawn_ped::weapon_id, &model); + CStreaming::RequestModel(model, PRIORITY_REQUEST); + CStreaming::LoadAllRequestedModels(false); + Command(hplayer, spawn_ped::weapon_id, 999); + } + } +} + +void Ped::Main() +{ + if (ImGui::BeginTabBar("Ped", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) + { + if (ImGui::BeginTabItem("Checkboxes")) + { + ImGui::Spacing(); + ImGui::BeginChild("CheckboxesChild"); + ImGui::Columns(2, 0, false); + + Ui::CheckboxAddress("Elvis everywhere", 0x969157); + Ui::CheckboxAddress("Everyone is armed", 0x969140); + Ui::CheckboxAddress("Gangs control streets", 0x96915B); + Ui::CheckboxAddress("Gangs everywhere", 0x96915A); + Ui::CheckboxWithHint("Gang wars", &CGangWars::bGangWarsActive); + + ImGui::NextColumn(); + + Ui::CheckboxAddress("Peds mayhem", 0x96913E); + Ui::CheckboxAddress("Peds attack with rockets", 0x969158); + Ui::CheckboxAddress("Peds riot", 0x969175); + Ui::CheckboxAddress("Slut magnet", 0x96915D); + + ImGui::Columns(1); + ImGui::EndChild(); + + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Menus")) + { + ImGui::Spacing(); + ImGui::BeginChild("MenusChild"); + + if (ImGui::CollapsingHeader("Gang wars")) + { + if (ImGui::Button("Start gang war", ImVec2(Ui::GetSize(2)))) + { + if (Util::GetLargestGangInZone() == 1) + CGangWars::StartDefensiveGangWar(); + else + CGangWars::StartOffensiveGangWar(); + + CGangWars::bGangWarsActive = true; + } + ImGui::SameLine(); + if (ImGui::Button("End gang war", ImVec2(Ui::GetSize(2)))) + CGangWars::EndGangWar(true); + + ImGui::Dummy(ImVec2(0, 20)); + ImGui::TextWrapped("Gang zone density:"); + ImGui::Spacing(); + + ImGui::PushItemWidth(ImGui::GetWindowContentRegionWidth() / 2); + for (int i = 0; i != 10; ++i) + { + CVector pos = FindPlayerPed()->GetPosition(); + CZone *zone = &CZone(); + + CZoneExtraInfo *zone_info = CTheZones::GetZoneInfo(&pos, &zone); + int density = zone_info->m_nGangDensity[i]; + + if (ImGui::SliderInt(Ped::gang_names[i].c_str(), &density, 0, 127)) + { + zone_info->m_nGangDensity[i] = static_cast(density); + Command(); + CGangWars::bGangWarsActive = true; + } + } + ImGui::PopItemWidth(); + ImGui::Spacing(); + + if (!exgangwars_installed) + { + ImGui::TextWrapped("You'll need ExGangWars plugin to display some turf colors"); + ImGui::Spacing(); + if (ImGui::Button("Download ExGangWars", Ui::GetSize(1))) + ShellExecute(NULL, "open", "https://gtaforums.com/topic/682194-extended-gang-wars/", NULL, NULL, SW_SHOWNORMAL); + } + + ImGui::Spacing(); + ImGui::Separator(); + } + + Ui::EditAddress("Pedestrian density multiplier", 0x8D2530, 0, 1, 10); + + if (ImGui::CollapsingHeader("Recruit anyone")) + { + Ui::RadioButtonAddress("Select weapon", std::vector{ {"9mm", 0x96917C}, { "AK47", 0x96917D }, { "Rockets", 0x96917E }}); + ImGui::Spacing(); + ImGui::Separator(); + } + + ImGui::EndChild(); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Spawn")) + { + ImGui::Spacing(); + if (ImGui::Button("Remove frozen peds", Ui::GetSize(1))) + { + for (CPed* ped : spawn_ped::list) + { + CWorld::Remove(ped); + ped->Remove(); + } + spawn_ped::list.clear(); + } + ImGui::Spacing(); + if (ImGui::BeginTabBar("SpawnPedBar")) + { + ImGui::Spacing(); + + if (ImGui::BeginTabItem("Spawner")) + { + ImGui::Spacing(); + + Ui::DrawImages(peds_vec, ImVec2(65, 110), search_categories, selected_item, filter, SpawnPed, nullptr, + [](std::string str) {return ped_json.data[str].get(); }); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Config")) + { + ImGui::Spacing(); + ImGui::BeginChild("PedCOnfig"); + ImGui::Columns(2, 0, false); + Ui::CheckboxWithHint("Don't move", &spawn_ped::dont_move); + ImGui::NextColumn(); + Ui::CheckboxWithHint("Ped bleed", &spawn_ped::ped_bleed); + ImGui::Columns(1); + + ImGui::Spacing(); + ImGui::SliderInt("Accuracy", &spawn_ped::accuracy, 0.0, 100.0); + if (ImGui::InputInt("Health", &spawn_ped::health)) + { + if (spawn_ped::health > 1000) + spawn_ped::health = 1000; + + if (spawn_ped::health < 0) + spawn_ped::health = 0; + } + Ui::ListBox("Ped type", spawn_ped::ped_type, spawn_ped::selected_ped_type); + + ImGui::Spacing(); + ImGui::Text((std::string("Selected weapon: ") + Weapon::weapon_json.data[std::to_string(spawn_ped::weapon_id)].get()).c_str()); + ImGui::Spacing(); + Ui::DrawImages(Weapon::weapon_vec, ImVec2(65, 65), Weapon::search_categories, Weapon::selected_item, Weapon::filter, + [](std::string str) { spawn_ped::weapon_id = std::stoi(str); }, + nullptr, + [](std::string str) {return Weapon::weapon_json.data[str].get(); }, + [](std::string str) {return str != "-1"; /*Jetpack*/ } + ); + + ImGui::Spacing(); + ImGui::EndChild(); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } +} + diff --git a/CheatMenu/Ped.h b/CheatMenu/Ped.h new file mode 100644 index 0000000..0a317ae --- /dev/null +++ b/CheatMenu/Ped.h @@ -0,0 +1,39 @@ +#pragma once +#include "Player.h" +#include "Weapon.h" + +class Ped +{ +private: + static ImGuiTextFilter filter; + static std::string selected_item; + static std::vector search_categories; + static std::vector> peds_vec; + + static CJson ped_json; + static CJson pedspecial_json; + + static std::vector gang_names; + static bool exgangwars_installed; + + + struct spawn_ped { + static std::vector list; + static int accuracy; + static int health; + static bool dont_move; + static bool ped_bleed; + static std::vector ped_type; + static int selected_ped_type; + static int weapon_id; + }; + + friend class Player; + friend class Weapon; +public: + Ped(); + ~Ped(); + static void Main(); + static void SpawnPed(std::string& model); +}; + diff --git a/CheatMenu/Player.cpp b/CheatMenu/Player.cpp new file mode 100644 index 0000000..1510977 --- /dev/null +++ b/CheatMenu/Player.cpp @@ -0,0 +1,432 @@ +#include "pch.h" +#include "Player.h" +#include "Ped.h" +#include "CCheat.h" +#include "Menu.h" + +bool Player::keep_position::state = false; +CVector Player::keep_position::pos = CVector(); +bool Player::god_mode = false; +int Player::body = 0; +bool Player::aim_skin_changer = false; + +ImGuiTextFilter Player::filter = ""; +std::vector Player::search_categories; +std::vector> Player::clothes_vec; +std::string Player::selected_item = "All"; + +std::string Player::custom_skins::dir = paths::GetGameDirPathA() + std::string("\\modloader\\Custom Skins\\"); +std::vector Player::custom_skins::store_vec; +ImGuiTextFilter Player::custom_skins::filter = ""; + +bool Player::modloader_installed = false; + +Player::Player() +{ + Events::initGameEvent += [] + { + std::string dir_path = (std::string(".\\CheatMenu\\clothes\\")).c_str(); + aim_skin_changer = config.GetValue("aim_skin_changer", false); + Util::LoadTexturesInDirRecursive(dir_path.c_str(), ".jpg", search_categories, clothes_vec); + + // Custom skins setup + if (LoadLibraryW(L"modloader.asi")) + { + if (std::experimental::filesystem::is_directory(custom_skins::dir)) + { + for (auto &p : std::experimental::filesystem::recursive_directory_iterator(custom_skins::dir)) + { + if (p.path().extension() == ".dff") + { + std::string file_name = p.path().stem().string(); + + if (file_name.size() < 9) + custom_skins::store_vec.push_back(file_name); + else + flog << "Custom Skin '" << file_name << "' longer than 8 characters" << std::endl; + } + } + } + else std::experimental::filesystem::create_directory(custom_skins::dir); + + modloader_installed = true; + } + }; + + Events::shutdownRwEvent += [] + { + config.SetValue("aim_skin_changer", aim_skin_changer); + }; + + Events::processScriptsEvent += [] + { + uint timer = CTimer::m_snTimeInMilliseconds; + static CPlayerPed* player = FindPlayerPed(); + + if (keep_position::state) + { + if (!player->IsAlive()) + { + keep_position::pos = player->GetPosition(); + } + else + { + CVector cur_pos = player->GetPosition(); + + if (keep_position::pos.x != 0 && keep_position::pos.x != cur_pos.x + && keep_position::pos.y != 0 && keep_position::pos.y != cur_pos.y) + { + player->Teleport(keep_position::pos, false); + keep_position::pos = CVector(0, 0, 0); + } + } + } + + if (god_mode) + { + patch::Set(0x96916D, 1, false); + player->m_nPhysicalFlags.bBulletProof = 1; + player->m_nPhysicalFlags.bCollisionProof = 1; + player->m_nPhysicalFlags.bExplosionProof = 1; + player->m_nPhysicalFlags.bFireProof = 1; + player->m_nPhysicalFlags.bMeeleProof = 1; + } + + if (aim_skin_changer && Ui::HotKeyPressed(Menu::hotkey::aim_skin_changer)) + { + CPed *target_ped = player->m_pPlayerTargettedPed; + if (target_ped) + { + player->SetModelIndex(target_ped->m_nModelIndex); + Util::ClearCharTasksVehCheck(player); + } + } + }; +} + + +Player::~Player() +{ +} + +void Player::ChangePlayerCloth(std::string &name) +{ + std::stringstream ss(name); + std::string temp; + + getline(ss, temp, '$'); + int body_part = std::stoi(temp); + + getline(ss, temp, '$'); + std::string model = temp.c_str(); + + getline(ss, temp, '$'); + std::string texture9 = temp.c_str(); + + CPlayerPed *player = FindPlayerPed(); + + if (texture9 == "cutoffchinosblue") + { + player->m_pPlayerData->m_pPedClothesDesc->SetTextureAndModel(-697413025, 744365350, body_part); + } + else + { + if (texture9 == "sneakerbincblue") + { + player->m_pPlayerData->m_pPedClothesDesc->SetTextureAndModel(-915574819, 2099005073, body_part); + } + else + { + if (texture9 == "12myfac") + player->m_pPlayerData->m_pPedClothesDesc->SetTextureAndModel(-1750049245, 1393983095, body_part); + else + player->m_pPlayerData->m_pPedClothesDesc->SetTextureAndModel(texture9.c_str(), model.c_str(), body_part); + } + } + CClothes::RebuildPlayer(player, false); +} + +void Player::ChangePlayerModel(std::string& model) +{ + bool custom_skin = std::find(custom_skins::store_vec.begin(), custom_skins::store_vec.end(), model) != custom_skins::store_vec.end(); + if (Ped::ped_json.data.contains(model) || custom_skin) + { + CPlayerPed *player = FindPlayerPed(); + if (Ped::pedspecial_json.data.contains(model) || custom_skin) + { + std::string name; + if (Ped::pedspecial_json.data.contains(model)) + name = Ped::pedspecial_json.data[model].get().c_str(); + else + name = model; + + CStreaming::RequestSpecialChar(1, name.c_str(), PRIORITY_REQUEST); + CStreaming::LoadAllRequestedModels(true); + + player->SetModelIndex(291); + + CStreaming::SetSpecialCharIsDeletable(291); + } + else + { + int imodel = std::stoi(model); + + CStreaming::RequestModel(imodel,eStreamingFlags::PRIORITY_REQUEST); + CStreaming::LoadAllRequestedModels(false); + player->SetModelIndex(imodel); + CStreaming::SetModelIsDeletable(imodel); + } + } +} + +void Player::Main() +{ + static CPlayerPed* player = FindPlayerPed(); + static int hplayer = CPools::GetPedRef(player); + static CPad* pad = player->GetPadFromPlayer(); + + if (ImGui::Button("Copy coordinates", ImVec2(Ui::GetSize(2)))) + { + CVector pos = player->GetPosition(); + std::string text = std::to_string(pos.x) + ", " + std::to_string(pos.y) + ", " + std::to_string(pos.z); + + ImGui::SetClipboardText(text.c_str()); + CHud::SetHelpMessage("Coordinates copied", false, false, false); + } + ImGui::SameLine(); + if (ImGui::Button("Suicide", ImVec2(Ui::GetSize(2)))) + player->m_fHealth = 0.0; + + ImGui::Spacing(); + + if (ImGui::BeginTabBar("Player", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) + { + if (ImGui::BeginTabItem("Checkboxes")) + { + ImGui::Spacing(); + + ImGui::BeginChild("CheckboxesChild"); + + ImGui::Columns(2, 0, false); + + Ui::CheckboxAddress("Bounty on yourself", 0x96913F); + if (Ui::CheckboxWithHint("God mode", &god_mode)) + { + patch::Set(0x96916D, god_mode, false); + player->m_nPhysicalFlags.bBulletProof = god_mode; + player->m_nPhysicalFlags.bCollisionProof = god_mode; + player->m_nPhysicalFlags.bExplosionProof = god_mode; + player->m_nPhysicalFlags.bFireProof = god_mode; + player->m_nPhysicalFlags.bMeeleProof = god_mode; + } + + Ui::CheckboxAddress("Higher cycle jumps", 0x969161); + Ui::CheckboxAddress("Infinite oxygen", 0x96916E); + Ui::CheckboxAddress("Infinite run", 0xB7CEE4); + if (Ui::CheckboxBitFlag("Invisible player", player->m_nPedFlags.bDontRender)) + player->m_nPedFlags.bDontRender = (player->m_nPedFlags.bDontRender == 1) ? 0 : 1; + + ImGui::NextColumn(); + + Ui::CheckboxWithHint("Keep position", &keep_position::state, "Teleport to the position you died from"); + if (Ui::CheckboxBitFlag("Lock control", pad->bPlayerSafe)) + pad->bPlayerSafe = (pad->bPlayerSafe == 1) ? 0 : 1; + + Ui::CheckboxAddress("Mega jump", 0x96916C); + Ui::CheckboxAddress("Mega punch", 0x969173); + Ui::CheckboxAddress("Never get hungry", 0x969174); + + bool never_wanted = patch::Get(0x969171, false); + if (Ui::CheckboxWithHint("Never wanted", &never_wanted)) + CCheat::NotWantedCheat(); + + ImGui::Columns(1); + + ImGui::EndChild(); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Menus")) + { + ImGui::BeginChild("PlayerMenus"); + + Ui::EditReference("Armour", player->m_fArmour, 0, 100, 150); + if (ImGui::CollapsingHeader("Body")) + { + if (player->m_nModelIndex == 0) + { + ImGui::Columns(3, 0, false); + if (ImGui::RadioButton("Fat", &body, 2)) + CCheat::FatCheat(); + + ImGui::NextColumn(); + + if (ImGui::RadioButton("Muscle", &body, 1)) + CCheat::MuscleCheat(); + + ImGui::NextColumn(); + + if (ImGui::RadioButton("Skinny", &body, 0)) + CCheat::SkinnyCheat(); + + ImGui::Columns(1); + } + else + { + ImGui::TextWrapped("You need to be in CJ skin."); + ImGui::Spacing(); + + if (ImGui::Button("Change to CJ skin", ImVec2(Ui::GetSize(1)))) + { + player->SetModelIndex(0); + Util::ClearCharTasksVehCheck(player); + } + } + ImGui::Spacing(); + ImGui::Separator(); + } + + Ui::EditStat("Energy", STAT_ENERGY); + Ui::EditStat("Fat", STAT_FAT); + Ui::EditReference("Health", player->m_fHealth, 0, 100, static_cast(player->m_fMaxHealth)); + Ui::EditStat("Lung capacity", STAT_LUNG_CAPACITY); + Ui::EditStat("Max health", STAT_MAX_HEALTH,0,569,1450); + Ui::EditAddress("Money", 0xB7CE50, -99999999, 0, 99999999); + Ui::EditStat("Muscle", STAT_MUSCLE); + Ui::EditStat("Respect", STAT_RESPECT); + Ui::EditStat("Stamina", STAT_STAMINA); + if (ImGui::CollapsingHeader("Wanted level")) + { + int val = player->m_pPlayerData->m_pWanted->m_nWantedLevel; + + ImGui::Columns(3, 0, false); + ImGui::Text("Min: 0"); + ImGui::NextColumn(); + ImGui::Text("Def: 0"); + ImGui::NextColumn(); + ImGui::Text("Max: 6"); + ImGui::Columns(1); + + ImGui::Spacing(); + + if (ImGui::InputInt("Set value##Wanted level", &val)) + player->CheatWantedLevel(val); + + ImGui::Spacing(); + + if (ImGui::Button("Minimum##Wanted level", Ui::GetSize(3))) + player->CheatWantedLevel(0); + + ImGui::SameLine(); + + if (ImGui::Button("Default##Wanted level", Ui::GetSize(3))) + player->CheatWantedLevel(0); + + ImGui::SameLine(); + + if (ImGui::Button("Maximum##Wanted level", Ui::GetSize(3))) + player->CheatWantedLevel(6); + + ImGui::Spacing(); + ImGui::Separator(); + } + + ImGui::EndChild(); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Appearance")) + { + ImGui::Spacing(); + Ui::CheckboxWithHint("Aim skin changer", &aim_skin_changer, + (("Activate using Aim ped + ") + Ui::GetHotKeyNameString(Menu::hotkey::aim_skin_changer)).c_str()); + + if (ImGui::BeginTabBar("AppearanceTabBar")) + { + if (ImGui::BeginTabItem("Clothes")) + { + ImGui::Spacing(); + + if (player->m_nModelIndex == 0) + { + if (ImGui::Button("Remove clothes", ImVec2(Ui::GetSize()))) + { + CPlayerPed *player = FindPlayerPed(); + + int temp = 0; + for (uint i = 0; i < 18; i++) + player->m_pPlayerData->m_pPedClothesDesc->SetTextureAndModel(temp, temp, i); + + CClothes::RebuildPlayer(player, false); + } + ImGui::Spacing(); + + Ui::DrawImages(clothes_vec, ImVec2(70, 100), search_categories, selected_item, filter, ChangePlayerCloth, nullptr, + [](std::string str) + { + std::stringstream ss(str); + std::string temp; + + getline(ss, temp, '$'); + getline(ss, temp, '$'); + + return temp; + }); + } + else + { + ImGui::TextWrapped("You need to be in CJ skin."); + ImGui::Spacing(); + + if (ImGui::Button("Change to CJ skin", ImVec2(Ui::GetSize(1)))) + { + player->SetModelIndex(0); + Util::ClearCharTasksVehCheck(player); + } + } + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Ped skins")) + { + Ui::DrawImages(Ped::peds_vec, ImVec2(65, 110), Ped::search_categories, Ped::selected_item, Ped::filter, ChangePlayerModel, nullptr, + [](std::string str) {return Ped::ped_json.data[str].get(); }); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Custom skins")) + { + ImGui::Spacing(); + Ui::FilterWithHint("Search", filter, std::string("Total skins: " + std::to_string(custom_skins::store_vec.size())).c_str()); + Ui::ShowTooltip("Place your dff & txd files inside 'modloader/Custom Skins'"); + ImGui::Spacing(); + ImGui::TextWrapped("Note: Your txd & dff names can't exceed 8 characters. Don't change names while the game is running."); + ImGui::Spacing(); + if (modloader_installed) + { + for (std::string name : custom_skins::store_vec) + { + if (custom_skins::filter.PassFilter(name.c_str())) + { + if (ImGui::MenuItem(name.c_str())) + { + ChangePlayerModel(name); + } + } + } + } + else + { + ImGui::TextWrapped("Modloader is not installed. Please install modloader."); + ImGui::Spacing(); + if (ImGui::Button("Download Modloader", ImVec2(Ui::GetSize(1)))) + ShellExecute(NULL, "open", "https://gtaforums.com/topic/669520-mod-loader/", NULL, NULL, SW_SHOWNORMAL); + } + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::EndTabItem(); + } + + ImGui::EndTabBar(); + } +} diff --git a/CheatMenu/Player.h b/CheatMenu/Player.h new file mode 100644 index 0000000..6be2631 --- /dev/null +++ b/CheatMenu/Player.h @@ -0,0 +1,33 @@ +#pragma once +class Player +{ +private: + struct keep_position + { + static bool state; + static CVector pos; + }; + static bool god_mode; + static int body; + static bool aim_skin_changer; + static ImGuiTextFilter filter; + static std::string selected_item; + static std::vector search_categories; + static std::vector> clothes_vec; + + struct custom_skins + { + static std::string dir; + static ImGuiTextFilter filter; + static std::vector store_vec; + }; + static bool modloader_installed; + +public: + static void ChangePlayerCloth(std::string& model); + static void ChangePlayerModel(std::string& model); + Player(); + ~Player(); + static void Main(); +}; + diff --git a/CheatMenu/Teleport.cpp b/CheatMenu/Teleport.cpp new file mode 100644 index 0000000..05b0468 --- /dev/null +++ b/CheatMenu/Teleport.cpp @@ -0,0 +1,239 @@ +#include "pch.h" +#include "Teleport.h" +#include "Menu.h" + +bool Teleport::insert_coord = false; +bool Teleport::quick_teleport = false; +char Teleport::input_buffer[INPUT_BUFFER_SIZE] = ""; +char Teleport::location_buffer[INPUT_BUFFER_SIZE] = ""; + +CVector Teleport::STeleport::pos{ -1, -1, -1 }; +bool Teleport::STeleport::_bool = false; +uint Teleport::STeleport::timer = 0; +ImGuiTextFilter Teleport::filter = ""; +std::vector Teleport::search_categories; +std::string Teleport::selected_item = "All"; + +uint quick_teleport_timer = 0; + +CJson Teleport::json = CJson("teleport"); + +Teleport::Teleport() +{ + + json.LoadJsonData(search_categories, selected_item); + + Events::initGameEvent += [] + { + // Load config data + quick_teleport = config.GetValue("quick_teleport", false); + }; + + Events::processScriptsEvent += [] + { + if ((STeleport::_bool == true) && ((CTimer::m_snTimeInMilliseconds - STeleport::timer) > 500)) + { + CPlayerPed *player = FindPlayerPed(); + + CEntity* player_entity = FindPlayerEntity(-1); + STeleport::pos.z = CWorld::FindGroundZFor3DCoord(Teleport::STeleport::pos.x, Teleport::STeleport::pos.y, STeleport::pos.z + 100.0f, 0, &player_entity) + 1.0f; + + if (player->m_pVehicle) + { + player->m_pVehicle->Teleport(STeleport::pos, false); + } + else + { + player->Teleport(STeleport::pos, false); + } + + STeleport::_bool = false; + Command(CPools::GetPedRef(player), false); + Command(); + } + + if (quick_teleport) + { + if (Ui::HotKeyPressed(Menu::hotkey::quick_tp) + && ((CTimer::m_snTimeInMilliseconds - quick_teleport_timer) > 500)) + { + quick_teleport_timer = CTimer::m_snTimeInMilliseconds; + TeleportPlayer(true); + } + } + }; + + Events::shutdownRwEvent += [] + { + config.SetValue("quick_teleport", quick_teleport); + }; +} + +void Teleport::TeleportPlayer(bool get_marker, CVector* pos, short interior_id) +{ + CPlayerPed* player = FindPlayerPed(); + + if (get_marker) + { + auto target_blip = CRadar::ms_RadarTrace[LOWORD(FrontEndMenuManager.m_nTargetBlipIndex)]; + + + if (target_blip.m_nBlipSprite != RADAR_SPRITE_WAYPOINT) + { + CHud::SetHelpMessage("No blip found", false, false, false); + return; + } + CEntity* player_entity = FindPlayerEntity(-1); + pos = &(target_blip.m_vPosition); + pos->z = CWorld::FindGroundZFor3DCoord(pos->x, pos->y, 1000, 0, &player_entity) + 50.f; + + Teleport::STeleport::pos = *pos; + Teleport::STeleport::timer = CTimer::m_snTimeInMilliseconds; + Teleport::STeleport::_bool = true; + + Command(CPools::GetPedRef(player), true); + } + + CStreaming::LoadScene(&Teleport::STeleport::pos); + CStreaming::LoadSceneCollision(&Teleport::STeleport::pos); + CStreaming::LoadAllRequestedModels(false); + + if (player->m_pVehicle) + { + player->m_pVehicle->Teleport(CVector(pos->x, pos->y, pos->z), false); + Command(CPools::GetVehicleRef(player->m_pVehicle), interior_id); // setvehicleinterior + } + else + { + player->Teleport(CVector(pos->x, pos->y, pos->z), false); + } + + Command(CPools::GetPedRef(player), interior_id); // setcharinterior + Command(interior_id); +} + +void Teleport::TeleportToLocation(std::string& rootkey, std::string& loc_name,std::string& loc) +{ + try { + int interior = 0; + CVector pos; + std::stringstream ss(loc); + std::string temp; + + std::getline(ss, temp, ','); + interior = std::stoi(temp); + + std::getline(ss, temp, ','); + pos.x = std::stof(temp); + + std::getline(ss, temp, ','); + pos.y = std::stof(temp); + + std::getline(ss, temp, ','); + pos.z = std::stof(temp); + + Teleport::TeleportPlayer(false, &pos, static_cast(interior)); + } + catch (...) { + CHud::SetHelpMessage("Invalid location", false, false, false); + } +} + +void Teleport::RemoveTeleportEntry(std::string& category, std::string& key, std::string& val) +{ + if (category == "Custom") + { + json.data["Custom"].erase(key); + CHud::SetHelpMessage("Location removed", false, false, false); + } + else CHud::SetHelpMessage("You can only remove custom location", false, false, false); +} + +void Teleport::Main() +{ + if (ImGui::BeginTabBar("Teleport",ImGuiTabBarFlags_NoTooltip+ImGuiTabBarFlags_FittingPolicyScroll)) + { + ImGui::Spacing(); + if (ImGui::BeginTabItem("Teleport")) + { + ImGui::Spacing(); + if (ImGui::BeginChild("Teleport Child")) + { + ImGui::Columns(2, 0, false); + ImGui::Checkbox("Insert coordinates", &insert_coord); + ImGui::NextColumn(); + Ui::CheckboxWithHint("Quick teleport", &quick_teleport, + (std::string("Teleport to marker using ") + Ui::GetHotKeyNameString(Menu::hotkey::quick_tp)).c_str()); + + ImGui::Columns(1); + ImGui::Spacing(); + + if (insert_coord) + { + CVector pos = FindPlayerPed()->GetPosition(); + + strcpy(input_buffer,(std::to_string(int(pos.x)) + ", " + std::to_string(int(pos.y)) + ", " + std::to_string(int(pos.z))).c_str()); + } + + ImGui::InputTextWithHint("Coordinates", "x, y, z", input_buffer, IM_ARRAYSIZE(input_buffer)); + + ImGui::Spacing(); + + if (ImGui::Button("Teleport to coord", Ui::GetSize(2))) + { + std::stringstream ss(input_buffer); + std::string temp; + CVector pos(0,0,0); + + try { + getline(ss, temp, ','); + pos.x = std::stof(temp); + + getline(ss, temp, ','); + pos.y = std::stof(temp); + + getline(ss, temp, ','); + pos.z = std::stof(temp); + + Teleport::TeleportPlayer(false,&pos); + } + catch (...) { + CHud::SetHelpMessage("Invalid coordinate", false, false, false); + } + } + ImGui::SameLine(); + if (ImGui::Button("Teleport to marker", Ui::GetSize(2))) + Teleport::TeleportPlayer(true); + + ImGui::EndChild(); + } + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Search")) + { + ImGui::Spacing(); + Ui::DrawJSON(json, search_categories, selected_item, filter, &TeleportToLocation, &RemoveTeleportEntry); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Custom")) + { + ImGui::Spacing(); + ImGui::InputTextWithHint("Location", "Groove Street", location_buffer, IM_ARRAYSIZE(input_buffer)); + ImGui::InputTextWithHint("Coordinates", "x, y, z", input_buffer, IM_ARRAYSIZE(input_buffer)); + ImGui::Spacing(); + if (ImGui::Button("Add location", Ui::GetSize())) + { + json.data["Custom"][location_buffer] = ("0, " + std::string(input_buffer)); + } + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } +} + +Teleport::~Teleport() +{ +}; + diff --git a/CheatMenu/Teleport.h b/CheatMenu/Teleport.h new file mode 100644 index 0000000..7c1feff --- /dev/null +++ b/CheatMenu/Teleport.h @@ -0,0 +1,34 @@ +#pragma once +#include +#include "pch.h" + +class Teleport +{ +private: + static bool insert_coord; + static bool quick_teleport; + static char input_buffer[INPUT_BUFFER_SIZE]; + static CJson json; + static ImGuiTextFilter filter; + static std::vector search_categories; + static std::string selected_item; + static char location_buffer[INPUT_BUFFER_SIZE]; + + struct STeleport + { + static bool _bool; + static CVector pos; + static uint timer; + }; + +protected: + Teleport(); + virtual ~Teleport(); +public: + + static void Main(); + static void TeleportPlayer(bool get_marker = false, CVector* pos = &CVector(0,0,0), short interior_id = 0); + static void TeleportToLocation(std::string& rootkey, std::string& loc_name, std::string& loc); + static void RemoveTeleportEntry(std::string& rootkey, std::string& key, std::string& val); + +}; \ No newline at end of file diff --git a/CheatMenu/Ui.cpp b/CheatMenu/Ui.cpp new file mode 100644 index 0000000..fb65f52 --- /dev/null +++ b/CheatMenu/Ui.cpp @@ -0,0 +1,759 @@ +#include "pch.h" +#include "Ui.h" + +std::string Ui::current_hotkey = ""; + +static Ui::JsonPopUpData json_popup; +static Ui::ImgPopUpData img_popup; + +bool Ui::ListBox(const char* label, std::vector& all_items, int& selected) +{ + bool rtn = false; + if (ImGui::BeginCombo(label, all_items[selected].c_str())) + { + for (size_t index = 0; index < all_items.size(); index++) + { + if (selected != index) + { + if (ImGui::MenuItem(all_items[index].c_str())) + { + selected = index; + rtn = true; + } + } + } + ImGui::EndCombo(); + } + return rtn; +} + +bool Ui::ListBoxStr(const char* label, std::vector& all_items, std::string& selected) +{ + bool rtn = false; + if (ImGui::BeginCombo(label, selected.c_str())) + { + for (std::string current_item : all_items) + { + if (current_item != label) + { + if (ImGui::MenuItem(current_item.c_str())) + { + selected = current_item; + rtn = true; + } + } + } + ImGui::EndCombo(); + } + + return rtn; +} + +ImVec2 Ui::GetSize(short count,bool spacing) +{ + if (count == 1) + spacing = false; + + float factor = ImGui::GetStyle().ItemSpacing.x / 2.0f; + float x; + + if (count == 3) + factor = ImGui::GetStyle().ItemSpacing.x / 1.403f; + + if (spacing) + x = ImGui::GetWindowContentRegionWidth() / count - factor; + else + x = ImGui::GetWindowContentRegionWidth() / count; + + return ImVec2(x, ImGui::GetFrameHeight()*1.3f); +} + +void Ui::DrawHeaders(unsortedMap& data) +{ + + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + + short i = 1; + auto colors = ImGui::GetStyle().Colors; + ImVec4 btn_col = colors[ImGuiCol_Button]; + static void* func; + for (auto it = data.begin(); it != data.end(); ++it) + { + const char* btn_text = it->first.c_str(); + + if (btn_text == Globals::header_id) + colors[ImGuiCol_Button] = colors[ImGuiCol_ButtonActive]; + + + if (ImGui::Button(btn_text, GetSize(3, false))) + { + Globals::header_id = btn_text; + func = it->second; + } + + colors[ImGuiCol_Button] = btn_col; + + if (i % 3 != 0) + ImGui::SameLine(); + i++; + } + ImGui::PopStyleVar(); + ImGui::Dummy(ImVec2(0, 10)); + + if (Globals::header_id != "" && func != nullptr) + { + if (ImGui::BeginChild("TABSBAR")) + { + ((void(*)(void))func)(); + ImGui::EndChild(); + } + } +} + +void Ui::ShowTooltip(const char* text) +{ + ImGui::SameLine(); + ImGui::TextDisabled("?"); + + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::Text(text); + ImGui::EndTooltip(); + } +} + +bool Ui::CheckboxWithHint(const char* label, bool* state, const char* hint) +{ + bool rtn = false; + + if (ImGui::Checkbox(label, state)) + rtn = true; + + if (hint != nullptr) + ShowTooltip(hint); + + return rtn; +} + +bool Ui::CheckboxAddress(const char* label, const int addr, const char* hint) +{ + bool rtn = false; + bool state = patch::Get(addr,false); + + if (CheckboxWithHint(label, &state, hint) && addr != NULL) + { + patch::Set(addr, state, false); + rtn = true; + } + + return rtn; +} + +bool Ui::CheckboxAddressEx(const char* label, const int addr, int enabled_val, int disabled_val, const char* hint) +{ + bool rtn = false; + + bool state = false; + int val = 0; + patch::GetRaw(addr, &val, 1, false); + + if (val == enabled_val) + state = true; + + if (CheckboxWithHint(label, &state, hint) && addr != NULL) + { + if (state) + patch::SetRaw(addr, &enabled_val, 1, false); + else + patch::SetRaw(addr, &disabled_val, 1, false); + rtn = true; + } + + return rtn; +} + +bool Ui::CheckboxAddressVar(const char* label, bool val, int addr, const char* hint) +{ + bool rtn = false; + bool state = val; + if (CheckboxWithHint(label, &state, hint)) + { + patch::Set(addr, state, false); + rtn = true; + } + + return rtn; +} + +bool Ui::CheckboxAddressVarEx(const char* label, bool val, int addr, int enabled_val, int disabled_val, const char* hint) +{ + bool rtn = false; + bool state = val; + if (CheckboxWithHint(label, &state, hint)) + { + if (state) + patch::SetRaw(addr, &enabled_val, 1, false); + else + patch::SetRaw(addr, &disabled_val, 1, false); + + rtn = true; + } + + return rtn; +} + +bool Ui::CheckboxBitFlag(const char* label,uint flag, const char* hint) +{ + bool rtn = false; + bool state = (flag == 1) ? true : false; + if (CheckboxWithHint(label, &state, hint)) + { + flag = state ? 1 : 0; + rtn = true; + } + + return rtn; +} + +void Ui::DrawJSON(CJson& json, std::vector& combo_items, std::string& selected_item, ImGuiTextFilter& filter , std::function func_left_click, std::function func_right_click) +{ + ImGui::PushItemWidth(ImGui::GetContentRegionAvailWidth()/2 - 5); + ListBoxStr("##Categories", combo_items, selected_item); + ImGui::SameLine(); + + filter.Draw("##Filter"); + if (strlen(filter.InputBuf) == 0) + { + ImDrawList *drawlist = ImGui::GetWindowDrawList(); + + ImVec2 min = ImGui::GetItemRectMin(); + min.x += ImGui::GetStyle().FramePadding.x; + min.y += ImGui::GetStyle().FramePadding.y; + + drawlist->AddText(min, ImGui::GetColorU32(ImGuiCol_TextDisabled), "Search"); + } + + ImGui::PopItemWidth(); + + ImGui::Spacing(); + + if (ImGui::IsMouseClicked(1)) + json_popup.function = nullptr; + + + ImGui::BeginChild(1); + for (auto root : json.data.items()) + { + if (root.key() == selected_item || selected_item == "All") + { + for (auto _data : root.value().items()) + { + + std::string name = _data.key(); + if (filter.PassFilter(name.c_str())) + { + if (ImGui::MenuItem(name.c_str()) && func_left_click != nullptr) + { + func_left_click(std::string(root.key()),std::string(_data.key()), std::string(_data.value())); + } + + if (ImGui::IsItemClicked(1) && func_right_click != nullptr) + { + json_popup.function = func_right_click; + json_popup.root_key = root.key(); + json_popup.key = name; + json_popup.value = _data.value(); + } + } + } + } + } + + if (json_popup.function != nullptr) + { + if (ImGui::BeginPopupContextWindow()) + { + ImGui::Text(json_popup.key.c_str()); + ImGui::Separator(); + if (ImGui::MenuItem("Remove")) + json_popup.function(json_popup.root_key,json_popup.key,json_popup.value); + + + if (ImGui::MenuItem("Close")) + json_popup.function = nullptr; + + ImGui::EndPopup(); + } + } + ImGui::EndChild(); +} + + +void Ui::EditStat(const char *label, const int stat_id, const int min, const int def, const int max) +{ + if (ImGui::CollapsingHeader(label)) + { + int val = static_cast(CStats::GetStatValue(stat_id)); + + ImGui::Columns(3, 0, false); + ImGui::Text(("Min: " + std::to_string(min)).c_str()); + ImGui::NextColumn(); + ImGui::Text(("Def: " + std::to_string(def)).c_str()); + ImGui::NextColumn(); + ImGui::Text(("Max: " + std::to_string(max)).c_str()); + ImGui::Columns(1); + + ImGui::Spacing(); + + if (ImGui::InputInt(("Set value##" + std::string(label)).c_str(), &val)) + CStats::SetStatValue(stat_id, static_cast(val)); + + ImGui::Spacing(); + + if (ImGui::Button(("Minimum##" + std::string(label)).c_str(), Ui::GetSize(3))) + CStats::SetStatValue(stat_id, static_cast(min)); + + ImGui::SameLine(); + + if (ImGui::Button(("Default##" + std::string(label)).c_str(), Ui::GetSize(3))) + CStats::SetStatValue(stat_id, static_cast(def)); + + ImGui::SameLine(); + + if (ImGui::Button(("Maximum##" + std::string(label)).c_str(), Ui::GetSize(3))) + CStats::SetStatValue(stat_id, static_cast(max)); + + ImGui::Spacing(); + ImGui::Separator(); + } +} + +void Ui::FilterWithHint(const char* label, ImGuiTextFilter& filter, const char* hint) +{ + filter.Draw(label); + + if (strlen(filter.InputBuf) == 0) + { + ImDrawList *drawlist = ImGui::GetWindowDrawList(); + + ImVec2 min = ImGui::GetItemRectMin(); + min.x += ImGui::GetStyle().FramePadding.x; + min.y += ImGui::GetStyle().FramePadding.y; + + drawlist->AddText(min, ImGui::GetColorU32(ImGuiCol_TextDisabled), hint); + } +} + +// clean up the code someday +void Ui::DrawImages(std::vector> &img_vec, ImVec2 image_size, + std::vector& category_vec,std::string& selected_item, ImGuiTextFilter& filter, + std::function on_left_click, std::function on_right_click, + std::function get_name_func, std::function verify_func) +{ + + int images_in_row = static_cast(ImGui::GetWindowContentRegionWidth() / image_size.x); + image_size.x = ImGui::GetWindowContentRegionWidth() / images_in_row - ImGuiStyleVar_ItemSpacing*0.65f; + + int images_count = 1; + + ImGui::Spacing(); + + if (ImGui::IsMouseClicked(1)) + img_popup.function = nullptr; + + ImGui::PushItemWidth(ImGui::GetContentRegionAvailWidth() / 2 - 5); + ListBoxStr("##Categories", category_vec, selected_item); + ImGui::SameLine(); + FilterWithHint("##Filter", filter, "Search"); + + ImGui::Spacing(); + + ImGui::BeginChild("DrawImages"); + for (uint i = 0; i < img_vec.size(); i++) + { + std::string text = img_vec[i]->file_name; + std::string model_name = get_name_func(text); + + if (filter.PassFilter(model_name.c_str()) + && (img_vec[i]->category_name == selected_item || selected_item == "All") + && (verify_func == nullptr || verify_func(text)) + ) + { + void *texture = nullptr; + + if (Globals::renderer == Render_DirectX9) + texture = img_vec[i]->texture9; + else // consider 11 + texture = img_vec[i]->texture11; + + if (ImGui::ImageButton(texture, image_size, ImVec2(0, 0), ImVec2(1, 1), 1, ImVec4(1, 1, 1, 1), ImVec4(1, 1, 1, 1))) + on_left_click(text); + + if (ImGui::IsItemClicked(1) && on_right_click != nullptr) + { + img_popup.function = on_right_click; + img_popup.value = model_name; + } + + if (ImGui::IsItemHovered()) + { + ImDrawList *drawlist = ImGui::GetWindowDrawList(); + + ImVec2 btn_min = ImGui::GetItemRectMin(); + ImVec2 btn_max = ImGui::GetItemRectMax(); + + drawlist->AddRectFilled(btn_min, btn_max, ImGui::GetColorU32(ImGuiCol_ModalWindowDimBg)); + + ImVec2 text_size = ImGui::CalcTextSize(model_name.c_str()); + if (text_size.x < image_size.x) + { + float offsetX = (ImGui::GetItemRectSize().x - text_size.x) / 2; + drawlist->AddText(ImVec2(btn_min.x + offsetX, btn_min.y + 10), ImGui::GetColorU32(ImGuiCol_Text), model_name.c_str()); + } + else + { + std::string buff = ""; + + std::stringstream ss(model_name); + short count = 1; + + while (ss >> buff) + { + text_size = ImGui::CalcTextSize(buff.c_str()); + float offsetX = (ImGui::GetItemRectSize().x - text_size.x) / 2; + drawlist->AddText(ImVec2(btn_min.x + offsetX, btn_min.y + 10 * count), ImGui::GetColorU32(ImGuiCol_Text), buff.c_str()); + ++count; + } + + } + } + + if (images_count % images_in_row != 0) + ImGui::SameLine(0.0, 4.0); + + images_count++; + } + } + + if (img_popup.function != nullptr) + { + if (ImGui::BeginPopupContextWindow()) + { + ImGui::Text(img_popup.value.c_str()); + ImGui::Separator(); + if (ImGui::MenuItem("Remove")) + img_popup.function(img_popup.value); + + + if (ImGui::MenuItem("Close")) + img_popup.function = nullptr; + + ImGui::EndPopup(); + } + } + ImGui::EndChild(); +} + +void Ui::RadioButtonAddress(const char* label, std::vector &named_mem) +{ + size_t btn_in_column = named_mem.size() / 2 -1; + + ImGui::Text(label); + ImGui::Columns(2, 0, false); + + bool state = true; + + for (size_t i = 0; i < named_mem.size(); i++) + { + if (patch::Get(named_mem[i].addr, false)) + state = false; + } + + if (ImGui::RadioButton("None", state)) + { + for (size_t i = 0; i < named_mem.size(); i++) + patch::Set(named_mem[i].addr, false); + } + + for (size_t i = 0; i < named_mem.size(); i++) + { + state = patch::Get(named_mem[i].addr, false); + + if (ImGui::RadioButton(named_mem[i].name.c_str(), state)) + { + for (size_t i = 0; i < named_mem.size(); i++) + patch::Set(named_mem[i].addr, false); + + patch::Set(named_mem[i].addr, true); + } + + if (i == btn_in_column) + ImGui::NextColumn(); + } + ImGui::Columns(1); +} + +void Ui::RadioButtonAddressEx(const char* label, int addr, std::vector &named_val) +{ + size_t btn_in_column = named_val.size() / 2; + + ImGui::Text(label); + ImGui::Columns(2, 0, false); + + int mem_val = 0; + patch::GetRaw(addr, &mem_val, 1, false); + + for (size_t i = 0; i < named_val.size(); i++) + { + if (ImGui::RadioButton(named_val[i].name.c_str(), &mem_val, named_val[i].value)) + patch::SetRaw(addr, &named_val[i].value, 1, false); + + if (i == btn_in_column) + ImGui::NextColumn(); + } + ImGui::Columns(1); +} + +void Ui::EditRadioButtonAddress(const char* label, std::vector &named_mem) +{ + if (ImGui::CollapsingHeader(label)) + { + RadioButtonAddress(label, named_mem); + ImGui::Spacing(); + ImGui::Separator(); + } +} + +void Ui::EditRadioButtonAddressEx(const char* label, int addr, std::vector &named_val) +{ + if (ImGui::CollapsingHeader(label)) + { + RadioButtonAddressEx(label,addr,named_val); + ImGui::Spacing(); + ImGui::Separator(); + } +} + +void Ui::ColorPickerAddress(const char* label, int base_addr, ImVec4&& default_color) +{ + if (ImGui::CollapsingHeader(label)) + { + float cur_color[4]; + cur_color[0] = patch::Get(base_addr, false); + cur_color[1] = patch::Get(base_addr + 1, false); + cur_color[2] = patch::Get(base_addr + 2, false); + cur_color[3] = patch::Get(base_addr + 3,false); + + // 0-255 -> 0-1 + cur_color[0] /= 255; + cur_color[1] /= 255; + cur_color[2] /= 255; + cur_color[3] /= 255; + + if (ImGui::ColorPicker4(std::string("Pick color##" + std::string(label)).c_str(), cur_color)) + { + // 0-1 -> 0-255 + cur_color[0] *= 255; + cur_color[1] *= 255; + cur_color[2] *= 255; + cur_color[3] *= 255; + + patch::Set(base_addr, cur_color[0], false); + patch::Set(base_addr+1, cur_color[1], false); + patch::Set(base_addr+2, cur_color[2], false); + patch::Set(base_addr+3, cur_color[3], false); + } + ImGui::Spacing(); + + if (ImGui::Button("Reset to default", Ui::GetSize())) + { + patch::SetRaw(base_addr, &default_color.w, 1, false); + patch::SetRaw(base_addr + 1, &default_color.x, 1, false); + patch::SetRaw(base_addr + 2, &default_color.y, 1, false); + patch::SetRaw(base_addr + 3, &default_color.z, 1, false); + } + + ImGui::Spacing(); + ImGui::Separator(); + } +} + +void Ui::EditBits(const char *label, const int address, const std::vector& names) +{ + int *mem_val = (int*)address; + + if (ImGui::CollapsingHeader(label)) + { + ImGui::Columns(2, NULL, false); + + for (int i = 0; i < 32; ++i) + { + int mask = 1 << i; + bool state = static_cast(*mem_val & mask); + + if (ImGui::Checkbox(names[i].c_str(), &state)) + *mem_val ^= mask; + + if (i + 1 == 32 / 2) + ImGui::NextColumn(); + } + ImGui::Columns(1); + + ImGui::Spacing(); + ImGui::Separator(); + } +} + +void Ui::EditFloat(const char *label, const int address, const float min, const float def, const float max, const float mul) +{ + if (ImGui::CollapsingHeader(label)) + { + float val = patch::Get(address, false)*mul; + + int items = 3; + + if (min == def) + items = 2; + + ImGui::Columns(items, 0, false); + + ImGui::Text(("Min: " + std::to_string(min)).c_str()); + + if (items == 3) + { + ImGui::NextColumn(); + ImGui::Text(("Def: " + std::to_string(def)).c_str()); + } + + ImGui::NextColumn(); + ImGui::Text(("Max: " + std::to_string(max)).c_str()); + ImGui::Columns(1); + + ImGui::Spacing(); + + int size = ImGui::GetFrameHeight(); + + if (ImGui::InputFloat(("##" + std::string(label)).c_str(), &val)) + patch::Set(address, val/mul, false); + + ImGui::SameLine(0.0, 4.0); + if (ImGui::Button("-",ImVec2(size, size))) + { + val -= 1; + patch::Set(address, val / mul, false); + } + ImGui::SameLine(0.0, 4.0); + if (ImGui::Button("+",ImVec2(size, size))) + { + val += 1; + patch::Set(address, val / mul, false); + } + ImGui::SameLine(0.0, 4.0); + ImGui::Text("Set"); + + + ImGui::Spacing(); + + if (ImGui::Button(("Minimum##" + std::string(label)).c_str(), Ui::GetSize(items))) + patch::Set(address, min/mul, false); + + if (items == 3) + { + ImGui::SameLine(); + + if (ImGui::Button(("Default##" + std::string(label)).c_str(), Ui::GetSize(items))) + patch::Set(address, def/mul, false); + } + + ImGui::SameLine(); + + if (ImGui::Button(("Maximum##" + std::string(label)).c_str(), Ui::GetSize(items))) + patch::Set(address, max/mul, false); + + ImGui::Spacing(); + ImGui::Separator(); + } +} + +void Ui::HotKey(const char* label, int* key_array) +{ + bool active = current_hotkey == label; + + if (active) + { + ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetStyle().Colors[ImGuiCol_ButtonActive]); + + for (int key = 2; key != 90; ++key) + { + if (KeyPressed(key)) + { + key_array[0] = key; + break; + } + } + + for (int key = 90; key != 2; --key) + { + if (KeyPressed(key)) + { + key_array[1] = key; + break; + } + } + } + + std::string text = key_names[key_array[0]-1]; + + if (key_array[0] != key_array[1]) + text += (" + " + key_names[key_array[1]-1]); + + if (ImGui::Button((text + std::string("##") + std::string(label)).c_str(), ImVec2(ImGui::GetWindowContentRegionWidth() / 3, ImGui::GetFrameHeight()))) + { + if (active) + current_hotkey = ""; + else + current_hotkey = label;; + } + ImGui::SameLine(); + ImGui::Text(label); + + if (active) + ImGui::PopStyleColor(); + + if (!(ImGui::IsWindowFocused() || ImGui::IsItemVisible())) + current_hotkey = ""; +} + +bool Ui::HotKeyPressed(int *hotkey) +{ + return current_hotkey == "" && KeyPressed(hotkey[0]) && KeyPressed(hotkey[1]); +} + +std::string Ui::GetHotKeyNameString(int *hotkey) +{ + std::string text = key_names[hotkey[0] - 1]; + + if (hotkey[0] != hotkey[1]) + text += (" + " + key_names[hotkey[1] - 1]); + + return text; +} + + +bool Ui::ColorButton(int color_id, std::vector &color, ImVec2 size) +{ + bool rtn = false; + std::string label = "Color " + std::to_string(color_id); + + if (ImGui::ColorButton(label.c_str(), ImVec4(color[0], color[1], color[2], 1), 0, size)) + rtn = true; + + if (ImGui::IsItemHovered()) + { + ImDrawList *drawlist = ImGui::GetWindowDrawList(); + drawlist->AddRectFilled(ImGui::GetItemRectMin(), ImGui::GetItemRectMax(), ImGui::GetColorU32(ImGuiCol_ModalWindowDimBg)); + } + + return rtn; +} diff --git a/CheatMenu/Ui.h b/CheatMenu/Ui.h new file mode 100644 index 0000000..5cb072d --- /dev/null +++ b/CheatMenu/Ui.h @@ -0,0 +1,169 @@ +#pragma once +#include "pch.h" + +class Ui +{ + +private: + static std::string current_hotkey; +public: + struct NamedMemory { + std::string name; + int addr; + }; + + struct NamedValue { + std::string name; + int value; + }; + + struct JsonPopUpData + { + std::function function; + std::string key; + std::string root_key; + std::string value; + }; + + struct ImgPopUpData + { + std::function function; + std::string value; + }; + + static bool ColorButton(int color_id, std::vector &color, ImVec2 size); + static bool CheckboxAddress(const char* label, const int addr = NULL, const char* hint = nullptr); + static bool CheckboxAddressEx(const char* label, const int addr = NULL, int enabled_val = 1, int disabled_val = 0, const char* hint = nullptr); + static bool CheckboxAddressVar(const char* label, bool val, int addr, const char* hint = nullptr); + static bool CheckboxAddressVarEx(const char* label, bool val, int addr, int enabled_val, int disabled_val, const char* hint = nullptr); + static bool CheckboxBitFlag(const char* label, uint flag, const char* hint = nullptr); + static bool CheckboxWithHint(const char* label, bool* state, const char* hint = nullptr); + static void DrawHeaders(unsortedMap& data); + + static void DrawJSON(CJson& json, std::vector& combo_items, std::string& selected_item, ImGuiTextFilter& filter, + std::function func_left_click, std::function func_right_click); + static void DrawImages(std::vector> &img_vec, ImVec2 image_size, + std::vector& category_vec, std::string& selected_item, ImGuiTextFilter& filter, + std::function on_left_click, std::function on_right_click, + std::function get_name_func, std::function verify_func = nullptr); + + template + static void EditAddress(const char *label,const int address, const int min = 0, const int def = 0, const int max = 100); + static void EditBits(const char *label, const int address, const std::vector& names); + static void EditFloat(const char *label, const int address, const float min, const float def, const float max, const float mul = 1); + template + static void EditReference(const char *label,T &address, const int min = 0, const int def = 0, const int max = 100); + static void EditRadioButtonAddress(const char* label, std::vector &named_mem); + static void EditRadioButtonAddressEx(const char* label, int addr, std::vector &named_val); + static void EditStat(const char *label, const int stat_id, const int min = 0, const int def = 0, const int max = 1000); + + static void FilterWithHint(const char* label, ImGuiTextFilter& filter, const char* hint); + + static ImVec2 GetSize(short count = 1, bool spacing = true); + + static void HotKey(const char* label, int* key_array); + static bool HotKeyPressed(int *hotkey); + static std::string GetHotKeyNameString(int *hotkey); + + static bool ListBox(const char* label, std::vector& all_items, int& selected); + static bool ListBoxStr(const char* label, std::vector& all_items, std::string& selected); + + static void RadioButtonAddress(const char* label, std::vector &named_mem); + static void RadioButtonAddressEx(const char* label, int addr, std::vector &named_val); + + static void ColorPickerAddress(const char* label, int base_addr, ImVec4&& default_color); + static void ShowTooltip(const char* text); +}; + +template +void Ui::EditAddress(const char *label, const int address, const int min, const int def, const int max) +{ + if (ImGui::CollapsingHeader(label)) + { + int val = patch::Get(address, false);; + + int items = 3; + + if (min == def) + items = 2; + + ImGui::Columns(items,0,false); + ImGui::Text(("Min: " + std::to_string(min)).c_str()); + + if (items == 3) + { + ImGui::NextColumn(); + ImGui::Text(("Def: " + std::to_string(def)).c_str()); + } + + ImGui::NextColumn(); + ImGui::Text(("Max: " + std::to_string(max)).c_str()); + ImGui::Columns(1); + + ImGui::Spacing(); + + if (ImGui::InputInt(("Set value##" + std::string(label)).c_str(), &val)) + patch::Set(address, val, false); + + ImGui::Spacing(); + + if (ImGui::Button(("Minimum##" + std::string(label)).c_str(), Ui::GetSize(items))) + patch::Set(address, min, false); + + if (items == 3) + { + ImGui::SameLine(); + + if (ImGui::Button(("Default##" + std::string(label)).c_str(), Ui::GetSize(3))) + patch::Set(address, def, false); + } + + ImGui::SameLine(); + + if (ImGui::Button(("Maximum##" + std::string(label)).c_str(), Ui::GetSize(items))) + patch::Set(address, max, false); + + ImGui::Spacing(); + ImGui::Separator(); + } +} + +template +void Ui::EditReference(const char *label,T &address, const int min, const int def, const int max) +{ + if (ImGui::CollapsingHeader(label)) + { + int val = static_cast(address); + + ImGui::Columns(3, 0, false); + ImGui::Text(("Min: " + std::to_string(min)).c_str()); + ImGui::NextColumn(); + ImGui::Text(("Def: " + std::to_string(def)).c_str()); + ImGui::NextColumn(); + ImGui::Text(("Max: " + std::to_string(max)).c_str()); + ImGui::Columns(1); + + ImGui::Spacing(); + + if (ImGui::InputInt(("Set value##" + std::string(label)).c_str(), &val)) + address = static_cast(val); + + ImGui::Spacing(); + + if (ImGui::Button(("Minimum##" + std::string(label)).c_str(), Ui::GetSize(3))) + address = static_cast(min); + + ImGui::SameLine(); + + if (ImGui::Button(("Default##" + std::string(label)).c_str(), Ui::GetSize(3))) + address = static_cast(def); + + ImGui::SameLine(); + + if (ImGui::Button(("Maximum##" + std::string(label)).c_str(), Ui::GetSize(3))) + address = static_cast(max); + + ImGui::Spacing(); + ImGui::Separator(); + } +} \ No newline at end of file diff --git a/CheatMenu/Util.cpp b/CheatMenu/Util.cpp new file mode 100644 index 0000000..4129ab8 --- /dev/null +++ b/CheatMenu/Util.cpp @@ -0,0 +1,191 @@ +#include "pch.h" +#include "Util.h" +#include "external/imgui/stb_image.h" + +void Util::ClearCharTasksVehCheck(CPed* ped) +{ + uint hped = CPools::GetPedRef(ped); + uint hveh = NULL; + + if (Command(hped)) + hveh = CPools::GetVehicleRef(ped->m_pVehicle); + + Command(hped); + + if (hveh) + Command(hped, hveh); +} + +void Util::LoadTexturesInDirRecursive(const char * path, const char * file_ext,std::vector& category_vec, std::vector> &store_vec) +{ + std::string folder = ""; + for (auto &p : std::experimental::filesystem::recursive_directory_iterator(path)) + { + + if (p.path().extension() == file_ext) + { + store_vec.push_back(std::make_unique()); + HRESULT hr = -1; + + if (Globals::renderer == Render_DirectX9) + hr = D3DXCreateTextureFromFileA(GetD3DDevice(), p.path().string().c_str(), &store_vec.back().get()->texture9); + + if (Globals::renderer == Render_DirectX11) + { + if (LoadTextureFromFileDx11(p.path().string().c_str(), &store_vec.back().get()->texture11)) + hr = S_OK; + } + + + if (hr == S_OK) + { + store_vec.back().get()->file_name = p.path().stem().string(); + store_vec.back().get()->category_name = folder; + } + else + { + flog << "Couldn't load image " << p.path().stem().string() << std::endl; + store_vec.pop_back(); + } + } + else + { + folder = p.path().stem().string(); + category_vec.push_back(folder); + } + } +} + +bool Util::LoadTextureFromFileDx11(const char* filename, ID3D11ShaderResourceView** out_srv) +{ + // Load from disk into a raw RGBA buffer + int image_width = 0; + int image_height = 0; + unsigned char* image_data = stbi_load(filename, &image_width, &image_height, NULL, 4); + if (image_data == NULL) + return false; + + // Create texture + D3D11_TEXTURE2D_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Width = image_width; + desc.Height = image_height; + desc.MipLevels = 1; + desc.ArraySize = 1; + desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + desc.SampleDesc.Count = 1; + desc.Usage = D3D11_USAGE_DEFAULT; + desc.BindFlags = D3D11_BIND_SHADER_RESOURCE; + desc.CPUAccessFlags = 0; + + ID3D11Texture2D *pTexture = NULL; + D3D11_SUBRESOURCE_DATA subResource; + subResource.pSysMem = image_data; + subResource.SysMemPitch = desc.Width * 4; + subResource.SysMemSlicePitch = 0; + + Globals::device11->CreateTexture2D(&desc, &subResource, &pTexture); + + // Create texture view + D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc; + ZeroMemory(&srvDesc, sizeof(srvDesc)); + srvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + srvDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; + srvDesc.Texture2D.MipLevels = desc.MipLevels; + srvDesc.Texture2D.MostDetailedMip = 0; + Globals::device11->CreateShaderResourceView(pTexture, &srvDesc, out_srv); + pTexture->Release(); + + stbi_image_free(image_data); + + return true; +} + +bool Util::IsOnMission() +{ + return FindPlayerPed()->CanPlayerStartMission() && !*(patch::Get(0x5D5380, false) + CTheScripts::OnAMissionFlag); +} + +std::string Util::GetLocationName(CVector *pos) +{ + int hplayer = CPools::GetPedRef(FindPlayerPed()); + int interior = 0; + Command(&interior); + + std::string town = "San Andreas"; + int city; + Command(&hplayer, &city); + + switch (city) + { + case 0: + town = "CS"; + break; + case 1: + town = "LS"; + break; + case 2: + town = "SF"; + break; + case 3: + town = "LV"; + break; + } + + if (interior == 0) + return CTheZones::FindSmallestZoneForPosition(*pos, true)->GetTranslatedName() + std::string(", ") + town; + else + return std::string("Interior ") + std::to_string(interior) + ", " + town; + +} + +int Util::GetLargestGangInZone() +{ + int gang_id = 0, max_density = 0; + + for (int i = 0; i != 10; ++i) + { + CVector pos = FindPlayerPed()->GetPosition(); + CZone *zone = &CZone(); + + CZoneExtraInfo *zone_info = CTheZones::GetZoneInfo(&pos, &zone); + int density = zone_info->m_nGangDensity[i]; + + if (density > max_density) + { + max_density = density; + gang_id = i; + } + } + + return gang_id; +} + +// partial implemention of opcode 0AB5 (STORE_CLOSEST_ENTITIES) +// https://github.com/cleolibrary/CLEO4/blob/916d400f4a731ba1dd0ff16e52bdb056f42b7038/source/CCustomOpcodeSystem.cpp#L1671 +CVehicle* Util::GetClosestVehicle(CPlayerPed* player) +{ + CPedIntelligence *pedintel; + if (player && (pedintel = player->m_pIntelligence)) + { + CVehicle *veh = nullptr; + for (int i = 0; i < 16; i++) + { + veh = (CVehicle*)pedintel->m_vehicleScanner.m_apEntities[i]; + if (veh && !veh->m_nVehicleFlags.bFadeOut) + break; + veh = nullptr; + } + + return veh; + } + return nullptr; +} + +void Util::RainbowValues(int &r, int&g, int &b, float speed) +{ + int timer = CTimer::m_snTimeInMilliseconds/150; + r = sin(timer * speed) * 127 + 128; + g = sin(timer * speed + 2) * 127 + 128; + b = sin(timer * speed + 4) * 127 + 128; +} \ No newline at end of file diff --git a/CheatMenu/Util.h b/CheatMenu/Util.h new file mode 100644 index 0000000..0e76baa --- /dev/null +++ b/CheatMenu/Util.h @@ -0,0 +1,16 @@ +#pragma once +class Util +{ +private: + static bool LoadTextureFromFileDx11(const char* filename, ID3D11ShaderResourceView** out_srv); + +public: + static void ClearCharTasksVehCheck(CPed* ped); + static CVehicle* GetClosestVehicle(CPlayerPed* player); + static int GetLargestGangInZone(); + static void LoadTexturesInDirRecursive(const char * path, const char * file_ext, std::vector& category_vec, std::vector> &store_vec); + static bool IsOnMission(); + static std::string GetLocationName(CVector *pos); + static void RainbowValues(int &r, int&g, int &b, float speed); +}; + diff --git a/CheatMenu/VKeys.h b/CheatMenu/VKeys.h new file mode 100644 index 0000000..62ccf97 --- /dev/null +++ b/CheatMenu/VKeys.h @@ -0,0 +1,209 @@ +#pragma once + +#define VK_KEY_0 0x30 +#define VK_KEY_1 0x31 +#define VK_KEY_2 0x32 +#define VK_KEY_3 0x33 +#define VK_KEY_4 0x34 +#define VK_KEY_5 0x35 +#define VK_KEY_6 0x36 +#define VK_KEY_7 0x37 +#define VK_KEY_8 0x38 +#define VK_KEY_9 0x39 +#define VK_KEY_A 0x41 +#define VK_KEY_B 0x42 +#define VK_KEY_C 0x43 +#define VK_KEY_D 0x44 +#define VK_KEY_E 0x45 +#define VK_KEY_F 0x46 +#define VK_KEY_G 0x47 +#define VK_KEY_H 0x48 +#define VK_KEY_I 0x49 +#define VK_KEY_J 0x4A +#define VK_KEY_K 0x4B +#define VK_KEY_L 0x4C +#define VK_KEY_M 0x4D +#define VK_KEY_N 0x4E +#define VK_KEY_O 0x4F +#define VK_KEY_P 0x50 +#define VK_KEY_Q 0x51 +#define VK_KEY_R 0x52 +#define VK_KEY_S 0x53 +#define VK_KEY_T 0x54 +#define VK_KEY_U 0x55 +#define VK_KEY_V 0x56 +#define VK_KEY_W 0x57 +#define VK_KEY_X 0x58 +#define VK_KEY_Y 0x59 +#define VK_KEY_Z 0x5A + + +static std::string key_names[] +{ + "LMB", + "RMB", + "Cancel", + "MMB", + "X1MB", + "X2MB", + "Unknown1", + "Back", + "Tab", + "Reserved1", + "Reserved2", + "Clear", + "Enter", + "Unknown2", + "Unknown3", + "Shift", + "Ctrl", + "Alt", + "Pause", + "Capslock", + "IME", + "IME2", + "IME3", + "Unknown4", + "IME4", + "Unknown5", + "Esc", + "IME5" + "IME6", + "IME7", + "IME8", + "IME9", + "Space", + "Pup", + "Pdown", + "End", + "Home", + "Left", + "Up", + "Right", + "Down", + "Select", + "Print", + "Execute", + "Print Screen", + "INS", + "Del", + "Help", + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "Unknown6", + "Unknown7", + "Unknown8", + "Unknown9", + "Unknown10", + "Unknown11", + "Unknown12", + "A", + "B", + "C", + "D", + "E", + "F", + "G", + "H", + "I", + "J", + "K", + "L", + "M", + "N", + "O", + "P", + "Q", + "R", + "S", + "T", + "U", + "V", + "W", + "X", + "Y", + "Z", + "LWin", + "RWin", + "Apps", + "Unknown11", + "Sleep", + "Numpad 0", + "Numpad 1", + "Numpad 2", + "Numpad 3", + "Numpad 4", + "Numpad 5", + "Numpad 6", + "Numpad 7", + "Numpad 8", + "Numpad 9", + "Multiply", + "Add", + "Separator", + "Substract", + "Decimal", + "Divide", + "F1", + "F2", + "F3", + "F4", + "F5", + "F6", + "F7", + "F8", + "F9", + "F10", + "F11", + "F12", + "F13", + "F14", + "F15", + "F16", + "F17", + "F18", + "F19", + "F20", + "F21", + "F22", + "F23", + "F24", + "Unknown12", + "Unknown13", + "Unknown14", + "Unknown15", + "Unknown16", + "Unknown17", + "Unknown18", + "Numlock", + "Scroll", + "Unknown19", + "Unknown20", + "Unknown21", + "Unknown22", + "Unknown23", + "Unknown24", + "Unknown25", + "Unknown26", + "Unknown27", + "Unknown28", + "Unknown29", + "Unknown30", + "Unknown31", + "Unknown32", + "Unknown33", + "LShift", + "RShift", + "LCtrl", + "RCtrl", + "LMenu", + "RMenu" +}; \ No newline at end of file diff --git a/CheatMenu/Vehicle.cpp b/CheatMenu/Vehicle.cpp new file mode 100644 index 0000000..dff4700 --- /dev/null +++ b/CheatMenu/Vehicle.cpp @@ -0,0 +1,1144 @@ +#include "pch.h" +#include "Vehicle.h" + +bool Vehicle::dont_fall_bike = false; +bool Vehicle::veh_engine = false; +bool Vehicle::veh_heavy = false; +bool Vehicle::veh_invisible = false; +bool Vehicle::veh_lights = false; +bool Vehicle::veh_no_dmg = false; +bool Vehicle::veh_watertight = false; + +bool Vehicle::lock_speed = false; +float Vehicle::lock_speed_val = 0; + +int Vehicle::door_menu_button = 0; +std::string Vehicle::door_names[6] = { "Hood","Boot","Front left door","Front right door","Rear left door","Rear right door" }; + +std::map Vehicle::vehicle_ide; +std::vector> Vehicle::carcols_color_values; +std::map> Vehicle::carcols_car_data; + +int Vehicle::color::radio_btn = 1; +bool Vehicle::color::show_all = false; +bool Vehicle::color::material_filter = true; +float Vehicle::color::color_picker[3]{ 0,0,0 }; + +ImGuiTextFilter Vehicle::spawner::filter = ""; +std::vector Vehicle::spawner::search_categories; +std::vector> Vehicle::spawner::image_vec; +std::string Vehicle::spawner::selected_item = "All"; +bool Vehicle::spawner::spawn_inside = true; +bool Vehicle::spawner::spawn_in_air = true; +char Vehicle::spawner::license_text[9] = ""; + +ImGuiTextFilter Vehicle::texture9::filter = ""; +std::vector Vehicle::texture9::search_categories; +std::vector> Vehicle::texture9::image_vec; +std::string Vehicle::texture9::selected_item = "All"; + +ImGuiTextFilter Vehicle::tune::filter = ""; +std::vector Vehicle::tune::search_categories; +std::vector> Vehicle::tune::image_vec; +std::string Vehicle::tune::selected_item = "All"; + +float Vehicle::neon::color_picker[3]{ 0,0,0 }; +bool Vehicle::neon::rainbow = false; +uint Vehicle::neon::rainbow_timer = 0; +bool Vehicle::neon::traffic = false; +uint Vehicle::neon::traffic_timer = 0; +std::uniform_int_distribution<> Vehicle::neon::random_val(0,255); + +bool Vehicle::unlimited_nitro::enabled = false; +bool Vehicle::unlimited_nitro::comp_added = false; + +static std::vector(handling_flag_names) = // 32 flags +{ + "1G_BOOST","2G_BOOST","NPC_ANTI_ROLL","NPC_NEUTRAL_HANDL","NO_HANDBRAKE","STEER_REARWHEELS","HB_REARWHEEL_STEER","ALT_STEER_OPT", + "WHEEL_F_NARROW2","WHEEL_F_NARROW","WHEEL_F_WIDE","WHEEL_F_WIDE2","WHEEL_R_NARROW2","WHEEL_R_NARROW","WHEEL_R_WIDE","WHEEL_R_WIDE2", + "HYDRAULIC_GEOM","HYDRAULIC_INST","HYDRAULIC_NONE","NOS_INST","OFFROAD_ABILITY","OFFROAD_ABILITY2","HALOGEN_LIGHTS","PROC_REARWHEEL_1ST", + "USE_MAXSP_LIMIT","LOW_RIDER","STREET_RACER","SWINGING_CHASSIS","Unused 1","Unused 2","Unused 3","Unused 4" +}; + +static std::vector(model_flag_names) = // 32 flags +{ + "IS_VAN","IS_BUS","IS_LOW","IS_BIG","REVERSE_BONNET","HANGING_BOOT","TAILGATE_BOOT","NOSWING_BOOT","NO_DOORS","TANDEM_SEATS", + "SIT_IN_BOAT","CONVERTIBLE","NO_EXHAUST","DOUBLE_EXHAUST","NO1FPS_LOOK_BEHIND","FORCE_DOOR_CHECK","AXLE_F_NOTILT","AXLE_F_SOLID","AXLE_F_MCPHERSON", + "AXLE_F_REVERSE","AXLE_R_NOTILT","AXLE_R_SOLID","AXLE_R_MCPHERSON","AXLE_R_REVERSE","IS_BIKE","IS_HELI","IS_PLANE","IS_BOAT","BOUNCE_PANELS", + "DOUBLE_RWHEELS","FORCE_GROUND_CLEARANCE","IS_HATCHBAC1K" +}; + +Vehicle::Vehicle() +{ + Events::initGameEvent += [] + { + std::string dir_path = (std::string(".\\CheatMenu\\vehicles\\images\\")).c_str(); + Util::LoadTexturesInDirRecursive(dir_path.c_str(), ".jpg", spawner::search_categories, spawner::image_vec); + + dir_path = (std::string(".\\CheatMenu\\vehicles\\components\\")).c_str(); + Util::LoadTexturesInDirRecursive(dir_path.c_str(), ".jpg", tune::search_categories, tune::image_vec); + + dir_path = (std::string(".\\CheatMenu\\vehicles\\paintjobs\\")).c_str(); + Util::LoadTexturesInDirRecursive(dir_path.c_str(), ".png", texture9::search_categories, texture9::image_vec); + + ParseVehiclesIDE(); + ParseCarcolsDAT(); + }; + + Events::processScriptsEvent += [this] + { + uint timer = CTimer::m_snTimeInMilliseconds; + + static CPlayerPed *player = FindPlayerPed(); + static int hplayer = CPools::GetPedRef(player); + + if (Command(hplayer)) + { + CVehicle *veh = player->m_pVehicle; + int hveh = CPools::GetVehicleRef(veh); + + Command(hveh, !veh_engine); + Command(hveh, veh_heavy); + Command(hplayer, !dont_fall_bike); + Command(hveh, veh_watertight); + veh->m_bIsVisible = !veh_invisible; + + if (veh_no_dmg) + Command(hveh, false); + + if (unlimited_nitro::enabled && player->m_pVehicle->m_nVehicleSubClass == VEHICLE_AUTOMOBILE) + { + patch::Set(0x969165, 0, true); // All cars have nitro + patch::Set(0x96918B, 0, true); // All taxis have nitro + + if (KeyPressed(VK_LBUTTON)) + { + if (!unlimited_nitro::comp_added) + { + AddComponent("1010", false); + unlimited_nitro::comp_added = true; + } + } + else + { + if (unlimited_nitro::comp_added) + { + RemoveComponent("1010", false); + unlimited_nitro::comp_added = false; + } + } + } + + if (lock_speed) + Command(hveh, lock_speed_val); + + if (neon::rainbow && timer - neon::rainbow_timer > 50) + { + int red, green, blue; + + Util::RainbowValues(red, green, blue, 0.25); + NeonAPI::InstallNeon(veh, red, green, blue); + neon::rainbow_timer = timer; + } + } + + // Traffic neons + if (neon::traffic && timer - neon::traffic_timer > 1000) + { + for (CVehicle *veh : CPools::ms_pVehiclePool) + { + int chance = 0; + + if (veh->m_nVehicleClass == CLASS_NORMAL) // Normal + { + std::uniform_int_distribution<> class_random(1,20); // 5% + chance = class_random(gen); + } + + if (veh->m_nVehicleClass == CLASS_RICHFAMILY) // Rich family + { + std::uniform_int_distribution<> class_random(1, 5); // 20% + chance = class_random(gen); + } + + if (veh->m_nVehicleClass == CLASS_EXECUTIVE) // Executive + { + std::uniform_int_distribution<> class_random(1, 3); // 33% + chance = class_random(gen); + } + + if (chance == 1 && !IsNeonInstalled(veh) && veh->m_pDriver != player) + InstallNeon(veh, Vehicle::neon::random_val(gen), Vehicle::neon::random_val(gen), Vehicle::neon::random_val(gen)); + } + neon::traffic_timer = timer; + } + }; +} + + +void Vehicle::AddComponent(const std::string& component, const bool display_message) +{ + try { + CPlayerPed *player = FindPlayerPed(); + int icomp = std::stoi(component); + int hveh = CPools::GetVehicleRef(player->m_pVehicle); + + CStreaming::RequestModel(icomp,eStreamingFlags::PRIORITY_REQUEST); + CStreaming::LoadAllRequestedModels(false); + player->m_pVehicle->AddVehicleUpgrade(icomp); + CStreaming::SetModelIsDeletable(icomp); + + if (display_message) + CHud::SetHelpMessage("Component added", false, false, false); + } + catch (...) + { + flog << "Failed to add " << component << " to vehicle." << std::endl; + } +} + + +void Vehicle::RemoveComponent(const std::string& component, const bool display_message) +{ + try { + CPlayerPed *player = FindPlayerPed(); + int icomp = std::stoi(component); + int hveh = CPools::GetVehicleRef(player->m_pVehicle); + + player->m_pVehicle->RemoveVehicleUpgrade(icomp); + + if (display_message) + CHud::SetHelpMessage("Component removed", false, false, false); + } + catch (...) + { + flog << "Failed to remove " << component << " from vehicle." << std::endl; + } +} + +// Why did I do this shit? +int Vehicle::GetRandomTrainIdForModel(int model) +{ + static int train_ids[] = { + 8,9, // model 449 + 0,3,6,10,12,13, // model 537 + 1,5,15 // model 538 + }; + int _start = 0, _end = 0; + + switch (model) + { + case 449: + _start = 0; + _end = 1; + break; + case 537: + _start = 2; + _end = 7; + break; + case 538: + _start = 8; + _end = 10; + break; + default: + CHud::SetHelpMessage("Invalid train model", false, false, false); + return -1; + } + + std::uniform_int_distribution<> random(_start, _end); + return train_ids[random(gen)]; +} + +// Get vehicle HandlingId +void Vehicle::ParseVehiclesIDE() +{ + std::string file_path = std::string(paths::GetGameDirPathA()) + "/data/vehicles.ide"; + + if (std::experimental::filesystem::exists(file_path)) + { + std::ifstream file(file_path); + std::string line; + + while (getline(file, line)) + { + if (line[0] <= '0' || line[0] >= '9') + continue; + + try + { + std::string temp; + std::stringstream ss(line); + + // model + getline(ss, temp, ','); + + int model = std::stoi(temp); + + // modelname, txd, type, handlingId + getline(ss, temp, ','); + getline(ss, temp, ','); + getline(ss, temp, ','); + getline(ss, temp, ','); + + temp.erase(std::remove_if(temp.begin(), temp.end(), ::isspace), temp.end()); + + vehicle_ide[model] = temp; + } + catch (...) + { + flog << "Error occured while parsing line, " << line << std::endl; + } + } + + file.close(); + } + else flog << "Vehicle.ide file not found"; +} + +void Vehicle::ParseCarcolsDAT() +{ + std::string file_path = std::string(paths::GetGameDirPathA()) + "/data/carcols.dat"; + + if (std::experimental::filesystem::exists(file_path)) + { + std::ifstream file(file_path); + std::string line; + + bool car_section = false; + bool col_section = false; + int count = 0; + while (getline(file, line)) + { + if (line[0] == '#' || line == "") + continue; + + if (line[0] == 'c' && line[1] == 'a' && line[2] == 'r') + { + car_section = true; + continue; + } + + if (line[0] == 'c' && line[1] == 'o' && line[2] == 'l') + { + col_section = true; + continue; + } + + if (line[0] == 'e' && line[1] == 'n' && line[2] == 'd') + { + car_section = false; + col_section = false; + continue; + } + + if (col_section) + { + try + { + std::string temp; + std::stringstream ss(line); + + std::replace(temp.begin(), temp.end(), '.', ','); // fix one instance where . is used instead of , + + // red, green, blue + getline(ss, temp, ','); + int red = std::stoi(temp); + + getline(ss, temp, ','); + int green = std::stoi(temp); + + getline(ss, temp, ','); + int blue = std::stoi(temp); + + std::vector color = { red / 255.0f,green / 255.0f,blue / 255.0f }; + carcols_color_values.push_back(color); + + ++count; + } + catch (...) + { + flog << "Error occured while parsing car line, " << line << std::endl; + } + } + + if (car_section) + { + std::string temp; + std::stringstream ss(line); + + getline(ss, temp, ','); + std::string name = temp; + while (getline(ss, temp, ',')) + { + try + { + std::for_each(name.begin(), name.end(), [](char & c) { + c = ::toupper(c); + }); + + int val = std::stoi(temp); + if (!(std::find(carcols_car_data[name].begin(), carcols_car_data[name].end(), val) != carcols_car_data[name].end())) + carcols_car_data[name].push_back(val); + } + catch (...) + { + flog << "Error occured while parsing car line, " << line << std::endl; + } + } + } + } + + file.close(); + } + else flog << "Vehicle.ide file not found"; +} + +void Vehicle::SpawnVehicle(std::string &smodel) +{ + CPlayerPed *player = FindPlayerPed(); + int hplayer = CPools::GetPedRef(player); + + int imodel = std::stoi(smodel); + CVehicle *veh = nullptr; + + int interior = 0; + Command(hplayer, &interior); + + if (Command(imodel)) + { + CVector pos = player->GetPosition(); + int speed = 0; + + if (Command(hplayer) && spawner::spawn_inside) + { + int hveh = 0; + Command(hplayer, &hveh); + CVehicle *pveh = CPools::GetVehicle(hveh); + pos = pveh->GetPosition(); + + Command(hveh, &speed); + + Command(hplayer, pos.x, pos.y, pos.z); + + if (pveh->m_nVehicleClass == VEHICLE_TRAIN) + Command(hveh); + else + Command(hveh); + } + + if (interior == 0) + if (spawner::spawn_in_air && (CModelInfo::IsHeliModel(imodel) || CModelInfo::IsPlaneModel(imodel))) + pos.z = 400; + else + pos.z -= 5; + + + if (CModelInfo::IsTrainModel(imodel)) + { + int train_id = GetRandomTrainIdForModel(imodel); + + if (train_id == -1) // Unknown train id + return; + + int hveh = 0; + + // Loading all train related models + CStreaming::RequestModel(590, PRIORITY_REQUEST); + CStreaming::RequestModel(538, PRIORITY_REQUEST); + CStreaming::RequestModel(570, PRIORITY_REQUEST); + CStreaming::RequestModel(569, PRIORITY_REQUEST); + CStreaming::RequestModel(537, PRIORITY_REQUEST); + CStreaming::RequestModel(449, PRIORITY_REQUEST); + + CStreaming::LoadAllRequestedModels(false); + Command(train_id, pos.x, pos.y, pos.z, (CTimer::m_snTimeInMilliseconds % 2 == 0) ? true : false, &hveh); + veh = CPools::GetVehicle(hveh); + + if (veh->m_pDriver) + Command(CPools::GetPedRef(veh->m_pDriver)); + + if (spawner::spawn_inside) + { + Command(hplayer, hveh); + Command(hveh, speed); + } + Command(hveh); + + CStreaming::SetModelIsDeletable(590); + CStreaming::SetModelIsDeletable(538); + CStreaming::SetModelIsDeletable(570); + CStreaming::SetModelIsDeletable(569); + CStreaming::SetModelIsDeletable(537); + CStreaming::SetModelIsDeletable(449); + } + else + { + CStreaming::RequestModel(imodel, PRIORITY_REQUEST); + CStreaming::LoadAllRequestedModels(false); + + if (spawner::license_text != "") + Command(imodel, spawner::license_text); + + if (!spawner::spawn_inside) + veh = CCheat::VehicleCheat(imodel); + else + { + int hveh = 0; + + Command(imodel, pos.x, pos.y, pos.z, &hveh); + veh = CPools::GetVehicle(hveh); + veh->SetHeading(player->GetHeading()); + Command(hplayer, hveh); + Command(hveh, speed); + } + CStreaming::SetModelIsDeletable(imodel); + } + + if(veh) + Command(CPools::GetVehicleRef(veh), interior); + } +} + +std::string Vehicle::GetNameFromModel(int model) +{ + CBaseModelInfo *info = CModelInfo::GetModelInfo(model); + + return (const char*)info + 0x32; +} + +Vehicle::~Vehicle() +{ +} + + +void Vehicle::GenerateHandlingDataFile(int phandling) +{ + FILE *fp = fopen("handling.txt", "w"); + + std::string handlingId = vehicle_ide[FindPlayerPed()->m_pVehicle->m_nModelIndex]; + float fMass = patch::Get(phandling + 0x4); + float fTurnMass = patch::Get(phandling + 0xC); + float fDragMult = patch::Get(phandling + 0x10); + float CentreOfMassX = patch::Get(phandling + 0x14); + float CentreOfMassY = patch::Get(phandling + 0x18); + float CentreOfMassZ = patch::Get(phandling + 0x1C); + int nPercentSubmerged = patch::Get(phandling + 0x20); + float fTractionMultiplier = patch::Get(phandling + 0x28); + float fTractionLoss = patch::Get(phandling + 0xA4); + float TractionBias = patch::Get(phandling + 0xA8); + float fEngineAcceleration = patch::Get(phandling + 0x7C) * 12500; + float fEngineInertia = patch::Get(phandling + 0x80); + int nDriveType = patch::Get(phandling + 0x74); + int nEngineType = patch::Get(phandling + 0x75); + float BrakeDeceleration = patch::Get(phandling + 0x94) * 2500; + float BrakeBias = patch::Get(phandling + 0x98); + int ABS = patch::Get(phandling + 0x9C); + float SteeringLock = patch::Get(phandling + 0xA0); + float SuspensionForceLevel = patch::Get(phandling + 0xAC); + float SuspensionDampingLevel = patch::Get(phandling + 0xB0); + float SuspensionHighSpdComDamp = patch::Get(phandling + 0xB4); + float Suspension_upper_limit = patch::Get(phandling + 0xB8); + float Suspension_lower_limit = patch::Get(phandling + 0xBC); + float Suspension_bias = patch::Get(phandling + 0xC0); + float Suspension_anti_dive_multiplier = patch::Get(phandling + 0xC4); + float fCollisionDamageMultiplier = patch::Get(phandling + 0xC8) * 0.338; + int nMonetaryValue = patch::Get(phandling + 0xD8); + + int MaxVelocity = patch::Get(phandling + 0x84); + MaxVelocity = MaxVelocity * 206 + (MaxVelocity - 0.918668) * 1501; + + int modelFlags = patch::Get(phandling + 0xCC); + int handlingFlags = patch::Get(phandling + 0xD0); + + int front_lights = patch::Get(phandling + 0xDC); + int rear_lights = patch::Get(phandling + 0xDD); + int vehicle_anim_group = patch::Get(phandling + 0xDE); + int nNumberOfGears = patch::Get(phandling + 0x76); + float fSeatOffsetDistance = patch::Get(phandling + 0xD4); + + fprintf(fp, "\n%s\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%d\t%.5g\t%.5g\t%.5g\t%d\t%d\t%.5g\t%.5g\t%c\t%c\t%.5g\t%.5g\t%d\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%d\t%d\t%d\t%d\t%d\t%d", + handlingId.c_str(), fMass, fTurnMass, fDragMult, CentreOfMassX, CentreOfMassY, CentreOfMassZ, nPercentSubmerged, fTractionMultiplier, fTractionLoss, TractionBias, nNumberOfGears, + MaxVelocity, fEngineAcceleration, fEngineInertia, nDriveType, nEngineType, BrakeDeceleration, BrakeBias, ABS, SteeringLock, SuspensionForceLevel, SuspensionDampingLevel, + SuspensionHighSpdComDamp, Suspension_upper_limit, Suspension_lower_limit, Suspension_bias, Suspension_anti_dive_multiplier, fSeatOffsetDistance, + fCollisionDamageMultiplier, nMonetaryValue, modelFlags, handlingFlags, front_lights, rear_lights, vehicle_anim_group); + + fclose(fp); +} + + +void Vehicle::Main() +{ + ImGui::Spacing(); + static CPlayerPed *player = FindPlayerPed(); + static int hplayer = CPools::GetPedRef(player); + + if (ImGui::Button("Blow up cars", ImVec2(Ui::GetSize(3)))) + ((void(*)(void))0x439D80)(); + + ImGui::SameLine(); + + if (ImGui::Button("Fix vehicle", ImVec2(Ui::GetSize(3)))) + { + if (Command(hplayer)) + player->m_pVehicle->Fix(); + } + + ImGui::SameLine(); + + if (ImGui::Button("Flip vehicle", ImVec2(Ui::GetSize(3)))) + { + if (Command(hplayer)) + { + int hveh = CPools::GetVehicleRef(player->m_pVehicle); + float roll; + + Command(hveh, &roll); + roll += 180; + Command(hveh, roll); + Command(hveh, roll); // z rot fix + } + } + + ImGui::Spacing(); + + if (ImGui::BeginTabBar("Vehicle", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) + { + ImGui::Spacing(); + + if (ImGui::BeginTabItem("Checkboxes")) + { + ImGui::Spacing(); + ImGui::BeginChild("CheckboxesChild"); + ImGui::Columns(2, 0, false); + + Ui::CheckboxAddress("Aggressive drivers", 0x96914F); + Ui::CheckboxAddress("Aim while driving", 0x969179); + Ui::CheckboxAddress("All cars have nitro", 0x969165); + Ui::CheckboxAddress("All taxis have nitro", 0x96918B); + Ui::CheckboxAddress("Boats fly", 0x969153); + Ui::CheckboxWithHint("Car engine", &veh_engine); + Ui::CheckboxBitFlag("Cars fly", 0x969160); + Ui::CheckboxWithHint("Car heavy", &veh_heavy); + Ui::CheckboxBitFlag("Decreased traffic", 0x96917A); + Ui::CheckboxWithHint("Don't fall off bike", &dont_fall_bike); + Ui::CheckboxBitFlag("Drive on water", 0x969152); + Ui::CheckboxAddressEx("Lock train camera", 0x52A52F, 171, 6); + + ImGui::NextColumn(); + + Ui::CheckboxAddress("Float away when hit", 0x969166); + Ui::CheckboxAddress("Green traffic lights", 0x96914E); + Ui::CheckboxWithHint("Invisible car", &veh_invisible); + if (Ui::CheckboxWithHint("Lights on", &veh_lights)) + { + if (Command(hplayer)) + { + int hveh = CPools::GetVehicleRef(player->m_pVehicle); + Command(hveh, !veh_lights); + } + } + + bool doors_locked = false; + + if (Command(hplayer)) + { + int hveh = CPools::GetVehicleRef(player->m_pVehicle); + int door; + Command(hveh, &door); + doors_locked = (door == CARLOCK_LOCKED_PLAYER_INSIDE); + } + + if (Ui::CheckboxWithHint("Lock doors", &doors_locked)) + { + if (Command(hplayer)) + { + int hveh = CPools::GetVehicleRef(player->m_pVehicle); + + if (doors_locked) + Command(hveh, CARLOCK_LOCKED_PLAYER_INSIDE); + else + Command(hveh, CARLOCK_UNLOCKED); + } + } + + if (Ui::CheckboxWithHint("No damage", &veh_no_dmg)) + { + if (Command(hplayer)) + { + int hveh = CPools::GetVehicleRef(player->m_pVehicle); + + if (!veh_no_dmg) + Command(hveh, true); + } + } + Ui::CheckboxAddress("Perfect handling", 0x96914C); + Ui::CheckboxAddress("Tank mode", 0x969164); + Ui::CheckboxWithHint("Unlimited nitro", &unlimited_nitro::enabled, "Nitro will activate when left clicked\n\ +\nEnabling this would disable\nAll cars have nitro\nAll taxis have nitro"); + Ui::CheckboxWithHint("Watertight car", &veh_watertight); + Ui::CheckboxAddress("Wheels only", 0x96914B); + + ImGui::Columns(1); + + ImGui::EndChild(); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Menus")) + { + ImGui::Spacing(); + ImGui::BeginChild("MenusChild"); + + if (ImGui::CollapsingHeader("Enter nearest vehicle as")) + { + CPlayerPed *player = FindPlayerPed(); + int hplayer = CPools::GetPedRef(player); + CVehicle *veh = Util::GetClosestVehicle(player); + + if (veh) + { + int seats = veh->m_nMaxPassengers; + + ImGui::Spacing(); + ImGui::Columns(2, 0, false); + + ImGui::Text(GetNameFromModel(veh->m_nModelIndex).c_str()); + ImGui::NextColumn(); + ImGui::Text((std::string("Total seats: ") + std::to_string(seats + 1)).c_str()); + ImGui::Columns(1); + + ImGui::Spacing(); + if (ImGui::Button("Driver", ImVec2(Ui::GetSize(2)))) + Command(hplayer, veh); + + for (int i = 0; i < seats; ++i) + { + if (i % 2 != 1) + ImGui::SameLine(); + + if (ImGui::Button((std::string("Passenger ") + std::to_string(i + 1)).c_str(), ImVec2(Ui::GetSize(2)))) + Command(hplayer, veh, i); + } + } + else + ImGui::Text("No nearby vehicles"); + + ImGui::Spacing(); + ImGui::Separator(); + } + + if (ImGui::CollapsingHeader("Traffic options")) + { + static std::vector color{ {"Black", 0x969151}, { "Pink",0x969150 } }; + static std::vector type{ {"Cheap", 0x96915E}, { "Country",0x96917B }, { "Fast",0x96915F } }; + + Ui::RadioButtonAddress("Color", color); + ImGui::Spacing(); + Ui::RadioButtonAddress("Type", type); + ImGui::Spacing(); + ImGui::Separator(); + } + if (Command(hplayer)) + { + CVehicle *veh = player->m_pVehicle; + int hveh = CPools::GetVehicleRef(veh); + + Ui::EditFloat("Density multiplier", 0x8A5B20, 0, 1, 10); + Ui::EditFloat("Dirt level", (int)veh + 0x4B0, 0, 7.5, 15); + + if (veh->m_nVehicleClass == VEHICLE_AUTOMOBILE && ImGui::CollapsingHeader("Doors")) + { + ImGui::Columns(2, 0, false); + ImGui::RadioButton("Damage", &door_menu_button, 0); + ImGui::RadioButton("Fix", &door_menu_button, 1); + ImGui::NextColumn(); + ImGui::RadioButton("Open", &door_menu_button, 2); + ImGui::RadioButton("Pop", &door_menu_button, 3); + ImGui::Columns(1); + ImGui::Spacing(); + + int seats = veh->m_nMaxPassengers + 1; // passenger + driver + int doors = seats == 4 ? 5 : 3; + int hveh = CPools::GetVehicleRef(veh); + + if (ImGui::Button("All", ImVec2(Ui::GetSize()))) + { + for (int i = 0; i < doors; ++i) + { + switch (door_menu_button) + { + case 0: + Command(hveh, i); + break; + case 1: + Command(hveh, i); + break; + case 2: + Command(hveh, i); + break; + case 3: + Command(hveh, i); + break; + default: + break; + } + } + } + + for (int i = 0; i != doors+1; ++i) + { + if (ImGui::Button(door_names[i].c_str(), ImVec2(Ui::GetSize(2)))) + { + switch (door_menu_button) + { + case 0: + Command(hveh, i); + break; + case 1: + Command(hveh, i); + break; + case 2: + Command(hveh, i); + break; + case 3: + Command(hveh, i); + break; + default: + break; + } + } + + if (i % 2 != 1) + ImGui::SameLine(); + } + + ImGui::Spacing(); + ImGui::Separator(); + } + + if (ImGui::CollapsingHeader("Set speed")) + { + Ui::CheckboxWithHint("Lock speed", &lock_speed); + ImGui::Spacing(); + ImGui::InputFloat("Set", &lock_speed_val); + ImGui::Spacing(); + + lock_speed_val = lock_speed_val > 100 ? 100 : lock_speed_val; + lock_speed_val = lock_speed_val < 0 ? 0 : lock_speed_val; + + if (ImGui::Button("Set speed##brn", ImVec2(Ui::GetSize(2)))) + Command(hveh, lock_speed_val); + + ImGui::SameLine(); + + if (ImGui::Button("Instant stop##brn", ImVec2(Ui::GetSize(2)))) + Command(hveh, 0); + } + } + ImGui::EndChild(); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Spawn")) + { + ImGui::Spacing(); + ImGui::Columns(2, 0, false); + Ui::CheckboxWithHint("Spawn inside", &spawner::spawn_inside, "Spawn inside vehicle as driver"); + ImGui::NextColumn(); + Ui::CheckboxWithHint("Spawn aircraft in air", &spawner::spawn_in_air); + ImGui::Columns(1); + + ImGui::Spacing(); + ImGui::SetNextItemWidth(ImGui::GetWindowContentRegionWidth() - 2.5); + ImGui::InputTextWithHint("##LicenseText", "License plate text", spawner::license_text, 9); + + Ui::DrawImages(spawner::image_vec, ImVec2(100, 75), spawner::search_categories, spawner::selected_item, spawner::filter, SpawnVehicle, nullptr, + [](std::string str) + { + return GetNameFromModel(std::stoi(str)); + }); + + ImGui::EndTabItem(); + } + if (Command(hplayer)) + { + CVehicle *veh = FindPlayerPed()->m_pVehicle; + int hveh = CPools::GetVehicleRef(veh); + if (ImGui::BeginTabItem("Color")) + { + Paint::UpdateNodeListRecursive(veh); + + ImGui::Spacing(); + if (ImGui::Button("Reset color", ImVec2(Ui::GetSize()))) + { + Paint::ResetNodeColor(veh, Paint::veh_nodes::selected); + CHud::SetHelpMessage("Color reset", false, false, false); + } + ImGui::Spacing(); + + Ui::ListBoxStr("Component", Paint::veh_nodes::names_vec, Paint::veh_nodes::selected); + + if (ImGui::ColorEdit3("Color picker", color::color_picker)) + { + uchar r = color::color_picker[0] * 255; + uchar g = color::color_picker[1] * 255; + uchar b = color::color_picker[2] * 255; + Paint::SetNodeColor(veh, Paint::veh_nodes::selected, { r,g,b,255 }, color::material_filter); + } + + ImGui::Spacing(); + ImGui::Columns(2, NULL, false); + ImGui::Checkbox("Material filter", &color::material_filter); + ImGui::RadioButton("Primary", &color::radio_btn, 1); + ImGui::RadioButton("Secondary", &color::radio_btn, 2); + ImGui::NextColumn(); + ImGui::Checkbox("Show all", &color::show_all); + ImGui::RadioButton("Tertiary", &color::radio_btn, 3); + ImGui::RadioButton("Quaternary", &color::radio_btn, 4); + ImGui::Spacing(); + ImGui::Columns(1); + ImGui::Text("Select color preset:"); + ImGui::Spacing(); + + int count = (int)carcols_color_values.size(); + + ImVec2 size = Ui::GetSize(); + int btns_in_row = ImGui::GetWindowContentRegionWidth() / (size.y * 2); + int btn_size = (ImGui::GetWindowContentRegionWidth() - ImGuiStyleVar_ItemSpacing*(btns_in_row - 0.6*btns_in_row)) / btns_in_row; + + ImGui::BeginChild("Colorss"); + + if (color::show_all) + for (int color_id = 0; color_id < count; ++color_id) + { + if (Ui::ColorButton(color_id, carcols_color_values[color_id], ImVec2(btn_size,btn_size))) + patch::Set(int(veh) + 1075 + color::radio_btn, color_id); + + if ((color_id + 1) % btns_in_row != 0) + ImGui::SameLine(0.0, 4.0); + } + else + { + std::string veh_name = GetNameFromModel(player->m_pVehicle->m_nModelIndex); + for (auto entry : carcols_car_data) + { + + if (entry.first == veh_name) + { + int count = 1; + for (int color_id : entry.second) + { + if (Ui::ColorButton(color_id, carcols_color_values[color_id], ImVec2(btn_size, btn_size))) + patch::Set(int(veh) + 1075 + color::radio_btn, color_id); + + if (count % btns_in_row != 0) + ImGui::SameLine(0.0, 4.0); + ++count; + } + + break; + } + } + } + + ImGui::EndChild(); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Neons")) + { + ImGui::Spacing(); + if (ImGui::Button("Remove neon", ImVec2(Ui::GetSize()))) + { + NeonAPI::RemoveNeon(veh); + CHud::SetHelpMessage("Neon removed", false, false, false); + } + + ImGui::Spacing(); + ImGui::Columns(2, NULL, false); + Ui::CheckboxWithHint("Rainbow neons", &neon::rainbow, "Rainbow effect to neon lights"); + ImGui::NextColumn(); + Ui::CheckboxWithHint("Traffic neons", &neon::traffic, "Adds neon lights to traffic vehicles.\n\ +Only some vehicles will have them."); + ImGui::Columns(1); + + ImGui::Spacing(); + + if (ImGui::ColorEdit3("Color picker", neon::color_picker)) + NeonAPI::InstallNeon(veh, neon::color_picker[0] * 255, neon::color_picker[1] * 255, neon::color_picker[2] * 255); + + ImGui::Spacing(); + ImGui::Text("Select neon preset:"); + + int count = (int)carcols_color_values.size(); + ImVec2 size = Ui::GetSize(); + int btns_in_row = ImGui::GetWindowContentRegionWidth() / (size.y * 2); + int btn_size = (ImGui::GetWindowContentRegionWidth() - ImGuiStyleVar_ItemSpacing*(btns_in_row - 0.6*btns_in_row)) / btns_in_row; + + ImGui::BeginChild("Neonss"); + + for (int color_id = 0; color_id < count; ++color_id) + { + if (Ui::ColorButton(color_id, carcols_color_values[color_id], ImVec2(btn_size, btn_size))) + { + std::vector &color = carcols_color_values[color_id]; + NeonAPI::InstallNeon(veh, color[0]*255, color[1]*255, color[2]*255); + } + + if ((color_id + 1) % btns_in_row != 0) + ImGui::SameLine(0.0, 4.0); + } + + ImGui::EndChild(); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Textures")) + { + Paint::UpdateNodeListRecursive(veh); + + ImGui::Spacing(); + if (ImGui::Button("Reset texture", ImVec2(Ui::GetSize()))) + { + Paint::ResetNodeTexture(veh, Paint::veh_nodes::selected); + CHud::SetHelpMessage("Texture reset", false, false, false); + } + ImGui::Spacing(); + + Ui::ListBoxStr("Component", Paint::veh_nodes::names_vec, Paint::veh_nodes::selected); + ImGui::Spacing(); + + int maxpjob, curpjob; + Command(hveh, &maxpjob); + + if (maxpjob > 0) + { + Command(hveh, &curpjob); + + if (ImGui::InputInt("Paintjob", &curpjob)) + { + if (curpjob > maxpjob) + curpjob = -1; + if (curpjob < -1) + curpjob = maxpjob-1; + + Command(hveh, curpjob); + } + + ImGui::Spacing(); + } + + ImGui::Spacing(); + ImGui::SameLine(); + ImGui::Checkbox("Material filter", &color::material_filter); + ImGui::Spacing(); + Ui::DrawImages(texture9::image_vec, ImVec2(100, 80), texture9::search_categories, texture9::selected_item, texture9::filter, + [](std::string& str) + { + Paint::SetNodeTexture(FindPlayerPed()->m_pVehicle, Paint::veh_nodes::selected, str, color::material_filter); + }, + nullptr, + [](std::string& str) {return str; + }); + + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Tune")) + { + ImGui::Spacing(); + Ui::DrawImages(tune::image_vec, ImVec2(100, 80), tune::search_categories, tune::selected_item, tune::filter, + [](std::string& str) {AddComponent(str);}, + [](std::string& str) {RemoveComponent(str); }, + [](std::string& str){return str;}, + [](std::string& str) + { + return ((bool(*)(int,CVehicle*))0x49B010)(std::stoi(str), player->m_pVehicle); + } + ); + + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Handling")) + { + ImGui::Spacing(); + + CBaseModelInfo *info = CModelInfo::GetModelInfo(player->m_pVehicle->m_nModelIndex); + int phandling = patch::Get((int)info+0x4A,false); + phandling *= 0xE0; + phandling += 0xC2B9DC; + + if (ImGui::Button("Reset handling", ImVec2(Ui::GetSize(3)))) + { + gHandlingDataMgr.LoadHandlingData(); + CHud::SetHelpMessage("Handling reset", false, false, false); + } + + ImGui::SameLine(); + + if (ImGui::Button("Save to file", ImVec2(Ui::GetSize(3)))) + { + GenerateHandlingDataFile(phandling); + CHud::SetHelpMessage("Handling saved", false, false, false); + } + + ImGui::SameLine(); + + if (ImGui::Button("Read more", ImVec2(Ui::GetSize(3)))) + ShellExecute(NULL, "open", "https://projectcerbera.com/gta/sa/tutorials/handling", NULL, NULL, SW_SHOWNORMAL); + + ImGui::Spacing(); + + ImGui::BeginChild("HandlingChild"); + + Ui::EditRadioButtonAddressEx("Abs", phandling + 0x9C, std::vector{{ "On", 1 }, { "Off", 0 }}); + + Ui::EditFloat("Anti dive multiplier", phandling + 0xC4, 0.0f, 0.0f, 1.0f); + Ui::EditFloat("Brake bias", phandling + 0x98, 0.0f, 0.0f, 1.0f); + Ui::EditFloat("Brake deceleration", phandling + 0x94, 0.0f, 0.0f, 20.0f, 2500.0f); + Ui::EditFloat("Centre of mass X", phandling + 0x14,-10.0f,-10.0f, 10.0f); + Ui::EditFloat("Centre of mass Y", phandling + 0x18,-10.0f,-10.0f, 10.0f); + Ui::EditFloat("Centre of mass Z", phandling + 0x1C,-10.0f,-10.0f, 10.0f); + Ui::EditFloat("Collision damage multiplier", phandling + 0xC8, 0.0f, 0.0f, 1.0f, 0.3381f); + Ui::EditFloat("Damping level", phandling + 0xB0, -10.0f, -10.0f, 10.0f); // test later + Ui::EditFloat("Drag mult", phandling + 0x10, 0.0f, 0.0f, 30.0f); + + Ui::EditRadioButtonAddressEx("Drive type", phandling + 0x74, std::vector{ { "Front wheel drive", 70 }, { "Rear wheel drive", 82 }, { "Four wheel drive", 52 }}); + + Ui::EditFloat("Engine acceleration", phandling + 0x7C, 0.0f, 0.0f, 49.0f, 12500.0f); + Ui::EditFloat("Engine inertia", phandling + 0x80, 0.0f, 0.0f, 400.0f); + + Ui::EditRadioButtonAddressEx("Engine type", phandling + 0x75, std::vector{ { "Petrol", 80 }, { "Diseal", 68 }, { "Electric", 69 }}); + Ui::EditRadioButtonAddressEx("Front lights", phandling + 0xDC, std::vector{ { "Long", 0 }, { "Small", 1 }, { "Big", 2 }, { "Tall", 3 }}); + + Ui::EditFloat("Force level", phandling + 0xAC, -10.0f, -10.0f, 10.0f); // test later + + Ui::EditBits("Handling flags", phandling + 0xD0, handling_flag_names); + + Ui::EditFloat("High speed damping", phandling + 0xB4, -10.0f, -10.0f, 10.0f);// test later + Ui::EditFloat("Lower limit", phandling + 0xBC, -10.0f, -10.0f, 10.0f);// test later + Ui::EditFloat("Mass", phandling + 0x4, 1.0f, 1.0f, 50000.0f); + + ///fcommon.UpdateAddress({ name = 'Max velocity',address = phandling + 0x84 ,size = 4,min = 0,max = 2,is_float = true,cvalue = 0.01 , save = false }) + + Ui::EditBits("Model flags", phandling + 0xCC, model_flag_names); + + Ui::EditAddress("Monetary value", phandling + 0xD8, 1, 1, 100000); + Ui::EditAddress("Number of gears", phandling + 0x76, 1, 1, 10); + Ui::EditAddress("Percent submerged", phandling + 0x20, 10, 10, 120); + + Ui::EditRadioButtonAddressEx("Rear lights", phandling + 0xDD, std::vector{ { "Long", 0 }, { "Small", 1 }, { "Big", 2 }, { "Tall", 3 }}); + + Ui::EditFloat("Seat offset distance", phandling + 0xD4, 0.0f, 0.0f, 1.0f); + Ui::EditFloat("Steering lock", phandling + 0xA0, 10.0f, 10.0f, 50.0f); + Ui::EditFloat("Suspension bias", phandling + 0xC0, 0.0f, 0.0f, 1.0f); + Ui::EditFloat("Traction bias", phandling + 0xA8, 0.0f, 0.0f, 1.0f); + Ui::EditFloat("Traction loss", phandling + 0xA4, 0.0f, 0.0f, 1.0f); + Ui::EditFloat("Traction multiplier", phandling + 0x28, 0.5f, 0.5f, 2.0f); + Ui::EditFloat("Turn mass", phandling + 0xC, 20.0f, 20.0f, 1000.0f); // test later + Ui::EditFloat("Upper limit", phandling + 0xB8, -1.0f, -1.0f, 1.0f); + Ui::EditAddress("Vehicle anim group", phandling + 0xDE, 0, 0, 20); + + ImGui::EndChild(); + + ImGui::EndTabItem(); + } + } + ImGui::EndTabBar(); + } +} diff --git a/CheatMenu/Vehicle.h b/CheatMenu/Vehicle.h new file mode 100644 index 0000000..2a9421c --- /dev/null +++ b/CheatMenu/Vehicle.h @@ -0,0 +1,91 @@ +#include "NeonAPI.h" +#include "Paint.h" + +#pragma once +class Vehicle : NeonAPI, Paint +{ +private: + static bool dont_fall_bike; + static bool veh_engine; + static bool veh_heavy; + static bool veh_invisible; + static bool veh_lights; + static bool veh_no_dmg; + static bool veh_watertight; + + static int door_menu_button; + static std::string door_names[6]; + + static bool lock_speed; + static float lock_speed_val; + + static std::map vehicle_ide; + static std::vector> carcols_color_values; + static std::map> carcols_car_data; + + struct color + { + static bool material_filter; + static int radio_btn; + static bool show_all; + static float color_picker[3]; + }; + + struct neon + { + static float color_picker[3]; + static bool rainbow; + static uint rainbow_timer; + static bool traffic; + static uint traffic_timer; + static std::uniform_int_distribution<> random_val; + }; + + struct spawner + { + static ImGuiTextFilter filter; + static std::string selected_item; + static std::vector search_categories; + static std::vector> image_vec; + static bool spawn_inside; + static bool spawn_in_air; + static char license_text[9]; + }; + + struct texture9 + { + static ImGuiTextFilter filter; + static std::string selected_item; + static std::vector search_categories; + static std::vector> image_vec; + }; + + struct tune + { + static ImGuiTextFilter filter; + static std::string selected_item; + static std::vector search_categories; + static std::vector> image_vec; + }; + + struct unlimited_nitro + { + static bool enabled; + static bool comp_added; + }; + + static void AddComponent(const std::string& component, const bool display_message = true); + static void RemoveComponent(const std::string& component, const bool display_message = true); + static std::string GetNameFromModel(int model); + static void SpawnVehicle(std::string &name); + static int GetRandomTrainIdForModel(int model); + static void ParseVehiclesIDE(); + static void ParseCarcolsDAT(); + static void GenerateHandlingDataFile(int phandling); + +public: + Vehicle(); + ~Vehicle(); + static void Main(); +}; + diff --git a/CheatMenu/Visual.cpp b/CheatMenu/Visual.cpp new file mode 100644 index 0000000..73f7873 --- /dev/null +++ b/CheatMenu/Visual.cpp @@ -0,0 +1,327 @@ +#include "pch.h" +#include "Visual.h" + +bool Visual::lock_weather = false; +int Visual::weather_type_backup = 0; +int Visual::timecyc_hour = 8; + +std::vector Visual::weather_names{ +"EXTRASUNNY LA","SUNNY LA","EXTRASUNNY SMOG LA","SUNNY SMOG LA","CLOUDY LA","SUNNY SF","EXTRASUNNY SF","CLOUDY SF","RAINY SF","FOGGY SF", +"SUNNY VEGAS","EXTRASUNNY VEGAS","CLOUDY VEGAS","EXTRASUNNY COUNTRYSIDE","SUNNY COUNTRYSIDE","CLOUDY COUNTRYSIDE","RAINY COUNTRYSIDE", +"EXTRASUNNY DESERT","SUNNY DESERT","SANDSTORM DESERT","UNDERWATER","EXTRACOLOURS 1","EXTRACOLOURS 2" +}; + +Visual::Visual() +{ + Events::initGameEvent += [] + { + if (LoadLibraryW(L"timecycle24.asi")) + timecyc_hour = 24; + }; + + Events::processScriptsEvent += [] + { + // Improve this later + if (lock_weather) + { + CWeather::OldWeatherType = weather_type_backup; + CWeather::NewWeatherType = weather_type_backup; + } + }; +} + + +Visual::~Visual() +{ +} + + +int Visual::GetCurrentHourTimeId() +{ + uchar hour = CClock::ms_nGameClockHours; + + if (timecyc_hour == 24) + return hour; + + if (hour < 5) return 0; + if (hour == 5) return 1; + + if (hour == 6) return 2; + + if (7 >= hour && hour < 12) return 2; + if (12 >= hour && hour < 19) return 4; + + if (hour == 19) return 5; + if (hour == 20 || hour == 21) return 6; + if (hour == 22 || hour == 23) return 7; + + return NULL; +} + +bool Visual::TimeCycColorEdit3(const char* label, uchar *r, uchar *g, uchar *b, ImGuiColorEditFlags flags) +{ + bool rtn = false; + int val = 23 * GetCurrentHourTimeId() + CWeather::OldWeatherType; + + float col[3]{ r[val] / 255.0f, g[val] / 255.0f, b[val] / 255.0f }; + + if (ImGui::ColorEdit3(label, col, flags)) + { + r[val] = col[0] * 255; + g[val] = col[1] * 255; + b[val] = col[2] * 255; + rtn = true; + } + + return rtn; +} + +bool Visual::TimeCycColorEdit4(const char* label, uchar *r, uchar *g, uchar *b, uchar *a, ImGuiColorEditFlags flags) +{ + bool rtn = false; + int val = 23 * GetCurrentHourTimeId() + CWeather::OldWeatherType; + + float col[4]{ r[val] / 255.0f, g[val] / 255.0f, b[val] / 255.0f, a[val] / 255.0f }; + + if (ImGui::ColorEdit4(label, col, flags)) + { + r[val] = col[0] * 255; + g[val] = col[1] * 255; + b[val] = col[2] * 255; + a[val] = col[3] * 255; + rtn = true; + } + + return rtn; +} + +void Visual::GenerateTimecycFile() +{ + std::ofstream file; + if (timecyc_hour == 24) + file = std::ofstream("timecyc_24h.dat"); + else + file = std::ofstream("timecyc.dat"); + + for (uint i = 0; i < weather_names.size(); ++i) + { + file << "\n\n//////////// " << weather_names[i] << "\n"; + file << "//\tAmb\t\t\t\t\tAmb Obj \t\t\t\tDir \t\t\t\t\tSky top\t\t\t\tSky bot\t\t\t\tSunCore\t\t\t\t\tSunCorona\t\t\tSunSz\tSprSz\tSprBght\t\tShdw\tLightShd\tPoleShd\t\tFarClp\t\tFogSt\tLightOnGround\tLowCloudsRGB\tBottomCloudRGB\t\tWaterRGBA\t\t\t\tARGB1\t\t\t\t\tARGB2\t\t\tCloudAlpha\t\tIntensityLimit\t\tWaterFogAlpha\tDirMult \n\n"; + + for (int j = 0; j < timecyc_hour; ++j) + { + if (timecyc_hour == 24) + { + if (j >= 12) + file << "// " << j << " PM\n"; + else + file << "// " << j << " AM\n"; + } + else + { + if (j == 0) file << "// Midnight\n"; + if (j == 1) file << "// 5 AM\n"; + if (j == 2) file << "// 6 AM\n"; + if (j == 3) file << "// 7 AM\n"; + if (j == 4) file << "// Midday\n"; + if (j == 5) file << "// 7 PM\n"; + if (j == 6) file << "// 8 PM\n"; + if (j == 7) file << "// 10 PM\n"; + } + + int val = 23 * j + i; + + file << "\t" << +CTimeCycle::m_nAmbientRed[val] << " " << +CTimeCycle::m_nAmbientGreen[val] << " " << +CTimeCycle::m_nAmbientBlue[val] << " \t\t" + + << "\t" << +CTimeCycle::m_nAmbientRed_Obj[val] << " " << +CTimeCycle::m_nAmbientGreen_Obj[val] << " " << +CTimeCycle::m_nAmbientBlue_Obj[val] << " \t\t" + + << "\t255 255 255\t\t" // unused + + << "\t" << +CTimeCycle::m_nSkyTopRed[val] << " " << +CTimeCycle::m_nSkyTopGreen[val] << " " << +CTimeCycle::m_nSkyTopBlue[val] << " \t\t" + + << "\t" << +CTimeCycle::m_nSkyBottomRed[val] << " " << +CTimeCycle::m_nSkyBottomGreen[val] << " " << +CTimeCycle::m_nSkyBottomBlue[val] << " \t\t" + + << "\t" << +CTimeCycle::m_nSunCoreRed[val] << " " << +CTimeCycle::m_nSunCoreGreen[val] << " " << +CTimeCycle::m_nSunCoreBlue[val] << " \t\t" + + << "\t" << +CTimeCycle::m_nSunCoronaRed[val] << " " << +CTimeCycle::m_nSunCoronaGreen[val] << " " << +CTimeCycle::m_nSunCoronaBlue[val] << " \t\t" + + << "\t" << (+CTimeCycle::m_fSunSize[val] - 0.5f) / 10.0f << " " << (+CTimeCycle::m_fSpriteSize[val] - 0.5f) / 10.0f << " " << (+CTimeCycle::m_fSpriteBrightness[val] - 0.5f) / 10.0f << " \t\t" + + << "\t" << +CTimeCycle::m_nShadowStrength[val] << " " << +CTimeCycle::m_nLightShadowStrength[val] << " " << +CTimeCycle::m_nPoleShadowStrength[val] << " \t\t" + + << "\t" << +CTimeCycle::m_fFarClip[val] << " " << +CTimeCycle::m_fFogStart[val] << " " << (+CTimeCycle::m_fLightsOnGroundBrightness[val] - 0.5) / 10.0f << " \t\t" + + << "\t" << +CTimeCycle::m_nLowCloudsRed[val] << " " << +CTimeCycle::m_nLowCloudsGreen[val] << " " << +CTimeCycle::m_nLowCloudsBlue[val] << " \t\t" + + << "\t" << +CTimeCycle::m_nFluffyCloudsBottomRed[val] << " " << +CTimeCycle::m_nFluffyCloudsBottomGreen[val] << " " << +CTimeCycle::m_nFluffyCloudsBottomBlue[val] << " \t\t" + + << "\t" << +CTimeCycle::m_fWaterRed[val] << " " << +CTimeCycle::m_fWaterGreen[val] << " " << +CTimeCycle::m_fWaterBlue[val] << " " << +CTimeCycle::m_fWaterAlpha[val] << " \t\t" + + << "\t" << +CTimeCycle::m_fPostFx1Alpha[val] << " " << +CTimeCycle::m_fPostFx1Red[val] << " " << +CTimeCycle::m_fPostFx1Green[val] << " " << +CTimeCycle::m_fPostFx1Blue[val] << " \t\t" + + << "\t" << +CTimeCycle::m_fPostFx2Alpha[val] << " " << +CTimeCycle::m_fPostFx2Red[val] << " " << +CTimeCycle::m_fPostFx2Green[val] << " " << +CTimeCycle::m_fPostFx2Blue[val] << " \t\t" + + << "\t" << +CTimeCycle::m_fCloudAlpha[val] << " " << +CTimeCycle::m_nHighLightMinIntensity[val] << " " << +CTimeCycle::m_nWaterFogAlpha[val] << " " << +CTimeCycle::m_nDirectionalMult[val] / 100.0 << " \t\t" << std::endl; + } + } +} + +void Visual::Main() +{ + if (ImGui::BeginTabBar("Visual", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) + { + if (ImGui::BeginTabItem("Checkboxes")) + { + ImGui::Spacing(); + ImGui::Columns(2, 0, false); + Ui::CheckboxAddress("Armour border", 0x589123); + Ui::CheckboxAddress("Armour percentage", 0x589125); + Ui::CheckboxAddress("Breath border", 0x589207); + Ui::CheckboxAddress("Breath percentage", 0x589209); + Ui::CheckboxAddress("Gray radar", 0xA444A4); + Ui::CheckboxAddress("Health border", 0x589353); + Ui::CheckboxAddress("Health percentage", 0x589355); + + ImGui::NextColumn(); + + if (Ui::CheckboxWithHint("Hide area names", &CHud::bScriptDontDisplayAreaName)) + Command(!CHud::bScriptDontDisplayAreaName); + + if (Ui::CheckboxWithHint("Hide hud", &CHud::m_Wants_To_Draw_Hud)) + Command(!CHud::m_Wants_To_Draw_Hud); + + if (Ui::CheckboxWithHint("Hide veh names", &CHud::bScriptDontDisplayVehicleName)) + Command(!CHud::bScriptDontDisplayVehicleName); + + if (Ui::CheckboxWithHint("Hide radar", &CHud::bScriptDontDisplayRadar)) + Command(!CHud::bScriptDontDisplayRadar); + + Ui::CheckboxAddressEx("Hide wanted level", 0x58DD1B, 0x90, 1); + if (Ui::CheckboxWithHint("Lock weather", &lock_weather)) + weather_type_backup = CWeather::OldWeatherType; + + ImGui::Columns(1); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Menus")) + { + Ui::ColorPickerAddress("Health bar + debt color", 0xBAB22C, ImVec4(180,25,29,255)); + Ui::ColorPickerAddress("Main menu title border color", 0xBAB240, ImVec4(0,0,0,255)); + Ui::ColorPickerAddress("Money color", 0xBAB230, ImVec4(54,104,44,255)); + Ui::EditRadioButtonAddressEx("Money font outline", 0x58F58D, std::vector{{ "No outline", 0 }, { "Thin outline" ,1 }, { "Default outline" ,2 }}); + Ui::EditRadioButtonAddressEx("Money font style", 0x58F57F, std::vector{ { "Style 1", 1 }, { "Style 2" ,2 }, { "Default style" ,3 }}); + Ui::EditAddress("Radar Height", 0x866B74, 0, 76, 999); + Ui::EditAddress("Radar Width", 0x866B78, 0, 94, 999); + Ui::EditAddress("Radar X position", 0x858A10, -999, 40, 999); + Ui::EditAddress("Radar Y position", 0x866B70, -999, 104, 999); + Ui::EditAddress("Radar zoom", 0xA444A3, 0, 0, 170); + Ui::ColorPickerAddress("Radio station color", 0xBAB24C, ImVec4(150,150,150,255)); + Ui::ColorPickerAddress("Styled text color", 0xBAB258, ImVec4(226,192,99,255)); + Ui::ColorPickerAddress("Text color", 0xBAB234, ImVec4(50,60,127,255)); + Ui::EditRadioButtonAddressEx("Wanted star border", 0x58DD41, std::vector{ { "No border", 0 }, { "Default" ,1 }, { "Bold border" ,2 }}); + Ui::ColorPickerAddress("Wanted star color + some text", 0xBAB244, ImVec4(144,98,16,255)); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Timecyc")) + { + ImGui::Spacing(); + if (ImGui::Button("Generate timecyc file", Ui::GetSize(2))) + { + GenerateTimecycFile(); + CHud::SetHelpMessage("File generated", false, false, false); + } + ImGui::SameLine(); + if (ImGui::Button("Reset timecyc", Ui::GetSize(2))) + { + CTimeCycle::Initialise(); + CHud::SetHelpMessage("Timecyc reset", false, false, false); + } + ImGui::Spacing(); + + int weather = CWeather::OldWeatherType; + if (Ui::ListBox("Current weather", weather_names, weather)) + CWeather::OldWeatherType = weather; + + weather = CWeather::NewWeatherType; + if (Ui::ListBox("Next weather", weather_names, weather)) + CWeather::NewWeatherType = weather; + + ImGui::Spacing(); + int hour = CClock::ms_nGameClockHours; + int minute = CClock::ms_nGameClockMinutes; + + if (ImGui::InputInt("Hour", &hour)) + { + if (hour < 0) hour = 23; + if (hour > 23) hour = 0; + CClock::ms_nGameClockHours = hour; + } + + if (ImGui::InputInt("Minute", &minute)) + { + if (minute < 0) minute = 59; + if (minute > 59) minute = 0; + CClock::ms_nGameClockMinutes = minute; + } + ImGui::Spacing(); + if (ImGui::BeginTabBar("Timecyc subtab", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) + { + if (ImGui::BeginTabItem("Colors")) + { + ImGui::BeginChild("TimecycColors"); + ImGui::Spacing(); + + TimeCycColorEdit3("Ambient", CTimeCycle::m_nAmbientRed, CTimeCycle::m_nAmbientGreen, CTimeCycle::m_nAmbientBlue); + TimeCycColorEdit3("Ambient obj", CTimeCycle::m_nAmbientRed_Obj, CTimeCycle::m_nAmbientGreen_Obj, CTimeCycle::m_nAmbientBlue_Obj); + TimeCycColorEdit3("Fluffy clouds", CTimeCycle::m_nFluffyCloudsBottomRed , CTimeCycle::m_nFluffyCloudsBottomGreen, CTimeCycle::m_nFluffyCloudsBottomBlue); + TimeCycColorEdit3("Low clouds", CTimeCycle::m_nLowCloudsRed, CTimeCycle::m_nLowCloudsGreen, CTimeCycle::m_nLowCloudsBlue); + + TimeCycColorEdit4("Postfx 1", CTimeCycle::m_fPostFx1Red, CTimeCycle::m_fPostFx1Green, CTimeCycle::m_fPostFx1Blue, CTimeCycle::m_fPostFx1Alpha); + TimeCycColorEdit4("Postfx 2", CTimeCycle::m_fPostFx2Red, CTimeCycle::m_fPostFx2Green, CTimeCycle::m_fPostFx2Blue, CTimeCycle::m_fPostFx1Alpha); + + TimeCycColorEdit3("Sky bottom", CTimeCycle::m_nSkyBottomRed, CTimeCycle::m_nSkyBottomGreen, CTimeCycle::m_nSkyBottomBlue); + TimeCycColorEdit3("Sun core", CTimeCycle::m_nSunCoreRed, CTimeCycle::m_nSunCoreGreen, CTimeCycle::m_nSunCoreBlue); + TimeCycColorEdit3("Sun corona", CTimeCycle::m_nSunCoronaRed, CTimeCycle::m_nSunCoronaGreen, CTimeCycle::m_nSunCoronaBlue); + TimeCycColorEdit3("Sky top", CTimeCycle::m_nSkyTopRed, CTimeCycle::m_nSkyTopGreen, CTimeCycle::m_nSkyTopBlue); + + TimeCycColorEdit4("Water", CTimeCycle::m_fWaterRed, CTimeCycle::m_fWaterGreen, CTimeCycle::m_fWaterBlue, CTimeCycle::m_fWaterAlpha); + + ImGui::EndChild(); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Misc")) + { + ImGui::BeginChild("TimecycMisc"); + + ImGui::PushItemWidth(ImGui::GetWindowContentRegionWidth() / 2); + TimecycSlider("Cloud alpha", CTimeCycle::m_fCloudAlpha, 0, 255); + TimecycSlider("Directional mult", CTimeCycle::m_nDirectionalMult , 0, 255); + TimecycSlider("Far clip", CTimeCycle::m_fFarClip, 0, 2000); + TimecycSlider("Fog start", CTimeCycle::m_fFogStart, 0, 2000); + TimecycSlider("High light min intensity", CTimeCycle::m_nHighLightMinIntensity, 0, 255); + TimecycSlider("Light on ground brightness", CTimeCycle::m_fLightsOnGroundBrightness, 0, 255); + TimecycSlider("Light shadow strength", CTimeCycle::m_nLightShadowStrength, 0, 255); + TimecycSlider("Pole shadow strength", CTimeCycle::m_nPoleShadowStrength, 0, 255); + TimecycSlider("Shadow strength", CTimeCycle::m_nShadowStrength, 0, 255); + TimecycSlider("Sprite brightness", CTimeCycle::m_fSpriteBrightness, -127, 127); + TimecycSlider("Sprite size", CTimeCycle::m_fSpriteSize, -127, 127); + TimecycSlider("Sun size", CTimeCycle::m_fSunSize, -127, 127); + TimecycSlider("Water fog alpha", CTimeCycle::m_nWaterFogAlpha, 0, 255); + ImGui::PopItemWidth(); + + ImGui::Spacing(); + ImGui::EndChild(); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + + ImGui::EndTabItem(); + } + + + ImGui::EndTabBar(); + } +} diff --git a/CheatMenu/Visual.h b/CheatMenu/Visual.h new file mode 100644 index 0000000..4f9409f --- /dev/null +++ b/CheatMenu/Visual.h @@ -0,0 +1,30 @@ +#pragma once +class Visual +{ +private: + static bool lock_weather; + static int weather_type_backup; + + // Timecyc + static std::vector weather_names; + static int timecyc_hour; + + static void GenerateTimecycFile(); + static int GetCurrentHourTimeId(); + static bool TimeCycColorEdit3(const char* label, uchar *r, uchar *g, uchar *b, ImGuiColorEditFlags flags = 0); + static bool TimeCycColorEdit4(const char* label, uchar *r, uchar *g, uchar *b, uchar *a, ImGuiColorEditFlags flags = 0); + template + static void TimecycSlider(const char* label, T* data, int min, int max); +public: + Visual(); + ~Visual(); + static void Main(); +}; + +template +void Visual::TimecycSlider(const char* label, T* data, int min, int max) +{ + int a = *data; + if (ImGui::SliderInt(label, &a, min, max)) + *data = a; +} \ No newline at end of file diff --git a/CheatMenu/Weapon.cpp b/CheatMenu/Weapon.cpp new file mode 100644 index 0000000..8142c4c --- /dev/null +++ b/CheatMenu/Weapon.cpp @@ -0,0 +1,210 @@ +#include "pch.h" +#include "Weapon.h" + +ImGuiTextFilter Weapon::filter = ""; +std::string Weapon::selected_item = "All"; +std::vector Weapon::search_categories; +std::vector> Weapon::weapon_vec; + +CJson Weapon::weapon_json = CJson("weapon"); +bool Weapon::auto_aim = false; +bool Weapon::fast_reload = false; +bool Weapon::huge_damage = false; +bool Weapon::long_range = false; +uchar Weapon::cur_weapon_slot = -1; +int Weapon::ammo_count = 99999; + +int Weapon::selected_gang = 0; +int Weapon::selected_weapon_count = 0; + +int Weapon::gang_weapons[10][3] = +{ + {WEAPON_PISTOL, WEAPON_MICRO_UZI, WEAPON_UNARMED }, // Ballas + {WEAPON_PISTOL, WEAPON_UNARMED, WEAPON_UNARMED}, // Grove + {WEAPON_PISTOL, WEAPON_UNARMED, WEAPON_UNARMED}, // Vagos + {WEAPON_UNARMED, WEAPON_UNARMED, WEAPON_UNARMED}, // SF Rifa + {WEAPON_PISTOL, WEAPON_MICRO_UZI, WEAPON_UNARMED}, // Da Nang Boys + {WEAPON_DESERT_EAGLE , WEAPON_UNARMED, WEAPON_UNARMED}, // Mafia + {WEAPON_PISTOL, WEAPON_AK47, WEAPON_UNARMED}, // Triads + {WEAPON_PISTOL, WEAPON_MICRO_UZI, WEAPON_UNARMED}, // VLA + {WEAPON_UNARMED, WEAPON_UNARMED, WEAPON_UNARMED}, // Gang 9 + {WEAPON_UNARMED, WEAPON_UNARMED, WEAPON_UNARMED}, // Gang 10 +}; + +Weapon::Weapon() +{ + Events::initGameEvent += [] + { + std::string dir_path = (std::string(".\\CheatMenu\\weapons\\")).c_str(); + Util::LoadTexturesInDirRecursive(dir_path.c_str(), ".jpg", Weapon::search_categories, Weapon::weapon_vec); + }; + + Events::processScriptsEvent += [] + { + CPlayerPed *player = FindPlayerPed(); + if (auto_aim) + { + float mouseX, mouseY; + Command(&mouseX, &mouseY); + if (static_cast(mouseY/2) == 0 || static_cast(mouseX/2) == 0) + { + if (KeyPressed(2)) + CCamera::m_bUseMouse3rdPerson = false; + } + else + CCamera::m_bUseMouse3rdPerson = true; + } + + uchar slot = player->m_nActiveWeaponSlot; + if (cur_weapon_slot != slot) + { + auto weapon_type = player->m_aWeapons[slot].m_nType; + CWeaponInfo *pweapon_info = CWeaponInfo::GetWeaponInfo(weapon_type, player->GetWeaponSkill(weapon_type)); + + if (huge_damage) + pweapon_info->m_nDamage = 1000; + + if (long_range) + { + pweapon_info->m_fTargetRange = 1000.0f; + pweapon_info->m_fWeaponRange = 1000.0f; + pweapon_info->m_fAccuracy = 1.0f; + } + + cur_weapon_slot = slot; + } + }; +} + + +Weapon::~Weapon() +{ +} + +void Weapon::SetGangWeapon(std::string& weapon_type) +{ + gang_weapons[selected_gang][selected_weapon_count] = std::stoi(weapon_type); + CGangs::SetGangWeapons(selected_gang, gang_weapons[selected_gang][0], gang_weapons[selected_gang][1], gang_weapons[selected_gang][2]); +} + +void Weapon::GiveWeaponToPlayer(std::string& weapon_type) +{ + CPlayerPed* player = FindPlayerPed(); + int hplayer = CPools::GetPedRef(player); + + if (weapon_type == "-1") // Jetpack + Command(hplayer); + else + { + int iweapon_type = std::stoi(weapon_type); + + int model = NULL; + Command(iweapon_type, &model); + + CStreaming::RequestModel(model,PRIORITY_REQUEST); + CStreaming::LoadAllRequestedModels(false); + + Command(hplayer, iweapon_type, ammo_count); + Command(model); + } +} + +void Weapon::Main() +{ + CPlayerPed *player = FindPlayerPed(); + uint hplayer = CPools::GetPedRef(player); + + ImGui::Spacing(); + if (ImGui::Button("Drop weapon", Ui::GetSize(3))) + { + float x, y, z; + Command(hplayer, 0.0, 3.0, 0.0, &x, &y, &z); + auto type = player->m_aWeapons[player->m_nActiveWeaponSlot].m_nType; + + if (type) + { + int model =0, pickup = 0; + + Command(type, &model); + Command(model, 3, 999, x, y, z, &pickup); + + Command(hplayer, type); + } + } + ImGui::SameLine(); + if (ImGui::Button("Remove all", Ui::GetSize(3))) + Command(hplayer); + + ImGui::SameLine(); + if (ImGui::Button("Remove current", Ui::GetSize(3))) + Command(hplayer, player->m_aWeapons[player->m_nActiveWeaponSlot].m_nType); + + ImGui::Spacing(); + + if (ImGui::BeginTabBar("Ped", ImGuiTabBarFlags_NoTooltip + ImGuiTabBarFlags_FittingPolicyScroll)) + { + if (ImGui::BeginTabItem("Checkboxes")) + { + ImGui::Spacing(); + ImGui::BeginChild("CheckboxesChild"); + ImGui::Columns(2, 0, false); + + Ui::CheckboxWithHint("Auto aim", &auto_aim, "Enables aim assist on keyboard\n\nQ = left E = right"); + if (Ui::CheckboxWithHint("Huge damage", &huge_damage)) + { + if (!huge_damage) + CWeaponInfo::LoadWeaponData(); + } + if (Ui::CheckboxWithHint("Fast reload", &fast_reload)) + Command(hplayer, fast_reload); + + ImGui::NextColumn(); + Ui::CheckboxAddress("Infinite ammo", 0x969178); + if (Ui::CheckboxWithHint("Long range", &long_range)) + { + if (!long_range) + CWeaponInfo::LoadWeaponData(); + } + ImGui::Columns(1, 0, false); + ImGui::EndChild(); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Gang weapon editor")) + { + ImGui::Spacing(); + Ui::ListBox("Select gang", Ped::gang_names, selected_gang); + + ImGui::Columns(3, 0, false); + ImGui::RadioButton("Weap 1", &selected_weapon_count, 0); + ImGui::NextColumn(); + ImGui::RadioButton("Weap 2", &selected_weapon_count, 1); + ImGui::NextColumn(); + ImGui::RadioButton("Weap 3", &selected_weapon_count, 2); + ImGui::Columns(1); + + ImGui::Spacing(); + ImGui::Text((std::string("Current weapon: ") + weapon_json.data[std::to_string(gang_weapons[selected_gang][selected_weapon_count])].get()).c_str()); + ImGui::Spacing(); + Ui::DrawImages(weapon_vec, ImVec2(65, 65), search_categories, selected_item, filter, SetGangWeapon, nullptr, + [](std::string str) {return weapon_json.data[str].get(); }, + [](std::string str) {return str != "-1"; /*Jetpack*/ } + ); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Spawn")) + { + ImGui::Spacing(); + if (ImGui::InputInt("Ammo", &ammo_count)) + { + ammo_count = (ammo_count < 0) ? 0 : ammo_count; + ammo_count = (ammo_count > 99999) ? 99999 : ammo_count; + } + Ui::DrawImages(weapon_vec, ImVec2(65, 65), search_categories, selected_item, filter, GiveWeaponToPlayer, nullptr, + [](std::string str) {return weapon_json.data[str].get(); }, + [](std::string str) {return str != "0"; /*Unarmed*/ } + ); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } +} diff --git a/CheatMenu/Weapon.h b/CheatMenu/Weapon.h new file mode 100644 index 0000000..931309d --- /dev/null +++ b/CheatMenu/Weapon.h @@ -0,0 +1,35 @@ +#pragma once +#include "Ped.h" +class Weapon +{ +private: + static ImGuiTextFilter filter; + static std::string selected_item; + static std::vector search_categories; + static std::vector> weapon_vec; + + static CJson weapon_json; + + static bool auto_aim; + static bool fast_reload; + static bool huge_damage; + static bool long_range; + + static int ammo_count; + static uchar cur_weapon_slot; + + static int selected_gang; + static int selected_weapon_count; + static int cur_weapon; + static int gang_weapons[10][3]; + + friend class Ped; +public: + Weapon(); + ~Weapon(); + + static void Main(); + static void GiveWeaponToPlayer(std::string& weapon_type); + static void SetGangWeapon(std::string& weapon_type); +}; + diff --git a/CheatMenu/external/imgui/imconfig.h b/CheatMenu/external/imgui/imconfig.h new file mode 100644 index 0000000..6b87dd6 --- /dev/null +++ b/CheatMenu/external/imgui/imconfig.h @@ -0,0 +1,109 @@ +//----------------------------------------------------------------------------- +// COMPILE-TIME OPTIONS FOR DEAR IMGUI +// Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure. +// You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext() to rewire memory allocation functions. +//----------------------------------------------------------------------------- +// A) You may edit imconfig.h (and not overwrite it when updating Dear ImGui, or maintain a patch/rebased branch with your modifications to it) +// B) or '#define IMGUI_USER_CONFIG "my_imgui_config.h"' in your project and then add directives in your own file without touching this template. +//----------------------------------------------------------------------------- +// You need to make sure that configuration settings are defined consistently _everywhere_ Dear ImGui is used, which include the imgui*.cpp +// files but also _any_ of your code that uses Dear ImGui. This is because some compile-time options have an affect on data structures. +// Defining those options in imconfig.h will ensure every compilation unit gets to see the same data structure layouts. +// Call IMGUI_CHECKVERSION() from your .cpp files to verify that the data structures your files are using are matching the ones imgui.cpp is using. +//----------------------------------------------------------------------------- + +#pragma once + +//---- Define assertion handler. Defaults to calling assert(). +// If your macro uses multiple statements, make sure is enclosed in a 'do { .. } while (0)' block so it can be used as a single statement. +//#define IM_ASSERT(_EXPR) MyAssert(_EXPR) +//#define IM_ASSERT(_EXPR) ((void)(_EXPR)) // Disable asserts + +//---- Define attributes of all API symbols declarations, e.g. for DLL under Windows +// Using dear imgui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. +//#define IMGUI_API __declspec( dllexport ) +//#define IMGUI_API __declspec( dllimport ) + +//---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to avoid using soon-to-be obsolete function/names. +//#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +//---- Disable all of Dear ImGui or don't implement standard windows. +// It is very strongly recommended to NOT disable the demo windows during development. Please read comments in imgui_demo.cpp. +//#define IMGUI_DISABLE // Disable everything: all headers and source files will be empty. +//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. Not recommended. +//#define IMGUI_DISABLE_METRICS_WINDOW // Disable debug/metrics window: ShowMetricsWindow() will be empty. + +//---- Don't implement some functions to reduce linkage requirements. +//#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. +//#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] Don't implement default IME handler. Won't use and link with ImmGetContext/ImmSetCompositionWindow. +//#define IMGUI_DISABLE_WIN32_FUNCTIONS // [Win32] Won't use and link with any Win32 function (clipboard, ime). +//#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS // [OSX] Implement default OSX clipboard handler (need to link with '-framework ApplicationServices', this is why this is not the default). +//#define IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS // Don't implement ImFormatString/ImFormatStringV so you can implement them yourself (e.g. if you don't want to link with vsnprintf) +//#define IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS // Don't implement ImFabs/ImSqrt/ImPow/ImFmod/ImCos/ImSin/ImAcos/ImAtan2 so you can implement them yourself. +//#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite so you can implement them yourself if you don't want to link with fopen/fclose/fread/fwrite. This will also disable the LogToTTY() function. +//#define IMGUI_DISABLE_DEFAULT_ALLOCATORS // Don't implement default allocators calling malloc()/free() to avoid linking with them. You will need to call ImGui::SetAllocatorFunctions(). + +//---- Include imgui_user.h at the end of imgui.h as a convenience +//#define IMGUI_INCLUDE_IMGUI_USER_H + +//---- Pack colors to BGRA8 instead of RGBA8 (to avoid converting from one to another) +//#define IMGUI_USE_BGRA_PACKED_COLOR + +//---- Use 32-bit for ImWchar (default is 16-bit) to support full unicode code points. +//#define IMGUI_USE_WCHAR32 + +//---- Avoid multiple STB libraries implementations, or redefine path/filenames to prioritize another version +// By default the embedded implementations are declared static and not available outside of imgui cpp files. +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION + +//---- Unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined, use the much faster STB sprintf library implementation of vsnprintf instead of the one from the default C library. +// Note that stb_sprintf.h is meant to be provided by the user and available in the include path at compile time. Also, the compatibility checks of the arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by STB sprintf. +// #define IMGUI_USE_STB_SPRINTF + +//---- Define constructor and implicit cast operators to convert back<>forth between your math types and ImVec2/ImVec4. +// This will be inlined as part of ImVec2 and ImVec4 class declarations. +/* +#define IM_VEC2_CLASS_EXTRA \ + ImVec2(const MyVec2& f) { x = f.x; y = f.y; } \ + operator MyVec2() const { return MyVec2(x,y); } + +#define IM_VEC4_CLASS_EXTRA \ + ImVec4(const MyVec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \ + operator MyVec4() const { return MyVec4(x,y,z,w); } +*/ + +//---- Use 32-bit vertex indices (default is 16-bit) is one way to allow large meshes with more than 64K vertices. +// Your renderer back-end will need to support it (most example renderer back-ends support both 16/32-bit indices). +// Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd::VtxOffset in your renderer. +// Read about ImGuiBackendFlags_RendererHasVtxOffset for details. +//#define ImDrawIdx unsigned int + +//---- Override ImDrawCallback signature (will need to modify renderer back-ends accordingly) +//struct ImDrawList; +//struct ImDrawCmd; +//typedef void (*MyImDrawCallback)(const ImDrawList* draw_list, const ImDrawCmd* cmd, void* my_renderer_user_data); +//#define ImDrawCallback MyImDrawCallback + +//---- Debug Tools: Macro to break in Debugger +// (use 'Metrics->Tools->Item Picker' to pick widgets with the mouse and break into them for easy debugging.) +//#define IM_DEBUG_BREAK IM_ASSERT(0) +//#define IM_DEBUG_BREAK __debugbreak() + +//---- Debug Tools: Have the Item Picker break in the ItemAdd() function instead of ItemHoverable(), +// (which comes earlier in the code, will catch a few extra items, allow picking items other than Hovered one.) +// This adds a small runtime cost which is why it is not enabled by default. +//#define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX + +//---- Debug Tools: Enable slower asserts +//#define IMGUI_DEBUG_PARANOID + +//---- Tip: You can add extra functions within the ImGui:: namespace, here or in your own headers files. +/* +namespace ImGui +{ + void MyFunction(const char* name, const MyMatrix44& v); +} +*/ diff --git a/CheatMenu/external/imgui/imgui.cpp b/CheatMenu/external/imgui/imgui.cpp new file mode 100644 index 0000000..69fd07a --- /dev/null +++ b/CheatMenu/external/imgui/imgui.cpp @@ -0,0 +1,10860 @@ +// dear imgui, v1.79 +// (main code and documentation) + +// Help: +// - Read FAQ at http://dearimgui.org/faq +// - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// Read imgui.cpp for details, links and comments. + +// Resources: +// - FAQ http://dearimgui.org/faq +// - Homepage & latest https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/3488 (please post your screenshots/video there!) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Wiki https://github.com/ocornut/imgui/wiki +// - Issues & support https://github.com/ocornut/imgui/issues + +// Developed by Omar Cornut and every direct or indirect contributors to the GitHub. +// See LICENSE.txt for copyright and licensing details (standard MIT License). +// This library is free but needs your support to sustain development and maintenance. +// Businesses: you can support continued development via invoiced technical support, maintenance and sponsoring contracts. Please reach out to "contact AT dearimgui.org". +// Individuals: you can support continued development via donations. See docs/README or web page. + +// It is recommended that you don't modify imgui.cpp! It will become difficult for you to update the library. +// Note that 'ImGui::' being a namespace, you can add functions into the namespace from your own source files, without +// modifying imgui.h or imgui.cpp. You may include imgui_internal.h to access internal data structures, but it doesn't +// come with any guarantee of forward compatibility. Discussing your changes on the GitHub Issue Tracker may lead you +// to a better solution or official support for them. + +/* + +Index of this file: + +DOCUMENTATION + +- MISSION STATEMENT +- END-USER GUIDE +- PROGRAMMER GUIDE + - READ FIRST + - HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + - GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + - HOW A SIMPLE APPLICATION MAY LOOK LIKE + - HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE + - USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS +- API BREAKING CHANGES (read me when you update!) +- FREQUENTLY ASKED QUESTIONS (FAQ) + - Read all answers online: https://www.dearimgui.org/faq, or in docs/FAQ.md (with a Markdown viewer) + +CODE +(search for "[SECTION]" in the code to find them) + +// [SECTION] INCLUDES +// [SECTION] FORWARD DECLARATIONS +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +// [SECTION] MISC HELPERS/UTILITIES (File functions) +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// [SECTION] ImGuiStorage +// [SECTION] ImGuiTextFilter +// [SECTION] ImGuiTextBuffer +// [SECTION] ImGuiListClipper +// [SECTION] STYLING +// [SECTION] RENDER HELPERS +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +// [SECTION] ERROR CHECKING +// [SECTION] LAYOUT +// [SECTION] SCROLLING +// [SECTION] TOOLTIPS +// [SECTION] POPUPS +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +// [SECTION] DRAG AND DROP +// [SECTION] LOGGING/CAPTURING +// [SECTION] SETTINGS +// [SECTION] PLATFORM DEPENDENT HELPERS +// [SECTION] METRICS/DEBUG WINDOW + +*/ + +//----------------------------------------------------------------------------- +// DOCUMENTATION +//----------------------------------------------------------------------------- + +/* + + MISSION STATEMENT + ================= + + - Easy to use to create code-driven and data-driven tools. + - Easy to use to create ad hoc short-lived tools and long-lived, more elaborate tools. + - Easy to hack and improve. + - Minimize setup and maintenance. + - Minimize state storage on user side. + - Portable, minimize dependencies, run on target (consoles, phones, etc.). + - Efficient runtime and memory consumption. + + Designed for developers and content-creators, not the typical end-user! Some of the current weaknesses includes: + + - Doesn't look fancy, doesn't animate. + - Limited layout features, intricate layouts are typically crafted in code. + + + END-USER GUIDE + ============== + + - Double-click on title bar to collapse window. + - Click upper right corner to close a window, available when 'bool* p_open' is passed to ImGui::Begin(). + - Click and drag on lower right corner to resize window (double-click to auto fit window to its contents). + - Click and drag on any empty space to move window. + - TAB/SHIFT+TAB to cycle through keyboard editable fields. + - CTRL+Click on a slider or drag box to input value as text. + - Use mouse wheel to scroll. + - Text editor: + - Hold SHIFT or use mouse to select text. + - CTRL+Left/Right to word jump. + - CTRL+Shift+Left/Right to select words. + - CTRL+A our Double-Click to select all. + - CTRL+X,CTRL+C,CTRL+V to use OS clipboard/ + - CTRL+Z,CTRL+Y to undo/redo. + - ESCAPE to revert text to its original value. + - You can apply arithmetic operators +,*,/ on numerical values. Use +- to subtract (because - would set a negative value!) + - Controls are automatically adjusted for OSX to match standard OSX text editing operations. + - General Keyboard controls: enable with ImGuiConfigFlags_NavEnableKeyboard. + - General Gamepad controls: enable with ImGuiConfigFlags_NavEnableGamepad. See suggested mappings in imgui.h ImGuiNavInput_ + download PNG/PSD at http://goo.gl/9LgVZW + + + PROGRAMMER GUIDE + ================ + + READ FIRST + ---------- + - Remember to read the FAQ (https://www.dearimgui.org/faq) + - Your code creates the UI, if your code doesn't run the UI is gone! The UI can be highly dynamic, there are no construction + or destruction steps, less superfluous data retention on your side, less state duplication, less state synchronization, less bugs. + - Call and read ImGui::ShowDemoWindow() for demo code demonstrating most features. + - The library is designed to be built from sources. Avoid pre-compiled binaries and packaged versions. See imconfig.h to configure your build. + - Dear ImGui is an implementation of the IMGUI paradigm (immediate-mode graphical user interface, a term coined by Casey Muratori). + You can learn about IMGUI principles at http://www.johno.se/book/imgui.html, http://mollyrocket.com/861 & more links in the FAQ. + - Dear ImGui is a "single pass" rasterizing implementation of the IMGUI paradigm, aimed at ease of use and high-performances. + For every application frame your UI code will be called only once. This is in contrast to e.g. Unity's own implementation of an IMGUI, + where the UI code is called multiple times ("multiple passes") from a single entry point. There are pros and cons to both approaches. + - Our origin are on the top-left. In axis aligned bounding boxes, Min = top-left, Max = bottom-right. + - This codebase is also optimized to yield decent performances with typical "Debug" builds settings. + - Please make sure you have asserts enabled (IM_ASSERT redirects to assert() by default, but can be redirected). + If you get an assert, read the messages and comments around the assert. + - C++: this is a very C-ish codebase: we don't rely on C++11, we don't include any C++ headers, and ImGui:: is a namespace. + - C++: ImVec2/ImVec4 do not expose math operators by default, because it is expected that you use your own math types. + See FAQ "How can I use my own math types instead of ImVec2/ImVec4?" for details about setting up imconfig.h for that. + However, imgui_internal.h can optionally export math operators for ImVec2/ImVec4, which we use in this codebase. + - C++: pay attention that ImVector<> manipulates plain-old-data and does not honor construction/destruction (avoid using it in your code!). + + + HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI + ---------------------------------------------- + - Overwrite all the sources files except for imconfig.h (if you have made modification to your copy of imconfig.h) + - Or maintain your own branch where you have imconfig.h modified. + - Read the "API BREAKING CHANGES" section (below). This is where we list occasional API breaking changes. + If a function/type has been renamed / or marked obsolete, try to fix the name in your code before it is permanently removed + from the public API. If you have a problem with a missing function/symbols, search for its name in the code, there will + likely be a comment about it. Please report any issue to the GitHub page! + - Try to keep your copy of dear imgui reasonably up to date. + + + GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE + --------------------------------------------------------------- + - Run and study the examples and demo in imgui_demo.cpp to get acquainted with the library. + - In the majority of cases you should be able to use unmodified back-ends files available in the examples/ folder. + - Add the Dear ImGui source files + selected back-end source files to your projects or using your preferred build system. + It is recommended you build and statically link the .cpp files as part of your project and NOT as shared library (DLL). + - You can later customize the imconfig.h file to tweak some compile-time behavior, such as integrating Dear ImGui types with your own maths types. + - When using Dear ImGui, your programming IDE is your friend: follow the declaration of variables, functions and types to find comments about them. + - Dear ImGui never touches or knows about your GPU state. The only function that knows about GPU is the draw function that you provide. + Effectively it means you can create widgets at any time in your code, regardless of considerations of being in "update" vs "render" + phases of your own application. All rendering information are stored into command-lists that you will retrieve after calling ImGui::Render(). + - Refer to the bindings and demo applications in the examples/ folder for instruction on how to setup your code. + - If you are running over a standard OS with a common graphics API, you should be able to use unmodified imgui_impl_*** files from the examples/ folder. + + + HOW A SIMPLE APPLICATION MAY LOOK LIKE + -------------------------------------- + EXHIBIT 1: USING THE EXAMPLE BINDINGS (= imgui_impl_XXX.cpp files from the examples/ folder). + The sub-folders in examples/ contains examples applications following this structure. + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Initialize helper Platform and Renderer bindings (here we are using imgui_impl_win32.cpp and imgui_impl_dx11.cpp) + ImGui_ImplWin32_Init(hwnd); + ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); + + // Application main loop + while (true) + { + // Feed inputs to dear imgui, start new frame + ImGui_ImplDX11_NewFrame(); + ImGui_ImplWin32_NewFrame(); + ImGui::NewFrame(); + + // Any application code here + ImGui::Text("Hello, world!"); + + // Render dear imgui into screen + ImGui::Render(); + ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); + g_pSwapChain->Present(1, 0); + } + + // Shutdown + ImGui_ImplDX11_Shutdown(); + ImGui_ImplWin32_Shutdown(); + ImGui::DestroyContext(); + + EXHIBIT 2: IMPLEMENTING CUSTOM BINDING / CUSTOM ENGINE + + // Application init: create a dear imgui context, setup some options, load fonts + ImGui::CreateContext(); + ImGuiIO& io = ImGui::GetIO(); + // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. + // TODO: Fill optional fields of the io structure later. + // TODO: Load TTF/OTF fonts if you don't want to use the default font. + + // Build and load the texture atlas into a texture + // (In the examples/ app this is usually done within the ImGui_ImplXXX_Init() function from one of the demo Renderer) + int width, height; + unsigned char* pixels = NULL; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // At this point you've got the texture data and you need to upload that your your graphic system: + // After we have created the texture, store its pointer/identifier (_in whichever format your engine uses_) in 'io.Fonts->TexID'. + // This will be passed back to your via the renderer. Basically ImTextureID == void*. Read FAQ for details about ImTextureID. + MyTexture* texture = MyEngine::CreateTextureFromMemoryPixels(pixels, width, height, TEXTURE_TYPE_RGBA32) + io.Fonts->TexID = (void*)texture; + + // Application main loop + while (true) + { + // Setup low-level inputs, e.g. on Win32: calling GetKeyboardState(), or write to those fields from your Windows message handlers, etc. + // (In the examples/ app this is usually done within the ImGui_ImplXXX_NewFrame() function from one of the demo Platform bindings) + io.DeltaTime = 1.0f/60.0f; // set the time elapsed since the previous frame (in seconds) + io.DisplaySize.x = 1920.0f; // set the current display width + io.DisplaySize.y = 1280.0f; // set the current display height here + io.MousePos = my_mouse_pos; // set the mouse position + io.MouseDown[0] = my_mouse_buttons[0]; // set the mouse button states + io.MouseDown[1] = my_mouse_buttons[1]; + + // Call NewFrame(), after this point you can use ImGui::* functions anytime + // (So you want to try calling NewFrame() as early as you can in your mainloop to be able to use Dear ImGui everywhere) + ImGui::NewFrame(); + + // Most of your application code here + ImGui::Text("Hello, world!"); + MyGameUpdate(); // may use any Dear ImGui functions, e.g. ImGui::Begin("My window"); ImGui::Text("Hello, world!"); ImGui::End(); + MyGameRender(); // may use any Dear ImGui functions as well! + + // Render dear imgui, swap buffers + // (You want to try calling EndFrame/Render as late as you can, to be able to use Dear ImGui in your own game rendering code) + ImGui::EndFrame(); + ImGui::Render(); + ImDrawData* draw_data = ImGui::GetDrawData(); + MyImGuiRenderFunction(draw_data); + SwapBuffers(); + } + + // Shutdown + ImGui::DestroyContext(); + + To decide whether to dispatch mouse/keyboard inputs to Dear ImGui to the rest your application, + you should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + Please read the FAQ and example applications for details about this! + + + HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE + --------------------------------------------- + The bindings in impl_impl_XXX.cpp files contains many working implementations of a rendering function. + + void void MyImGuiRenderFunction(ImDrawData* draw_data) + { + // TODO: Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled + // TODO: Setup viewport covering draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup orthographic projection matrix cover draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize + // TODO: Setup shader: vertex { float2 pos, float2 uv, u32 color }, fragment shader sample color from 1 texture, multiply by vertex color. + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; // vertex buffer generated by Dear ImGui + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; // index buffer generated by Dear ImGui + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // The texture for the draw call is specified by pcmd->TextureId. + // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. + MyEngineBindTexture((MyTexture*)pcmd->TextureId); + + // We are using scissoring to clip some objects. All low-level graphics API should supports it. + // - If your engine doesn't support scissoring yet, you may ignore this at first. You will get some small glitches + // (some elements visible outside their bounds) but you can fix that once everything else works! + // - Clipping coordinates are provided in imgui coordinates space (from draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize) + // In a single viewport application, draw_data->DisplayPos will always be (0,0) and draw_data->DisplaySize will always be == io.DisplaySize. + // However, in the interest of supporting multi-viewport applications in the future (see 'viewport' branch on github), + // always subtract draw_data->DisplayPos from clipping bounds to convert them to your viewport space. + // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) + ImVec2 pos = draw_data->DisplayPos; + MyEngineScissor((int)(pcmd->ClipRect.x - pos.x), (int)(pcmd->ClipRect.y - pos.y), (int)(pcmd->ClipRect.z - pos.x), (int)(pcmd->ClipRect.w - pos.y)); + + // Render 'pcmd->ElemCount/3' indexed triangles. + // By default the indices ImDrawIdx are 16-bit, you can change them to 32-bit in imconfig.h if your engine doesn't support 16-bit indices. + MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer, vtx_buffer); + } + idx_buffer += pcmd->ElemCount; + } + } + } + + + USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS + ------------------------------------------ + - The gamepad/keyboard navigation is fairly functional and keeps being improved. + - Gamepad support is particularly useful to use Dear ImGui on a console system (e.g. PS4, Switch, XB1) without a mouse! + - You can ask questions and report issues at https://github.com/ocornut/imgui/issues/787 + - The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. + - Keyboard: + - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. + NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. + - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), the io.WantCaptureKeyboard flag + will be set. For more advanced uses, you may want to read from: + - io.NavActive: true when a window is focused and it doesn't have the ImGuiWindowFlags_NoNavInputs flag set. + - io.NavVisible: true when the navigation cursor is visible (and usually goes false when mouse is used). + - or query focus information with e.g. IsWindowFocused(ImGuiFocusedFlags_AnyWindow), IsItemFocused() etc. functions. + Please reach out if you think the game vs navigation input sharing could be improved. + - Gamepad: + - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. + - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + fill the io.NavInputs[] fields before calling NewFrame(). + Note that io.NavInputs[] is cleared by EndFrame(). + - See 'enum ImGuiNavInput_' in imgui.h for a description of inputs. For each entry of io.NavInputs[], set the following values: + 0.0f= not held. 1.0f= fully held. Pass intermediate 0.0f..1.0f values for analog triggers/sticks. + - We uses a simple >0.0f test for activation testing, and won't attempt to test for a dead-zone. + Your code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). + - You can download PNG/PSD files depicting the gamepad controls for common controllers at: http://goo.gl/9LgVZW. + - If you need to share inputs between your game and the imgui parts, the easiest approach is to go all-or-nothing, with a buttons combo + to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. + - Mouse: + - PS4 users: Consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. + - Consoles/Tablet/Phone users: Consider using a Synergy 1.x server (on your PC) + uSynergy.c (on your console/tablet/phone app) to share your PC mouse/keyboard. + - On a TV/console system where readability may be lower or mouse inputs may be awkward, you may want to set the ImGuiConfigFlags_NavEnableSetMousePos flag. + Enabling ImGuiConfigFlags_NavEnableSetMousePos + ImGuiBackendFlags_HasSetMousePos instructs dear imgui to move your mouse cursor along with navigation movements. + When enabled, the NewFrame() function may alter 'io.MousePos' and set 'io.WantSetMousePos' to notify you that it wants the mouse cursor to be moved. + When that happens your back-end NEEDS to move the OS or underlying mouse cursor on the next frame. Some of the binding in examples/ do that. + (If you set the NavEnableSetMousePos flag but don't honor 'io.WantSetMousePos' properly, imgui will misbehave as it will see your mouse as moving back and forth!) + (In a setup when you may not have easy control over the mouse cursor, e.g. uSynergy.c doesn't expose moving remote mouse cursor, you may want + to set a boolean to ignore your other external mouse positions until the external source is moved again.) + + + API BREAKING CHANGES + ==================== + + Occasionally introducing changes that are breaking the API. We try to make the breakage minor and easy to fix. + Below is a change-log of API breaking changes only. If you are using one of the functions listed, expect to have to fix some code. + When you are not sure about a old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files. + You can read releases logs https://github.com/ocornut/imgui/releases for more details. + + - 2020/10/05 (1.79) - removed ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using the ImGuiListClipper::Begin() function, with misleading edge cases (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed). + - 2020/09/25 (1.79) - renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete sooner because previous name was added recently). + - 2020/09/25 (1.79) - renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton. + - 2020/09/21 (1.79) - renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), reverting the change from 1.77. For varieties of reason this is more self-explanatory. + - 2020/09/21 (1.79) - removed return value from OpenPopupOnItemClick() - returned true on mouse release on item - because it is inconsistent with other popup APIs and makes others misleading. It's also and unnecessary: you can use IsWindowAppearing() after BeginPopup() for a similar result. + - 2020/09/17 (1.79) - removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font. If you scaled this value after calling AddFontDefault(), this is now done automatically. It was also getting in the way of better font scaling, so let's get rid of it now! + - 2020/08/17 (1.78) - obsoleted use of the trailing 'float power=1.0f' parameter for DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN(), VSliderFloat() and VSliderScalar(). + replaced the 'float power=1.0f' argument with integer-based flags defaulting to 0 (as with all our flags). + worked out a backward-compatibility scheme so hopefully most C++ codebase should not be affected. in short, when calling those functions: + - if you omitted the 'power' parameter (likely!), you are not affected. + - if you set the 'power' parameter to 1.0f (same as previous default value): 1/ your compiler may warn on float>int conversion, 2/ everything else will work. 3/ you can replace the 1.0f value with 0 to fix the warning, and be technically correct. + - if you set the 'power' parameter to >1.0f (to enable non-linear editing): 1/ your compiler may warn on float>int conversion, 2/ code will assert at runtime, 3/ in case asserts are disabled, the code will not crash and enable the _Logarithmic flag. 4/ you can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the warning/assert and get a _similar_ effect as previous uses of power >1.0f. + see https://github.com/ocornut/imgui/issues/3361 for all details. + kept inline redirection functions (will obsolete) apart for: DragFloatRange2(), VSliderFloat(), VSliderScalar(). For those three the 'float power=1.0f' version were removed directly as they were most unlikely ever used. + for shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. + - obsoleted use of v_min > v_max in DragInt, DragFloat, DragScalar to lock edits (introduced in 1.73, was not demoed nor documented very), will be replaced by a more generic ReadOnly feature. You may use the ImGuiSliderFlags_ReadOnly internal flag in the meantime. + - 2020/06/23 (1.77) - removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. + - 2020/06/15 (1.77) - renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). [NOTE: THIS WAS REVERTED IN 1.79] + - 2020/06/15 (1.77) - removed CalcItemRectClosestPoint() entry point which was made obsolete and asserting in December 2017. + - 2020/04/23 (1.77) - removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular(). + - 2020/01/22 (1.75) - ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius any more. + - 2019/12/17 (1.75) - [undid this change in 1.76] made Columns() limited to 64 columns by asserting above that limit. While the current code technically supports it, future code may not so we're putting the restriction ahead. + - 2019/12/13 (1.75) - [imgui_internal.h] changed ImRect() default constructor initializes all fields to 0.0f instead of (FLT_MAX,FLT_MAX,-FLT_MAX,-FLT_MAX). If you used ImRect::Add() to create bounding boxes by adding multiple points into it, you may need to fix your initial value. + - 2019/12/08 (1.75) - removed redirecting functions/enums that were marked obsolete in 1.53 (December 2017): + - ShowTestWindow() -> use ShowDemoWindow() + - IsRootWindowFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootWindow) + - IsRootWindowOrAnyChildFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) + - SetNextWindowContentWidth(w) -> use SetNextWindowContentSize(ImVec2(w, 0.0f) + - GetItemsLineHeightWithSpacing() -> use GetFrameHeightWithSpacing() + - ImGuiCol_ChildWindowBg -> use ImGuiCol_ChildBg + - ImGuiStyleVar_ChildWindowRounding -> use ImGuiStyleVar_ChildRounding + - ImGuiTreeNodeFlags_AllowOverlapMode -> use ImGuiTreeNodeFlags_AllowItemOverlap + - IMGUI_DISABLE_TEST_WINDOWS -> use IMGUI_DISABLE_DEMO_WINDOWS + - 2019/12/08 (1.75) - obsoleted calling ImDrawList::PrimReserve() with a negative count (which was the vaguely documented and rarely if ever used). Instead we added an explicit PrimUnreserve() API. + - 2019/12/06 (1.75) - removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent with other mouse functions (none of the other functions have it). + - 2019/11/21 (1.74) - ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS for consistency. + - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS for consistency. + - 2019/10/22 (1.74) - removed redirecting functions/enums that were marked obsolete in 1.52 (October 2017): + - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed + - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) + - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding() + - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f) + - ImFont::Glyph -> use ImFontGlyph + - 2019/10/14 (1.74) - inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function. + if you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can add +io.KeyRepeatDelay to it to compensate for the fix. + The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0). Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay). + If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you. + - 2019/07/15 (1.72) - removed TreeAdvanceToLabelPos() which is rarely used and only does SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()). Kept redirection function (will obsolete). + - 2019/07/12 (1.72) - renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection typedef (will obsolete). + - 2019/06/14 (1.72) - removed redirecting functions/enums names that were marked obsolete in 1.51 (June 2017): ImGuiCol_Column*, ImGuiSetCond_*, IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(), IsMouseHoveringWindow(), IMGUI_ONCE_UPON_A_FRAME. Grep this log for details and new names, or see how they were implemented until 1.71. + - 2019/06/07 (1.71) - rendering of child window outer decorations (bg color, border, scrollbars) is now performed as part of the parent window. If you have + overlapping child windows in a same parent, and relied on their relative z-order to be mapped to their submission order, this will affect your rendering. + This optimization is disabled if the parent window has no visual output, because it appears to be the most common situation leading to the creation of overlapping child windows. + Please reach out if you are affected. + - 2019/05/13 (1.71) - renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Kept inline redirection function (will obsolete). + - 2019/05/11 (1.71) - changed io.AddInputCharacter(unsigned short c) signature to io.AddInputCharacter(unsigned int c). + - 2019/04/29 (1.70) - improved ImDrawList thick strokes (>1.0f) preserving correct thickness up to 90 degrees angles (e.g. rectangles). If you have custom rendering using thick lines, they will appear thicker now. + - 2019/04/29 (1.70) - removed GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead. Kept inline redirection function (will obsolete). + - 2019/03/04 (1.69) - renamed GetOverlayDrawList() to GetForegroundDrawList(). Kept redirection function (will obsolete). + - 2019/02/26 (1.69) - renamed ImGuiColorEditFlags_RGB/ImGuiColorEditFlags_HSV/ImGuiColorEditFlags_HEX to ImGuiColorEditFlags_DisplayRGB/ImGuiColorEditFlags_DisplayHSV/ImGuiColorEditFlags_DisplayHex. Kept redirection enums (will obsolete). + - 2019/02/14 (1.68) - made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame). If for some reason your time step calculation gives you a zero value, replace it with an arbitrary small value! + - 2019/02/01 (1.68) - removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already). + - 2019/01/06 (1.67) - renamed io.InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead! + - 2019/01/06 (1.67) - renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept redirection typedef (will obsolete). + - 2018/12/20 (1.67) - made it illegal to call Begin("") with an empty string. This somehow half-worked before but had various undesirable side-effects. + - 2018/12/10 (1.67) - renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges as we are doing a large pass on configuration flags. + - 2018/10/12 (1.66) - renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files. + - 2018/09/28 (1.66) - renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete). + - 2018/09/06 (1.65) - renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and stb_rect_pack.h to imstb_rectpack.h. + If you were conveniently using the imgui copy of those STB headers in your project you will have to update your include paths. + - 2018/09/05 (1.65) - renamed io.OptCursorBlink/io.ConfigCursorBlink to io.ConfigInputTextCursorBlink. (#1427) + - 2018/08/31 (1.64) - added imgui_widgets.cpp file, extracted and moved widgets code out of imgui.cpp into imgui_widgets.cpp. Re-ordered some of the code remaining in imgui.cpp. + NONE OF THE FUNCTIONS HAVE CHANGED. THE CODE IS SEMANTICALLY 100% IDENTICAL, BUT _EVERY_ FUNCTION HAS BEEN MOVED. + Because of this, any local modifications to imgui.cpp will likely conflict when you update. Read docs/CHANGELOG.txt for suggestions. + - 2018/08/22 (1.63) - renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API. Kept redirection function (will obsolete soonish as IsItemDeactivatedAfterChange() is very recent). + - 2018/08/21 (1.63) - renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData for consistency. Kept redirection types (will obsolete). + - 2018/08/21 (1.63) - removed ImGuiInputTextCallbackData::ReadOnly since it is a duplication of (ImGuiInputTextCallbackData::Flags & ImGuiInputTextFlags_ReadOnly). + - 2018/08/01 (1.63) - removed per-window ImGuiWindowFlags_ResizeFromAnySide beta flag in favor of a global io.ConfigResizeWindowsFromEdges [update 1.67 renamed to ConfigWindowsResizeFromEdges] to enable the feature. + - 2018/08/01 (1.63) - renamed io.OptCursorBlink to io.ConfigCursorBlink [-> io.ConfigInputTextCursorBlink in 1.65], io.OptMacOSXBehaviors to ConfigMacOSXBehaviors for consistency. + - 2018/07/22 (1.63) - changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecisions over time. + - 2018/07/08 (1.63) - style: renamed ImGuiCol_ModalWindowDarkening to ImGuiCol_ModalWindowDimBg for consistency with other features. Kept redirection enum (will obsolete). + - 2018/06/08 (1.62) - examples: the imgui_impl_xxx files have been split to separate platform (Win32, Glfw, SDL2, etc.) from renderer (DX11, OpenGL, Vulkan, etc.). + old bindings will still work as is, however prefer using the separated bindings as they will be updated to support multi-viewports. + when adopting new bindings follow the main.cpp code of your preferred examples/ folder to know which functions to call. + in particular, note that old bindings called ImGui::NewFrame() at the end of their ImGui_ImplXXXX_NewFrame() function. + - 2018/06/06 (1.62) - renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish other variants and discourage using the full set. + - 2018/06/06 (1.62) - TreeNodeEx()/TreeNodeBehavior(): the ImGuiTreeNodeFlags_CollapsingHeader helper now include the ImGuiTreeNodeFlags_NoTreePushOnOpen flag. See Changelog for details. + - 2018/05/03 (1.61) - DragInt(): the default compile-time format string has been changed from "%.0f" to "%d", as we are not using integers internally any more. + If you used DragInt() with custom format strings, make sure you change them to use %d or an integer-compatible format. + To honor backward-compatibility, the DragInt() code will currently parse and modify format strings to replace %*f with %d, giving time to users to upgrade their code. + If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead assert! You may run a reg-exp search on your codebase for e.g. "DragInt.*%f" to help you find them. + - 2018/04/28 (1.61) - obsoleted InputFloat() functions taking an optional "int decimal_precision" in favor of an equivalent and more flexible "const char* format", + consistent with other functions. Kept redirection functions (will obsolete). + - 2018/04/09 (1.61) - IM_DELETE() helper function added in 1.60 doesn't clear the input _pointer_ reference, more consistent with expectation and allows passing r-value. + - 2018/03/20 (1.60) - renamed io.WantMoveMouse to io.WantSetMousePos for consistency and ease of understanding (was added in 1.52, _not_ used by core and only honored by some binding ahead of merging the Nav branch). + - 2018/03/12 (1.60) - removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered as the closing cross uses regular button colors now. + - 2018/03/08 (1.60) - changed ImFont::DisplayOffset.y to default to 0 instead of +1. Fixed rounding of Ascent/Descent to match TrueType renderer. If you were adding or subtracting to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. + - 2018/03/03 (1.60) - renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_ to ImGuiMouseCursor_COUNT for consistency with other public enums. + - 2018/02/18 (1.60) - BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. + - 2018/02/16 (1.60) - obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine render function after ImGui::Render(). Use ImGui::GetDrawData() to retrieve the ImDrawData* to display. + - 2018/02/07 (1.60) - reorganized context handling to be more explicit, + - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. + - removed Shutdown() function, as DestroyContext() serve this purpose. + - you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas between contexts. Otherwise CreateContext() will create its own font atlas instance. + - removed allocator parameters from CreateContext(), they are now setup with SetAllocatorFunctions(), and shared by all contexts. + - removed the default global context and font atlas instance, which were confusing for users of DLL reloading and users of multiple contexts. + - 2018/01/31 (1.60) - moved sample TTF files from extra_fonts/ to misc/fonts/. If you loaded files directly from the imgui repo you may need to update your paths. + - 2018/01/11 (1.60) - obsoleted IsAnyWindowHovered() in favor of IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/11 (1.60) - obsoleted IsAnyWindowFocused() in favor of IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will obsolete). + - 2018/01/03 (1.60) - renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData. + - 2017/12/29 (1.60) - removed CalcItemRectClosestPoint() which was weird and not really used by anyone except demo code. If you need it it's easy to replicate on your side. + - 2017/12/24 (1.53) - renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). Kept redirection function (will obsolete). + - 2017/12/21 (1.53) - ImDrawList: renamed style.AntiAliasedShapes to style.AntiAliasedFill for consistency and as a way to explicitly break code that manipulate those flag at runtime. You can now manipulate ImDrawList::Flags + - 2017/12/21 (1.53) - ImDrawList: removed 'bool anti_aliased = true' final parameter of ImDrawList::AddPolyline() and ImDrawList::AddConvexPolyFilled(). Prefer manipulating ImDrawList::Flags if you need to toggle them during the frame. + - 2017/12/14 (1.53) - using the ImGuiWindowFlags_NoScrollWithMouse flag on a child window forwards the mouse wheel event to the parent window, unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar are also set. + - 2017/12/13 (1.53) - renamed GetItemsLineHeightWithSpacing() to GetFrameHeightWithSpacing(). Kept redirection function (will obsolete). + - 2017/12/13 (1.53) - obsoleted IsRootWindowFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootWindow). Kept redirection function (will obsolete). + - obsoleted IsRootWindowOrAnyChildFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows). Kept redirection function (will obsolete). + - 2017/12/12 (1.53) - renamed ImGuiTreeNodeFlags_AllowOverlapMode to ImGuiTreeNodeFlags_AllowItemOverlap. Kept redirection enum (will obsolete). + - 2017/12/10 (1.53) - removed SetNextWindowContentWidth(), prefer using SetNextWindowContentSize(). Kept redirection function (will obsolete). + - 2017/11/27 (1.53) - renamed ImGuiTextBuffer::append() helper to appendf(), appendv() to appendfv(). If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed. + - 2017/11/18 (1.53) - Style, Begin: removed ImGuiWindowFlags_ShowBorders window flag. Borders are now fully set up in the ImGuiStyle structure (see e.g. style.FrameBorderSize, style.WindowBorderSize). Use ImGui::ShowStyleEditor() to look them up. + Please note that the style system will keep evolving (hopefully stabilizing in Q1 2018), and so custom styles will probably subtly break over time. It is recommended you use the StyleColorsClassic(), StyleColorsDark(), StyleColorsLight() functions. + - 2017/11/18 (1.53) - Style: removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. + - 2017/11/18 (1.53) - Style: renamed ImGuiCol_ChildWindowBg to ImGuiCol_ChildBg. + - 2017/11/18 (1.53) - Style: renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding. + - 2017/11/02 (1.53) - obsoleted IsRootWindowOrAnyChildHovered() in favor of using IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); + - 2017/10/24 (1.52) - renamed IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS to IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS for consistency. + - 2017/10/20 (1.52) - changed IsWindowHovered() default parameters behavior to return false if an item is active in another window (e.g. click-dragging item from another window to this window). You can use the newly introduced IsWindowHovered() flags to requests this specific behavior if you need it. + - 2017/10/20 (1.52) - marked IsItemHoveredRect()/IsMouseHoveringWindow() as obsolete, in favor of using the newly introduced flags for IsItemHovered() and IsWindowHovered(). See https://github.com/ocornut/imgui/issues/1382 for details. + removed the IsItemRectHovered()/IsWindowRectHovered() names introduced in 1.51 since they were merely more consistent names for the two functions we are now obsoleting. + IsItemHoveredRect() --> IsItemHovered(ImGuiHoveredFlags_RectOnly) + IsMouseHoveringAnyWindow() --> IsWindowHovered(ImGuiHoveredFlags_AnyWindow) + IsMouseHoveringWindow() --> IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) [weird, old behavior] + - 2017/10/17 (1.52) - marked the old 5-parameters version of Begin() as obsolete (still available). Use SetNextWindowSize()+Begin() instead! + - 2017/10/11 (1.52) - renamed AlignFirstTextHeightToWidgets() to AlignTextToFramePadding(). Kept inline redirection function (will obsolete). + - 2017/09/26 (1.52) - renamed ImFont::Glyph to ImFontGlyph. Kept redirection typedef (will obsolete). + - 2017/09/25 (1.52) - removed SetNextWindowPosCenter() because SetNextWindowPos() now has the optional pivot information to do the same and more. Kept redirection function (will obsolete). + - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previously ImVec2(-1,-1) was enough but we now accept negative mouse coordinates. In your binding if you need to support unavailable mouse, make sure to replace "io.MousePos = ImVec2(-1,-1)" with "io.MousePos = ImVec2(-FLT_MAX,-FLT_MAX)". + - 2017/08/22 (1.51) - renamed IsItemHoveredRect() to IsItemRectHovered(). Kept inline redirection function (will obsolete). -> (1.52) use IsItemHovered(ImGuiHoveredFlags_RectOnly)! + - renamed IsMouseHoveringAnyWindow() to IsAnyWindowHovered() for consistency. Kept inline redirection function (will obsolete). + - renamed IsMouseHoveringWindow() to IsWindowRectHovered() for consistency. Kept inline redirection function (will obsolete). + - 2017/08/20 (1.51) - renamed GetStyleColName() to GetStyleColorName() for consistency. + - 2017/08/20 (1.51) - added PushStyleColor(ImGuiCol idx, ImU32 col) overload, which _might_ cause an "ambiguous call" compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or ImVec4 explicily to fix. + - 2017/08/15 (1.51) - marked the weird IMGUI_ONCE_UPON_A_FRAME helper macro as obsolete. prefer using the more explicit ImGuiOnceUponAFrame type. + - 2017/08/15 (1.51) - changed parameter order for BeginPopupContextWindow() from (const char*,int buttons,bool also_over_items) to (const char*,int buttons,bool also_over_items). Note that most calls relied on default parameters completely. + - 2017/08/13 (1.51) - renamed ImGuiCol_Column to ImGuiCol_Separator, ImGuiCol_ColumnHovered to ImGuiCol_SeparatorHovered, ImGuiCol_ColumnActive to ImGuiCol_SeparatorActive. Kept redirection enums (will obsolete). + - 2017/08/11 (1.51) - renamed ImGuiSetCond_Always to ImGuiCond_Always, ImGuiSetCond_Once to ImGuiCond_Once, ImGuiSetCond_FirstUseEver to ImGuiCond_FirstUseEver, ImGuiSetCond_Appearing to ImGuiCond_Appearing. Kept redirection enums (will obsolete). + - 2017/08/09 (1.51) - removed ValueColor() helpers, they are equivalent to calling Text(label) + SameLine() + ColorButton(). + - 2017/08/08 (1.51) - removed ColorEditMode() and ImGuiColorEditMode in favor of ImGuiColorEditFlags and parameters to the various Color*() functions. The SetColorEditOptions() allows to initialize default but the user can still change them with right-click context menu. + - changed prototype of 'ColorEdit4(const char* label, float col[4], bool show_alpha = true)' to 'ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)', where passing flags = 0x01 is a safe no-op (hello dodgy backward compatibility!). - check and run the demo window, under "Color/Picker Widgets", to understand the various new options. + - changed prototype of rarely used 'ColorButton(ImVec4 col, bool small_height = false, bool outline_border = true)' to 'ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0, 0))' + - 2017/07/20 (1.51) - removed IsPosHoveringAnyWindow(ImVec2), which was partly broken and misleading. ASSERT + redirect user to io.WantCaptureMouse + - 2017/05/26 (1.50) - removed ImFontConfig::MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset. + - 2017/05/01 (1.50) - renamed ImDrawList::PathFill() (rarely used directly) to ImDrawList::PathFillConvex() for clarity. + - 2016/11/06 (1.50) - BeginChild(const char*) now applies the stack id to the provided label, consistently with other functions as it should always have been. It shouldn't affect you unless (extremely unlikely) you were appending multiple times to a same child from different locations of the stack id. If that's the case, generate an id with GetId() and use it instead of passing string to BeginChild(). + - 2016/10/15 (1.50) - avoid 'void* user_data' parameter to io.SetClipboardTextFn/io.GetClipboardTextFn pointers. We pass io.ClipboardUserData to it. + - 2016/09/25 (1.50) - style.WindowTitleAlign is now a ImVec2 (ImGuiAlign enum was removed). set to (0.5f,0.5f) for horizontal+vertical centering, (0.0f,0.0f) for upper-left, etc. + - 2016/07/30 (1.50) - SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully breakage should be minimal. + - 2016/05/12 (1.49) - title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore. + If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you, otherwise if <1.0f you need tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar. + This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color: + ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) { float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)), k = title_bg_col.w / new_a; return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); } + If this is confusing, pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color. + - 2016/05/07 (1.49) - removed confusing set of GetInternalState(), GetInternalStateSize(), SetInternalState() functions. Now using CreateContext(), DestroyContext(), GetCurrentContext(), SetCurrentContext(). + - 2016/05/02 (1.49) - renamed SetNextTreeNodeOpened() to SetNextTreeNodeOpen(), no redirection. + - 2016/05/01 (1.49) - obsoleted old signature of CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false) as extra parameters were badly designed and rarely used. You can replace the "default_open = true" flag in new API with CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen). + - 2016/04/26 (1.49) - changed ImDrawList::PushClipRect(ImVec4 rect) to ImDrawList::PushClipRect(Imvec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false). Note that higher-level ImGui::PushClipRect() is preferable because it will clip at logic/widget level, whereas ImDrawList::PushClipRect() only affect your renderer. + - 2016/04/03 (1.48) - removed style.WindowFillAlphaDefault setting which was redundant. Bake default BG alpha inside style.Colors[ImGuiCol_WindowBg] and all other Bg color values. (ref github issue #337). + - 2016/04/03 (1.48) - renamed ImGuiCol_TooltipBg to ImGuiCol_PopupBg, used by popups/menus and tooltips. popups/menus were previously using ImGuiCol_WindowBg. (ref github issue #337) + - 2016/03/21 (1.48) - renamed GetWindowFont() to GetFont(), GetWindowFontSize() to GetFontSize(). Kept inline redirection function (will obsolete). + - 2016/03/02 (1.48) - InputText() completion/history/always callbacks: if you modify the text buffer manually (without using DeleteChars()/InsertChars() helper) you need to maintain the BufTextLen field. added an assert. + - 2016/01/23 (1.48) - fixed not honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. if you had manual pixel-perfect alignment in place it might affect you. + - 2015/12/27 (1.48) - fixed ImDrawList::AddRect() which used to render a rectangle 1 px too large on each axis. + - 2015/12/04 (1.47) - renamed Color() helpers to ValueColor() - dangerously named, rarely used and probably to be made obsolete. + - 2015/08/29 (1.45) - with the addition of horizontal scrollbar we made various fixes to inconsistencies with dealing with cursor position. + GetCursorPos()/SetCursorPos() functions now include the scrolled amount. It shouldn't affect the majority of users, but take note that SetCursorPosX(100.0f) puts you at +100 from the starting x position which may include scrolling, not at +100 from the window left side. + GetContentRegionMax()/GetWindowContentRegionMin()/GetWindowContentRegionMax() functions allow include the scrolled amount. Typically those were used in cases where no scrolling would happen so it may not be a problem, but watch out! + - 2015/08/29 (1.45) - renamed style.ScrollbarWidth to style.ScrollbarSize + - 2015/08/05 (1.44) - split imgui.cpp into extra files: imgui_demo.cpp imgui_draw.cpp imgui_internal.h that you need to add to your project. + - 2015/07/18 (1.44) - fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (introduced in 1.43) being off by an extra PI for no justifiable reason + - 2015/07/14 (1.43) - add new ImFontAtlas::AddFont() API. For the old AddFont***, moved the 'font_no' parameter of ImFontAtlas::AddFont** functions to the ImFontConfig structure. + you need to render your textured triangles with bilinear filtering to benefit from sub-pixel positioning of text. + - 2015/07/08 (1.43) - switched rendering data to use indexed rendering. this is saving a fair amount of CPU/GPU and enables us to get anti-aliasing for a marginal cost. + this necessary change will break your rendering function! the fix should be very easy. sorry for that :( + - if you are using a vanilla copy of one of the imgui_impl_XXXX.cpp provided in the example, you just need to update your copy and you can ignore the rest. + - the signature of the io.RenderDrawListsFn handler has changed! + old: ImGui_XXXX_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_count) + new: ImGui_XXXX_RenderDrawLists(ImDrawData* draw_data). + parameters: 'cmd_lists' becomes 'draw_data->CmdLists', 'cmd_lists_count' becomes 'draw_data->CmdListsCount' + ImDrawList: 'commands' becomes 'CmdBuffer', 'vtx_buffer' becomes 'VtxBuffer', 'IdxBuffer' is new. + ImDrawCmd: 'vtx_count' becomes 'ElemCount', 'clip_rect' becomes 'ClipRect', 'user_callback' becomes 'UserCallback', 'texture_id' becomes 'TextureId'. + - each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles using indices from the index buffer. + - if you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index the buffers. This is slow and a waste of CPU/GPU. Prefer using indexed rendering! + - refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. please upgrade! + - 2015/07/10 (1.43) - changed SameLine() parameters from int to float. + - 2015/07/02 (1.42) - renamed SetScrollPosHere() to SetScrollFromCursorPos(). Kept inline redirection function (will obsolete). + - 2015/07/02 (1.42) - renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion along with other scrolling functions, because positions (e.g. cursor position) are not equivalent to scrolling amount. + - 2015/06/14 (1.41) - changed ImageButton() default bg_col parameter from (0,0,0,1) (black) to (0,0,0,0) (transparent) - makes a difference when texture have transparence + - 2015/06/14 (1.41) - changed Selectable() API from (label, selected, size) to (label, selected, flags, size). Size override should have been rarely be used. Sorry! + - 2015/05/31 (1.40) - renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline redirection function (will obsolete). + - 2015/05/31 (1.40) - renamed IsRectClipped() to IsRectVisible() for consistency. Note that return value is opposite! Kept inline redirection function (will obsolete). + - 2015/05/27 (1.40) - removed the third 'repeat_if_held' parameter from Button() - sorry! it was rarely used and inconsistent. Use PushButtonRepeat(true) / PopButtonRepeat() to enable repeat on desired buttons. + - 2015/05/11 (1.40) - changed BeginPopup() API, takes a string identifier instead of a bool. ImGui needs to manage the open/closed state of popups. Call OpenPopup() to actually set the "open" state of a popup. BeginPopup() returns true if the popup is opened. + - 2015/05/03 (1.40) - removed style.AutoFitPadding, using style.WindowPadding makes more sense (the default values were already the same). + - 2015/04/13 (1.38) - renamed IsClipped() to IsRectClipped(). Kept inline redirection function until 1.50. + - 2015/04/09 (1.38) - renamed ImDrawList::AddArc() to ImDrawList::AddArcFast() for compatibility with future API + - 2015/04/03 (1.38) - removed ImGuiCol_CheckHovered, ImGuiCol_CheckActive, replaced with the more general ImGuiCol_FrameBgHovered, ImGuiCol_FrameBgActive. + - 2014/04/03 (1.38) - removed support for passing -FLT_MAX..+FLT_MAX as the range for a SliderFloat(). Use DragFloat() or Inputfloat() instead. + - 2015/03/17 (1.36) - renamed GetItemBoxMin()/GetItemBoxMax()/IsMouseHoveringBox() to GetItemRectMin()/GetItemRectMax()/IsMouseHoveringRect(). Kept inline redirection function until 1.50. + - 2015/03/15 (1.36) - renamed style.TreeNodeSpacing to style.IndentSpacing, ImGuiStyleVar_TreeNodeSpacing to ImGuiStyleVar_IndentSpacing + - 2015/03/13 (1.36) - renamed GetWindowIsFocused() to IsWindowFocused(). Kept inline redirection function until 1.50. + - 2015/03/08 (1.35) - renamed style.ScrollBarWidth to style.ScrollbarWidth (casing) + - 2015/02/27 (1.34) - renamed OpenNextNode(bool) to SetNextTreeNodeOpened(bool, ImGuiSetCond). Kept inline redirection function until 1.50. + - 2015/02/27 (1.34) - renamed ImGuiSetCondition_*** to ImGuiSetCond_***, and _FirstUseThisSession becomes _Once. + - 2015/02/11 (1.32) - changed text input callback ImGuiTextEditCallback return type from void-->int. reserved for future use, return 0 for now. + - 2015/02/10 (1.32) - renamed GetItemWidth() to CalcItemWidth() to clarify its evolving behavior + - 2015/02/08 (1.31) - renamed GetTextLineSpacing() to GetTextLineHeightWithSpacing() + - 2015/02/01 (1.31) - removed IO.MemReallocFn (unused) + - 2015/01/19 (1.30) - renamed ImGuiStorage::GetIntPtr()/GetFloatPtr() to GetIntRef()/GetIntRef() because Ptr was conflicting with actual pointer storage functions. + - 2015/01/11 (1.30) - big font/image API change! now loads TTF file. allow for multiple fonts. no need for a PNG loader. + - 2015/01/11 (1.30) - removed GetDefaultFontData(). uses io.Fonts->GetTextureData*() API to retrieve uncompressed pixels. + - old: const void* png_data; unsigned int png_size; ImGui::GetDefaultFontData(NULL, NULL, &png_data, &png_size); [..Upload texture to GPU..]; + - new: unsigned char* pixels; int width, height; io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); [..Upload texture to GPU..]; io.Fonts->TexId = YourTexIdentifier; + you now have more flexibility to load multiple TTF fonts and manage the texture buffer for internal needs. It is now recommended that you sample the font texture with bilinear interpolation. + - 2015/01/11 (1.30) - added texture identifier in ImDrawCmd passed to your render function (we can now render images). make sure to set io.Fonts->TexID. + - 2015/01/11 (1.30) - removed IO.PixelCenterOffset (unnecessary, can be handled in user projection matrix) + - 2015/01/11 (1.30) - removed ImGui::IsItemFocused() in favor of ImGui::IsItemActive() which handles all widgets + - 2014/12/10 (1.18) - removed SetNewWindowDefaultPos() in favor of new generic API SetNextWindowPos(pos, ImGuiSetCondition_FirstUseEver) + - 2014/11/28 (1.17) - moved IO.Font*** options to inside the IO.Font-> structure (FontYOffset, FontTexUvForWhite, FontBaseScale, FontFallbackGlyph) + - 2014/11/26 (1.17) - reworked syntax of IMGUI_ONCE_UPON_A_FRAME helper macro to increase compiler compatibility + - 2014/11/07 (1.15) - renamed IsHovered() to IsItemHovered() + - 2014/10/02 (1.14) - renamed IMGUI_INCLUDE_IMGUI_USER_CPP to IMGUI_INCLUDE_IMGUI_USER_INL and imgui_user.cpp to imgui_user.inl (more IDE friendly) + - 2014/09/25 (1.13) - removed 'text_end' parameter from IO.SetClipboardTextFn (the string is now always zero-terminated for simplicity) + - 2014/09/24 (1.12) - renamed SetFontScale() to SetWindowFontScale() + - 2014/09/24 (1.12) - moved IM_MALLOC/IM_REALLOC/IM_FREE preprocessor defines to IO.MemAllocFn/IO.MemReallocFn/IO.MemFreeFn + - 2014/08/30 (1.09) - removed IO.FontHeight (now computed automatically) + - 2014/08/30 (1.09) - moved IMGUI_FONT_TEX_UV_FOR_WHITE preprocessor define to IO.FontTexUvForWhite + - 2014/08/28 (1.09) - changed the behavior of IO.PixelCenterOffset following various rendering fixes + + + FREQUENTLY ASKED QUESTIONS (FAQ) + ================================ + + Read all answers online: + https://www.dearimgui.org/faq or https://github.com/ocornut/imgui/blob/master/docs/FAQ.md (same url) + Read all answers locally (with a text editor or ideally a Markdown viewer): + docs/FAQ.md + Some answers are copied down here to facilitate searching in code. + + Q&A: Basics + =========== + + Q: Where is the documentation? + A: This library is poorly documented at the moment and expects of the user to be acquainted with C/C++. + - Run the examples/ and explore them. + - See demo code in imgui_demo.cpp and particularly the ImGui::ShowDemoWindow() function. + - The demo covers most features of Dear ImGui, so you can read the code and see its output. + - See documentation and comments at the top of imgui.cpp + effectively imgui.h. + - Dozens of standalone example applications using e.g. OpenGL/DirectX are provided in the + examples/ folder to explain how to integrate Dear ImGui with your own engine/application. + - The Wiki (https://github.com/ocornut/imgui/wiki) has many resources and links. + - The Glossary (https://github.com/ocornut/imgui/wiki/Glossary) page also may be useful. + - Your programming IDE is your friend, find the type or function declaration to find comments + associated to it. + + Q: What is this library called? + Q: Which version should I get? + >> This library is called "Dear ImGui", please don't call it "ImGui" :) + >> See https://www.dearimgui.org/faq for details. + + Q&A: Integration + ================ + + Q: How to get started? + A: Read 'PROGRAMMER GUIDE' above. Read examples/README.txt. + + Q: How can I tell whether to dispatch mouse/keyboard to Dear ImGui or to my application? + A: You should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! + >> See https://www.dearimgui.org/faq for fully detailed answer. You really want to read this. + + Q. How can I enable keyboard controls? + Q: How can I use this without a mouse, without a keyboard or without a screen? (gamepad, input share, remote display) + Q: I integrated Dear ImGui in my engine and little squares are showing instead of text.. + Q: I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around.. + Q: I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries.. + >> See https://www.dearimgui.org/faq + + Q&A: Usage + ---------- + + Q: Why is my widget not reacting when I click on it? + Q: How can I have widgets with an empty label? + Q: How can I have multiple widgets with the same label? + Q: How can I display an image? What is ImTextureID, how does it works? + Q: How can I use my own math types instead of ImVec2/ImVec4? + Q: How can I interact with standard C++ types (such as std::string and std::vector)? + Q: How can I display custom shapes? (using low-level ImDrawList API) + >> See https://www.dearimgui.org/faq + + Q&A: Fonts, Text + ================ + + Q: How should I handle DPI in my application? + Q: How can I load a different font than the default? + Q: How can I easily use icons in my application? + Q: How can I load multiple fonts? + Q: How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic? + >> See https://www.dearimgui.org/faq and https://github.com/ocornut/imgui/edit/master/docs/FONTS.md + + Q&A: Concerns + ============= + + Q: Who uses Dear ImGui? + Q: Can you create elaborate/serious tools with Dear ImGui? + Q: Can you reskin the look of Dear ImGui? + Q: Why using C++ (as opposed to C)? + >> See https://www.dearimgui.org/faq + + Q&A: Community + ============== + + Q: How can I help? + A: - Businesses: please reach out to "contact AT dearimgui.org" if you work in a place using Dear ImGui! + We can discuss ways for your company to fund development via invoiced technical support, maintenance or sponsoring contacts. + This is among the most useful thing you can do for Dear ImGui. With increased funding we can hire more people working on this project. + - Individuals: you can support continued development via PayPal donations. See README. + - If you are experienced with Dear ImGui and C++, look at the github issues, look at the Wiki, read docs/TODO.txt + and see how you want to help and can help! + - Disclose your usage of Dear ImGui via a dev blog post, a tweet, a screenshot, a mention somewhere etc. + You may post screenshot or links in the gallery threads (github.com/ocornut/imgui/issues/3488). Visuals are ideal as they inspire other programmers. + But even without visuals, disclosing your use of dear imgui help the library grow credibility, and help other teams and programmers with taking decisions. + - If you have issues or if you need to hack into the library, even if you don't expect any support it is useful that you share your issues (on github or privately). + +*/ + +//------------------------------------------------------------------------- +// [SECTION] INCLUDES +//------------------------------------------------------------------------- + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif +#include "imgui_internal.h" + +// System includes +#include // toupper +#include // vsnprintf, sscanf, printf +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +// [Windows] OS specific includes (optional) +#if defined(_WIN32) && defined(IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#define IMGUI_DISABLE_WIN32_FUNCTIONS +#endif +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#ifndef NOMINMAX +#define NOMINMAX +#endif +#ifndef __MINGW32__ +#include // _wfopen, OpenClipboard +#else +#include +#endif +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) // UWP doesn't have all Win32 functions +#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS +#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS +#endif +#endif + +// [Apple] OS specific includes +#if defined(__APPLE__) +#include +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wformat-pedantic" // warning: format specifies type 'void *' but the argument has type 'xxxx *' // unreasonable, would lead to casting every %p arg to void*. probably enabled by -pedantic. +#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type 'int' +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +// We disable -Wpragmas because GCC doesn't provide an has_warning equivalent and some forks/patches may not following the warning/version association. +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wformat" // warning: format '%p' expects argument of type 'void*', but argument 6 has type 'ImGuiWindow*' +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wstrict-overflow" // warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// Debug options +#define IMGUI_DEBUG_NAV_SCORING 0 // Display navigation scoring preview when hovering items. Display last moving direction matches when holding CTRL +#define IMGUI_DEBUG_NAV_RECTS 0 // Display the reference navigation rectangle for each window +#define IMGUI_DEBUG_INI_SETTINGS 0 // Save additional comments in .ini file (particularly helps for Docking, but makes saving slower) + +// When using CTRL+TAB (or Gamepad Square+L/R) we delay the visual a little in order to reduce visual noise doing a fast switch. +static const float NAV_WINDOWING_HIGHLIGHT_DELAY = 0.20f; // Time before the highlight and screen dimming starts fading in +static const float NAV_WINDOWING_LIST_APPEAR_DELAY = 0.15f; // Time before the window list starts to appear + +// Window resizing from edges (when io.ConfigWindowsResizeFromEdges = true and ImGuiBackendFlags_HasMouseCursors is set in io.BackendFlags by back-end) +static const float WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS = 4.0f; // Extend outside and inside windows. Affect FindHoveredWindow(). +static const float WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER = 0.04f; // Reduce visual noise by only highlighting the border after a certain time. +static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 2.00f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. + +//------------------------------------------------------------------------- +// [SECTION] FORWARD DECLARATIONS +//------------------------------------------------------------------------- + +static void SetCurrentWindow(ImGuiWindow* window); +static void FindHoveredWindow(); +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags); +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window); + +static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list); +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window); + +static ImRect GetViewportRect(); + +// Settings +static void WindowSettingsHandler_ClearAll(ImGuiContext*, ImGuiSettingsHandler*); +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name); +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line); +static void WindowSettingsHandler_ApplyAll(ImGuiContext*, ImGuiSettingsHandler*); +static void WindowSettingsHandler_WriteAll(ImGuiContext*, ImGuiSettingsHandler*, ImGuiTextBuffer* buf); + +// Platform Dependents default implementation for IO functions +static const char* GetClipboardTextFn_DefaultImpl(void* user_data); +static void SetClipboardTextFn_DefaultImpl(void* user_data, const char* text); +static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y); + +namespace ImGui +{ +// Navigation +static void NavUpdate(); +static void NavUpdateWindowing(); +static void NavUpdateWindowingOverlay(); +static void NavUpdateMoveResult(); +static void NavUpdateInitResult(); +static float NavUpdatePageUpPageDown(); +static inline void NavUpdateAnyRequestFlag(); +static void NavEndFrame(); +static bool NavScoreItem(ImGuiNavMoveResult* result, ImRect cand); +static void NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, ImGuiID id); +static ImVec2 NavCalcPreferredRefPos(); +static void NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window); +static ImGuiWindow* NavRestoreLastChildNavWindow(ImGuiWindow* window); +static int FindWindowFocusIndex(ImGuiWindow* window); + +// Error Checking +static void ErrorCheckNewFrameSanityChecks(); +static void ErrorCheckEndFrameSanityChecks(); +static void ErrorCheckBeginEndCompareStacksSize(ImGuiWindow* window, bool write); + +// Misc +static void UpdateSettings(); +static void UpdateMouseInputs(); +static void UpdateMouseWheel(); +static void UpdateTabFocus(); +static void UpdateDebugToolItemPicker(); +static bool UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect); +static void RenderWindowOuterBorders(ImGuiWindow* window); +static void RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size); +static void RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open); + +} + +//----------------------------------------------------------------------------- +// [SECTION] CONTEXT AND MEMORY ALLOCATORS +//----------------------------------------------------------------------------- + +// Current context pointer. Implicitly used by all Dear ImGui functions. Always assumed to be != NULL. +// ImGui::CreateContext() will automatically set this pointer if it is NULL. Change to a different context by calling ImGui::SetCurrentContext(). +// 1) Important: globals are not shared across DLL boundaries! If you use DLLs or any form of hot-reloading: you will need to call +// SetCurrentContext() (with the pointer you got from CreateContext) from each unique static/DLL boundary, and after each hot-reloading. +// In your debugger, add GImGui to your watch window and notice how its value changes depending on which location you are currently stepping into. +// 2) Important: Dear ImGui functions are not thread-safe because of this pointer. +// If you want thread-safety to allow N threads to access N different contexts, you can: +// - Change this variable to use thread local storage so each thread can refer to a different context, in imconfig.h: +// struct ImGuiContext; +// extern thread_local ImGuiContext* MyImGuiTLS; +// #define GImGui MyImGuiTLS +// And then define MyImGuiTLS in one of your cpp file. Note that thread_local is a C++11 keyword, earlier C++ uses compiler-specific keyword. +// - Future development aim to make this context pointer explicit to all calls. Also read https://github.com/ocornut/imgui/issues/586 +// - If you need a finite number of contexts, you may compile and use multiple instances of the ImGui code from different namespace. +#ifndef GImGui +ImGuiContext* GImGui = NULL; +#endif + +// Memory Allocator functions. Use SetAllocatorFunctions() to change them. +// If you use DLL hotreloading you might need to call SetAllocatorFunctions() after reloading code from this file. +// Otherwise, you probably don't want to modify them mid-program, and if you use global/static e.g. ImVector<> instances you may need to keep them accessible during program destruction. +#ifndef IMGUI_DISABLE_DEFAULT_ALLOCATORS +static void* MallocWrapper(size_t menu_size, void* user_data) { IM_UNUSED(user_data); return malloc(menu_size); } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); } +#else +static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(size); IM_ASSERT(0); return NULL; } +static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(ptr); IM_ASSERT(0); } +#endif + +static void* (*GImAllocatorAllocFunc)(size_t menu_size, void* user_data) = MallocWrapper; +static void (*GImAllocatorFreeFunc)(void* ptr, void* user_data) = FreeWrapper; +static void* GImAllocatorUserData = NULL; + +//----------------------------------------------------------------------------- +// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) +//----------------------------------------------------------------------------- + +ImGuiStyle::ImGuiStyle() +{ + Alpha = 1.0f; // Global alpha applies to everything in ImGui + WindowPadding = ImVec2(8,8); // Padding within a window + WindowRounding = 7.0f; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + WindowBorderSize = 1.0f; // Thickness of border around windows. Generally set to 0.0f or 1.0f. Other values not well tested. + WindowMinSize = ImVec2(32,32); // Minimum window size + WindowTitleAlign = ImVec2(0.0f,0.5f);// Alignment for title bar text + WindowMenuButtonPosition= ImGuiDir_Left; // Position of the collapsing/docking button in the title bar (left/right). Defaults to ImGuiDir_Left. + ChildRounding = 0.0f; // Radius of child window corners rounding. Set to 0.0f to have rectangular child windows + ChildBorderSize = 1.0f; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. Other values not well tested. + PopupRounding = 0.0f; // Radius of popup window corners rounding. Set to 0.0f to have rectangular child windows + PopupBorderSize = 1.0f; // Thickness of border around popup or tooltip windows. Generally set to 0.0f or 1.0f. Other values not well tested. + FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most widgets) + FrameRounding = 0.0f; // Radius of frame corners rounding. Set to 0.0f to have rectangular frames (used by most widgets). + FrameBorderSize = 0.0f; // Thickness of border around frames. Generally set to 0.0f or 1.0f. Other values not well tested. + ItemSpacing = ImVec2(8,4); // Horizontal and vertical spacing between widgets/lines + ItemInnerSpacing = ImVec2(4,4); // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label) + TouchExtraPadding = ImVec2(0,0); // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + IndentSpacing = 21.0f; // Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + ColumnsMinSpacing = 6.0f; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + ScrollbarSize = 14.0f; // Width of the vertical scrollbar, Height of the horizontal scrollbar + ScrollbarRounding = 9.0f; // Radius of grab corners rounding for scrollbar + GrabMinSize = 10.0f; // Minimum width/height of a grab box for slider/scrollbar + GrabRounding = 0.0f; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + LogSliderDeadzone = 4.0f; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + TabRounding = 4.0f; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + TabBorderSize = 0.0f; // Thickness of border around tabs. + TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appears on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + ColorButtonPosition = ImGuiDir_Right; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text. + SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + DisplayWindowPadding = ImVec2(19,19); // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + DisplaySafeAreaPadding = ImVec2(3,3); // If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows. + MouseCursorScale = 1.0f; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. + AntiAliasedLines = true; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. + AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require back-end to render with bilinear filtering. + AntiAliasedFill = true; // Enable anti-aliased filled shapes (rounded rectangles, circles, etc.). + CurveTessellationTol = 1.25f; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + CircleSegmentMaxError = 1.60f; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + + // Default theme + ImGui::StyleColorsDark(this); +} + +// To scale your entire UI (e.g. if you want your app to use High DPI or generally be DPI aware) you may use this helper function. Scaling the fonts is done separately and is up to you. +// Important: This operation is lossy because we round all sizes to integer. If you need to change your scale multiples, call this over a freshly initialized ImGuiStyle structure rather than scaling multiple times. +void ImGuiStyle::ScaleAllSizes(float scale_factor) +{ + WindowPadding = ImFloor(WindowPadding * scale_factor); + WindowRounding = ImFloor(WindowRounding * scale_factor); + WindowMinSize = ImFloor(WindowMinSize * scale_factor); + ChildRounding = ImFloor(ChildRounding * scale_factor); + PopupRounding = ImFloor(PopupRounding * scale_factor); + FramePadding = ImFloor(FramePadding * scale_factor); + FrameRounding = ImFloor(FrameRounding * scale_factor); + ItemSpacing = ImFloor(ItemSpacing * scale_factor); + ItemInnerSpacing = ImFloor(ItemInnerSpacing * scale_factor); + TouchExtraPadding = ImFloor(TouchExtraPadding * scale_factor); + IndentSpacing = ImFloor(IndentSpacing * scale_factor); + ColumnsMinSpacing = ImFloor(ColumnsMinSpacing * scale_factor); + ScrollbarSize = ImFloor(ScrollbarSize * scale_factor); + ScrollbarRounding = ImFloor(ScrollbarRounding * scale_factor); + GrabMinSize = ImFloor(GrabMinSize * scale_factor); + GrabRounding = ImFloor(GrabRounding * scale_factor); + LogSliderDeadzone = ImFloor(LogSliderDeadzone * scale_factor); + TabRounding = ImFloor(TabRounding * scale_factor); + TabMinWidthForCloseButton = (TabMinWidthForCloseButton != FLT_MAX) ? ImFloor(TabMinWidthForCloseButton * scale_factor) : FLT_MAX; + DisplayWindowPadding = ImFloor(DisplayWindowPadding * scale_factor); + DisplaySafeAreaPadding = ImFloor(DisplaySafeAreaPadding * scale_factor); + MouseCursorScale = ImFloor(MouseCursorScale * scale_factor); +} + +ImGuiIO::ImGuiIO() +{ + // Most fields are initialized with zero + memset(this, 0, sizeof(*this)); + IM_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); // Our pre-C++11 IM_STATIC_ASSERT() macros triggers warning on modern compilers so we don't use it here. + + // Settings + ConfigFlags = ImGuiConfigFlags_None; + BackendFlags = ImGuiBackendFlags_None; + DisplaySize = ImVec2(-1.0f, -1.0f); + DeltaTime = 1.0f / 60.0f; + IniSavingRate = 5.0f; + IniFilename = "imgui.ini"; + LogFilename = "imgui_log.txt"; + MouseDoubleClickTime = 0.30f; + MouseDoubleClickMaxDist = 6.0f; + for (int i = 0; i < ImGuiKey_COUNT; i++) + KeyMap[i] = -1; + KeyRepeatDelay = 0.275f; + KeyRepeatRate = 0.050f; + UserData = NULL; + + Fonts = NULL; + FontGlobalScale = 1.0f; + FontDefault = NULL; + FontAllowUserScaling = false; + DisplayFramebufferScale = ImVec2(1.0f, 1.0f); + + // Miscellaneous options + MouseDrawCursor = false; +#ifdef __APPLE__ + ConfigMacOSXBehaviors = true; // Set Mac OS X style defaults based on __APPLE__ compile time flag +#else + ConfigMacOSXBehaviors = false; +#endif + ConfigInputTextCursorBlink = true; + ConfigWindowsResizeFromEdges = true; + ConfigWindowsMoveFromTitleBarOnly = false; + ConfigWindowsMemoryCompactTimer = 60.0f; + + // Platform Functions + BackendPlatformName = BackendRendererName = NULL; + BackendPlatformUserData = BackendRendererUserData = BackendLanguageUserData = NULL; + GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations + SetClipboardTextFn = SetClipboardTextFn_DefaultImpl; + ClipboardUserData = NULL; + ImeSetInputScreenPosFn = ImeSetInputScreenPosFn_DefaultImpl; + ImeWindowHandle = NULL; + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + RenderDrawListsFn = NULL; +#endif + + // Input (NB: we already have memset zero the entire structure!) + MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + MousePosPrev = ImVec2(-FLT_MAX, -FLT_MAX); + MouseDragThreshold = 6.0f; + for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDurationPrev[i] = -1.0f; + for (int i = 0; i < IM_ARRAYSIZE(KeysDownDuration); i++) KeysDownDuration[i] = KeysDownDurationPrev[i] = -1.0f; + for (int i = 0; i < IM_ARRAYSIZE(NavInputsDownDuration); i++) NavInputsDownDuration[i] = -1.0f; +} + +// Pass in translated ASCII characters for text input. +// - with glfw you can get those from the callback set in glfwSetCharCallback() +// - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message +void ImGuiIO::AddInputCharacter(unsigned int c) +{ + if (c != 0) + InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); +} + +// UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so +// we should save the high surrogate. +void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) +{ + if (c == 0 && InputQueueSurrogate == 0) + return; + + if ((c & 0xFC00) == 0xD800) // High surrogate, must save + { + if (InputQueueSurrogate != 0) + InputQueueCharacters.push_back(IM_UNICODE_CODEPOINT_INVALID); + InputQueueSurrogate = c; + return; + } + + ImWchar cp = c; + if (InputQueueSurrogate != 0) + { + if ((c & 0xFC00) != 0xDC00) // Invalid low surrogate + InputQueueCharacters.push_back(IM_UNICODE_CODEPOINT_INVALID); + else if (IM_UNICODE_CODEPOINT_MAX == (0xFFFF)) // Codepoint will not fit in ImWchar (extra parenthesis around 0xFFFF somehow fixes -Wunreachable-code with Clang) + cp = IM_UNICODE_CODEPOINT_INVALID; + else + cp = (ImWchar)(((InputQueueSurrogate - 0xD800) << 10) + (c - 0xDC00) + 0x10000); + InputQueueSurrogate = 0; + } + InputQueueCharacters.push_back(cp); +} + +void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) +{ + while (*utf8_chars != 0) + { + unsigned int c = 0; + utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL); + if (c != 0) + InputQueueCharacters.push_back((ImWchar)c); + } +} + +void ImGuiIO::ClearInputCharacters() +{ + InputQueueCharacters.resize(0); +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) +//----------------------------------------------------------------------------- + +ImVec2 ImBezierClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments) +{ + IM_ASSERT(num_segments > 0); // Use ImBezierClosestPointCasteljau() + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + { + ImVec2 p_current = ImBezierCalc(p1, p2, p3, p4, t_step * i_step); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + return p_closest; +} + +// Closely mimics PathBezierToCasteljau() in imgui_draw.cpp +static void BezierClosestPointCasteljauStep(const ImVec2& p, ImVec2& p_closest, ImVec2& p_last, float& p_closest_dist2, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = ((x2 - x4) * dy - (y2 - y4) * dx); + float d3 = ((x3 - x4) * dy - (y3 - y4) * dx); + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + ImVec2 p_current(x4, y4); + ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); + float dist2 = ImLengthSqr(p - p_line); + if (dist2 < p_closest_dist2) + { + p_closest = p_line; + p_closest_dist2 = dist2; + } + p_last = p_current; + } + else if (level < 10) + { + float x12 = (x1 + x2)*0.5f, y12 = (y1 + y2)*0.5f; + float x23 = (x2 + x3)*0.5f, y23 = (y2 + y3)*0.5f; + float x34 = (x3 + x4)*0.5f, y34 = (y3 + y4)*0.5f; + float x123 = (x12 + x23)*0.5f, y123 = (y12 + y23)*0.5f; + float x234 = (x23 + x34)*0.5f, y234 = (y23 + y34)*0.5f; + float x1234 = (x123 + x234)*0.5f, y1234 = (y123 + y234)*0.5f; + BezierClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + BezierClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +// tess_tol is generally the same value you would find in ImGui::GetStyle().CurveTessellationTol +// Because those ImXXX functions are lower-level than ImGui:: we cannot access this value automatically. +ImVec2 ImBezierClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol) +{ + IM_ASSERT(tess_tol > 0.0f); + ImVec2 p_last = p1; + ImVec2 p_closest; + float p_closest_dist2 = FLT_MAX; + BezierClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, tess_tol, 0); + return p_closest; +} + +ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p) +{ + ImVec2 ap = p - a; + ImVec2 ab_dir = b - a; + float dot = ap.x * ab_dir.x + ap.y * ab_dir.y; + if (dot < 0.0f) + return a; + float ab_len_sqr = ab_dir.x * ab_dir.x + ab_dir.y * ab_dir.y; + if (dot > ab_len_sqr) + return b; + return a + ab_dir * dot / ab_len_sqr; +} + +bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + bool b1 = ((p.x - b.x) * (a.y - b.y) - (p.y - b.y) * (a.x - b.x)) < 0.0f; + bool b2 = ((p.x - c.x) * (b.y - c.y) - (p.y - c.y) * (b.x - c.x)) < 0.0f; + bool b3 = ((p.x - a.x) * (c.y - a.y) - (p.y - a.y) * (c.x - a.x)) < 0.0f; + return ((b1 == b2) && (b2 == b3)); +} + +void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w) +{ + ImVec2 v0 = b - a; + ImVec2 v1 = c - a; + ImVec2 v2 = p - a; + const float denom = v0.x * v1.y - v1.x * v0.y; + out_v = (v2.x * v1.y - v1.x * v2.y) / denom; + out_w = (v0.x * v2.y - v2.x * v0.y) / denom; + out_u = 1.0f - out_v - out_w; +} + +ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) +{ + ImVec2 proj_ab = ImLineClosestPoint(a, b, p); + ImVec2 proj_bc = ImLineClosestPoint(b, c, p); + ImVec2 proj_ca = ImLineClosestPoint(c, a, p); + float dist2_ab = ImLengthSqr(p - proj_ab); + float dist2_bc = ImLengthSqr(p - proj_bc); + float dist2_ca = ImLengthSqr(p - proj_ca); + float m = ImMin(dist2_ab, ImMin(dist2_bc, dist2_ca)); + if (m == dist2_ab) + return proj_ab; + if (m == dist2_bc) + return proj_bc; + return proj_ca; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) +//----------------------------------------------------------------------------- + +// Consider using _stricmp/_strnicmp under Windows or strcasecmp/strncasecmp. We don't actually use either ImStricmp/ImStrnicmp in the codebase any more. +int ImStricmp(const char* str1, const char* str2) +{ + int d; + while ((d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; } + return d; +} + +int ImStrnicmp(const char* str1, const char* str2, size_t count) +{ + int d = 0; + while (count > 0 && (d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; count--; } + return d; +} + +void ImStrncpy(char* dst, const char* src, size_t count) +{ + if (count < 1) + return; + if (count > 1) + strncpy(dst, src, count - 1); + dst[count - 1] = 0; +} + +char* ImStrdup(const char* str) +{ + size_t len = strlen(str); + void* buf = IM_ALLOC(len + 1); + return (char*)memcpy(buf, (const void*)str, len + 1); +} + +char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src) +{ + size_t dst_buf_size = p_dst_size ? *p_dst_size : strlen(dst) + 1; + size_t src_size = strlen(src) + 1; + if (dst_buf_size < src_size) + { + IM_FREE(dst); + dst = (char*)IM_ALLOC(src_size); + if (p_dst_size) + *p_dst_size = src_size; + } + return (char*)memcpy(dst, (const void*)src, src_size); +} + +const char* ImStrchrRange(const char* str, const char* str_end, char c) +{ + const char* p = (const char*)memchr(str, (int)c, str_end - str); + return p; +} + +int ImStrlenW(const ImWchar* str) +{ + //return (int)wcslen((const wchar_t*)str); // FIXME-OPT: Could use this when wchar_t are 16-bit + int n = 0; + while (*str++) n++; + return n; +} + +// Find end-of-line. Return pointer will point to either first \n, either str_end. +const char* ImStreolRange(const char* str, const char* str_end) +{ + const char* p = (const char*)memchr(str, '\n', str_end - str); + return p ? p : str_end; +} + +const ImWchar* ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin) // find beginning-of-line +{ + while (buf_mid_line > buf_begin && buf_mid_line[-1] != '\n') + buf_mid_line--; + return buf_mid_line; +} + +const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end) +{ + if (!needle_end) + needle_end = needle + strlen(needle); + + const char un0 = (char)toupper(*needle); + while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end)) + { + if (toupper(*haystack) == un0) + { + const char* b = needle + 1; + for (const char* a = haystack + 1; b < needle_end; a++, b++) + if (toupper(*a) != toupper(*b)) + break; + if (b == needle_end) + return haystack; + } + haystack++; + } + return NULL; +} + +// Trim str by offsetting contents when there's leading data + writing a \0 at the trailing position. We use this in situation where the cost is negligible. +void ImStrTrimBlanks(char* buf) +{ + char* p = buf; + while (p[0] == ' ' || p[0] == '\t') // Leading blanks + p++; + char* p_start = p; + while (*p != 0) // Find end of string + p++; + while (p > p_start && (p[-1] == ' ' || p[-1] == '\t')) // Trailing blanks + p--; + if (p_start != buf) // Copy memory if we had leading blanks + memmove(buf, p_start, p - p_start); + buf[p - p_start] = 0; // Zero terminate +} + +const char* ImStrSkipBlank(const char* str) +{ + while (str[0] == ' ' || str[0] == '\t') + str++; + return str; +} + +// A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size). +// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm. +// B) When buf==NULL vsnprintf() will return the output size. +#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +// We support stb_sprintf which is much faster (see: https://github.com/nothings/stb/blob/master/stb_sprintf.h) +// You may set IMGUI_USE_STB_SPRINTF to use our default wrapper, or set IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +// and setup the wrapper yourself. (FIXME-OPT: Some of our high-level operations such as ImGuiTextBuffer::appendfv() are +// designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.) +#ifdef IMGUI_USE_STB_SPRINTF +#define STB_SPRINTF_IMPLEMENTATION +#include "stb_sprintf.h" +#endif + +#if defined(_MSC_VER) && !defined(vsnprintf) +#define vsnprintf _vsnprintf +#endif + +int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + va_end(args); + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} + +int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) +{ +#ifdef IMGUI_USE_STB_SPRINTF + int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); +#else + int w = vsnprintf(buf, buf_size, fmt, args); +#endif + if (buf == NULL) + return w; + if (w == -1 || w >= (int)buf_size) + w = (int)buf_size - 1; + buf[w] = 0; + return w; +} +#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + +// CRC32 needs a 1KB lookup table (not cache friendly) +// Although the code to generate the table is simple and shorter than the table itself, using a const table allows us to easily: +// - avoid an unnecessary branch/memory tap, - keep the ImHashXXX functions usable by static constructors, - make it thread-safe. +static const ImU32 GCrc32LookupTable[256] = +{ + 0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F,0xE963A535,0x9E6495A3,0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988,0x09B64C2B,0x7EB17CBD,0xE7B82D07,0x90BF1D91, + 0x1DB71064,0x6AB020F2,0xF3B97148,0x84BE41DE,0x1ADAD47D,0x6DDDE4EB,0xF4D4B551,0x83D385C7,0x136C9856,0x646BA8C0,0xFD62F97A,0x8A65C9EC,0x14015C4F,0x63066CD9,0xFA0F3D63,0x8D080DF5, + 0x3B6E20C8,0x4C69105E,0xD56041E4,0xA2677172,0x3C03E4D1,0x4B04D447,0xD20D85FD,0xA50AB56B,0x35B5A8FA,0x42B2986C,0xDBBBC9D6,0xACBCF940,0x32D86CE3,0x45DF5C75,0xDCD60DCF,0xABD13D59, + 0x26D930AC,0x51DE003A,0xC8D75180,0xBFD06116,0x21B4F4B5,0x56B3C423,0xCFBA9599,0xB8BDA50F,0x2802B89E,0x5F058808,0xC60CD9B2,0xB10BE924,0x2F6F7C87,0x58684C11,0xC1611DAB,0xB6662D3D, + 0x76DC4190,0x01DB7106,0x98D220BC,0xEFD5102A,0x71B18589,0x06B6B51F,0x9FBFE4A5,0xE8B8D433,0x7807C9A2,0x0F00F934,0x9609A88E,0xE10E9818,0x7F6A0DBB,0x086D3D2D,0x91646C97,0xE6635C01, + 0x6B6B51F4,0x1C6C6162,0x856530D8,0xF262004E,0x6C0695ED,0x1B01A57B,0x8208F4C1,0xF50FC457,0x65B0D9C6,0x12B7E950,0x8BBEB8EA,0xFCB9887C,0x62DD1DDF,0x15DA2D49,0x8CD37CF3,0xFBD44C65, + 0x4DB26158,0x3AB551CE,0xA3BC0074,0xD4BB30E2,0x4ADFA541,0x3DD895D7,0xA4D1C46D,0xD3D6F4FB,0x4369E96A,0x346ED9FC,0xAD678846,0xDA60B8D0,0x44042D73,0x33031DE5,0xAA0A4C5F,0xDD0D7CC9, + 0x5005713C,0x270241AA,0xBE0B1010,0xC90C2086,0x5768B525,0x206F85B3,0xB966D409,0xCE61E49F,0x5EDEF90E,0x29D9C998,0xB0D09822,0xC7D7A8B4,0x59B33D17,0x2EB40D81,0xB7BD5C3B,0xC0BA6CAD, + 0xEDB88320,0x9ABFB3B6,0x03B6E20C,0x74B1D29A,0xEAD54739,0x9DD277AF,0x04DB2615,0x73DC1683,0xE3630B12,0x94643B84,0x0D6D6A3E,0x7A6A5AA8,0xE40ECF0B,0x9309FF9D,0x0A00AE27,0x7D079EB1, + 0xF00F9344,0x8708A3D2,0x1E01F268,0x6906C2FE,0xF762575D,0x806567CB,0x196C3671,0x6E6B06E7,0xFED41B76,0x89D32BE0,0x10DA7A5A,0x67DD4ACC,0xF9B9DF6F,0x8EBEEFF9,0x17B7BE43,0x60B08ED5, + 0xD6D6A3E8,0xA1D1937E,0x38D8C2C4,0x4FDFF252,0xD1BB67F1,0xA6BC5767,0x3FB506DD,0x48B2364B,0xD80D2BDA,0xAF0A1B4C,0x36034AF6,0x41047A60,0xDF60EFC3,0xA867DF55,0x316E8EEF,0x4669BE79, + 0xCB61B38C,0xBC66831A,0x256FD2A0,0x5268E236,0xCC0C7795,0xBB0B4703,0x220216B9,0x5505262F,0xC5BA3BBE,0xB2BD0B28,0x2BB45A92,0x5CB36A04,0xC2D7FFA7,0xB5D0CF31,0x2CD99E8B,0x5BDEAE1D, + 0x9B64C2B0,0xEC63F226,0x756AA39C,0x026D930A,0x9C0906A9,0xEB0E363F,0x72076785,0x05005713,0x95BF4A82,0xE2B87A14,0x7BB12BAE,0x0CB61B38,0x92D28E9B,0xE5D5BE0D,0x7CDCEFB7,0x0BDBDF21, + 0x86D3D2D4,0xF1D4E242,0x68DDB3F8,0x1FDA836E,0x81BE16CD,0xF6B9265B,0x6FB077E1,0x18B74777,0x88085AE6,0xFF0F6A70,0x66063BCA,0x11010B5C,0x8F659EFF,0xF862AE69,0x616BFFD3,0x166CCF45, + 0xA00AE278,0xD70DD2EE,0x4E048354,0x3903B3C2,0xA7672661,0xD06016F7,0x4969474D,0x3E6E77DB,0xAED16A4A,0xD9D65ADC,0x40DF0B66,0x37D83BF0,0xA9BCAE53,0xDEBB9EC5,0x47B2CF7F,0x30B5FFE9, + 0xBDBDF21C,0xCABAC28A,0x53B39330,0x24B4A3A6,0xBAD03605,0xCDD70693,0x54DE5729,0x23D967BF,0xB3667A2E,0xC4614AB8,0x5D681B02,0x2A6F2B94,0xB40BBE37,0xC30C8EA1,0x5A05DF1B,0x2D02EF8D, +}; + +// Known size hash +// It is ok to call ImHashData on a string with known length but the ### operator won't be supported. +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImU32 ImHashData(const void* data_p, size_t data_size, ImU32 seed) +{ + ImU32 crc = ~seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + while (data_size-- != 0) + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ *data++]; + return ~crc; +} + +// Zero-terminated string hash, with support for ### to reset back to seed value +// We support a syntax of "label###id" where only "###id" is included in the hash, and only "label" gets displayed. +// Because this syntax is rarely used we are optimizing for the common case. +// - If we reach ### in the string we discard the hash so far and reset to the seed. +// - We don't do 'current += 2; continue;' after handling ### to keep the code smaller/faster (measured ~10% diff in Debug build) +// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. +ImU32 ImHashStr(const char* data_p, size_t data_size, ImU32 seed) +{ + seed = ~seed; + ImU32 crc = seed; + const unsigned char* data = (const unsigned char*)data_p; + const ImU32* crc32_lut = GCrc32LookupTable; + if (data_size != 0) + { + while (data_size-- != 0) + { + unsigned char c = *data++; + if (c == '#' && data_size >= 2 && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + else + { + while (unsigned char c = *data++) + { + if (c == '#' && data[0] == '#' && data[1] == '#') + crc = seed; + crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; + } + } + return ~crc; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (File functions) +//----------------------------------------------------------------------------- + +// Default file functions +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +ImFileHandle ImFileOpen(const char* filename, const char* mode) +{ +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(__CYGWIN__) && !defined(__GNUC__) + // We need a fopen() wrapper because MSVC/Windows fopen doesn't handle UTF-8 filenames. + // Previously we used ImTextCountCharsFromUtf8/ImTextStrFromUtf8 here but we now need to support ImWchar16 and ImWchar32! + const int filename_wsize = ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0); + const int mode_wsize = ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, NULL, 0); + ImVector buf; + buf.resize(filename_wsize + mode_wsize); + ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, (wchar_t*)&buf[0], filename_wsize); + ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, (wchar_t*)&buf[filename_wsize], mode_wsize); + return ::_wfopen((const wchar_t*)&buf[0], (const wchar_t*)&buf[filename_wsize]); +#else + return fopen(filename, mode); +#endif +} + +// We should in theory be using fseeko()/ftello() with off_t and _fseeki64()/_ftelli64() with __int64, waiting for the PR that does that in a very portable pre-C++11 zero-warnings way. +bool ImFileClose(ImFileHandle f) { return fclose(f) == 0; } +ImU64 ImFileGetSize(ImFileHandle f) { long off = 0, sz = 0; return ((off = ftell(f)) != -1 && !fseek(f, 0, SEEK_END) && (sz = ftell(f)) != -1 && !fseek(f, off, SEEK_SET)) ? (ImU64)sz : (ImU64)-1; } +ImU64 ImFileRead(void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fread(data, (size_t)sz, (size_t)count, f); } +ImU64 ImFileWrite(const void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fwrite(data, (size_t)sz, (size_t)count, f); } +#endif // #ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + +// Helper: Load file content into memory +// Memory allocated with IM_ALLOC(), must be freed by user using IM_FREE() == ImGui::MemFree() +// This can't really be used with "rt" because fseek size won't match read size. +void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes) +{ + IM_ASSERT(filename && mode); + if (out_file_size) + *out_file_size = 0; + + ImFileHandle f; + if ((f = ImFileOpen(filename, mode)) == NULL) + return NULL; + + size_t file_size = (size_t)ImFileGetSize(f); + if (file_size == (size_t)-1) + { + ImFileClose(f); + return NULL; + } + + void* file_data = IM_ALLOC(file_size + padding_bytes); + if (file_data == NULL) + { + ImFileClose(f); + return NULL; + } + if (ImFileRead(file_data, 1, file_size, f) != file_size) + { + ImFileClose(f); + IM_FREE(file_data); + return NULL; + } + if (padding_bytes > 0) + memset((void*)(((char*)file_data) + file_size), 0, (size_t)padding_bytes); + + ImFileClose(f); + if (out_file_size) + *out_file_size = file_size; + + return file_data; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) +//----------------------------------------------------------------------------- + +// Convert UTF-8 to 32-bit character, process single character input. +// Based on stb_from_utf8() from github.com/nothings/stb/ +// We handle UTF-8 decoding error by skipping forward. +int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end) +{ + unsigned int c = (unsigned int)-1; + const unsigned char* str = (const unsigned char*)in_text; + if (!(*str & 0x80)) + { + c = (unsigned int)(*str++); + *out_char = c; + return 1; + } + if ((*str & 0xe0) == 0xc0) + { + *out_char = IM_UNICODE_CODEPOINT_INVALID; // will be invalid but not end of string + if (in_text_end && in_text_end - (const char*)str < 2) return 1; + if (*str < 0xc2) return 2; + c = (unsigned int)((*str++ & 0x1f) << 6); + if ((*str & 0xc0) != 0x80) return 2; + c += (*str++ & 0x3f); + *out_char = c; + return 2; + } + if ((*str & 0xf0) == 0xe0) + { + *out_char = IM_UNICODE_CODEPOINT_INVALID; // will be invalid but not end of string + if (in_text_end && in_text_end - (const char*)str < 3) return 1; + if (*str == 0xe0 && (str[1] < 0xa0 || str[1] > 0xbf)) return 3; + if (*str == 0xed && str[1] > 0x9f) return 3; // str[1] < 0x80 is checked below + c = (unsigned int)((*str++ & 0x0f) << 12); + if ((*str & 0xc0) != 0x80) return 3; + c += (unsigned int)((*str++ & 0x3f) << 6); + if ((*str & 0xc0) != 0x80) return 3; + c += (*str++ & 0x3f); + *out_char = c; + return 3; + } + if ((*str & 0xf8) == 0xf0) + { + *out_char = IM_UNICODE_CODEPOINT_INVALID; // will be invalid but not end of string + if (in_text_end && in_text_end - (const char*)str < 4) return 1; + if (*str > 0xf4) return 4; + if (*str == 0xf0 && (str[1] < 0x90 || str[1] > 0xbf)) return 4; + if (*str == 0xf4 && str[1] > 0x8f) return 4; // str[1] < 0x80 is checked below + c = (unsigned int)((*str++ & 0x07) << 18); + if ((*str & 0xc0) != 0x80) return 4; + c += (unsigned int)((*str++ & 0x3f) << 12); + if ((*str & 0xc0) != 0x80) return 4; + c += (unsigned int)((*str++ & 0x3f) << 6); + if ((*str & 0xc0) != 0x80) return 4; + c += (*str++ & 0x3f); + // utf-8 encodings of values used in surrogate pairs are invalid + if ((c & 0xFFFFF800) == 0xD800) return 4; + // If codepoint does not fit in ImWchar, use replacement character U+FFFD instead + if (c > IM_UNICODE_CODEPOINT_MAX) c = IM_UNICODE_CODEPOINT_INVALID; + *out_char = c; + return 4; + } + *out_char = 0; + return 0; +} + +int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_text_remaining) +{ + ImWchar* buf_out = buf; + ImWchar* buf_end = buf + buf_size; + while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + if (c == 0) + break; + *buf_out++ = (ImWchar)c; + } + *buf_out = 0; + if (in_text_remaining) + *in_text_remaining = in_text; + return (int)(buf_out - buf); +} + +int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end) +{ + int char_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c; + in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); + if (c == 0) + break; + char_count++; + } + return char_count; +} + +// Based on stb_to_utf8() from github.com/nothings/stb/ +static inline int ImTextCharToUtf8(char* buf, int buf_size, unsigned int c) +{ + if (c < 0x80) + { + buf[0] = (char)c; + return 1; + } + if (c < 0x800) + { + if (buf_size < 2) return 0; + buf[0] = (char)(0xc0 + (c >> 6)); + buf[1] = (char)(0x80 + (c & 0x3f)); + return 2; + } + if (c < 0x10000) + { + if (buf_size < 3) return 0; + buf[0] = (char)(0xe0 + (c >> 12)); + buf[1] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[2] = (char)(0x80 + ((c ) & 0x3f)); + return 3; + } + if (c <= 0x10FFFF) + { + if (buf_size < 4) return 0; + buf[0] = (char)(0xf0 + (c >> 18)); + buf[1] = (char)(0x80 + ((c >> 12) & 0x3f)); + buf[2] = (char)(0x80 + ((c >> 6) & 0x3f)); + buf[3] = (char)(0x80 + ((c ) & 0x3f)); + return 4; + } + // Invalid code point, the max unicode is 0x10FFFF + return 0; +} + +// Not optimal but we very rarely use this function. +int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end) +{ + unsigned int unused = 0; + return ImTextCharFromUtf8(&unused, in_text, in_text_end); +} + +static inline int ImTextCountUtf8BytesFromChar(unsigned int c) +{ + if (c < 0x80) return 1; + if (c < 0x800) return 2; + if (c < 0x10000) return 3; + if (c <= 0x10FFFF) return 4; + return 3; +} + +int ImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end) +{ + char* buf_out = buf; + const char* buf_end = buf + buf_size; + while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + *buf_out++ = (char)c; + else + buf_out += ImTextCharToUtf8(buf_out, (int)(buf_end - buf_out - 1), c); + } + *buf_out = 0; + return (int)(buf_out - buf); +} + +int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end) +{ + int bytes_count = 0; + while ((!in_text_end || in_text < in_text_end) && *in_text) + { + unsigned int c = (unsigned int)(*in_text++); + if (c < 0x80) + bytes_count++; + else + bytes_count += ImTextCountUtf8BytesFromChar(c); + } + return bytes_count; +} + +//----------------------------------------------------------------------------- +// [SECTION] MISC HELPERS/UTILITIES (Color functions) +// Note: The Convert functions are early design which are not consistent with other API. +//----------------------------------------------------------------------------- + +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b) +{ + float t = ((col_b >> IM_COL32_A_SHIFT) & 0xFF) / 255.f; + int r = ImLerp((int)(col_a >> IM_COL32_R_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_R_SHIFT) & 0xFF, t); + int g = ImLerp((int)(col_a >> IM_COL32_G_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_G_SHIFT) & 0xFF, t); + int b = ImLerp((int)(col_a >> IM_COL32_B_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_B_SHIFT) & 0xFF, t); + return IM_COL32(r, g, b, 0xFF); +} + +ImVec4 ImGui::ColorConvertU32ToFloat4(ImU32 in) +{ + float s = 1.0f / 255.0f; + return ImVec4( + ((in >> IM_COL32_R_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_G_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_B_SHIFT) & 0xFF) * s, + ((in >> IM_COL32_A_SHIFT) & 0xFF) * s); +} + +ImU32 ImGui::ColorConvertFloat4ToU32(const ImVec4& in) +{ + ImU32 out; + out = ((ImU32)IM_F32_TO_INT8_SAT(in.x)) << IM_COL32_R_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.y)) << IM_COL32_G_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.z)) << IM_COL32_B_SHIFT; + out |= ((ImU32)IM_F32_TO_INT8_SAT(in.w)) << IM_COL32_A_SHIFT; + return out; +} + +// Convert rgb floats ([0-1],[0-1],[0-1]) to hsv floats ([0-1],[0-1],[0-1]), from Foley & van Dam p592 +// Optimized http://lolengine.net/blog/2013/01/13/fast-rgb-to-hsv +void ImGui::ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v) +{ + float K = 0.f; + if (g < b) + { + ImSwap(g, b); + K = -1.f; + } + if (r < g) + { + ImSwap(r, g); + K = -2.f / 6.f - K; + } + + const float chroma = r - (g < b ? g : b); + out_h = ImFabs(K + (g - b) / (6.f * chroma + 1e-20f)); + out_s = chroma / (r + 1e-20f); + out_v = r; +} + +// Convert hsv floats ([0-1],[0-1],[0-1]) to rgb floats ([0-1],[0-1],[0-1]), from Foley & van Dam p593 +// also http://en.wikipedia.org/wiki/HSL_and_HSV +void ImGui::ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b) +{ + if (s == 0.0f) + { + // gray + out_r = out_g = out_b = v; + return; + } + + h = ImFmod(h, 1.0f) / (60.0f / 360.0f); + int i = (int)h; + float f = h - (float)i; + float p = v * (1.0f - s); + float q = v * (1.0f - s * f); + float t = v * (1.0f - s * (1.0f - f)); + + switch (i) + { + case 0: out_r = v; out_g = t; out_b = p; break; + case 1: out_r = q; out_g = v; out_b = p; break; + case 2: out_r = p; out_g = v; out_b = t; break; + case 3: out_r = p; out_g = q; out_b = v; break; + case 4: out_r = t; out_g = p; out_b = v; break; + case 5: default: out_r = v; out_g = p; out_b = q; break; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiStorage +// Helper: Key->value storage +//----------------------------------------------------------------------------- + +// std::lower_bound but without the bullshit +static ImGuiStorage::ImGuiStoragePair* LowerBound(ImVector& data, ImGuiID key) +{ + ImGuiStorage::ImGuiStoragePair* first = data.Data; + ImGuiStorage::ImGuiStoragePair* last = data.Data + data.Size; + size_t count = (size_t)(last - first); + while (count > 0) + { + size_t count2 = count >> 1; + ImGuiStorage::ImGuiStoragePair* mid = first + count2; + if (mid->key < key) + { + first = ++mid; + count -= count2 + 1; + } + else + { + count = count2; + } + } + return first; +} + +// For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. +void ImGuiStorage::BuildSortByKey() +{ + struct StaticFunc + { + static int IMGUI_CDECL PairCompareByID(const void* lhs, const void* rhs) + { + // We can't just do a subtraction because qsort uses signed integers and subtracting our ID doesn't play well with that. + if (((const ImGuiStoragePair*)lhs)->key > ((const ImGuiStoragePair*)rhs)->key) return +1; + if (((const ImGuiStoragePair*)lhs)->key < ((const ImGuiStoragePair*)rhs)->key) return -1; + return 0; + } + }; + if (Data.Size > 1) + ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), StaticFunc::PairCompareByID); +} + +int ImGuiStorage::GetInt(ImGuiID key, int default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_i; +} + +bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const +{ + return GetInt(key, default_val ? 1 : 0) != 0; +} + +float ImGuiStorage::GetFloat(ImGuiID key, float default_val) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return default_val; + return it->val_f; +} + +void* ImGuiStorage::GetVoidPtr(ImGuiID key) const +{ + ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); + if (it == Data.end() || it->key != key) + return NULL; + return it->val_p; +} + +// References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. +int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_i; +} + +bool* ImGuiStorage::GetBoolRef(ImGuiID key, bool default_val) +{ + return (bool*)GetIntRef(key, default_val ? 1 : 0); +} + +float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_f; +} + +void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + it = Data.insert(it, ImGuiStoragePair(key, default_val)); + return &it->val_p; +} + +// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad because it only happens on explicit interaction (maximum one a frame) +void ImGuiStorage::SetInt(ImGuiID key, int val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_i = val; +} + +void ImGuiStorage::SetBool(ImGuiID key, bool val) +{ + SetInt(key, val ? 1 : 0); +} + +void ImGuiStorage::SetFloat(ImGuiID key, float val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_f = val; +} + +void ImGuiStorage::SetVoidPtr(ImGuiID key, void* val) +{ + ImGuiStoragePair* it = LowerBound(Data, key); + if (it == Data.end() || it->key != key) + { + Data.insert(it, ImGuiStoragePair(key, val)); + return; + } + it->val_p = val; +} + +void ImGuiStorage::SetAllInt(int v) +{ + for (int i = 0; i < Data.Size; i++) + Data[i].val_i = v; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextFilter +//----------------------------------------------------------------------------- + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) +{ + if (default_filter) + { + ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); + Build(); + } + else + { + InputBuf[0] = 0; + CountGrep = 0; + } +} + +bool ImGuiTextFilter::Draw(const char* label, float width) +{ + if (width != 0.0f) + ImGui::SetNextItemWidth(width); + bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf)); + if (value_changed) + Build(); + return value_changed; +} + +void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector* out) const +{ + out->resize(0); + const char* wb = b; + const char* we = wb; + while (we < e) + { + if (*we == separator) + { + out->push_back(ImGuiTextRange(wb, we)); + wb = we + 1; + } + we++; + } + if (wb != we) + out->push_back(ImGuiTextRange(wb, we)); +} + +void ImGuiTextFilter::Build() +{ + Filters.resize(0); + ImGuiTextRange input_range(InputBuf, InputBuf + strlen(InputBuf)); + input_range.split(',', &Filters); + + CountGrep = 0; + for (int i = 0; i != Filters.Size; i++) + { + ImGuiTextRange& f = Filters[i]; + while (f.b < f.e && ImCharIsBlankA(f.b[0])) + f.b++; + while (f.e > f.b && ImCharIsBlankA(f.e[-1])) + f.e--; + if (f.empty()) + continue; + if (Filters[i].b[0] != '-') + CountGrep += 1; + } +} + +bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const +{ + if (Filters.empty()) + return true; + + if (text == NULL) + text = ""; + + for (int i = 0; i != Filters.Size; i++) + { + const ImGuiTextRange& f = Filters[i]; + if (f.empty()) + continue; + if (f.b[0] == '-') + { + // Subtract + if (ImStristr(text, text_end, f.b + 1, f.e) != NULL) + return false; + } + else + { + // Grep + if (ImStristr(text, text_end, f.b, f.e) != NULL) + return true; + } + } + + // Implicit * grep + if (CountGrep == 0) + return true; + + return false; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiTextBuffer +//----------------------------------------------------------------------------- + +// On some platform vsnprintf() takes va_list by reference and modifies it. +// va_copy is the 'correct' way to copy a va_list but Visual Studio prior to 2013 doesn't have it. +#ifndef va_copy +#if defined(__GNUC__) || defined(__clang__) +#define va_copy(dest, src) __builtin_va_copy(dest, src) +#else +#define va_copy(dest, src) (dest = src) +#endif +#endif + +char ImGuiTextBuffer::EmptyString[1] = { 0 }; + +void ImGuiTextBuffer::append(const char* str, const char* str_end) +{ + int len = str_end ? (int)(str_end - str) : (int)strlen(str); + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + memcpy(&Buf[write_off - 1], str, (size_t)len); + Buf[write_off - 1 + len] = 0; +} + +void ImGuiTextBuffer::appendf(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + appendfv(fmt, args); + va_end(args); +} + +// Helper: Text buffer for logging/accumulating text +void ImGuiTextBuffer::appendfv(const char* fmt, va_list args) +{ + va_list args_copy; + va_copy(args_copy, args); + + int len = ImFormatStringV(NULL, 0, fmt, args); // FIXME-OPT: could do a first pass write attempt, likely successful on first pass. + if (len <= 0) + { + va_end(args_copy); + return; + } + + // Add zero-terminator the first time + const int write_off = (Buf.Size != 0) ? Buf.Size : 1; + const int needed_sz = write_off + len; + if (write_off + len >= Buf.Capacity) + { + int new_capacity = Buf.Capacity * 2; + Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); + } + + Buf.resize(needed_sz); + ImFormatStringV(&Buf[write_off - 1], (size_t)len + 1, fmt, args_copy); + va_end(args_copy); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiListClipper +// This is currently not as flexible/powerful as it should be and really confusing/spaghetti, mostly because we changed +// the API mid-way through development and support two ways to using the clipper, needs some rework (see TODO) +//----------------------------------------------------------------------------- + +// Helper to calculate coarse clipping of large list of evenly sized items. +// NB: Prefer using the ImGuiListClipper higher-level helper if you can! Read comments and instructions there on how those use this sort of pattern. +// NB: 'items_count' is only used to clamp the result, if you don't know your count you can use INT_MAX +void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.LogEnabled) + { + // If logging is active, do not perform any clipping + *out_items_display_start = 0; + *out_items_display_end = items_count; + return; + } + if (window->SkipItems) + { + *out_items_display_start = *out_items_display_end = 0; + return; + } + + // We create the union of the ClipRect and the NavScoringRect which at worst should be 1 page away from ClipRect + ImRect unclipped_rect = window->ClipRect; + if (g.NavMoveRequest) + unclipped_rect.Add(g.NavScoringRect); + if (g.NavJustMovedToId && window->NavLastIds[0] == g.NavJustMovedToId) + unclipped_rect.Add(ImRect(window->Pos + window->NavRectRel[0].Min, window->Pos + window->NavRectRel[0].Max)); + + const ImVec2 pos = window->DC.CursorPos; + int start = (int)((unclipped_rect.Min.y - pos.y) / items_height); + int end = (int)((unclipped_rect.Max.y - pos.y) / items_height); + + // When performing a navigation request, ensure we have one item extra in the direction we are moving to + if (g.NavMoveRequest && g.NavMoveClipDir == ImGuiDir_Up) + start--; + if (g.NavMoveRequest && g.NavMoveClipDir == ImGuiDir_Down) + end++; + + start = ImClamp(start, 0, items_count); + end = ImClamp(end + 1, start, items_count); + *out_items_display_start = start; + *out_items_display_end = end; +} + +static void SetCursorPosYAndSetupForPrevLine(float pos_y, float line_height) +{ + // Set cursor position and a few other things so that SetScrollHereY() and Columns() can work when seeking cursor. + // FIXME: It is problematic that we have to do that here, because custom/equivalent end-user code would stumble on the same issue. + // The clipper should probably have a 4th step to display the last item in a regular manner. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DC.CursorPos.y = pos_y; + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, pos_y); + window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those fields so that SetScrollHereY() can properly function after the end of our clipper usage. + window->DC.PrevLineSize.y = (line_height - g.Style.ItemSpacing.y); // If we end up needing more accurate data (to e.g. use SameLine) we may as well make the clipper have a fourth step to let user process and display the last item in their list. + if (ImGuiColumns* columns = window->DC.CurrentColumns) + columns->LineMinY = window->DC.CursorPos.y; // Setting this so that cell Y position are set properly +} + +ImGuiListClipper::ImGuiListClipper() +{ + memset(this, 0, sizeof(*this)); + ItemsCount = -1; +} + +ImGuiListClipper::~ImGuiListClipper() +{ + IM_ASSERT(ItemsCount == -1 && "Forgot to call End(), or to Step() until false?"); +} + +// Use case A: Begin() called from constructor with items_height<0, then called again from Step() in StepNo 1 +// Use case B: Begin() called from constructor with items_height>0 +// FIXME-LEGACY: Ideally we should remove the Begin/End functions but they are part of the legacy API we still support. This is why some of the code in Step() calling Begin() and reassign some fields, spaghetti style. +void ImGuiListClipper::Begin(int items_count, float items_height) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + StartPosY = window->DC.CursorPos.y; + ItemsHeight = items_height; + ItemsCount = items_count; + StepNo = 0; + DisplayStart = -1; + DisplayEnd = 0; +} + +void ImGuiListClipper::End() +{ + if (ItemsCount < 0) // Already ended + return; + + // In theory here we should assert that ImGui::GetCursorPosY() == StartPosY + DisplayEnd * ItemsHeight, but it feels saner to just seek at the end and not assert/crash the user. + if (ItemsCount < INT_MAX && DisplayStart >= 0) + SetCursorPosYAndSetupForPrevLine(StartPosY + ItemsCount * ItemsHeight, ItemsHeight); + ItemsCount = -1; + StepNo = 3; +} + +bool ImGuiListClipper::Step() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Reached end of list + if (DisplayEnd >= ItemsCount || window->SkipItems) + { + End(); + return false; + } + + // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element height) + if (StepNo == 0) + { + StartPosY = window->DC.CursorPos.y; + if (ItemsHeight <= 0.0f) + { + // Submit the first item so we can measure its height (generally it is 0..1) + DisplayStart = 0; + DisplayEnd = 1; + StepNo = 1; + return true; + } + + // Already has item height (given by user in Begin): skip to calculating step + DisplayStart = DisplayEnd; + StepNo = 2; + } + + // Step 1: the clipper infer height from first element + if (StepNo == 1) + { + IM_ASSERT(ItemsHeight <= 0.0f); + ItemsHeight = window->DC.CursorPos.y - StartPosY; + IM_ASSERT(ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); + StepNo = 2; + } + + // Step 2: calculate the actual range of elements to display, and position the cursor before the first element + if (StepNo == 2) + { + IM_ASSERT(ItemsHeight > 0.0f); + + int already_submitted = DisplayEnd; + ImGui::CalcListClipping(ItemsCount - already_submitted, ItemsHeight, &DisplayStart, &DisplayEnd); + DisplayStart += already_submitted; + DisplayEnd += already_submitted; + + // Seek cursor + if (DisplayStart > already_submitted) + SetCursorPosYAndSetupForPrevLine(StartPosY + DisplayStart * ItemsHeight, ItemsHeight); + + StepNo = 3; + return true; + } + + // Step 3: the clipper validate that we have reached the expected Y position (corresponding to element DisplayEnd), + // Advance the cursor to the end of the list and then returns 'false' to end the loop. + if (StepNo == 3) + { + // Seek cursor + if (ItemsCount < INT_MAX) + SetCursorPosYAndSetupForPrevLine(StartPosY + ItemsCount * ItemsHeight, ItemsHeight); // advance cursor + ItemsCount = -1; + return false; + } + + IM_ASSERT(0); + return false; +} + +//----------------------------------------------------------------------------- +// [SECTION] STYLING +//----------------------------------------------------------------------------- + +ImGuiStyle& ImGui::GetStyle() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->Style; +} + +ImU32 ImGui::GetColorU32(ImGuiCol idx, float alpha_mul) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = style.Colors[idx]; + c.w *= style.Alpha * alpha_mul; + return ColorConvertFloat4ToU32(c); +} + +ImU32 ImGui::GetColorU32(const ImVec4& col) +{ + ImGuiStyle& style = GImGui->Style; + ImVec4 c = col; + c.w *= style.Alpha; + return ColorConvertFloat4ToU32(c); +} + +const ImVec4& ImGui::GetStyleColorVec4(ImGuiCol idx) +{ + ImGuiStyle& style = GImGui->Style; + return style.Colors[idx]; +} + +ImU32 ImGui::GetColorU32(ImU32 col) +{ + ImGuiStyle& style = GImGui->Style; + if (style.Alpha >= 1.0f) + return col; + ImU32 a = (col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT; + a = (ImU32)(a * style.Alpha); // We don't need to clamp 0..255 because Style.Alpha is in 0..1 range. + return (col & ~IM_COL32_A_MASK) | (a << IM_COL32_A_SHIFT); +} + +// FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32 +void ImGui::PushStyleColor(ImGuiCol idx, ImU32 col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorModifiers.push_back(backup); + g.Style.Colors[idx] = ColorConvertU32ToFloat4(col); +} + +void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col) +{ + ImGuiContext& g = *GImGui; + ImGuiColorMod backup; + backup.Col = idx; + backup.BackupValue = g.Style.Colors[idx]; + g.ColorModifiers.push_back(backup); + g.Style.Colors[idx] = col; +} + +void ImGui::PopStyleColor(int count) +{ + ImGuiContext& g = *GImGui; + while (count > 0) + { + ImGuiColorMod& backup = g.ColorModifiers.back(); + g.Style.Colors[backup.Col] = backup.BackupValue; + g.ColorModifiers.pop_back(); + count--; + } +} + +struct ImGuiStyleVarInfo +{ + ImGuiDataType Type; + ImU32 Count; + ImU32 Offset; + void* GetVarPtr(ImGuiStyle* style) const { return (void*)((unsigned char*)style + Offset); } +}; + +static const ImGuiStyleVarInfo GStyleVarInfo[] = +{ + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, Alpha) }, // ImGuiStyleVar_Alpha + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowPadding) }, // ImGuiStyleVar_WindowPadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowRounding) }, // ImGuiStyleVar_WindowRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowBorderSize) }, // ImGuiStyleVar_WindowBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowMinSize) }, // ImGuiStyleVar_WindowMinSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowTitleAlign) }, // ImGuiStyleVar_WindowTitleAlign + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildRounding) }, // ImGuiStyleVar_ChildRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildBorderSize) }, // ImGuiStyleVar_ChildBorderSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupRounding) }, // ImGuiStyleVar_PopupRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupBorderSize) }, // ImGuiStyleVar_PopupBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, FramePadding) }, // ImGuiStyleVar_FramePadding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameRounding) }, // ImGuiStyleVar_FrameRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameBorderSize) }, // ImGuiStyleVar_FrameBorderSize + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemSpacing) }, // ImGuiStyleVar_ItemSpacing + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemInnerSpacing) }, // ImGuiStyleVar_ItemInnerSpacing + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, IndentSpacing) }, // ImGuiStyleVar_IndentSpacing + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarSize) }, // ImGuiStyleVar_ScrollbarSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarRounding) }, // ImGuiStyleVar_ScrollbarRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabMinSize) }, // ImGuiStyleVar_GrabMinSize + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabRounding) }, // ImGuiStyleVar_GrabRounding + { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, TabRounding) }, // ImGuiStyleVar_TabRounding + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ButtonTextAlign) }, // ImGuiStyleVar_ButtonTextAlign + { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SelectableTextAlign) }, // ImGuiStyleVar_SelectableTextAlign +}; + +static const ImGuiStyleVarInfo* GetStyleVarInfo(ImGuiStyleVar idx) +{ + IM_ASSERT(idx >= 0 && idx < ImGuiStyleVar_COUNT); + IM_ASSERT(IM_ARRAYSIZE(GStyleVarInfo) == ImGuiStyleVar_COUNT); + return &GStyleVarInfo[idx]; +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, float val) +{ + const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1) + { + ImGuiContext& g = *GImGui; + float* pvar = (float*)var_info->GetVarPtr(&g.Style); + g.StyleModifiers.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT(0 && "Called PushStyleVar() float variant but variable is not a float!"); +} + +void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val) +{ + const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx); + if (var_info->Type == ImGuiDataType_Float && var_info->Count == 2) + { + ImGuiContext& g = *GImGui; + ImVec2* pvar = (ImVec2*)var_info->GetVarPtr(&g.Style); + g.StyleModifiers.push_back(ImGuiStyleMod(idx, *pvar)); + *pvar = val; + return; + } + IM_ASSERT(0 && "Called PushStyleVar() ImVec2 variant but variable is not a ImVec2!"); +} + +void ImGui::PopStyleVar(int count) +{ + ImGuiContext& g = *GImGui; + while (count > 0) + { + // We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it. + ImGuiStyleMod& backup = g.StyleModifiers.back(); + const ImGuiStyleVarInfo* info = GetStyleVarInfo(backup.VarIdx); + void* data = info->GetVarPtr(&g.Style); + if (info->Type == ImGuiDataType_Float && info->Count == 1) { ((float*)data)[0] = backup.BackupFloat[0]; } + else if (info->Type == ImGuiDataType_Float && info->Count == 2) { ((float*)data)[0] = backup.BackupFloat[0]; ((float*)data)[1] = backup.BackupFloat[1]; } + g.StyleModifiers.pop_back(); + count--; + } +} + +const char* ImGui::GetStyleColorName(ImGuiCol idx) +{ + // Create switch-case from enum with regexp: ImGuiCol_{.*}, --> case ImGuiCol_\1: return "\1"; + switch (idx) + { + case ImGuiCol_Text: return "Text"; + case ImGuiCol_TextDisabled: return "TextDisabled"; + case ImGuiCol_WindowBg: return "WindowBg"; + case ImGuiCol_ChildBg: return "ChildBg"; + case ImGuiCol_PopupBg: return "PopupBg"; + case ImGuiCol_Border: return "Border"; + case ImGuiCol_BorderShadow: return "BorderShadow"; + case ImGuiCol_FrameBg: return "FrameBg"; + case ImGuiCol_FrameBgHovered: return "FrameBgHovered"; + case ImGuiCol_FrameBgActive: return "FrameBgActive"; + case ImGuiCol_TitleBg: return "TitleBg"; + case ImGuiCol_TitleBgActive: return "TitleBgActive"; + case ImGuiCol_TitleBgCollapsed: return "TitleBgCollapsed"; + case ImGuiCol_MenuBarBg: return "MenuBarBg"; + case ImGuiCol_ScrollbarBg: return "ScrollbarBg"; + case ImGuiCol_ScrollbarGrab: return "ScrollbarGrab"; + case ImGuiCol_ScrollbarGrabHovered: return "ScrollbarGrabHovered"; + case ImGuiCol_ScrollbarGrabActive: return "ScrollbarGrabActive"; + case ImGuiCol_CheckMark: return "CheckMark"; + case ImGuiCol_SliderGrab: return "SliderGrab"; + case ImGuiCol_SliderGrabActive: return "SliderGrabActive"; + case ImGuiCol_Button: return "Button"; + case ImGuiCol_ButtonHovered: return "ButtonHovered"; + case ImGuiCol_ButtonActive: return "ButtonActive"; + case ImGuiCol_Header: return "Header"; + case ImGuiCol_HeaderHovered: return "HeaderHovered"; + case ImGuiCol_HeaderActive: return "HeaderActive"; + case ImGuiCol_Separator: return "Separator"; + case ImGuiCol_SeparatorHovered: return "SeparatorHovered"; + case ImGuiCol_SeparatorActive: return "SeparatorActive"; + case ImGuiCol_ResizeGrip: return "ResizeGrip"; + case ImGuiCol_ResizeGripHovered: return "ResizeGripHovered"; + case ImGuiCol_ResizeGripActive: return "ResizeGripActive"; + case ImGuiCol_Tab: return "Tab"; + case ImGuiCol_TabHovered: return "TabHovered"; + case ImGuiCol_TabActive: return "TabActive"; + case ImGuiCol_TabUnfocused: return "TabUnfocused"; + case ImGuiCol_TabUnfocusedActive: return "TabUnfocusedActive"; + case ImGuiCol_PlotLines: return "PlotLines"; + case ImGuiCol_PlotLinesHovered: return "PlotLinesHovered"; + case ImGuiCol_PlotHistogram: return "PlotHistogram"; + case ImGuiCol_PlotHistogramHovered: return "PlotHistogramHovered"; + case ImGuiCol_TextSelectedBg: return "TextSelectedBg"; + case ImGuiCol_DragDropTarget: return "DragDropTarget"; + case ImGuiCol_NavHighlight: return "NavHighlight"; + case ImGuiCol_NavWindowingHighlight: return "NavWindowingHighlight"; + case ImGuiCol_NavWindowingDimBg: return "NavWindowingDimBg"; + case ImGuiCol_ModalWindowDimBg: return "ModalWindowDimBg"; + } + IM_ASSERT(0); + return "Unknown"; +} + + +//----------------------------------------------------------------------------- +// [SECTION] RENDER HELPERS +// Some of those (internal) functions are currently quite a legacy mess - their signature and behavior will change, +// we need a nicer separation between low-level functions and high-level functions relying on the ImGui context. +// Also see imgui_draw.cpp for some more which have been reworked to not rely on ImGui:: context. +//----------------------------------------------------------------------------- + +const char* ImGui::FindRenderedTextEnd(const char* text, const char* text_end) +{ + const char* text_display_end = text; + if (!text_end) + text_end = (const char*)-1; + + while (text_display_end < text_end && *text_display_end != '\0' && (text_display_end[0] != '#' || text_display_end[1] != '#')) + text_display_end++; + return text_display_end; +} + +// Internal ImGui functions to render text +// RenderText***() functions calls ImDrawList::AddText() calls ImBitmapFont::RenderText() +void ImGui::RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Hide anything after a '##' string + const char* text_display_end; + if (hide_text_after_hash) + { + text_display_end = FindRenderedTextEnd(text, text_end); + } + else + { + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + text_display_end = text_end; + } + + if (text != text_display_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_display_end); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_display_end); + } +} + +void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!text_end) + text_end = text + strlen(text); // FIXME-OPT + + if (text != text_end) + { + window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width); + if (g.LogEnabled) + LogRenderedText(&pos, text, text_end); + } +} + +// Default clip_rect uses (pos_min,pos_max) +// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges) +void ImGui::RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_display_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Perform CPU side clipping for single clipped element to avoid using scissor state + ImVec2 pos = pos_min; + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_display_end, false, 0.0f); + + const ImVec2* clip_min = clip_rect ? &clip_rect->Min : &pos_min; + const ImVec2* clip_max = clip_rect ? &clip_rect->Max : &pos_max; + bool need_clipping = (pos.x + text_size.x >= clip_max->x) || (pos.y + text_size.y >= clip_max->y); + if (clip_rect) // If we had no explicit clipping rectangle then pos==clip_min + need_clipping |= (pos.x < clip_min->x) || (pos.y < clip_min->y); + + // Align whole block. We should defer that to the better rendering function when we'll have support for individual line alignment. + if (align.x > 0.0f) pos.x = ImMax(pos.x, pos.x + (pos_max.x - pos.x - text_size.x) * align.x); + if (align.y > 0.0f) pos.y = ImMax(pos.y, pos.y + (pos_max.y - pos.y - text_size.y) * align.y); + + // Render + if (need_clipping) + { + ImVec4 fine_clip_rect(clip_min->x, clip_min->y, clip_max->x, clip_max->y); + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, &fine_clip_rect); + } + else + { + draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, NULL); + } +} + +void ImGui::RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) +{ + // Hide anything after a '##' string + const char* text_display_end = FindRenderedTextEnd(text, text_end); + const int text_len = (int)(text_display_end - text); + if (text_len == 0) + return; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + RenderTextClippedEx(window->DrawList, pos_min, pos_max, text, text_display_end, text_size_if_known, align, clip_rect); + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_display_end); +} + + +// Another overly complex function until we reorganize everything into a nice all-in-one helper. +// This is made more complex because we have dissociated the layout rectangle (pos_min..pos_max) which define _where_ the ellipsis is, from actual clipping of text and limit of the ellipsis display. +// This is because in the context of tabs we selectively hide part of the text when the Close Button appears, but we don't want the ellipsis to move. +void ImGui::RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end_full, const ImVec2* text_size_if_known) +{ + ImGuiContext& g = *GImGui; + if (text_end_full == NULL) + text_end_full = FindRenderedTextEnd(text); + const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_end_full, false, 0.0f); + + //draw_list->AddLine(ImVec2(pos_max.x, pos_min.y - 4), ImVec2(pos_max.x, pos_max.y + 4), IM_COL32(0, 0, 255, 255)); + //draw_list->AddLine(ImVec2(ellipsis_max_x, pos_min.y-2), ImVec2(ellipsis_max_x, pos_max.y+2), IM_COL32(0, 255, 0, 255)); + //draw_list->AddLine(ImVec2(clip_max_x, pos_min.y), ImVec2(clip_max_x, pos_max.y), IM_COL32(255, 0, 0, 255)); + // FIXME: We could technically remove (last_glyph->AdvanceX - last_glyph->X1) from text_size.x here and save a few pixels. + if (text_size.x > pos_max.x - pos_min.x) + { + // Hello wo... + // | | | + // min max ellipsis_max + // <-> this is generally some padding value + + const ImFont* font = draw_list->_Data->Font; + const float font_size = draw_list->_Data->FontSize; + const char* text_end_ellipsis = NULL; + + ImWchar ellipsis_char = font->EllipsisChar; + int ellipsis_char_count = 1; + if (ellipsis_char == (ImWchar)-1) + { + ellipsis_char = (ImWchar)'.'; + ellipsis_char_count = 3; + } + const ImFontGlyph* glyph = font->FindGlyph(ellipsis_char); + + float ellipsis_glyph_width = glyph->X1; // Width of the glyph with no padding on either side + float ellipsis_total_width = ellipsis_glyph_width; // Full width of entire ellipsis + + if (ellipsis_char_count > 1) + { + // Full ellipsis size without free spacing after it. + const float spacing_between_dots = 1.0f * (draw_list->_Data->FontSize / font->FontSize); + ellipsis_glyph_width = glyph->X1 - glyph->X0 + spacing_between_dots; + ellipsis_total_width = ellipsis_glyph_width * (float)ellipsis_char_count - spacing_between_dots; + } + + // We can now claim the space between pos_max.x and ellipsis_max.x + const float text_avail_width = ImMax((ImMax(pos_max.x, ellipsis_max_x) - ellipsis_total_width) - pos_min.x, 1.0f); + float text_size_clipped_x = font->CalcTextSizeA(font_size, text_avail_width, 0.0f, text, text_end_full, &text_end_ellipsis).x; + if (text == text_end_ellipsis && text_end_ellipsis < text_end_full) + { + // Always display at least 1 character if there's no room for character + ellipsis + text_end_ellipsis = text + ImTextCountUtf8BytesFromChar(text, text_end_full); + text_size_clipped_x = font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text, text_end_ellipsis).x; + } + while (text_end_ellipsis > text && ImCharIsBlankA(text_end_ellipsis[-1])) + { + // Trim trailing space before ellipsis (FIXME: Supporting non-ascii blanks would be nice, for this we need a function to backtrack in UTF-8 text) + text_end_ellipsis--; + text_size_clipped_x -= font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text_end_ellipsis, text_end_ellipsis + 1).x; // Ascii blanks are always 1 byte + } + + // Render text, render ellipsis + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_ellipsis, &text_size, ImVec2(0.0f, 0.0f)); + float ellipsis_x = pos_min.x + text_size_clipped_x; + if (ellipsis_x + ellipsis_total_width <= ellipsis_max_x) + for (int i = 0; i < ellipsis_char_count; i++) + { + font->RenderChar(draw_list, font_size, ImVec2(ellipsis_x, pos_min.y), GetColorU32(ImGuiCol_Text), ellipsis_char); + ellipsis_x += ellipsis_glyph_width; + } + } + else + { + RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_full, &text_size, ImVec2(0.0f, 0.0f)); + } + + if (g.LogEnabled) + LogRenderedText(&pos_min, text, text_end_full); +} + +// Render a rectangle shaped with optional rounding and borders +void ImGui::RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DrawList->AddRectFilled(p_min, p_max, fill_col, rounding); + const float border_size = g.Style.FrameBorderSize; + if (border && border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, ImDrawCornerFlags_All, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, ImDrawCornerFlags_All, border_size); + } +} + +void ImGui::RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const float border_size = g.Style.FrameBorderSize; + if (border_size > 0.0f) + { + window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, ImDrawCornerFlags_All, border_size); + window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, ImDrawCornerFlags_All, border_size); + } +} + +void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags) +{ + ImGuiContext& g = *GImGui; + if (id != g.NavId) + return; + if (g.NavDisableHighlight && !(flags & ImGuiNavHighlightFlags_AlwaysDraw)) + return; + ImGuiWindow* window = g.CurrentWindow; + if (window->DC.NavHideHighlightOneFrame) + return; + + float rounding = (flags & ImGuiNavHighlightFlags_NoRounding) ? 0.0f : g.Style.FrameRounding; + ImRect display_rect = bb; + display_rect.ClipWith(window->ClipRect); + if (flags & ImGuiNavHighlightFlags_TypeDefault) + { + const float THICKNESS = 2.0f; + const float DISTANCE = 3.0f + THICKNESS * 0.5f; + display_rect.Expand(ImVec2(DISTANCE, DISTANCE)); + bool fully_visible = window->ClipRect.Contains(display_rect); + if (!fully_visible) + window->DrawList->PushClipRect(display_rect.Min, display_rect.Max); + window->DrawList->AddRect(display_rect.Min + ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), display_rect.Max - ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), GetColorU32(ImGuiCol_NavHighlight), rounding, ImDrawCornerFlags_All, THICKNESS); + if (!fully_visible) + window->DrawList->PopClipRect(); + } + if (flags & ImGuiNavHighlightFlags_TypeThin) + { + window->DrawList->AddRect(display_rect.Min, display_rect.Max, GetColorU32(ImGuiCol_NavHighlight), rounding, ~0, 1.0f); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) +//----------------------------------------------------------------------------- + +// ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods +ImGuiWindow::ImGuiWindow(ImGuiContext* context, const char* name) + : DrawListInst(&context->DrawListSharedData) +{ + Name = ImStrdup(name); + ID = ImHashStr(name); + IDStack.push_back(ID); + Flags = ImGuiWindowFlags_None; + Pos = ImVec2(0.0f, 0.0f); + Size = SizeFull = ImVec2(0.0f, 0.0f); + ContentSize = ContentSizeExplicit = ImVec2(0.0f, 0.0f); + WindowPadding = ImVec2(0.0f, 0.0f); + WindowRounding = 0.0f; + WindowBorderSize = 0.0f; + NameBufLen = (int)strlen(name) + 1; + MoveId = GetID("#MOVE"); + ChildId = 0; + Scroll = ImVec2(0.0f, 0.0f); + ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f); + ScrollbarSizes = ImVec2(0.0f, 0.0f); + ScrollbarX = ScrollbarY = false; + Active = WasActive = false; + WriteAccessed = false; + Collapsed = false; + WantCollapseToggle = false; + SkipItems = false; + Appearing = false; + Hidden = false; + IsFallbackWindow = false; + HasCloseButton = false; + ResizeBorderHeld = -1; + BeginCount = 0; + BeginOrderWithinParent = -1; + BeginOrderWithinContext = -1; + PopupId = 0; + AutoFitFramesX = AutoFitFramesY = -1; + AutoFitChildAxises = 0x00; + AutoFitOnlyGrows = false; + AutoPosLastDirection = ImGuiDir_None; + HiddenFramesCanSkipItems = HiddenFramesCannotSkipItems = 0; + SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = ImGuiCond_Always | ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing; + SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX); + + InnerRect = ImRect(0.0f, 0.0f, 0.0f, 0.0f); // Clear so the InnerRect.GetSize() code in Begin() doesn't lead to overflow even if the result isn't used. + + LastFrameActive = -1; + LastTimeActive = -1.0f; + ItemWidthDefault = 0.0f; + FontWindowScale = 1.0f; + SettingsOffset = -1; + + DrawList = &DrawListInst; + DrawList->_OwnerName = Name; + ParentWindow = NULL; + RootWindow = NULL; + RootWindowForTitleBarHighlight = NULL; + RootWindowForNav = NULL; + + NavLastIds[0] = NavLastIds[1] = 0; + NavRectRel[0] = NavRectRel[1] = ImRect(); + NavLastChildNavWindow = NULL; + + MemoryCompacted = false; + MemoryDrawListIdxCapacity = MemoryDrawListVtxCapacity = 0; +} + +ImGuiWindow::~ImGuiWindow() +{ + IM_ASSERT(DrawList == &DrawListInst); + IM_DELETE(Name); + for (int i = 0; i != ColumnsStorage.Size; i++) + ColumnsStorage[i].~ImGuiColumns(); +} + +ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGui::KeepAliveID(id); +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiContext& g = *GImGui; + IMGUI_TEST_ENGINE_ID_INFO2(id, ImGuiDataType_String, str, str_end); +#endif + return id; +} + +ImGuiID ImGuiWindow::GetID(const void* ptr) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); + ImGui::KeepAliveID(id); +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiContext& g = *GImGui; + IMGUI_TEST_ENGINE_ID_INFO(id, ImGuiDataType_Pointer, ptr); +#endif + return id; +} + +ImGuiID ImGuiWindow::GetID(int n) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&n, sizeof(n), seed); + ImGui::KeepAliveID(id); +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiContext& g = *GImGui; + IMGUI_TEST_ENGINE_ID_INFO(id, ImGuiDataType_S32, (intptr_t)n); +#endif + return id; +} + +ImGuiID ImGuiWindow::GetIDNoKeepAlive(const char* str, const char* str_end) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiContext& g = *GImGui; + IMGUI_TEST_ENGINE_ID_INFO2(id, ImGuiDataType_String, str, str_end); +#endif + return id; +} + +ImGuiID ImGuiWindow::GetIDNoKeepAlive(const void* ptr) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiContext& g = *GImGui; + IMGUI_TEST_ENGINE_ID_INFO(id, ImGuiDataType_Pointer, ptr); +#endif + return id; +} + +ImGuiID ImGuiWindow::GetIDNoKeepAlive(int n) +{ + ImGuiID seed = IDStack.back(); + ImGuiID id = ImHashData(&n, sizeof(n), seed); +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiContext& g = *GImGui; + IMGUI_TEST_ENGINE_ID_INFO(id, ImGuiDataType_S32, (intptr_t)n); +#endif + return id; +} + +// This is only used in rare/specific situations to manufacture an ID out of nowhere. +ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs) +{ + ImGuiID seed = IDStack.back(); + const int r_rel[4] = { (int)(r_abs.Min.x - Pos.x), (int)(r_abs.Min.y - Pos.y), (int)(r_abs.Max.x - Pos.x), (int)(r_abs.Max.y - Pos.y) }; + ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed); + ImGui::KeepAliveID(id); + return id; +} + +static void SetCurrentWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow = window; + if (window) + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); +} + +// Free up/compact internal window buffers, we can use this when a window becomes unused. +// This is currently unused by the library, but you may call this yourself for easy GC. +// Not freed: +// - ImGuiWindow, ImGuiWindowSettings, Name +// - StateStorage, ColumnsStorage (may hold useful data) +// This should have no noticeable visual effect. When the window reappear however, expect new allocation/buffer growth/copy cost. +void ImGui::GcCompactTransientWindowBuffers(ImGuiWindow* window) +{ + window->MemoryCompacted = true; + window->MemoryDrawListIdxCapacity = window->DrawList->IdxBuffer.Capacity; + window->MemoryDrawListVtxCapacity = window->DrawList->VtxBuffer.Capacity; + window->IDStack.clear(); + window->DrawList->_ClearFreeMemory(); + window->DC.ChildWindows.clear(); + window->DC.ItemFlagsStack.clear(); + window->DC.ItemWidthStack.clear(); + window->DC.TextWrapPosStack.clear(); + window->DC.GroupStack.clear(); +} + +void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window) +{ + // We stored capacity of the ImDrawList buffer to reduce growth-caused allocation/copy when awakening. + // The other buffers tends to amortize much faster. + window->MemoryCompacted = false; + window->DrawList->IdxBuffer.reserve(window->MemoryDrawListIdxCapacity); + window->DrawList->VtxBuffer.reserve(window->MemoryDrawListVtxCapacity); + window->MemoryDrawListIdxCapacity = window->MemoryDrawListVtxCapacity = 0; +} + +void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + g.ActiveIdIsJustActivated = (g.ActiveId != id); + if (g.ActiveIdIsJustActivated) + { + g.ActiveIdTimer = 0.0f; + g.ActiveIdHasBeenPressedBefore = false; + g.ActiveIdHasBeenEditedBefore = false; + if (id != 0) + { + g.LastActiveId = id; + g.LastActiveIdTimer = 0.0f; + } + } + g.ActiveId = id; + g.ActiveIdAllowOverlap = false; + g.ActiveIdNoClearOnFocusLoss = false; + g.ActiveIdWindow = window; + g.ActiveIdHasBeenEditedThisFrame = false; + if (id) + { + g.ActiveIdIsAlive = id; + g.ActiveIdSource = (g.NavActivateId == id || g.NavInputId == id || g.NavJustTabbedId == id || g.NavJustMovedToId == id) ? ImGuiInputSource_Nav : ImGuiInputSource_Mouse; + } + + // Clear declaration of inputs claimed by the widget + // (Please note that this is WIP and not all keys/inputs are thoroughly declared by all widgets yet) + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingNavInputMask = 0x00; + g.ActiveIdUsingKeyInputMask = 0x00; +} + +void ImGui::ClearActiveID() +{ + SetActiveID(0, NULL); // g.ActiveId = 0; +} + +void ImGui::SetHoveredID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.HoveredId = id; + g.HoveredIdAllowOverlap = false; + if (id != 0 && g.HoveredIdPreviousFrame != id) + g.HoveredIdTimer = g.HoveredIdNotActiveTimer = 0.0f; +} + +ImGuiID ImGui::GetHoveredID() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId ? g.HoveredId : g.HoveredIdPreviousFrame; +} + +void ImGui::KeepAliveID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + g.ActiveIdIsAlive = id; + if (g.ActiveIdPreviousFrame == id) + g.ActiveIdPreviousFrameIsAlive = true; +} + +void ImGui::MarkItemEdited(ImGuiID id) +{ + // This marking is solely to be able to provide info for IsItemDeactivatedAfterEdit(). + // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need need to fill the data. + ImGuiContext& g = *GImGui; + IM_ASSERT(g.ActiveId == id || g.ActiveId == 0 || g.DragDropActive); + IM_UNUSED(id); // Avoid unused variable warnings when asserts are compiled out. + //IM_ASSERT(g.CurrentWindow->DC.LastItemId == id); + g.ActiveIdHasBeenEditedThisFrame = true; + g.ActiveIdHasBeenEditedBefore = true; + g.CurrentWindow->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_Edited; +} + +static inline bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags) +{ + // An active popup disable hovering on other windows (apart from its own children) + // FIXME-OPT: This could be cached/stored within the window. + ImGuiContext& g = *GImGui; + if (g.NavWindow) + if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindow) + if (focused_root_window->WasActive && focused_root_window != window->RootWindow) + { + // For the purpose of those flags we differentiate "standard popup" from "modal popup" + // NB: The order of those two tests is important because Modal windows are also Popups. + if (focused_root_window->Flags & ImGuiWindowFlags_Modal) + return false; + if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + return false; + } + return true; +} + +// This is roughly matching the behavior of internal-facing ItemHoverable() +// - we allow hovering to be true when ActiveId==window->MoveID, so that clicking on non-interactive items such as a Text() item still returns true with IsItemHovered() +// - this should work even for non-interactive items that have no ID, so we cannot use LastItemId +bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.NavDisableMouseHover && !g.NavDisableHighlight) + return IsItemFocused(); + + // Test for bounding box overlap, as updated as ItemAdd() + if (!(window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HoveredRect)) + return false; + IM_ASSERT((flags & (ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows)) == 0); // Flags not supported by this function + + // Test if we are hovering the right window (our window could be behind another window) + // [2017/10/16] Reverted commit 344d48be3 and testing RootWindow instead. I believe it is correct to NOT test for RootWindow but this leaves us unable to use IsItemHovered() after EndChild() itself. + // Until a solution is found I believe reverting to the test from 2017/09/27 is safe since this was the test that has been running for a long while. + //if (g.HoveredWindow != window) + // return false; + if (g.HoveredRootWindow != window->RootWindow && !(flags & ImGuiHoveredFlags_AllowWhenOverlapped)) + return false; + + // Test if another item is active (e.g. being dragged) + if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + if (g.ActiveId != 0 && g.ActiveId != window->DC.LastItemId && !g.ActiveIdAllowOverlap && g.ActiveId != window->MoveId) + return false; + + // Test if interactions on this window are blocked by an active popup or modal. + // The ImGuiHoveredFlags_AllowWhenBlockedByPopup flag will be tested here. + if (!IsWindowContentHoverable(window, flags)) + return false; + + // Test if the item is disabled + if ((window->DC.ItemFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) + return false; + + // Special handling for calling after Begin() which represent the title bar or tab. + // When the window is collapsed (SkipItems==true) that last item will never be overwritten so we need to detect the case. + if (window->DC.LastItemId == window->MoveId && window->WriteAccessed) + return false; + return true; +} + +// Internal facing ItemHoverable() used when submitting widgets. Differs slightly from IsItemHovered(). +bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (g.HoveredId != 0 && g.HoveredId != id && !g.HoveredIdAllowOverlap) + return false; + + ImGuiWindow* window = g.CurrentWindow; + if (g.HoveredWindow != window) + return false; + if (g.ActiveId != 0 && g.ActiveId != id && !g.ActiveIdAllowOverlap) + return false; + if (!IsMouseHoveringRect(bb.Min, bb.Max)) + return false; + if (g.NavDisableMouseHover) + return false; + if (!IsWindowContentHoverable(window, ImGuiHoveredFlags_None) || (window->DC.ItemFlags & ImGuiItemFlags_Disabled)) + { + g.HoveredIdDisabled = true; + return false; + } + + // We exceptionally allow this function to be called with id==0 to allow using it for easy high-level + // hover test in widgets code. We could also decide to split this function is two. + if (id != 0) + { + SetHoveredID(id); + + // [DEBUG] Item Picker tool! + // We perform the check here because SetHoveredID() is not frequently called (1~ time a frame), making + // the cost of this tool near-zero. We can get slightly better call-stack and support picking non-hovered + // items if we perform the test in ItemAdd(), but that would incur a small runtime cost. + // #define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX in imconfig.h if you want this check to also be performed in ItemAdd(). + if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id) + GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255)); + if (g.DebugItemPickerBreakId == id) + IM_DEBUG_BREAK(); + } + + return true; +} + +bool ImGui::IsClippedEx(const ImRect& bb, ImGuiID id, bool clip_even_when_logged) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!bb.Overlaps(window->ClipRect)) + if (id == 0 || (id != g.ActiveId && id != g.NavId)) + if (clip_even_when_logged || !g.LogEnabled) + return true; + return false; +} + +// This is also inlined in ItemAdd() +// Note: if ImGuiItemStatusFlags_HasDisplayRect is set, user needs to set window->DC.LastItemDisplayRect! +void ImGui::SetLastItemData(ImGuiWindow* window, ImGuiID item_id, ImGuiItemStatusFlags item_flags, const ImRect& item_rect) +{ + window->DC.LastItemId = item_id; + window->DC.LastItemStatusFlags = item_flags; + window->DC.LastItemRect = item_rect; +} + +// Process TAB/Shift+TAB. Be mindful that this function may _clear_ the ActiveID when tabbing out. +bool ImGui::FocusableItemRegister(ImGuiWindow* window, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + + // Increment counters + const bool is_tab_stop = (window->DC.ItemFlags & (ImGuiItemFlags_NoTabStop | ImGuiItemFlags_Disabled)) == 0; + window->DC.FocusCounterRegular++; + if (is_tab_stop) + window->DC.FocusCounterTabStop++; + + // Process TAB/Shift-TAB to tab *OUT* of the currently focused item. + // (Note that we can always TAB out of a widget that doesn't allow tabbing in) + if (g.ActiveId == id && g.FocusTabPressed && !IsActiveIdUsingKey(ImGuiKey_Tab) && g.FocusRequestNextWindow == NULL) + { + g.FocusRequestNextWindow = window; + g.FocusRequestNextCounterTabStop = window->DC.FocusCounterTabStop + (g.IO.KeyShift ? (is_tab_stop ? -1 : 0) : +1); // Modulo on index will be applied at the end of frame once we've got the total counter of items. + } + + // Handle focus requests + if (g.FocusRequestCurrWindow == window) + { + if (window->DC.FocusCounterRegular == g.FocusRequestCurrCounterRegular) + return true; + if (is_tab_stop && window->DC.FocusCounterTabStop == g.FocusRequestCurrCounterTabStop) + { + g.NavJustTabbedId = id; + return true; + } + + // If another item is about to be focused, we clear our own active id + if (g.ActiveId == id) + ClearActiveID(); + } + + return false; +} + +void ImGui::FocusableItemUnregister(ImGuiWindow* window) +{ + window->DC.FocusCounterRegular--; + window->DC.FocusCounterTabStop--; +} + +float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) +{ + if (wrap_pos_x < 0.0f) + return 0.0f; + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (wrap_pos_x == 0.0f) + { + // We could decide to setup a default wrapping max point for auto-resizing windows, + // or have auto-wrap (with unspecified wrapping pos) behave as a ContentSize extending function? + //if (window->Hidden && (window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) + // wrap_pos_x = ImMax(window->WorkRect.Min.x + g.FontSize * 10.0f, window->WorkRect.Max.x); + //else + wrap_pos_x = window->WorkRect.Max.x; + } + else if (wrap_pos_x > 0.0f) + { + wrap_pos_x += window->Pos.x - window->Scroll.x; // wrap_pos_x is provided is window local space + } + + return ImMax(wrap_pos_x - pos.x, 1.0f); +} + +// IM_ALLOC() == ImGui::MemAlloc() +void* ImGui::MemAlloc(size_t menu_size) +{ + if (ImGuiContext* ctx = GImGui) + ctx->IO.MetricsActiveAllocations++; + return GImAllocatorAllocFunc(menu_size, GImAllocatorUserData); +} + +// IM_FREE() == ImGui::MemFree() +void ImGui::MemFree(void* ptr) +{ + if (ptr) + if (ImGuiContext* ctx = GImGui) + ctx->IO.MetricsActiveAllocations--; + return GImAllocatorFreeFunc(ptr, GImAllocatorUserData); +} + +const char* ImGui::GetClipboardText() +{ + ImGuiContext& g = *GImGui; + return g.IO.GetClipboardTextFn ? g.IO.GetClipboardTextFn(g.IO.ClipboardUserData) : ""; +} + +void ImGui::SetClipboardText(const char* text) +{ + ImGuiContext& g = *GImGui; + if (g.IO.SetClipboardTextFn) + g.IO.SetClipboardTextFn(g.IO.ClipboardUserData, text); +} + +const char* ImGui::GetVersion() +{ + return IMGUI_VERSION; +} + +// Internal state access - if you want to share Dear ImGui state between modules (e.g. DLL) or allocate it yourself +// Note that we still point to some static data and members (such as GFontAtlas), so the state instance you end up using will point to the static data within its module +ImGuiContext* ImGui::GetCurrentContext() +{ + return GImGui; +} + +void ImGui::SetCurrentContext(ImGuiContext* ctx) +{ +#ifdef IMGUI_SET_CURRENT_CONTEXT_FUNC + IMGUI_SET_CURRENT_CONTEXT_FUNC(ctx); // For custom thread-based hackery you may want to have control over this. +#else + GImGui = ctx; +#endif +} + +void ImGui::SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data) +{ + GImAllocatorAllocFunc = alloc_func; + GImAllocatorFreeFunc = free_func; + GImAllocatorUserData = user_data; +} + +ImGuiContext* ImGui::CreateContext(ImFontAtlas* shared_font_atlas) +{ + ImGuiContext* ctx = IM_NEW(ImGuiContext)(shared_font_atlas); + if (GImGui == NULL) + SetCurrentContext(ctx); + Initialize(ctx); + return ctx; +} + +void ImGui::DestroyContext(ImGuiContext* ctx) +{ + if (ctx == NULL) + ctx = GImGui; + Shutdown(ctx); + if (GImGui == ctx) + SetCurrentContext(NULL); + IM_DELETE(ctx); +} + +ImGuiIO& ImGui::GetIO() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + return GImGui->IO; +} + +// Same value as passed to the old io.RenderDrawListsFn function. Valid after Render() and until the next call to NewFrame() +ImDrawData* ImGui::GetDrawData() +{ + ImGuiContext& g = *GImGui; + return g.DrawData.Valid ? &g.DrawData : NULL; +} + +double ImGui::GetTime() +{ + return GImGui->Time; +} + +int ImGui::GetFrameCount() +{ + return GImGui->FrameCount; +} + +ImDrawList* ImGui::GetBackgroundDrawList() +{ + return &GImGui->BackgroundDrawList; +} + +ImDrawList* ImGui::GetForegroundDrawList() +{ + return &GImGui->ForegroundDrawList; +} + +ImDrawListSharedData* ImGui::GetDrawListSharedData() +{ + return &GImGui->DrawListSharedData; +} + +void ImGui::StartMouseMovingWindow(ImGuiWindow* window) +{ + // Set ActiveId even if the _NoMove flag is set. Without it, dragging away from a window with _NoMove would activate hover on other windows. + // We _also_ call this when clicking in a window empty space when io.ConfigWindowsMoveFromTitleBarOnly is set, but clear g.MovingWindow afterward. + // This is because we want ActiveId to be set even when the window is not permitted to move. + ImGuiContext& g = *GImGui; + FocusWindow(window); + SetActiveID(window->MoveId, window); + g.NavDisableHighlight = true; + g.ActiveIdNoClearOnFocusLoss = true; + g.ActiveIdClickOffset = g.IO.MousePos - window->RootWindow->Pos; + + bool can_move_window = true; + if ((window->Flags & ImGuiWindowFlags_NoMove) || (window->RootWindow->Flags & ImGuiWindowFlags_NoMove)) + can_move_window = false; + if (can_move_window) + g.MovingWindow = window; +} + +// Handle mouse moving window +// Note: moving window with the navigation keys (Square + d-pad / CTRL+TAB + Arrows) are processed in NavUpdateWindowing() +// FIXME: We don't have strong guarantee that g.MovingWindow stay synched with g.ActiveId == g.MovingWindow->MoveId. +// This is currently enforced by the fact that BeginDragDropSource() is setting all g.ActiveIdUsingXXXX flags to inhibit navigation inputs, +// but if we should more thoroughly test cases where g.ActiveId or g.MovingWindow gets changed and not the other. +void ImGui::UpdateMouseMovingWindowNewFrame() +{ + ImGuiContext& g = *GImGui; + if (g.MovingWindow != NULL) + { + // We actually want to move the root window. g.MovingWindow == window we clicked on (could be a child window). + // We track it to preserve Focus and so that generally ActiveIdWindow == MovingWindow and ActiveId == MovingWindow->MoveId for consistency. + KeepAliveID(g.ActiveId); + IM_ASSERT(g.MovingWindow && g.MovingWindow->RootWindow); + ImGuiWindow* moving_window = g.MovingWindow->RootWindow; + if (g.IO.MouseDown[0] && IsMousePosValid(&g.IO.MousePos)) + { + ImVec2 pos = g.IO.MousePos - g.ActiveIdClickOffset; + if (moving_window->Pos.x != pos.x || moving_window->Pos.y != pos.y) + { + MarkIniSettingsDirty(moving_window); + SetWindowPos(moving_window, pos, ImGuiCond_Always); + } + FocusWindow(g.MovingWindow); + } + else + { + ClearActiveID(); + g.MovingWindow = NULL; + } + } + else + { + // When clicking/dragging from a window that has the _NoMove flag, we still set the ActiveId in order to prevent hovering others. + if (g.ActiveIdWindow && g.ActiveIdWindow->MoveId == g.ActiveId) + { + KeepAliveID(g.ActiveId); + if (!g.IO.MouseDown[0]) + ClearActiveID(); + } + } +} + +// Initiate moving window when clicking on empty space or title bar. +// Handle left-click and right-click focus. +void ImGui::UpdateMouseMovingWindowEndFrame() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId != 0 || g.HoveredId != 0) + return; + + // Unless we just made a window/popup appear + if (g.NavWindow && g.NavWindow->Appearing) + return; + + // Click on empty space to focus window and start moving (after we're done with all our widgets) + if (g.IO.MouseClicked[0]) + { + // Handle the edge case of a popup being closed while clicking in its empty space. + // If we try to focus it, FocusWindow() > ClosePopupsOverWindow() will accidentally close any parent popups because they are not linked together any more. + ImGuiWindow* root_window = g.HoveredRootWindow; + const bool is_closed_popup = root_window && (root_window->Flags & ImGuiWindowFlags_Popup) && !IsPopupOpen(root_window->PopupId, ImGuiPopupFlags_AnyPopupLevel); + + if (root_window != NULL && !is_closed_popup) + { + StartMouseMovingWindow(g.HoveredWindow); + + // Cancel moving if clicked outside of title bar + if (g.IO.ConfigWindowsMoveFromTitleBarOnly && !(root_window->Flags & ImGuiWindowFlags_NoTitleBar)) + if (!root_window->TitleBarRect().Contains(g.IO.MouseClickedPos[0])) + g.MovingWindow = NULL; + + // Cancel moving if clicked over an item which was disabled or inhibited by popups (note that we know HoveredId == 0 already) + if (g.HoveredIdDisabled) + g.MovingWindow = NULL; + } + else if (root_window == NULL && g.NavWindow != NULL && GetTopMostPopupModal() == NULL) + { + // Clicking on void disable focus + FocusWindow(NULL); + } + } + + // With right mouse button we close popups without changing focus based on where the mouse is aimed + // Instead, focus will be restored to the window under the bottom-most closed popup. + // (The left mouse button path calls FocusWindow on the hovered window, which will lead NewFrame->ClosePopupsOverWindow to trigger) + if (g.IO.MouseClicked[1]) + { + // Find the top-most window between HoveredWindow and the top-most Modal Window. + // This is where we can trim the popup stack. + ImGuiWindow* modal = GetTopMostPopupModal(); + bool hovered_window_above_modal = false; + if (modal == NULL) + hovered_window_above_modal = true; + for (int i = g.Windows.Size - 1; i >= 0 && hovered_window_above_modal == false; i--) + { + ImGuiWindow* window = g.Windows[i]; + if (window == modal) + break; + if (window == g.HoveredWindow) + hovered_window_above_modal = true; + } + ClosePopupsOverWindow(hovered_window_above_modal ? g.HoveredWindow : modal, true); + } +} + +static bool IsWindowActiveAndVisible(ImGuiWindow* window) +{ + return (window->Active) && (!window->Hidden); +} + +static void ImGui::UpdateMouseInputs() +{ + ImGuiContext& g = *GImGui; + + // Round mouse position to avoid spreading non-rounded position (e.g. UpdateManualResize doesn't support them well) + if (IsMousePosValid(&g.IO.MousePos)) + g.IO.MousePos = g.LastValidMousePos = ImFloor(g.IO.MousePos); + + // If mouse just appeared or disappeared (usually denoted by -FLT_MAX components) we cancel out movement in MouseDelta + if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MousePosPrev)) + g.IO.MouseDelta = g.IO.MousePos - g.IO.MousePosPrev; + else + g.IO.MouseDelta = ImVec2(0.0f, 0.0f); + if (g.IO.MouseDelta.x != 0.0f || g.IO.MouseDelta.y != 0.0f) + g.NavDisableMouseHover = false; + + g.IO.MousePosPrev = g.IO.MousePos; + for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) + { + g.IO.MouseClicked[i] = g.IO.MouseDown[i] && g.IO.MouseDownDuration[i] < 0.0f; + g.IO.MouseReleased[i] = !g.IO.MouseDown[i] && g.IO.MouseDownDuration[i] >= 0.0f; + g.IO.MouseDownDurationPrev[i] = g.IO.MouseDownDuration[i]; + g.IO.MouseDownDuration[i] = g.IO.MouseDown[i] ? (g.IO.MouseDownDuration[i] < 0.0f ? 0.0f : g.IO.MouseDownDuration[i] + g.IO.DeltaTime) : -1.0f; + g.IO.MouseDoubleClicked[i] = false; + if (g.IO.MouseClicked[i]) + { + if ((float)(g.Time - g.IO.MouseClickedTime[i]) < g.IO.MouseDoubleClickTime) + { + ImVec2 delta_from_click_pos = IsMousePosValid(&g.IO.MousePos) ? (g.IO.MousePos - g.IO.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + if (ImLengthSqr(delta_from_click_pos) < g.IO.MouseDoubleClickMaxDist * g.IO.MouseDoubleClickMaxDist) + g.IO.MouseDoubleClicked[i] = true; + g.IO.MouseClickedTime[i] = -g.IO.MouseDoubleClickTime * 2.0f; // Mark as "old enough" so the third click isn't turned into a double-click + } + else + { + g.IO.MouseClickedTime[i] = g.Time; + } + g.IO.MouseClickedPos[i] = g.IO.MousePos; + g.IO.MouseDownWasDoubleClick[i] = g.IO.MouseDoubleClicked[i]; + g.IO.MouseDragMaxDistanceAbs[i] = ImVec2(0.0f, 0.0f); + g.IO.MouseDragMaxDistanceSqr[i] = 0.0f; + } + else if (g.IO.MouseDown[i]) + { + // Maintain the maximum distance we reaching from the initial click position, which is used with dragging threshold + ImVec2 delta_from_click_pos = IsMousePosValid(&g.IO.MousePos) ? (g.IO.MousePos - g.IO.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); + g.IO.MouseDragMaxDistanceSqr[i] = ImMax(g.IO.MouseDragMaxDistanceSqr[i], ImLengthSqr(delta_from_click_pos)); + g.IO.MouseDragMaxDistanceAbs[i].x = ImMax(g.IO.MouseDragMaxDistanceAbs[i].x, delta_from_click_pos.x < 0.0f ? -delta_from_click_pos.x : delta_from_click_pos.x); + g.IO.MouseDragMaxDistanceAbs[i].y = ImMax(g.IO.MouseDragMaxDistanceAbs[i].y, delta_from_click_pos.y < 0.0f ? -delta_from_click_pos.y : delta_from_click_pos.y); + } + if (!g.IO.MouseDown[i] && !g.IO.MouseReleased[i]) + g.IO.MouseDownWasDoubleClick[i] = false; + if (g.IO.MouseClicked[i]) // Clicking any mouse button reactivate mouse hovering which may have been deactivated by gamepad/keyboard navigation + g.NavDisableMouseHover = false; + } +} + +static void StartLockWheelingWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.WheelingWindow == window) + return; + g.WheelingWindow = window; + g.WheelingWindowRefMousePos = g.IO.MousePos; + g.WheelingWindowTimer = WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER; +} + +void ImGui::UpdateMouseWheel() +{ + ImGuiContext& g = *GImGui; + + // Reset the locked window if we move the mouse or after the timer elapses + if (g.WheelingWindow != NULL) + { + g.WheelingWindowTimer -= g.IO.DeltaTime; + if (IsMousePosValid() && ImLengthSqr(g.IO.MousePos - g.WheelingWindowRefMousePos) > g.IO.MouseDragThreshold * g.IO.MouseDragThreshold) + g.WheelingWindowTimer = 0.0f; + if (g.WheelingWindowTimer <= 0.0f) + { + g.WheelingWindow = NULL; + g.WheelingWindowTimer = 0.0f; + } + } + + if (g.IO.MouseWheel == 0.0f && g.IO.MouseWheelH == 0.0f) + return; + + ImGuiWindow* window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; + if (!window || window->Collapsed) + return; + + // Zoom / Scale window + // FIXME-OBSOLETE: This is an old feature, it still works but pretty much nobody is using it and may be best redesigned. + if (g.IO.MouseWheel != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) + { + StartLockWheelingWindow(window); + const float new_font_scale = ImClamp(window->FontWindowScale + g.IO.MouseWheel * 0.10f, 0.50f, 2.50f); + const float scale = new_font_scale / window->FontWindowScale; + window->FontWindowScale = new_font_scale; + if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) + { + const ImVec2 offset = window->Size * (1.0f - scale) * (g.IO.MousePos - window->Pos) / window->Size; + SetWindowPos(window, window->Pos + offset, 0); + window->Size = ImFloor(window->Size * scale); + window->SizeFull = ImFloor(window->SizeFull * scale); + } + return; + } + + // Mouse wheel scrolling + // If a child window has the ImGuiWindowFlags_NoScrollWithMouse flag, we give a chance to scroll its parent + + // Vertical Mouse Wheel scrolling + const float wheel_y = (g.IO.MouseWheel != 0.0f && !g.IO.KeyShift) ? g.IO.MouseWheel : 0.0f; + if (wheel_y != 0.0f && !g.IO.KeyCtrl) + { + StartLockWheelingWindow(window); + while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.y == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) + window = window->ParentWindow; + if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) + { + float max_step = window->InnerRect.GetHeight() * 0.67f; + float scroll_step = ImFloor(ImMin(5 * window->CalcFontSize(), max_step)); + SetScrollY(window, window->Scroll.y - wheel_y * scroll_step); + } + } + + // Horizontal Mouse Wheel scrolling, or Vertical Mouse Wheel w/ Shift held + const float wheel_x = (g.IO.MouseWheelH != 0.0f && !g.IO.KeyShift) ? g.IO.MouseWheelH : (g.IO.MouseWheel != 0.0f && g.IO.KeyShift) ? g.IO.MouseWheel : 0.0f; + if (wheel_x != 0.0f && !g.IO.KeyCtrl) + { + StartLockWheelingWindow(window); + while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.x == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) + window = window->ParentWindow; + if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) + { + float max_step = window->InnerRect.GetWidth() * 0.67f; + float scroll_step = ImFloor(ImMin(2 * window->CalcFontSize(), max_step)); + SetScrollX(window, window->Scroll.x - wheel_x * scroll_step); + } + } +} + +void ImGui::UpdateTabFocus() +{ + ImGuiContext& g = *GImGui; + + // Pressing TAB activate widget focus + g.FocusTabPressed = (g.NavWindow && g.NavWindow->Active && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) && !g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_Tab)); + if (g.ActiveId == 0 && g.FocusTabPressed) + { + // Note that SetKeyboardFocusHere() sets the Next fields mid-frame. To be consistent we also + // manipulate the Next fields even, even though they will be turned into Curr fields by the code below. + g.FocusRequestNextWindow = g.NavWindow; + g.FocusRequestNextCounterRegular = INT_MAX; + if (g.NavId != 0 && g.NavIdTabCounter != INT_MAX) + g.FocusRequestNextCounterTabStop = g.NavIdTabCounter + 1 + (g.IO.KeyShift ? -1 : 1); + else + g.FocusRequestNextCounterTabStop = g.IO.KeyShift ? -1 : 0; + } + + // Turn queued focus request into current one + g.FocusRequestCurrWindow = NULL; + g.FocusRequestCurrCounterRegular = g.FocusRequestCurrCounterTabStop = INT_MAX; + if (g.FocusRequestNextWindow != NULL) + { + ImGuiWindow* window = g.FocusRequestNextWindow; + g.FocusRequestCurrWindow = window; + if (g.FocusRequestNextCounterRegular != INT_MAX && window->DC.FocusCounterRegular != -1) + g.FocusRequestCurrCounterRegular = ImModPositive(g.FocusRequestNextCounterRegular, window->DC.FocusCounterRegular + 1); + if (g.FocusRequestNextCounterTabStop != INT_MAX && window->DC.FocusCounterTabStop != -1) + g.FocusRequestCurrCounterTabStop = ImModPositive(g.FocusRequestNextCounterTabStop, window->DC.FocusCounterTabStop + 1); + g.FocusRequestNextWindow = NULL; + g.FocusRequestNextCounterRegular = g.FocusRequestNextCounterTabStop = INT_MAX; + } + + g.NavIdTabCounter = INT_MAX; +} + +// The reason this is exposed in imgui_internal.h is: on touch-based system that don't have hovering, we want to dispatch inputs to the right target (imgui vs imgui+app) +void ImGui::UpdateHoveredWindowAndCaptureFlags() +{ + ImGuiContext& g = *GImGui; + + // Find the window hovered by mouse: + // - Child windows can extend beyond the limit of their parent so we need to derive HoveredRootWindow from HoveredWindow. + // - When moving a window we can skip the search, which also conveniently bypasses the fact that window->WindowRectClipped is lagging as this point of the frame. + // - We also support the moved window toggling the NoInputs flag after moving has started in order to be able to detect windows below it, which is useful for e.g. docking mechanisms. + bool clear_hovered_windows = false; + FindHoveredWindow(); + + // Modal windows prevents mouse from hovering behind them. + ImGuiWindow* modal_window = GetTopMostPopupModal(); + if (modal_window && g.HoveredRootWindow && !IsWindowChildOf(g.HoveredRootWindow, modal_window)) + clear_hovered_windows = true; + + // Disabled mouse? + if (g.IO.ConfigFlags & ImGuiConfigFlags_NoMouse) + clear_hovered_windows = true; + + // We track click ownership. When clicked outside of a window the click is owned by the application and won't report hovering nor request capture even while dragging over our windows afterward. + int mouse_earliest_button_down = -1; + bool mouse_any_down = false; + for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) + { + if (g.IO.MouseClicked[i]) + g.IO.MouseDownOwned[i] = (g.HoveredWindow != NULL) || (g.OpenPopupStack.Size > 0); + mouse_any_down |= g.IO.MouseDown[i]; + if (g.IO.MouseDown[i]) + if (mouse_earliest_button_down == -1 || g.IO.MouseClickedTime[i] < g.IO.MouseClickedTime[mouse_earliest_button_down]) + mouse_earliest_button_down = i; + } + const bool mouse_avail_to_imgui = (mouse_earliest_button_down == -1) || g.IO.MouseDownOwned[mouse_earliest_button_down]; + + // If mouse was first clicked outside of ImGui bounds we also cancel out hovering. + // FIXME: For patterns of drag and drop across OS windows, we may need to rework/remove this test (first committed 311c0ca9 on 2015/02) + const bool mouse_dragging_extern_payload = g.DragDropActive && (g.DragDropSourceFlags & ImGuiDragDropFlags_SourceExtern) != 0; + if (!mouse_avail_to_imgui && !mouse_dragging_extern_payload) + clear_hovered_windows = true; + + if (clear_hovered_windows) + g.HoveredWindow = g.HoveredRootWindow = g.HoveredWindowUnderMovingWindow = NULL; + + // Update io.WantCaptureMouse for the user application (true = dispatch mouse info to imgui, false = dispatch mouse info to Dear ImGui + app) + if (g.WantCaptureMouseNextFrame != -1) + g.IO.WantCaptureMouse = (g.WantCaptureMouseNextFrame != 0); + else + g.IO.WantCaptureMouse = (mouse_avail_to_imgui && (g.HoveredWindow != NULL || mouse_any_down)) || (g.OpenPopupStack.Size > 0); + + // Update io.WantCaptureKeyboard for the user application (true = dispatch keyboard info to imgui, false = dispatch keyboard info to Dear ImGui + app) + if (g.WantCaptureKeyboardNextFrame != -1) + g.IO.WantCaptureKeyboard = (g.WantCaptureKeyboardNextFrame != 0); + else + g.IO.WantCaptureKeyboard = (g.ActiveId != 0) || (modal_window != NULL); + if (g.IO.NavActive && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && !(g.IO.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard)) + g.IO.WantCaptureKeyboard = true; + + // Update io.WantTextInput flag, this is to allow systems without a keyboard (e.g. mobile, hand-held) to show a software keyboard if possible + g.IO.WantTextInput = (g.WantTextInputNextFrame != -1) ? (g.WantTextInputNextFrame != 0) : false; +} + +ImGuiKeyModFlags ImGui::GetMergedKeyModFlags() +{ + ImGuiContext& g = *GImGui; + ImGuiKeyModFlags key_mod_flags = ImGuiKeyModFlags_None; + if (g.IO.KeyCtrl) { key_mod_flags |= ImGuiKeyModFlags_Ctrl; } + if (g.IO.KeyShift) { key_mod_flags |= ImGuiKeyModFlags_Shift; } + if (g.IO.KeyAlt) { key_mod_flags |= ImGuiKeyModFlags_Alt; } + if (g.IO.KeySuper) { key_mod_flags |= ImGuiKeyModFlags_Super; } + return key_mod_flags; +} + +void ImGui::NewFrame() +{ + IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); + ImGuiContext& g = *GImGui; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiTestEngineHook_PreNewFrame(&g); +#endif + + // Check and assert for various common IO and Configuration mistakes + ErrorCheckNewFrameSanityChecks(); + + // Load settings on first frame, save settings when modified (after a delay) + UpdateSettings(); + + g.Time += g.IO.DeltaTime; + g.WithinFrameScope = true; + g.FrameCount += 1; + g.TooltipOverrideCount = 0; + g.WindowsActiveCount = 0; + g.MenusIdSubmittedThisFrame.resize(0); + + // Calculate frame-rate for the user, as a purely luxurious feature + g.FramerateSecPerFrameAccum += g.IO.DeltaTime - g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx]; + g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx] = g.IO.DeltaTime; + g.FramerateSecPerFrameIdx = (g.FramerateSecPerFrameIdx + 1) % IM_ARRAYSIZE(g.FramerateSecPerFrame); + g.IO.Framerate = (g.FramerateSecPerFrameAccum > 0.0f) ? (1.0f / (g.FramerateSecPerFrameAccum / (float)IM_ARRAYSIZE(g.FramerateSecPerFrame))) : FLT_MAX; + + // Setup current font and draw list shared data + g.IO.Fonts->Locked = true; + SetCurrentFont(GetDefaultFont()); + IM_ASSERT(g.Font->IsLoaded()); + g.DrawListSharedData.ClipRectFullscreen = ImVec4(0.0f, 0.0f, g.IO.DisplaySize.x, g.IO.DisplaySize.y); + g.DrawListSharedData.CurveTessellationTol = g.Style.CurveTessellationTol; + g.DrawListSharedData.SetCircleSegmentMaxError(g.Style.CircleSegmentMaxError); + g.DrawListSharedData.InitialFlags = ImDrawListFlags_None; + if (g.Style.AntiAliasedLines) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLines; + if (g.Style.AntiAliasedLinesUseTex && !(g.Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLinesUseTex; + if (g.Style.AntiAliasedFill) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedFill; + if (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) + g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AllowVtxOffset; + + g.BackgroundDrawList._ResetForNewFrame(); + g.BackgroundDrawList.PushTextureID(g.IO.Fonts->TexID); + g.BackgroundDrawList.PushClipRectFullScreen(); + + g.ForegroundDrawList._ResetForNewFrame(); + g.ForegroundDrawList.PushTextureID(g.IO.Fonts->TexID); + g.ForegroundDrawList.PushClipRectFullScreen(); + + // Mark rendering data as invalid to prevent user who may have a handle on it to use it. + g.DrawData.Clear(); + + // Drag and drop keep the source ID alive so even if the source disappear our state is consistent + if (g.DragDropActive && g.DragDropPayload.SourceId == g.ActiveId) + KeepAliveID(g.DragDropPayload.SourceId); + + // Update HoveredId data + if (!g.HoveredIdPreviousFrame) + g.HoveredIdTimer = 0.0f; + if (!g.HoveredIdPreviousFrame || (g.HoveredId && g.ActiveId == g.HoveredId)) + g.HoveredIdNotActiveTimer = 0.0f; + if (g.HoveredId) + g.HoveredIdTimer += g.IO.DeltaTime; + if (g.HoveredId && g.ActiveId != g.HoveredId) + g.HoveredIdNotActiveTimer += g.IO.DeltaTime; + g.HoveredIdPreviousFrame = g.HoveredId; + g.HoveredId = 0; + g.HoveredIdAllowOverlap = false; + g.HoveredIdDisabled = false; + + // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) + if (g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId && g.ActiveId != 0) + ClearActiveID(); + if (g.ActiveId) + g.ActiveIdTimer += g.IO.DeltaTime; + g.LastActiveIdTimer += g.IO.DeltaTime; + g.ActiveIdPreviousFrame = g.ActiveId; + g.ActiveIdPreviousFrameWindow = g.ActiveIdWindow; + g.ActiveIdPreviousFrameHasBeenEditedBefore = g.ActiveIdHasBeenEditedBefore; + g.ActiveIdIsAlive = 0; + g.ActiveIdHasBeenEditedThisFrame = false; + g.ActiveIdPreviousFrameIsAlive = false; + g.ActiveIdIsJustActivated = false; + if (g.TempInputId != 0 && g.ActiveId != g.TempInputId) + g.TempInputId = 0; + if (g.ActiveId == 0) + { + g.ActiveIdUsingNavDirMask = 0x00; + g.ActiveIdUsingNavInputMask = 0x00; + g.ActiveIdUsingKeyInputMask = 0x00; + } + + // Drag and drop + g.DragDropAcceptIdPrev = g.DragDropAcceptIdCurr; + g.DragDropAcceptIdCurr = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropWithinSource = false; + g.DragDropWithinTarget = false; + g.DragDropHoldJustPressedId = 0; + + // Update keyboard input state + // Synchronize io.KeyMods with individual modifiers io.KeyXXX bools + g.IO.KeyMods = GetMergedKeyModFlags(); + memcpy(g.IO.KeysDownDurationPrev, g.IO.KeysDownDuration, sizeof(g.IO.KeysDownDuration)); + for (int i = 0; i < IM_ARRAYSIZE(g.IO.KeysDown); i++) + g.IO.KeysDownDuration[i] = g.IO.KeysDown[i] ? (g.IO.KeysDownDuration[i] < 0.0f ? 0.0f : g.IO.KeysDownDuration[i] + g.IO.DeltaTime) : -1.0f; + + // Update gamepad/keyboard navigation + NavUpdate(); + + // Update mouse input state + UpdateMouseInputs(); + + // Find hovered window + // (needs to be before UpdateMouseMovingWindowNewFrame so we fill g.HoveredWindowUnderMovingWindow on the mouse release frame) + UpdateHoveredWindowAndCaptureFlags(); + + // Handle user moving window with mouse (at the beginning of the frame to avoid input lag or sheering) + UpdateMouseMovingWindowNewFrame(); + + // Background darkening/whitening + if (GetTopMostPopupModal() != NULL || (g.NavWindowingTarget != NULL && g.NavWindowingHighlightAlpha > 0.0f)) + g.DimBgRatio = ImMin(g.DimBgRatio + g.IO.DeltaTime * 6.0f, 1.0f); + else + g.DimBgRatio = ImMax(g.DimBgRatio - g.IO.DeltaTime * 10.0f, 0.0f); + + g.MouseCursor = ImGuiMouseCursor_Arrow; + g.WantCaptureMouseNextFrame = g.WantCaptureKeyboardNextFrame = g.WantTextInputNextFrame = -1; + g.PlatformImePos = ImVec2(1.0f, 1.0f); // OS Input Method Editor showing on top-left of our window by default + + // Mouse wheel scrolling, scale + UpdateMouseWheel(); + + // Update legacy TAB focus + UpdateTabFocus(); + + // Mark all windows as not visible and compact unused memory. + IM_ASSERT(g.WindowsFocusOrder.Size == g.Windows.Size); + const float memory_compact_start_time = (g.IO.ConfigWindowsMemoryCompactTimer >= 0.0f) ? (float)g.Time - g.IO.ConfigWindowsMemoryCompactTimer : FLT_MAX; + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* window = g.Windows[i]; + window->WasActive = window->Active; + window->BeginCount = 0; + window->Active = false; + window->WriteAccessed = false; + + // Garbage collect transient buffers of recently unused windows + if (!window->WasActive && !window->MemoryCompacted && window->LastTimeActive < memory_compact_start_time) + GcCompactTransientWindowBuffers(window); + } + + // Closing the focused window restore focus to the first active root window in descending z-order + if (g.NavWindow && !g.NavWindow->WasActive) + FocusTopMostWindowUnderOne(NULL, NULL); + + // No window should be open at the beginning of the frame. + // But in order to allow the user to call NewFrame() multiple times without calling Render(), we are doing an explicit clear. + g.CurrentWindowStack.resize(0); + g.BeginPopupStack.resize(0); + ClosePopupsOverWindow(g.NavWindow, false); + + // [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. + UpdateDebugToolItemPicker(); + + // Create implicit/fallback window - which we will only render it if the user has added something to it. + // We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags. + // This fallback is particularly important as it avoid ImGui:: calls from crashing. + g.WithinFrameScopeWithImplicitWindow = true; + SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); + Begin("Debug##Default"); + IM_ASSERT(g.CurrentWindow->IsFallbackWindow == true); + +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiTestEngineHook_PostNewFrame(&g); +#endif +} + +// [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. +void ImGui::UpdateDebugToolItemPicker() +{ + ImGuiContext& g = *GImGui; + g.DebugItemPickerBreakId = 0; + if (g.DebugItemPickerActive) + { + const ImGuiID hovered_id = g.HoveredIdPreviousFrame; + ImGui::SetMouseCursor(ImGuiMouseCursor_Hand); + if (ImGui::IsKeyPressedMap(ImGuiKey_Escape)) + g.DebugItemPickerActive = false; + if (ImGui::IsMouseClicked(0) && hovered_id) + { + g.DebugItemPickerBreakId = hovered_id; + g.DebugItemPickerActive = false; + } + ImGui::SetNextWindowBgAlpha(0.60f); + ImGui::BeginTooltip(); + ImGui::Text("HoveredId: 0x%08X", hovered_id); + ImGui::Text("Press ESC to abort picking."); + ImGui::TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click to break in debugger!"); + ImGui::EndTooltip(); + } +} + +void ImGui::Initialize(ImGuiContext* context) +{ + ImGuiContext& g = *context; + IM_ASSERT(!g.Initialized && !g.SettingsLoaded); + + // Add .ini handle for ImGuiWindow type + { + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Window"; + ini_handler.TypeHash = ImHashStr("Window"); + ini_handler.ClearAllFn = WindowSettingsHandler_ClearAll; + ini_handler.ReadOpenFn = WindowSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine; + ini_handler.ApplyAllFn = WindowSettingsHandler_ApplyAll; + ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll; + g.SettingsHandlers.push_back(ini_handler); + } + +#ifdef IMGUI_HAS_TABLE + // Add .ini handle for ImGuiTable type + { + ImGuiSettingsHandler ini_handler; + ini_handler.TypeName = "Table"; + ini_handler.TypeHash = ImHashStr("Table"); + ini_handler.ReadOpenFn = TableSettingsHandler_ReadOpen; + ini_handler.ReadLineFn = TableSettingsHandler_ReadLine; + ini_handler.WriteAllFn = TableSettingsHandler_WriteAll; + g.SettingsHandlers.push_back(ini_handler); + } +#endif // #ifdef IMGUI_HAS_TABLE + +#ifdef IMGUI_HAS_DOCK +#endif // #ifdef IMGUI_HAS_DOCK + + g.Initialized = true; +} + +// This function is merely here to free heap allocations. +void ImGui::Shutdown(ImGuiContext* context) +{ + // The fonts atlas can be used prior to calling NewFrame(), so we clear it even if g.Initialized is FALSE (which would happen if we never called NewFrame) + ImGuiContext& g = *context; + if (g.IO.Fonts && g.FontAtlasOwnedByContext) + { + g.IO.Fonts->Locked = false; + IM_DELETE(g.IO.Fonts); + } + g.IO.Fonts = NULL; + + // Cleanup of other data are conditional on actually having initialized Dear ImGui. + if (!g.Initialized) + return; + + // Save settings (unless we haven't attempted to load them: CreateContext/DestroyContext without a call to NewFrame shouldn't save an empty file) + if (g.SettingsLoaded && g.IO.IniFilename != NULL) + { + ImGuiContext* backup_context = GImGui; + SetCurrentContext(context); + SaveIniSettingsToDisk(g.IO.IniFilename); + SetCurrentContext(backup_context); + } + + // Notify hooked test engine, if any +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiTestEngineHook_Shutdown(context); +#endif + + // Clear everything else + for (int i = 0; i < g.Windows.Size; i++) + IM_DELETE(g.Windows[i]); + g.Windows.clear(); + g.WindowsFocusOrder.clear(); + g.WindowsTempSortBuffer.clear(); + g.CurrentWindow = NULL; + g.CurrentWindowStack.clear(); + g.WindowsById.Clear(); + g.NavWindow = NULL; + g.HoveredWindow = g.HoveredRootWindow = g.HoveredWindowUnderMovingWindow = NULL; + g.ActiveIdWindow = g.ActiveIdPreviousFrameWindow = NULL; + g.MovingWindow = NULL; + g.ColorModifiers.clear(); + g.StyleModifiers.clear(); + g.FontStack.clear(); + g.OpenPopupStack.clear(); + g.BeginPopupStack.clear(); + g.DrawDataBuilder.ClearFreeMemory(); + g.BackgroundDrawList._ClearFreeMemory(); + g.ForegroundDrawList._ClearFreeMemory(); + + g.TabBars.Clear(); + g.CurrentTabBarStack.clear(); + g.ShrinkWidthBuffer.clear(); + + g.ClipboardHandlerData.clear(); + g.MenusIdSubmittedThisFrame.clear(); + g.InputTextState.ClearFreeMemory(); + + g.SettingsWindows.clear(); + g.SettingsHandlers.clear(); + + if (g.LogFile) + { +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + if (g.LogFile != stdout) +#endif + ImFileClose(g.LogFile); + g.LogFile = NULL; + } + g.LogBuffer.clear(); + + g.Initialized = false; +} + +// FIXME: Add a more explicit sort order in the window structure. +static int IMGUI_CDECL ChildWindowComparer(const void* lhs, const void* rhs) +{ + const ImGuiWindow* const a = *(const ImGuiWindow* const *)lhs; + const ImGuiWindow* const b = *(const ImGuiWindow* const *)rhs; + if (int d = (a->Flags & ImGuiWindowFlags_Popup) - (b->Flags & ImGuiWindowFlags_Popup)) + return d; + if (int d = (a->Flags & ImGuiWindowFlags_Tooltip) - (b->Flags & ImGuiWindowFlags_Tooltip)) + return d; + return (a->BeginOrderWithinParent - b->BeginOrderWithinParent); +} + +static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window) +{ + out_sorted_windows->push_back(window); + if (window->Active) + { + int count = window->DC.ChildWindows.Size; + if (count > 1) + ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer); + for (int i = 0; i < count; i++) + { + ImGuiWindow* child = window->DC.ChildWindows[i]; + if (child->Active) + AddWindowToSortBuffer(out_sorted_windows, child); + } + } +} + +static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list) +{ + // Remove trailing command if unused. + // Technically we could return directly instead of popping, but this make things looks neat in Metrics window as well. + draw_list->_PopUnusedDrawCmd(); + if (draw_list->CmdBuffer.Size == 0) + return; + + // Draw list sanity check. Detect mismatch between PrimReserve() calls and incrementing _VtxCurrentIdx, _VtxWritePtr etc. + // May trigger for you if you are using PrimXXX functions incorrectly. + IM_ASSERT(draw_list->VtxBuffer.Size == 0 || draw_list->_VtxWritePtr == draw_list->VtxBuffer.Data + draw_list->VtxBuffer.Size); + IM_ASSERT(draw_list->IdxBuffer.Size == 0 || draw_list->_IdxWritePtr == draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size); + if (!(draw_list->Flags & ImDrawListFlags_AllowVtxOffset)) + IM_ASSERT((int)draw_list->_VtxCurrentIdx == draw_list->VtxBuffer.Size); + + // Check that draw_list doesn't use more vertices than indexable (default ImDrawIdx = unsigned short = 2 bytes = 64K vertices per ImDrawList = per window) + // If this assert triggers because you are drawing lots of stuff manually: + // - First, make sure you are coarse clipping yourself and not trying to draw many things outside visible bounds. + // Be mindful that the ImDrawList API doesn't filter vertices. Use the Metrics window to inspect draw list contents. + // - If you want large meshes with more than 64K vertices, you can either: + // (A) Handle the ImDrawCmd::VtxOffset value in your renderer back-end, and set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset'. + // Most example back-ends already support this from 1.71. Pre-1.71 back-ends won't. + // Some graphics API such as GL ES 1/2 don't have a way to offset the starting vertex so it is not supported for them. + // (B) Or handle 32-bit indices in your renderer back-end, and uncomment '#define ImDrawIdx unsigned int' line in imconfig.h. + // Most example back-ends already support this. For example, the OpenGL example code detect index size at compile-time: + // glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer_offset); + // Your own engine or render API may use different parameters or function calls to specify index sizes. + // 2 and 4 bytes indices are generally supported by most graphics API. + // - If for some reason neither of those solutions works for you, a workaround is to call BeginChild()/EndChild() before reaching + // the 64K limit to split your draw commands in multiple draw lists. + if (sizeof(ImDrawIdx) == 2) + IM_ASSERT(draw_list->_VtxCurrentIdx < (1 << 16) && "Too many vertices in ImDrawList using 16-bit indices. Read comment above"); + + out_list->push_back(draw_list); +} + +static void AddWindowToDrawData(ImVector* out_render_list, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + g.IO.MetricsRenderWindows++; + AddDrawListToDrawData(out_render_list, window->DrawList); + for (int i = 0; i < window->DC.ChildWindows.Size; i++) + { + ImGuiWindow* child = window->DC.ChildWindows[i]; + if (IsWindowActiveAndVisible(child)) // clipped children may have been marked not active + AddWindowToDrawData(out_render_list, child); + } +} + +// Layer is locked for the root window, however child windows may use a different viewport (e.g. extruding menu) +static void AddRootWindowToDrawData(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + int layer = (window->Flags & ImGuiWindowFlags_Tooltip) ? 1 : 0; + AddWindowToDrawData(&g.DrawDataBuilder.Layers[layer], window); +} + +void ImDrawDataBuilder::FlattenIntoSingleLayer() +{ + int n = Layers[0].Size; + int menu_size = n; + for (int i = 1; i < IM_ARRAYSIZE(Layers); i++) + menu_size += Layers[i].Size; + Layers[0].resize(menu_size); + for (int layer_n = 1; layer_n < IM_ARRAYSIZE(Layers); layer_n++) + { + ImVector& layer = Layers[layer_n]; + if (layer.empty()) + continue; + memcpy(&Layers[0][n], &layer[0], layer.Size * sizeof(ImDrawList*)); + n += layer.Size; + layer.resize(0); + } +} + +static void SetupDrawData(ImVector* draw_lists, ImDrawData* draw_data) +{ + ImGuiIO& io = ImGui::GetIO(); + draw_data->Valid = true; + draw_data->CmdLists = (draw_lists->Size > 0) ? draw_lists->Data : NULL; + draw_data->CmdListsCount = draw_lists->Size; + draw_data->TotalVtxCount = draw_data->TotalIdxCount = 0; + draw_data->DisplayPos = ImVec2(0.0f, 0.0f); + draw_data->DisplaySize = io.DisplaySize; + draw_data->FramebufferScale = io.DisplayFramebufferScale; + for (int n = 0; n < draw_lists->Size; n++) + { + draw_data->TotalVtxCount += draw_lists->Data[n]->VtxBuffer.Size; + draw_data->TotalIdxCount += draw_lists->Data[n]->IdxBuffer.Size; + } +} + +// Push a clipping rectangle for both ImGui logic (hit-testing etc.) and low-level ImDrawList rendering. +// - When using this function it is sane to ensure that float are perfectly rounded to integer values, +// so that e.g. (int)(max.x-min.x) in user's render produce correct result. +// - If the code here changes, may need to update code of functions like NextColumn() and PushColumnClipRect(): +// some frequently called functions which to modify both channels and clipping simultaneously tend to use the +// more specialized SetWindowClipRectBeforeSetChannel() to avoid extraneous updates of underlying ImDrawCmds. +void ImGui::PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +void ImGui::PopClipRect() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DrawList->PopClipRect(); + window->ClipRect = window->DrawList->_ClipRectStack.back(); +} + +// This is normally called by Render(). You may want to call it directly if you want to avoid calling Render() but the gain will be very minimal. +void ImGui::EndFrame() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + // Don't process EndFrame() multiple times. + if (g.FrameCountEnded == g.FrameCount) + return; + IM_ASSERT(g.WithinFrameScope && "Forgot to call ImGui::NewFrame()?"); + + ErrorCheckEndFrameSanityChecks(); + + // Notify OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) + if (g.IO.ImeSetInputScreenPosFn && (g.PlatformImeLastPos.x == FLT_MAX || ImLengthSqr(g.PlatformImeLastPos - g.PlatformImePos) > 0.0001f)) + { + g.IO.ImeSetInputScreenPosFn((int)g.PlatformImePos.x, (int)g.PlatformImePos.y); + g.PlatformImeLastPos = g.PlatformImePos; + } + + // Hide implicit/fallback "Debug" window if it hasn't been used + g.WithinFrameScopeWithImplicitWindow = false; + if (g.CurrentWindow && !g.CurrentWindow->WriteAccessed) + g.CurrentWindow->Active = false; + End(); + + // Update navigation: CTRL+Tab, wrap-around requests + NavEndFrame(); + + // Drag and Drop: Elapse payload (if delivered, or if source stops being submitted) + if (g.DragDropActive) + { + bool is_delivered = g.DragDropPayload.Delivery; + bool is_elapsed = (g.DragDropPayload.DataFrameCount + 1 < g.FrameCount) && ((g.DragDropSourceFlags & ImGuiDragDropFlags_SourceAutoExpirePayload) || !IsMouseDown(g.DragDropMouseButton)); + if (is_delivered || is_elapsed) + ClearDragDrop(); + } + + // Drag and Drop: Fallback for source tooltip. This is not ideal but better than nothing. + if (g.DragDropActive && g.DragDropSourceFrameCount < g.FrameCount && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + g.DragDropWithinSource = true; + SetTooltip("..."); + g.DragDropWithinSource = false; + } + + // End frame + g.WithinFrameScope = false; + g.FrameCountEnded = g.FrameCount; + + // Initiate moving window + handle left-click and right-click focus + UpdateMouseMovingWindowEndFrame(); + + // Sort the window list so that all child windows are after their parent + // We cannot do that on FocusWindow() because children may not exist yet + g.WindowsTempSortBuffer.resize(0); + g.WindowsTempSortBuffer.reserve(g.Windows.Size); + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Active && (window->Flags & ImGuiWindowFlags_ChildWindow)) // if a child is active its parent will add it + continue; + AddWindowToSortBuffer(&g.WindowsTempSortBuffer, window); + } + + // This usually assert if there is a mismatch between the ImGuiWindowFlags_ChildWindow / ParentWindow values and DC.ChildWindows[] in parents, aka we've done something wrong. + IM_ASSERT(g.Windows.Size == g.WindowsTempSortBuffer.Size); + g.Windows.swap(g.WindowsTempSortBuffer); + g.IO.MetricsActiveWindows = g.WindowsActiveCount; + + // Unlock font atlas + g.IO.Fonts->Locked = false; + + // Clear Input data for next frame + g.IO.MouseWheel = g.IO.MouseWheelH = 0.0f; + g.IO.InputQueueCharacters.resize(0); + memset(g.IO.NavInputs, 0, sizeof(g.IO.NavInputs)); +} + +void ImGui::Render() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + + if (g.FrameCountEnded != g.FrameCount) + EndFrame(); + g.FrameCountRendered = g.FrameCount; + g.IO.MetricsRenderWindows = 0; + g.DrawDataBuilder.Clear(); + + // Add background ImDrawList + if (!g.BackgroundDrawList.VtxBuffer.empty()) + AddDrawListToDrawData(&g.DrawDataBuilder.Layers[0], &g.BackgroundDrawList); + + // Add ImDrawList to render + ImGuiWindow* windows_to_render_top_most[2]; + windows_to_render_top_most[0] = (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoBringToFrontOnFocus)) ? g.NavWindowingTarget->RootWindow : NULL; + windows_to_render_top_most[1] = (g.NavWindowingTarget ? g.NavWindowingListWindow : NULL); + for (int n = 0; n != g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + if (IsWindowActiveAndVisible(window) && (window->Flags & ImGuiWindowFlags_ChildWindow) == 0 && window != windows_to_render_top_most[0] && window != windows_to_render_top_most[1]) + AddRootWindowToDrawData(window); + } + for (int n = 0; n < IM_ARRAYSIZE(windows_to_render_top_most); n++) + if (windows_to_render_top_most[n] && IsWindowActiveAndVisible(windows_to_render_top_most[n])) // NavWindowingTarget is always temporarily displayed as the top-most window + AddRootWindowToDrawData(windows_to_render_top_most[n]); + g.DrawDataBuilder.FlattenIntoSingleLayer(); + + // Draw software mouse cursor if requested + if (g.IO.MouseDrawCursor) + RenderMouseCursor(&g.ForegroundDrawList, g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); + + // Add foreground ImDrawList + if (!g.ForegroundDrawList.VtxBuffer.empty()) + AddDrawListToDrawData(&g.DrawDataBuilder.Layers[0], &g.ForegroundDrawList); + + // Setup ImDrawData structure for end-user + SetupDrawData(&g.DrawDataBuilder.Layers[0], &g.DrawData); + g.IO.MetricsRenderVertices = g.DrawData.TotalVtxCount; + g.IO.MetricsRenderIndices = g.DrawData.TotalIdxCount; + + // (Legacy) Call the Render callback function. The current prefer way is to let the user retrieve GetDrawData() and call the render function themselves. +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (g.DrawData.CmdListsCount > 0 && g.IO.RenderDrawListsFn != NULL) + g.IO.RenderDrawListsFn(&g.DrawData); +#endif +} + +// Calculate text size. Text can be multi-line. Optionally ignore text after a ## marker. +// CalcTextSize("") should return ImVec2(0.0f, g.FontSize) +ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) +{ + ImGuiContext& g = *GImGui; + + const char* text_display_end; + if (hide_text_after_double_hash) + text_display_end = FindRenderedTextEnd(text, text_end); // Hide anything after a '##' string + else + text_display_end = text_end; + + ImFont* font = g.Font; + const float font_size = g.FontSize; + if (text == text_display_end) + return ImVec2(0.0f, font_size); + ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX, wrap_width, text, text_display_end, NULL); + + // Round + text_size.x = IM_FLOOR(text_size.x + 0.95f); + + return text_size; +} + +// Find window given position, search front-to-back +// FIXME: Note that we have an inconsequential lag here: OuterRectClipped is updated in Begin(), so windows moved programmatically +// with SetWindowPos() and not SetNextWindowPos() will have that rectangle lagging by a frame at the time FindHoveredWindow() is +// called, aka before the next Begin(). Moving window isn't affected. +static void FindHoveredWindow() +{ + ImGuiContext& g = *GImGui; + + ImGuiWindow* hovered_window = NULL; + ImGuiWindow* hovered_window_ignoring_moving_window = NULL; + if (g.MovingWindow && !(g.MovingWindow->Flags & ImGuiWindowFlags_NoMouseInputs)) + hovered_window = g.MovingWindow; + + ImVec2 padding_regular = g.Style.TouchExtraPadding; + ImVec2 padding_for_resize_from_edges = g.IO.ConfigWindowsResizeFromEdges ? ImMax(g.Style.TouchExtraPadding, ImVec2(WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS, WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS)) : padding_regular; + for (int i = g.Windows.Size - 1; i >= 0; i--) + { + ImGuiWindow* window = g.Windows[i]; + if (!window->Active || window->Hidden) + continue; + if (window->Flags & ImGuiWindowFlags_NoMouseInputs) + continue; + + // Using the clipped AABB, a child window will typically be clipped by its parent (not always) + ImRect bb(window->OuterRectClipped); + if (window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize)) + bb.Expand(padding_regular); + else + bb.Expand(padding_for_resize_from_edges); + if (!bb.Contains(g.IO.MousePos)) + continue; + + // Support for one rectangular hole in any given window + // FIXME: Consider generalizing hit-testing override (with more generic data, callback, etc.) (#1512) + if (window->HitTestHoleSize.x != 0) + { + ImVec2 hole_pos(window->Pos.x + (float)window->HitTestHoleOffset.x, window->Pos.y + (float)window->HitTestHoleOffset.y); + ImVec2 hole_size((float)window->HitTestHoleSize.x, (float)window->HitTestHoleSize.y); + if (ImRect(hole_pos, hole_pos + hole_size).Contains(g.IO.MousePos)) + continue; + } + + if (hovered_window == NULL) + hovered_window = window; + if (hovered_window_ignoring_moving_window == NULL && (!g.MovingWindow || window->RootWindow != g.MovingWindow->RootWindow)) + hovered_window_ignoring_moving_window = window; + if (hovered_window && hovered_window_ignoring_moving_window) + break; + } + + g.HoveredWindow = hovered_window; + g.HoveredRootWindow = g.HoveredWindow ? g.HoveredWindow->RootWindow : NULL; + g.HoveredWindowUnderMovingWindow = hovered_window_ignoring_moving_window; +} + +// Test if mouse cursor is hovering given rectangle +// NB- Rectangle is clipped by our current clip setting +// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) +bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) +{ + ImGuiContext& g = *GImGui; + + // Clip + ImRect rect_clipped(r_min, r_max); + if (clip) + rect_clipped.ClipWith(g.CurrentWindow->ClipRect); + + // Expand for touch input + const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding); + if (!rect_for_touch.Contains(g.IO.MousePos)) + return false; + return true; +} + +int ImGui::GetKeyIndex(ImGuiKey imgui_key) +{ + IM_ASSERT(imgui_key >= 0 && imgui_key < ImGuiKey_COUNT); + ImGuiContext& g = *GImGui; + return g.IO.KeyMap[imgui_key]; +} + +// Note that dear imgui doesn't know the semantic of each entry of io.KeysDown[]! +// Use your own indices/enums according to how your back-end/engine stored them into io.KeysDown[]! +bool ImGui::IsKeyDown(int user_key_index) +{ + if (user_key_index < 0) + return false; + ImGuiContext& g = *GImGui; + IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); + return g.IO.KeysDown[user_key_index]; +} + +// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) +// t1 = current time (e.g.: g.Time) +// An event is triggered at: +// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N +int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) +{ + if (t1 == 0.0f) + return 1; + if (t0 >= t1) + return 0; + if (repeat_rate <= 0.0f) + return (t0 < repeat_delay) && (t1 >= repeat_delay); + const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); + const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); + const int count = count_t1 - count_t0; + return count; +} + +int ImGui::GetKeyPressedAmount(int key_index, float repeat_delay, float repeat_rate) +{ + ImGuiContext& g = *GImGui; + if (key_index < 0) + return 0; + IM_ASSERT(key_index >= 0 && key_index < IM_ARRAYSIZE(g.IO.KeysDown)); + const float t = g.IO.KeysDownDuration[key_index]; + return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); +} + +bool ImGui::IsKeyPressed(int user_key_index, bool repeat) +{ + ImGuiContext& g = *GImGui; + if (user_key_index < 0) + return false; + IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); + const float t = g.IO.KeysDownDuration[user_key_index]; + if (t == 0.0f) + return true; + if (repeat && t > g.IO.KeyRepeatDelay) + return GetKeyPressedAmount(user_key_index, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; + return false; +} + +bool ImGui::IsKeyReleased(int user_key_index) +{ + ImGuiContext& g = *GImGui; + if (user_key_index < 0) return false; + IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); + return g.IO.KeysDownDurationPrev[user_key_index] >= 0.0f && !g.IO.KeysDown[user_key_index]; +} + +bool ImGui::IsMouseDown(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDown[button]; +} + +bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + const float t = g.IO.MouseDownDuration[button]; + if (t == 0.0f) + return true; + + if (repeat && t > g.IO.KeyRepeatDelay) + { + // FIXME: 2019/05/03: Our old repeat code was wrong here and led to doubling the repeat rate, which made it an ok rate for repeat on mouse hold. + int amount = CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate * 0.50f); + if (amount > 0) + return true; + } + return false; +} + +bool ImGui::IsMouseReleased(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseReleased[button]; +} + +bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + return g.IO.MouseDoubleClicked[button]; +} + +// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. +// [Internal] This doesn't test if the button is pressed +bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; +} + +bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (!g.IO.MouseDown[button]) + return false; + return IsMouseDragPastThreshold(button, lock_threshold); +} + +ImVec2 ImGui::GetMousePos() +{ + ImGuiContext& g = *GImGui; + return g.IO.MousePos; +} + +// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! +ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() +{ + ImGuiContext& g = *GImGui; + if (g.BeginPopupStack.Size > 0) + return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; + return g.IO.MousePos; +} + +// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. +bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) +{ + // The assert is only to silence a false-positive in XCode Static Analysis. + // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). + IM_ASSERT(GImGui != NULL); + const float MOUSE_INVALID = -256000.0f; + ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; + return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; +} + +bool ImGui::IsAnyMouseDown() +{ + ImGuiContext& g = *GImGui; + for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) + if (g.IO.MouseDown[n]) + return true; + return false; +} + +// Return the delta from the initial clicking position while the mouse button is clicked or was just released. +// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. +// NB: This is only valid if IsMousePosValid(). Back-ends in theory should always keep mouse position valid when dragging even outside the client window. +ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + if (lock_threshold < 0.0f) + lock_threshold = g.IO.MouseDragThreshold; + if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) + if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) + if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) + return g.IO.MousePos - g.IO.MouseClickedPos[button]; + return ImVec2(0.0f, 0.0f); +} + +void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); + // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr + g.IO.MouseClickedPos[button] = g.IO.MousePos; +} + +ImGuiMouseCursor ImGui::GetMouseCursor() +{ + return GImGui->MouseCursor; +} + +void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) +{ + GImGui->MouseCursor = cursor_type; +} + +void ImGui::CaptureKeyboardFromApp(bool capture) +{ + GImGui->WantCaptureKeyboardNextFrame = capture ? 1 : 0; +} + +void ImGui::CaptureMouseFromApp(bool capture) +{ + GImGui->WantCaptureMouseNextFrame = capture ? 1 : 0; +} + +bool ImGui::IsItemActive() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + { + ImGuiWindow* window = g.CurrentWindow; + return g.ActiveId == window->DC.LastItemId; + } + return false; +} + +bool ImGui::IsItemActivated() +{ + ImGuiContext& g = *GImGui; + if (g.ActiveId) + { + ImGuiWindow* window = g.CurrentWindow; + if (g.ActiveId == window->DC.LastItemId && g.ActiveIdPreviousFrame != window->DC.LastItemId) + return true; + } + return false; +} + +bool ImGui::IsItemDeactivated() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HasDeactivated) + return (window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_Deactivated) != 0; + return (g.ActiveIdPreviousFrame == window->DC.LastItemId && g.ActiveIdPreviousFrame != 0 && g.ActiveId != window->DC.LastItemId); +} + +bool ImGui::IsItemDeactivatedAfterEdit() +{ + ImGuiContext& g = *GImGui; + return IsItemDeactivated() && (g.ActiveIdPreviousFrameHasBeenEditedBefore || (g.ActiveId == 0 && g.ActiveIdHasBeenEditedBefore)); +} + +bool ImGui::IsItemFocused() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (g.NavId == 0 || g.NavDisableHighlight || g.NavId != window->DC.LastItemId) + return false; + return true; +} + +bool ImGui::IsItemClicked(ImGuiMouseButton mouse_button) +{ + return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); +} + +bool ImGui::IsItemToggledOpen() +{ + ImGuiContext& g = *GImGui; + return (g.CurrentWindow->DC.LastItemStatusFlags & ImGuiItemStatusFlags_ToggledOpen) ? true : false; +} + +bool ImGui::IsItemToggledSelection() +{ + ImGuiContext& g = *GImGui; + return (g.CurrentWindow->DC.LastItemStatusFlags & ImGuiItemStatusFlags_ToggledSelection) ? true : false; +} + +bool ImGui::IsAnyItemHovered() +{ + ImGuiContext& g = *GImGui; + return g.HoveredId != 0 || g.HoveredIdPreviousFrame != 0; +} + +bool ImGui::IsAnyItemActive() +{ + ImGuiContext& g = *GImGui; + return g.ActiveId != 0; +} + +bool ImGui::IsAnyItemFocused() +{ + ImGuiContext& g = *GImGui; + return g.NavId != 0 && !g.NavDisableHighlight; +} + +bool ImGui::IsItemVisible() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->ClipRect.Overlaps(window->DC.LastItemRect); +} + +bool ImGui::IsItemEdited() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return (window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_Edited) != 0; +} + +// Allow last item to be overlapped by a subsequent item. Both may be activated during the same frame before the later one takes priority. +void ImGui::SetItemAllowOverlap() +{ + ImGuiContext& g = *GImGui; + if (g.HoveredId == g.CurrentWindow->DC.LastItemId) + g.HoveredIdAllowOverlap = true; + if (g.ActiveId == g.CurrentWindow->DC.LastItemId) + g.ActiveIdAllowOverlap = true; +} + +ImVec2 ImGui::GetItemRectMin() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.LastItemRect.Min; +} + +ImVec2 ImGui::GetItemRectMax() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.LastItemRect.Max; +} + +ImVec2 ImGui::GetItemRectSize() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.LastItemRect.GetSize(); +} + +static ImRect GetViewportRect() +{ + ImGuiContext& g = *GImGui; + return ImRect(0.0f, 0.0f, g.IO.DisplaySize.x, g.IO.DisplaySize.y); +} + +bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + + flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_ChildWindow; + flags |= (parent_window->Flags & ImGuiWindowFlags_NoMove); // Inherit the NoMove flag + + // Size + const ImVec2 content_avail = GetContentRegionAvail(); + ImVec2 menu_size = ImFloor(size_arg); + const int auto_fit_axises = ((menu_size.x == 0.0f) ? (1 << ImGuiAxis_X) : 0x00) | ((menu_size.y == 0.0f) ? (1 << ImGuiAxis_Y) : 0x00); + if (menu_size.x <= 0.0f) + menu_size.x = ImMax(content_avail.x + menu_size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too much issues) + if (menu_size.y <= 0.0f) + menu_size.y = ImMax(content_avail.y + menu_size.y, 4.0f); + SetNextWindowSize(menu_size); + + // Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value. + char menu_title[256]; + if (name) + ImFormatString(menu_title, IM_ARRAYSIZE(menu_title), "%s/%s_%08X", parent_window->Name, name, id); + else + ImFormatString(menu_title, IM_ARRAYSIZE(menu_title), "%s/%08X", parent_window->Name, id); + + const float backup_border_size = g.Style.ChildBorderSize; + if (!border) + g.Style.ChildBorderSize = 0.0f; + bool ret = Begin(menu_title, NULL, flags); + g.Style.ChildBorderSize = backup_border_size; + + ImGuiWindow* child_window = g.CurrentWindow; + child_window->ChildId = id; + child_window->AutoFitChildAxises = (ImS8)auto_fit_axises; + + // Set the cursor to handle case where the user called SetNextWindowPos()+BeginChild() manually. + // While this is not really documented/defined, it seems that the expected thing to do. + if (child_window->BeginCount == 1) + parent_window->DC.CursorPos = child_window->Pos; + + // Process navigation-in immediately so NavInit can run on first frame + if (g.NavActivateId == id && !(flags & ImGuiWindowFlags_NavFlattened) && (child_window->DC.NavLayerActiveMask != 0 || child_window->DC.NavHasScroll)) + { + FocusWindow(child_window); + NavInitWindow(child_window, false); + SetActiveID(id + 1, child_window); // Steal ActiveId with another arbitrary id so that key-press won't activate child item + g.ActiveIdSource = ImGuiInputSource_Nav; + } + return ret; +} + +bool ImGui::BeginChild(const char* str_id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + return BeginChildEx(str_id, window->GetID(str_id), size_arg, border, extra_flags); +} + +bool ImGui::BeginChild(ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) +{ + IM_ASSERT(id != 0); + return BeginChildEx(NULL, id, size_arg, border, extra_flags); +} + +void ImGui::EndChild() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + IM_ASSERT(g.WithinEndChild == false); + IM_ASSERT(window->Flags & ImGuiWindowFlags_ChildWindow); // Mismatched BeginChild()/EndChild() calls + + g.WithinEndChild = true; + if (window->BeginCount > 1) + { + End(); + } + else + { + ImVec2 sz = window->Size; + if (window->AutoFitChildAxises & (1 << ImGuiAxis_X)) // Arbitrary minimum zero-ish child size of 4.0f causes less trouble than a 0.0f + sz.x = ImMax(4.0f, sz.x); + if (window->AutoFitChildAxises & (1 << ImGuiAxis_Y)) + sz.y = ImMax(4.0f, sz.y); + End(); + + ImGuiWindow* parent_window = g.CurrentWindow; + ImRect bb(parent_window->DC.CursorPos, parent_window->DC.CursorPos + sz); + ItemSize(sz); + if ((window->DC.NavLayerActiveMask != 0 || window->DC.NavHasScroll) && !(window->Flags & ImGuiWindowFlags_NavFlattened)) + { + ItemAdd(bb, window->ChildId); + RenderNavHighlight(bb, window->ChildId); + + // When browsing a window that has no activable items (scroll only) we keep a highlight on the child + if (window->DC.NavLayerActiveMask == 0 && window == g.NavWindow) + RenderNavHighlight(ImRect(bb.Min - ImVec2(2, 2), bb.Max + ImVec2(2, 2)), g.NavId, ImGuiNavHighlightFlags_TypeThin); + } + else + { + // Not navigable into + ItemAdd(bb, 0); + } + } + g.WithinEndChild = false; +} + +// Helper to create a child window / scrolling region that looks like a normal widget frame. +bool ImGui::BeginChildFrame(ImGuiID id, const ImVec2& menu_size, ImGuiWindowFlags extra_flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding); + bool ret = BeginChild(id, menu_size, true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysUseWindowPadding | extra_flags); + PopStyleVar(3); + PopStyleColor(); + return ret; +} + +void ImGui::EndChildFrame() +{ + EndChild(); +} + +static void SetWindowConditionAllowFlags(ImGuiWindow* window, ImGuiCond flags, bool enabled) +{ + window->SetWindowPosAllowFlags = enabled ? (window->SetWindowPosAllowFlags | flags) : (window->SetWindowPosAllowFlags & ~flags); + window->SetWindowSizeAllowFlags = enabled ? (window->SetWindowSizeAllowFlags | flags) : (window->SetWindowSizeAllowFlags & ~flags); + window->SetWindowCollapsedAllowFlags = enabled ? (window->SetWindowCollapsedAllowFlags | flags) : (window->SetWindowCollapsedAllowFlags & ~flags); +} + +ImGuiWindow* ImGui::FindWindowByID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + return (ImGuiWindow*)g.WindowsById.GetVoidPtr(id); +} + +ImGuiWindow* ImGui::FindWindowByName(const char* name) +{ + ImGuiID id = ImHashStr(name); + return FindWindowByID(id); +} + +static void ApplyWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings) +{ + window->Pos = ImFloor(ImVec2(settings->Pos.x, settings->Pos.y)); + if (settings->Size.x > 0 && settings->Size.y > 0) + window->Size = window->SizeFull = ImFloor(ImVec2(settings->Size.x, settings->Size.y)); + window->Collapsed = settings->Collapsed; +} + +static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + //IMGUI_DEBUG_LOG("CreateNewWindow '%s', flags = 0x%08X\n", name, flags); + + // Create window the first time + ImGuiWindow* window = IM_NEW(ImGuiWindow)(&g, name); + window->Flags = flags; + g.WindowsById.SetVoidPtr(window->ID, window); + + // Default/arbitrary window position. Use SetNextWindowPos() with the appropriate condition flag to change the initial position of a window. + window->Pos = ImVec2(60, 60); + + // User can disable loading and saving of settings. Tooltip and child windows also don't store settings. + if (!(flags & ImGuiWindowFlags_NoSavedSettings)) + if (ImGuiWindowSettings* settings = ImGui::FindWindowSettings(window->ID)) + { + // Retrieve settings from .ini file + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); + ApplyWindowSettings(window, settings); + } + window->DC.CursorStartPos = window->DC.CursorMaxPos = window->Pos; // So first call to CalcContentSize() doesn't return crazy values + + if ((flags & ImGuiWindowFlags_AlwaysAutoResize) != 0) + { + window->AutoFitFramesX = window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = false; + } + else + { + if (window->Size.x <= 0.0f) + window->AutoFitFramesX = 2; + if (window->Size.y <= 0.0f) + window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = (window->AutoFitFramesX > 0) || (window->AutoFitFramesY > 0); + } + + g.WindowsFocusOrder.push_back(window); + if (flags & ImGuiWindowFlags_NoBringToFrontOnFocus) + g.Windows.push_front(window); // Quite slow but rare and only once + else + g.Windows.push_back(window); + return window; +} + +static ImVec2 CalcWindowSizeAfterConstraint(ImGuiWindow* window, ImVec2 new_size) +{ + ImGuiContext& g = *GImGui; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) + { + // Using -1,-1 on either X/Y axis to preserve the current size. + ImRect cr = g.NextWindowData.SizeConstraintRect; + new_size.x = (cr.Min.x >= 0 && cr.Max.x >= 0) ? ImClamp(new_size.x, cr.Min.x, cr.Max.x) : window->SizeFull.x; + new_size.y = (cr.Min.y >= 0 && cr.Max.y >= 0) ? ImClamp(new_size.y, cr.Min.y, cr.Max.y) : window->SizeFull.y; + if (g.NextWindowData.SizeCallback) + { + ImGuiSizeCallbackData data; + data.UserData = g.NextWindowData.SizeCallbackUserData; + data.Pos = window->Pos; + data.CurrentSize = window->SizeFull; + data.DesiredSize = new_size; + g.NextWindowData.SizeCallback(&data); + new_size = data.DesiredSize; + } + new_size.x = IM_FLOOR(new_size.x); + new_size.y = IM_FLOOR(new_size.y); + } + + // Minimum size + if (!(window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysAutoResize))) + { + ImGuiWindow* window_for_height = window; + new_size = ImMax(new_size, g.Style.WindowMinSize); + new_size.y = ImMax(new_size.y, window_for_height->TitleBarHeight() + window_for_height->MenuBarHeight() + ImMax(0.0f, g.Style.WindowRounding - 1.0f)); // Reduce artifacts with very small windows + } + return new_size; +} + +static ImVec2 CalcWindowContentSize(ImGuiWindow* window) +{ + if (window->Collapsed) + if (window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) + return window->ContentSize; + if (window->Hidden && window->HiddenFramesCannotSkipItems == 0 && window->HiddenFramesCanSkipItems > 0) + return window->ContentSize; + + ImVec2 sz; + sz.x = IM_FLOOR((window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : window->DC.CursorMaxPos.x - window->DC.CursorStartPos.x); + sz.y = IM_FLOOR((window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : window->DC.CursorMaxPos.y - window->DC.CursorStartPos.y); + return sz; +} + +static ImVec2 CalcWindowAutoFitSize(ImGuiWindow* window, const ImVec2& size_contents) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImVec2 size_decorations = ImVec2(0.0f, window->TitleBarHeight() + window->MenuBarHeight()); + ImVec2 size_pad = window->WindowPadding * 2.0f; + ImVec2 size_desired = size_contents + size_pad + size_decorations; + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Tooltip always resize + return size_desired; + } + else + { + // Maximum window size is determined by the viewport size or monitor size + const bool is_popup = (window->Flags & ImGuiWindowFlags_Popup) != 0; + const bool is_menu = (window->Flags & ImGuiWindowFlags_ChildMenu) != 0; + ImVec2 size_min = style.WindowMinSize; + if (is_popup || is_menu) // Popups and menus bypass style.WindowMinSize by default, but we give then a non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups) + size_min = ImMin(size_min, ImVec2(4.0f, 4.0f)); + ImVec2 size_auto_fit = ImClamp(size_desired, size_min, ImMax(size_min, g.IO.DisplaySize - style.DisplaySafeAreaPadding * 2.0f)); + + // When the window cannot fit all contents (either because of constraints, either because screen is too small), + // we are growing the size on the other axis to compensate for expected scrollbar. FIXME: Might turn bigger than ViewportSize-WindowPadding. + ImVec2 size_auto_fit_after_constraint = CalcWindowSizeAfterConstraint(window, size_auto_fit); + bool will_have_scrollbar_x = (size_auto_fit_after_constraint.x - size_pad.x - size_decorations.x < size_contents.x && !(window->Flags & ImGuiWindowFlags_NoScrollbar) && (window->Flags & ImGuiWindowFlags_HorizontalScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar); + bool will_have_scrollbar_y = (size_auto_fit_after_constraint.y - size_pad.y - size_decorations.y < size_contents.y && !(window->Flags & ImGuiWindowFlags_NoScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysVerticalScrollbar); + if (will_have_scrollbar_x) + size_auto_fit.y += style.ScrollbarSize; + if (will_have_scrollbar_y) + size_auto_fit.x += style.ScrollbarSize; + return size_auto_fit; + } +} + +ImVec2 ImGui::CalcWindowExpectedSize(ImGuiWindow* window) +{ + ImVec2 size_contents = CalcWindowContentSize(window); + ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents); + ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit); + return size_final; +} + +static ImGuiCol GetWindowBgColorIdxFromFlags(ImGuiWindowFlags flags) +{ + if (flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) + return ImGuiCol_PopupBg; + if (flags & ImGuiWindowFlags_ChildWindow) + return ImGuiCol_ChildBg; + return ImGuiCol_WindowBg; +} + +static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size) +{ + ImVec2 pos_min = ImLerp(corner_target, window->Pos, corner_norm); // Expected window upper-left + ImVec2 pos_max = ImLerp(window->Pos + window->Size, corner_target, corner_norm); // Expected window lower-right + ImVec2 size_expected = pos_max - pos_min; + ImVec2 size_constrained = CalcWindowSizeAfterConstraint(window, size_expected); + *out_pos = pos_min; + if (corner_norm.x == 0.0f) + out_pos->x -= (size_constrained.x - size_expected.x); + if (corner_norm.y == 0.0f) + out_pos->y -= (size_constrained.y - size_expected.y); + *out_size = size_constrained; +} + +struct ImGuiResizeGripDef +{ + ImVec2 CornerPosN; + ImVec2 InnerDir; + int AngleMin12, AngleMax12; +}; + +static const ImGuiResizeGripDef resize_grip_def[4] = +{ + { ImVec2(1, 1), ImVec2(-1, -1), 0, 3 }, // Lower-right + { ImVec2(0, 1), ImVec2(+1, -1), 3, 6 }, // Lower-left + { ImVec2(0, 0), ImVec2(+1, +1), 6, 9 }, // Upper-left (Unused) + { ImVec2(1, 0), ImVec2(-1, +1), 9, 12 }, // Upper-right (Unused) +}; + +struct ImGuiResizeBorderDef +{ + ImVec2 InnerDir; + ImVec2 CornerPosN1, CornerPosN2; + float OuterAngle; +}; + +static const ImGuiResizeBorderDef resize_border_def[4] = +{ + { ImVec2(0, +1), ImVec2(0, 0), ImVec2(1, 0), IM_PI * 1.50f }, // Top + { ImVec2(-1, 0), ImVec2(1, 0), ImVec2(1, 1), IM_PI * 0.00f }, // Right + { ImVec2(0, -1), ImVec2(1, 1), ImVec2(0, 1), IM_PI * 0.50f }, // Bottom + { ImVec2(+1, 0), ImVec2(0, 1), ImVec2(0, 0), IM_PI * 1.00f } // Left +}; + +static ImRect GetResizeBorderRect(ImGuiWindow* window, int border_n, float perp_padding, float thickness) +{ + ImRect rect = window->Rect(); + if (thickness == 0.0f) rect.Max -= ImVec2(1, 1); + if (border_n == 0) { return ImRect(rect.Min.x + perp_padding, rect.Min.y - thickness, rect.Max.x - perp_padding, rect.Min.y + thickness); } // Top + if (border_n == 1) { return ImRect(rect.Max.x - thickness, rect.Min.y + perp_padding, rect.Max.x + thickness, rect.Max.y - perp_padding); } // Right + if (border_n == 2) { return ImRect(rect.Min.x + perp_padding, rect.Max.y - thickness, rect.Max.x - perp_padding, rect.Max.y + thickness); } // Bottom + if (border_n == 3) { return ImRect(rect.Min.x - thickness, rect.Min.y + perp_padding, rect.Min.x + thickness, rect.Max.y - perp_padding); } // Left + IM_ASSERT(0); + return ImRect(); +} + +// 0..3: corners (Lower-right, Lower-left, Unused, Unused) +// 4..7: borders (Top, Right, Bottom, Left) +ImGuiID ImGui::GetWindowResizeID(ImGuiWindow* window, int n) +{ + IM_ASSERT(n >= 0 && n <= 7); + ImGuiID id = window->ID; + id = ImHashStr("#RESIZE", 0, id); + id = ImHashData(&n, sizeof(int), id); + return id; +} + +// Handle resize for: Resize Grips, Borders, Gamepad +// Return true when using auto-fit (double click on resize grip) +static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImGuiWindowFlags flags = window->Flags; + + if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + return false; + if (window->WasActive == false) // Early out to avoid running this code for e.g. an hidden implicit/fallback Debug window. + return false; + + bool ret_auto_fit = false; + const int resize_border_count = g.IO.ConfigWindowsResizeFromEdges ? 4 : 0; + const float grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.35f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + const float grip_hover_inner_size = IM_FLOOR(grip_draw_size * 0.75f); + const float grip_hover_outer_size = g.IO.ConfigWindowsResizeFromEdges ? WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS : 0.0f; + + ImVec2 pos_target(FLT_MAX, FLT_MAX); + ImVec2 size_target(FLT_MAX, FLT_MAX); + + // Resize grips and borders are on layer 1 + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Manual resize grips + PushID("#RESIZE"); + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImGuiResizeGripDef& grip = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, grip.CornerPosN); + + // Using the FlattenChilds button flag we make the resize button accessible even if we are hovering over a child window + ImRect resize_rect(corner - grip.InnerDir * grip_hover_outer_size, corner + grip.InnerDir * grip_hover_inner_size); + if (resize_rect.Min.x > resize_rect.Max.x) ImSwap(resize_rect.Min.x, resize_rect.Max.x); + if (resize_rect.Min.y > resize_rect.Max.y) ImSwap(resize_rect.Min.y, resize_rect.Max.y); + bool hovered, held; + ButtonBehavior(resize_rect, window->GetID(resize_grip_n), &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); + //GetForegroundDrawList(window)->AddRect(resize_rect.Min, resize_rect.Max, IM_COL32(255, 255, 0, 255)); + if (hovered || held) + g.MouseCursor = (resize_grip_n & 1) ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE; + + if (held && g.IO.MouseDoubleClicked[0] && resize_grip_n == 0) + { + // Manual auto-fit when double-clicking + size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit); + ret_auto_fit = true; + ClearActiveID(); + } + else if (held) + { + // Resize from any of the four corners + // We don't use an incremental MouseDelta but rather compute an absolute target size based on mouse position + ImVec2 corner_target = g.IO.MousePos - g.ActiveIdClickOffset + ImLerp(grip.InnerDir * grip_hover_outer_size, grip.InnerDir * -grip_hover_inner_size, grip.CornerPosN); // Corner of the window corresponding to our corner grip + ImVec2 clamp_min = ImVec2(grip.CornerPosN.x == 1.0f ? visibility_rect.Min.x : -FLT_MAX, grip.CornerPosN.y == 1.0f ? visibility_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max = ImVec2(grip.CornerPosN.x == 0.0f ? visibility_rect.Max.x : +FLT_MAX, grip.CornerPosN.y == 0.0f ? visibility_rect.Max.y : +FLT_MAX); + corner_target = ImClamp(corner_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, corner_target, grip.CornerPosN, &pos_target, &size_target); + } + if (resize_grip_n == 0 || held || hovered) + resize_grip_col[resize_grip_n] = GetColorU32(held ? ImGuiCol_ResizeGripActive : hovered ? ImGuiCol_ResizeGripHovered : ImGuiCol_ResizeGrip); + } + for (int border_n = 0; border_n < resize_border_count; border_n++) + { + bool hovered, held; + ImRect border_rect = GetResizeBorderRect(window, border_n, grip_hover_inner_size, WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); + ButtonBehavior(border_rect, window->GetID(border_n + 4), &hovered, &held, ImGuiButtonFlags_FlattenChildren); + //GetForegroundDrawLists(window)->AddRect(border_rect.Min, border_rect.Max, IM_COL32(255, 255, 0, 255)); + if ((hovered && g.HoveredIdTimer > WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER) || held) + { + g.MouseCursor = (border_n & 1) ? ImGuiMouseCursor_ResizeEW : ImGuiMouseCursor_ResizeNS; + if (held) + *border_held = border_n; + } + if (held) + { + ImVec2 border_target = window->Pos; + ImVec2 border_posn; + if (border_n == 0) { border_posn = ImVec2(0, 0); border_target.y = (g.IO.MousePos.y - g.ActiveIdClickOffset.y + WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); } // Top + if (border_n == 1) { border_posn = ImVec2(1, 0); border_target.x = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); } // Right + if (border_n == 2) { border_posn = ImVec2(0, 1); border_target.y = (g.IO.MousePos.y - g.ActiveIdClickOffset.y + WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); } // Bottom + if (border_n == 3) { border_posn = ImVec2(0, 0); border_target.x = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); } // Left + ImVec2 clamp_min = ImVec2(border_n == 1 ? visibility_rect.Min.x : -FLT_MAX, border_n == 2 ? visibility_rect.Min.y : -FLT_MAX); + ImVec2 clamp_max = ImVec2(border_n == 3 ? visibility_rect.Max.x : +FLT_MAX, border_n == 0 ? visibility_rect.Max.y : +FLT_MAX); + border_target = ImClamp(border_target, clamp_min, clamp_max); + CalcResizePosSizeFromAnyCorner(window, border_target, border_posn, &pos_target, &size_target); + } + } + PopID(); + + // Restore nav layer + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + + // Navigation resize (keyboard/gamepad) + if (g.NavWindowingTarget && g.NavWindowingTarget->RootWindow == window) + { + ImVec2 nav_resize_delta; + if (g.NavInputSource == ImGuiInputSource_NavKeyboard && g.IO.KeyShift) + nav_resize_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard, ImGuiInputReadMode_Down); + if (g.NavInputSource == ImGuiInputSource_NavGamepad) + nav_resize_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_Down); + if (nav_resize_delta.x != 0.0f || nav_resize_delta.y != 0.0f) + { + const float NAV_RESIZE_SPEED = 600.0f; + nav_resize_delta *= ImFloor(NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y)); + nav_resize_delta = ImMax(nav_resize_delta, visibility_rect.Min - window->Pos - window->Size); + g.NavWindowingToggleLayer = false; + g.NavDisableMouseHover = true; + resize_grip_col[0] = GetColorU32(ImGuiCol_ResizeGripActive); + // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. + size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + nav_resize_delta); + } + } + + // Apply back modified position/size to window + if (size_target.x != FLT_MAX) + { + window->SizeFull = size_target; + MarkIniSettingsDirty(window); + } + if (pos_target.x != FLT_MAX) + { + window->Pos = ImFloor(pos_target); + MarkIniSettingsDirty(window); + } + + window->Size = window->SizeFull; + return ret_auto_fit; +} + +static inline void ClampWindowRect(ImGuiWindow* window, const ImRect& visibility_rect) +{ + ImGuiContext& g = *GImGui; + ImVec2 size_for_clamping = window->Size; + if (g.IO.ConfigWindowsMoveFromTitleBarOnly && !(window->Flags & ImGuiWindowFlags_NoTitleBar)) + size_for_clamping.y = window->TitleBarHeight(); + window->Pos = ImClamp(window->Pos, visibility_rect.Min - size_for_clamping, visibility_rect.Max); +} + +static void ImGui::RenderWindowOuterBorders(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + float rounding = window->WindowRounding; + float border_size = window->WindowBorderSize; + if (border_size > 0.0f && !(window->Flags & ImGuiWindowFlags_NoBackground)) + window->DrawList->AddRect(window->Pos, window->Pos + window->Size, GetColorU32(ImGuiCol_Border), rounding, ImDrawCornerFlags_All, border_size); + + int border_held = window->ResizeBorderHeld; + if (border_held != -1) + { + const ImGuiResizeBorderDef& def = resize_border_def[border_held]; + ImRect border_r = GetResizeBorderRect(window, border_held, rounding, 0.0f); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.CornerPosN1) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle - IM_PI * 0.25f, def.OuterAngle); + window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.CornerPosN2) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle, def.OuterAngle + IM_PI * 0.25f); + window->DrawList->PathStroke(GetColorU32(ImGuiCol_SeparatorActive), false, ImMax(2.0f, border_size)); // Thicker than usual + } + if (g.Style.FrameBorderSize > 0 && !(window->Flags & ImGuiWindowFlags_NoTitleBar)) + { + float y = window->Pos.y + window->TitleBarHeight() - 1; + window->DrawList->AddLine(ImVec2(window->Pos.x + border_size, y), ImVec2(window->Pos.x + window->Size.x - border_size, y), GetColorU32(ImGuiCol_Border), g.Style.FrameBorderSize); + } +} + +// Draw background and borders +// Draw and handle scrollbars +void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + // Ensure that ScrollBar doesn't read last frame's SkipItems + IM_ASSERT(window->BeginCount == 0); + window->SkipItems = false; + + // Draw window + handle manual resize + // As we highlight the title bar when want_focus is set, multiple reappearing windows will have have their title bar highlighted on their reappearing frame. + const float window_rounding = window->WindowRounding; + const float window_border_size = window->WindowBorderSize; + if (window->Collapsed) + { + // Title bar only + float backup_border_size = style.FrameBorderSize; + g.Style.FrameBorderSize = window->WindowBorderSize; + ImU32 title_bar_col = GetColorU32((title_bar_is_highlight && !g.NavDisableHighlight) ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBgCollapsed); + RenderFrame(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, true, window_rounding); + g.Style.FrameBorderSize = backup_border_size; + } + else + { + // Window background + if (!(flags & ImGuiWindowFlags_NoBackground)) + { + ImU32 bg_col = GetColorU32(GetWindowBgColorIdxFromFlags(flags)); + bool override_alpha = false; + float alpha = 1.0f; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasBgAlpha) + { + alpha = g.NextWindowData.BgAlphaVal; + override_alpha = true; + } + if (override_alpha) + bg_col = (bg_col & ~IM_COL32_A_MASK) | (IM_F32_TO_INT8_SAT(alpha) << IM_COL32_A_SHIFT); + window->DrawList->AddRectFilled(window->Pos + ImVec2(0, window->TitleBarHeight()), window->Pos + window->Size, bg_col, window_rounding, (flags & ImGuiWindowFlags_NoTitleBar) ? ImDrawCornerFlags_All : ImDrawCornerFlags_Bot); + } + + // Title bar + if (!(flags & ImGuiWindowFlags_NoTitleBar)) + { + ImU32 title_bar_col = GetColorU32(title_bar_is_highlight ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg); + window->DrawList->AddRectFilled(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, window_rounding, ImDrawCornerFlags_Top); + } + + // Menu bar + if (flags & ImGuiWindowFlags_MenuBar) + { + ImRect menu_bar_rect = window->MenuBarRect(); + menu_bar_rect.ClipWith(window->Rect()); // Soft clipping, in particular child window don't have minimum size covering the menu bar so this is useful for them. + window->DrawList->AddRectFilled(menu_bar_rect.Min + ImVec2(window_border_size, 0), menu_bar_rect.Max - ImVec2(window_border_size, 0), GetColorU32(ImGuiCol_MenuBarBg), (flags & ImGuiWindowFlags_NoTitleBar) ? window_rounding : 0.0f, ImDrawCornerFlags_Top); + if (style.FrameBorderSize > 0.0f && menu_bar_rect.Max.y < window->Pos.y + window->Size.y) + window->DrawList->AddLine(menu_bar_rect.GetBL(), menu_bar_rect.GetBR(), GetColorU32(ImGuiCol_Border), style.FrameBorderSize); + } + + // Scrollbars + if (window->ScrollbarX) + Scrollbar(ImGuiAxis_X); + if (window->ScrollbarY) + Scrollbar(ImGuiAxis_Y); + + // Render resize grips (after their input handling so we don't have a frame of latency) + if (!(flags & ImGuiWindowFlags_NoResize)) + { + for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) + { + const ImGuiResizeGripDef& grip = resize_grip_def[resize_grip_n]; + const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, grip.CornerPosN); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(window_border_size, resize_grip_draw_size) : ImVec2(resize_grip_draw_size, window_border_size))); + window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(resize_grip_draw_size, window_border_size) : ImVec2(window_border_size, resize_grip_draw_size))); + window->DrawList->PathArcToFast(ImVec2(corner.x + grip.InnerDir.x * (window_rounding + window_border_size), corner.y + grip.InnerDir.y * (window_rounding + window_border_size)), window_rounding, grip.AngleMin12, grip.AngleMax12); + window->DrawList->PathFillConvex(resize_grip_col[resize_grip_n]); + } + } + + // Borders + RenderWindowOuterBorders(window); + } +} + +// Render title text, collapse button, close button +void ImGui::RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open) +{ + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImGuiWindowFlags flags = window->Flags; + + const bool has_close_button = (p_open != NULL); + const bool has_collapse_button = !(flags & ImGuiWindowFlags_NoCollapse) && (style.WindowMenuButtonPosition != ImGuiDir_None); + + // Close & Collapse button are on the Menu NavLayer and don't default focus (unless there's nothing else on that layer) + const ImGuiItemFlags item_flags_backup = window->DC.ItemFlags; + window->DC.ItemFlags |= ImGuiItemFlags_NoNavDefaultFocus; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + + // Layout buttons + // FIXME: Would be nice to generalize the subtleties expressed here into reusable code. + float pad_l = style.FramePadding.x; + float pad_r = style.FramePadding.x; + float button_sz = g.FontSize; + ImVec2 close_button_pos; + ImVec2 collapse_button_pos; + if (has_close_button) + { + pad_r += button_sz; + close_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - style.FramePadding.x, title_bar_rect.Min.y); + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Right) + { + pad_r += button_sz; + collapse_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - style.FramePadding.x, title_bar_rect.Min.y); + } + if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Left) + { + collapse_button_pos = ImVec2(title_bar_rect.Min.x + pad_l - style.FramePadding.x, title_bar_rect.Min.y); + pad_l += button_sz; + } + + // Collapse button (submitting first so it gets priority when choosing a navigation init fallback) + if (has_collapse_button) + if (CollapseButton(window->GetID("#COLLAPSE"), collapse_button_pos)) + window->WantCollapseToggle = true; // Defer actual collapsing to next frame as we are too far in the Begin() function + + // Close button + if (has_close_button) + if (CloseButton(window->GetID("#CLOSE"), close_button_pos)) + *p_open = false; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.ItemFlags = item_flags_backup; + + // Title bar text (with: horizontal alignment, avoiding collapse/close button, optional "unsaved document" marker) + // FIXME: Refactor text alignment facilities along with RenderText helpers, this is WAY too much messy code.. + const char* UNSAVED_DOCUMENT_MARKER = "*"; + const float marker_size_x = (flags & ImGuiWindowFlags_UnsavedDocument) ? CalcTextSize(UNSAVED_DOCUMENT_MARKER, NULL, false).x : 0.0f; + const ImVec2 text_size = CalcTextSize(name, NULL, true) + ImVec2(marker_size_x, 0.0f); + + // As a nice touch we try to ensure that centered title text doesn't get affected by visibility of Close/Collapse button, + // while uncentered title text will still reach edges correct. + if (pad_l > style.FramePadding.x) + pad_l += g.Style.ItemInnerSpacing.x; + if (pad_r > style.FramePadding.x) + pad_r += g.Style.ItemInnerSpacing.x; + if (style.WindowTitleAlign.x > 0.0f && style.WindowTitleAlign.x < 1.0f) + { + float centerness = ImSaturate(1.0f - ImFabs(style.WindowTitleAlign.x - 0.5f) * 2.0f); // 0.0f on either edges, 1.0f on center + float pad_extend = ImMin(ImMax(pad_l, pad_r), title_bar_rect.GetWidth() - pad_l - pad_r - text_size.x); + pad_l = ImMax(pad_l, pad_extend * centerness); + pad_r = ImMax(pad_r, pad_extend * centerness); + } + + ImRect layout_r(title_bar_rect.Min.x + pad_l, title_bar_rect.Min.y, title_bar_rect.Max.x - pad_r, title_bar_rect.Max.y); + ImRect clip_r(layout_r.Min.x, layout_r.Min.y, layout_r.Max.x + g.Style.ItemInnerSpacing.x, layout_r.Max.y); + //if (g.IO.KeyCtrl) window->DrawList->AddRect(layout_r.Min, layout_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] + RenderTextClipped(layout_r.Min, layout_r.Max, name, NULL, &text_size, style.WindowTitleAlign, &clip_r); + if (flags & ImGuiWindowFlags_UnsavedDocument) + { + ImVec2 marker_pos = ImVec2(ImMax(layout_r.Min.x, layout_r.Min.x + (layout_r.GetWidth() - text_size.x) * style.WindowTitleAlign.x) + text_size.x, layout_r.Min.y) + ImVec2(2 - marker_size_x, 0.0f); + ImVec2 off = ImVec2(0.0f, IM_FLOOR(-g.FontSize * 0.25f)); + RenderTextClipped(marker_pos + off, layout_r.Max + off, UNSAVED_DOCUMENT_MARKER, NULL, NULL, ImVec2(0, style.WindowTitleAlign.y), &clip_r); + } +} + +void ImGui::UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window) +{ + window->ParentWindow = parent_window; + window->RootWindow = window->RootWindowForTitleBarHighlight = window->RootWindowForNav = window; + if (parent_window && (flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Tooltip)) + window->RootWindow = parent_window->RootWindow; + if (parent_window && !(flags & ImGuiWindowFlags_Modal) && (flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup))) + window->RootWindowForTitleBarHighlight = parent_window->RootWindowForTitleBarHighlight; + while (window->RootWindowForNav->Flags & ImGuiWindowFlags_NavFlattened) + { + IM_ASSERT(window->RootWindowForNav->ParentWindow != NULL); + window->RootWindowForNav = window->RootWindowForNav->ParentWindow; + } +} + +// Push a new Dear ImGui window to add widgets to. +// - A default window called "Debug" is automatically stacked at the beginning of every frame so you can use widgets without explicitly calling a Begin/End pair. +// - Begin/End can be called multiple times during the frame with the same window name to append content. +// - The window name is used as a unique identifier to preserve window information across frames (and save rudimentary information to the .ini file). +// You can use the "##" or "###" markers to use the same label with different id, or same id with different label. See documentation at the top of this file. +// - Return false when window is collapsed, so you can early out in your code. You always need to call ImGui::End() even if false is returned. +// - Passing 'bool* p_open' displays a Close button on the upper-right corner of the window, the pointed value will be set to false when the button is pressed. +bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + IM_ASSERT(name != NULL && name[0] != '\0'); // Window name required + IM_ASSERT(g.WithinFrameScope); // Forgot to call ImGui::NewFrame() + IM_ASSERT(g.FrameCountEnded != g.FrameCount); // Called ImGui::Render() or ImGui::EndFrame() and haven't called ImGui::NewFrame() again yet + + // Find or create + ImGuiWindow* window = FindWindowByName(name); + const bool window_just_created = (window == NULL); + if (window_just_created) + window = CreateNewWindow(name, flags); + + // Automatically disable manual moving/resizing when NoInputs is set + if ((flags & ImGuiWindowFlags_NoInputs) == ImGuiWindowFlags_NoInputs) + flags |= ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize; + + if (flags & ImGuiWindowFlags_NavFlattened) + IM_ASSERT(flags & ImGuiWindowFlags_ChildWindow); + + const int current_frame = g.FrameCount; + const bool first_begin_of_the_frame = (window->LastFrameActive != current_frame); + window->IsFallbackWindow = (g.CurrentWindowStack.Size == 0 && g.WithinFrameScopeWithImplicitWindow); + + // Update the Appearing flag + bool window_just_activated_by_user = (window->LastFrameActive < current_frame - 1); // Not using !WasActive because the implicit "Debug" window would always toggle off->on + const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + window_just_activated_by_user |= (window->PopupId != popup_ref.PopupId); // We recycle popups so treat window as activated if popup id changed + window_just_activated_by_user |= (window != popup_ref.Window); + } + window->Appearing = (window_just_activated_by_user || window_just_appearing_after_hidden_for_resize); + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); + + // Update Flags, LastFrameActive, BeginOrderXXX fields + if (first_begin_of_the_frame) + { + window->Flags = (ImGuiWindowFlags)flags; + window->LastFrameActive = current_frame; + window->LastTimeActive = (float)g.Time; + window->BeginOrderWithinParent = 0; + window->BeginOrderWithinContext = (short)(g.WindowsActiveCount++); + } + else + { + flags = window->Flags; + } + + // Parent window is latched only on the first call to Begin() of the frame, so further append-calls can be done from a different window stack + ImGuiWindow* parent_window_in_stack = g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back(); + ImGuiWindow* parent_window = first_begin_of_the_frame ? ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup)) ? parent_window_in_stack : NULL) : window->ParentWindow; + IM_ASSERT(parent_window != NULL || !(flags & ImGuiWindowFlags_ChildWindow)); + + // We allow window memory to be compacted so recreate the base stack when needed. + if (window->IDStack.Size == 0) + window->IDStack.push_back(window->ID); + + // Add to stack + // We intentionally set g.CurrentWindow to NULL to prevent usage until when the viewport is set, then will call SetCurrentWindow() + g.CurrentWindowStack.push_back(window); + g.CurrentWindow = NULL; + ErrorCheckBeginEndCompareStacksSize(window, true); + if (flags & ImGuiWindowFlags_Popup) + { + ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; + popup_ref.Window = window; + g.BeginPopupStack.push_back(popup_ref); + window->PopupId = popup_ref.PopupId; + } + + if (window_just_appearing_after_hidden_for_resize && !(flags & ImGuiWindowFlags_ChildWindow)) + window->NavLastIds[0] = 0; + + // Update ->RootWindow and others pointers (before any possible call to FocusWindow) + if (first_begin_of_the_frame) + UpdateWindowParentAndRootLinks(window, flags, parent_window); + + // Process SetNextWindow***() calls + // (FIXME: Consider splitting the HasXXX flags into X/Y components + bool window_pos_set_by_api = false; + bool window_size_x_set_by_api = false, window_size_y_set_by_api = false; + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) + { + window_pos_set_by_api = (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) != 0; + if (window_pos_set_by_api && ImLengthSqr(g.NextWindowData.PosPivotVal) > 0.00001f) + { + // May be processed on the next frame if this is our first frame and we are measuring size + // FIXME: Look into removing the branch so everything can go through this same code path for consistency. + window->SetWindowPosVal = g.NextWindowData.PosVal; + window->SetWindowPosPivot = g.NextWindowData.PosPivotVal; + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + } + else + { + SetWindowPos(window, g.NextWindowData.PosVal, g.NextWindowData.PosCond); + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) + { + window_size_x_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.x > 0.0f); + window_size_y_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.y > 0.0f); + SetWindowSize(window, g.NextWindowData.SizeVal, g.NextWindowData.SizeCond); + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasScroll) + { + if (g.NextWindowData.ScrollVal.x >= 0.0f) + { + window->ScrollTarget.x = g.NextWindowData.ScrollVal.x; + window->ScrollTargetCenterRatio.x = 0.0f; + } + if (g.NextWindowData.ScrollVal.y >= 0.0f) + { + window->ScrollTarget.y = g.NextWindowData.ScrollVal.y; + window->ScrollTargetCenterRatio.y = 0.0f; + } + } + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasContentSize) + window->ContentSizeExplicit = g.NextWindowData.ContentSizeVal; + else if (first_begin_of_the_frame) + window->ContentSizeExplicit = ImVec2(0.0f, 0.0f); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasCollapsed) + SetWindowCollapsed(window, g.NextWindowData.CollapsedVal, g.NextWindowData.CollapsedCond); + if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasFocus) + FocusWindow(window); + if (window->Appearing) + SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, false); + + // When reusing window again multiple times a frame, just append content (don't need to setup again) + if (first_begin_of_the_frame) + { + // Initialize + const bool window_is_child_tooltip = (flags & ImGuiWindowFlags_ChildWindow) && (flags & ImGuiWindowFlags_Tooltip); // FIXME-WIP: Undocumented behavior of Child+Tooltip for pinned tooltip (#1345) + window->Active = true; + window->HasCloseButton = (p_open != NULL); + window->ClipRect = ImVec4(-FLT_MAX, -FLT_MAX, +FLT_MAX, +FLT_MAX); + window->IDStack.resize(1); + window->DrawList->_ResetForNewFrame(); + + // Restore buffer capacity when woken from a compacted state, to avoid + if (window->MemoryCompacted) + GcAwakeTransientWindowBuffers(window); + + // Update stored window name when it changes (which can _only_ happen with the "###" operator, so the ID would stay unchanged). + // The title bar always display the 'name' parameter, so we only update the string storage if it needs to be visible to the end-user elsewhere. + bool window_title_visible_elsewhere = false; + if (g.NavWindowingListWindow != NULL && (window->Flags & ImGuiWindowFlags_NoNavFocus) == 0) // Window titles visible when using CTRL+TAB + window_title_visible_elsewhere = true; + if (window_title_visible_elsewhere && !window_just_created && strcmp(name, window->Name) != 0) + { + size_t buf_len = (size_t)window->NameBufLen; + window->Name = ImStrdupcpy(window->Name, &buf_len, name); + window->NameBufLen = (int)buf_len; + } + + // UPDATE CONTENTS SIZE, UPDATE HIDDEN STATUS + + // Update contents size from last frame for auto-fitting (or use explicit size) + window->ContentSize = CalcWindowContentSize(window); + if (window->HiddenFramesCanSkipItems > 0) + window->HiddenFramesCanSkipItems--; + if (window->HiddenFramesCannotSkipItems > 0) + window->HiddenFramesCannotSkipItems--; + + // Hide new windows for one frame until they calculate their size + if (window_just_created && (!window_size_x_set_by_api || !window_size_y_set_by_api)) + window->HiddenFramesCannotSkipItems = 1; + + // Hide popup/tooltip window when re-opening while we measure size (because we recycle the windows) + // We reset Size/ContentSize for reappearing popups/tooltips early in this function, so further code won't be tempted to use the old size. + if (window_just_activated_by_user && (flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) != 0) + { + window->HiddenFramesCannotSkipItems = 1; + if (flags & ImGuiWindowFlags_AlwaysAutoResize) + { + if (!window_size_x_set_by_api) + window->Size.x = window->SizeFull.x = 0.f; + if (!window_size_y_set_by_api) + window->Size.y = window->SizeFull.y = 0.f; + window->ContentSize = ImVec2(0.f, 0.f); + } + } + + // SELECT VIEWPORT + // FIXME-VIEWPORT: In the docking/viewport branch, this is the point where we select the current viewport (which may affect the style) + SetCurrentWindow(window); + + // LOCK BORDER SIZE AND PADDING FOR THE FRAME (so that altering them doesn't cause inconsistencies) + + if (flags & ImGuiWindowFlags_ChildWindow) + window->WindowBorderSize = style.ChildBorderSize; + else + window->WindowBorderSize = ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupBorderSize : style.WindowBorderSize; + window->WindowPadding = style.WindowPadding; + if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & (ImGuiWindowFlags_AlwaysUseWindowPadding | ImGuiWindowFlags_Popup)) && window->WindowBorderSize == 0.0f) + window->WindowPadding = ImVec2(0.0f, (flags & ImGuiWindowFlags_MenuBar) ? style.WindowPadding.y : 0.0f); + + // Lock menu offset so size calculation can use it as menu-bar windows need a minimum size. + window->DC.MenuBarOffset.x = ImMax(ImMax(window->WindowPadding.x, style.ItemSpacing.x), g.NextWindowData.MenuBarOffsetMinVal.x); + window->DC.MenuBarOffset.y = g.NextWindowData.MenuBarOffsetMinVal.y; + + // Collapse window by double-clicking on title bar + // At this point we don't have a clipping rectangle setup yet, so we can use the title bar area for hit detection and drawing + if (!(flags & ImGuiWindowFlags_NoTitleBar) && !(flags & ImGuiWindowFlags_NoCollapse)) + { + // We don't use a regular button+id to test for double-click on title bar (mostly due to legacy reason, could be fixed), so verify that we don't have items over the title bar. + ImRect title_bar_rect = window->TitleBarRect(); + if (g.HoveredWindow == window && g.HoveredId == 0 && g.HoveredIdPreviousFrame == 0 && IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max) && g.IO.MouseDoubleClicked[0]) + window->WantCollapseToggle = true; + if (window->WantCollapseToggle) + { + window->Collapsed = !window->Collapsed; + MarkIniSettingsDirty(window); + FocusWindow(window); + } + } + else + { + window->Collapsed = false; + } + window->WantCollapseToggle = false; + + // SIZE + + // Calculate auto-fit size, handle automatic resize + const ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, window->ContentSize); + bool use_current_size_for_scrollbar_x = window_just_created; + bool use_current_size_for_scrollbar_y = window_just_created; + if ((flags & ImGuiWindowFlags_AlwaysAutoResize) && !window->Collapsed) + { + // Using SetNextWindowSize() overrides ImGuiWindowFlags_AlwaysAutoResize, so it can be used on tooltips/popups, etc. + if (!window_size_x_set_by_api) + { + window->SizeFull.x = size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api) + { + window->SizeFull.y = size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + } + else if (window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) + { + // Auto-fit may only grow window during the first few frames + // We still process initial auto-fit on collapsed windows to get a window width, but otherwise don't honor ImGuiWindowFlags_AlwaysAutoResize when collapsed. + if (!window_size_x_set_by_api && window->AutoFitFramesX > 0) + { + window->SizeFull.x = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.x, size_auto_fit.x) : size_auto_fit.x; + use_current_size_for_scrollbar_x = true; + } + if (!window_size_y_set_by_api && window->AutoFitFramesY > 0) + { + window->SizeFull.y = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.y, size_auto_fit.y) : size_auto_fit.y; + use_current_size_for_scrollbar_y = true; + } + if (!window->Collapsed) + MarkIniSettingsDirty(window); + } + + // Apply minimum/maximum window size constraints and final size + window->SizeFull = CalcWindowSizeAfterConstraint(window, window->SizeFull); + window->Size = window->Collapsed && !(flags & ImGuiWindowFlags_ChildWindow) ? window->TitleBarRect().GetSize() : window->SizeFull; + + // Decoration size + const float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); + + // POSITION + + // Popup latch its initial position, will position itself when it appears next frame + if (window_just_activated_by_user) + { + window->AutoPosLastDirection = ImGuiDir_None; + if ((flags & ImGuiWindowFlags_Popup) != 0 && !(flags & ImGuiWindowFlags_Modal) && !window_pos_set_by_api) // FIXME: BeginPopup() could use SetNextWindowPos() + window->Pos = g.BeginPopupStack.back().OpenPopupPos; + } + + // Position child window + if (flags & ImGuiWindowFlags_ChildWindow) + { + IM_ASSERT(parent_window && parent_window->Active); + window->BeginOrderWithinParent = (short)parent_window->DC.ChildWindows.Size; + parent_window->DC.ChildWindows.push_back(window); + if (!(flags & ImGuiWindowFlags_Popup) && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = parent_window->DC.CursorPos; + } + + const bool window_pos_with_pivot = (window->SetWindowPosVal.x != FLT_MAX && window->HiddenFramesCannotSkipItems == 0); + if (window_pos_with_pivot) + SetWindowPos(window, window->SetWindowPosVal - window->Size * window->SetWindowPosPivot, 0); // Position given a pivot (e.g. for centering) + else if ((flags & ImGuiWindowFlags_ChildMenu) != 0) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Popup) != 0 && !window_pos_set_by_api && window_just_appearing_after_hidden_for_resize) + window->Pos = FindBestWindowPosForPopup(window); + else if ((flags & ImGuiWindowFlags_Tooltip) != 0 && !window_pos_set_by_api && !window_is_child_tooltip) + window->Pos = FindBestWindowPosForPopup(window); + + // Calculate the range of allowed position for that window (to be movable and visible past safe area padding) + // When clamping to stay visible, we will enforce that window->Pos stays inside of visibility_rect. + ImRect viewport_rect(GetViewportRect()); + ImVec2 visibility_padding = ImMax(style.DisplayWindowPadding, style.DisplaySafeAreaPadding); + ImRect visibility_rect(viewport_rect.Min + visibility_padding, viewport_rect.Max - visibility_padding); + + // Clamp position/size so window stays visible within its viewport or monitor + // Ignore zero-sized display explicitly to avoid losing positions if a window manager reports zero-sized window when initializing or minimizing. + if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) + if (viewport_rect.GetWidth() > 0.0f && viewport_rect.GetHeight() > 0.0f) + ClampWindowRect(window, visibility_rect); + window->Pos = ImFloor(window->Pos); + + // Lock window rounding for the frame (so that altering them doesn't cause inconsistencies) + // Large values tend to lead to variety of artifacts and are not recommended. + window->WindowRounding = (flags & ImGuiWindowFlags_ChildWindow) ? style.ChildRounding : ((flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupRounding : style.WindowRounding; + + // For windows with title bar or menu bar, we clamp to FrameHeight(FontSize + FramePadding.y * 2.0f) to completely hide artifacts. + //if ((window->Flags & ImGuiWindowFlags_MenuBar) || !(window->Flags & ImGuiWindowFlags_NoTitleBar)) + // window->WindowRounding = ImMin(window->WindowRounding, g.FontSize + style.FramePadding.y * 2.0f); + + // Apply window focus (new and reactivated windows are moved to front) + bool want_focus = false; + if (window_just_activated_by_user && !(flags & ImGuiWindowFlags_NoFocusOnAppearing)) + { + if (flags & ImGuiWindowFlags_Popup) + want_focus = true; + else if ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Tooltip)) == 0) + want_focus = true; + } + + // Handle manual resize: Resize Grips, Borders, Gamepad + int border_held = -1; + ImU32 resize_grip_col[4] = {}; + const int resize_grip_count = g.IO.ConfigWindowsResizeFromEdges ? 2 : 1; // Allow resize from lower-left if we have the mouse cursor feedback for it. + const float resize_grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.35f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); + if (!window->Collapsed) + if (UpdateWindowManualResize(window, size_auto_fit, &border_held, resize_grip_count, &resize_grip_col[0], visibility_rect)) + use_current_size_for_scrollbar_x = use_current_size_for_scrollbar_y = true; + window->ResizeBorderHeld = (signed char)border_held; + + // SCROLLBAR VISIBILITY + + // Update scrollbar visibility (based on the Size that was effective during last frame or the auto-resized Size). + if (!window->Collapsed) + { + // When reading the current size we need to read it after size constraints have been applied. + // When we use InnerRect here we are intentionally reading last frame size, same for ScrollbarSizes values before we set them again. + ImVec2 avail_size_from_current_frame = ImVec2(window->SizeFull.x, window->SizeFull.y - decoration_up_height); + ImVec2 avail_size_from_last_frame = window->InnerRect.GetSize() + window->ScrollbarSizes; + ImVec2 needed_size_from_last_frame = window_just_created ? ImVec2(0, 0) : window->ContentSize + window->WindowPadding * 2.0f; + float size_x_for_scrollbars = use_current_size_for_scrollbar_x ? avail_size_from_current_frame.x : avail_size_from_last_frame.x; + float size_y_for_scrollbars = use_current_size_for_scrollbar_y ? avail_size_from_current_frame.y : avail_size_from_last_frame.y; + //bool scrollbar_y_from_last_frame = window->ScrollbarY; // FIXME: May want to use that in the ScrollbarX expression? How many pros vs cons? + window->ScrollbarY = (flags & ImGuiWindowFlags_AlwaysVerticalScrollbar) || ((needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar)); + window->ScrollbarX = (flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar) || ((needed_size_from_last_frame.x > size_x_for_scrollbars - (window->ScrollbarY ? style.ScrollbarSize : 0.0f)) && !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar)); + if (window->ScrollbarX && !window->ScrollbarY) + window->ScrollbarY = (needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar); + window->ScrollbarSizes = ImVec2(window->ScrollbarY ? style.ScrollbarSize : 0.0f, window->ScrollbarX ? style.ScrollbarSize : 0.0f); + } + + // UPDATE RECTANGLES (1- THOSE NOT AFFECTED BY SCROLLING) + // Update various regions. Variables they depends on should be set above in this function. + // We set this up after processing the resize grip so that our rectangles doesn't lag by a frame. + + // Outer rectangle + // Not affected by window border size. Used by: + // - FindHoveredWindow() (w/ extra padding when border resize is enabled) + // - Begin() initial clipping rect for drawing window background and borders. + // - Begin() clipping whole child + const ImRect host_rect = ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) ? parent_window->ClipRect : viewport_rect; + const ImRect outer_rect = window->Rect(); + const ImRect title_bar_rect = window->TitleBarRect(); + window->OuterRectClipped = outer_rect; + window->OuterRectClipped.ClipWith(host_rect); + + // Inner rectangle + // Not affected by window border size. Used by: + // - InnerClipRect + // - ScrollToBringRectIntoView() + // - NavUpdatePageUpPageDown() + // - Scrollbar() + window->InnerRect.Min.x = window->Pos.x; + window->InnerRect.Min.y = window->Pos.y + decoration_up_height; + window->InnerRect.Max.x = window->Pos.x + window->Size.x - window->ScrollbarSizes.x; + window->InnerRect.Max.y = window->Pos.y + window->Size.y - window->ScrollbarSizes.y; + + // Inner clipping rectangle. + // Will extend a little bit outside the normal work region. + // This is to allow e.g. Selectable or CollapsingHeader or some separators to cover that space. + // Force round operator last to ensure that e.g. (int)(max.x-min.x) in user's render code produce correct result. + // Note that if our window is collapsed we will end up with an inverted (~null) clipping rectangle which is the correct behavior. + // Affected by window/frame border size. Used by: + // - Begin() initial clip rect + float top_border_size = (((flags & ImGuiWindowFlags_MenuBar) || !(flags & ImGuiWindowFlags_NoTitleBar)) ? style.FrameBorderSize : window->WindowBorderSize); + window->InnerClipRect.Min.x = ImFloor(0.5f + window->InnerRect.Min.x + ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Min.y = ImFloor(0.5f + window->InnerRect.Min.y + top_border_size); + window->InnerClipRect.Max.x = ImFloor(0.5f + window->InnerRect.Max.x - ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); + window->InnerClipRect.Max.y = ImFloor(0.5f + window->InnerRect.Max.y - window->WindowBorderSize); + window->InnerClipRect.ClipWithFull(host_rect); + + // Default item width. Make it proportional to window size if window manually resizes + if (window->Size.x > 0.0f && !(flags & ImGuiWindowFlags_Tooltip) && !(flags & ImGuiWindowFlags_AlwaysAutoResize)) + window->ItemWidthDefault = ImFloor(window->Size.x * 0.65f); + else + window->ItemWidthDefault = ImFloor(g.FontSize * 16.0f); + + // SCROLLING + + // Lock down maximum scrolling + // The value of ScrollMax are ahead from ScrollbarX/ScrollbarY which is intentionally using InnerRect from previous rect in order to accommodate + // for right/bottom aligned items without creating a scrollbar. + window->ScrollMax.x = ImMax(0.0f, window->ContentSize.x + window->WindowPadding.x * 2.0f - window->InnerRect.GetWidth()); + window->ScrollMax.y = ImMax(0.0f, window->ContentSize.y + window->WindowPadding.y * 2.0f - window->InnerRect.GetHeight()); + + // Apply scrolling + window->Scroll = CalcNextScrollFromScrollTargetAndClamp(window); + window->ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); + + // DRAWING + + // Setup draw list and outer clipping rectangle + IM_ASSERT(window->DrawList->CmdBuffer.Size == 1 && window->DrawList->CmdBuffer[0].ElemCount == 0); + window->DrawList->PushTextureID(g.Font->ContainerAtlas->TexID); + PushClipRect(host_rect.Min, host_rect.Max, false); + + // Draw modal window background (darkens what is behind them, all viewports) + const bool dim_bg_for_modal = (flags & ImGuiWindowFlags_Modal) && window == GetTopMostPopupModal() && window->HiddenFramesCannotSkipItems <= 0; + const bool dim_bg_for_window_list = g.NavWindowingTargetAnim && (window == g.NavWindowingTargetAnim->RootWindow); + if (dim_bg_for_modal || dim_bg_for_window_list) + { + const ImU32 dim_bg_col = GetColorU32(dim_bg_for_modal ? ImGuiCol_ModalWindowDimBg : ImGuiCol_NavWindowingDimBg, g.DimBgRatio); + window->DrawList->AddRectFilled(viewport_rect.Min, viewport_rect.Max, dim_bg_col); + } + + // Draw navigation selection/windowing rectangle background + if (dim_bg_for_window_list && window == g.NavWindowingTargetAnim) + { + ImRect bb = window->Rect(); + bb.Expand(g.FontSize); + if (!bb.Contains(viewport_rect)) // Avoid drawing if the window covers all the viewport anyway + window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_NavWindowingHighlight, g.NavWindowingHighlightAlpha * 0.25f), g.Style.WindowRounding); + } + + // Since 1.71, child window can render their decoration (bg color, border, scrollbars, etc.) within their parent to save a draw call. + // When using overlapping child windows, this will break the assumption that child z-order is mapped to submission order. + // We disable this when the parent window has zero vertices, which is a common pattern leading to laying out multiple overlapping child. + // We also disabled this when we have dimming overlay behind this specific one child. + // FIXME: More code may rely on explicit sorting of overlapping child window and would need to disable this somehow. Please get in contact if you are affected. + { + bool render_decorations_in_parent = false; + if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) + if (window->DrawList->CmdBuffer.back().ElemCount == 0 && parent_window->DrawList->VtxBuffer.Size > 0) + render_decorations_in_parent = true; + if (render_decorations_in_parent) + window->DrawList = parent_window->DrawList; + + // Handle title bar, scrollbar, resize grips and resize borders + const ImGuiWindow* window_to_highlight = g.NavWindowingTarget ? g.NavWindowingTarget : g.NavWindow; + const bool title_bar_is_highlight = want_focus || (window_to_highlight && window->RootWindowForTitleBarHighlight == window_to_highlight->RootWindowForTitleBarHighlight); + RenderWindowDecorations(window, title_bar_rect, title_bar_is_highlight, resize_grip_count, resize_grip_col, resize_grip_draw_size); + + if (render_decorations_in_parent) + window->DrawList = &window->DrawListInst; + } + + // Draw navigation selection/windowing rectangle border + if (g.NavWindowingTargetAnim == window) + { + float rounding = ImMax(window->WindowRounding, g.Style.WindowRounding); + ImRect bb = window->Rect(); + bb.Expand(g.FontSize); + if (bb.Contains(viewport_rect)) // If a window fits the entire viewport, adjust its highlight inward + { + bb.Expand(-g.FontSize - 1.0f); + rounding = window->WindowRounding; + } + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_NavWindowingHighlight, g.NavWindowingHighlightAlpha), rounding, ~0, 3.0f); + } + + // UPDATE RECTANGLES (2- THOSE AFFECTED BY SCROLLING) + + // Work rectangle. + // Affected by window padding and border size. Used by: + // - Columns() for right-most edge + // - TreeNode(), CollapsingHeader() for right-most edge + // - BeginTabBar() for right-most edge + const bool allow_scrollbar_x = !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar); + const bool allow_scrollbar_y = !(flags & ImGuiWindowFlags_NoScrollbar); + const float work_rect_size_x = (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : ImMax(allow_scrollbar_x ? window->ContentSize.x : 0.0f, window->Size.x - window->WindowPadding.x * 2.0f - window->ScrollbarSizes.x)); + const float work_rect_size_y = (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : ImMax(allow_scrollbar_y ? window->ContentSize.y : 0.0f, window->Size.y - window->WindowPadding.y * 2.0f - decoration_up_height - window->ScrollbarSizes.y)); + window->WorkRect.Min.x = ImFloor(window->InnerRect.Min.x - window->Scroll.x + ImMax(window->WindowPadding.x, window->WindowBorderSize)); + window->WorkRect.Min.y = ImFloor(window->InnerRect.Min.y - window->Scroll.y + ImMax(window->WindowPadding.y, window->WindowBorderSize)); + window->WorkRect.Max.x = window->WorkRect.Min.x + work_rect_size_x; + window->WorkRect.Max.y = window->WorkRect.Min.y + work_rect_size_y; + window->ParentWorkRect = window->WorkRect; + + // [LEGACY] Content Region + // FIXME-OBSOLETE: window->ContentRegionRect.Max is currently very misleading / partly faulty, but some BeginChild() patterns relies on it. + // Used by: + // - Mouse wheel scrolling + many other things + window->ContentRegionRect.Min.x = window->Pos.x - window->Scroll.x + window->WindowPadding.x; + window->ContentRegionRect.Min.y = window->Pos.y - window->Scroll.y + window->WindowPadding.y + decoration_up_height; + window->ContentRegionRect.Max.x = window->ContentRegionRect.Min.x + (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : (window->Size.x - window->WindowPadding.x * 2.0f - window->ScrollbarSizes.x)); + window->ContentRegionRect.Max.y = window->ContentRegionRect.Min.y + (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : (window->Size.y - window->WindowPadding.y * 2.0f - decoration_up_height - window->ScrollbarSizes.y)); + + // Setup drawing context + // (NB: That term "drawing context / DC" lost its meaning a long time ago. Initially was meant to hold transient data only. Nowadays difference between window-> and window->DC-> is dubious.) + window->DC.Indent.x = 0.0f + window->WindowPadding.x - window->Scroll.x; + window->DC.GroupOffset.x = 0.0f; + window->DC.ColumnsOffset.x = 0.0f; + window->DC.CursorStartPos = window->Pos + ImVec2(window->DC.Indent.x + window->DC.ColumnsOffset.x, decoration_up_height + window->WindowPadding.y - window->Scroll.y); + window->DC.CursorPos = window->DC.CursorStartPos; + window->DC.CursorPosPrevLine = window->DC.CursorPos; + window->DC.CursorMaxPos = window->DC.CursorStartPos; + window->DC.CurrLineSize = window->DC.PrevLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset = 0.0f; + + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.NavLayerActiveMask = window->DC.NavLayerActiveMaskNext; + window->DC.NavLayerActiveMaskNext = 0x00; + window->DC.NavFocusScopeIdCurrent = (flags & ImGuiWindowFlags_ChildWindow) ? parent_window->DC.NavFocusScopeIdCurrent : 0; // -V595 + window->DC.NavHideHighlightOneFrame = false; + window->DC.NavHasScroll = (window->ScrollMax.y > 0.0f); + + window->DC.MenuBarAppending = false; + window->DC.MenuColumns.Update(3, style.ItemSpacing.x, window_just_activated_by_user); + window->DC.TreeDepth = 0; + window->DC.TreeJumpToParentOnPopMask = 0x00; + window->DC.ChildWindows.resize(0); + window->DC.StateStorage = &window->StateStorage; + window->DC.CurrentColumns = NULL; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.ParentLayoutType = parent_window ? parent_window->DC.LayoutType : ImGuiLayoutType_Vertical; + window->DC.FocusCounterRegular = window->DC.FocusCounterTabStop = -1; + + window->DC.ItemWidth = window->ItemWidthDefault; + window->DC.TextWrapPos = -1.0f; // disabled + window->DC.ItemFlagsStack.resize(0); + window->DC.ItemWidthStack.resize(0); + window->DC.TextWrapPosStack.resize(0); + window->DC.GroupStack.resize(0); + window->DC.ItemFlags = parent_window ? parent_window->DC.ItemFlags : ImGuiItemFlags_Default_; + if (parent_window) + window->DC.ItemFlagsStack.push_back(window->DC.ItemFlags); + + if (window->AutoFitFramesX > 0) + window->AutoFitFramesX--; + if (window->AutoFitFramesY > 0) + window->AutoFitFramesY--; + + // Apply focus (we need to call FocusWindow() AFTER setting DC.CursorStartPos so our initial navigation reference rectangle can start around there) + if (want_focus) + { + FocusWindow(window); + NavInitWindow(window, false); + } + + // Title bar + if (!(flags & ImGuiWindowFlags_NoTitleBar)) + RenderWindowTitleBarContents(window, title_bar_rect, name, p_open); + + // Clear hit test shape every frame + window->HitTestHoleSize.x = window->HitTestHoleSize.y = 0; + + // Pressing CTRL+C while holding on a window copy its content to the clipboard + // This works but 1. doesn't handle multiple Begin/End pairs, 2. recursing into another Begin/End pair - so we need to work that out and add better logging scope. + // Maybe we can support CTRL+C on every element? + /* + if (g.ActiveId == move_id) + if (g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_C)) + LogToClipboard(); + */ + + // We fill last item data based on Title Bar/Tab, in order for IsItemHovered() and IsItemActive() to be usable after Begin(). + // This is useful to allow creating context menus on title bar only, etc. + SetLastItemData(window, window->MoveId, IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max, false) ? ImGuiItemStatusFlags_HoveredRect : 0, title_bar_rect); + +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (!(window->Flags & ImGuiWindowFlags_NoTitleBar)) + IMGUI_TEST_ENGINE_ITEM_ADD(window->DC.LastItemRect, window->DC.LastItemId); +#endif + } + else + { + // Append + SetCurrentWindow(window); + } + + PushClipRect(window->InnerClipRect.Min, window->InnerClipRect.Max, true); + + // Clear 'accessed' flag last thing (After PushClipRect which will set the flag. We want the flag to stay false when the default "Debug" window is unused) + if (first_begin_of_the_frame) + window->WriteAccessed = false; + + window->BeginCount++; + g.NextWindowData.ClearFlags(); + + // Update visibility + if (first_begin_of_the_frame) + { + if (flags & ImGuiWindowFlags_ChildWindow) + { + // Child window can be out of sight and have "negative" clip windows. + // Mark them as collapsed so commands are skipped earlier (we can't manually collapse them because they have no title bar). + IM_ASSERT((flags & ImGuiWindowFlags_NoTitleBar) != 0); + if (!(flags & ImGuiWindowFlags_AlwaysAutoResize) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) + if (window->OuterRectClipped.Min.x >= window->OuterRectClipped.Max.x || window->OuterRectClipped.Min.y >= window->OuterRectClipped.Max.y) + window->HiddenFramesCanSkipItems = 1; + + // Hide along with parent or if parent is collapsed + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCanSkipItems > 0)) + window->HiddenFramesCanSkipItems = 1; + if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCannotSkipItems > 0)) + window->HiddenFramesCannotSkipItems = 1; + } + + // Don't render if style alpha is 0.0 at the time of Begin(). This is arbitrary and inconsistent but has been there for a long while (may remove at some point) + if (style.Alpha <= 0.0f) + window->HiddenFramesCanSkipItems = 1; + + // Update the Hidden flag + window->Hidden = (window->HiddenFramesCanSkipItems > 0) || (window->HiddenFramesCannotSkipItems > 0); + + // Update the SkipItems flag, used to early out of all items functions (no layout required) + bool skip_items = false; + if (window->Collapsed || !window->Active || window->Hidden) + if (window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0 && window->HiddenFramesCannotSkipItems <= 0) + skip_items = true; + window->SkipItems = skip_items; + } + + return !window->SkipItems; +} + +void ImGui::End() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // Error checking: verify that user hasn't called End() too many times! + if (g.CurrentWindowStack.Size <= 1 && g.WithinFrameScopeWithImplicitWindow) + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size > 1, "Calling End() too many times!"); + return; + } + IM_ASSERT(g.CurrentWindowStack.Size > 0); + + // Error checking: verify that user doesn't directly call End() on a child window. + if (window->Flags & ImGuiWindowFlags_ChildWindow) + IM_ASSERT_USER_ERROR(g.WithinEndChild, "Must call EndChild() and not End()!"); + + // Close anything that is open + if (window->DC.CurrentColumns) + EndColumns(); + PopClipRect(); // Inner window clip rectangle + + // Stop logging + if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) // FIXME: add more options for scope of logging + LogFinish(); + + // Pop from window stack + g.CurrentWindowStack.pop_back(); + if (window->Flags & ImGuiWindowFlags_Popup) + g.BeginPopupStack.pop_back(); + ErrorCheckBeginEndCompareStacksSize(window, false); + SetCurrentWindow(g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back()); +} + +void ImGui::BringWindowToFocusFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.WindowsFocusOrder.back() == window) + return; + for (int i = g.WindowsFocusOrder.Size - 2; i >= 0; i--) // We can ignore the top-most window + if (g.WindowsFocusOrder[i] == window) + { + memmove(&g.WindowsFocusOrder[i], &g.WindowsFocusOrder[i + 1], (size_t)(g.WindowsFocusOrder.Size - i - 1) * sizeof(ImGuiWindow*)); + g.WindowsFocusOrder[g.WindowsFocusOrder.Size - 1] = window; + break; + } +} + +void ImGui::BringWindowToDisplayFront(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* current_front_window = g.Windows.back(); + if (current_front_window == window || current_front_window->RootWindow == window) // Cheap early out (could be better) + return; + for (int i = g.Windows.Size - 2; i >= 0; i--) // We can ignore the top-most window + if (g.Windows[i] == window) + { + memmove(&g.Windows[i], &g.Windows[i + 1], (size_t)(g.Windows.Size - i - 1) * sizeof(ImGuiWindow*)); + g.Windows[g.Windows.Size - 1] = window; + break; + } +} + +void ImGui::BringWindowToDisplayBack(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (g.Windows[0] == window) + return; + for (int i = 0; i < g.Windows.Size; i++) + if (g.Windows[i] == window) + { + memmove(&g.Windows[1], &g.Windows[0], (size_t)i * sizeof(ImGuiWindow*)); + g.Windows[0] = window; + break; + } +} + +// Moving window to front of display and set focus (which happens to be back of our sorted list) +void ImGui::FocusWindow(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + if (g.NavWindow != window) + { + g.NavWindow = window; + if (window && g.NavDisableMouseHover) + g.NavMousePosDirty = true; + g.NavInitRequest = false; + g.NavId = window ? window->NavLastIds[0] : 0; // Restore NavId + g.NavFocusScopeId = 0; + g.NavIdIsAlive = false; + g.NavLayer = ImGuiNavLayer_Main; + //IMGUI_DEBUG_LOG("FocusWindow(\"%s\")\n", window ? window->Name : NULL); + } + + // Close popups if any + ClosePopupsOverWindow(window, false); + + // Move the root window to the top of the pile + IM_ASSERT(window == NULL || window->RootWindow != NULL); + ImGuiWindow* focus_front_window = window ? window->RootWindow : NULL; // NB: In docking branch this is window->RootWindowDockStop + ImGuiWindow* display_front_window = window ? window->RootWindow : NULL; + + // Steal active widgets. Some of the cases it triggers includes: + // - Focus a window while an InputText in another window is active, if focus happens before the old InputText can run. + // - When using Nav to activate menu items (due to timing of activating on press->new window appears->losing ActiveId) + if (g.ActiveId != 0 && g.ActiveIdWindow && g.ActiveIdWindow->RootWindow != focus_front_window) + if (!g.ActiveIdNoClearOnFocusLoss) + ClearActiveID(); + + // Passing NULL allow to disable keyboard focus + if (!window) + return; + + // Bring to front + BringWindowToFocusFront(focus_front_window); + if (((window->Flags | display_front_window->Flags) & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0) + BringWindowToDisplayFront(display_front_window); +} + +void ImGui::FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window) +{ + ImGuiContext& g = *GImGui; + + int start_idx = g.WindowsFocusOrder.Size - 1; + if (under_this_window != NULL) + { + int under_this_window_idx = FindWindowFocusIndex(under_this_window); + if (under_this_window_idx != -1) + start_idx = under_this_window_idx - 1; + } + for (int i = start_idx; i >= 0; i--) + { + // We may later decide to test for different NoXXXInputs based on the active navigation input (mouse vs nav) but that may feel more confusing to the user. + ImGuiWindow* window = g.WindowsFocusOrder[i]; + if (window != ignore_window && window->WasActive && !(window->Flags & ImGuiWindowFlags_ChildWindow)) + if ((window->Flags & (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) != (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) + { + ImGuiWindow* focus_window = NavRestoreLastChildNavWindow(window); + FocusWindow(focus_window); + return; + } + } + FocusWindow(NULL); +} + +void ImGui::SetCurrentFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(font && font->IsLoaded()); // Font Atlas not created. Did you call io.Fonts->GetTexDataAsRGBA32 / GetTexDataAsAlpha8 ? + IM_ASSERT(font->Scale > 0.0f); + g.Font = font; + g.FontBaseSize = ImMax(1.0f, g.IO.FontGlobalScale * g.Font->FontSize * g.Font->Scale); + g.FontSize = g.CurrentWindow ? g.CurrentWindow->CalcFontSize() : 0.0f; + + ImFontAtlas* atlas = g.Font->ContainerAtlas; + g.DrawListSharedData.TexUvWhitePixel = atlas->TexUvWhitePixel; + g.DrawListSharedData.TexUvLines = atlas->TexUvLines; + g.DrawListSharedData.Font = g.Font; + g.DrawListSharedData.FontSize = g.FontSize; +} + +void ImGui::PushFont(ImFont* font) +{ + ImGuiContext& g = *GImGui; + if (!font) + font = GetDefaultFont(); + SetCurrentFont(font); + g.FontStack.push_back(font); + g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID); +} + +void ImGui::PopFont() +{ + ImGuiContext& g = *GImGui; + g.CurrentWindow->DrawList->PopTextureID(); + g.FontStack.pop_back(); + SetCurrentFont(g.FontStack.empty() ? GetDefaultFont() : g.FontStack.back()); +} + +void ImGui::PushItemFlag(ImGuiItemFlags option, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (enabled) + window->DC.ItemFlags |= option; + else + window->DC.ItemFlags &= ~option; + window->DC.ItemFlagsStack.push_back(window->DC.ItemFlags); +} + +void ImGui::PopItemFlag() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.ItemFlagsStack.pop_back(); + window->DC.ItemFlags = window->DC.ItemFlagsStack.empty() ? ImGuiItemFlags_Default_ : window->DC.ItemFlagsStack.back(); +} + +// FIXME: Look into renaming this once we have settled the new Focus/Activation/TabStop system. +void ImGui::PushAllowKeyboardFocus(bool allow_keyboard_focus) +{ + PushItemFlag(ImGuiItemFlags_NoTabStop, !allow_keyboard_focus); +} + +void ImGui::PopAllowKeyboardFocus() +{ + PopItemFlag(); +} + +void ImGui::PushButtonRepeat(bool repeat) +{ + PushItemFlag(ImGuiItemFlags_ButtonRepeat, repeat); +} + +void ImGui::PopButtonRepeat() +{ + PopItemFlag(); +} + +void ImGui::PushTextWrapPos(float wrap_pos_x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPos = wrap_pos_x; + window->DC.TextWrapPosStack.push_back(wrap_pos_x); +} + +void ImGui::PopTextWrapPos() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.TextWrapPosStack.pop_back(); + window->DC.TextWrapPos = window->DC.TextWrapPosStack.empty() ? -1.0f : window->DC.TextWrapPosStack.back(); +} + +bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent) +{ + if (window->RootWindow == potential_parent) + return true; + while (window != NULL) + { + if (window == potential_parent) + return true; + window = window->ParentWindow; + } + return false; +} + +bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags) +{ + IM_ASSERT((flags & ImGuiHoveredFlags_AllowWhenOverlapped) == 0); // Flags not supported by this function + ImGuiContext& g = *GImGui; + + if (flags & ImGuiHoveredFlags_AnyWindow) + { + if (g.HoveredWindow == NULL) + return false; + } + else + { + switch (flags & (ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows)) + { + case ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows: + if (g.HoveredRootWindow != g.CurrentWindow->RootWindow) + return false; + break; + case ImGuiHoveredFlags_RootWindow: + if (g.HoveredWindow != g.CurrentWindow->RootWindow) + return false; + break; + case ImGuiHoveredFlags_ChildWindows: + if (g.HoveredWindow == NULL || !IsWindowChildOf(g.HoveredWindow, g.CurrentWindow)) + return false; + break; + default: + if (g.HoveredWindow != g.CurrentWindow) + return false; + break; + } + } + + if (!IsWindowContentHoverable(g.HoveredWindow, flags)) + return false; + if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap && g.ActiveId != g.HoveredWindow->MoveId) + return false; + return true; +} + +bool ImGui::IsWindowFocused(ImGuiFocusedFlags flags) +{ + ImGuiContext& g = *GImGui; + + if (flags & ImGuiFocusedFlags_AnyWindow) + return g.NavWindow != NULL; + + IM_ASSERT(g.CurrentWindow); // Not inside a Begin()/End() + switch (flags & (ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows)) + { + case ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows: + return g.NavWindow && g.NavWindow->RootWindow == g.CurrentWindow->RootWindow; + case ImGuiFocusedFlags_RootWindow: + return g.NavWindow == g.CurrentWindow->RootWindow; + case ImGuiFocusedFlags_ChildWindows: + return g.NavWindow && IsWindowChildOf(g.NavWindow, g.CurrentWindow); + default: + return g.NavWindow == g.CurrentWindow; + } +} + +// Can we focus this window with CTRL+TAB (or PadMenu + PadFocusPrev/PadFocusNext) +// Note that NoNavFocus makes the window not reachable with CTRL+TAB but it can still be focused with mouse or programmatically. +// If you want a window to never be focused, you may use the e.g. NoInputs flag. +bool ImGui::IsWindowNavFocusable(ImGuiWindow* window) +{ + return window->Active && window == window->RootWindow && !(window->Flags & ImGuiWindowFlags_NoNavFocus); +} + +float ImGui::GetWindowWidth() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.x; +} + +float ImGui::GetWindowHeight() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Size.y; +} + +ImVec2 ImGui::GetWindowPos() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + return window->Pos; +} + +void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowPosAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + window->SetWindowPosVal = ImVec2(FLT_MAX, FLT_MAX); + + // Set + const ImVec2 old_pos = window->Pos; + window->Pos = ImFloor(pos); + ImVec2 offset = window->Pos - old_pos; + window->DC.CursorPos += offset; // As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor + window->DC.CursorMaxPos += offset; // And more importantly we need to offset CursorMaxPos/CursorStartPos this so ContentSize calculation doesn't get affected. + window->DC.CursorStartPos += offset; +} + +void ImGui::SetWindowPos(const ImVec2& pos, ImGuiCond cond) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + SetWindowPos(window, pos, cond); +} + +void ImGui::SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowPos(window, pos, cond); +} + +ImVec2 ImGui::GetWindowSize() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Size; +} + +void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& menu_size, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowSizeAllowFlags & cond) == 0) + return; + + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + window->SetWindowSizeAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + if (menu_size.x > 0.0f) + { + window->AutoFitFramesX = 0; + window->SizeFull.x = IM_FLOOR(menu_size.x); + } + else + { + window->AutoFitFramesX = 2; + window->AutoFitOnlyGrows = false; + } + if (menu_size.y > 0.0f) + { + window->AutoFitFramesY = 0; + window->SizeFull.y = IM_FLOOR(menu_size.y); + } + else + { + window->AutoFitFramesY = 2; + window->AutoFitOnlyGrows = false; + } +} + +void ImGui::SetWindowSize(const ImVec2& menu_size, ImGuiCond cond) +{ + SetWindowSize(GImGui->CurrentWindow, menu_size, cond); +} + +void ImGui::SetWindowSize(const char* name, const ImVec2& menu_size, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowSize(window, menu_size, cond); +} + +void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond) +{ + // Test condition (NB: bit 0 is always true) and clear flags for next time + if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0) + return; + window->SetWindowCollapsedAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); + + // Set + window->Collapsed = collapsed; +} + +void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& menu_size) +{ + IM_ASSERT(window->HitTestHoleSize.x == 0); // We don't support multiple holes/hit test filters + window->HitTestHoleSize = ImVec2ih(menu_size); + window->HitTestHoleOffset = ImVec2ih(pos - window->Pos); +} + +void ImGui::SetWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + SetWindowCollapsed(GImGui->CurrentWindow, collapsed, cond); +} + +bool ImGui::IsWindowCollapsed() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Collapsed; +} + +bool ImGui::IsWindowAppearing() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->Appearing; +} + +void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond) +{ + if (ImGuiWindow* window = FindWindowByName(name)) + SetWindowCollapsed(window, collapsed, cond); +} + +void ImGui::SetWindowFocus() +{ + FocusWindow(GImGui->CurrentWindow); +} + +void ImGui::SetWindowFocus(const char* name) +{ + if (name) + { + if (ImGuiWindow* window = FindWindowByName(name)) + FocusWindow(window); + } + else + { + FocusWindow(NULL); + } +} + +void ImGui::SetNextWindowPos(const ImVec2& pos, ImGuiCond cond, const ImVec2& pivot) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasPos; + g.NextWindowData.PosVal = pos; + g.NextWindowData.PosPivotVal = pivot; + g.NextWindowData.PosCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowSize(const ImVec2& menu_size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSize; + g.NextWindowData.SizeVal = menu_size; + g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback, void* custom_callback_user_data) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSizeConstraint; + g.NextWindowData.SizeConstraintRect = ImRect(size_min, size_max); + g.NextWindowData.SizeCallback = custom_callback; + g.NextWindowData.SizeCallbackUserData = custom_callback_user_data; +} + +// Content size = inner scrollable rectangle, padded with WindowPadding. +// SetNextWindowContentSize(ImVec2(100,100) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item. +void ImGui::SetNextWindowContentSize(const ImVec2& menu_size) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasContentSize; + g.NextWindowData.ContentSizeVal = menu_size; +} + +void ImGui::SetNextWindowScroll(const ImVec2& scroll) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasScroll; + g.NextWindowData.ScrollVal = scroll; +} + +void ImGui::SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasCollapsed; + g.NextWindowData.CollapsedVal = collapsed; + g.NextWindowData.CollapsedCond = cond ? cond : ImGuiCond_Always; +} + +void ImGui::SetNextWindowFocus() +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasFocus; +} + +void ImGui::SetNextWindowBgAlpha(float alpha) +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasBgAlpha; + g.NextWindowData.BgAlphaVal = alpha; +} + +ImDrawList* ImGui::GetWindowDrawList() +{ + ImGuiWindow* window = GetCurrentWindow(); + return window->DrawList; +} + +ImFont* ImGui::GetFont() +{ + return GImGui->Font; +} + +float ImGui::GetFontSize() +{ + return GImGui->FontSize; +} + +ImVec2 ImGui::GetFontTexUvWhitePixel() +{ + return GImGui->DrawListSharedData.TexUvWhitePixel; +} + +void ImGui::SetWindowFontScale(float scale) +{ + IM_ASSERT(scale > 0.0f); + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->FontWindowScale = scale; + g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); +} + +void ImGui::ActivateItem(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + g.NavNextActivateId = id; +} + +// Note: this is storing in same stack as IDStack, so Push/Pop mismatch will be reported there. +void ImGui::PushFocusScope(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->IDStack.push_back(window->DC.NavFocusScopeIdCurrent); + window->DC.NavFocusScopeIdCurrent = id; +} + +void ImGui::PopFocusScope() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DC.NavFocusScopeIdCurrent = window->IDStack.back(); + window->IDStack.pop_back(); +} + +void ImGui::SetKeyboardFocusHere(int offset) +{ + IM_ASSERT(offset >= -1); // -1 is allowed but not below + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + g.FocusRequestNextWindow = window; + g.FocusRequestNextCounterRegular = window->DC.FocusCounterRegular + 1 + offset; + g.FocusRequestNextCounterTabStop = INT_MAX; +} + +void ImGui::SetItemDefaultFocus() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (!window->Appearing) + return; + if (g.NavWindow == window->RootWindowForNav && (g.NavInitRequest || g.NavInitResultId != 0) && g.NavLayer == g.NavWindow->DC.NavLayerCurrent) + { + g.NavInitRequest = false; + g.NavInitResultId = g.NavWindow->DC.LastItemId; + g.NavInitResultRectRel = ImRect(g.NavWindow->DC.LastItemRect.Min - g.NavWindow->Pos, g.NavWindow->DC.LastItemRect.Max - g.NavWindow->Pos); + NavUpdateAnyRequestFlag(); + if (!IsItemVisible()) + SetScrollHereY(); + } +} + +void ImGui::SetStateStorage(ImGuiStorage* tree) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + window->DC.StateStorage = tree ? tree : &window->StateStorage; +} + +ImGuiStorage* ImGui::GetStateStorage() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->DC.StateStorage; +} + +void ImGui::PushID(const char* str_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetIDNoKeepAlive(str_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetIDNoKeepAlive(str_id_begin, str_id_end); + window->IDStack.push_back(id); +} + +void ImGui::PushID(const void* ptr_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetIDNoKeepAlive(ptr_id); + window->IDStack.push_back(id); +} + +void ImGui::PushID(int int_id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiID id = window->GetIDNoKeepAlive(int_id); + window->IDStack.push_back(id); +} + +// Push a given id value ignoring the ID stack as a seed. +void ImGui::PushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->IDStack.push_back(id); +} + +// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call +// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level. +// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more) +ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed) +{ + ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); + ImGui::KeepAliveID(id); +#ifdef IMGUI_ENABLE_TEST_ENGINE + ImGuiContext& g = *GImGui; + IMGUI_TEST_ENGINE_ID_INFO2(id, ImGuiDataType_String, str, str_end); +#endif + return id; +} + +void ImGui::PopID() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + window->IDStack.pop_back(); +} + +ImGuiID ImGui::GetID(const char* str_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id); +} + +ImGuiID ImGui::GetID(const char* str_id_begin, const char* str_id_end) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(str_id_begin, str_id_end); +} + +ImGuiID ImGui::GetID(const void* ptr_id) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(ptr_id); +} + +bool ImGui::IsRectVisible(const ImVec2& menu_size) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + menu_size)); +} + +bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ClipRect.Overlaps(ImRect(rect_min, rect_max)); +} + + +//----------------------------------------------------------------------------- +// [SECTION] ERROR CHECKING +//----------------------------------------------------------------------------- + +// Helper function to verify ABI compatibility between caller code and compiled version of Dear ImGui. +// Verify that the type sizes are matching between the calling file's compilation unit and imgui.cpp's compilation unit +// If the user has inconsistent compilation settings, imgui configuration #define, packing pragma, etc. your user code +// may see different structures than what imgui.cpp sees, which is problematic. +// We usually require settings to be in imconfig.h to make sure that they are accessible to all compilation units involved with Dear ImGui. +bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_vert, size_t sz_idx) +{ + bool error = false; + if (strcmp(version, IMGUI_VERSION) != 0) { error = true; IM_ASSERT(strcmp(version, IMGUI_VERSION) == 0 && "Mismatched version string!"); } + if (sz_io != sizeof(ImGuiIO)) { error = true; IM_ASSERT(sz_io == sizeof(ImGuiIO) && "Mismatched struct layout!"); } + if (sz_style != sizeof(ImGuiStyle)) { error = true; IM_ASSERT(sz_style == sizeof(ImGuiStyle) && "Mismatched struct layout!"); } + if (sz_vec2 != sizeof(ImVec2)) { error = true; IM_ASSERT(sz_vec2 == sizeof(ImVec2) && "Mismatched struct layout!"); } + if (sz_vec4 != sizeof(ImVec4)) { error = true; IM_ASSERT(sz_vec4 == sizeof(ImVec4) && "Mismatched struct layout!"); } + if (sz_vert != sizeof(ImDrawVert)) { error = true; IM_ASSERT(sz_vert == sizeof(ImDrawVert) && "Mismatched struct layout!"); } + if (sz_idx != sizeof(ImDrawIdx)) { error = true; IM_ASSERT(sz_idx == sizeof(ImDrawIdx) && "Mismatched struct layout!"); } + return !error; +} + +static void ImGui::ErrorCheckNewFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Check user IM_ASSERT macro + // (IF YOU GET A WARNING OR COMPILE ERROR HERE: it means you assert macro is incorrectly defined! + // If your macro uses multiple statements, it NEEDS to be surrounded by a 'do { ... } while (0)' block. + // This is a common C/C++ idiom to allow multiple statements macros to be used in control flow blocks.) + // #define IM_ASSERT(EXPR) SomeCode(EXPR); SomeMoreCode(); // Wrong! + // #define IM_ASSERT(EXPR) do { SomeCode(EXPR); SomeMoreCode(); } while (0) // Correct! + if (true) IM_ASSERT(1); else IM_ASSERT(0); + + // Check user data + // (We pass an error message in the assert expression to make it visible to programmers who are not using a debugger, as most assert handlers display their argument) + IM_ASSERT(g.Initialized); + IM_ASSERT((g.IO.DeltaTime > 0.0f || g.FrameCount == 0) && "Need a positive DeltaTime!"); + IM_ASSERT((g.FrameCount == 0 || g.FrameCountEnded == g.FrameCount) && "Forgot to call Render() or EndFrame() at the end of the previous frame?"); + IM_ASSERT(g.IO.DisplaySize.x >= 0.0f && g.IO.DisplaySize.y >= 0.0f && "Invalid DisplaySize value!"); + IM_ASSERT(g.IO.Fonts->Fonts.Size > 0 && "Font Atlas not built. Did you call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8() ?"); + IM_ASSERT(g.IO.Fonts->Fonts[0]->IsLoaded() && "Font Atlas not built. Did you call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8() ?"); + IM_ASSERT(g.Style.CurveTessellationTol > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.CircleSegmentMaxError > 0.0f && "Invalid style setting!"); + IM_ASSERT(g.Style.Alpha >= 0.0f && g.Style.Alpha <= 1.0f && "Invalid style setting. Alpha cannot be negative (allows us to avoid a few clamps in color computations)!"); + IM_ASSERT(g.Style.WindowMinSize.x >= 1.0f && g.Style.WindowMinSize.y >= 1.0f && "Invalid style setting."); + IM_ASSERT(g.Style.WindowMenuButtonPosition == ImGuiDir_None || g.Style.WindowMenuButtonPosition == ImGuiDir_Left || g.Style.WindowMenuButtonPosition == ImGuiDir_Right); + for (int n = 0; n < ImGuiKey_COUNT; n++) + IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < IM_ARRAYSIZE(g.IO.KeysDown) && "io.KeyMap[] contains an out of bound value (need to be 0..512, or -1 for unmapped key)"); + + // Perform simple check: required key mapping (we intentionally do NOT check all keys to not pressure user into setting up everything, but Space is required and was only recently added in 1.60 WIP) + if (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) + IM_ASSERT(g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation."); + + // Perform simple check: the beta io.ConfigWindowsResizeFromEdges option requires back-end to honor mouse cursor changes and set the ImGuiBackendFlags_HasMouseCursors flag accordingly. + if (g.IO.ConfigWindowsResizeFromEdges && !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseCursors)) + g.IO.ConfigWindowsResizeFromEdges = false; +} + +static void ImGui::ErrorCheckEndFrameSanityChecks() +{ + ImGuiContext& g = *GImGui; + + // Verify that io.KeyXXX fields haven't been tampered with. Key mods should not be modified between NewFrame() and EndFrame() + // One possible reason leading to this assert is that your back-ends update inputs _AFTER_ NewFrame(). + const ImGuiKeyModFlags expected_key_mod_flags = GetMergedKeyModFlags(); + IM_ASSERT(g.IO.KeyMods == expected_key_mod_flags && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); + IM_UNUSED(expected_key_mod_flags); + + // Report when there is a mismatch of Begin/BeginChild vs End/EndChild calls. Important: Remember that the Begin/BeginChild API requires you + // to always call End/EndChild even if Begin/BeginChild returns false! (this is unfortunately inconsistent with most other Begin* API). + if (g.CurrentWindowStack.Size != 1) + { + if (g.CurrentWindowStack.Size > 1) + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"); + while (g.CurrentWindowStack.Size > 1) + End(); + } + else + { + IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you call End/EndChild too much?"); + } + } +} + +// Save and compare stack sizes on Begin()/End() to detect usage errors +// Begin() calls this with write=true +// End() calls this with write=false +static void ImGui::ErrorCheckBeginEndCompareStacksSize(ImGuiWindow* window, bool write) +{ + ImGuiContext& g = *GImGui; + short* p = &window->DC.StackSizesBackup[0]; + + // Window stacks + // NOT checking: DC.ItemWidth, DC.AllowKeyboardFocus, DC.ButtonRepeat, DC.TextWrapPos (per window) to allow user to conveniently push once and not pop (they are cleared on Begin) + { int n = window->IDStack.Size; if (write) *p = (short)n; else IM_ASSERT(*p == n && "PushID/PopID or TreeNode/TreePop Mismatch!"); p++; } // Too few or too many PopID()/TreePop() + { int n = window->DC.GroupStack.Size; if (write) *p = (short)n; else IM_ASSERT(*p == n && "BeginGroup/EndGroup Mismatch!"); p++; } // Too few or too many EndGroup() + + // Global stacks + // For color, style and font stacks there is an incentive to use Push/Begin/Pop/.../End patterns, so we relax our checks a little to allow them. + { int n = g.BeginPopupStack.Size; if (write) *p = (short)n; else IM_ASSERT(*p == n && "BeginMenu/EndMenu or BeginPopup/EndPopup Mismatch!"); p++; }// Too few or too many EndMenu()/EndPopup() + { int n = g.ColorModifiers.Size; if (write) *p = (short)n; else IM_ASSERT(*p >= n && "PushStyleColor/PopStyleColor Mismatch!"); p++; } // Too few or too many PopStyleColor() + { int n = g.StyleModifiers.Size; if (write) *p = (short)n; else IM_ASSERT(*p >= n && "PushStyleVar/PopStyleVar Mismatch!"); p++; } // Too few or too many PopStyleVar() + { int n = g.FontStack.Size; if (write) *p = (short)n; else IM_ASSERT(*p >= n && "PushFont/PopFont Mismatch!"); p++; } // Too few or too many PopFont() + IM_ASSERT(p == window->DC.StackSizesBackup + IM_ARRAYSIZE(window->DC.StackSizesBackup)); +} + + +//----------------------------------------------------------------------------- +// [SECTION] LAYOUT +//----------------------------------------------------------------------------- +// - ItemSize() +// - ItemAdd() +// - SameLine() +// - GetCursorScreenPos() +// - SetCursorScreenPos() +// - GetCursorPos(), GetCursorPosX(), GetCursorPosY() +// - SetCursorPos(), SetCursorPosX(), SetCursorPosY() +// - GetCursorStartPos() +// - Indent() +// - Unindent() +// - SetNextItemWidth() +// - PushItemWidth() +// - PushMultiItemsWidths() +// - PopItemWidth() +// - CalcItemWidth() +// - CalcItemSize() +// - GetTextLineHeight() +// - GetTextLineHeightWithSpacing() +// - GetFrameHeight() +// - GetFrameHeightWithSpacing() +// - GetContentRegionMax() +// - GetContentRegionMaxAbs() [Internal] +// - GetContentRegionAvail(), +// - GetWindowContentRegionMin(), GetWindowContentRegionMax() +// - GetWindowContentRegionWidth() +// - BeginGroup() +// - EndGroup() +// Also see in imgui_widgets: tab bars, columns. +//----------------------------------------------------------------------------- + +// Advance cursor given item size for layout. +// Register minimum needed size so it can extend the bounding box used for auto-fit calculation. +// See comments in ItemAdd() about how/why the size provided to ItemSize() vs ItemAdd() may often different. +void ImGui::ItemSize(const ImVec2& menu_size, float text_baseline_y) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // We increase the height in this function to accommodate for baseline offset. + // In theory we should be offsetting the starting position (window->DC.CursorPos), that will be the topic of a larger refactor, + // but since ItemSize() is not yet an API that moves the cursor (to handle e.g. wrapping) enlarging the height has the same effect. + const float offset_to_match_baseline_y = (text_baseline_y >= 0) ? ImMax(0.0f, window->DC.CurrLineTextBaseOffset - text_baseline_y) : 0.0f; + const float line_height = ImMax(window->DC.CurrLineSize.y, menu_size.y + offset_to_match_baseline_y); + + // Always align ourselves on pixel boundaries + //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] + window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x + menu_size.x; + window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y; + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); // Next line + window->DC.CursorPos.y = IM_FLOOR(window->DC.CursorPos.y + line_height + g.Style.ItemSpacing.y); // Next line + window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPosPrevLine.x); + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y - g.Style.ItemSpacing.y); + //if (g.IO.KeyAlt) window->DrawList->AddCircle(window->DC.CursorMaxPos, 3.0f, IM_COL32(255,0,0,255), 4); // [DEBUG] + + window->DC.PrevLineSize.y = line_height; + window->DC.CurrLineSize.y = 0.0f; + window->DC.PrevLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, text_baseline_y); + window->DC.CurrLineTextBaseOffset = 0.0f; + + // Horizontal layout mode + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + SameLine(); +} + +void ImGui::ItemSize(const ImRect& bb, float text_baseline_y) +{ + ItemSize(bb.GetSize(), text_baseline_y); +} + +// Declare item bounding box for clipping and interaction. +// Note that the size can be different than the one provided to ItemSize(). Typically, widgets that spread over available surface +// declare their minimum size requirement to ItemSize() and provide a larger region to ItemAdd() which is used drawing/interaction. +bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (id != 0) + { + // Navigation processing runs prior to clipping early-out + // (a) So that NavInitRequest can be honored, for newly opened windows to select a default widget + // (b) So that we can scroll up/down past clipped items. This adds a small O(N) cost to regular navigation requests + // unfortunately, but it is still limited to one window. It may not scale very well for windows with ten of + // thousands of item, but at least NavMoveRequest is only set on user interaction, aka maximum once a frame. + // We could early out with "if (is_clipped && !g.NavInitRequest) return false;" but when we wouldn't be able + // to reach unclipped widgets. This would work if user had explicit scrolling control (e.g. mapped on a stick). + // We intentionally don't check if g.NavWindow != NULL because g.NavAnyRequest should only be set when it is non null. + // If we crash on a NULL g.NavWindow we need to fix the bug elsewhere. + window->DC.NavLayerActiveMaskNext |= (1 << window->DC.NavLayerCurrent); + if (g.NavId == id || g.NavAnyRequest) + if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) + if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) + NavProcessItem(window, nav_bb_arg ? *nav_bb_arg : bb, id); + + // [DEBUG] Item Picker tool, when enabling the "extended" version we perform the check in ItemAdd() +#ifdef IMGUI_DEBUG_TOOL_ITEM_PICKER_EX + if (id == g.DebugItemPickerBreakId) + { + IM_DEBUG_BREAK(); + g.DebugItemPickerBreakId = 0; + } +#endif + } + + // Equivalent to calling SetLastItemData() + window->DC.LastItemId = id; + window->DC.LastItemRect = bb; + window->DC.LastItemStatusFlags = ImGuiItemStatusFlags_None; + g.NextItemData.Flags = ImGuiNextItemDataFlags_None; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (id != 0) + IMGUI_TEST_ENGINE_ITEM_ADD(nav_bb_arg ? *nav_bb_arg : bb, id); +#endif + + // Clipping test + const bool is_clipped = IsClippedEx(bb, id, false); + if (is_clipped) + return false; + //if (g.IO.KeyAlt) window->DrawList->AddRect(bb.Min, bb.Max, IM_COL32(255,255,0,120)); // [DEBUG] + + // We need to calculate this now to take account of the current clipping rectangle (as items like Selectable may change them) + if (IsMouseHoveringRect(bb.Min, bb.Max)) + window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_HoveredRect; + return true; +} + +// Gets back to previous line and continue with horizontal layout +// offset_from_start_x == 0 : follow right after previous item +// offset_from_start_x != 0 : align to specified x position (relative to window/group left) +// spacing_w < 0 : use default spacing if pos_x == 0, no spacing if pos_x != 0 +// spacing_w >= 0 : enforce spacing amount +void ImGui::SameLine(float offset_from_start_x, float spacing_w) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + if (offset_from_start_x != 0.0f) + { + if (spacing_w < 0.0f) spacing_w = 0.0f; + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + offset_from_start_x + spacing_w + window->DC.GroupOffset.x + window->DC.ColumnsOffset.x; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + else + { + if (spacing_w < 0.0f) spacing_w = g.Style.ItemSpacing.x; + window->DC.CursorPos.x = window->DC.CursorPosPrevLine.x + spacing_w; + window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; + } + window->DC.CurrLineSize = window->DC.PrevLineSize; + window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; +} + +ImVec2 ImGui::GetCursorScreenPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos; +} + +void ImGui::SetCursorScreenPos(const ImVec2& pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = pos; + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); +} + +// User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. +// Conversion happens as we pass the value to user, but it makes our naming convention confusing because GetCursorPos() == (DC.CursorPos - window.Pos). May want to rename 'DC.CursorPos'. +ImVec2 ImGui::GetCursorPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos - window->Pos + window->Scroll; +} + +float ImGui::GetCursorPosX() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.x - window->Pos.x + window->Scroll.x; +} + +float ImGui::GetCursorPosY() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorPos.y - window->Pos.y + window->Scroll.y; +} + +void ImGui::SetCursorPos(const ImVec2& local_pos) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos = window->Pos - window->Scroll + local_pos; + window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); +} + +void ImGui::SetCursorPosX(float x) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + x; + window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); +} + +void ImGui::SetCursorPosY(float y) +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.CursorPos.y = window->Pos.y - window->Scroll.y + y; + window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); +} + +ImVec2 ImGui::GetCursorStartPos() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CursorStartPos - window->Pos; +} + +void ImGui::Indent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x += (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +void ImGui::Unindent(float indent_w) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + window->DC.Indent.x -= (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; + window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; +} + +// Affect large frame+labels widgets only. +void ImGui::SetNextItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasWidth; + g.NextItemData.Width = item_width; +} + +void ImGui::PushItemWidth(float item_width) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + window->DC.ItemWidth = (item_width == 0.0f ? window->ItemWidthDefault : item_width); + window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PushMultiItemsWidths(int components, float w_full) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiStyle& style = g.Style; + const float w_item_one = ImMax(1.0f, IM_FLOOR((w_full - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_FLOOR(w_full - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + window->DC.ItemWidthStack.push_back(w_item_last); + for (int i = 0; i < components - 1; i++) + window->DC.ItemWidthStack.push_back(w_item_one); + window->DC.ItemWidth = window->DC.ItemWidthStack.back(); + g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; +} + +void ImGui::PopItemWidth() +{ + ImGuiWindow* window = GetCurrentWindow(); + window->DC.ItemWidthStack.pop_back(); + window->DC.ItemWidth = window->DC.ItemWidthStack.empty() ? window->ItemWidthDefault : window->DC.ItemWidthStack.back(); +} + +// Calculate default item width given value passed to PushItemWidth() or SetNextItemWidth(). +// The SetNextItemWidth() data is generally cleared/consumed by ItemAdd() or NextItemData.ClearFlags() +float ImGui::CalcItemWidth() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float w; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) + w = g.NextItemData.Width; + else + w = window->DC.ItemWidth; + if (w < 0.0f) + { + float region_max_x = GetContentRegionMaxAbs().x; + w = ImMax(1.0f, region_max_x - window->DC.CursorPos.x + w); + } + w = IM_FLOOR(w); + return w; +} + +// [Internal] Calculate full item size given user provided 'size' parameter and default width/height. Default width is often == CalcItemWidth(). +// Those two functions CalcItemWidth vs CalcItemSize are awkwardly named because they are not fully symmetrical. +// Note that only CalcItemWidth() is publicly exposed. +// The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable) +ImVec2 ImGui::CalcItemSize(ImVec2 menu_size, float default_w, float default_h) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + + ImVec2 region_max; + if (menu_size.x < 0.0f || menu_size.y < 0.0f) + region_max = GetContentRegionMaxAbs(); + + if (menu_size.x == 0.0f) + menu_size.x = default_w; + else if (menu_size.x < 0.0f) + menu_size.x = ImMax(4.0f, region_max.x - window->DC.CursorPos.x + menu_size.x); + + if (menu_size.y == 0.0f) + menu_size.y = default_h; + else if (menu_size.y < 0.0f) + menu_size.y = ImMax(4.0f, region_max.y - window->DC.CursorPos.y + menu_size.y); + + return menu_size; +} + +float ImGui::GetTextLineHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize; +} + +float ImGui::GetTextLineHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.ItemSpacing.y; +} + +float ImGui::GetFrameHeight() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f; +} + +float ImGui::GetFrameHeightWithSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + g.Style.FramePadding.y * 2.0f + g.Style.ItemSpacing.y; +} + +// FIXME: All the Contents Region function are messy or misleading. WE WILL AIM TO OBSOLETE ALL OF THEM WITH A NEW "WORK RECT" API. Thanks for your patience! + +// FIXME: This is in window space (not screen space!). +ImVec2 ImGui::GetContentRegionMax() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = window->ContentRegionRect.Max - window->Pos; + if (window->DC.CurrentColumns) + mx.x = window->WorkRect.Max.x - window->Pos.x; + return mx; +} + +// [Internal] Absolute coordinate. Saner. This is not exposed until we finishing refactoring work rect features. +ImVec2 ImGui::GetContentRegionMaxAbs() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImVec2 mx = window->ContentRegionRect.Max; + if (window->DC.CurrentColumns) + mx.x = window->WorkRect.Max.x; + return mx; +} + +ImVec2 ImGui::GetContentRegionAvail() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return GetContentRegionMaxAbs() - window->DC.CursorPos; +} + +// In window space (not screen space!) +ImVec2 ImGui::GetWindowContentRegionMin() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Min - window->Pos; +} + +ImVec2 ImGui::GetWindowContentRegionMax() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.Max - window->Pos; +} + +float ImGui::GetWindowContentRegionWidth() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ContentRegionRect.GetWidth(); +} + +// Lock horizontal starting position + capture group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) +// Groups are currently a mishmash of functionalities which should perhaps be clarified and separated. +void ImGui::BeginGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + window->DC.GroupStack.resize(window->DC.GroupStack.Size + 1); + ImGuiGroupData& group_data = window->DC.GroupStack.back(); + group_data.BackupCursorPos = window->DC.CursorPos; + group_data.BackupCursorMaxPos = window->DC.CursorMaxPos; + group_data.BackupIndent = window->DC.Indent; + group_data.BackupGroupOffset = window->DC.GroupOffset; + group_data.BackupCurrLineSize = window->DC.CurrLineSize; + group_data.BackupCurrLineTextBaseOffset = window->DC.CurrLineTextBaseOffset; + group_data.BackupActiveIdIsAlive = g.ActiveIdIsAlive; + group_data.BackupActiveIdPreviousFrameIsAlive = g.ActiveIdPreviousFrameIsAlive; + group_data.EmitItem = true; + + window->DC.GroupOffset.x = window->DC.CursorPos.x - window->Pos.x - window->DC.ColumnsOffset.x; + window->DC.Indent = window->DC.GroupOffset; + window->DC.CursorMaxPos = window->DC.CursorPos; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce Log carriage return +} + +void ImGui::EndGroup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->DC.GroupStack.Size > 0); // Mismatched BeginGroup()/EndGroup() calls + + ImGuiGroupData& group_data = window->DC.GroupStack.back(); + + ImRect group_bb(group_data.BackupCursorPos, ImMax(window->DC.CursorMaxPos, group_data.BackupCursorPos)); + + window->DC.CursorPos = group_data.BackupCursorPos; + window->DC.CursorMaxPos = ImMax(group_data.BackupCursorMaxPos, window->DC.CursorMaxPos); + window->DC.Indent = group_data.BackupIndent; + window->DC.GroupOffset = group_data.BackupGroupOffset; + window->DC.CurrLineSize = group_data.BackupCurrLineSize; + window->DC.CurrLineTextBaseOffset = group_data.BackupCurrLineTextBaseOffset; + if (g.LogEnabled) + g.LogLinePosY = -FLT_MAX; // To enforce Log carriage return + + if (!group_data.EmitItem) + { + window->DC.GroupStack.pop_back(); + return; + } + + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.PrevLineTextBaseOffset, group_data.BackupCurrLineTextBaseOffset); // FIXME: Incorrect, we should grab the base offset from the *first line* of the group but it is hard to obtain now. + ItemSize(group_bb.GetSize()); + ItemAdd(group_bb, 0); + + // If the current ActiveId was declared within the boundary of our group, we copy it to LastItemId so IsItemActive(), IsItemDeactivated() etc. will be functional on the entire group. + // It would be be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. + // Also if you grep for LastItemId you'll notice it is only used in that context. + // (The two tests not the same because ActiveIdIsAlive is an ID itself, in order to be able to handle ActiveId being overwritten during the frame.) + const bool group_contains_curr_active_id = (group_data.BackupActiveIdIsAlive != g.ActiveId) && (g.ActiveIdIsAlive == g.ActiveId) && g.ActiveId; + const bool group_contains_prev_active_id = (group_data.BackupActiveIdPreviousFrameIsAlive == false) && (g.ActiveIdPreviousFrameIsAlive == true); + if (group_contains_curr_active_id) + window->DC.LastItemId = g.ActiveId; + else if (group_contains_prev_active_id) + window->DC.LastItemId = g.ActiveIdPreviousFrame; + window->DC.LastItemRect = group_bb; + + // Forward Edited flag + if (group_contains_curr_active_id && g.ActiveIdHasBeenEditedThisFrame) + window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_Edited; + + // Forward Deactivated flag + window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_HasDeactivated; + if (group_contains_prev_active_id && g.ActiveId != g.ActiveIdPreviousFrame) + window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_Deactivated; + + window->DC.GroupStack.pop_back(); + //window->DrawList->AddRect(group_bb.Min, group_bb.Max, IM_COL32(255,0,255,255)); // [Debug] +} + + +//----------------------------------------------------------------------------- +// [SECTION] SCROLLING +//----------------------------------------------------------------------------- + +// Helper to snap on edges when aiming at an item very close to the edge, +// So the difference between WindowPadding and ItemSpacing will be in the visible area after scrolling. +// When we refactor the scrolling API this may be configurable with a flag? +// Note that the effect for this won't be visible on X axis with default Style settings as WindowPadding.x == ItemSpacing.x by default. +static float CalcScrollEdgeSnap(float target, float snap_min, float snap_max, float snap_threshold, float center_ratio) +{ + if (target <= snap_min + snap_threshold) + return ImLerp(snap_min, target, center_ratio); + if (target >= snap_max - snap_threshold) + return ImLerp(target, snap_max, center_ratio); + return target; +} + +static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window) +{ + ImVec2 scroll = window->Scroll; + if (window->ScrollTarget.x < FLT_MAX) + { + float center_x_ratio = window->ScrollTargetCenterRatio.x; + float scroll_target_x = window->ScrollTarget.x; + float snap_x_min = 0.0f; + float snap_x_max = window->ScrollMax.x + window->Size.x; + if (window->ScrollTargetEdgeSnapDist.x > 0.0f) + scroll_target_x = CalcScrollEdgeSnap(scroll_target_x, snap_x_min, snap_x_max, window->ScrollTargetEdgeSnapDist.x, center_x_ratio); + scroll.x = scroll_target_x - center_x_ratio * (window->SizeFull.x - window->ScrollbarSizes.x); + } + if (window->ScrollTarget.y < FLT_MAX) + { + float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); + float center_y_ratio = window->ScrollTargetCenterRatio.y; + float scroll_target_y = window->ScrollTarget.y; + float snap_y_min = 0.0f; + float snap_y_max = window->ScrollMax.y + window->Size.y - decoration_up_height; + if (window->ScrollTargetEdgeSnapDist.y > 0.0f) + scroll_target_y = CalcScrollEdgeSnap(scroll_target_y, snap_y_min, snap_y_max, window->ScrollTargetEdgeSnapDist.y, center_y_ratio); + scroll.y = scroll_target_y - center_y_ratio * (window->SizeFull.y - window->ScrollbarSizes.y - decoration_up_height); + } + scroll.x = IM_FLOOR(ImMax(scroll.x, 0.0f)); + scroll.y = IM_FLOOR(ImMax(scroll.y, 0.0f)); + if (!window->Collapsed && !window->SkipItems) + { + scroll.x = ImMin(scroll.x, window->ScrollMax.x); + scroll.y = ImMin(scroll.y, window->ScrollMax.y); + } + return scroll; +} + +// Scroll to keep newly navigated item fully into view +ImVec2 ImGui::ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& item_rect) +{ + ImGuiContext& g = *GImGui; + ImRect window_rect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1)); + //GetForegroundDrawList(window)->AddRect(window_rect.Min, window_rect.Max, IM_COL32_WHITE); // [DEBUG] + + ImVec2 delta_scroll; + if (!window_rect.Contains(item_rect)) + { + if (window->ScrollbarX && item_rect.Min.x < window_rect.Min.x) + SetScrollFromPosX(window, item_rect.Min.x - window->Pos.x - g.Style.ItemSpacing.x, 0.0f); + else if (window->ScrollbarX && item_rect.Max.x >= window_rect.Max.x) + SetScrollFromPosX(window, item_rect.Max.x - window->Pos.x + g.Style.ItemSpacing.x, 1.0f); + if (item_rect.Min.y < window_rect.Min.y) + SetScrollFromPosY(window, item_rect.Min.y - window->Pos.y - g.Style.ItemSpacing.y, 0.0f); + else if (item_rect.Max.y >= window_rect.Max.y) + SetScrollFromPosY(window, item_rect.Max.y - window->Pos.y + g.Style.ItemSpacing.y, 1.0f); + + ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); + delta_scroll = next_scroll - window->Scroll; + } + + // Also scroll parent window to keep us into view if necessary + if (window->Flags & ImGuiWindowFlags_ChildWindow) + delta_scroll += ScrollToBringRectIntoView(window->ParentWindow, ImRect(item_rect.Min - delta_scroll, item_rect.Max - delta_scroll)); + + return delta_scroll; +} + +float ImGui::GetScrollX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.x; +} + +float ImGui::GetScrollY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->Scroll.y; +} + +float ImGui::GetScrollMaxX() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.x; +} + +float ImGui::GetScrollMaxY() +{ + ImGuiWindow* window = GImGui->CurrentWindow; + return window->ScrollMax.y; +} + +void ImGui::SetScrollX(ImGuiWindow* window, float scroll_x) +{ + window->ScrollTarget.x = scroll_x; + window->ScrollTargetCenterRatio.x = 0.0f; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollY(ImGuiWindow* window, float scroll_y) +{ + window->ScrollTarget.y = scroll_y; + window->ScrollTargetCenterRatio.y = 0.0f; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollX(float scroll_x) +{ + ImGuiContext& g = *GImGui; + SetScrollX(g.CurrentWindow, scroll_x); +} + +void ImGui::SetScrollY(float scroll_y) +{ + ImGuiContext& g = *GImGui; + SetScrollY(g.CurrentWindow, scroll_y); +} + +// Note that a local position will vary depending on initial scroll value, +// This is a little bit confusing so bear with us: +// - local_pos = (absolution_pos - window->Pos) +// - So local_x/local_y are 0.0f for a position at the upper-left corner of a window, +// and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area. +// - They mostly exists because of legacy API. +// Following the rules above, when trying to work with scrolling code, consider that: +// - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect! +// - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense +// We store a target position so centering and clamping can occur on the next frame when we are guaranteed to have a known window size +void ImGui::SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio) +{ + IM_ASSERT(center_x_ratio >= 0.0f && center_x_ratio <= 1.0f); + window->ScrollTarget.x = IM_FLOOR(local_x + window->Scroll.x); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.x = center_x_ratio; + window->ScrollTargetEdgeSnapDist.x = 0.0f; +} + +void ImGui::SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio) +{ + IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); + local_y -= window->TitleBarHeight() + window->MenuBarHeight(); // FIXME: Would be nice to have a more standardized access to our scrollable/client rect + window->ScrollTarget.y = IM_FLOOR(local_y + window->Scroll.y); // Convert local position to scroll offset + window->ScrollTargetCenterRatio.y = center_y_ratio; + window->ScrollTargetEdgeSnapDist.y = 0.0f; +} + +void ImGui::SetScrollFromPosX(float local_x, float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosX(g.CurrentWindow, local_x, center_x_ratio); +} + +void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + SetScrollFromPosY(g.CurrentWindow, local_y, center_y_ratio); +} + +// center_x_ratio: 0.0f left of last item, 0.5f horizontal center of last item, 1.0f right of last item. +void ImGui::SetScrollHereX(float center_x_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_x = g.Style.ItemSpacing.x; + float target_pos_x = ImLerp(window->DC.LastItemRect.Min.x - spacing_x, window->DC.LastItemRect.Max.x + spacing_x, center_x_ratio); + SetScrollFromPosX(window, target_pos_x - window->Pos.x, center_x_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.x = ImMax(0.0f, window->WindowPadding.x - spacing_x); +} + +// center_y_ratio: 0.0f top of last item, 0.5f vertical center of last item, 1.0f bottom of last item. +void ImGui::SetScrollHereY(float center_y_ratio) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + float spacing_y = g.Style.ItemSpacing.y; + float target_pos_y = ImLerp(window->DC.CursorPosPrevLine.y - spacing_y, window->DC.CursorPosPrevLine.y + window->DC.PrevLineSize.y + spacing_y, center_y_ratio); + SetScrollFromPosY(window, target_pos_y - window->Pos.y, center_y_ratio); // Convert from absolute to local pos + + // Tweak: snap on edges when aiming at an item very close to the edge + window->ScrollTargetEdgeSnapDist.y = ImMax(0.0f, window->WindowPadding.y - spacing_y); +} + +//----------------------------------------------------------------------------- +// [SECTION] TOOLTIPS +//----------------------------------------------------------------------------- + +void ImGui::BeginTooltip() +{ + BeginTooltipEx(ImGuiWindowFlags_None, ImGuiTooltipFlags_None); +} + +void ImGui::BeginTooltipEx(ImGuiWindowFlags extra_flags, ImGuiTooltipFlags tooltip_flags) +{ + ImGuiContext& g = *GImGui; + + if (g.DragDropWithinSource || g.DragDropWithinTarget) + { + // The default tooltip position is a little offset to give space to see the context menu (it's also clamped within the current viewport/monitor) + // In the context of a dragging tooltip we try to reduce that offset and we enforce following the cursor. + // Whatever we do we want to call SetNextWindowPos() to enforce a tooltip position and disable clipping the tooltip without our display area, like regular tooltip do. + //ImVec2 tooltip_pos = g.IO.MousePos - g.ActiveIdClickOffset - g.Style.WindowPadding; + ImVec2 tooltip_pos = g.IO.MousePos + ImVec2(16 * g.Style.MouseCursorScale, 8 * g.Style.MouseCursorScale); + SetNextWindowPos(tooltip_pos); + SetNextWindowBgAlpha(g.Style.Colors[ImGuiCol_PopupBg].w * 0.60f); + //PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * 0.60f); // This would be nice but e.g ColorButton with checkboard has issue with transparent colors :( + tooltip_flags |= ImGuiTooltipFlags_OverridePreviousTooltip; + } + + char window_name[16]; + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", g.TooltipOverrideCount); + if (tooltip_flags & ImGuiTooltipFlags_OverridePreviousTooltip) + if (ImGuiWindow* window = FindWindowByName(window_name)) + if (window->Active) + { + // Hide previous tooltip from being displayed. We can't easily "reset" the content of a window so we create a new one. + window->Hidden = true; + window->HiddenFramesCanSkipItems = 1; + ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", ++g.TooltipOverrideCount); + } + ImGuiWindowFlags flags = ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize; + Begin(window_name, NULL, flags | extra_flags); +} + +void ImGui::EndTooltip() +{ + IM_ASSERT(GetCurrentWindowRead()->Flags & ImGuiWindowFlags_Tooltip); // Mismatched BeginTooltip()/EndTooltip() calls + End(); +} + +void ImGui::SetTooltipV(const char* fmt, va_list args) +{ + BeginTooltipEx(0, ImGuiTooltipFlags_OverridePreviousTooltip); + TextV(fmt, args); + EndTooltip(); +} + +void ImGui::SetTooltip(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + SetTooltipV(fmt, args); + va_end(args); +} + +//----------------------------------------------------------------------------- +// [SECTION] POPUPS +//----------------------------------------------------------------------------- + +// Supported flags: ImGuiPopupFlags_AnyPopupId, ImGuiPopupFlags_AnyPopupLevel +bool ImGui::IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + if (popup_flags & ImGuiPopupFlags_AnyPopupId) + { + // Return true if any popup is open at the current BeginPopup() level of the popup stack + // This may be used to e.g. test for another popups already opened to handle popups priorities at the same level. + IM_ASSERT(id == 0); + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + return g.OpenPopupStack.Size > 0; + else + return g.OpenPopupStack.Size > g.BeginPopupStack.Size; + } + else + { + if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) + { + // Return true if the popup is open anywhere in the popup stack + for (int n = 0; n < g.OpenPopupStack.Size; n++) + if (g.OpenPopupStack[n].PopupId == id) + return true; + return false; + } + else + { + // Return true if the popup is open at the current BeginPopup() level of the popup stack (this is the most-common query) + return g.OpenPopupStack.Size > g.BeginPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].PopupId == id; + } + } +} + +bool ImGui::IsPopupOpen(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiID id = (popup_flags & ImGuiPopupFlags_AnyPopupId) ? 0 : g.CurrentWindow->GetID(str_id); + if ((popup_flags & ImGuiPopupFlags_AnyPopupLevel) && id != 0) + IM_ASSERT(0 && "Cannot use IsPopupOpen() with a string id and ImGuiPopupFlags_AnyPopupLevel."); // But non-string version is legal and used internally + return IsPopupOpen(id, popup_flags); +} + +ImGuiWindow* ImGui::GetTopMostPopupModal() +{ + ImGuiContext& g = *GImGui; + for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) + if (ImGuiWindow* json_popup = g.OpenPopupStack.Data[n].Window) + if (json_popup->Flags & ImGuiWindowFlags_Modal) + return json_popup; + return NULL; +} + +void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + OpenPopupEx(g.CurrentWindow->GetID(str_id), popup_flags); +} + +// Mark popup as open (toggle toward open state). +// Popups are closed when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block. +// Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). +// One open popup per level of the popup hierarchy (NB: when assigning we reset the Window member of ImGuiPopupRef to NULL) +void ImGui::OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* parent_window = g.CurrentWindow; + const int current_stack_size = g.BeginPopupStack.Size; + + if (popup_flags & ImGuiPopupFlags_NoOpenOverExistingPopup) + if (IsPopupOpen(0u, ImGuiPopupFlags_AnyPopupId)) + return; + + ImGuiPopupData popup_ref; // Tagged as new ref as Window will be set back to NULL if we write this into OpenPopupStack. + popup_ref.PopupId = id; + popup_ref.Window = NULL; + popup_ref.SourceWindow = g.NavWindow; + popup_ref.OpenFrameCount = g.FrameCount; + popup_ref.OpenParentId = parent_window->IDStack.back(); + popup_ref.OpenPopupPos = NavCalcPreferredRefPos(); + popup_ref.OpenMousePos = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : popup_ref.OpenPopupPos; + + IMGUI_DEBUG_LOG_POPUP("OpenPopupEx(0x%08X)\n", id); + if (g.OpenPopupStack.Size < current_stack_size + 1) + { + g.OpenPopupStack.push_back(popup_ref); + } + else + { + // Gently handle the user mistakenly calling OpenPopup() every frame. It is a programming mistake! However, if we were to run the regular code path, the ui + // would become completely unusable because the popup will always be in hidden-while-calculating-size state _while_ claiming focus. Which would be a very confusing + // situation for the programmer. Instead, we silently allow the popup to proceed, it will keep reappearing and the programming error will be more obvious to understand. + if (g.OpenPopupStack[current_stack_size].PopupId == id && g.OpenPopupStack[current_stack_size].OpenFrameCount == g.FrameCount - 1) + { + g.OpenPopupStack[current_stack_size].OpenFrameCount = popup_ref.OpenFrameCount; + } + else + { + // Close child popups if any, then flag popup for open/reopen + ClosePopupToLevel(current_stack_size, false); + g.OpenPopupStack.push_back(popup_ref); + } + + // When reopening a popup we first refocus its parent, otherwise if its parent is itself a popup it would get closed by ClosePopupsOverWindow(). + // This is equivalent to what ClosePopupToLevel() does. + //if (g.OpenPopupStack[current_stack_size].PopupId == id) + // FocusWindow(parent_window); + } +} + +// When popups are stacked, clicking on a lower level popups puts focus back to it and close popups above it. +// This function closes any popups that are over 'ref_window'. +void ImGui::ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size == 0) + return; + + // Don't close our own child popup windows. + int popup_count_to_keep = 0; + if (ref_window) + { + // Find the highest popup which is a descendant of the reference window (generally reference window = NavWindow) + for (; popup_count_to_keep < g.OpenPopupStack.Size; popup_count_to_keep++) + { + ImGuiPopupData& json_popup = g.OpenPopupStack[popup_count_to_keep]; + if (!json_popup.Window) + continue; + IM_ASSERT((json_popup.Window->Flags & ImGuiWindowFlags_Popup) != 0); + if (json_popup.Window->Flags & ImGuiWindowFlags_ChildWindow) + continue; + + // Trim the stack unless the popup is a direct parent of the reference window (the reference window is often the NavWindow) + // - With this stack of window, clicking/focusing Popup1 will close Popup2 and Popup3: + // Window -> Popup1 -> Popup2 -> Popup3 + // - Each popups may contain child windows, which is why we compare ->RootWindow! + // Window -> Popup1 -> Popup1_Child -> Popup2 -> Popup2_Child + bool ref_window_is_descendent_of_popup = false; + for (int n = popup_count_to_keep; n < g.OpenPopupStack.Size; n++) + if (ImGuiWindow* popup_window = g.OpenPopupStack[n].Window) + if (popup_window->RootWindow == ref_window->RootWindow) + { + ref_window_is_descendent_of_popup = true; + break; + } + if (!ref_window_is_descendent_of_popup) + break; + } + } + if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below + { + IMGUI_DEBUG_LOG_POPUP("ClosePopupsOverWindow(\"%s\") -> ClosePopupToLevel(%d)\n", ref_window->Name, popup_count_to_keep); + ClosePopupToLevel(popup_count_to_keep, restore_focus_to_window_under_popup); + } +} + +void ImGui::ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup) +{ + ImGuiContext& g = *GImGui; + IMGUI_DEBUG_LOG_POPUP("ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); + IM_ASSERT(remaining >= 0 && remaining < g.OpenPopupStack.Size); + + // Trim open popup stack + ImGuiWindow* focus_window = g.OpenPopupStack[remaining].SourceWindow; + ImGuiWindow* popup_window = g.OpenPopupStack[remaining].Window; + g.OpenPopupStack.resize(remaining); + + if (restore_focus_to_window_under_popup) + { + if (focus_window && !focus_window->WasActive && popup_window) + { + // Fallback + FocusTopMostWindowUnderOne(popup_window, NULL); + } + else + { + if (g.NavLayer == ImGuiNavLayer_Main && focus_window) + focus_window = NavRestoreLastChildNavWindow(focus_window); + FocusWindow(focus_window); + } + } +} + +// Close the popup we have begin-ed into. +void ImGui::CloseCurrentPopup() +{ + ImGuiContext& g = *GImGui; + int popup_idx = g.BeginPopupStack.Size - 1; + if (popup_idx < 0 || popup_idx >= g.OpenPopupStack.Size || g.BeginPopupStack[popup_idx].PopupId != g.OpenPopupStack[popup_idx].PopupId) + return; + + // Closing a menu closes its top-most parent popup (unless a modal) + while (popup_idx > 0) + { + ImGuiWindow* popup_window = g.OpenPopupStack[popup_idx].Window; + ImGuiWindow* parent_popup_window = g.OpenPopupStack[popup_idx - 1].Window; + bool close_parent = false; + if (popup_window && (popup_window->Flags & ImGuiWindowFlags_ChildMenu)) + if (parent_popup_window == NULL || !(parent_popup_window->Flags & ImGuiWindowFlags_Modal)) + close_parent = true; + if (!close_parent) + break; + popup_idx--; + } + IMGUI_DEBUG_LOG_POPUP("CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); + ClosePopupToLevel(popup_idx, true); + + // A common pattern is to close a popup when selecting a menu item/selectable that will open another window. + // To improve this usage pattern, we avoid nav highlight for a single frame in the parent window. + // Similarly, we could avoid mouse hover highlight in this window but it is less visually problematic. + if (ImGuiWindow* window = g.NavWindow) + window->DC.NavHideHighlightOneFrame = true; +} + +// Attention! BeginPopup() adds default flags which BeginPopupEx()! +bool ImGui::BeginPopupEx(ImGuiID id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + char name[20]; + if (flags & ImGuiWindowFlags_ChildMenu) + ImFormatString(name, IM_ARRAYSIZE(name), "##Menu_%02d", g.BeginPopupStack.Size); // Recycle windows based on depth + else + ImFormatString(name, IM_ARRAYSIZE(name), "##Popup_%08x", id); // Not recycling, so we can close/open during the same frame + + flags |= ImGuiWindowFlags_Popup; + bool is_open = Begin(name, NULL, flags); + if (!is_open) // NB: Begin can return false when the popup is completely clipped (e.g. zero size display) + EndPopup(); + + return is_open; +} + +bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + if (g.OpenPopupStack.Size <= g.BeginPopupStack.Size) // Early out for performance + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + flags |= ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings; + return BeginPopupEx(g.CurrentWindow->GetID(str_id), flags); +} + +// If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup. +// Note that popup visibility status is owned by Dear ImGui (and manipulated with e.g. OpenPopup) so the actual value of *p_open is meaningless here. +bool ImGui::BeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + const ImGuiID id = window->GetID(name); + if (!IsPopupOpen(id, ImGuiPopupFlags_None)) + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + return false; + } + + // Center modal windows by default for increased visibility + // (this won't really last as settings will kick in, and is mostly for backward compatibility. user may do the same themselves) + // FIXME: Should test for (PosCond & window->SetWindowPosAllowFlags) with the upcoming window. + if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) == 0) + SetNextWindowPos(g.IO.DisplaySize * 0.5f, ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f)); + + flags |= ImGuiWindowFlags_Popup | ImGuiWindowFlags_Modal | ImGuiWindowFlags_NoCollapse; + const bool is_open = Begin(name, p_open, flags); + if (!is_open || (p_open && !*p_open)) // NB: is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + { + EndPopup(); + if (is_open) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + return false; + } + return is_open; +} + +void ImGui::EndPopup() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginPopup()/EndPopup() calls + IM_ASSERT(g.BeginPopupStack.Size > 0); + + // Make all menus and popups wrap around for now, may need to expose that policy. + if (g.NavWindow == window) + NavMoveRequestTryWrapping(window, ImGuiNavMoveFlags_LoopY); + + // Child-popups don't need to be laid out + IM_ASSERT(g.WithinEndChild == false); + if (window->Flags & ImGuiWindowFlags_ChildWindow) + g.WithinEndChild = true; + End(); + g.WithinEndChild = false; +} + +// Helper to open a popup if mouse button is released over the item +// - This is essentially the same as BeginPopupContextItem() but without the trailing BeginPopup() +void ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + { + ImGuiID id = str_id ? window->GetID(str_id) : window->DC.LastItemId; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + OpenPopupEx(id, popup_flags); + } +} + +// This is a helper to handle the simplest case of associating one named popup to one given widget. +// - You can pass a NULL str_id to use the identifier of the last item. +// - You may want to handle this on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters). +// - This is essentially the same as calling OpenPopupOnItemClick() + BeginPopup() but written to avoid +// computing the ID twice because BeginPopupContextXXX functions may be called very frequently. +bool ImGui::BeginPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + if (window->SkipItems) + return false; + ImGuiID id = str_id ? window->GetID(str_id) : window->DC.LastItemId; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! + IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextWindow(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + if (!str_id) + str_id = "window_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) + if (!(popup_flags & ImGuiPopupFlags_NoOpenOverItems) || !IsAnyItemHovered()) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +bool ImGui::BeginPopupContextVoid(const char* str_id, ImGuiPopupFlags popup_flags) +{ + ImGuiWindow* window = GImGui->CurrentWindow; + if (!str_id) + str_id = "void_context"; + ImGuiID id = window->GetID(str_id); + int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); + if (IsMouseReleased(mouse_button) && !IsWindowHovered(ImGuiHoveredFlags_AnyWindow)) + if (GetTopMostPopupModal() == NULL) + OpenPopupEx(id, popup_flags); + return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); +} + +// r_avoid = the rectangle to avoid (e.g. for tooltip it is a rectangle around the mouse cursor which we want to avoid. for popups it's a small point around the cursor.) +// r_outer = the visible area rectangle, minus safe area padding. If our popup size won't fit because of safe area padding we ignore it. +ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& menu_size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy) +{ + ImVec2 base_pos_clamped = ImClamp(ref_pos, r_outer.Min, r_outer.Max - menu_size); + //GetForegroundDrawList()->AddRect(r_avoid.Min, r_avoid.Max, IM_COL32(255,0,0,255)); + //GetForegroundDrawList()->AddRect(r_outer.Min, r_outer.Max, IM_COL32(0,255,0,255)); + + // Combo Box policy (we want a connecting edge) + if (policy == ImGuiPopupPositionPolicy_ComboBox) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Down, ImGuiDir_Right, ImGuiDir_Left, ImGuiDir_Up }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + ImVec2 pos; + if (dir == ImGuiDir_Down) pos = ImVec2(r_avoid.Min.x, r_avoid.Max.y); // Below, Toward Right (default) + if (dir == ImGuiDir_Right) pos = ImVec2(r_avoid.Min.x, r_avoid.Min.y - menu_size.y); // Above, Toward Right + if (dir == ImGuiDir_Left) pos = ImVec2(r_avoid.Max.x - menu_size.x, r_avoid.Max.y); // Below, Toward Left + if (dir == ImGuiDir_Up) pos = ImVec2(r_avoid.Max.x - menu_size.x, r_avoid.Min.y - menu_size.y); // Above, Toward Left + if (!r_outer.Contains(ImRect(pos, pos + menu_size))) + continue; + *last_dir = dir; + return pos; + } + } + + // Tooltip and Default popup policy + // (Always first try the direction we used on the last frame, if any) + if (policy == ImGuiPopupPositionPolicy_Tooltip || policy == ImGuiPopupPositionPolicy_Default) + { + const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Right, ImGuiDir_Down, ImGuiDir_Up, ImGuiDir_Left }; + for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) + { + const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; + if (n != -1 && dir == *last_dir) // Already tried this direction? + continue; + + const float avail_w = (dir == ImGuiDir_Left ? r_avoid.Min.x : r_outer.Max.x) - (dir == ImGuiDir_Right ? r_avoid.Max.x : r_outer.Min.x); + const float avail_h = (dir == ImGuiDir_Up ? r_avoid.Min.y : r_outer.Max.y) - (dir == ImGuiDir_Down ? r_avoid.Max.y : r_outer.Min.y); + + // If there not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) + if (avail_w < menu_size.x && (dir == ImGuiDir_Left || dir == ImGuiDir_Right)) + continue; + if (avail_h < menu_size.y && (dir == ImGuiDir_Up || dir == ImGuiDir_Down)) + continue; + + ImVec2 pos; + pos.x = (dir == ImGuiDir_Left) ? r_avoid.Min.x - menu_size.x : (dir == ImGuiDir_Right) ? r_avoid.Max.x : base_pos_clamped.x; + pos.y = (dir == ImGuiDir_Up) ? r_avoid.Min.y - menu_size.y : (dir == ImGuiDir_Down) ? r_avoid.Max.y : base_pos_clamped.y; + + // Clamp top-left corner of popup + pos.x = ImMax(pos.x, r_outer.Min.x); + pos.y = ImMax(pos.y, r_outer.Min.y); + + *last_dir = dir; + return pos; + } + } + + // Fallback when not enough room: + *last_dir = ImGuiDir_None; + + // For tooltip we prefer avoiding the cursor at all cost even if it means that part of the tooltip won't be visible. + if (policy == ImGuiPopupPositionPolicy_Tooltip) + return ref_pos + ImVec2(2, 2); + + // Otherwise try to keep within display + ImVec2 pos = ref_pos; + pos.x = ImMax(ImMin(pos.x + menu_size.x, r_outer.Max.x) - menu_size.x, r_outer.Min.x); + pos.y = ImMax(ImMin(pos.y + menu_size.y, r_outer.Max.y) - menu_size.y, r_outer.Min.y); + return pos; +} + +ImRect ImGui::GetWindowAllowedExtentRect(ImGuiWindow* window) +{ + IM_UNUSED(window); + ImVec2 padding = GImGui->Style.DisplaySafeAreaPadding; + ImRect r_screen = GetViewportRect(); + r_screen.Expand(ImVec2((r_screen.GetWidth() > padding.x * 2) ? -padding.x : 0.0f, (r_screen.GetHeight() > padding.y * 2) ? -padding.y : 0.0f)); + return r_screen; +} + +ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + + ImRect r_outer = GetWindowAllowedExtentRect(window); + if (window->Flags & ImGuiWindowFlags_ChildMenu) + { + // Child menus typically request _any_ position within the parent menu item, and then we move the new menu outside the parent bounds. + // This is how we end up with child menus appearing (most-commonly) on the right of the parent menu. + IM_ASSERT(g.CurrentWindow == window); + ImGuiWindow* parent_window = g.CurrentWindowStack[g.CurrentWindowStack.Size - 2]; + float horizontal_overlap = g.Style.ItemInnerSpacing.x; // We want some overlap to convey the relative depth of each menu (currently the amount of overlap is hard-coded to style.ItemSpacing.x). + ImRect r_avoid; + if (parent_window->DC.MenuBarAppending) + r_avoid = ImRect(-FLT_MAX, parent_window->ClipRect.Min.y, FLT_MAX, parent_window->ClipRect.Max.y); // Avoid parent menu-bar. If we wanted multi-line menu-bar, we may instead want to have the calling window setup e.g. a NextWindowData.PosConstraintAvoidRect field + else + r_avoid = ImRect(parent_window->Pos.x + horizontal_overlap, -FLT_MAX, parent_window->Pos.x + parent_window->Size.x - horizontal_overlap - parent_window->ScrollbarSizes.x, FLT_MAX); + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); + } + if (window->Flags & ImGuiWindowFlags_Popup) + { + ImRect r_avoid = ImRect(window->Pos.x - 1, window->Pos.y - 1, window->Pos.x + 1, window->Pos.y + 1); + return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); + } + if (window->Flags & ImGuiWindowFlags_Tooltip) + { + // Position tooltip (always follows mouse) + float sc = g.Style.MouseCursorScale; + ImVec2 ref_pos = NavCalcPreferredRefPos(); + ImRect r_avoid; + if (!g.NavDisableHighlight && g.NavDisableMouseHover && !(g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos)) + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 16, ref_pos.y + 8); + else + r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 24 * sc, ref_pos.y + 24 * sc); // FIXME: Hard-coded based on mouse cursor shape expectation. Exact dimension not very important. + return FindBestWindowPosForPopupEx(ref_pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Tooltip); + } + IM_ASSERT(0); + return window->Pos; +} + +//----------------------------------------------------------------------------- +// [SECTION] KEYBOARD/GAMEPAD NAVIGATION +//----------------------------------------------------------------------------- + +// FIXME-NAV: The existence of SetNavID vs SetNavIDWithRectRel vs SetFocusID is incredibly messy and confusing, +// and needs some explanation or serious refactoring. +void ImGui::SetNavID(ImGuiID id, int nav_layer, ImGuiID focus_scope_id) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindow); + IM_ASSERT(nav_layer == 0 || nav_layer == 1); + g.NavId = id; + g.NavFocusScopeId = focus_scope_id; + g.NavWindow->NavLastIds[nav_layer] = id; +} + +void ImGui::SetNavIDWithRectRel(ImGuiID id, int nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel) +{ + ImGuiContext& g = *GImGui; + SetNavID(id, nav_layer, focus_scope_id); + g.NavWindow->NavRectRel[nav_layer] = rect_rel; + g.NavMousePosDirty = true; + g.NavDisableHighlight = false; + g.NavDisableMouseHover = true; +} + +void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(id != 0); + + // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and window->DC.NavFocusScopeIdCurrent are valid. + // Note that window may be != g.CurrentWindow (e.g. SetFocusID call in InputTextEx for multi-line text) + const ImGuiNavLayer nav_layer = window->DC.NavLayerCurrent; + if (g.NavWindow != window) + g.NavInitRequest = false; + g.NavWindow = window; + g.NavId = id; + g.NavLayer = nav_layer; + g.NavFocusScopeId = window->DC.NavFocusScopeIdCurrent; + window->NavLastIds[nav_layer] = id; + if (window->DC.LastItemId == id) + window->NavRectRel[nav_layer] = ImRect(window->DC.LastItemRect.Min - window->Pos, window->DC.LastItemRect.Max - window->Pos); + + if (g.ActiveIdSource == ImGuiInputSource_Nav) + g.NavDisableMouseHover = true; + else + g.NavDisableHighlight = true; +} + +ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) +{ + if (ImFabs(dx) > ImFabs(dy)) + return (dx > 0.0f) ? ImGuiDir_Right : ImGuiDir_Left; + return (dy > 0.0f) ? ImGuiDir_Down : ImGuiDir_Up; +} + +static float inline NavScoreItemDistInterval(float a0, float a1, float b0, float b1) +{ + if (a1 < b0) + return a1 - b0; + if (b1 < a0) + return a0 - b1; + return 0.0f; +} + +static void inline NavClampRectToVisibleAreaForMoveDir(ImGuiDir move_dir, ImRect& r, const ImRect& clip_rect) +{ + if (move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) + { + r.Min.y = ImClamp(r.Min.y, clip_rect.Min.y, clip_rect.Max.y); + r.Max.y = ImClamp(r.Max.y, clip_rect.Min.y, clip_rect.Max.y); + } + else + { + r.Min.x = ImClamp(r.Min.x, clip_rect.Min.x, clip_rect.Max.x); + r.Max.x = ImClamp(r.Max.x, clip_rect.Min.x, clip_rect.Max.x); + } +} + +// Scoring function for gamepad/keyboard directional navigation. Based on https://gist.github.com/rygorous/6981057 +static bool ImGui::NavScoreItem(ImGuiNavMoveResult* result, ImRect cand) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.NavLayer != window->DC.NavLayerCurrent) + return false; + + const ImRect& curr = g.NavScoringRect; // Current modified source rect (NB: we've applied Max.x = Min.x in NavUpdate() to inhibit the effect of having varied item width) + g.NavScoringCount++; + + // When entering through a NavFlattened border, we consider child window items as fully clipped for scoring + if (window->ParentWindow == g.NavWindow) + { + IM_ASSERT((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened); + if (!window->ClipRect.Overlaps(cand)) + return false; + cand.ClipWithFull(window->ClipRect); // This allows the scored item to not overlap other candidates in the parent window + } + + // We perform scoring on items bounding box clipped by the current clipping rectangle on the other axis (clipping on our movement axis would give us equal scores for all clipped items) + // For example, this ensure that items in one column are not reached when moving vertically from items in another column. + NavClampRectToVisibleAreaForMoveDir(g.NavMoveClipDir, cand, window->ClipRect); + + // Compute distance between boxes + // FIXME-NAV: Introducing biases for vertical navigation, needs to be removed. + float dbx = NavScoreItemDistInterval(cand.Min.x, cand.Max.x, curr.Min.x, curr.Max.x); + float dby = NavScoreItemDistInterval(ImLerp(cand.Min.y, cand.Max.y, 0.2f), ImLerp(cand.Min.y, cand.Max.y, 0.8f), ImLerp(curr.Min.y, curr.Max.y, 0.2f), ImLerp(curr.Min.y, curr.Max.y, 0.8f)); // Scale down on Y to keep using box-distance for vertically touching items + if (dby != 0.0f && dbx != 0.0f) + dbx = (dbx / 1000.0f) + ((dbx > 0.0f) ? +1.0f : -1.0f); + float dist_box = ImFabs(dbx) + ImFabs(dby); + + // Compute distance between centers (this is off by a factor of 2, but we only compare center distances with each other so it doesn't matter) + float dcx = (cand.Min.x + cand.Max.x) - (curr.Min.x + curr.Max.x); + float dcy = (cand.Min.y + cand.Max.y) - (curr.Min.y + curr.Max.y); + float dist_center = ImFabs(dcx) + ImFabs(dcy); // L1 metric (need this for our connectedness guarantee) + + // Determine which quadrant of 'curr' our candidate item 'cand' lies in based on distance + ImGuiDir quadrant; + float dax = 0.0f, day = 0.0f, dist_axial = 0.0f; + if (dbx != 0.0f || dby != 0.0f) + { + // For non-overlapping boxes, use distance between boxes + dax = dbx; + day = dby; + dist_axial = dist_box; + quadrant = ImGetDirQuadrantFromDelta(dbx, dby); + } + else if (dcx != 0.0f || dcy != 0.0f) + { + // For overlapping boxes with different centers, use distance between centers + dax = dcx; + day = dcy; + dist_axial = dist_center; + quadrant = ImGetDirQuadrantFromDelta(dcx, dcy); + } + else + { + // Degenerate case: two overlapping buttons with same center, break ties arbitrarily (note that LastItemId here is really the _previous_ item order, but it doesn't matter) + quadrant = (window->DC.LastItemId < g.NavId) ? ImGuiDir_Left : ImGuiDir_Right; + } + +#if IMGUI_DEBUG_NAV_SCORING + char buf[128]; + if (IsMouseHoveringRect(cand.Min, cand.Max)) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "dbox (%.2f,%.2f->%.4f)\ndcen (%.2f,%.2f->%.4f)\nd (%.2f,%.2f->%.4f)\nnav %c, quadrant %c", dbx, dby, dist_box, dcx, dcy, dist_center, dax, day, dist_axial, "WENS"[g.NavMoveDir], "WENS"[quadrant]); + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRect(curr.Min, curr.Max, IM_COL32(255,200,0,100)); + draw_list->AddRect(cand.Min, cand.Max, IM_COL32(255,255,0,200)); + draw_list->AddRectFilled(cand.Max - ImVec2(4, 4), cand.Max + CalcTextSize(buf) + ImVec2(4, 4), IM_COL32(40,0,0,150)); + draw_list->AddText(g.IO.FontDefault, 13.0f, cand.Max, ~0U, buf); + } + else if (g.IO.KeyCtrl) // Hold to preview score in matching quadrant. Press C to rotate. + { + if (IsKeyPressedMap(ImGuiKey_C)) { g.NavMoveDirLast = (ImGuiDir)((g.NavMoveDirLast + 1) & 3); g.IO.KeysDownDuration[g.IO.KeyMap[ImGuiKey_C]] = 0.01f; } + if (quadrant == g.NavMoveDir) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "%.0f/%.0f", dist_box, dist_center); + ImDrawList* draw_list = GetForegroundDrawList(window); + draw_list->AddRectFilled(cand.Min, cand.Max, IM_COL32(255, 0, 0, 200)); + draw_list->AddText(g.IO.FontDefault, 13.0f, cand.Min, IM_COL32(255, 255, 255, 255), buf); + } + } +#endif + + // Is it in the quadrant we're interesting in moving to? + bool new_best = false; + if (quadrant == g.NavMoveDir) + { + // Does it beat the current best candidate? + if (dist_box < result->DistBox) + { + result->DistBox = dist_box; + result->DistCenter = dist_center; + return true; + } + if (dist_box == result->DistBox) + { + // Try using distance between center points to break ties + if (dist_center < result->DistCenter) + { + result->DistCenter = dist_center; + new_best = true; + } + else if (dist_center == result->DistCenter) + { + // Still tied! we need to be extra-careful to make sure everything gets linked properly. We consistently break ties by symbolically moving "later" items + // (with higher index) to the right/downwards by an infinitesimal amount since we the current "best" button already (so it must have a lower index), + // this is fairly easy. This rule ensures that all buttons with dx==dy==0 will end up being linked in order of appearance along the x axis. + if (((g.NavMoveDir == ImGuiDir_Up || g.NavMoveDir == ImGuiDir_Down) ? dby : dbx) < 0.0f) // moving bj to the right/down decreases distance + new_best = true; + } + } + } + + // Axial check: if 'curr' has no link at all in some direction and 'cand' lies roughly in that direction, add a tentative link. This will only be kept if no "real" matches + // are found, so it only augments the graph produced by the above method using extra links. (important, since it doesn't guarantee strong connectedness) + // This is just to avoid buttons having no links in a particular direction when there's a suitable neighbor. you get good graphs without this too. + // 2017/09/29: FIXME: This now currently only enabled inside menu bars, ideally we'd disable it everywhere. Menus in particular need to catch failure. For general navigation it feels awkward. + // Disabling it may lead to disconnected graphs when nodes are very spaced out on different axis. Perhaps consider offering this as an option? + if (result->DistBox == FLT_MAX && dist_axial < result->DistAxial) // Check axial match + if (g.NavLayer == ImGuiNavLayer_Menu && !(g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + if ((g.NavMoveDir == ImGuiDir_Left && dax < 0.0f) || (g.NavMoveDir == ImGuiDir_Right && dax > 0.0f) || (g.NavMoveDir == ImGuiDir_Up && day < 0.0f) || (g.NavMoveDir == ImGuiDir_Down && day > 0.0f)) + { + result->DistAxial = dist_axial; + new_best = true; + } + + return new_best; +} + +// We get there when either NavId == id, or when g.NavAnyRequest is set (which is updated by NavUpdateAnyRequestFlag above) +static void ImGui::NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, const ImGuiID id) +{ + ImGuiContext& g = *GImGui; + //if (!g.IO.NavActive) // [2017/10/06] Removed this possibly redundant test but I am not sure of all the side-effects yet. Some of the feature here will need to work regardless of using a _NoNavInputs flag. + // return; + + const ImGuiItemFlags item_flags = window->DC.ItemFlags; + const ImRect nav_bb_rel(nav_bb.Min - window->Pos, nav_bb.Max - window->Pos); + + // Process Init Request + if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent) + { + // Even if 'ImGuiItemFlags_NoNavDefaultFocus' is on (typically collapse/close button) we record the first ResultId so they can be used as a fallback + if (!(item_flags & ImGuiItemFlags_NoNavDefaultFocus) || g.NavInitResultId == 0) + { + g.NavInitResultId = id; + g.NavInitResultRectRel = nav_bb_rel; + } + if (!(item_flags & ImGuiItemFlags_NoNavDefaultFocus)) + { + g.NavInitRequest = false; // Found a match, clear request + NavUpdateAnyRequestFlag(); + } + } + + // Process Move Request (scoring for navigation) + // FIXME-NAV: Consider policy for double scoring (scoring from NavScoringRectScreen + scoring from a rect wrapped according to current wrapping policy) + if ((g.NavId != id || (g.NavMoveRequestFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) && !(item_flags & (ImGuiItemFlags_Disabled | ImGuiItemFlags_NoNav))) + { + ImGuiNavMoveResult* result = (window == g.NavWindow) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; +#if IMGUI_DEBUG_NAV_SCORING + // [DEBUG] Score all items in NavWindow at all times + if (!g.NavMoveRequest) + g.NavMoveDir = g.NavMoveDirLast; + bool new_best = NavScoreItem(result, nav_bb) && g.NavMoveRequest; +#else + bool new_best = g.NavMoveRequest && NavScoreItem(result, nav_bb); +#endif + if (new_best) + { + result->Window = window; + result->ID = id; + result->FocusScopeId = window->DC.NavFocusScopeIdCurrent; + result->RectRel = nav_bb_rel; + } + + // Features like PageUp/PageDown need to maintain a separate score for the visible set of items. + const float VISIBLE_RATIO = 0.70f; + if ((g.NavMoveRequestFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) && window->ClipRect.Overlaps(nav_bb)) + if (ImClamp(nav_bb.Max.y, window->ClipRect.Min.y, window->ClipRect.Max.y) - ImClamp(nav_bb.Min.y, window->ClipRect.Min.y, window->ClipRect.Max.y) >= (nav_bb.Max.y - nav_bb.Min.y) * VISIBLE_RATIO) + if (NavScoreItem(&g.NavMoveResultLocalVisibleSet, nav_bb)) + { + result = &g.NavMoveResultLocalVisibleSet; + result->Window = window; + result->ID = id; + result->FocusScopeId = window->DC.NavFocusScopeIdCurrent; + result->RectRel = nav_bb_rel; + } + } + + // Update window-relative bounding box of navigated item + if (g.NavId == id) + { + g.NavWindow = window; // Always refresh g.NavWindow, because some operations such as FocusItem() don't have a window. + g.NavLayer = window->DC.NavLayerCurrent; + g.NavFocusScopeId = window->DC.NavFocusScopeIdCurrent; + g.NavIdIsAlive = true; + g.NavIdTabCounter = window->DC.FocusCounterTabStop; + window->NavRectRel[window->DC.NavLayerCurrent] = nav_bb_rel; // Store item bounding box (relative to window position) + } +} + +bool ImGui::NavMoveRequestButNoResultYet() +{ + ImGuiContext& g = *GImGui; + return g.NavMoveRequest && g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0; +} + +void ImGui::NavMoveRequestCancel() +{ + ImGuiContext& g = *GImGui; + g.NavMoveRequest = false; + NavUpdateAnyRequestFlag(); +} + +void ImGui::NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, const ImRect& bb_rel, ImGuiNavMoveFlags move_flags) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavMoveRequestForward == ImGuiNavForward_None); + NavMoveRequestCancel(); + g.NavMoveDir = move_dir; + g.NavMoveClipDir = clip_dir; + g.NavMoveRequestForward = ImGuiNavForward_ForwardQueued; + g.NavMoveRequestFlags = move_flags; + g.NavWindow->NavRectRel[g.NavLayer] = bb_rel; +} + +void ImGui::NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags) +{ + ImGuiContext& g = *GImGui; + + // Navigation wrap-around logic is delayed to the end of the frame because this operation is only valid after entire + // popup is assembled and in case of appended popups it is not clear which EndPopup() call is final. + g.NavWrapRequestWindow = window; + g.NavWrapRequestFlags = move_flags; +} + +// FIXME: This could be replaced by updating a frame number in each window when (window == NavWindow) and (NavLayer == 0). +// This way we could find the last focused window among our children. It would be much less confusing this way? +static void ImGui::NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window) +{ + ImGuiWindow* parent = nav_window; + while (parent && (parent->Flags & ImGuiWindowFlags_ChildWindow) != 0 && (parent->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + parent = parent->ParentWindow; + if (parent && parent != nav_window) + parent->NavLastChildNavWindow = nav_window; +} + +// Restore the last focused child. +// Call when we are expected to land on the Main Layer (0) after FocusWindow() +static ImGuiWindow* ImGui::NavRestoreLastChildNavWindow(ImGuiWindow* window) +{ + if (window->NavLastChildNavWindow && window->NavLastChildNavWindow->WasActive) + return window->NavLastChildNavWindow; + return window; +} + +static void NavRestoreLayer(ImGuiNavLayer layer) +{ + ImGuiContext& g = *GImGui; + g.NavLayer = layer; + if (layer == 0) + g.NavWindow = ImGui::NavRestoreLastChildNavWindow(g.NavWindow); + ImGuiWindow* window = g.NavWindow; + if (layer == 0 && window->NavLastIds[0] != 0) + ImGui::SetNavIDWithRectRel(window->NavLastIds[0], layer, 0, window->NavRectRel[0]); + else + ImGui::NavInitWindow(window, true); +} + +static inline void ImGui::NavUpdateAnyRequestFlag() +{ + ImGuiContext& g = *GImGui; + g.NavAnyRequest = g.NavMoveRequest || g.NavInitRequest || (IMGUI_DEBUG_NAV_SCORING && g.NavWindow != NULL); + if (g.NavAnyRequest) + IM_ASSERT(g.NavWindow != NULL); +} + +// This needs to be called before we submit any widget (aka in or before Begin) +void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(window == g.NavWindow); + bool init_for_nav = false; + if (!(window->Flags & ImGuiWindowFlags_NoNavInputs)) + if (!(window->Flags & ImGuiWindowFlags_ChildWindow) || (window->Flags & ImGuiWindowFlags_Popup) || (window->NavLastIds[0] == 0) || force_reinit) + init_for_nav = true; + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from NavInitWindow(), init_for_nav=%d, window=\"%s\", layer=%d\n", init_for_nav, window->Name, g.NavLayer); + if (init_for_nav) + { + SetNavID(0, g.NavLayer, 0); + g.NavInitRequest = true; + g.NavInitRequestFromMove = false; + g.NavInitResultId = 0; + g.NavInitResultRectRel = ImRect(); + NavUpdateAnyRequestFlag(); + } + else + { + g.NavId = window->NavLastIds[0]; + g.NavFocusScopeId = 0; + } +} + +static ImVec2 ImGui::NavCalcPreferredRefPos() +{ + ImGuiContext& g = *GImGui; + if (g.NavDisableHighlight || !g.NavDisableMouseHover || !g.NavWindow) + { + // Mouse (we need a fallback in case the mouse becomes invalid after being used) + if (IsMousePosValid(&g.IO.MousePos)) + return g.IO.MousePos; + return g.LastValidMousePos; + } + else + { + // When navigation is active and mouse is disabled, decide on an arbitrary position around the bottom left of the currently navigated item. + const ImRect& rect_rel = g.NavWindow->NavRectRel[g.NavLayer]; + ImVec2 pos = g.NavWindow->Pos + ImVec2(rect_rel.Min.x + ImMin(g.Style.FramePadding.x * 4, rect_rel.GetWidth()), rect_rel.Max.y - ImMin(g.Style.FramePadding.y, rect_rel.GetHeight())); + ImRect visible_rect = GetViewportRect(); + return ImFloor(ImClamp(pos, visible_rect.Min, visible_rect.Max)); // ImFloor() is important because non-integer mouse position application in back-end might be lossy and result in undesirable non-zero delta. + } +} + +float ImGui::GetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode) +{ + ImGuiContext& g = *GImGui; + if (mode == ImGuiInputReadMode_Down) + return g.IO.NavInputs[n]; // Instant, read analog input (0.0f..1.0f, as provided by user) + + const float t = g.IO.NavInputsDownDuration[n]; + if (t < 0.0f && mode == ImGuiInputReadMode_Released) // Return 1.0f when just released, no repeat, ignore analog input. + return (g.IO.NavInputsDownDurationPrev[n] >= 0.0f ? 1.0f : 0.0f); + if (t < 0.0f) + return 0.0f; + if (mode == ImGuiInputReadMode_Pressed) // Return 1.0f when just pressed, no repeat, ignore analog input. + return (t == 0.0f) ? 1.0f : 0.0f; + if (mode == ImGuiInputReadMode_Repeat) + return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 0.72f, g.IO.KeyRepeatRate * 0.80f); + if (mode == ImGuiInputReadMode_RepeatSlow) + return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 1.25f, g.IO.KeyRepeatRate * 2.00f); + if (mode == ImGuiInputReadMode_RepeatFast) + return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 0.72f, g.IO.KeyRepeatRate * 0.30f); + return 0.0f; +} + +ImVec2 ImGui::GetNavInputAmount2d(ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor, float fast_factor) +{ + ImVec2 delta(0.0f, 0.0f); + if (dir_sources & ImGuiNavDirSourceFlags_Keyboard) + delta += ImVec2(GetNavInputAmount(ImGuiNavInput_KeyRight_, mode) - GetNavInputAmount(ImGuiNavInput_KeyLeft_, mode), GetNavInputAmount(ImGuiNavInput_KeyDown_, mode) - GetNavInputAmount(ImGuiNavInput_KeyUp_, mode)); + if (dir_sources & ImGuiNavDirSourceFlags_PadDPad) + delta += ImVec2(GetNavInputAmount(ImGuiNavInput_DpadRight, mode) - GetNavInputAmount(ImGuiNavInput_DpadLeft, mode), GetNavInputAmount(ImGuiNavInput_DpadDown, mode) - GetNavInputAmount(ImGuiNavInput_DpadUp, mode)); + if (dir_sources & ImGuiNavDirSourceFlags_PadLStick) + delta += ImVec2(GetNavInputAmount(ImGuiNavInput_LStickRight, mode) - GetNavInputAmount(ImGuiNavInput_LStickLeft, mode), GetNavInputAmount(ImGuiNavInput_LStickDown, mode) - GetNavInputAmount(ImGuiNavInput_LStickUp, mode)); + if (slow_factor != 0.0f && IsNavInputDown(ImGuiNavInput_TweakSlow)) + delta *= slow_factor; + if (fast_factor != 0.0f && IsNavInputDown(ImGuiNavInput_TweakFast)) + delta *= fast_factor; + return delta; +} + +static void ImGui::NavUpdate() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + io.WantSetMousePos = false; + g.NavWrapRequestWindow = NULL; + g.NavWrapRequestFlags = ImGuiNavMoveFlags_None; +#if 0 + if (g.NavScoringCount > 0) IMGUI_DEBUG_LOG("NavScoringCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.FrameCount, g.NavScoringCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); +#endif + + // Set input source as Gamepad when buttons are pressed (as some features differs when used with Gamepad vs Keyboard) + // (do it before we map Keyboard input!) + bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; + bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; + if (nav_gamepad_active && g.NavInputSource != ImGuiInputSource_NavGamepad) + { + if (io.NavInputs[ImGuiNavInput_Activate] > 0.0f || io.NavInputs[ImGuiNavInput_Input] > 0.0f || io.NavInputs[ImGuiNavInput_Cancel] > 0.0f || io.NavInputs[ImGuiNavInput_Menu] > 0.0f + || io.NavInputs[ImGuiNavInput_DpadLeft] > 0.0f || io.NavInputs[ImGuiNavInput_DpadRight] > 0.0f || io.NavInputs[ImGuiNavInput_DpadUp] > 0.0f || io.NavInputs[ImGuiNavInput_DpadDown] > 0.0f) + g.NavInputSource = ImGuiInputSource_NavGamepad; + } + + // Update Keyboard->Nav inputs mapping + if (nav_keyboard_active) + { + #define NAV_MAP_KEY(_KEY, _NAV_INPUT) do { if (IsKeyDown(io.KeyMap[_KEY])) { io.NavInputs[_NAV_INPUT] = 1.0f; g.NavInputSource = ImGuiInputSource_NavKeyboard; } } while (0) + NAV_MAP_KEY(ImGuiKey_Space, ImGuiNavInput_Activate ); + NAV_MAP_KEY(ImGuiKey_Enter, ImGuiNavInput_Input ); + NAV_MAP_KEY(ImGuiKey_Escape, ImGuiNavInput_Cancel ); + NAV_MAP_KEY(ImGuiKey_LeftArrow, ImGuiNavInput_KeyLeft_ ); + NAV_MAP_KEY(ImGuiKey_RightArrow,ImGuiNavInput_KeyRight_); + NAV_MAP_KEY(ImGuiKey_UpArrow, ImGuiNavInput_KeyUp_ ); + NAV_MAP_KEY(ImGuiKey_DownArrow, ImGuiNavInput_KeyDown_ ); + if (io.KeyCtrl) + io.NavInputs[ImGuiNavInput_TweakSlow] = 1.0f; + if (io.KeyShift) + io.NavInputs[ImGuiNavInput_TweakFast] = 1.0f; + if (io.KeyAlt && !io.KeyCtrl) // AltGR is Alt+Ctrl, also even on keyboards without AltGR we don't want Alt+Ctrl to open menu. + io.NavInputs[ImGuiNavInput_KeyMenu_] = 1.0f; + #undef NAV_MAP_KEY + } + memcpy(io.NavInputsDownDurationPrev, io.NavInputsDownDuration, sizeof(io.NavInputsDownDuration)); + for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) + io.NavInputsDownDuration[i] = (io.NavInputs[i] > 0.0f) ? (io.NavInputsDownDuration[i] < 0.0f ? 0.0f : io.NavInputsDownDuration[i] + io.DeltaTime) : -1.0f; + + // Process navigation init request (select first/default focus) + if (g.NavInitResultId != 0 && (!g.NavDisableHighlight || g.NavInitRequestFromMove)) + NavUpdateInitResult(); + g.NavInitRequest = false; + g.NavInitRequestFromMove = false; + g.NavInitResultId = 0; + g.NavJustMovedToId = 0; + + // Process navigation move request + if (g.NavMoveRequest) + NavUpdateMoveResult(); + + // When a forwarded move request failed, we restore the highlight that we disabled during the forward frame + if (g.NavMoveRequestForward == ImGuiNavForward_ForwardActive) + { + IM_ASSERT(g.NavMoveRequest); + if (g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0) + g.NavDisableHighlight = false; + g.NavMoveRequestForward = ImGuiNavForward_None; + } + + // Apply application mouse position movement, after we had a chance to process move request result. + if (g.NavMousePosDirty && g.NavIdIsAlive) + { + // Set mouse position given our knowledge of the navigated item position from last frame + if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) && (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos)) + { + if (!g.NavDisableHighlight && g.NavDisableMouseHover && g.NavWindow) + { + io.MousePos = io.MousePosPrev = NavCalcPreferredRefPos(); + io.WantSetMousePos = true; + } + } + g.NavMousePosDirty = false; + } + g.NavIdIsAlive = false; + g.NavJustTabbedId = 0; + IM_ASSERT(g.NavLayer == 0 || g.NavLayer == 1); + + // Store our return window (for returning from Layer 1 to Layer 0) and clear it as soon as we step back in our own Layer 0 + if (g.NavWindow) + NavSaveLastChildNavWindowIntoParent(g.NavWindow); + if (g.NavWindow && g.NavWindow->NavLastChildNavWindow != NULL && g.NavLayer == ImGuiNavLayer_Main) + g.NavWindow->NavLastChildNavWindow = NULL; + + // Update CTRL+TAB and Windowing features (hold Square to move/resize/etc.) + NavUpdateWindowing(); + + // Set output flags for user application + io.NavActive = (nav_keyboard_active || nav_gamepad_active) && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs); + io.NavVisible = (io.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL); + + // Process NavCancel input (to close a popup, get back to parent, clear focus) + if (IsNavInputTest(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed)) + { + IMGUI_DEBUG_LOG_NAV("[nav] ImGuiNavInput_Cancel\n"); + if (g.ActiveId != 0) + { + if (!IsActiveIdUsingNavInput(ImGuiNavInput_Cancel)) + ClearActiveID(); + } + else if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow) && !(g.NavWindow->Flags & ImGuiWindowFlags_Popup) && g.NavWindow->ParentWindow) + { + // Exit child window + ImGuiWindow* child_window = g.NavWindow; + ImGuiWindow* parent_window = g.NavWindow->ParentWindow; + IM_ASSERT(child_window->ChildId != 0); + FocusWindow(parent_window); + SetNavID(child_window->ChildId, 0, 0); + // Reassigning with same value, we're being explicit here. + g.NavIdIsAlive = false; // -V1048 + if (g.NavDisableMouseHover) + g.NavMousePosDirty = true; + } + else if (g.OpenPopupStack.Size > 0) + { + // Close open popup/menu + if (!(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) + ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); + } + else if (g.NavLayer != ImGuiNavLayer_Main) + { + // Leave the "menu" layer + NavRestoreLayer(ImGuiNavLayer_Main); + } + else + { + // Clear NavLastId for popups but keep it for regular child window so we can leave one and come back where we were + if (g.NavWindow && ((g.NavWindow->Flags & ImGuiWindowFlags_Popup) || !(g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow))) + g.NavWindow->NavLastIds[0] = 0; + g.NavId = g.NavFocusScopeId = 0; + } + } + + // Process manual activation request + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavInputId = 0; + if (g.NavId != 0 && !g.NavDisableHighlight && !g.NavWindowingTarget && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + { + bool activate_down = IsNavInputDown(ImGuiNavInput_Activate); + bool activate_pressed = activate_down && IsNavInputTest(ImGuiNavInput_Activate, ImGuiInputReadMode_Pressed); + if (g.ActiveId == 0 && activate_pressed) + g.NavActivateId = g.NavId; + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && activate_down) + g.NavActivateDownId = g.NavId; + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && activate_pressed) + g.NavActivatePressedId = g.NavId; + if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && IsNavInputTest(ImGuiNavInput_Input, ImGuiInputReadMode_Pressed)) + g.NavInputId = g.NavId; + } + if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + g.NavDisableHighlight = true; + if (g.NavActivateId != 0) + IM_ASSERT(g.NavActivateDownId == g.NavActivateId); + g.NavMoveRequest = false; + + // Process programmatic activation request + if (g.NavNextActivateId != 0) + g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavInputId = g.NavNextActivateId; + g.NavNextActivateId = 0; + + // Initiate directional inputs request + if (g.NavMoveRequestForward == ImGuiNavForward_None) + { + g.NavMoveDir = ImGuiDir_None; + g.NavMoveRequestFlags = ImGuiNavMoveFlags_None; + if (g.NavWindow && !g.NavWindowingTarget && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) + { + const ImGuiInputReadMode read_mode = ImGuiInputReadMode_Repeat; + if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && (IsNavInputTest(ImGuiNavInput_DpadLeft, read_mode) || IsNavInputTest(ImGuiNavInput_KeyLeft_, read_mode))) { g.NavMoveDir = ImGuiDir_Left; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && (IsNavInputTest(ImGuiNavInput_DpadRight, read_mode) || IsNavInputTest(ImGuiNavInput_KeyRight_, read_mode))) { g.NavMoveDir = ImGuiDir_Right; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && (IsNavInputTest(ImGuiNavInput_DpadUp, read_mode) || IsNavInputTest(ImGuiNavInput_KeyUp_, read_mode))) { g.NavMoveDir = ImGuiDir_Up; } + if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && (IsNavInputTest(ImGuiNavInput_DpadDown, read_mode) || IsNavInputTest(ImGuiNavInput_KeyDown_, read_mode))) { g.NavMoveDir = ImGuiDir_Down; } + } + g.NavMoveClipDir = g.NavMoveDir; + } + else + { + // Forwarding previous request (which has been modified, e.g. wrap around menus rewrite the requests with a starting rectangle at the other side of the window) + // (Preserve g.NavMoveRequestFlags, g.NavMoveClipDir which were set by the NavMoveRequestForward() function) + IM_ASSERT(g.NavMoveDir != ImGuiDir_None && g.NavMoveClipDir != ImGuiDir_None); + IM_ASSERT(g.NavMoveRequestForward == ImGuiNavForward_ForwardQueued); + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequestForward %d\n", g.NavMoveDir); + g.NavMoveRequestForward = ImGuiNavForward_ForwardActive; + } + + // Update PageUp/PageDown/Home/End scroll + // FIXME-NAV: Consider enabling those keys even without the master ImGuiConfigFlags_NavEnableKeyboard flag? + float nav_scoring_rect_offset_y = 0.0f; + if (nav_keyboard_active) + nav_scoring_rect_offset_y = NavUpdatePageUpPageDown(); + + // If we initiate a movement request and have no current NavId, we initiate a InitDefautRequest that will be used as a fallback if the direction fails to find a match + if (g.NavMoveDir != ImGuiDir_None) + { + g.NavMoveRequest = true; + g.NavMoveRequestKeyMods = io.KeyMods; + g.NavMoveDirLast = g.NavMoveDir; + } + if (g.NavMoveRequest && g.NavId == 0) + { + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", g.NavWindow->Name, g.NavLayer); + g.NavInitRequest = g.NavInitRequestFromMove = true; + // Reassigning with same value, we're being explicit here. + g.NavInitResultId = 0; // -V1048 + g.NavDisableHighlight = false; + } + NavUpdateAnyRequestFlag(); + + // Scrolling + if (g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) && !g.NavWindowingTarget) + { + // *Fallback* manual-scroll with Nav directional keys when window has no navigable item + ImGuiWindow* window = g.NavWindow; + const float scroll_speed = IM_ROUND(window->CalcFontSize() * 100 * io.DeltaTime); // We need round the scrolling speed because sub-pixel scroll isn't reliably supported. + if (window->DC.NavLayerActiveMask == 0x00 && window->DC.NavHasScroll && g.NavMoveRequest) + { + if (g.NavMoveDir == ImGuiDir_Left || g.NavMoveDir == ImGuiDir_Right) + SetScrollX(window, ImFloor(window->Scroll.x + ((g.NavMoveDir == ImGuiDir_Left) ? -1.0f : +1.0f) * scroll_speed)); + if (g.NavMoveDir == ImGuiDir_Up || g.NavMoveDir == ImGuiDir_Down) + SetScrollY(window, ImFloor(window->Scroll.y + ((g.NavMoveDir == ImGuiDir_Up) ? -1.0f : +1.0f) * scroll_speed)); + } + + // *Normal* Manual scroll with NavScrollXXX keys + // Next movement request will clamp the NavId reference rectangle to the visible area, so navigation will resume within those bounds. + ImVec2 scroll_dir = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadLStick, ImGuiInputReadMode_Down, 1.0f / 10.0f, 10.0f); + if (scroll_dir.x != 0.0f && window->ScrollbarX) + SetScrollX(window, ImFloor(window->Scroll.x + scroll_dir.x * scroll_speed)); + if (scroll_dir.y != 0.0f) + SetScrollY(window, ImFloor(window->Scroll.y + scroll_dir.y * scroll_speed)); + } + + // Reset search results + g.NavMoveResultLocal.Clear(); + g.NavMoveResultLocalVisibleSet.Clear(); + g.NavMoveResultOther.Clear(); + + // When using gamepad, we project the reference nav bounding box into window visible area. + // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, since with gamepad every movements are relative + // (can't focus a visible object like we can with the mouse). + if (g.NavMoveRequest && g.NavInputSource == ImGuiInputSource_NavGamepad && g.NavLayer == ImGuiNavLayer_Main) + { + ImGuiWindow* window = g.NavWindow; + ImRect window_rect_rel(window->InnerRect.Min - window->Pos - ImVec2(1, 1), window->InnerRect.Max - window->Pos + ImVec2(1, 1)); + if (!window_rect_rel.Contains(window->NavRectRel[g.NavLayer])) + { + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel\n"); + float pad = window->CalcFontSize() * 0.5f; + window_rect_rel.Expand(ImVec2(-ImMin(window_rect_rel.GetWidth(), pad), -ImMin(window_rect_rel.GetHeight(), pad))); // Terrible approximation for the intent of starting navigation from first fully visible item + window->NavRectRel[g.NavLayer].ClipWithFull(window_rect_rel); + g.NavId = g.NavFocusScopeId = 0; + } + } + + // For scoring we use a single segment on the left side our current item bounding box (not touching the edge to avoid box overlap with zero-spaced items) + ImRect nav_rect_rel = g.NavWindow ? g.NavWindow->NavRectRel[g.NavLayer] : ImRect(0, 0, 0, 0); + g.NavScoringRect = g.NavWindow ? ImRect(g.NavWindow->Pos + nav_rect_rel.Min, g.NavWindow->Pos + nav_rect_rel.Max) : GetViewportRect(); + g.NavScoringRect.TranslateY(nav_scoring_rect_offset_y); + g.NavScoringRect.Min.x = ImMin(g.NavScoringRect.Min.x + 1.0f, g.NavScoringRect.Max.x); + g.NavScoringRect.Max.x = g.NavScoringRect.Min.x; + IM_ASSERT(!g.NavScoringRect.IsInverted()); // Ensure if we have a finite, non-inverted bounding box here will allows us to remove extraneous ImFabs() calls in NavScoreItem(). + //GetForegroundDrawList()->AddRect(g.NavScoringRectScreen.Min, g.NavScoringRectScreen.Max, IM_COL32(255,200,0,255)); // [DEBUG] + g.NavScoringCount = 0; +#if IMGUI_DEBUG_NAV_RECTS + if (g.NavWindow) + { + ImDrawList* draw_list = GetForegroundDrawList(g.NavWindow); + if (1) { for (int layer = 0; layer < 2; layer++) draw_list->AddRect(g.NavWindow->Pos + g.NavWindow->NavRectRel[layer].Min, g.NavWindow->Pos + g.NavWindow->NavRectRel[layer].Max, IM_COL32(255,200,0,255)); } // [DEBUG] + if (1) { ImU32 col = (!g.NavWindow->Hidden) ? IM_COL32(255,0,255,255) : IM_COL32(255,0,0,255); ImVec2 p = NavCalcPreferredRefPos(); char buf[32]; ImFormatString(buf, 32, "%d", g.NavLayer); draw_list->AddCircleFilled(p, 3.0f, col); draw_list->AddText(NULL, 13.0f, p + ImVec2(8,-4), col, buf); } + } +#endif +} + +static void ImGui::NavUpdateInitResult() +{ + // In very rare cases g.NavWindow may be null (e.g. clearing focus after requesting an init request, which does happen when releasing Alt while clicking on void) + ImGuiContext& g = *GImGui; + if (!g.NavWindow) + return; + + // Apply result from previous navigation init request (will typically select the first item, unless SetItemDefaultFocus() has been called) + IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", g.NavInitResultId, g.NavLayer, g.NavWindow->Name); + if (g.NavInitRequestFromMove) + SetNavIDWithRectRel(g.NavInitResultId, g.NavLayer, 0, g.NavInitResultRectRel); + else + SetNavID(g.NavInitResultId, g.NavLayer, 0); + g.NavWindow->NavRectRel[g.NavLayer] = g.NavInitResultRectRel; +} + +// Apply result from previous frame navigation directional move request +static void ImGui::NavUpdateMoveResult() +{ + ImGuiContext& g = *GImGui; + if (g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0) + { + // In a situation when there is no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) + if (g.NavId != 0) + { + g.NavDisableHighlight = false; + g.NavDisableMouseHover = true; + } + return; + } + + // Select which result to use + ImGuiNavMoveResult* result = (g.NavMoveResultLocal.ID != 0) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; + + // PageUp/PageDown behavior first jumps to the bottom/top mostly visible item, _otherwise_ use the result from the previous/next page. + if (g.NavMoveRequestFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) + if (g.NavMoveResultLocalVisibleSet.ID != 0 && g.NavMoveResultLocalVisibleSet.ID != g.NavId) + result = &g.NavMoveResultLocalVisibleSet; + + // Maybe entering a flattened child from the outside? In this case solve the tie using the regular scoring rules. + if (result != &g.NavMoveResultOther && g.NavMoveResultOther.ID != 0 && g.NavMoveResultOther.Window->ParentWindow == g.NavWindow) + if ((g.NavMoveResultOther.DistBox < result->DistBox) || (g.NavMoveResultOther.DistBox == result->DistBox && g.NavMoveResultOther.DistCenter < result->DistCenter)) + result = &g.NavMoveResultOther; + IM_ASSERT(g.NavWindow && result->Window); + + // Scroll to keep newly navigated item fully into view. + if (g.NavLayer == ImGuiNavLayer_Main) + { + ImVec2 delta_scroll; + if (g.NavMoveRequestFlags & ImGuiNavMoveFlags_ScrollToEdge) + { + float scroll_target = (g.NavMoveDir == ImGuiDir_Up) ? result->Window->ScrollMax.y : 0.0f; + delta_scroll.y = result->Window->Scroll.y - scroll_target; + SetScrollY(result->Window, scroll_target); + } + else + { + ImRect rect_abs = ImRect(result->RectRel.Min + result->Window->Pos, result->RectRel.Max + result->Window->Pos); + delta_scroll = ScrollToBringRectIntoView(result->Window, rect_abs); + } + + // Offset our result position so mouse position can be applied immediately after in NavUpdate() + result->RectRel.TranslateX(-delta_scroll.x); + result->RectRel.TranslateY(-delta_scroll.y); + } + + ClearActiveID(); + g.NavWindow = result->Window; + if (g.NavId != result->ID) + { + // Don't set NavJustMovedToId if just landed on the same spot (which may happen with ImGuiNavMoveFlags_AllowCurrentNavId) + g.NavJustMovedToId = result->ID; + g.NavJustMovedToFocusScopeId = result->FocusScopeId; + g.NavJustMovedToKeyMods = g.NavMoveRequestKeyMods; + } + IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", result->ID, g.NavLayer, g.NavWindow->Name); + SetNavIDWithRectRel(result->ID, g.NavLayer, result->FocusScopeId, result->RectRel); +} + +// Handle PageUp/PageDown/Home/End keys +static float ImGui::NavUpdatePageUpPageDown() +{ + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + + if (g.NavMoveDir != ImGuiDir_None || g.NavWindow == NULL) + return 0.0f; + if ((g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) || g.NavWindowingTarget != NULL || g.NavLayer != ImGuiNavLayer_Main) + return 0.0f; + + ImGuiWindow* window = g.NavWindow; + const bool page_up_held = IsKeyDown(io.KeyMap[ImGuiKey_PageUp]) && !IsActiveIdUsingKey(ImGuiKey_PageUp); + const bool page_down_held = IsKeyDown(io.KeyMap[ImGuiKey_PageDown]) && !IsActiveIdUsingKey(ImGuiKey_PageDown); + const bool home_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_Home]) && !IsActiveIdUsingKey(ImGuiKey_Home); + const bool end_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_End]) && !IsActiveIdUsingKey(ImGuiKey_End); + if (page_up_held != page_down_held || home_pressed != end_pressed) // If either (not both) are pressed + { + if (window->DC.NavLayerActiveMask == 0x00 && window->DC.NavHasScroll) + { + // Fallback manual-scroll when window has no navigable item + if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) + SetScrollY(window, window->Scroll.y - window->InnerRect.GetHeight()); + else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) + SetScrollY(window, window->Scroll.y + window->InnerRect.GetHeight()); + else if (home_pressed) + SetScrollY(window, 0.0f); + else if (end_pressed) + SetScrollY(window, window->ScrollMax.y); + } + else + { + ImRect& nav_rect_rel = window->NavRectRel[g.NavLayer]; + const float page_offset_y = ImMax(0.0f, window->InnerRect.GetHeight() - window->CalcFontSize() * 1.0f + nav_rect_rel.GetHeight()); + float nav_scoring_rect_offset_y = 0.0f; + if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) + { + nav_scoring_rect_offset_y = -page_offset_y; + g.NavMoveDir = ImGuiDir_Down; // Because our scoring rect is offset up, we request the down direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Up; + g.NavMoveRequestFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; + } + else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) + { + nav_scoring_rect_offset_y = +page_offset_y; + g.NavMoveDir = ImGuiDir_Up; // Because our scoring rect is offset down, we request the up direction (so we can always land on the last item) + g.NavMoveClipDir = ImGuiDir_Down; + g.NavMoveRequestFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; + } + else if (home_pressed) + { + // FIXME-NAV: handling of Home/End is assuming that the top/bottom most item will be visible with Scroll.y == 0/ScrollMax.y + // Scrolling will be handled via the ImGuiNavMoveFlags_ScrollToEdge flag, we don't scroll immediately to avoid scrolling happening before nav result. + // Preserve current horizontal position if we have any. + nav_rect_rel.Min.y = nav_rect_rel.Max.y = -window->Scroll.y; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Down; + g.NavMoveRequestFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdge; + } + else if (end_pressed) + { + nav_rect_rel.Min.y = nav_rect_rel.Max.y = window->ScrollMax.y + window->SizeFull.y - window->Scroll.y; + if (nav_rect_rel.IsInverted()) + nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; + g.NavMoveDir = ImGuiDir_Up; + g.NavMoveRequestFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdge; + } + return nav_scoring_rect_offset_y; + } + } + return 0.0f; +} + +static void ImGui::NavEndFrame() +{ + ImGuiContext& g = *GImGui; + + // Show CTRL+TAB list window + if (g.NavWindowingTarget != NULL) + NavUpdateWindowingOverlay(); + + // Perform wrap-around in menus + ImGuiWindow* window = g.NavWrapRequestWindow; + ImGuiNavMoveFlags move_flags = g.NavWrapRequestFlags; + if (window != NULL && g.NavWindow == window && NavMoveRequestButNoResultYet() && g.NavMoveRequestForward == ImGuiNavForward_None && g.NavLayer == ImGuiNavLayer_Main) + { + IM_ASSERT(move_flags != 0); // No points calling this with no wrapping + ImRect bb_rel = window->NavRectRel[0]; + + ImGuiDir clip_dir = g.NavMoveDir; + if (g.NavMoveDir == ImGuiDir_Left && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = + ImMax(window->SizeFull.x, window->ContentSize.x + window->WindowPadding.x * 2.0f) - window->Scroll.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(-bb_rel.GetHeight()); + clip_dir = ImGuiDir_Up; + } + NavMoveRequestForward(g.NavMoveDir, clip_dir, bb_rel, move_flags); + } + if (g.NavMoveDir == ImGuiDir_Right && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) + { + bb_rel.Min.x = bb_rel.Max.x = -window->Scroll.x; + if (move_flags & ImGuiNavMoveFlags_WrapX) + { + bb_rel.TranslateY(+bb_rel.GetHeight()); + clip_dir = ImGuiDir_Down; + } + NavMoveRequestForward(g.NavMoveDir, clip_dir, bb_rel, move_flags); + } + if (g.NavMoveDir == ImGuiDir_Up && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = + ImMax(window->SizeFull.y, window->ContentSize.y + window->WindowPadding.y * 2.0f) - window->Scroll.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(-bb_rel.GetWidth()); + clip_dir = ImGuiDir_Left; + } + NavMoveRequestForward(g.NavMoveDir, clip_dir, bb_rel, move_flags); + } + if (g.NavMoveDir == ImGuiDir_Down && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) + { + bb_rel.Min.y = bb_rel.Max.y = -window->Scroll.y; + if (move_flags & ImGuiNavMoveFlags_WrapY) + { + bb_rel.TranslateX(+bb_rel.GetWidth()); + clip_dir = ImGuiDir_Right; + } + NavMoveRequestForward(g.NavMoveDir, clip_dir, bb_rel, move_flags); + } + } +} + +static int ImGui::FindWindowFocusIndex(ImGuiWindow* window) // FIXME-OPT O(N) +{ + ImGuiContext& g = *GImGui; + for (int i = g.WindowsFocusOrder.Size - 1; i >= 0; i--) + if (g.WindowsFocusOrder[i] == window) + return i; + return -1; +} + +static ImGuiWindow* FindWindowNavFocusable(int i_start, int i_stop, int dir) // FIXME-OPT O(N) +{ + ImGuiContext& g = *GImGui; + for (int i = i_start; i >= 0 && i < g.WindowsFocusOrder.Size && i != i_stop; i += dir) + if (ImGui::IsWindowNavFocusable(g.WindowsFocusOrder[i])) + return g.WindowsFocusOrder[i]; + return NULL; +} + +static void NavUpdateWindowingHighlightWindow(int focus_change_dir) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget); + if (g.NavWindowingTarget->Flags & ImGuiWindowFlags_Modal) + return; + + const int i_current = ImGui::FindWindowFocusIndex(g.NavWindowingTarget); + ImGuiWindow* window_target = FindWindowNavFocusable(i_current + focus_change_dir, -INT_MAX, focus_change_dir); + if (!window_target) + window_target = FindWindowNavFocusable((focus_change_dir < 0) ? (g.WindowsFocusOrder.Size - 1) : 0, i_current, focus_change_dir); + if (window_target) // Don't reset windowing target if there's a single window in the list + g.NavWindowingTarget = g.NavWindowingTargetAnim = window_target; + g.NavWindowingToggleLayer = false; +} + +// Windowing management mode +// Keyboard: CTRL+Tab (change focus/move/resize), Alt (toggle menu layer) +// Gamepad: Hold Menu/Square (change focus/move/resize), Tap Menu/Square (toggle menu layer) +static void ImGui::NavUpdateWindowing() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* apply_focus_window = NULL; + bool apply_toggle_layer = false; + + ImGuiWindow* modal_window = GetTopMostPopupModal(); + bool allow_windowing = (modal_window == NULL); + if (!allow_windowing) + g.NavWindowingTarget = NULL; + + // Fade out + if (g.NavWindowingTargetAnim && g.NavWindowingTarget == NULL) + { + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha - g.IO.DeltaTime * 10.0f, 0.0f); + if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) + g.NavWindowingTargetAnim = NULL; + } + + // Start CTRL-TAB or Square+L/R window selection + bool start_windowing_with_gamepad = allow_windowing && !g.NavWindowingTarget && IsNavInputTest(ImGuiNavInput_Menu, ImGuiInputReadMode_Pressed); + bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_Tab) && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard); + if (start_windowing_with_gamepad || start_windowing_with_keyboard) + if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1)) + { + g.NavWindowingTarget = g.NavWindowingTargetAnim = window->RootWindow; // FIXME-DOCK: Will need to use RootWindowDockStop + g.NavWindowingTimer = g.NavWindowingHighlightAlpha = 0.0f; + g.NavWindowingToggleLayer = start_windowing_with_keyboard ? false : true; + g.NavInputSource = start_windowing_with_keyboard ? ImGuiInputSource_NavKeyboard : ImGuiInputSource_NavGamepad; + } + + // Gamepad update + g.NavWindowingTimer += g.IO.DeltaTime; + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_NavGamepad) + { + // Highlight only appears after a brief time holding the button, so that a fast tap on PadMenu (to toggle NavLayer) doesn't add visual noise + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); + + // Select window to focus + const int focus_change_dir = (int)IsNavInputTest(ImGuiNavInput_FocusPrev, ImGuiInputReadMode_RepeatSlow) - (int)IsNavInputTest(ImGuiNavInput_FocusNext, ImGuiInputReadMode_RepeatSlow); + if (focus_change_dir != 0) + { + NavUpdateWindowingHighlightWindow(focus_change_dir); + g.NavWindowingHighlightAlpha = 1.0f; + } + + // Single press toggles NavLayer, long press with L/R apply actual focus on release (until then the window was merely rendered top-most) + if (!IsNavInputDown(ImGuiNavInput_Menu)) + { + g.NavWindowingToggleLayer &= (g.NavWindowingHighlightAlpha < 1.0f); // Once button was held long enough we don't consider it a tap-to-toggle-layer press anymore. + if (g.NavWindowingToggleLayer && g.NavWindow) + apply_toggle_layer = true; + else if (!g.NavWindowingToggleLayer) + apply_focus_window = g.NavWindowingTarget; + g.NavWindowingTarget = NULL; + } + } + + // Keyboard: Focus + if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_NavKeyboard) + { + // Visuals only appears after a brief time after pressing TAB the first time, so that a fast CTRL+TAB doesn't add visual noise + g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // 1.0f + if (IsKeyPressedMap(ImGuiKey_Tab, true)) + NavUpdateWindowingHighlightWindow(g.IO.KeyShift ? +1 : -1); + if (!g.IO.KeyCtrl) + apply_focus_window = g.NavWindowingTarget; + } + + // Keyboard: Press and Release ALT to toggle menu layer + // FIXME: We lack an explicit IO variable for "is the imgui window focused", so compare mouse validity to detect the common case of back-end clearing releases all keys on ALT-TAB + if (IsNavInputTest(ImGuiNavInput_KeyMenu_, ImGuiInputReadMode_Pressed)) + g.NavWindowingToggleLayer = true; + if ((g.ActiveId == 0 || g.ActiveIdAllowOverlap) && g.NavWindowingToggleLayer && IsNavInputTest(ImGuiNavInput_KeyMenu_, ImGuiInputReadMode_Released)) + if (IsMousePosValid(&g.IO.MousePos) == IsMousePosValid(&g.IO.MousePosPrev)) + apply_toggle_layer = true; + + // Move window + if (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoMove)) + { + ImVec2 move_delta; + if (g.NavInputSource == ImGuiInputSource_NavKeyboard && !g.IO.KeyShift) + move_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard, ImGuiInputReadMode_Down); + if (g.NavInputSource == ImGuiInputSource_NavGamepad) + move_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadLStick, ImGuiInputReadMode_Down); + if (move_delta.x != 0.0f || move_delta.y != 0.0f) + { + const float NAV_MOVE_SPEED = 800.0f; + const float move_speed = ImFloor(NAV_MOVE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y)); // FIXME: Doesn't handle variable framerate very well + ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindow; + SetWindowPos(moving_window, moving_window->Pos + move_delta * move_speed, ImGuiCond_Always); + MarkIniSettingsDirty(moving_window); + g.NavDisableMouseHover = true; + } + } + + // Apply final focus + if (apply_focus_window && (g.NavWindow == NULL || apply_focus_window != g.NavWindow->RootWindow)) + { + ClearActiveID(); + g.NavDisableHighlight = false; + g.NavDisableMouseHover = true; + apply_focus_window = NavRestoreLastChildNavWindow(apply_focus_window); + ClosePopupsOverWindow(apply_focus_window, false); + FocusWindow(apply_focus_window); + if (apply_focus_window->NavLastIds[0] == 0) + NavInitWindow(apply_focus_window, false); + + // If the window only has a menu layer, select it directly + if (apply_focus_window->DC.NavLayerActiveMask == (1 << ImGuiNavLayer_Menu)) + g.NavLayer = ImGuiNavLayer_Menu; + } + if (apply_focus_window) + g.NavWindowingTarget = NULL; + + // Apply menu/layer toggle + if (apply_toggle_layer && g.NavWindow) + { + // Move to parent menu if necessary + ImGuiWindow* new_nav_window = g.NavWindow; + while (new_nav_window->ParentWindow + && (new_nav_window->DC.NavLayerActiveMask & (1 << ImGuiNavLayer_Menu)) == 0 + && (new_nav_window->Flags & ImGuiWindowFlags_ChildWindow) != 0 + && (new_nav_window->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) + new_nav_window = new_nav_window->ParentWindow; + if (new_nav_window != g.NavWindow) + { + ImGuiWindow* old_nav_window = g.NavWindow; + FocusWindow(new_nav_window); + new_nav_window->NavLastChildNavWindow = old_nav_window; + } + g.NavDisableHighlight = false; + g.NavDisableMouseHover = true; + + // When entering a regular menu bar with the Alt key, we always reinitialize the navigation ID. + const ImGuiNavLayer new_nav_layer = (g.NavWindow->DC.NavLayerActiveMask & (1 << ImGuiNavLayer_Menu)) ? (ImGuiNavLayer)((int)g.NavLayer ^ 1) : ImGuiNavLayer_Main; + NavRestoreLayer(new_nav_layer); + } +} + +// Window has already passed the IsWindowNavFocusable() +static const char* GetFallbackWindowNameForWindowingList(ImGuiWindow* window) +{ + if (window->Flags & ImGuiWindowFlags_Popup) + return "(Popup)"; + if ((window->Flags & ImGuiWindowFlags_MenuBar) && strcmp(window->Name, "##MainMenuBar") == 0) + return "(Main menu bar)"; + return "(Untitled)"; +} + +// Overlay displayed when using CTRL+TAB. Called by EndFrame(). +void ImGui::NavUpdateWindowingOverlay() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.NavWindowingTarget != NULL); + + if (g.NavWindowingTimer < NAV_WINDOWING_LIST_APPEAR_DELAY) + return; + + if (g.NavWindowingListWindow == NULL) + g.NavWindowingListWindow = FindWindowByName("###NavWindowingList"); + SetNextWindowSizeConstraints(ImVec2(g.IO.DisplaySize.x * 0.20f, g.IO.DisplaySize.y * 0.20f), ImVec2(FLT_MAX, FLT_MAX)); + SetNextWindowPos(g.IO.DisplaySize * 0.5f, ImGuiCond_Always, ImVec2(0.5f, 0.5f)); + PushStyleVar(ImGuiStyleVar_WindowPadding, g.Style.WindowPadding * 2.0f); + Begin("###NavWindowingList", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings); + for (int n = g.WindowsFocusOrder.Size - 1; n >= 0; n--) + { + ImGuiWindow* window = g.WindowsFocusOrder[n]; + if (!IsWindowNavFocusable(window)) + continue; + const char* label = window->Name; + if (label == FindRenderedTextEnd(label)) + label = GetFallbackWindowNameForWindowingList(window); + Selectable(label, g.NavWindowingTarget == window); + } + End(); + PopStyleVar(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] DRAG AND DROP +//----------------------------------------------------------------------------- + +void ImGui::ClearDragDrop() +{ + ImGuiContext& g = *GImGui; + g.DragDropActive = false; + g.DragDropPayload.Clear(); + g.DragDropAcceptFlags = ImGuiDragDropFlags_None; + g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; + g.DragDropAcceptIdCurrRectSurface = FLT_MAX; + g.DragDropAcceptFrameCount = -1; + + g.DragDropPayloadBufHeap.clear(); + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); +} + +// Call when current ID is active. +// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() +bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + bool source_drag_active = false; + ImGuiID source_id = 0; + ImGuiID source_parent_id = 0; + ImGuiMouseButton mouse_button = ImGuiMouseButton_Left; + if (!(flags & ImGuiDragDropFlags_SourceExtern)) + { + source_id = window->DC.LastItemId; + if (source_id != 0 && g.ActiveId != source_id) // Early out for most common case + return false; + if (g.IO.MouseDown[mouse_button] == false) + return false; + + if (source_id == 0) + { + // If you want to use BeginDragDropSource() on an item with no unique identifier for interaction, such as Text() or Image(), you need to: + // A) Read the explanation below, B) Use the ImGuiDragDropFlags_SourceAllowNullID flag, C) Swallow your programmer pride. + if (!(flags & ImGuiDragDropFlags_SourceAllowNullID)) + { + IM_ASSERT(0); + return false; + } + + // Early out + if ((window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HoveredRect) == 0 && (g.ActiveId == 0 || g.ActiveIdWindow != window)) + return false; + + // Magic fallback (=somehow reprehensible) to handle items with no assigned ID, e.g. Text(), Image() + // We build a throwaway ID based on current ID stack + relative AABB of items in window. + // THE IDENTIFIER WON'T SURVIVE ANY REPOSITIONING OF THE WIDGET, so if your widget moves your dragging operation will be canceled. + // We don't need to maintain/call ClearActiveID() as releasing the button will early out this function and trigger !ActiveIdIsAlive. + source_id = window->DC.LastItemId = window->GetIDFromRectangle(window->DC.LastItemRect); + bool is_hovered = ItemHoverable(window->DC.LastItemRect, source_id); + if (is_hovered && g.IO.MouseClicked[mouse_button]) + { + SetActiveID(source_id, window); + FocusWindow(window); + } + if (g.ActiveId == source_id) // Allow the underlying widget to display/return hovered during the mouse release frame, else we would get a flicker. + g.ActiveIdAllowOverlap = is_hovered; + } + else + { + g.ActiveIdAllowOverlap = false; + } + if (g.ActiveId != source_id) + return false; + source_parent_id = window->IDStack.back(); + source_drag_active = IsMouseDragging(mouse_button); + + // Disable navigation and key inputs while dragging + g.ActiveIdUsingNavDirMask = ~(ImU32)0; + g.ActiveIdUsingNavInputMask = ~(ImU32)0; + g.ActiveIdUsingKeyInputMask = ~(ImU64)0; + } + else + { + window = NULL; + source_id = ImHashStr("#SourceExtern"); + source_drag_active = true; + } + + if (source_drag_active) + { + if (!g.DragDropActive) + { + IM_ASSERT(source_id != 0); + ClearDragDrop(); + ImGuiPayload& payload = g.DragDropPayload; + payload.SourceId = source_id; + payload.SourceParentId = source_parent_id; + g.DragDropActive = true; + g.DragDropSourceFlags = flags; + g.DragDropMouseButton = mouse_button; + } + g.DragDropSourceFrameCount = g.FrameCount; + g.DragDropWithinSource = true; + + if (!(flags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + { + // Target can request the Source to not display its tooltip (we use a dedicated flag to make this request explicit) + // We unfortunately can't just modify the source flags and skip the call to BeginTooltip, as caller may be emitting contents. + BeginTooltip(); + if (g.DragDropAcceptIdPrev && (g.DragDropAcceptFlags & ImGuiDragDropFlags_AcceptNoPreviewTooltip)) + { + ImGuiWindow* tooltip_window = g.CurrentWindow; + tooltip_window->SkipItems = true; + tooltip_window->HiddenFramesCanSkipItems = 1; + } + } + + if (!(flags & ImGuiDragDropFlags_SourceNoDisableHover) && !(flags & ImGuiDragDropFlags_SourceExtern)) + window->DC.LastItemStatusFlags &= ~ImGuiItemStatusFlags_HoveredRect; + + return true; + } + return false; +} + +void ImGui::EndDragDropSource() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinSource && "Not after a BeginDragDropSource()?"); + + if (!(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) + EndTooltip(); + + // Discard the drag if have not called SetDragDropPayload() + if (g.DragDropPayload.DataFrameCount == -1) + ClearDragDrop(); + g.DragDropWithinSource = false; +} + +// Use 'cond' to choose to submit payload on drag start or every frame +bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_size, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + ImGuiPayload& payload = g.DragDropPayload; + if (cond == 0) + cond = ImGuiCond_Always; + + IM_ASSERT(type != NULL); + IM_ASSERT(strlen(type) < IM_ARRAYSIZE(payload.DataType) && "Payload type can be at most 32 characters long"); + IM_ASSERT((data != NULL && data_size > 0) || (data == NULL && data_size == 0)); + IM_ASSERT(cond == ImGuiCond_Always || cond == ImGuiCond_Once); + IM_ASSERT(payload.SourceId != 0); // Not called between BeginDragDropSource() and EndDragDropSource() + + if (cond == ImGuiCond_Always || payload.DataFrameCount == -1) + { + // Copy payload + ImStrncpy(payload.DataType, type, IM_ARRAYSIZE(payload.DataType)); + g.DragDropPayloadBufHeap.resize(0); + if (data_size > sizeof(g.DragDropPayloadBufLocal)) + { + // Store in heap + g.DragDropPayloadBufHeap.resize((int)data_size); + payload.Data = g.DragDropPayloadBufHeap.Data; + memcpy(payload.Data, data, data_size); + } + else if (data_size > 0) + { + // Store locally + memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); + payload.Data = g.DragDropPayloadBufLocal; + memcpy(payload.Data, data, data_size); + } + else + { + payload.Data = NULL; + } + payload.DataSize = (int)data_size; + } + payload.DataFrameCount = g.FrameCount; + + return (g.DragDropAcceptFrameCount == g.FrameCount) || (g.DragDropAcceptFrameCount == g.FrameCount - 1); +} + +bool ImGui::BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id) +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindow != hovered_window->RootWindow) + return false; + IM_ASSERT(id != 0); + if (!IsMouseHoveringRect(bb.Min, bb.Max) || (id == g.DragDropPayload.SourceId)) + return false; + if (window->SkipItems) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = bb; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +// We don't use BeginDragDropTargetCustom() and duplicate its code because: +// 1) we use LastItemRectHoveredRect which handles items that pushes a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. +// 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can. +// Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case) +bool ImGui::BeginDragDropTarget() +{ + ImGuiContext& g = *GImGui; + if (!g.DragDropActive) + return false; + + ImGuiWindow* window = g.CurrentWindow; + if (!(window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HoveredRect)) + return false; + ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; + if (hovered_window == NULL || window->RootWindow != hovered_window->RootWindow) + return false; + + const ImRect& display_rect = (window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HasDisplayRect) ? window->DC.LastItemDisplayRect : window->DC.LastItemRect; + ImGuiID id = window->DC.LastItemId; + if (id == 0) + id = window->GetIDFromRectangle(display_rect); + if (g.DragDropPayload.SourceId == id) + return false; + + IM_ASSERT(g.DragDropWithinTarget == false); + g.DragDropTargetRect = display_rect; + g.DragDropTargetId = id; + g.DragDropWithinTarget = true; + return true; +} + +bool ImGui::IsDragDropPayloadBeingAccepted() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive && g.DragDropAcceptIdPrev != 0; +} + +const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiPayload& payload = g.DragDropPayload; + IM_ASSERT(g.DragDropActive); // Not called between BeginDragDropTarget() and EndDragDropTarget() ? + IM_ASSERT(payload.DataFrameCount != -1); // Forgot to call EndDragDropTarget() ? + if (type != NULL && !payload.IsDataType(type)) + return NULL; + + // Accept smallest drag target bounding box, this allows us to nest drag targets conveniently without ordering constraints. + // NB: We currently accept NULL id as target. However, overlapping targets requires a unique ID to function! + const bool was_accepted_previously = (g.DragDropAcceptIdPrev == g.DragDropTargetId); + ImRect r = g.DragDropTargetRect; + float r_surface = r.GetWidth() * r.GetHeight(); + if (r_surface < g.DragDropAcceptIdCurrRectSurface) + { + g.DragDropAcceptFlags = flags; + g.DragDropAcceptIdCurr = g.DragDropTargetId; + g.DragDropAcceptIdCurrRectSurface = r_surface; + } + + // Render default drop visuals + payload.Preview = was_accepted_previously; + flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that lives for 1 frame) + if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) + { + // FIXME-DRAG: Settle on a proper default visuals for drop target. + r.Expand(3.5f); + bool push_clip_rect = !window->ClipRect.Contains(r); + if (push_clip_rect) window->DrawList->PushClipRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1)); + window->DrawList->AddRect(r.Min, r.Max, GetColorU32(ImGuiCol_DragDropTarget), 0.0f, ~0, 2.0f); + if (push_clip_rect) window->DrawList->PopClipRect(); + } + + g.DragDropAcceptFrameCount = g.FrameCount; + payload.Delivery = was_accepted_previously && !IsMouseDown(g.DragDropMouseButton); // For extern drag sources affecting os window focus, it's easier to just test !IsMouseDown() instead of IsMouseReleased() + if (!payload.Delivery && !(flags & ImGuiDragDropFlags_AcceptBeforeDelivery)) + return NULL; + + return &payload; +} + +const ImGuiPayload* ImGui::GetDragDropPayload() +{ + ImGuiContext& g = *GImGui; + return g.DragDropActive ? &g.DragDropPayload : NULL; +} + +// We don't really use/need this now, but added it for the sake of consistency and because we might need it later. +void ImGui::EndDragDropTarget() +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.DragDropActive); + IM_ASSERT(g.DragDropWithinTarget); + g.DragDropWithinTarget = false; +} + +//----------------------------------------------------------------------------- +// [SECTION] LOGGING/CAPTURING +//----------------------------------------------------------------------------- +// All text output from the interface can be captured into tty/file/clipboard. +// By default, tree nodes are automatically opened during logging. +//----------------------------------------------------------------------------- + +// Pass text data straight to log (without being displayed) +void ImGui::LogText(const char* fmt, ...) +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + va_list args; + va_start(args, fmt); + if (g.LogFile) + { + g.LogBuffer.Buf.resize(0); + g.LogBuffer.appendfv(fmt, args); + ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.menu_size(), g.LogFile); + } + else + { + g.LogBuffer.appendfv(fmt, args); + } + va_end(args); +} + +// Internal version that takes a position to decide on newline placement and pad items according to their depth. +// We split text into individual lines to add current tree level padding +void ImGui::LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + if (!text_end) + text_end = FindRenderedTextEnd(text, text_end); + + const bool log_new_line = ref_pos && (ref_pos->y > g.LogLinePosY + 1); + if (ref_pos) + g.LogLinePosY = ref_pos->y; + if (log_new_line) + g.LogLineFirstItem = true; + + const char* text_remaining = text; + if (g.LogDepthRef > window->DC.TreeDepth) // Re-adjust padding if we have popped out of our starting depth + g.LogDepthRef = window->DC.TreeDepth; + const int tree_depth = (window->DC.TreeDepth - g.LogDepthRef); + for (;;) + { + // Split the string. Each new line (after a '\n') is followed by spacing corresponding to the current depth of our log entry. + // We don't add a trailing \n to allow a subsequent item on the same line to be captured. + const char* line_start = text_remaining; + const char* line_end = ImStreolRange(line_start, text_end); + const bool is_first_line = (line_start == text); + const bool is_last_line = (line_end == text_end); + if (!is_last_line || (line_start != line_end)) + { + const int char_count = (int)(line_end - line_start); + if (log_new_line || !is_first_line) + LogText(IM_NEWLINE "%*s%.*s", tree_depth * 4, "", char_count, line_start); + else if (g.LogLineFirstItem) + LogText("%*s%.*s", tree_depth * 4, "", char_count, line_start); + else + LogText(" %.*s", char_count, line_start); + g.LogLineFirstItem = false; + } + else if (log_new_line) + { + // An empty "" string at a different Y position should output a carriage return. + LogText(IM_NEWLINE); + break; + } + + if (is_last_line) + break; + text_remaining = line_end + 1; + } +} + +// Start logging/capturing text output +void ImGui::LogBegin(ImGuiLogType type, int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(g.LogEnabled == false); + IM_ASSERT(g.LogFile == NULL); + IM_ASSERT(g.LogBuffer.empty()); + g.LogEnabled = true; + g.LogType = type; + g.LogDepthRef = window->DC.TreeDepth; + g.LogDepthToExpand = ((auto_open_depth >= 0) ? auto_open_depth : g.LogDepthToExpandDefault); + g.LogLinePosY = FLT_MAX; + g.LogLineFirstItem = true; +} + +void ImGui::LogToTTY(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + IM_UNUSED(auto_open_depth); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + LogBegin(ImGuiLogType_TTY, auto_open_depth); + g.LogFile = stdout; +#endif +} + +// Start logging/capturing text output to given file +void ImGui::LogToFile(int auto_open_depth, const char* filename) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + + // FIXME: We could probably open the file in text mode "at", however note that clipboard/buffer logging will still + // be subject to outputting OS-incompatible carriage return if within strings the user doesn't use IM_NEWLINE. + // By opening the file in binary mode "ab" we have consistent output everywhere. + if (!filename) + filename = g.IO.LogFilename; + if (!filename || !filename[0]) + return; + ImFileHandle f = ImFileOpen(filename, "ab"); + if (!f) + { + IM_ASSERT(0); + return; + } + + LogBegin(ImGuiLogType_File, auto_open_depth); + g.LogFile = f; +} + +// Start logging/capturing text output to clipboard +void ImGui::LogToClipboard(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Clipboard, auto_open_depth); +} + +void ImGui::LogToBuffer(int auto_open_depth) +{ + ImGuiContext& g = *GImGui; + if (g.LogEnabled) + return; + LogBegin(ImGuiLogType_Buffer, auto_open_depth); +} + +void ImGui::LogFinish() +{ + ImGuiContext& g = *GImGui; + if (!g.LogEnabled) + return; + + LogText(IM_NEWLINE); + switch (g.LogType) + { + case ImGuiLogType_TTY: +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + fflush(g.LogFile); +#endif + break; + case ImGuiLogType_File: + ImFileClose(g.LogFile); + break; + case ImGuiLogType_Buffer: + break; + case ImGuiLogType_Clipboard: + if (!g.LogBuffer.empty()) + SetClipboardText(g.LogBuffer.begin()); + break; + case ImGuiLogType_None: + IM_ASSERT(0); + break; + } + + g.LogEnabled = false; + g.LogType = ImGuiLogType_None; + g.LogFile = NULL; + g.LogBuffer.clear(); +} + +// Helper to display logging buttons +// FIXME-OBSOLETE: We should probably obsolete this and let the user have their own helper (this is one of the oldest function alive!) +void ImGui::LogButtons() +{ + ImGuiContext& g = *GImGui; + + PushID("LogButtons"); +#ifndef IMGUI_DISABLE_TTY_FUNCTIONS + const bool log_to_tty = Button("Log To TTY"); SameLine(); +#else + const bool log_to_tty = false; +#endif + const bool log_to_file = Button("Log To File"); SameLine(); + const bool log_to_clipboard = Button("Log To Clipboard"); SameLine(); + PushAllowKeyboardFocus(false); + SetNextItemWidth(80.0f); + SliderInt("Default Depth", &g.LogDepthToExpandDefault, 0, 9, NULL); + PopAllowKeyboardFocus(); + PopID(); + + // Start logging at the end of the function so that the buttons don't appear in the log + if (log_to_tty) + LogToTTY(); + if (log_to_file) + LogToFile(); + if (log_to_clipboard) + LogToClipboard(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] SETTINGS +//----------------------------------------------------------------------------- +// - UpdateSettings() [Internal] +// - MarkIniSettingsDirty() [Internal] +// - CreateNewWindowSettings() [Internal] +// - FindWindowSettings() [Internal] +// - FindOrCreateWindowSettings() [Internal] +// - FindSettingsHandler() [Internal] +// - ClearIniSettings() [Internal] +// - LoadIniSettingsFromDisk() +// - LoadIniSettingsFromMemory() +// - SaveIniSettingsToDisk() +// - SaveIniSettingsToMemory() +// - WindowSettingsHandler_***() [Internal] +//----------------------------------------------------------------------------- + +// Called by NewFrame() +void ImGui::UpdateSettings() +{ + // Load settings on first frame (if not explicitly loaded manually before) + ImGuiContext& g = *GImGui; + if (!g.SettingsLoaded) + { + IM_ASSERT(g.SettingsWindows.empty()); + if (g.IO.IniFilename) + LoadIniSettingsFromDisk(g.IO.IniFilename); + g.SettingsLoaded = true; + } + + // Save settings (with a delay after the last modification, so we don't spam disk too much) + if (g.SettingsDirtyTimer > 0.0f) + { + g.SettingsDirtyTimer -= g.IO.DeltaTime; + if (g.SettingsDirtyTimer <= 0.0f) + { + if (g.IO.IniFilename != NULL) + SaveIniSettingsToDisk(g.IO.IniFilename); + else + g.IO.WantSaveIniSettings = true; // Let user know they can call SaveIniSettingsToMemory(). user will need to clear io.WantSaveIniSettings themselves. + g.SettingsDirtyTimer = 0.0f; + } + } +} + +void ImGui::MarkIniSettingsDirty() +{ + ImGuiContext& g = *GImGui; + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +void ImGui::MarkIniSettingsDirty(ImGuiWindow* window) +{ + ImGuiContext& g = *GImGui; + if (!(window->Flags & ImGuiWindowFlags_NoSavedSettings)) + if (g.SettingsDirtyTimer <= 0.0f) + g.SettingsDirtyTimer = g.IO.IniSavingRate; +} + +ImGuiWindowSettings* ImGui::CreateNewWindowSettings(const char* name) +{ + ImGuiContext& g = *GImGui; + +#if !IMGUI_DEBUG_INI_SETTINGS + // Skip to the "###" marker if any. We don't skip past to match the behavior of GetID() + // Preserve the full string when IMGUI_DEBUG_INI_SETTINGS is set to make .ini inspection easier. + if (const char* p = strstr(name, "###")) + name = p; +#endif + const size_t name_len = strlen(name); + + // Allocate chunk + const size_t chunk_size = sizeof(ImGuiWindowSettings) + name_len + 1; + ImGuiWindowSettings* settings = g.SettingsWindows.alloc_chunk(chunk_size); + IM_PLACEMENT_NEW(settings) ImGuiWindowSettings(); + settings->ID = ImHashStr(name, name_len); + memcpy(settings->GetName(), name, name_len + 1); // Store with zero terminator + + return settings; +} + +ImGuiWindowSettings* ImGui::FindWindowSettings(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->ID == id) + return settings; + return NULL; +} + +ImGuiWindowSettings* ImGui::FindOrCreateWindowSettings(const char* name) +{ + if (ImGuiWindowSettings* settings = FindWindowSettings(ImHashStr(name))) + return settings; + return CreateNewWindowSettings(name); +} + +ImGuiSettingsHandler* ImGui::FindSettingsHandler(const char* type_name) +{ + ImGuiContext& g = *GImGui; + const ImGuiID type_hash = ImHashStr(type_name); + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].TypeHash == type_hash) + return &g.SettingsHandlers[handler_n]; + return NULL; +} + +void ImGui::ClearIniSettings() +{ + ImGuiContext& g = *GImGui; + g.SettingsIniData.clear(); + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].ClearAllFn) + g.SettingsHandlers[handler_n].ClearAllFn(&g, &g.SettingsHandlers[handler_n]); +} + +void ImGui::LoadIniSettingsFromDisk(const char* ini_filename) +{ + size_t file_data_size = 0; + char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size); + if (!file_data) + return; + LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); + IM_FREE(file_data); +} + +// Zero-tolerance, no error reporting, cheap .ini parsing +void ImGui::LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size) +{ + ImGuiContext& g = *GImGui; + IM_ASSERT(g.Initialized); + //IM_ASSERT(!g.WithinFrameScope && "Cannot be called between NewFrame() and EndFrame()"); + //IM_ASSERT(g.SettingsLoaded == false && g.FrameCount == 0); + + // For user convenience, we allow passing a non zero-terminated string (hence the ini_size parameter). + // For our convenience and to make the code simpler, we'll also write zero-terminators within the buffer. So let's create a writable copy.. + if (ini_size == 0) + ini_size = strlen(ini_data); + g.SettingsIniData.Buf.resize((int)ini_size + 1); + char* const buf = g.SettingsIniData.Buf.Data; + char* const buf_end = buf + ini_size; + memcpy(buf, ini_data, ini_size); + buf_end[0] = 0; + + // Call pre-read handlers + // Some types will clear their data (e.g. dock information) some types will allow merge/override (window) + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].ReadInitFn) + g.SettingsHandlers[handler_n].ReadInitFn(&g, &g.SettingsHandlers[handler_n]); + + void* entry_data = NULL; + ImGuiSettingsHandler* entry_handler = NULL; + + char* line_end = NULL; + for (char* line = buf; line < buf_end; line = line_end + 1) + { + // Skip new lines markers, then find end of the line + while (*line == '\n' || *line == '\r') + line++; + line_end = line; + while (line_end < buf_end && *line_end != '\n' && *line_end != '\r') + line_end++; + line_end[0] = 0; + if (line[0] == ';') + continue; + if (line[0] == '[' && line_end > line && line_end[-1] == ']') + { + // Parse "[Type][Name]". Note that 'Name' can itself contains [] characters, which is acceptable with the current format and parsing code. + line_end[-1] = 0; + const char* name_end = line_end - 1; + const char* type_start = line + 1; + char* type_end = (char*)(void*)ImStrchrRange(type_start, name_end, ']'); + const char* name_start = type_end ? ImStrchrRange(type_end + 1, name_end, '[') : NULL; + if (!type_end || !name_start) + continue; + *type_end = 0; // Overwrite first ']' + name_start++; // Skip second '[' + entry_handler = FindSettingsHandler(type_start); + entry_data = entry_handler ? entry_handler->ReadOpenFn(&g, entry_handler, name_start) : NULL; + } + else if (entry_handler != NULL && entry_data != NULL) + { + // Let type handler parse the line + entry_handler->ReadLineFn(&g, entry_handler, entry_data, line); + } + } + g.SettingsLoaded = true; + + // [DEBUG] Restore untouched copy so it can be browsed in Metrics (not strictly necessary) + memcpy(buf, ini_data, ini_size); + + // Call post-read handlers + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + if (g.SettingsHandlers[handler_n].ApplyAllFn) + g.SettingsHandlers[handler_n].ApplyAllFn(&g, &g.SettingsHandlers[handler_n]); +} + +void ImGui::SaveIniSettingsToDisk(const char* ini_filename) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + if (!ini_filename) + return; + + size_t ini_data_size = 0; + const char* ini_data = SaveIniSettingsToMemory(&ini_data_size); + ImFileHandle f = ImFileOpen(ini_filename, "wt"); + if (!f) + return; + ImFileWrite(ini_data, sizeof(char), ini_data_size, f); + ImFileClose(f); +} + +// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer +const char* ImGui::SaveIniSettingsToMemory(size_t* out_size) +{ + ImGuiContext& g = *GImGui; + g.SettingsDirtyTimer = 0.0f; + g.SettingsIniData.Buf.resize(0); + g.SettingsIniData.Buf.push_back(0); + for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) + { + ImGuiSettingsHandler* handler = &g.SettingsHandlers[handler_n]; + handler->WriteAllFn(&g, handler, &g.SettingsIniData); + } + if (out_size) + *out_size = (size_t)g.SettingsIniData.menu_size(); + return g.SettingsIniData.c_str(); +} + +static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Windows.Size; i++) + g.Windows[i]->SettingsOffset = -1; + g.SettingsWindows.clear(); +} + +static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) +{ + ImGuiWindowSettings* settings = ImGui::FindOrCreateWindowSettings(name); + ImGuiID id = settings->ID; + *settings = ImGuiWindowSettings(); // Clear existing if recycling previous entry + settings->ID = id; + settings->WantApply = true; + return (void*)settings; +} + +static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) +{ + ImGuiWindowSettings* settings = (ImGuiWindowSettings*)entry; + int x, y; + int i; + if (sscanf(line, "Pos=%i,%i", &x, &y) == 2) { settings->Pos = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Size=%i,%i", &x, &y) == 2) { settings->Size = ImVec2ih((short)x, (short)y); } + else if (sscanf(line, "Collapsed=%d", &i) == 1) { settings->Collapsed = (i != 0); } +} + +// Apply to existing windows (if any) +static void WindowSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) +{ + ImGuiContext& g = *ctx; + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + if (settings->WantApply) + { + if (ImGuiWindow* window = ImGui::FindWindowByID(settings->ID)) + ApplyWindowSettings(window, settings); + settings->WantApply = false; + } +} + +static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) +{ + // Gather data from windows that were active during this session + // (if a window wasn't opened in this session we preserve its settings) + ImGuiContext& g = *ctx; + for (int i = 0; i != g.Windows.Size; i++) + { + ImGuiWindow* window = g.Windows[i]; + if (window->Flags & ImGuiWindowFlags_NoSavedSettings) + continue; + + ImGuiWindowSettings* settings = (window->SettingsOffset != -1) ? g.SettingsWindows.ptr_from_offset(window->SettingsOffset) : ImGui::FindWindowSettings(window->ID); + if (!settings) + { + settings = ImGui::CreateNewWindowSettings(window->Name); + window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); + } + IM_ASSERT(settings->ID == window->ID); + settings->Pos = ImVec2ih((short)window->Pos.x, (short)window->Pos.y); + settings->Size = ImVec2ih((short)window->SizeFull.x, (short)window->SizeFull.y); + settings->Collapsed = window->Collapsed; + } + + // Write to text buffer + buf->reserve(buf->menu_size() + g.SettingsWindows.menu_size() * 6); // ballpark reserve + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + { + const char* settings_name = settings->GetName(); + buf->appendf("[%s][%s]\n", handler->TypeName, settings_name); + buf->appendf("Pos=%d,%d\n", settings->Pos.x, settings->Pos.y); + buf->appendf("Size=%d,%d\n", settings->Size.x, settings->Size.y); + buf->appendf("Collapsed=%d\n", settings->Collapsed); + buf->append("\n"); + } +} + + +//----------------------------------------------------------------------------- +// [SECTION] VIEWPORTS, PLATFORM WINDOWS +//----------------------------------------------------------------------------- + +// (this section is filled in the 'docking' branch) + + +//----------------------------------------------------------------------------- +// [SECTION] DOCKING +//----------------------------------------------------------------------------- + +// (this section is filled in the 'docking' branch) + + +//----------------------------------------------------------------------------- +// [SECTION] PLATFORM DEPENDENT HELPERS +//----------------------------------------------------------------------------- + +#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) + +#ifdef _MSC_VER +#pragma comment(lib, "user32") +#pragma comment(lib, "kernel32") +#endif + +// Win32 clipboard implementation +// We use g.ClipboardHandlerData for temporary storage to ensure it is freed on Shutdown() +static const char* GetClipboardTextFn_DefaultImpl(void*) +{ + ImGuiContext& g = *GImGui; + g.ClipboardHandlerData.clear(); + if (!::OpenClipboard(NULL)) + return NULL; + HANDLE wbuf_handle = ::GetClipboardData(CF_UNICODETEXT); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return NULL; + } + if (const WCHAR* wbuf_global = (const WCHAR*)::GlobalLock(wbuf_handle)) + { + int buf_len = ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, NULL, 0, NULL, NULL); + g.ClipboardHandlerData.resize(buf_len); + ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, g.ClipboardHandlerData.Data, buf_len, NULL, NULL); + } + ::GlobalUnlock(wbuf_handle); + ::CloseClipboard(); + return g.ClipboardHandlerData.Data; +} + +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!::OpenClipboard(NULL)) + return; + const int wbuf_length = ::MultiByteToWideChar(CP_UTF8, 0, text, -1, NULL, 0); + HGLOBAL wbuf_handle = ::GlobalAlloc(GMEM_MOVEABLE, (SIZE_T)wbuf_length * sizeof(WCHAR)); + if (wbuf_handle == NULL) + { + ::CloseClipboard(); + return; + } + WCHAR* wbuf_global = (WCHAR*)::GlobalLock(wbuf_handle); + ::MultiByteToWideChar(CP_UTF8, 0, text, -1, wbuf_global, wbuf_length); + ::GlobalUnlock(wbuf_handle); + ::EmptyClipboard(); + if (::SetClipboardData(CF_UNICODETEXT, wbuf_handle) == NULL) + ::GlobalFree(wbuf_handle); + ::CloseClipboard(); +} + +#elif defined(__APPLE__) && TARGET_OS_OSX && defined(IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS) + +#include // Use old API to avoid need for separate .mm file +static PasteboardRef main_clipboard = 0; + +// OSX clipboard implementation +// If you enable this you will need to add '-framework ApplicationServices' to your linker command-line! +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardClear(main_clipboard); + CFDataRef cf_data = CFDataCreate(kCFAllocatorDefault, (const UInt8*)text, strlen(text)); + if (cf_data) + { + PasteboardPutItemFlavor(main_clipboard, (PasteboardItemID)1, CFSTR("public.utf8-plain-text"), cf_data, 0); + CFRelease(cf_data); + } +} + +static const char* GetClipboardTextFn_DefaultImpl(void*) +{ + if (!main_clipboard) + PasteboardCreate(kPasteboardClipboard, &main_clipboard); + PasteboardSynchronize(main_clipboard); + + ItemCount item_count = 0; + PasteboardGetItemCount(main_clipboard, &item_count); + for (ItemCount i = 0; i < item_count; i++) + { + PasteboardItemID item_id = 0; + PasteboardGetItemIdentifier(main_clipboard, i + 1, &item_id); + CFArrayRef flavor_type_array = 0; + PasteboardCopyItemFlavors(main_clipboard, item_id, &flavor_type_array); + for (CFIndex j = 0, nj = CFArrayGetCount(flavor_type_array); j < nj; j++) + { + CFDataRef cf_data; + if (PasteboardCopyItemFlavorData(main_clipboard, item_id, CFSTR("public.utf8-plain-text"), &cf_data) == noErr) + { + ImGuiContext& g = *GImGui; + g.ClipboardHandlerData.clear(); + int length = (int)CFDataGetLength(cf_data); + g.ClipboardHandlerData.resize(length + 1); + CFDataGetBytes(cf_data, CFRangeMake(0, length), (UInt8*)g.ClipboardHandlerData.Data); + g.ClipboardHandlerData[length] = 0; + CFRelease(cf_data); + return g.ClipboardHandlerData.Data; + } + } + } + return NULL; +} + +#else + +// Local Dear ImGui-only clipboard implementation, if user hasn't defined better clipboard handlers. +static const char* GetClipboardTextFn_DefaultImpl(void*) +{ + ImGuiContext& g = *GImGui; + return g.ClipboardHandlerData.empty() ? NULL : g.ClipboardHandlerData.begin(); +} + +static void SetClipboardTextFn_DefaultImpl(void*, const char* text) +{ + ImGuiContext& g = *GImGui; + g.ClipboardHandlerData.clear(); + const char* text_end = text + strlen(text); + g.ClipboardHandlerData.resize((int)(text_end - text) + 1); + memcpy(&g.ClipboardHandlerData[0], text, (size_t)(text_end - text)); + g.ClipboardHandlerData[(int)(text_end - text)] = 0; +} + +#endif + +// Win32 API IME support (for Asian languages, etc.) +#if defined(_WIN32) && !defined(__GNUC__) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) + +#include +#ifdef _MSC_VER +#pragma comment(lib, "imm32") +#endif + +static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y) +{ + // Notify OS Input Method Editor of text input position + ImGuiIO& io = ImGui::GetIO(); + if (HWND hwnd = (HWND)io.ImeWindowHandle) + if (HIMC himc = ::ImmGetContext(hwnd)) + { + COMPOSITIONFORM cf; + cf.ptCurrentPos.x = x; + cf.ptCurrentPos.y = y; + cf.dwStyle = CFS_FORCE_POSITION; + ::ImmSetCompositionWindow(himc, &cf); + ::ImmReleaseContext(hwnd, himc); + } +} + +#else + +static void ImeSetInputScreenPosFn_DefaultImpl(int, int) {} + +#endif + +//----------------------------------------------------------------------------- +// [SECTION] METRICS/DEBUG WINDOW +//----------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_METRICS_WINDOW +// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds. +static void MetricsHelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +void ImGui::ShowMetricsWindow(bool* p_open) +{ + if (!ImGui::Begin("Dear ImGui Metrics", p_open)) + { + ImGui::End(); + return; + } + + // Debugging enums + enum { WRT_OuterRect, WRT_OuterRectClipped, WRT_InnerRect, WRT_InnerClipRect, WRT_WorkRect, WRT_Content, WRT_ContentRegionRect, WRT_Count }; // Windows Rect Type + const char* wrt_rects_names[WRT_Count] = { "OuterRect", "OuterRectClipped", "InnerRect", "InnerClipRect", "WorkRect", "Content", "ContentRegionRect" }; + enum { TRT_OuterRect, TRT_WorkRect, TRT_HostClipRect, TRT_InnerClipRect, TRT_BackgroundClipRect, TRT_ColumnsRect, TRT_ColumnsClipRect, TRT_ColumnsContentHeadersUsed, TRT_ColumnsContentHeadersIdeal, TRT_ColumnsContentRowsFrozen, TRT_ColumnsContentRowsUnfrozen, TRT_Count }; // Tables Rect Type + const char* trt_rects_names[TRT_Count] = { "OuterRect", "WorkRect", "HostClipRect", "InnerClipRect", "BackgroundClipRect", "ColumnsRect", "ColumnsClipRect", "ColumnsContentHeadersUsed", "ColumnsContentHeadersIdeal", "ColumnsContentRowsFrozen", "ColumnsContentRowsUnfrozen" }; + + // State + static bool show_windows_rects = false; + static int show_windows_rect_type = WRT_WorkRect; + static bool show_windows_begin_order = false; + static bool show_tables_rects = false; + static int show_tables_rect_type = TRT_WorkRect; + static bool show_drawcmd_mesh = true; + static bool show_drawcmd_aabb = true; + + // Basic info + ImGuiContext& g = *GImGui; + ImGuiIO& io = ImGui::GetIO(); + ImGui::Text("Dear ImGui %s", ImGui::GetVersion()); + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); + ImGui::Text("%d vertices, %d indices (%d triangles)", io.MetricsRenderVertices, io.MetricsRenderIndices, io.MetricsRenderIndices / 3); + ImGui::Text("%d active windows (%d visible)", io.MetricsActiveWindows, io.MetricsRenderWindows); + ImGui::Text("%d active allocations", io.MetricsActiveAllocations); + ImGui::Separator(); + + // Helper functions to display common structures: + // - NodeDrawList() + // - NodeColumns() + // - NodeWindow() + // - NodeWindows() + // - NodeTabBar() + // - NodeStorage() + struct Funcs + { + static ImRect GetWindowRect(ImGuiWindow* window, int rect_type) + { + if (rect_type == WRT_OuterRect) { return window->Rect(); } + else if (rect_type == WRT_OuterRectClipped) { return window->OuterRectClipped; } + else if (rect_type == WRT_InnerRect) { return window->InnerRect; } + else if (rect_type == WRT_InnerClipRect) { return window->InnerClipRect; } + else if (rect_type == WRT_WorkRect) { return window->WorkRect; } + else if (rect_type == WRT_Content) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSize); } + else if (rect_type == WRT_ContentRegionRect) { return window->ContentRegionRect; } + IM_ASSERT(0); + return ImRect(); + } + + static void NodeDrawCmdShowMeshAndBoundingBox(ImGuiWindow* window, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, int elem_offset, bool show_mesh, bool show_aabb) + { + IM_ASSERT(show_mesh || show_aabb); + ImDrawList* fg_draw_list = GetForegroundDrawList(window); // Render additional visuals into the top-most draw list + ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; + + // Draw wire-frame version of all triangles + ImRect clip_rect = draw_cmd->ClipRect; + ImRect vtxs_rect(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); + ImDrawListFlags backup_flags = fg_draw_list->Flags; + fg_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + for (unsigned int base_idx = elem_offset; base_idx < (elem_offset + draw_cmd->ElemCount); base_idx += 3) + { + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++) + { + ImVec2 p = draw_list->VtxBuffer[idx_buffer ? idx_buffer[base_idx + n] : (base_idx + n)].pos; + triangle[n] = p; + vtxs_rect.Add(p); + } + if (show_mesh) + fg_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), true, 1.0f); // In yellow: mesh triangles + } + // Draw bounding boxes + if (show_aabb) + { + fg_draw_list->AddRect(ImFloor(clip_rect.Min), ImFloor(clip_rect.Max), IM_COL32(255, 0, 255, 255)); // In pink: clipping rectangle submitted to GPU + fg_draw_list->AddRect(ImFloor(vtxs_rect.Min), ImFloor(vtxs_rect.Max), IM_COL32(0, 255, 255, 255)); // In cyan: bounding box of triangles + } + fg_draw_list->Flags = backup_flags; + } + + static void NodeDrawList(ImGuiWindow* window, ImDrawList* draw_list, const char* label) + { + bool node_open = ImGui::TreeNode(draw_list, "%s: '%s' %d vtx, %d indices, %d cmds", label, draw_list->_OwnerName ? draw_list->_OwnerName : "", draw_list->VtxBuffer.Size, draw_list->IdxBuffer.Size, draw_list->CmdBuffer.Size); + if (draw_list == ImGui::GetWindowDrawList()) + { + ImGui::SameLine(); + ImGui::TextColored(ImVec4(1.0f, 0.4f, 0.4f, 1.0f), "CURRENTLY APPENDING"); // Can't display stats for active draw list! (we don't have the data double-buffered) + if (node_open) ImGui::TreePop(); + return; + } + + ImDrawList* fg_draw_list = GetForegroundDrawList(window); // Render additional visuals into the top-most draw list + if (window && IsItemHovered()) + fg_draw_list->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!node_open) + return; + + if (window && !window->WasActive) + ImGui::TextDisabled("Warning: owning Window is inactive. This DrawList is not being rendered!"); + + unsigned int elem_offset = 0; + for (const ImDrawCmd* pcmd = draw_list->CmdBuffer.begin(); pcmd < draw_list->CmdBuffer.end(); elem_offset += pcmd->ElemCount, pcmd++) + { + if (pcmd->UserCallback == NULL && pcmd->ElemCount == 0) + continue; + if (pcmd->UserCallback) + { + ImGui::BulletText("Callback %p, user_data %p", pcmd->UserCallback, pcmd->UserCallbackData); + continue; + } + + ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; + char buf[300]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "DrawCmd:%5d triangles, Tex 0x%p, ClipRect (%4.0f,%4.0f)-(%4.0f,%4.0f)", + pcmd->ElemCount / 3, (void*)(intptr_t)pcmd->TextureId, + pcmd->ClipRect.x, pcmd->ClipRect.y, pcmd->ClipRect.z, pcmd->ClipRect.w); + bool pcmd_node_open = ImGui::TreeNode((void*)(pcmd - draw_list->CmdBuffer.begin()), "%s", buf); + if (ImGui::IsItemHovered() && (show_drawcmd_mesh || show_drawcmd_aabb) && fg_draw_list) + NodeDrawCmdShowMeshAndBoundingBox(window, draw_list, pcmd, elem_offset, show_drawcmd_mesh, show_drawcmd_aabb); + if (!pcmd_node_open) + continue; + + // Calculate approximate coverage area (touched pixel count) + // This will be in pixels squared as long there's no post-scaling happening to the renderer output. + float total_area = 0.0f; + for (unsigned int base_idx = elem_offset; base_idx < (elem_offset + pcmd->ElemCount); base_idx += 3) + { + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++) + triangle[n] = draw_list->VtxBuffer[idx_buffer ? idx_buffer[base_idx + n] : (base_idx + n)].pos; + total_area += ImTriangleArea(triangle[0], triangle[1], triangle[2]); + } + + // Display vertex information summary. Hover to get all triangles drawn in wire-frame + ImFormatString(buf, IM_ARRAYSIZE(buf), "Mesh: ElemCount: %d, VtxOffset: +%d, IdxOffset: +%d, Area: ~%0.f px", pcmd->ElemCount, pcmd->VtxOffset, pcmd->IdxOffset, total_area); + ImGui::Selectable(buf); + if (ImGui::IsItemHovered() && fg_draw_list) + NodeDrawCmdShowMeshAndBoundingBox(window, draw_list, pcmd, elem_offset, true, false); + + // Display individual triangles/vertices. Hover on to get the corresponding triangle highlighted. + ImGuiListClipper clipper; + clipper.Begin(pcmd->ElemCount / 3); // Manually coarse clip our print out of individual vertices to save CPU, only items that may be visible. + while (clipper.Step()) + for (int prim = clipper.DisplayStart, idx_i = elem_offset + clipper.DisplayStart * 3; prim < clipper.DisplayEnd; prim++) + { + char* buf_p = buf, *buf_end = buf + IM_ARRAYSIZE(buf); + ImVec2 triangle[3]; + for (int n = 0; n < 3; n++, idx_i++) + { + ImDrawVert& v = draw_list->VtxBuffer[idx_buffer ? idx_buffer[idx_i] : idx_i]; + triangle[n] = v.pos; + buf_p += ImFormatString(buf_p, buf_end - buf_p, "%s %04d: pos (%8.2f,%8.2f), uv (%.6f,%.6f), col %08X\n", + (n == 0) ? "Vert:" : " ", idx_i, v.pos.x, v.pos.y, v.uv.x, v.uv.y, v.col); + } + + ImGui::Selectable(buf, false); + if (fg_draw_list && ImGui::IsItemHovered()) + { + ImDrawListFlags backup_flags = fg_draw_list->Flags; + fg_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. + fg_draw_list->AddPolyline(triangle, 3, IM_COL32(255,255,0,255), true, 1.0f); + fg_draw_list->Flags = backup_flags; + } + } + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + static void NodeColumns(const ImGuiColumns* columns) + { + if (!ImGui::TreeNode((void*)(uintptr_t)columns->ID, "Columns Id: 0x%08X, Count: %d, Flags: 0x%04X", columns->ID, columns->Count, columns->Flags)) + return; + ImGui::BulletText("Width: %.1f (MinX: %.1f, MaxX: %.1f)", columns->OffMaxX - columns->OffMinX, columns->OffMinX, columns->OffMaxX); + for (int column_n = 0; column_n < columns->Columns.Size; column_n++) + ImGui::BulletText("Column %02d: OffsetNorm %.3f (= %.1f px)", column_n, columns->Columns[column_n].OffsetNorm, GetColumnOffsetFromNorm(columns, columns->Columns[column_n].OffsetNorm)); + ImGui::TreePop(); + } + + static void NodeWindows(ImVector& windows, const char* label) + { + if (!ImGui::TreeNode(label, "%s (%d)", label, windows.Size)) + return; + ImGui::Text("(In front-to-back order:)"); + for (int i = windows.Size - 1; i >= 0; i--) // Iterate front to back + { + ImGui::PushID(windows[i]); + Funcs::NodeWindow(windows[i], "Window"); + ImGui::PopID(); + } + ImGui::TreePop(); + } + + static void NodeWindow(ImGuiWindow* window, const char* label) + { + if (window == NULL) + { + ImGui::BulletText("%s: NULL", label); + return; + } + + ImGuiContext& g = *GImGui; + const bool is_active = window->WasActive; + ImGuiTreeNodeFlags tree_node_flags = (window == g.NavWindow) ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + const bool open = ImGui::TreeNodeEx(label, tree_node_flags, "%s '%s'%s", label, window->Name, is_active ? "" : " *Inactive*"); + if (!is_active) { PopStyleColor(); } + if (ImGui::IsItemHovered() && is_active) + ImGui::GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); + if (!open) + return; + + if (window->MemoryCompacted) + ImGui::TextDisabled("Note: some memory buffers have been compacted/freed."); + + ImGuiWindowFlags flags = window->Flags; + NodeDrawList(window, window->DrawList, "DrawList"); + ImGui::BulletText("Pos: (%.1f,%.1f), Size: (%.1f,%.1f), ContentSize (%.1f,%.1f)", window->Pos.x, window->Pos.y, window->Size.x, window->Size.y, window->ContentSize.x, window->ContentSize.y); + ImGui::BulletText("Flags: 0x%08X (%s%s%s%s%s%s%s%s%s..)", flags, + (flags & ImGuiWindowFlags_ChildWindow) ? "Child " : "", (flags & ImGuiWindowFlags_Tooltip) ? "Tooltip " : "", (flags & ImGuiWindowFlags_Popup) ? "Popup " : "", + (flags & ImGuiWindowFlags_Modal) ? "Modal " : "", (flags & ImGuiWindowFlags_ChildMenu) ? "ChildMenu " : "", (flags & ImGuiWindowFlags_NoSavedSettings) ? "NoSavedSettings " : "", + (flags & ImGuiWindowFlags_NoMouseInputs)? "NoMouseInputs":"", (flags & ImGuiWindowFlags_NoNavInputs) ? "NoNavInputs" : "", (flags & ImGuiWindowFlags_AlwaysAutoResize) ? "AlwaysAutoResize" : ""); + ImGui::BulletText("Scroll: (%.2f/%.2f,%.2f/%.2f) Scrollbar:%s%s", window->Scroll.x, window->ScrollMax.x, window->Scroll.y, window->ScrollMax.y, window->ScrollbarX ? "X" : "", window->ScrollbarY ? "Y" : ""); + ImGui::BulletText("Active: %d/%d, WriteAccessed: %d, BeginOrderWithinContext: %d", window->Active, window->WasActive, window->WriteAccessed, (window->Active || window->WasActive) ? window->BeginOrderWithinContext : -1); + ImGui::BulletText("Appearing: %d, Hidden: %d (CanSkip %d Cannot %d), SkipItems: %d", window->Appearing, window->Hidden, window->HiddenFramesCanSkipItems, window->HiddenFramesCannotSkipItems, window->SkipItems); + ImGui::BulletText("NavLastIds: 0x%08X,0x%08X, NavLayerActiveMask: %X", window->NavLastIds[0], window->NavLastIds[1], window->DC.NavLayerActiveMask); + ImGui::BulletText("NavLastChildNavWindow: %s", window->NavLastChildNavWindow ? window->NavLastChildNavWindow->Name : "NULL"); + if (!window->NavRectRel[0].IsInverted()) + ImGui::BulletText("NavRectRel[0]: (%.1f,%.1f)(%.1f,%.1f)", window->NavRectRel[0].Min.x, window->NavRectRel[0].Min.y, window->NavRectRel[0].Max.x, window->NavRectRel[0].Max.y); + else + ImGui::BulletText("NavRectRel[0]: "); + if (window->RootWindow != window) NodeWindow(window->RootWindow, "RootWindow"); + if (window->ParentWindow != NULL) NodeWindow(window->ParentWindow, "ParentWindow"); + if (window->DC.ChildWindows.Size > 0) NodeWindows(window->DC.ChildWindows, "ChildWindows"); + if (window->ColumnsStorage.Size > 0 && ImGui::TreeNode("Columns", "Columns sets (%d)", window->ColumnsStorage.Size)) + { + for (int n = 0; n < window->ColumnsStorage.Size; n++) + NodeColumns(&window->ColumnsStorage[n]); + ImGui::TreePop(); + } + NodeStorage(&window->StateStorage, "Storage"); + ImGui::TreePop(); + } + + static void NodeWindowSettings(ImGuiWindowSettings* settings) + { + ImGui::Text("0x%08X \"%s\" Pos (%d,%d) Size (%d,%d) Collapsed=%d", + settings->ID, settings->GetName(), settings->Pos.x, settings->Pos.y, settings->Size.x, settings->Size.y, settings->Collapsed); + } + + static void NodeTabBar(ImGuiTabBar* tab_bar) + { + // Standalone tab bars (not associated to docking/windows functionality) currently hold no discernible strings. + char buf[256]; + char* p = buf; + const char* buf_end = buf + IM_ARRAYSIZE(buf); + const bool is_active = (tab_bar->PrevFrameVisible >= ImGui::GetFrameCount() - 2); + p += ImFormatString(p, buf_end - p, "Tab Bar 0x%08X (%d tabs)%s", tab_bar->ID, tab_bar->Tabs.Size, is_active ? "" : " *Inactive*"); + IM_UNUSED(p); + if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } + bool open = ImGui::TreeNode(tab_bar, "%s", buf); + if (!is_active) { PopStyleColor(); } + if (is_active && ImGui::IsItemHovered()) + { + ImDrawList* draw_list = ImGui::GetForegroundDrawList(); + draw_list->AddRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, IM_COL32(255, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); + } + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + const ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + ImGui::PushID(tab); + if (ImGui::SmallButton("<")) { TabBarQueueReorder(tab_bar, tab, -1); } ImGui::SameLine(0, 2); + if (ImGui::SmallButton(">")) { TabBarQueueReorder(tab_bar, tab, +1); } ImGui::SameLine(); + ImGui::Text("%02d%c Tab 0x%08X '%s' Offset: %.1f, Width: %.1f/%.1f", tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID, (tab->NameOffset != -1) ? tab_bar->GetTabName(tab) : "", tab->Offset, tab->Width, tab->ContentWidth); + ImGui::PopID(); + } + ImGui::TreePop(); + } + } + + static void NodeStorage(ImGuiStorage* storage, const char* label) + { + if (!ImGui::TreeNode(label, "%s: %d entries, %d bytes", label, storage->Data.Size, storage->Data.size_in_bytes())) + return; + for (int n = 0; n < storage->Data.Size; n++) + { + const ImGuiStorage::ImGuiStoragePair& p = storage->Data[n]; + ImGui::BulletText("Key 0x%08X Value { i: %d }", p.key, p.val_i); // Important: we currently don't store a type, real value may not be integer. + } + ImGui::TreePop(); + } + }; + + // Tools + if (ImGui::TreeNode("Tools")) + { + // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. + if (ImGui::Button("Item Picker..")) + ImGui::DebugStartItemPicker(); + ImGui::SameLine(); + MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); + + ImGui::Checkbox("Show windows begin order", &show_windows_begin_order); + ImGui::Checkbox("Show windows rectangles", &show_windows_rects); + ImGui::SameLine(); + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 12); + show_windows_rects |= ImGui::Combo("##show_windows_rect_type", &show_windows_rect_type, wrt_rects_names, WRT_Count, WRT_Count); + if (show_windows_rects && g.NavWindow) + { + ImGui::BulletText("'%s':", g.NavWindow->Name); + ImGui::Indent(); + for (int rect_n = 0; rect_n < WRT_Count; rect_n++) + { + ImRect r = Funcs::GetWindowRect(g.NavWindow, rect_n); + ImGui::Text("(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), wrt_rects_names[rect_n]); + } + ImGui::Unindent(); + } + ImGui::Checkbox("Show mesh when hovering ImDrawCmd", &show_drawcmd_mesh); + ImGui::Checkbox("Show bounding boxes when hovering ImDrawCmd", &show_drawcmd_aabb); + ImGui::TreePop(); + } + + // Contents + Funcs::NodeWindows(g.Windows, "Windows"); + //Funcs::NodeWindows(g.WindowsFocusOrder, "WindowsFocusOrder"); + if (ImGui::TreeNode("DrawLists", "Active DrawLists (%d)", g.DrawDataBuilder.Layers[0].Size)) + { + for (int i = 0; i < g.DrawDataBuilder.Layers[0].Size; i++) + Funcs::NodeDrawList(NULL, g.DrawDataBuilder.Layers[0][i], "DrawList"); + ImGui::TreePop(); + } + + // Details for Popups + if (ImGui::TreeNode("Popups", "Popups (%d)", g.OpenPopupStack.Size)) + { + for (int i = 0; i < g.OpenPopupStack.Size; i++) + { + ImGuiWindow* window = g.OpenPopupStack[i].Window; + ImGui::BulletText("PopupID: %08x, Window: '%s'%s%s", g.OpenPopupStack[i].PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? " ChildWindow" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? " ChildMenu" : ""); + } + ImGui::TreePop(); + } + + // Details for TabBars + if (ImGui::TreeNode("TabBars", "Tab Bars (%d)", g.TabBars.GetSize())) + { + for (int n = 0; n < g.TabBars.GetSize(); n++) + Funcs::NodeTabBar(g.TabBars.GetByIndex(n)); + ImGui::TreePop(); + } + + // Details for Tables + IM_UNUSED(trt_rects_names); + IM_UNUSED(show_tables_rects); + IM_UNUSED(show_tables_rect_type); +#ifdef IMGUI_HAS_TABLE + if (ImGui::TreeNode("Tables", "Tables (%d)", g.Tables.GetSize())) + { + for (int n = 0; n < g.Tables.GetSize(); n++) + Funcs::NodeTable(g.Tables.GetByIndex(n)); + ImGui::TreePop(); + } +#endif // #ifdef IMGUI_HAS_TABLE + + // Details for Docking +#ifdef IMGUI_HAS_DOCK + if (ImGui::TreeNode("Dock nodes")) + { + ImGui::TreePop(); + } +#endif // #ifdef IMGUI_HAS_DOCK + + // Settings + if (ImGui::TreeNode("Settings")) + { + if (ImGui::SmallButton("Clear")) + ImGui::ClearIniSettings(); + ImGui::SameLine(); + if (ImGui::SmallButton("Save to memory")) + ImGui::SaveIniSettingsToMemory(); + ImGui::SameLine(); + if (ImGui::SmallButton("Save to disk")) + ImGui::SaveIniSettingsToDisk(g.IO.IniFilename); + ImGui::SameLine(); + if (g.IO.IniFilename) + ImGui::Text("\"%s\"", g.IO.IniFilename); + else + ImGui::TextUnformatted(""); + ImGui::Text("SettingsDirtyTimer %.2f", g.SettingsDirtyTimer); + if (ImGui::TreeNode("SettingsHandlers", "Settings handlers: (%d)", g.SettingsHandlers.Size)) + { + for (int n = 0; n < g.SettingsHandlers.Size; n++) + ImGui::BulletText("%s", g.SettingsHandlers[n].TypeName); + ImGui::TreePop(); + } + if (ImGui::TreeNode("SettingsWindows", "Settings packed data: Windows: %d bytes", g.SettingsWindows.menu_size())) + { + for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) + Funcs::NodeWindowSettings(settings); + ImGui::TreePop(); + } + +#ifdef IMGUI_HAS_TABLE + if (ImGui::TreeNode("SettingsTables", "Settings packed data: Tables: %d bytes", g.SettingsTables.size())) + { + for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) + Funcs::NodeTableSettings(settings); + ImGui::TreePop(); + } +#endif // #ifdef IMGUI_HAS_TABLE + +#ifdef IMGUI_HAS_DOCK +#endif // #ifdef IMGUI_HAS_DOCK + + if (ImGui::TreeNode("SettingsIniData", "Settings unpacked data (.ini): %d bytes", g.SettingsIniData.menu_size())) + { + ImGui::InputTextMultiline("##Ini", (char*)(void*)g.SettingsIniData.c_str(), g.SettingsIniData.Buf.Size, ImVec2(-FLT_MIN, 0.0f), ImGuiInputTextFlags_ReadOnly); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + // Misc Details + if (ImGui::TreeNode("Internal state")) + { + const char* input_source_names[] = { "None", "Mouse", "Nav", "NavKeyboard", "NavGamepad" }; IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT); + + ImGui::Text("WINDOWING"); + ImGui::Indent(); + ImGui::Text("HoveredWindow: '%s'", g.HoveredWindow ? g.HoveredWindow->Name : "NULL"); + ImGui::Text("HoveredRootWindow: '%s'", g.HoveredRootWindow ? g.HoveredRootWindow->Name : "NULL"); + ImGui::Text("HoveredWindowUnderMovingWindow: '%s'", g.HoveredWindowUnderMovingWindow ? g.HoveredWindowUnderMovingWindow->Name : "NULL"); + ImGui::Text("MovingWindow: '%s'", g.MovingWindow ? g.MovingWindow->Name : "NULL"); + ImGui::Unindent(); + + ImGui::Text("ITEMS"); + ImGui::Indent(); + ImGui::Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, input_source_names[g.ActiveIdSource]); + ImGui::Text("ActiveIdWindow: '%s'", g.ActiveIdWindow ? g.ActiveIdWindow->Name : "NULL"); + ImGui::Text("HoveredId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d", g.HoveredId, g.HoveredIdPreviousFrame, g.HoveredIdTimer, g.HoveredIdAllowOverlap); // Data is "in-flight" so depending on when the Metrics window is called we may see current frame information or not + ImGui::Text("DragDrop: %d, SourceId = 0x%08X, Payload \"%s\" (%d bytes)", g.DragDropActive, g.DragDropPayload.SourceId, g.DragDropPayload.DataType, g.DragDropPayload.DataSize); + ImGui::Unindent(); + + ImGui::Text("NAV,FOCUS"); + ImGui::Indent(); + ImGui::Text("NavWindow: '%s'", g.NavWindow ? g.NavWindow->Name : "NULL"); + ImGui::Text("NavId: 0x%08X, NavLayer: %d", g.NavId, g.NavLayer); + ImGui::Text("NavInputSource: %s", input_source_names[g.NavInputSource]); + ImGui::Text("NavActive: %d, NavVisible: %d", g.IO.NavActive, g.IO.NavVisible); + ImGui::Text("NavActivateId: 0x%08X, NavInputId: 0x%08X", g.NavActivateId, g.NavInputId); + ImGui::Text("NavDisableHighlight: %d, NavDisableMouseHover: %d", g.NavDisableHighlight, g.NavDisableMouseHover); + ImGui::Text("NavFocusScopeId = 0x%08X", g.NavFocusScopeId); + ImGui::Text("NavWindowingTarget: '%s'", g.NavWindowingTarget ? g.NavWindowingTarget->Name : "NULL"); + ImGui::Unindent(); + + ImGui::TreePop(); + } + + // Overlay: Display windows Rectangles and Begin Order + if (show_windows_rects || show_windows_begin_order) + { + for (int n = 0; n < g.Windows.Size; n++) + { + ImGuiWindow* window = g.Windows[n]; + if (!window->WasActive) + continue; + ImDrawList* draw_list = GetForegroundDrawList(window); + if (show_windows_rects) + { + ImRect r = Funcs::GetWindowRect(window, show_windows_rect_type); + draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); + } + if (show_windows_begin_order && !(window->Flags & ImGuiWindowFlags_ChildWindow)) + { + char buf[32]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "%d", window->BeginOrderWithinContext); + float font_size = ImGui::GetFontSize(); + draw_list->AddRectFilled(window->Pos, window->Pos + ImVec2(font_size, font_size), IM_COL32(200, 100, 100, 255)); + draw_list->AddText(window->Pos, IM_COL32(255, 255, 255, 255), buf); + } + } + } + +#ifdef IMGUI_HAS_TABLE + // Overlay: Display Tables Rectangles + if (show_tables_rects) + { + for (int table_n = 0; table_n < g.Tables.GetSize(); table_n++) + { + ImGuiTable* table = g.Tables.GetByIndex(table_n); + } + } +#endif // #ifdef IMGUI_HAS_TABLE + +#ifdef IMGUI_HAS_DOCK + // Overlay: Display Docking info + if (show_docking_nodes && g.IO.KeyCtrl) + { + } +#endif // #ifdef IMGUI_HAS_DOCK + + ImGui::End(); +} + +#else + +void ImGui::ShowMetricsWindow(bool*) { } + +#endif + +//----------------------------------------------------------------------------- + +// Include imgui_user.inl at the end of imgui.cpp to access private data/functions that aren't exposed. +// Prefer just including imgui_internal.h from your code rather than using this define. If a declaration is missing from imgui_internal.h add it or request it on the github. +#ifdef IMGUI_INCLUDE_IMGUI_USER_INL +#include "imgui_user.inl" +#endif + +//----------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/CheatMenu/external/imgui/imgui.h b/CheatMenu/external/imgui/imgui.h new file mode 100644 index 0000000..109134b --- /dev/null +++ b/CheatMenu/external/imgui/imgui.h @@ -0,0 +1,2482 @@ +// dear imgui, v1.79 +// (headers) + +// Help: +// - Read FAQ at http://dearimgui.org/faq +// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// Read imgui.cpp for details, links and comments. + +// Resources: +// - FAQ http://dearimgui.org/faq +// - Homepage & latest https://github.com/ocornut/imgui +// - Releases & changelog https://github.com/ocornut/imgui/releases +// - Gallery https://github.com/ocornut/imgui/issues/3488 (please post your screenshots/video there!) +// - Glossary https://github.com/ocornut/imgui/wiki/Glossary +// - Wiki https://github.com/ocornut/imgui/wiki +// - Issues & support https://github.com/ocornut/imgui/issues + +/* + +Index of this file: +// Header mess +// Forward declarations and basic types +// ImGui API (Dear ImGui end-user API) +// Flags & Enumerations +// Memory allocations macros +// ImVector<> +// ImGuiStyle +// ImGuiIO +// Misc data structures (ImGuiInputTextCallbackData, ImGuiSizeCallbackData, ImGuiPayload) +// Obsolete functions +// Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, ImColor) +// Draw List API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData) +// Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) + +*/ + +#pragma once + +// Configuration file with compile-time options (edit imconfig.h or #define IMGUI_USER_CONFIG to your own filename) +#ifdef IMGUI_USER_CONFIG +#include IMGUI_USER_CONFIG +#endif +#if !defined(IMGUI_DISABLE_INCLUDE_IMCONFIG_H) || defined(IMGUI_INCLUDE_IMCONFIG_H) +#include "imconfig.h" +#endif + +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// Header mess +//----------------------------------------------------------------------------- + +// Includes +#include // FLT_MIN, FLT_MAX +#include // va_list, va_start, va_end +#include // ptrdiff_t, NULL +#include // memset, memmove, memcpy, strlen, strchr, strcpy, strcmp + +// Version +// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens) +#define IMGUI_VERSION "1.79" +#define IMGUI_VERSION_NUM 17900 +#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) + +// Define attributes of all API symbols declarations (e.g. for DLL under Windows) +// IMGUI_API is used for core imgui functions, IMGUI_IMPL_API is used for the default bindings files (imgui_impl_xxx.h) +// Using dear imgui via a shared library is not recommended, because we don't guarantee backward nor forward ABI compatibility (also function call overhead, as dear imgui is a call-heavy API) +#ifndef IMGUI_API +#define IMGUI_API +#endif +#ifndef IMGUI_IMPL_API +#define IMGUI_IMPL_API IMGUI_API +#endif + +// Helper Macros +#ifndef IM_ASSERT +#include +#define IM_ASSERT(_EXPR) assert(_EXPR) // You can override the default assert handler by editing imconfig.h +#endif +#if !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__)) +#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1))) // To apply printf-style warnings to our functions. +#define IM_FMTLIST(FMT) __attribute__((format(printf, FMT, 0))) +#else +#define IM_FMTARGS(FMT) +#define IM_FMTLIST(FMT) +#endif +#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) // Size of a static C-style array. Don't use on pointers! +#define IM_UNUSED(_VAR) ((void)(_VAR)) // Used to silence "unused variable warnings". Often useful as asserts may be stripped out from final builds. +#if (__cplusplus >= 201100) +#define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // Offset of _MEMBER within _TYPE. Standardized as offsetof() in C++11 +#else +#define IM_OFFSETOF(_TYPE,_MEMBER) ((size_t)&(((_TYPE*)0)->_MEMBER)) // Offset of _MEMBER within _TYPE. Old style macro. +#endif + +// Warnings +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wold-style-cast" +#if __has_warning("-Wzero-as-null-pointer-constant") +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#endif +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//----------------------------------------------------------------------------- +// Forward declarations and basic types +//----------------------------------------------------------------------------- + +// Forward declarations +struct ImDrawChannel; // Temporary storage to output draw commands out of order, used by ImDrawListSplitter and ImDrawList::ChannelsSplit() +struct ImDrawCmd; // A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a callback) +struct ImDrawData; // All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix. +struct ImDrawList; // A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" builder) +struct ImDrawListSharedData; // Data shared among multiple draw lists (typically owned by parent ImGui context, but you may create one yourself) +struct ImDrawListSplitter; // Helper to split a draw list into different layers which can be drawn into out of order, then flattened back. +struct ImDrawVert; // A single vertex (pos + uv + col = 20 bytes by default. Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) +struct ImFont; // Runtime data for a single font within a parent ImFontAtlas +struct ImFontAtlas; // Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader +struct ImFontConfig; // Configuration data when adding a font or merging fonts +struct ImFontGlyph; // A single font glyph (code point + coordinates within in ImFontAtlas + offset) +struct ImFontGlyphRangesBuilder; // Helper to build glyph ranges from text/string data +struct ImColor; // Helper functions to create a color that can be converted to either u32 or float4 (*OBSOLETE* please avoid using) +struct ImGuiContext; // Dear ImGui context (opaque structure, unless including imgui_internal.h) +struct ImGuiIO; // Main configuration and I/O between your application and ImGui +struct ImGuiInputTextCallbackData; // Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use) +struct ImGuiListClipper; // Helper to manually clip large list of items +struct ImGuiOnceUponAFrame; // Helper for running a block of code not more than once a frame, used by IMGUI_ONCE_UPON_A_FRAME macro +struct ImGuiPayload; // User data payload for drag and drop operations +struct ImGuiSizeCallbackData; // Callback data when using SetNextWindowSizeConstraints() (rare/advanced use) +struct ImGuiStorage; // Helper for key->value storage +struct ImGuiStyle; // Runtime data for styling/colors +struct ImGuiTextBuffer; // Helper to hold and append into a text buffer (~string builder) +struct ImGuiTextFilter; // Helper to parse and apply text filters (e.g. "aaaaa[,bbbbb][,ccccc]") + +// Enums/Flags (declared as int for compatibility with old C++, to allow using as flags and to not pollute the top of this file) +// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! +// In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +typedef int ImGuiCol; // -> enum ImGuiCol_ // Enum: A color identifier for styling +typedef int ImGuiCond; // -> enum ImGuiCond_ // Enum: A condition for many Set*() functions +typedef int ImGuiDataType; // -> enum ImGuiDataType_ // Enum: A primary data type +typedef int ImGuiDir; // -> enum ImGuiDir_ // Enum: A cardinal direction +typedef int ImGuiKey; // -> enum ImGuiKey_ // Enum: A key identifier (ImGui-side enum) +typedef int ImGuiNavInput; // -> enum ImGuiNavInput_ // Enum: An input identifier for navigation +typedef int ImGuiMouseButton; // -> enum ImGuiMouseButton_ // Enum: A mouse button identifier (0=left, 1=right, 2=middle) +typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor identifier +typedef int ImGuiStyleVar; // -> enum ImGuiStyleVar_ // Enum: A variable identifier for styling +typedef int ImDrawCornerFlags; // -> enum ImDrawCornerFlags_ // Flags: for ImDrawList::AddRect(), AddRectFilled() etc. +typedef int ImDrawListFlags; // -> enum ImDrawListFlags_ // Flags: for ImDrawList +typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build +typedef int ImGuiBackendFlags; // -> enum ImGuiBackendFlags_ // Flags: for io.BackendFlags +typedef int ImGuiButtonFlags; // -> enum ImGuiButtonFlags_ // Flags: for InvisibleButton() +typedef int ImGuiColorEditFlags; // -> enum ImGuiColorEditFlags_ // Flags: for ColorEdit4(), ColorPicker4() etc. +typedef int ImGuiConfigFlags; // -> enum ImGuiConfigFlags_ // Flags: for io.ConfigFlags +typedef int ImGuiComboFlags; // -> enum ImGuiComboFlags_ // Flags: for BeginCombo() +typedef int ImGuiDragDropFlags; // -> enum ImGuiDragDropFlags_ // Flags: for BeginDragDropSource(), AcceptDragDropPayload() +typedef int ImGuiFocusedFlags; // -> enum ImGuiFocusedFlags_ // Flags: for IsWindowFocused() +typedef int ImGuiHoveredFlags; // -> enum ImGuiHoveredFlags_ // Flags: for IsItemHovered(), IsWindowHovered() etc. +typedef int ImGuiInputTextFlags; // -> enum ImGuiInputTextFlags_ // Flags: for InputText(), InputTextMultiline() +typedef int ImGuiKeyModFlags; // -> enum ImGuiKeyModFlags_ // Flags: for io.KeyMods (Ctrl/Shift/Alt/Super) +typedef int ImGuiPopupFlags; // -> enum ImGuiPopupFlags_ // Flags: for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() +typedef int ImGuiSelectableFlags; // -> enum ImGuiSelectableFlags_ // Flags: for Selectable() +typedef int ImGuiSliderFlags; // -> enum ImGuiSliderFlags_ // Flags: for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +typedef int ImGuiTabBarFlags; // -> enum ImGuiTabBarFlags_ // Flags: for BeginTabBar() +typedef int ImGuiTabItemFlags; // -> enum ImGuiTabItemFlags_ // Flags: for BeginTabItem() +typedef int ImGuiTreeNodeFlags; // -> enum ImGuiTreeNodeFlags_ // Flags: for TreeNode(), TreeNodeEx(), CollapsingHeader() +typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: for Begin(), BeginChild() + +// Other types +#ifndef ImTextureID // ImTextureID [configurable type: override in imconfig.h with '#define ImTextureID xxx'] +typedef void* ImTextureID; // User data for rendering back-end to identify a texture. This is whatever to you want it to be! read the FAQ about ImTextureID for details. +#endif +typedef unsigned int ImGuiID; // A unique ID used by widgets, typically hashed from a stack of string. +typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data); +typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data); + +// Decoded character types +// (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) +typedef unsigned short ImWchar16; // A single decoded U16 character/code point. We encode them as multi bytes UTF-8 when used in strings. +typedef unsigned int ImWchar32; // A single decoded U32 character/code point. We encode them as multi bytes UTF-8 when used in strings. +#ifdef IMGUI_USE_WCHAR32 // ImWchar [configurable type: override in imconfig.h with '#define IMGUI_USE_WCHAR32' to support Unicode planes 1-16] +typedef ImWchar32 ImWchar; +#else +typedef ImWchar16 ImWchar; +#endif + +// Basic scalar data types +typedef signed char ImS8; // 8-bit signed integer +typedef unsigned char ImU8; // 8-bit unsigned integer +typedef signed short ImS16; // 16-bit signed integer +typedef unsigned short ImU16; // 16-bit unsigned integer +typedef signed int ImS32; // 32-bit signed integer == int +typedef unsigned int ImU32; // 32-bit unsigned integer (often used to store packed colors) +#if defined(_MSC_VER) && !defined(__clang__) +typedef signed __int64 ImS64; // 64-bit signed integer (pre and post C++11 with Visual Studio) +typedef unsigned __int64 ImU64; // 64-bit unsigned integer (pre and post C++11 with Visual Studio) +#elif (defined(__clang__) || defined(__GNUC__)) && (__cplusplus < 201100) +#include +typedef int64_t ImS64; // 64-bit signed integer (pre C++11) +typedef uint64_t ImU64; // 64-bit unsigned integer (pre C++11) +#else +typedef signed long long ImS64; // 64-bit signed integer (post C++11) +typedef unsigned long long ImU64; // 64-bit unsigned integer (post C++11) +#endif + +// 2D vector (often used to store positions or sizes) +struct ImVec2 +{ + float x, y; + ImVec2() { x = y = 0.0f; } + ImVec2(float _x, float _y) { x = _x; y = _y; } + float operator[] (size_t idx) const { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. + float& operator[] (size_t idx) { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. +#ifdef IM_VEC2_CLASS_EXTRA + IM_VEC2_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec2. +#endif +}; + +// 4D vector (often used to store floating-point colors) +struct ImVec4 +{ + float x, y, z, w; + ImVec4() { x = y = z = w = 0.0f; } + ImVec4(float _x, float _y, float _z, float _w) { x = _x; y = _y; z = _z; w = _w; } +#ifdef IM_VEC4_CLASS_EXTRA + IM_VEC4_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec4. +#endif +}; + +//----------------------------------------------------------------------------- +// ImGui: Dear ImGui end-user API +// (This is a namespace. You can add extra ImGui:: functions in your own separate file. Please don't modify imgui source files!) +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Context creation and access + // Each context create its own ImFontAtlas by default. You may instance one yourself and pass it to CreateContext() to share a font atlas between imgui contexts. + // None of those functions is reliant on the current context. + IMGUI_API ImGuiContext* CreateContext(ImFontAtlas* shared_font_atlas = NULL); + IMGUI_API void DestroyContext(ImGuiContext* ctx = NULL); // NULL = destroy current context + IMGUI_API ImGuiContext* GetCurrentContext(); + IMGUI_API void SetCurrentContext(ImGuiContext* ctx); + + // Main + IMGUI_API ImGuiIO& GetIO(); // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags) + IMGUI_API ImGuiStyle& GetStyle(); // access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame! + IMGUI_API void NewFrame(); // start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). + IMGUI_API void EndFrame(); // ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all! + IMGUI_API void Render(); // ends the Dear ImGui frame, finalize the draw data. You can get call GetDrawData() to obtain it and run your rendering function (up to v1.60, this used to call io.RenderDrawListsFn(). Nowadays, we allow and prefer calling your render function yourself.) + IMGUI_API ImDrawData* GetDrawData(); // valid after Render() and until the next call to NewFrame(). this is what you have to render. + + // Demo, Debug, Information + IMGUI_API void ShowDemoWindow(bool* p_open = NULL); // create Demo window (previously called ShowTestWindow). demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! + IMGUI_API void ShowAboutWindow(bool* p_open = NULL); // create About window. display Dear ImGui version, credits and build/system information. + IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // create Debug/Metrics window. display Dear ImGui internals: draw commands (with individual draw calls and vertices), window list, basic internal state, etc. + IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) + IMGUI_API bool ShowStyleSelector(const char* label); // add style selector block (not a window), essentially a combo listing the default styles. + IMGUI_API void ShowFontSelector(const char* label); // add font selector block (not a window), essentially a combo listing the loaded fonts. + IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as a end-user (mouse/keyboard controls). + IMGUI_API const char* GetVersion(); // get the compiled version string e.g. "1.23" (essentially the compiled value for IMGUI_VERSION) + + // Styles + IMGUI_API void StyleColorsDark(ImGuiStyle* dst = NULL); // new, recommended style (default) + IMGUI_API void StyleColorsClassic(ImGuiStyle* dst = NULL); // classic imgui style + IMGUI_API void StyleColorsLight(ImGuiStyle* dst = NULL); // best used with borders and a custom, thicker font + + // Windows + // - Begin() = push window to the stack and start appending to it. End() = pop window from the stack. + // - Passing 'bool* p_open != NULL' shows a window-closing widget in the upper-right corner of the window, + // which clicking will set the boolean to false when clicked. + // - You may append multiple times to the same window during the same frame by calling Begin()/End() pairs multiple times. + // Some information such as 'flags' or 'p_open' will only be considered by the first call to Begin(). + // - Begin() return false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting + // anything to the window. Always call a matching End() for each Begin() call, regardless of its return value! + // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, + // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function + // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] + // - Note that the bottom of window stack always contains a window called "Debug". + IMGUI_API bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); + IMGUI_API void End(); + + // Child Windows + // - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child. + // - For each independent axis of 'size': ==0.0f: use remaining host window size / >0.0f: fixed size / <0.0f: use remaining window size minus abs(size) / Each axis can use a different mode, e.g. ImVec2(0,400). + // - BeginChild() returns false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting anything to the window. + // Always call a matching EndChild() for each BeginChild() call, regardless of its return value [as with Begin: this is due to legacy reason and inconsistent with most BeginXXX functions apart from the regular Begin() which behaves like BeginChild().] + IMGUI_API bool BeginChild(const char* str_id, const ImVec2& menu_size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); + IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& menu_size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); + IMGUI_API void EndChild(); + + // Windows Utilities + // - 'current window' = the window we are appending into while inside a Begin()/End() block. 'next window' = next window we will Begin() into. + IMGUI_API bool IsWindowAppearing(); + IMGUI_API bool IsWindowCollapsed(); + IMGUI_API bool IsWindowFocused(ImGuiFocusedFlags flags=0); // is current window focused? or its root/child, depending on flags. see flags for options. + IMGUI_API bool IsWindowHovered(ImGuiHoveredFlags flags=0); // is current window hovered (and typically: not blocked by a popup/modal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! + IMGUI_API ImDrawList* GetWindowDrawList(); // get draw list associated to the current window, to append your own drawing primitives + IMGUI_API ImVec2 GetWindowPos(); // get current window position in screen space (useful if you want to do your own drawing via the DrawList API) + IMGUI_API ImVec2 GetWindowSize(); // get current window size + IMGUI_API float GetWindowWidth(); // get current window width (shortcut for GetWindowSize().x) + IMGUI_API float GetWindowHeight(); // get current window height (shortcut for GetWindowSize().y) + + // Prefer using SetNextXXX functions (before Begin) rather that SetXXX functions (after Begin). + IMGUI_API void SetNextWindowPos(const ImVec2& pos, ImGuiCond cond = 0, const ImVec2& pivot = ImVec2(0, 0)); // set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. + IMGUI_API void SetNextWindowSize(const ImVec2& menu_size, ImGuiCond cond = 0); // set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() + IMGUI_API void SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL, void* custom_callback_data = NULL); // set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. + IMGUI_API void SetNextWindowContentSize(const ImVec2& menu_size); // set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() + IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // set next window collapsed state. call before Begin() + IMGUI_API void SetNextWindowFocus(); // set next window to be focused / top-most. call before Begin() + IMGUI_API void SetNextWindowBgAlpha(float alpha); // set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground. + IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); // (not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. + IMGUI_API void SetWindowSize(const ImVec2& menu_size, ImGuiCond cond = 0); // (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. + IMGUI_API void SetWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). + IMGUI_API void SetWindowFocus(); // (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus(). + IMGUI_API void SetWindowFontScale(float scale); // set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). + IMGUI_API void SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond = 0); // set named window position. + IMGUI_API void SetWindowSize(const char* name, const ImVec2& menu_size, ImGuiCond cond = 0); // set named window size. set axis to 0.0f to force an auto-fit on this axis. + IMGUI_API void SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond = 0); // set named window collapsed state + IMGUI_API void SetWindowFocus(const char* name); // set named window to be focused / top-most. use NULL to remove focus. + + // Content region + // - Those functions are bound to be redesigned soon (they are confusing, incomplete and return values in local window coordinates which increases confusion) + IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates + IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - GetCursorPos() + IMGUI_API ImVec2 GetWindowContentRegionMin(); // content boundaries min (roughly (0,0)-Scroll), in window coordinates + IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max (roughly (0,0)+Size-Scroll) where Size can be override with SetNextWindowContentSize(), in window coordinates + IMGUI_API float GetWindowContentRegionWidth(); // + + // Windows Scrolling + IMGUI_API float GetScrollX(); // get scrolling amount [0..GetScrollMaxX()] + IMGUI_API float GetScrollY(); // get scrolling amount [0..GetScrollMaxY()] + IMGUI_API float GetScrollMaxX(); // get maximum scrolling amount ~~ ContentSize.x - WindowSize.x + IMGUI_API float GetScrollMaxY(); // get maximum scrolling amount ~~ ContentSize.y - WindowSize.y + IMGUI_API void SetScrollX(float scroll_x); // set scrolling amount [0..GetScrollMaxX()] + IMGUI_API void SetScrollY(float scroll_y); // set scrolling amount [0..GetScrollMaxY()] + IMGUI_API void SetScrollHereX(float center_x_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. + IMGUI_API void SetScrollFromPosX(float local_x, float center_x_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. + + // Parameters stacks (shared) + IMGUI_API void PushFont(ImFont* font); // use NULL as a shortcut to push default font + IMGUI_API void PopFont(); + IMGUI_API void PushStyleColor(ImGuiCol idx, ImU32 col); + IMGUI_API void PushStyleColor(ImGuiCol idx, const ImVec4& col); + IMGUI_API void PopStyleColor(int count = 1); + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, float val); + IMGUI_API void PushStyleVar(ImGuiStyleVar idx, const ImVec2& val); + IMGUI_API void PopStyleVar(int count = 1); + IMGUI_API const ImVec4& GetStyleColorVec4(ImGuiCol idx); // retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in. + IMGUI_API ImFont* GetFont(); // get current font + IMGUI_API float GetFontSize(); // get current font size (= height in pixels) of current font with current scale applied + IMGUI_API ImVec2 GetFontTexUvWhitePixel(); // get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API + IMGUI_API ImU32 GetColorU32(ImGuiCol idx, float alpha_mul = 1.0f); // retrieve given style color with style alpha applied and optional extra alpha multiplier + IMGUI_API ImU32 GetColorU32(const ImVec4& col); // retrieve given color with style alpha applied + IMGUI_API ImU32 GetColorU32(ImU32 col); // retrieve given color with style alpha applied + + // Parameters stacks (current window) + IMGUI_API void PushItemWidth(float item_width); // push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -1.0f always align width to the right side). 0.0f = default to ~2/3 of windows width, + IMGUI_API void PopItemWidth(); + IMGUI_API void SetNextItemWidth(float item_width); // set width of the _next_ common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -1.0f always align width to the right side) + IMGUI_API float CalcItemWidth(); // width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. + IMGUI_API void PushTextWrapPos(float wrap_local_pos_x = 0.0f); // push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space + IMGUI_API void PopTextWrapPos(); + IMGUI_API void PushAllowKeyboardFocus(bool allow_keyboard_focus); // allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets + IMGUI_API void PopAllowKeyboardFocus(); + IMGUI_API void PushButtonRepeat(bool repeat); // in 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting). Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame. + IMGUI_API void PopButtonRepeat(); + + // Cursor / Layout + // - By "cursor" we mean the current output position. + // - The typical widget behavior is to output themselves at the current cursor position, then move the cursor one line down. + // - You can call SameLine() between widgets to undo the last carriage return and output at the right of the preceding widget. + // - Attention! We currently have inconsistencies between window-local and absolute positions we will aim to fix with future API: + // Window-local coordinates: SameLine(), GetCursorPos(), SetCursorPos(), GetCursorStartPos(), GetContentRegionMax(), GetWindowContentRegion*(), PushTextWrapPos() + // Absolute coordinate: GetCursorScreenPos(), SetCursorScreenPos(), all ImDrawList:: functions. + IMGUI_API void Separator(); // separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. + IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f); // call between widgets or groups to layout them horizontally. X position given in window coordinates. + IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in an horizontal-layout context. + IMGUI_API void Spacing(); // add vertical spacing. + IMGUI_API void Dummy(const ImVec2& menu_size); // add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. + IMGUI_API void Indent(float indent_w = 0.0f); // move content position toward the right, by style.IndentSpacing or indent_w if != 0 + IMGUI_API void Unindent(float indent_w = 0.0f); // move content position back to the left, by style.IndentSpacing or indent_w if != 0 + IMGUI_API void BeginGroup(); // lock horizontal starting position + IMGUI_API void EndGroup(); // unlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) + IMGUI_API ImVec2 GetCursorPos(); // cursor position in window coordinates (relative to window position) + IMGUI_API float GetCursorPosX(); // (some functions are using window-relative coordinates, such as: GetCursorPos, GetCursorStartPos, GetContentRegionMax, GetWindowContentRegion* etc. + IMGUI_API float GetCursorPosY(); // other functions such as GetCursorScreenPos or everything in ImDrawList:: + IMGUI_API void SetCursorPos(const ImVec2& local_pos); // are using the main, absolute coordinate system. + IMGUI_API void SetCursorPosX(float local_x); // GetWindowPos() + GetCursorPos() == GetCursorScreenPos() etc.) + IMGUI_API void SetCursorPosY(float local_y); // + IMGUI_API ImVec2 GetCursorStartPos(); // initial cursor position in window coordinates + IMGUI_API ImVec2 GetCursorScreenPos(); // cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) + IMGUI_API void SetCursorScreenPos(const ImVec2& pos); // cursor position in absolute screen coordinates [0..io.DisplaySize] + IMGUI_API void AlignTextToFramePadding(); // vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item) + IMGUI_API float GetTextLineHeight(); // ~ FontSize + IMGUI_API float GetTextLineHeightWithSpacing(); // ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text) + IMGUI_API float GetFrameHeight(); // ~ FontSize + style.FramePadding.y * 2 + IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) + + // ID stack/scopes + // - Read the FAQ for more details about how ID are handled in dear imgui. If you are creating widgets in a loop you most + // likely want to push a unique identifier (e.g. object pointer, loop index) to uniquely differentiate them. + // - The resulting ID are hashes of the entire stack. + // - You can also use the "Label##foobar" syntax within widget label to distinguish them from each others. + // - In this header file we use the "label"/"name" terminology to denote a string that will be displayed and used as an ID, + // whereas "str_id" denote a string that is only used as an ID and not normally displayed. + IMGUI_API void PushID(const char* str_id); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const char* str_id_begin, const char* str_id_end); // push string into the ID stack (will hash string). + IMGUI_API void PushID(const void* ptr_id); // push pointer into the ID stack (will hash pointer). + IMGUI_API void PushID(int int_id); // push integer into the ID stack (will hash integer). + IMGUI_API void PopID(); // pop from the ID stack. + IMGUI_API ImGuiID GetID(const char* str_id); // calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself + IMGUI_API ImGuiID GetID(const char* str_id_begin, const char* str_id_end); + IMGUI_API ImGuiID GetID(const void* ptr_id); + + // Widgets: Text + IMGUI_API void TextUnformatted(const char* text, const char* text_end = NULL); // raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. + IMGUI_API void Text(const char* fmt, ...) IM_FMTARGS(1); // formatted text + IMGUI_API void TextV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextColored(const ImVec4& col, const char* fmt, ...) IM_FMTARGS(2); // shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextColoredV(const ImVec4& col, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void TextDisabled(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); + IMGUI_API void TextDisabledV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void TextWrapped(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize(). + IMGUI_API void TextWrappedV(const char* fmt, va_list args) IM_FMTLIST(1); + IMGUI_API void LabelText(const char* label, const char* fmt, ...) IM_FMTARGS(2); // display text+label aligned the same way as value+label widgets + IMGUI_API void LabelTextV(const char* label, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API void BulletText(const char* fmt, ...) IM_FMTARGS(1); // shortcut for Bullet()+Text() + IMGUI_API void BulletTextV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Widgets: Main + // - Most widgets return true when the value has been changed or when pressed/selected + // - You may also use one of the many IsItemXXX functions (e.g. IsItemActive, IsItemHovered, etc.) to query widget state. + IMGUI_API bool Button(const char* label, const ImVec2& menu_size = ImVec2(0, 0)); // button + IMGUI_API bool SmallButton(const char* label); // button with FramePadding=(0,0) to easily embed within text + IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& menu_size, ImGuiButtonFlags flags = 0); // flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) + IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); // square button with an arrow shape + IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& menu_size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1,1), const ImVec4& tint_col = ImVec4(1,1,1,1), const ImVec4& border_col = ImVec4(0,0,0,0)); + IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& menu_size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1,1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0,0,0,0), const ImVec4& tint_col = ImVec4(1,1,1,1)); // <0 frame_padding uses default frame padding settings. 0 for no padding + IMGUI_API bool Checkbox(const char* label, bool* v); + IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value); + IMGUI_API bool RadioButton(const char* label, bool active); // use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; } + IMGUI_API bool RadioButton(const char* label, int* v, int v_button); // shortcut to handle the above pattern when value is an integer + IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-1, 0), const char* overlay = NULL); + IMGUI_API void Bullet(); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses + + // Widgets: Combo Box + // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. + // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. + IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0); + IMGUI_API void EndCombo(); // only call EndCombo() if BeginCombo() returns true! + IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1); + IMGUI_API bool Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items = -1); // Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" + IMGUI_API bool Combo(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int popup_max_height_in_items = -1); + + // Widgets: Drag Sliders + // - CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped and can go off-bounds. + // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every functions, note that a 'float v[X]' function argument is the same as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). + // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits. + // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. + // - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. + // - Legacy: Pre-1.78 there are DragXXX() function signatures that takes a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat3(const char* label, float v[3], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloat4(const char* label, float v[4], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt(const char* label, int* v, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound + IMGUI_API bool DragInt2(const char* label, int v[2], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt3(const char* label, int v[3], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragInt4(const char* label, int v[4], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", const char* format_max = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Regular Sliders + // - CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped and can go off-bounds. + // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. + // - Format string may also be set to NULL or use the default format ("%f" or "%d"). + // - Legacy: Pre-1.78 there are SliderXXX() function signatures that takes a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. + // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 + IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. + IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderAngle(const char* label, float* v_rad, float v_degrees_min = -360.0f, float v_degrees_max = +360.0f, const char* format = "%.0f deg", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt(const char* label, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderFloat(const char* label, const ImVec2& menu_size, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderInt(const char* label, const ImVec2& menu_size, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); + IMGUI_API bool VSliderScalar(const char* label, const ImVec2& menu_size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); + + // Widgets: Input with Keyboard + // - If you want to use InputText() with std::string or any custom dynamic string type, see misc/cpp/imgui_stdlib.h and comments in imgui_demo.cpp. + // - Most of the ImGuiInputTextFlags flags are only useful for InputText() and not for InputFloatX, InputIntX, InputDouble etc. + IMGUI_API bool InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& menu_size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool InputFloat(const char* label, float* v, float step = 0.0f, float step_fast = 0.0f, const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat2(const char* label, float v[2], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat3(const char* label, float v[3], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat4(const char* label, float v[4], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt(const char* label, int* v, int step = 1, int step_fast = 100, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputDouble(const char* label, double* v, double step = 0.0, double step_fast = 0.0, const char* format = "%.6f", ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); + + // Widgets: Color Editor/Picker (tip: the ColorEdit* functions have a little colored preview square that can be left-clicked to open a picker, and right-clicked to open an option menu.) + // - Note that in C++ a 'float v[X]' function argument is the _same_ as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. + // - You can pass the address of a first float element out of a contiguous structure, e.g. &myvector.x + IMGUI_API bool ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); + IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = 0, const float* ref_col = NULL); + IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, ImVec2 menu_size = ImVec2(0, 0)); // display a colored square/button, hover for details, return true when pressed. + IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); // initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. + + // Widgets: Trees + // - TreeNode functions return true when the node is open, in which case you need to also call TreePop() when you are finished displaying the tree node contents. + IMGUI_API bool TreeNode(const char* label); + IMGUI_API bool TreeNode(const char* str_id, const char* fmt, ...) IM_FMTARGS(2); // helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). + IMGUI_API bool TreeNode(const void* ptr_id, const char* fmt, ...) IM_FMTARGS(2); // " + IMGUI_API bool TreeNodeV(const char* str_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeV(const void* ptr_id, const char* fmt, va_list args) IM_FMTLIST(2); + IMGUI_API bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0); + IMGUI_API bool TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); + IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); + IMGUI_API void TreePush(const char* str_id); // ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. + IMGUI_API void TreePush(const void* ptr_id = NULL); // " + IMGUI_API void TreePop(); // ~ Unindent()+PopId() + IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode + IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); // if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). + IMGUI_API bool CollapsingHeader(const char* label, bool* p_open, ImGuiTreeNodeFlags flags = 0); // when 'p_open' isn't NULL, display an additional small close button on upper right of the header + IMGUI_API void SetNextItemOpen(bool is_open, ImGuiCond cond = 0); // set next TreeNode/CollapsingHeader open state. + + // Widgets: Selectables + // - A selectable highlights when hovered, and can display another color when selected. + // - Neighbors selectable extend their highlight bounds in order to leave no gap between them. This is so a series of selected Selectable appear contiguous. + IMGUI_API bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags flags = 0, const ImVec2& menu_size = ImVec2(0, 0)); // "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height + IMGUI_API bool Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags = 0, const ImVec2& menu_size = ImVec2(0, 0)); // "bool* p_selected" point to the selection state (read-write), as a convenient helper. + + // Widgets: List Boxes + // - FIXME: To be consistent with all the newer API, ListBoxHeader/ListBoxFooter should in reality be called BeginListBox/EndListBox. Will rename them. + IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1); + IMGUI_API bool ListBox(const char* label, int* current_item, bool (*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int height_in_items = -1); + IMGUI_API bool ListBoxHeader(const char* label, const ImVec2& menu_size = ImVec2(0, 0)); // use if you want to reimplement ListBox() will custom data or interactions. if the function return true, you can output elements then call ListBoxFooter() afterwards. + IMGUI_API bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1); // " + IMGUI_API void ListBoxFooter(); // terminate the scrolling region. only call ListBoxFooter() if ListBoxHeader() returned true! + + // Widgets: Data Plotting + IMGUI_API void PlotLines(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotLines(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + IMGUI_API void PlotHistogram(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); + IMGUI_API void PlotHistogram(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); + + // Widgets: Value() Helpers. + // - Those are merely shortcut to calling Text() with a format string. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace) + IMGUI_API void Value(const char* prefix, bool b); + IMGUI_API void Value(const char* prefix, int v); + IMGUI_API void Value(const char* prefix, unsigned int v); + IMGUI_API void Value(const char* prefix, float v, const char* float_format = NULL); + + // Widgets: Menus + // - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar. + // - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it. + // - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it. + IMGUI_API bool BeginMenuBar(); // append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window). + IMGUI_API void EndMenuBar(); // only call EndMenuBar() if BeginMenuBar() returns true! + IMGUI_API bool BeginMainMenuBar(); // create and append to a full screen menu-bar. + IMGUI_API void EndMainMenuBar(); // only call EndMainMenuBar() if BeginMainMenuBar() returns true! + IMGUI_API bool BeginMenu(const char* label, bool enabled = true); // create a sub-menu entry. only call EndMenu() if this returns true! + IMGUI_API void EndMenu(); // only call EndMenu() if BeginMenu() returns true! + IMGUI_API bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true); // return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment + IMGUI_API bool MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled = true); // return true when activated + toggle (*p_selected) if p_selected != NULL + + // Tooltips + // - Tooltip are windows following the mouse which do not take focus away. + IMGUI_API void BeginTooltip(); // begin/append a tooltip window. to create full-featured tooltip (with any kind of items). + IMGUI_API void EndTooltip(); + IMGUI_API void SetTooltip(const char* fmt, ...) IM_FMTARGS(1); // set a text-only tooltip, typically use with ImGui::IsItemHovered(). override any previous call to SetTooltip(). + IMGUI_API void SetTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); + + // Popups, Modals + // - They block normal mouse hovering detection (and therefore most mouse interactions) behind them. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - Their visibility state (~bool) is held internally instead of being held by the programmer as we are used to with regular Begin*() calls. + // - The 3 properties above are related: we need to retain popup visibility state in the library because popups may be closed as any time. + // - You can bypass the hovering restriction by using ImGuiHoveredFlags_AllowWhenBlockedByPopup when calling IsItemHovered() or IsWindowHovered(). + // - IMPORTANT: Popup identifiers are relative to the current ID stack, so OpenPopup and BeginPopup generally needs to be at the same level of the stack. + // This is sometimes leading to confusing mistakes. May rework this in the future. + // Popups: begin/end functions + // - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards. ImGuiWindowFlags are forwarded to the window. + // - BeginPopupModal(): block every interactions behind the window, cannot be closed by user, add a dimming background, has a title bar. + IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); // return true if the popup is open, and you can start outputting to it. + IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); // return true if the modal is open, and you can start outputting to it. + IMGUI_API void EndPopup(); // only call EndPopup() if BeginPopupXXX() returns true! + // Popups: open/close functions + // - OpenPopup(): set popup state to open. ImGuiPopupFlags are available for opening options. + // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - CloseCurrentPopup(): use inside the BeginPopup()/EndPopup() scope to close manually. + // - CloseCurrentPopup() is called by default by Selectable()/MenuItem() when activated (FIXME: need some options). + // - Use ImGuiPopupFlags_NoOpenOverExistingPopup to avoid opening a popup if there's already one at the same level. This is equivalent to e.g. testing for !IsAnyPopupOpen() prior to OpenPopup(). + IMGUI_API void OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); // call to mark popup as open (don't call every frame!). + IMGUI_API void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // helper to open popup when clicked on last item. return true when just opened. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) + IMGUI_API void CloseCurrentPopup(); // manually close the popup we have begin-ed into. + // Popups: open+begin combined functions helpers + // - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking. + // - They are convenient to easily create context menus, hence the name. + // - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future. + // - IMPORTANT: we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. + IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked on last item. if you can pass a NULL str_id only if the previous item had an id. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! + IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);// open+begin popup when clicked on current window. + IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked in void (where there are no windows). + // Popups: test function + // - IsPopupOpen(): return true if the popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId: return true if any popup is open at the current BeginPopup() level of the popup stack. + // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId + ImGuiPopupFlags_AnyPopupLevel: return true if any popup is open. + IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); // return true if the popup is open. + + // Columns + // - You can also use SameLine(pos_x) to mimic simplified columns. + // - The columns API is work-in-progress and rather lacking (columns are arguably the worst part of dear imgui at the moment!) + // - There is a maximum of 64 columns. + // - Currently working on new 'Tables' api which will replace columns around Q2 2020 (see GitHub #2957). + IMGUI_API void Columns(int count = 1, const char* id = NULL, bool border = true); + IMGUI_API void NextColumn(); // next column, defaults to current row or next row if the current row is finished + IMGUI_API int GetColumnIndex(); // get current column index + IMGUI_API float GetColumnWidth(int column_index = -1); // get column width (in pixels). pass -1 to use current column + IMGUI_API void SetColumnWidth(int column_index, float width); // set column width (in pixels). pass -1 to use current column + IMGUI_API float GetColumnOffset(int column_index = -1); // get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f + IMGUI_API void SetColumnOffset(int column_index, float offset_x); // set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column + IMGUI_API int GetColumnsCount(); + + // Tab Bars, Tabs + IMGUI_API bool BeginTabBar(const char* str_id, ImGuiTabBarFlags flags = 0); // create and append into a TabBar + IMGUI_API void EndTabBar(); // only call EndTabBar() if BeginTabBar() returns true! + IMGUI_API bool BeginTabItem(const char* label, bool* p_open = NULL, ImGuiTabItemFlags flags = 0); // create a Tab. Returns true if the Tab is selected. + IMGUI_API void EndTabItem(); // only call EndTabItem() if BeginTabItem() returns true! + IMGUI_API bool TabItemButton(const char* label, ImGuiTabItemFlags flags = 0); // create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. + IMGUI_API void SetTabItemClosed(const char* tab_or_docked_window_label); // notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. + + // Logging/Capture + // - All text output from the interface can be captured into tty/file/clipboard. By default, tree nodes are automatically opened during logging. + IMGUI_API void LogToTTY(int auto_open_depth = -1); // start logging to tty (stdout) + IMGUI_API void LogToFile(int auto_open_depth = -1, const char* filename = NULL); // start logging to file + IMGUI_API void LogToClipboard(int auto_open_depth = -1); // start logging to OS clipboard + IMGUI_API void LogFinish(); // stop logging (close file, etc.) + IMGUI_API void LogButtons(); // helper to display buttons for logging to tty/file/clipboard + IMGUI_API void LogText(const char* fmt, ...) IM_FMTARGS(1); // pass text data straight to log (without being displayed) + + // Drag and Drop + // - [BETA API] API may evolve! + // - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip as replacement) + IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); // call when the current item is active. If this return true, you can call SetDragDropPayload() + EndDragDropSource() + IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. + IMGUI_API void EndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true! + IMGUI_API bool BeginDragDropTarget(); // call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() + IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0); // accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. + IMGUI_API void EndDragDropTarget(); // only call EndDragDropTarget() if BeginDragDropTarget() returns true! + IMGUI_API const ImGuiPayload* GetDragDropPayload(); // peek directly into the current payload from anywhere. may return NULL. use ImGuiPayload::IsDataType() to test for the payload type. + + // Clipping + IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect); + IMGUI_API void PopClipRect(); + + // Focus, Activation + // - Prefer using "SetItemDefaultFocus()" over "if (IsWindowAppearing()) SetScrollHereY()" when applicable to signify "this is the default item" + IMGUI_API void SetItemDefaultFocus(); // make last item the default focused item of a window. + IMGUI_API void SetKeyboardFocusHere(int offset = 0); // focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. + + // Item/Widgets Utilities + // - Most of the functions are referring to the last/previous item we submitted. + // - See Demo Window under "Widgets->Querying Status" for an interactive visualization of most of those functions. + IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); // is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. + IMGUI_API bool IsItemActive(); // is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false) + IMGUI_API bool IsItemFocused(); // is the last item focused for keyboard/gamepad navigation? + IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item clicked? (e.g. button/node just clicked on) == IsMouseClicked(mouse_button) && IsItemHovered() + IMGUI_API bool IsItemVisible(); // is the last item visible? (items may be out of sight because of clipping/scrolling) + IMGUI_API bool IsItemEdited(); // did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. + IMGUI_API bool IsItemActivated(); // was the last item just made active (item was previously inactive). + IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that requires continuous editing. + IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that requires continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). + IMGUI_API bool IsItemToggledOpen(); // was the last item open state toggled? set by TreeNode(). + IMGUI_API bool IsAnyItemHovered(); // is any item hovered? + IMGUI_API bool IsAnyItemActive(); // is any item active? + IMGUI_API bool IsAnyItemFocused(); // is any item focused? + IMGUI_API ImVec2 GetItemRectMin(); // get upper-left bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectMax(); // get lower-right bounding rectangle of the last item (screen space) + IMGUI_API ImVec2 GetItemRectSize(); // get size of last item + IMGUI_API void SetItemAllowOverlap(); // allow last item to be overlapped by a subsequent item. sometimes useful with invisible buttons, selectables, etc. to catch unused area. + + // Miscellaneous Utilities + IMGUI_API bool IsRectVisible(const ImVec2& menu_size); // test if rectangle (of given size, starting from cursor position) is visible / not clipped. + IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. + IMGUI_API double GetTime(); // get global imgui time. incremented by io.DeltaTime every frame. + IMGUI_API int GetFrameCount(); // get global imgui frame count. incremented by 1 every frame. + IMGUI_API ImDrawList* GetBackgroundDrawList(); // this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. + IMGUI_API ImDrawList* GetForegroundDrawList(); // this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. + IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); // you may use this when creating your own ImDrawList instances. + IMGUI_API const char* GetStyleColorName(ImGuiCol idx); // get a string corresponding to the enum value (for display, saving, etc.). + IMGUI_API void SetStateStorage(ImGuiStorage* storage); // replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) + IMGUI_API ImGuiStorage* GetStateStorage(); + IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // calculate coarse clipping for large list of evenly sized items. Prefer using the ImGuiListClipper higher-level helper if you can. + IMGUI_API bool BeginChildFrame(ImGuiID id, const ImVec2& menu_size, ImGuiWindowFlags flags = 0); // helper to create a child window / scrolling region that looks like a normal widget frame + IMGUI_API void EndChildFrame(); // always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window) + + // Text Utilities + IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); + + // Color Utilities + IMGUI_API ImVec4 ColorConvertU32ToFloat4(ImU32 in); + IMGUI_API ImU32 ColorConvertFloat4ToU32(const ImVec4& in); + IMGUI_API void ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v); + IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); + + // Inputs Utilities: Keyboard + // - For 'int user_key_index' you can use your own indices/enums according to how your back-end/engine stored them in io.KeysDown[]. + // - We don't know the meaning of those value. You can use GetKeyIndex() to map a ImGuiKey_ value into the user index. + IMGUI_API int GetKeyIndex(ImGuiKey imgui_key); // map ImGuiKey_* values into user's key index. == io.KeyMap[key] + IMGUI_API bool IsKeyDown(int user_key_index); // is key being held. == io.KeysDown[user_key_index]. + IMGUI_API bool IsKeyPressed(int user_key_index, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate + IMGUI_API bool IsKeyReleased(int user_key_index); // was key released (went from Down to !Down)? + IMGUI_API int GetKeyPressedAmount(int key_index, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate + IMGUI_API void CaptureKeyboardFromApp(bool want_capture_keyboard_value = true); // attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard_value"; after the next NewFrame() call. + + // Inputs Utilities: Mouse + // - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right. + // - You can also use regular integer: it is forever guaranteed that 0=Left, 1=Right, 2=Middle. + // - Dragging operations are only reported after mouse has moved a certain distance away from the initial clicking position (see 'lock_threshold' and 'io.MouseDraggingThreshold') + IMGUI_API bool IsMouseDown(ImGuiMouseButton button); // is mouse button held? + IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, bool repeat = false); // did mouse button clicked? (went from !Down to Down) + IMGUI_API bool IsMouseReleased(ImGuiMouseButton button); // did mouse button released? (went from Down to !Down) + IMGUI_API bool IsMouseDoubleClicked(ImGuiMouseButton button); // did mouse button double-clicked? (note that a double-click will also report IsMouseClicked() == true) + IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = true);// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. + IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); // by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available + IMGUI_API bool IsAnyMouseDown(); // is any mouse button held? + IMGUI_API ImVec2 GetMousePos(); // shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls + IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); // retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) + IMGUI_API bool IsMouseDragging(ImGuiMouseButton button, float lock_threshold = -1.0f); // is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0, float lock_threshold = -1.0f); // return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) + IMGUI_API void ResetMouseDragDelta(ImGuiMouseButton button = 0); // + IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired cursor type, reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you + IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired cursor type + IMGUI_API void CaptureMouseFromApp(bool want_capture_mouse_value = true); // attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse_value;" after the next NewFrame() call. + + // Clipboard Utilities + // - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard. + IMGUI_API const char* GetClipboardText(); + IMGUI_API void SetClipboardText(const char* text); + + // Settings/.Ini Utilities + // - The disk functions are automatically called if io.IniFilename != NULL (default is "imgui.ini"). + // - Set io.IniFilename to NULL to load/save manually. Read io.WantSaveIniSettings description about handling .ini saving manually. + IMGUI_API void LoadIniSettingsFromDisk(const char* ini_filename); // call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). + IMGUI_API void LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size=0); // call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. + IMGUI_API void SaveIniSettingsToDisk(const char* ini_filename); // this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). + IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. + + // Debug Utilities + IMGUI_API bool DebugCheckVersionAndDataLayout(const char* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert, size_t sz_drawidx); // This is called by IMGUI_CHECKVERSION() macro. + + // Memory Allocators + // - All those functions are not reliant on the current context. + // - If you reload the contents of imgui.cpp at runtime, you may need to call SetCurrentContext() + SetAllocatorFunctions() again because we use global storage for those. + IMGUI_API void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = NULL); + IMGUI_API void* MemAlloc(size_t menu_size); + IMGUI_API void MemFree(void* ptr); + +} // namespace ImGui + +//----------------------------------------------------------------------------- +// Flags & Enumerations +//----------------------------------------------------------------------------- + +// Flags for ImGui::Begin() +enum ImGuiWindowFlags_ +{ + ImGuiWindowFlags_None = 0, + ImGuiWindowFlags_NoTitleBar = 1 << 0, // Disable title-bar + ImGuiWindowFlags_NoResize = 1 << 1, // Disable user resizing with the lower-right grip + ImGuiWindowFlags_NoMove = 1 << 2, // Disable user moving the window + ImGuiWindowFlags_NoScrollbar = 1 << 3, // Disable scrollbars (window can still scroll with mouse or programmatically) + ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, // Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set. + ImGuiWindowFlags_NoCollapse = 1 << 5, // Disable user collapsing window by double-clicking on it + ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, // Resize every window to its content every frame + ImGuiWindowFlags_NoBackground = 1 << 7, // Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f). + ImGuiWindowFlags_NoSavedSettings = 1 << 8, // Never load/save settings in .ini file + ImGuiWindowFlags_NoMouseInputs = 1 << 9, // Disable catching mouse, hovering test with pass through. + ImGuiWindowFlags_MenuBar = 1 << 10, // Has a menu-bar + ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, // Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section. + ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, // Disable taking focus when transitioning from hidden to visible state + ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, // Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus) + ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, // Always show vertical scrollbar (even if ContentSize.y < Size.y) + ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, // Always show horizontal scrollbar (even if ContentSize.x < Size.x) + ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, // Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient) + ImGuiWindowFlags_NoNavInputs = 1 << 18, // No gamepad/keyboard navigation within the window + ImGuiWindowFlags_NoNavFocus = 1 << 19, // No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB) + ImGuiWindowFlags_UnsavedDocument = 1 << 20, // Append '*' to title without affecting the ID, as a convenience to avoid using the ### operator. When used in a tab/docking context, tab is selected on closure and closure is deferred by one frame to allow code to cancel the closure (with a confirmation popup, etc.) without flicker. + ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, + ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, + + // [Internal] + ImGuiWindowFlags_NavFlattened = 1 << 23, // [BETA] Allow gamepad/keyboard navigation to cross over parent border to this child (only use on child that have no scrolling!) + ImGuiWindowFlags_ChildWindow = 1 << 24, // Don't use! For internal use by BeginChild() + ImGuiWindowFlags_Tooltip = 1 << 25, // Don't use! For internal use by BeginTooltip() + ImGuiWindowFlags_Popup = 1 << 26, // Don't use! For internal use by BeginPopup() + ImGuiWindowFlags_Modal = 1 << 27, // Don't use! For internal use by BeginPopupModal() + ImGuiWindowFlags_ChildMenu = 1 << 28 // Don't use! For internal use by BeginMenu() + + // [Obsolete] + //ImGuiWindowFlags_ShowBorders = 1 << 7, // --> Set style.FrameBorderSize=1.0f or style.WindowBorderSize=1.0f to enable borders around items or windows. + //ImGuiWindowFlags_ResizeFromAnySide = 1 << 17, // --> Set io.ConfigWindowsResizeFromEdges=true and make sure mouse cursors are supported by back-end (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) +}; + +// Flags for ImGui::InputText() +enum ImGuiInputTextFlags_ +{ + ImGuiInputTextFlags_None = 0, + ImGuiInputTextFlags_CharsDecimal = 1 << 0, // Allow 0123456789.+-*/ + ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, // Allow 0123456789ABCDEFabcdef + ImGuiInputTextFlags_CharsUppercase = 1 << 2, // Turn a..z into A..Z + ImGuiInputTextFlags_CharsNoBlank = 1 << 3, // Filter out spaces, tabs + ImGuiInputTextFlags_AutoSelectAll = 1 << 4, // Select entire text when first taking mouse focus + ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function. + ImGuiInputTextFlags_CallbackCompletion = 1 << 6, // Callback on pressing TAB (for completion handling) + ImGuiInputTextFlags_CallbackHistory = 1 << 7, // Callback on pressing Up/Down arrows (for history handling) + ImGuiInputTextFlags_CallbackAlways = 1 << 8, // Callback on each iteration. User code may query cursor position, modify text buffer. + ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. + ImGuiInputTextFlags_AllowTabInput = 1 << 10, // Pressing TAB input a '\t' character into the text field + ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, // In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter). + ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, // Disable following the cursor horizontally + ImGuiInputTextFlags_AlwaysInsertMode = 1 << 13, // Insert mode + ImGuiInputTextFlags_ReadOnly = 1 << 14, // Read-only mode + ImGuiInputTextFlags_Password = 1 << 15, // Password mode, display all characters as '*' + ImGuiInputTextFlags_NoUndoRedo = 1 << 16, // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID(). + ImGuiInputTextFlags_CharsScientific = 1 << 17, // Allow 0123456789.+-*/eE (Scientific notation input) + ImGuiInputTextFlags_CallbackResize = 1 << 18, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) + ImGuiInputTextFlags_CallbackEdit = 1 << 19, // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + // [Internal] + ImGuiInputTextFlags_Multiline = 1 << 20, // For internal use by InputTextMultiline() + ImGuiInputTextFlags_NoMarkEdited = 1 << 21 // For internal use by functions using InputText() before reformatting data +}; + +// Flags for ImGui::TreeNodeEx(), ImGui::CollapsingHeader*() +enum ImGuiTreeNodeFlags_ +{ + ImGuiTreeNodeFlags_None = 0, + ImGuiTreeNodeFlags_Selected = 1 << 0, // Draw as selected + ImGuiTreeNodeFlags_Framed = 1 << 1, // Full colored frame (e.g. for CollapsingHeader) + ImGuiTreeNodeFlags_AllowItemOverlap = 1 << 2, // Hit testing to allow subsequent widgets to overlap this one + ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, // Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack + ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, // Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes) + ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, // Default node to be open + ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, // Need double-click to open node + ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, // Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open. + ImGuiTreeNodeFlags_Leaf = 1 << 8, // No collapsing, no arrow (use as a convenience for leaf nodes). + ImGuiTreeNodeFlags_Bullet = 1 << 9, // Display a bullet instead of arrow + ImGuiTreeNodeFlags_FramePadding = 1 << 10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding(). + ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, // Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line. In the future we may refactor the hit system to be front-to-back, allowing natural overlaps and then this can become the default. + ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, // Extend hit box to the left-most and right-most edges (bypass the indented area). + ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, // (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop) + //ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 14, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible + ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog +}; + +// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions. +// - To be backward compatible with older API which took an 'int mouse_button = 1' argument, we need to treat +// small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags. +// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags. +// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0. +// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter +// and want to another another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag. +// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later). +enum ImGuiPopupFlags_ +{ + ImGuiPopupFlags_None = 0, + ImGuiPopupFlags_MouseButtonLeft = 0, // For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left) + ImGuiPopupFlags_MouseButtonRight = 1, // For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right) + ImGuiPopupFlags_MouseButtonMiddle = 2, // For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle) + ImGuiPopupFlags_MouseButtonMask_ = 0x1F, + ImGuiPopupFlags_MouseButtonDefault_ = 1, + ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, // For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack + ImGuiPopupFlags_NoOpenOverItems = 1 << 6, // For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space + ImGuiPopupFlags_AnyPopupId = 1 << 7, // For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup. + ImGuiPopupFlags_AnyPopupLevel = 1 << 8, // For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level) + ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel +}; + +// Flags for ImGui::Selectable() +enum ImGuiSelectableFlags_ +{ + ImGuiSelectableFlags_None = 0, + ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this don't close parent popup window + ImGuiSelectableFlags_SpanAllColumns = 1 << 1, // Selectable frame can span all columns (text will still fit in current column) + ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, // Generate press events on double clicks too + ImGuiSelectableFlags_Disabled = 1 << 3, // Cannot be selected, display grayed out text + ImGuiSelectableFlags_AllowItemOverlap = 1 << 4 // (WIP) Hit testing to allow subsequent widgets to overlap this one +}; + +// Flags for ImGui::BeginCombo() +enum ImGuiComboFlags_ +{ + ImGuiComboFlags_None = 0, + ImGuiComboFlags_PopupAlignLeft = 1 << 0, // Align the popup toward the left by default + ImGuiComboFlags_HeightSmall = 1 << 1, // Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo() + ImGuiComboFlags_HeightRegular = 1 << 2, // Max ~8 items visible (default) + ImGuiComboFlags_HeightLarge = 1 << 3, // Max ~20 items visible + ImGuiComboFlags_HeightLargest = 1 << 4, // As many fitting items as possible + ImGuiComboFlags_NoArrowButton = 1 << 5, // Display on the preview box without the square arrow button + ImGuiComboFlags_NoPreview = 1 << 6, // Display only a square arrow button + ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest +}; + +// Flags for ImGui::BeginTabBar() +enum ImGuiTabBarFlags_ +{ + ImGuiTabBarFlags_None = 0, + ImGuiTabBarFlags_Reorderable = 1 << 0, // Allow manually dragging tabs to re-order them + New tabs are appended at the end of list + ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, // Automatically select new tabs when they appear + ImGuiTabBarFlags_TabListPopupButton = 1 << 2, // Disable buttons to open the tab list popup + ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, // Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll) + ImGuiTabBarFlags_NoTooltip = 1 << 5, // Disable tooltips when hovering a tab + ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, // Resize tabs when they don't fit + ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, // Add scroll buttons when tabs don't fit + ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown +}; + +// Flags for ImGui::BeginTabItem() +enum ImGuiTabItemFlags_ +{ + ImGuiTabItemFlags_None = 0, + ImGuiTabItemFlags_UnsavedDocument = 1 << 0, // Append '*' to title without affecting the ID, as a convenience to avoid using the ### operator. Also: tab is selected on closure and closure is deferred by one frame to allow code to undo it without flicker. + ImGuiTabItemFlags_SetSelected = 1 << 1, // Trigger flag to programmatically make the tab selected when calling BeginTabItem() + ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabItemFlags_NoPushId = 1 << 3, // Don't call PushID(tab->ID)/PopID() on BeginTabItem()/EndTabItem() + ImGuiTabItemFlags_NoTooltip = 1 << 4, // Disable tooltip for the given tab + ImGuiTabItemFlags_NoReorder = 1 << 5, // Disable reordering this tab or having another tab cross over this tab + ImGuiTabItemFlags_Leading = 1 << 6, // Enforce the tab position to the left of the tab bar (after the tab list popup button) + ImGuiTabItemFlags_Trailing = 1 << 7 // Enforce the tab position to the right of the tab bar (before the scrolling buttons) +}; + +// Flags for ImGui::IsWindowFocused() +enum ImGuiFocusedFlags_ +{ + ImGuiFocusedFlags_None = 0, + ImGuiFocusedFlags_ChildWindows = 1 << 0, // IsWindowFocused(): Return true if any children of the window is focused + ImGuiFocusedFlags_RootWindow = 1 << 1, // IsWindowFocused(): Test from root window (top most parent of the current hierarchy) + ImGuiFocusedFlags_AnyWindow = 1 << 2, // IsWindowFocused(): Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ! + ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows +}; + +// Flags for ImGui::IsItemHovered(), ImGui::IsWindowHovered() +// Note: if you are trying to check whether your mouse should be dispatched to Dear ImGui or to your app, you should use 'io.WantCaptureMouse' instead! Please read the FAQ! +// Note: windows with the ImGuiWindowFlags_NoInputs flag are ignored by IsWindowHovered() calls. +enum ImGuiHoveredFlags_ +{ + ImGuiHoveredFlags_None = 0, // Return true if directly over the item/window, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them. + ImGuiHoveredFlags_ChildWindows = 1 << 0, // IsWindowHovered() only: Return true if any children of the window is hovered + ImGuiHoveredFlags_RootWindow = 1 << 1, // IsWindowHovered() only: Test from root window (top most parent of the current hierarchy) + ImGuiHoveredFlags_AnyWindow = 1 << 2, // IsWindowHovered() only: Return true if any window is hovered + ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 3, // Return true even if a popup window is normally blocking access to this item/window + //ImGuiHoveredFlags_AllowWhenBlockedByModal = 1 << 4, // Return true even if a modal popup window is normally blocking access to this item/window. FIXME-TODO: Unavailable yet. + ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 5, // Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns. + ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 6, // Return true even if the position is obstructed or overlapped by another window + ImGuiHoveredFlags_AllowWhenDisabled = 1 << 7, // Return true even if the item is disabled + ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, + ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows +}; + +// Flags for ImGui::BeginDragDropSource(), ImGui::AcceptDragDropPayload() +enum ImGuiDragDropFlags_ +{ + ImGuiDragDropFlags_None = 0, + // BeginDragDropSource() flags + ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disable this behavior. + ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disable this behavior so you can still call IsItemHovered() on the source item. + ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, // Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item. + ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, // Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit. + ImGuiDragDropFlags_SourceExtern = 1 << 4, // External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously. + ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, // Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged) + // AcceptDragDropPayload() flags + ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, // AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered. + ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, // Do not draw the default highlight rectangle when hovering over target. + ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, // Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site. + ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect // For peeking ahead and inspecting the payload before delivery. +}; + +// Standard Drag and Drop payload types. You can define you own payload types using short strings. Types starting with '_' are defined by Dear ImGui. +#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F" // float[3]: Standard type for colors, without alpha. User code may use this type. +#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F" // float[4]: Standard type for colors. User code may use this type. + +// A primary data type +enum ImGuiDataType_ +{ + ImGuiDataType_S8, // signed char / char (with sensible compilers) + ImGuiDataType_U8, // unsigned char + ImGuiDataType_S16, // short + ImGuiDataType_U16, // unsigned short + ImGuiDataType_S32, // int + ImGuiDataType_U32, // unsigned int + ImGuiDataType_S64, // long long / __int64 + ImGuiDataType_U64, // unsigned long long / unsigned __int64 + ImGuiDataType_Float, // float + ImGuiDataType_Double, // double + ImGuiDataType_COUNT +}; + +// A cardinal direction +enum ImGuiDir_ +{ + ImGuiDir_None = -1, + ImGuiDir_Left = 0, + ImGuiDir_Right = 1, + ImGuiDir_Up = 2, + ImGuiDir_Down = 3, + ImGuiDir_COUNT +}; + +// User fill ImGuiIO.KeyMap[] array with indices into the ImGuiIO.KeysDown[512] array +enum ImGuiKey_ +{ + ImGuiKey_Tab, + ImGuiKey_LeftArrow, + ImGuiKey_RightArrow, + ImGuiKey_UpArrow, + ImGuiKey_DownArrow, + ImGuiKey_PageUp, + ImGuiKey_PageDown, + ImGuiKey_Home, + ImGuiKey_End, + ImGuiKey_Insert, + ImGuiKey_Delete, + ImGuiKey_Backspace, + ImGuiKey_Space, + ImGuiKey_Enter, + ImGuiKey_Escape, + ImGuiKey_KeyPadEnter, + ImGuiKey_A, // for text edit CTRL+A: select all + ImGuiKey_C, // for text edit CTRL+C: copy + ImGuiKey_V, // for text edit CTRL+V: paste + ImGuiKey_X, // for text edit CTRL+X: cut + ImGuiKey_Y, // for text edit CTRL+Y: redo + ImGuiKey_Z, // for text edit CTRL+Z: undo + ImGuiKey_COUNT +}; + +// To test io.KeyMods (which is a combination of individual fields io.KeyCtrl, io.KeyShift, io.KeyAlt set by user/back-end) +enum ImGuiKeyModFlags_ +{ + ImGuiKeyModFlags_None = 0, + ImGuiKeyModFlags_Ctrl = 1 << 0, + ImGuiKeyModFlags_Shift = 1 << 1, + ImGuiKeyModFlags_Alt = 1 << 2, + ImGuiKeyModFlags_Super = 1 << 3 +}; + +// Gamepad/Keyboard navigation +// Keyboard: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. +// Gamepad: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. Back-end: set ImGuiBackendFlags_HasGamepad and fill the io.NavInputs[] fields before calling NewFrame(). Note that io.NavInputs[] is cleared by EndFrame(). +// Read instructions in imgui.cpp for more details. Download PNG/PSD at http://goo.gl/9LgVZW. +enum ImGuiNavInput_ +{ + // Gamepad Mapping + ImGuiNavInput_Activate, // activate / open / toggle / tweak value // e.g. Cross (PS4), A (Xbox), A (Switch), Space (Keyboard) + ImGuiNavInput_Cancel, // cancel / close / exit // e.g. Circle (PS4), B (Xbox), B (Switch), Escape (Keyboard) + ImGuiNavInput_Input, // text input / on-screen keyboard // e.g. Triang.(PS4), Y (Xbox), X (Switch), Return (Keyboard) + ImGuiNavInput_Menu, // tap: toggle menu / hold: focus, move, resize // e.g. Square (PS4), X (Xbox), Y (Switch), Alt (Keyboard) + ImGuiNavInput_DpadLeft, // move / tweak / resize window (w/ PadMenu) // e.g. D-pad Left/Right/Up/Down (Gamepads), Arrow keys (Keyboard) + ImGuiNavInput_DpadRight, // + ImGuiNavInput_DpadUp, // + ImGuiNavInput_DpadDown, // + ImGuiNavInput_LStickLeft, // scroll / move window (w/ PadMenu) // e.g. Left Analog Stick Left/Right/Up/Down + ImGuiNavInput_LStickRight, // + ImGuiNavInput_LStickUp, // + ImGuiNavInput_LStickDown, // + ImGuiNavInput_FocusPrev, // next window (w/ PadMenu) // e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch) + ImGuiNavInput_FocusNext, // prev window (w/ PadMenu) // e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch) + ImGuiNavInput_TweakSlow, // slower tweaks // e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch) + ImGuiNavInput_TweakFast, // faster tweaks // e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch) + + // [Internal] Don't use directly! This is used internally to differentiate keyboard from gamepad inputs for behaviors that require to differentiate them. + // Keyboard behavior that have no corresponding gamepad mapping (e.g. CTRL+TAB) will be directly reading from io.KeysDown[] instead of io.NavInputs[]. + ImGuiNavInput_KeyMenu_, // toggle menu // = io.KeyAlt + ImGuiNavInput_KeyLeft_, // move left // = Arrow keys + ImGuiNavInput_KeyRight_, // move right + ImGuiNavInput_KeyUp_, // move up + ImGuiNavInput_KeyDown_, // move down + ImGuiNavInput_COUNT, + ImGuiNavInput_InternalStart_ = ImGuiNavInput_KeyMenu_ +}; + +// Configuration flags stored in io.ConfigFlags. Set by user/application. +enum ImGuiConfigFlags_ +{ + ImGuiConfigFlags_None = 0, + ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. NewFrame() will automatically fill io.NavInputs[] based on io.KeysDown[]. + ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. This is mostly to instruct your imgui back-end to fill io.NavInputs[]. Back-end also needs to set ImGuiBackendFlags_HasGamepad. + ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your binding, otherwise ImGui will react as if the mouse is jumping around back and forth. + ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, // Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set. + ImGuiConfigFlags_NoMouse = 1 << 4, // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the back-end. + ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, // Instruct back-end to not alter mouse cursor shape and visibility. Use if the back-end cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead. + + // User storage (to allow your back-end/engine to communicate to code that may be shared between multiple projects. Those flags are not used by core Dear ImGui) + ImGuiConfigFlags_IsSRGB = 1 << 20, // Application is SRGB-aware. + ImGuiConfigFlags_IsTouchScreen = 1 << 21 // Application is using a touch screen instead of a mouse. +}; + +// Back-end capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom back-end. +enum ImGuiBackendFlags_ +{ + ImGuiBackendFlags_None = 0, + ImGuiBackendFlags_HasGamepad = 1 << 0, // Back-end Platform supports gamepad and currently has one connected. + ImGuiBackendFlags_HasMouseCursors = 1 << 1, // Back-end Platform supports honoring GetMouseCursor() value to change the OS cursor shape. + ImGuiBackendFlags_HasSetMousePos = 1 << 2, // Back-end Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set). + ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3 // Back-end Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices. +}; + +// Enumeration for PushStyleColor() / PopStyleColor() +enum ImGuiCol_ +{ + ImGuiCol_Text, + ImGuiCol_TextDisabled, + ImGuiCol_WindowBg, // Background of normal windows + ImGuiCol_ChildBg, // Background of child windows + ImGuiCol_PopupBg, // Background of popups, menus, tooltips windows + ImGuiCol_Border, + ImGuiCol_BorderShadow, + ImGuiCol_FrameBg, // Background of checkbox, radio button, plot, slider, text input + ImGuiCol_FrameBgHovered, + ImGuiCol_FrameBgActive, + ImGuiCol_TitleBg, + ImGuiCol_TitleBgActive, + ImGuiCol_TitleBgCollapsed, + ImGuiCol_MenuBarBg, + ImGuiCol_ScrollbarBg, + ImGuiCol_ScrollbarGrab, + ImGuiCol_ScrollbarGrabHovered, + ImGuiCol_ScrollbarGrabActive, + ImGuiCol_CheckMark, + ImGuiCol_SliderGrab, + ImGuiCol_SliderGrabActive, + ImGuiCol_Button, + ImGuiCol_ButtonHovered, + ImGuiCol_ButtonActive, + ImGuiCol_Header, // Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem + ImGuiCol_HeaderHovered, + ImGuiCol_HeaderActive, + ImGuiCol_Separator, + ImGuiCol_SeparatorHovered, + ImGuiCol_SeparatorActive, + ImGuiCol_ResizeGrip, + ImGuiCol_ResizeGripHovered, + ImGuiCol_ResizeGripActive, + ImGuiCol_Tab, + ImGuiCol_TabHovered, + ImGuiCol_TabActive, + ImGuiCol_TabUnfocused, + ImGuiCol_TabUnfocusedActive, + ImGuiCol_PlotLines, + ImGuiCol_PlotLinesHovered, + ImGuiCol_PlotHistogram, + ImGuiCol_PlotHistogramHovered, + ImGuiCol_TextSelectedBg, + ImGuiCol_DragDropTarget, + ImGuiCol_NavHighlight, // Gamepad/keyboard: current highlighted item + ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB + ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active + ImGuiCol_ModalWindowDimBg, // Darken/colorize entire screen behind a modal window, when one is active + ImGuiCol_COUNT + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + , ImGuiCol_ModalWindowDarkening = ImGuiCol_ModalWindowDimBg // [renamed in 1.63] + //, ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered// [unused since 1.60+] the close button now uses regular button colors. +#endif +}; + +// Enumeration for PushStyleVar() / PopStyleVar() to temporarily modify the ImGuiStyle structure. +// - The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code. +// During initialization or between frames, feel free to just poke into ImGuiStyle directly. +// - Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description. +// In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. +// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. +// - When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type. +enum ImGuiStyleVar_ +{ + // Enum name --------------------- // Member in ImGuiStyle structure (see ImGuiStyle for descriptions) + ImGuiStyleVar_Alpha, // float Alpha + ImGuiStyleVar_WindowPadding, // ImVec2 WindowPadding + ImGuiStyleVar_WindowRounding, // float WindowRounding + ImGuiStyleVar_WindowBorderSize, // float WindowBorderSize + ImGuiStyleVar_WindowMinSize, // ImVec2 WindowMinSize + ImGuiStyleVar_WindowTitleAlign, // ImVec2 WindowTitleAlign + ImGuiStyleVar_ChildRounding, // float ChildRounding + ImGuiStyleVar_ChildBorderSize, // float ChildBorderSize + ImGuiStyleVar_PopupRounding, // float PopupRounding + ImGuiStyleVar_PopupBorderSize, // float PopupBorderSize + ImGuiStyleVar_FramePadding, // ImVec2 FramePadding + ImGuiStyleVar_FrameRounding, // float FrameRounding + ImGuiStyleVar_FrameBorderSize, // float FrameBorderSize + ImGuiStyleVar_ItemSpacing, // ImVec2 ItemSpacing + ImGuiStyleVar_ItemInnerSpacing, // ImVec2 ItemInnerSpacing + ImGuiStyleVar_IndentSpacing, // float IndentSpacing + ImGuiStyleVar_ScrollbarSize, // float ScrollbarSize + ImGuiStyleVar_ScrollbarRounding, // float ScrollbarRounding + ImGuiStyleVar_GrabMinSize, // float GrabMinSize + ImGuiStyleVar_GrabRounding, // float GrabRounding + ImGuiStyleVar_TabRounding, // float TabRounding + ImGuiStyleVar_ButtonTextAlign, // ImVec2 ButtonTextAlign + ImGuiStyleVar_SelectableTextAlign, // ImVec2 SelectableTextAlign + ImGuiStyleVar_COUNT + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + , ImGuiStyleVar_Count_ = ImGuiStyleVar_COUNT // [renamed in 1.60] +#endif +}; + +// Flags for InvisibleButton() [extended in imgui_internal.h] +enum ImGuiButtonFlags_ +{ + ImGuiButtonFlags_None = 0, + ImGuiButtonFlags_MouseButtonLeft = 1 << 0, // React on left mouse button (default) + ImGuiButtonFlags_MouseButtonRight = 1 << 1, // React on right mouse button + ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, // React on center mouse button + + // [Internal] + ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, + ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft +}; + +// Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() +enum ImGuiColorEditFlags_ +{ + ImGuiColorEditFlags_None = 0, + ImGuiColorEditFlags_NoAlpha = 1 << 1, // // ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer). + ImGuiColorEditFlags_NoPicker = 1 << 2, // // ColorEdit: disable picker when clicking on colored square. + ImGuiColorEditFlags_NoOptions = 1 << 3, // // ColorEdit: disable toggling options menu when right-clicking on inputs/small preview. + ImGuiColorEditFlags_NoSmallPreview = 1 << 4, // // ColorEdit, ColorPicker: disable colored square preview next to the inputs. (e.g. to show only the inputs) + ImGuiColorEditFlags_NoInputs = 1 << 5, // // ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview colored square). + ImGuiColorEditFlags_NoTooltip = 1 << 6, // // ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview. + ImGuiColorEditFlags_NoLabel = 1 << 7, // // ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker). + ImGuiColorEditFlags_NoSidePreview = 1 << 8, // // ColorPicker: disable bigger color preview on right side of the picker, use small colored square preview instead. + ImGuiColorEditFlags_NoDragDrop = 1 << 9, // // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source. + ImGuiColorEditFlags_NoBorder = 1 << 10, // // ColorButton: disable border (which is enforced by default) + + // User Options (right-click on widget to change some of them). + ImGuiColorEditFlags_AlphaBar = 1 << 16, // // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker. + ImGuiColorEditFlags_AlphaPreview = 1 << 17, // // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque. + ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18, // // ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque. + ImGuiColorEditFlags_HDR = 1 << 19, // // (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well). + ImGuiColorEditFlags_DisplayRGB = 1 << 20, // [Display] // ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex. + ImGuiColorEditFlags_DisplayHSV = 1 << 21, // [Display] // " + ImGuiColorEditFlags_DisplayHex = 1 << 22, // [Display] // " + ImGuiColorEditFlags_Uint8 = 1 << 23, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255. + ImGuiColorEditFlags_Float = 1 << 24, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers. + ImGuiColorEditFlags_PickerHueBar = 1 << 25, // [Picker] // ColorPicker: bar for Hue, rectangle for Sat/Value. + ImGuiColorEditFlags_PickerHueWheel = 1 << 26, // [Picker] // ColorPicker: wheel for Hue, triangle for Sat/Value. + ImGuiColorEditFlags_InputRGB = 1 << 27, // [Input] // ColorEdit, ColorPicker: input and output data in RGB format. + ImGuiColorEditFlags_InputHSV = 1 << 28, // [Input] // ColorEdit, ColorPicker: input and output data in HSV format. + + // Defaults Options. You can set application defaults using SetColorEditOptions(). The intent is that you probably don't want to + // override them in most of your calls. Let the user choose via the option menu and/or call SetColorEditOptions() once during startup. + ImGuiColorEditFlags__OptionsDefault = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, + + // [Internal] Masks + ImGuiColorEditFlags__DisplayMask = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, + ImGuiColorEditFlags__DataTypeMask = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, + ImGuiColorEditFlags__PickerMask = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, + ImGuiColorEditFlags__InputMask = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + , ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] +#endif +}; + +// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. +// We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. +enum ImGuiSliderFlags_ +{ + ImGuiSliderFlags_None = 0, + ImGuiSliderFlags_AlwaysClamp = 1 << 4, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. + ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. + ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits) + ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget + ImGuiSliderFlags_InvalidMask_ = 0x7000000F // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + , ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp // [renamed in 1.79] +#endif +}; + +// Identify a mouse button. +// Those values are guaranteed to be stable and we frequently use 0/1 directly. Named enums provided for convenience. +enum ImGuiMouseButton_ +{ + ImGuiMouseButton_Left = 0, + ImGuiMouseButton_Right = 1, + ImGuiMouseButton_Middle = 2, + ImGuiMouseButton_COUNT = 5 +}; + +// Enumeration for GetMouseCursor() +// User code may request binding to display given cursor by calling SetMouseCursor(), which is why we have some cursors that are marked unused here +enum ImGuiMouseCursor_ +{ + ImGuiMouseCursor_None = -1, + ImGuiMouseCursor_Arrow = 0, + ImGuiMouseCursor_TextInput, // When hovering over InputText, etc. + ImGuiMouseCursor_ResizeAll, // (Unused by Dear ImGui functions) + ImGuiMouseCursor_ResizeNS, // When hovering over an horizontal border + ImGuiMouseCursor_ResizeEW, // When hovering over a vertical border or a column + ImGuiMouseCursor_ResizeNESW, // When hovering over the bottom-left corner of a window + ImGuiMouseCursor_ResizeNWSE, // When hovering over the bottom-right corner of a window + ImGuiMouseCursor_Hand, // (Unused by Dear ImGui functions. Use for e.g. hyperlinks) + ImGuiMouseCursor_NotAllowed, // When hovering something with disallowed interaction. Usually a crossed circle. + ImGuiMouseCursor_COUNT + + // Obsolete names (will be removed) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + , ImGuiMouseCursor_Count_ = ImGuiMouseCursor_COUNT // [renamed in 1.60] +#endif +}; + +// Enumeration for ImGui::SetWindow***(), SetNextWindow***(), SetNextItem***() functions +// Represent a condition. +// Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always. +enum ImGuiCond_ +{ + ImGuiCond_None = 0, // No condition (always set the variable), same as _Always + ImGuiCond_Always = 1 << 0, // No condition (always set the variable) + ImGuiCond_Once = 1 << 1, // Set the variable once per runtime session (only the first call will succeed) + ImGuiCond_FirstUseEver = 1 << 2, // Set the variable if the object/window has no persistently saved data (no entry in .ini file) + ImGuiCond_Appearing = 1 << 3 // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) +}; + +//----------------------------------------------------------------------------- +// Helpers: Memory allocations macros +// IM_MALLOC(), IM_FREE(), IM_NEW(), IM_PLACEMENT_NEW(), IM_DELETE() +// We call C++ constructor on own allocated memory via the placement "new(ptr) Type()" syntax. +// Defining a custom placement new() with a custom parameter allows us to bypass including which on some platforms complains when user has disabled exceptions. +//----------------------------------------------------------------------------- + +struct ImNewWrapper {}; +inline void* operator new(size_t, ImNewWrapper, void* ptr) { return ptr; } +inline void operator delete(void*, ImNewWrapper, void*) {} // This is only required so we can use the symmetrical new() +#define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE) +#define IM_FREE(_PTR) ImGui::MemFree(_PTR) +#define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR) +#define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE +template void IM_DELETE(T* p) { if (p) { p->~T(); ImGui::MemFree(p); } } + +//----------------------------------------------------------------------------- +// Helper: ImVector<> +// Lightweight std::vector<>-like class to avoid dragging dependencies (also, some implementations of STL with debug enabled are absurdly slow, we bypass it so our code runs fast in debug). +//----------------------------------------------------------------------------- +// - You generally do NOT need to care or use this ever. But we need to make it available in imgui.h because some of our public structures are relying on it. +// - We use std-like naming convention here, which is a little unusual for this codebase. +// - Important: clear() frees memory, resize(0) keep the allocated buffer. We use resize(0) a lot to intentionally recycle allocated buffers across frames and amortize our costs. +// - Important: our implementation does NOT call C++ constructors/destructors, we treat everything as raw data! This is intentional but be extra mindful of that, +// Do NOT use this class as a std::vector replacement in your own code! Many of the structures used by dear imgui can be safely initialized by a zero-memset. +//----------------------------------------------------------------------------- + +template +struct ImVector +{ + int Size; + int Capacity; + T* Data; + + // Provide standard typedefs but we don't use them ourselves. + typedef T value_type; + typedef value_type* iterator; + typedef const value_type* const_iterator; + + // Constructors, destructor + inline ImVector() { Size = Capacity = 0; Data = NULL; } + inline ImVector(const ImVector& src) { Size = Capacity = 0; Data = NULL; operator=(src); } + inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } + inline ~ImVector() { if (Data) IM_FREE(Data); } + + inline bool empty() const { return Size == 0; } + inline int menu_size() const { return Size; } + inline int size_in_bytes() const { return Size * (int)sizeof(T); } + inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); } + inline int capacity() const { return Capacity; } + inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } + + inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } + inline T* begin() { return Data; } + inline const T* begin() const { return Data; } + inline T* end() { return Data + Size; } + inline const T* end() const { return Data + Size; } + inline T& front() { IM_ASSERT(Size > 0); return Data[0]; } + inline const T& front() const { IM_ASSERT(Size > 0); return Data[0]; } + inline T& back() { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline const T& back() const { IM_ASSERT(Size > 0); return Data[Size - 1]; } + inline void swap(ImVector& rhs) { int rhs_size = rhs.Size; rhs.Size = Size; Size = rhs_size; int rhs_cap = rhs.Capacity; rhs.Capacity = Capacity; Capacity = rhs_cap; T* rhs_data = rhs.Data; rhs.Data = Data; Data = rhs_data; } + + inline int _grow_capacity(int sz) const { int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8; return new_capacity > sz ? new_capacity : sz; } + inline void resize(int new_size) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; } + inline void resize(int new_size, const T& v) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); if (new_size > Size) for (int n = Size; n < new_size; n++) memcpy(&Data[n], &v, sizeof(v)); Size = new_size; } + inline void shrink(int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; } // Resize a vector to a smaller size, guaranteed not to cause a reallocation + inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); IM_FREE(Data); } Data = new_data; Capacity = new_capacity; } + + // NB: It is illegal to call push_back/push_front/insert with a reference pointing inside the ImVector data itself! e.g. v.push_back(v[10]) is forbidden. + inline void push_back(const T& v) { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } + inline void pop_back() { IM_ASSERT(Size > 0); Size--; } + inline void push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } + inline T* erase(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((size_t)Size - (size_t)off - 1) * sizeof(T)); Size--; return Data + off; } + inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last > it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - count) * sizeof(T)); Size -= (int)count; return Data + off; } + inline T* erase_unsorted(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; if (it < Data + Size - 1) memcpy(Data + off, Data + Size - 1, sizeof(T)); Size--; return Data + off; } + inline T* insert(const T* it, const T& v) { IM_ASSERT(it >= Data && it <= Data + Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(T)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; } + inline bool contains(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; } + inline T* find(const T& v) { T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline const T* find(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } + inline bool find_erase(const T& v) { const T* it = find(v); if (it < Data + Size) { erase(it); return true; } return false; } + inline bool find_erase_unsorted(const T& v) { const T* it = find(v); if (it < Data + Size) { erase_unsorted(it); return true; } return false; } + inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; return (int)off; } +}; + +//----------------------------------------------------------------------------- +// ImGuiStyle +// You may modify the ImGui::GetStyle() main instance during initialization and before NewFrame(). +// During the frame, use ImGui::PushStyleVar(ImGuiStyleVar_XXXX)/PopStyleVar() to alter the main style values, +// and ImGui::PushStyleColor(ImGuiCol_XXX)/PopStyleColor() for colors. +//----------------------------------------------------------------------------- + +struct ImGuiStyle +{ + float Alpha; // Global alpha applies to everything in Dear ImGui. + ImVec2 WindowPadding; // Padding within a window. + float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constraint individual windows, use SetNextWindowSizeConstraints(). + ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. + ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. + float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. + float ChildBorderSize; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + float PopupRounding; // Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding) + float PopupBorderSize; // Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). + float FrameRounding; // Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). + float FrameBorderSize; // Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 ItemSpacing; // Horizontal and vertical spacing between widgets/lines. + ImVec2 ItemInnerSpacing; // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). + ImVec2 TouchExtraPadding; // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + float ColumnsMinSpacing; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + float ScrollbarSize; // Width of the vertical scrollbar, Height of the horizontal scrollbar. + float ScrollbarRounding; // Radius of grab corners for scrollbar. + float GrabMinSize; // Minimum width/height of a grab box for slider/scrollbar. + float GrabRounding; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + float TabBorderSize; // Thickness of border around tabs. + float TabMinWidthForCloseButton; // Minimum width for close button to appears on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. + ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). + ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + ImVec2 DisplayWindowPadding; // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. + ImVec2 DisplaySafeAreaPadding; // If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly! + float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. + bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require back-end to render with bilinear filtering. Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + float CircleSegmentMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + ImVec4 Colors[ImGuiCol_COUNT]; + + IMGUI_API ImGuiStyle(); + IMGUI_API void ScaleAllSizes(float scale_factor); +}; + +//----------------------------------------------------------------------------- +// ImGuiIO +// Communicate most settings and inputs/outputs to Dear ImGui using this structure. +// Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage. +//----------------------------------------------------------------------------- + +struct ImGuiIO +{ + //------------------------------------------------------------------ + // Configuration (fill once) // Default value + //------------------------------------------------------------------ + + ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc. + ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by back-end (imgui_impl_xxx files or custom back-end) to communicate features supported by the back-end. + ImVec2 DisplaySize; // // Main display size, in pixels. + float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. + float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. + const char* IniFilename; // = "imgui.ini" // Path to .ini file. Set NULL to disable automatic .ini loading/saving, if e.g. you want to manually load/save from memory. + const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). + float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. + float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. + float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. + int KeyMap[ImGuiKey_COUNT]; // // Map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. + float KeyRepeatDelay; // = 0.250f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). + float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. + void* UserData; // = NULL // Store your own data for retrieval by callbacks. + + ImFontAtlas*Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. + float FontGlobalScale; // = 1.0f // Global scale all fonts + bool FontAllowUserScaling; // = false // Allow user scaling text of individual window with CTRL+Wheel. + ImFont* FontDefault; // = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0]. + ImVec2 DisplayFramebufferScale; // = (1, 1) // For retina display or other situations where window coordinates are different from framebuffer coordinates. This generally ends up in ImDrawData::FramebufferScale. + + // Miscellaneous options + bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by back-end implementations. + bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // OS X style: Text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl (was called io.OptMacOSXBehaviors prior to 1.63) + bool ConfigInputTextCursorBlink; // = true // Set to false to disable blinking cursor, for users who consider it distracting. (was called: io.OptCursorBlink prior to 1.63) + bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) + bool ConfigWindowsMoveFromTitleBarOnly; // = false // [BETA] Set to true to only allow moving windows when clicked+dragged from the title bar. Windows without a title bar are not affected. + float ConfigWindowsMemoryCompactTimer;// = 60.0f // [BETA] Compact window memory usage when unused. Set to -1.0f to disable. + + //------------------------------------------------------------------ + // Platform Functions + // (the imgui_impl_xxxx back-end files are setting those up for you) + //------------------------------------------------------------------ + + // Optional: Platform/Renderer back-end name (informational only! will be displayed in About Window) + User data for back-end/wrappers to store their own stuff. + const char* BackendPlatformName; // = NULL + const char* BackendRendererName; // = NULL + void* BackendPlatformUserData; // = NULL // User data for platform back-end + void* BackendRendererUserData; // = NULL // User data for renderer back-end + void* BackendLanguageUserData; // = NULL // User data for non C++ programming language back-end + + // Optional: Access OS clipboard + // (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures) + const char* (*GetClipboardTextFn)(void* user_data); + void (*SetClipboardTextFn)(void* user_data, const char* text); + void* ClipboardUserData; + + // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) + // (default to use native imm32 api on Windows) + void (*ImeSetInputScreenPosFn)(int x, int y); + void* ImeWindowHandle; // = NULL // (Windows) Set this to your HWND to get automatic IME cursor positioning. + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // [OBSOLETE since 1.60+] Rendering function, will be automatically called in Render(). Please call your rendering function yourself now! + // You can obtain the ImDrawData* by calling ImGui::GetDrawData() after Render(). See example applications if you are unsure of how to implement this. + void (*RenderDrawListsFn)(ImDrawData* data); +#else + // This is only here to keep ImGuiIO the same size/layout, so that IMGUI_DISABLE_OBSOLETE_FUNCTIONS can exceptionally be used outside of imconfig.h. + void* RenderDrawListsFnUnused; +#endif + + //------------------------------------------------------------------ + // Input - Fill before calling NewFrame() + //------------------------------------------------------------------ + + ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) + bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Others buttons allows us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. + float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. + float MouseWheelH; // Mouse wheel Horizontal. Most users don't have a mouse with an horizontal wheel, may not be filled by all back-ends. + bool KeyCtrl; // Keyboard modifier pressed: Control + bool KeyShift; // Keyboard modifier pressed: Shift + bool KeyAlt; // Keyboard modifier pressed: Alt + bool KeySuper; // Keyboard modifier pressed: Cmd/Super/Windows + bool KeysDown[512]; // Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). + float NavInputs[ImGuiNavInput_COUNT]; // Gamepad inputs. Cleared back to zero by EndFrame(). Keyboard keys will be auto-mapped and be written here by NewFrame(). + + // Functions + IMGUI_API void AddInputCharacter(unsigned int c); // Queue new character input + IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue new character input from an UTF-16 character, it can be a surrogate + IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue new characters input from an UTF-8 string + IMGUI_API void ClearInputCharacters(); // Clear the text input buffer manually + + //------------------------------------------------------------------ + // Output - Updated by NewFrame() or EndFrame()/Render() + // (when reading from the io.WantCaptureMouse, io.WantCaptureKeyboard flags to dispatch your inputs, it is + // generally easier and more correct to use their state BEFORE calling NewFrame(). See FAQ for details!) + //------------------------------------------------------------------ + + bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). + bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). + bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). + bool WantSetMousePos; // MousePos has been altered, back-end should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. + bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! + bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. + bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). + float Framerate; // Application framerate estimate, in frame per second. Solely for convenience. Rolling average estimation based on io.DeltaTime over 120 frames. + int MetricsRenderVertices; // Vertices output during last call to Render() + int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 + int MetricsRenderWindows; // Number of visible windows + int MetricsActiveWindows; // Number of active windows + int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. + ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + + //------------------------------------------------------------------ + // [Internal] Dear ImGui will maintain those fields. Forward compatibility not guaranteed! + //------------------------------------------------------------------ + + ImGuiKeyModFlags KeyMods; // Key mods flags (same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags), updated by NewFrame() + ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) + ImVec2 MouseClickedPos[5]; // Position at time of clicking + double MouseClickedTime[5]; // Time of last click (used to figure out double-click) + bool MouseClicked[5]; // Mouse button went from !Down to Down + bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? + bool MouseReleased[5]; // Mouse button went from Down to !Down + bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window. We don't request mouse capture from the application if click started outside ImGui bounds. + bool MouseDownWasDoubleClick[5]; // Track if button down was a double-click + float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) + float MouseDownDurationPrev[5]; // Previous time the mouse button has been down + ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point + float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point + float KeysDownDuration[512]; // Duration the keyboard key has been down (0.0f == just pressed) + float KeysDownDurationPrev[512]; // Previous duration the key has been down + float NavInputsDownDuration[ImGuiNavInput_COUNT]; + float NavInputsDownDurationPrev[ImGuiNavInput_COUNT]; + float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. + ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16 + ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform back-end). Fill using AddInputCharacter() helper. + + IMGUI_API ImGuiIO(); +}; + +//----------------------------------------------------------------------------- +// Misc data structures +//----------------------------------------------------------------------------- + +// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used. +// The callback function should return 0 by default. +// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details) +// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) +// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration +// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB +// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows +// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. +// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. +struct ImGuiInputTextCallbackData +{ + ImGuiInputTextFlags EventFlag; // One ImGuiInputTextFlags_Callback* // Read-only + ImGuiInputTextFlags Flags; // What user passed to InputText() // Read-only + void* UserData; // What user passed to InputText() // Read-only + + // Arguments for the different callback events + // - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary. + // - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state. + ImWchar EventChar; // Character input // Read-write // [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0; + ImGuiKey EventKey; // Key pressed (Up/Down/TAB) // Read-only // [Completion,History] + char* Buf; // Text buffer // Read-write // [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer! + int BufTextLen; // Text length (in bytes) // Read-write // [Resize,Completion,History,Always] Exclude zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length() + int BufSize; // Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1 + bool BufDirty; // Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always] + int CursorPos; // // Read-write // [Completion,History,Always] + int SelectionStart; // // Read-write // [Completion,History,Always] == to SelectionEnd when no selection) + int SelectionEnd; // // Read-write // [Completion,History,Always] + + // Helper functions for text manipulation. + // Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection. + IMGUI_API ImGuiInputTextCallbackData(); + IMGUI_API void DeleteChars(int pos, int bytes_count); + IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL); + void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; } + void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; } + bool HasSelection() const { return SelectionStart != SelectionEnd; } +}; + +// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin(). +// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough. +struct ImGuiSizeCallbackData +{ + void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints() + ImVec2 Pos; // Read-only. Window position, for reference. + ImVec2 CurrentSize; // Read-only. Current window size. + ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing. +}; + +// Data payload for Drag and Drop operations: AcceptDragDropPayload(), GetDragDropPayload() +struct ImGuiPayload +{ + // Members + void* Data; // Data (copied and owned by dear imgui) + int DataSize; // Data size + + // [Internal] + ImGuiID SourceId; // Source item id + ImGuiID SourceParentId; // Source parent id (if available) + int DataFrameCount; // Data timestamp + char DataType[32 + 1]; // Data type tag (short user-supplied string, 32 characters max) + bool Preview; // Set when AcceptDragDropPayload() was called and mouse has been hovering the target item (nb: handle overlapping drag targets) + bool Delivery; // Set when AcceptDragDropPayload() was called and mouse button is released over the target item. + + ImGuiPayload() { Clear(); } + void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0, sizeof(DataType)); DataFrameCount = -1; Preview = Delivery = false; } + bool IsDataType(const char* type) const { return DataFrameCount != -1 && strcmp(type, DataType) == 0; } + bool IsPreview() const { return Preview; } + bool IsDelivery() const { return Delivery; } +}; + +//----------------------------------------------------------------------------- +// Obsolete functions (Will be removed! Read 'API BREAKING CHANGES' section in imgui.cpp for details) +// Please keep your copy of dear imgui up to date! Occasionally set '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in imconfig.h to stay ahead. +//----------------------------------------------------------------------------- + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +namespace ImGui +{ + // OBSOLETED in 1.79 (from August 2020) + static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! + // OBSOLETED in 1.78 (from June 2020) + // Old drag/sliders functions that took a 'float power = 1.0' argument instead of flags. + // For shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. + IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power); + IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, float power); + static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } + static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } + static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } + static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } + IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power); + IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power); + static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } + static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } + static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } + static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } + // OBSOLETED in 1.77 (from June 2020) + static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } + // OBSOLETED in 1.72 (from April 2019) + static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } + // OBSOLETED in 1.71 (from June 2019) + static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } + // OBSOLETED in 1.70 (from May 2019) + static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } + // OBSOLETED in 1.69 (from Mar 2019) + static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } + // OBSOLETED in 1.66 (from Sep 2018) + static inline void SetScrollHere(float center_ratio=0.5f){ SetScrollHereY(center_ratio); } + // OBSOLETED in 1.63 (between Aug 2018 and Sept 2018) + static inline bool IsItemDeactivatedAfterChange() { return IsItemDeactivatedAfterEdit(); } + // OBSOLETED in 1.61 (between Apr 2018 and Aug 2018) + IMGUI_API bool InputFloat(const char* label, float* v, float step, float step_fast, int decimal_precision, ImGuiInputTextFlags flags = 0); // Use the 'const char* format' version instead of 'decimal_precision'! + IMGUI_API bool InputFloat2(const char* label, float v[2], int decimal_precision, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat3(const char* label, float v[3], int decimal_precision, ImGuiInputTextFlags flags = 0); + IMGUI_API bool InputFloat4(const char* label, float v[4], int decimal_precision, ImGuiInputTextFlags flags = 0); + // OBSOLETED in 1.60 (between Dec 2017 and Apr 2018) + static inline bool IsAnyWindowFocused() { return IsWindowFocused(ImGuiFocusedFlags_AnyWindow); } + static inline bool IsAnyWindowHovered() { return IsWindowHovered(ImGuiHoveredFlags_AnyWindow); } +} +typedef ImGuiInputTextCallback ImGuiTextEditCallback; // OBSOLETED in 1.63 (from Aug 2018): made the names consistent +typedef ImGuiInputTextCallbackData ImGuiTextEditCallbackData; +#endif + +//----------------------------------------------------------------------------- +// Helpers +//----------------------------------------------------------------------------- + +// Helper: Unicode defines +#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD // Invalid Unicode code point (standard value). +#ifdef IMGUI_USE_WCHAR32 +#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF // Maximum Unicode code point supported by this build. +#else +#define IM_UNICODE_CODEPOINT_MAX 0xFFFF // Maximum Unicode code point supported by this build. +#endif + +// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create an UI within deep-nested code that runs multiple times every frame. +// Usage: static ImGuiOnceUponAFrame oaf; if (oaf) ImGui::Text("This will be called only once per frame"); +struct ImGuiOnceUponAFrame +{ + ImGuiOnceUponAFrame() { RefFrame = -1; } + mutable int RefFrame; + operator bool() const { int current_frame = ImGui::GetFrameCount(); if (RefFrame == current_frame) return false; RefFrame = current_frame; return true; } +}; + +// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" +struct ImGuiTextFilter +{ + IMGUI_API ImGuiTextFilter(const char* default_filter = ""); + IMGUI_API bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper calling InputText+Build + IMGUI_API bool PassFilter(const char* text, const char* text_end = NULL) const; + IMGUI_API void Build(); + void Clear() { InputBuf[0] = 0; Build(); } + bool IsActive() const { return !Filters.empty(); } + + // [Internal] + struct ImGuiTextRange + { + const char* b; + const char* e; + + ImGuiTextRange() { b = e = NULL; } + ImGuiTextRange(const char* _b, const char* _e) { b = _b; e = _e; } + bool empty() const { return b == e; } + IMGUI_API void split(char separator, ImVector* out) const; + }; + char InputBuf[256]; + ImVectorFilters; + int CountGrep; +}; + +// Helper: Growable text buffer for logging/accumulating text +// (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder') +struct ImGuiTextBuffer +{ + ImVector Buf; + IMGUI_API static char EmptyString[1]; + + ImGuiTextBuffer() { } + inline char operator[](int i) const { IM_ASSERT(Buf.Data != NULL); return Buf.Data[i]; } + const char* begin() const { return Buf.Data ? &Buf.front() : EmptyString; } + const char* end() const { return Buf.Data ? &Buf.back() : EmptyString; } // Buf is zero-terminated, so end() will point on the zero-terminator + int menu_size() const { return Buf.Size ? Buf.Size - 1 : 0; } + bool empty() const { return Buf.Size <= 1; } + void clear() { Buf.clear(); } + void reserve(int capacity) { Buf.reserve(capacity); } + const char* c_str() const { return Buf.Data ? Buf.Data : EmptyString; } + IMGUI_API void append(const char* str, const char* str_end = NULL); + IMGUI_API void appendf(const char* fmt, ...) IM_FMTARGS(2); + IMGUI_API void appendfv(const char* fmt, va_list args) IM_FMTLIST(2); +}; + +// Helper: Key->Value storage +// Typically you don't have to worry about this since a storage is held within each Window. +// We use it to e.g. store collapse state for a tree (Int 0/1) +// This is optimized for efficient lookup (dichotomy into a contiguous buffer) and rare insertion (typically tied to user interactions aka max once a frame) +// You can use it as custom user storage for temporary values. Declare your own storage if, for example: +// - You want to manipulate the open/close state of a particular sub-tree in your interface (tree node uses Int 0/1 to store their state). +// - You want to store custom debug data easily without adding or editing structures in your code (probably not efficient, but convenient) +// Types are NOT stored, so it is up to you to make sure your Key don't collide with different types. +struct ImGuiStorage +{ + // [Internal] + struct ImGuiStoragePair + { + ImGuiID key; + union { int val_i; float val_f; void* val_p; }; + ImGuiStoragePair(ImGuiID _key, int _val_i) { key = _key; val_i = _val_i; } + ImGuiStoragePair(ImGuiID _key, float _val_f) { key = _key; val_f = _val_f; } + ImGuiStoragePair(ImGuiID _key, void* _val_p) { key = _key; val_p = _val_p; } + }; + + ImVector Data; + + // - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N) + // - Set***() functions find pair, insertion on demand if missing. + // - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair. + void Clear() { Data.clear(); } + IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const; + IMGUI_API void SetInt(ImGuiID key, int val); + IMGUI_API bool GetBool(ImGuiID key, bool default_val = false) const; + IMGUI_API void SetBool(ImGuiID key, bool val); + IMGUI_API float GetFloat(ImGuiID key, float default_val = 0.0f) const; + IMGUI_API void SetFloat(ImGuiID key, float val); + IMGUI_API void* GetVoidPtr(ImGuiID key) const; // default_val is NULL + IMGUI_API void SetVoidPtr(ImGuiID key, void* val); + + // - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set. + // - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. + // - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct) + // float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar; + IMGUI_API int* GetIntRef(ImGuiID key, int default_val = 0); + IMGUI_API bool* GetBoolRef(ImGuiID key, bool default_val = false); + IMGUI_API float* GetFloatRef(ImGuiID key, float default_val = 0.0f); + IMGUI_API void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL); + + // Use on your own storage if you know only integer are being stored (open/close all tree nodes) + IMGUI_API void SetAllInt(int val); + + // For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. + IMGUI_API void BuildSortByKey(); +}; + +// Helper: Manually clip large list of items. +// If you are submitting lots of evenly spaced items and you have a random access to the list, you can perform coarse +// clipping based on visibility to save yourself from processing those items at all. +// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped. +// (Dear ImGui already clip items based on their bounds but it needs to measure text size to do so, whereas manual coarse clipping before submission makes this cost and your own data fetching/submission cost almost null) +// Usage: +// ImGuiListClipper clipper; +// clipper.Begin(1000); // We have 1000 elements, evenly spaced. +// while (clipper.Step()) +// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) +// ImGui::Text("line number %d", i); +// Generally what happens is: +// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not. +// - User code submit one element. +// - Clipper can measure the height of the first element +// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element. +// - User code submit visible elements. +struct ImGuiListClipper +{ + int DisplayStart; + int DisplayEnd; + + // [Internal] + int ItemsCount; + int StepNo; + float ItemsHeight; + float StartPosY; + + IMGUI_API ImGuiListClipper(); + IMGUI_API ~ImGuiListClipper(); + + // items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step) + // items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing(). + IMGUI_API void Begin(int items_count, float items_height = -1.0f); // Automatically called by constructor if you passed 'items_count' or by Step() in Step 1. + IMGUI_API void End(); // Automatically called on the last call of Step() that returns false. + IMGUI_API bool Step(); // Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items. + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + inline ImGuiListClipper(int items_count, float items_height = -1.0f) { memset(this, 0, sizeof(*this)); ItemsCount = -1; Begin(items_count, items_height); } // [removed in 1.79] +#endif +}; + +// Helpers macros to generate 32-bit encoded colors +#ifdef IMGUI_USE_BGRA_PACKED_COLOR +#define IM_COL32_R_SHIFT 16 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 0 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#else +#define IM_COL32_R_SHIFT 0 +#define IM_COL32_G_SHIFT 8 +#define IM_COL32_B_SHIFT 16 +#define IM_COL32_A_SHIFT 24 +#define IM_COL32_A_MASK 0xFF000000 +#endif +#define IM_COL32(R,G,B,A) (((ImU32)(A)<> IM_COL32_R_SHIFT) & 0xFF) * sc; Value.y = (float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * sc; Value.z = (float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * sc; Value.w = (float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * sc; } + ImColor(float r, float g, float b, float a = 1.0f) { Value.x = r; Value.y = g; Value.z = b; Value.w = a; } + ImColor(const ImVec4& col) { Value = col; } + inline operator ImU32() const { return ImGui::ColorConvertFloat4ToU32(Value); } + inline operator ImVec4() const { return Value; } + + // FIXME-OBSOLETE: May need to obsolete/cleanup those helpers. + inline void SetHSV(float h, float s, float v, float a = 1.0f){ ImGui::ColorConvertHSVtoRGB(h, s, v, Value.x, Value.y, Value.z); Value.w = a; } + static ImColor HSV(float h, float s, float v, float a = 1.0f) { float r, g, b; ImGui::ColorConvertHSVtoRGB(h, s, v, r, g, b); return ImColor(r, g, b, a); } +}; + +//----------------------------------------------------------------------------- +// Draw List API (ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData) +// Hold a series of drawing commands. The user provides a renderer for ImDrawData which essentially contains an array of ImDrawList. +//----------------------------------------------------------------------------- + +// The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking. +#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX +#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63) +#endif + +// ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h] +// NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering, +// you can poke into the draw list for that! Draw callback may be useful for example to: +// A) Change your GPU render state, +// B) render a complex 3D scene inside a UI element without an intermediate texture/render target, etc. +// The expected behavior from your rendering function is 'if (cmd.UserCallback != NULL) { cmd.UserCallback(parent_list, cmd); } else { RenderTriangles() }' +// If you want to override the signature of ImDrawCallback, you can simply use e.g. '#define ImDrawCallback MyDrawCallback' (in imconfig.h) + update rendering back-end accordingly. +#ifndef ImDrawCallback +typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); +#endif + +// Special Draw callback value to request renderer back-end to reset the graphics/render state. +// The renderer back-end needs to handle this special value, otherwise it will crash trying to call a function at this address. +// This is useful for example if you submitted callbacks which you know have altered the render state and you want it to be restored. +// It is not done by default because they are many perfectly useful way of altering render state for imgui contents (e.g. changing shader/blending settings before an Image call). +#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-1) + +// Typically, 1 command = 1 GPU draw call (unless command is a callback) +// - VtxOffset/IdxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, +// those fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. +// Pre-1.71 back-ends will typically ignore the VtxOffset/IdxOffset fields. +// - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). +struct ImDrawCmd +{ + ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates + ImTextureID TextureId; // 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas. + unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. + unsigned int IdxOffset; // 4 // Start offset in index buffer. Always equal to sum of ElemCount drawn so far. + unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. + ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. + void* UserCallbackData; // 4-8 // The draw callback code can access this. + + ImDrawCmd() { memset(this, 0, sizeof(*this)); } // Also ensure our padding fields are zeroed +}; + +// Vertex index, default to 16-bit +// To allow large meshes with 16-bit indices: set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset in the renderer back-end (recommended). +// To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in imconfig.h. +#ifndef ImDrawIdx +typedef unsigned short ImDrawIdx; +#endif + +// Vertex layout +#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT +struct ImDrawVert +{ + ImVec2 pos; + ImVec2 uv; + ImU32 col; +}; +#else +// You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h +// The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine. +// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared a the time you'd want to set your type up. +// NOTE: IMGUI DOESN'T CLEAR THE STRUCTURE AND DOESN'T CALL A CONSTRUCTOR SO ANY CUSTOM FIELD WILL BE UNINITIALIZED. IF YOU ADD EXTRA FIELDS (SUCH AS A 'Z' COORDINATES) YOU WILL NEED TO CLEAR THEM DURING RENDER OR TO IGNORE THEM. +IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT; +#endif + +// For use by ImDrawListSplitter. +struct ImDrawChannel +{ + ImVector _CmdBuffer; + ImVector _IdxBuffer; +}; + +// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order. +// This is used by the Columns api, so items of each column can be batched together in a same draw call. +struct ImDrawListSplitter +{ + int _Current; // Current channel number (0) + int _Count; // Number of active channels (1+) + ImVector _Channels; // Draw channels (not resized down so _Count might be < Channels.Size) + + inline ImDrawListSplitter() { Clear(); } + inline ~ImDrawListSplitter() { ClearFreeMemory(); } + inline void Clear() { _Current = 0; _Count = 1; } // Do not clear Channels[] so our allocations are reused next frame + IMGUI_API void ClearFreeMemory(); + IMGUI_API void Split(ImDrawList* draw_list, int count); + IMGUI_API void Merge(ImDrawList* draw_list); + IMGUI_API void SetCurrentChannel(ImDrawList* draw_list, int channel_idx); +}; + +enum ImDrawCornerFlags_ +{ + ImDrawCornerFlags_None = 0, + ImDrawCornerFlags_TopLeft = 1 << 0, // 0x1 + ImDrawCornerFlags_TopRight = 1 << 1, // 0x2 + ImDrawCornerFlags_BotLeft = 1 << 2, // 0x4 + ImDrawCornerFlags_BotRight = 1 << 3, // 0x8 + ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight, // 0x3 + ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight, // 0xC + ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, // 0x5 + ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight, // 0xA + ImDrawCornerFlags_All = 0xF // In your function calls you may use ~0 (= all bits sets) instead of ImDrawCornerFlags_All, as a convenience +}; + +// Flags for ImDrawList. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly. +// It is however possible to temporarily alter flags between calls to ImDrawList:: functions. +enum ImDrawListFlags_ +{ + ImDrawListFlags_None = 0, + ImDrawListFlags_AntiAliasedLines = 1 << 0, // Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles) + ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require back-end to render with bilinear filtering. + ImDrawListFlags_AntiAliasedFill = 1 << 2, // Enable anti-aliased edge around filled shapes (rounded rectangles, circles). + ImDrawListFlags_AllowVtxOffset = 1 << 3 // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. +}; + +// Draw command list +// This is the low-level list of polygons that ImGui:: functions are filling. At the end of the frame, +// all command lists are passed to your ImGuiIO::RenderDrawListFn function for rendering. +// Each dear imgui window contains its own ImDrawList. You can use ImGui::GetWindowDrawList() to +// access the current window draw list and draw custom primitives. +// You can interleave normal ImGui:: calls and adding primitives to the current draw list. +// All positions are generally in pixel coordinates (top-left at (0,0), bottom-right at io.DisplaySize), but you are totally free to apply whatever transformation matrix to want to the data (if you apply such transformation you'll want to apply it to ClipRect as well) +// Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects. +struct ImDrawList +{ + // This is what you have to render + ImVector CmdBuffer; // Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. + ImVector IdxBuffer; // Index buffer. Each command consume ImDrawCmd::ElemCount of those + ImVector VtxBuffer; // Vertex buffer. + ImDrawListFlags Flags; // Flags, you may poke into these to adjust anti-aliasing settings per-primitive. + + // [Internal, used while building lists] + const ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) + const char* _OwnerName; // Pointer to owner window's name for debugging + unsigned int _VtxCurrentIdx; // [Internal] Generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. + ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImVector _ClipRectStack; // [Internal] + ImVector _TextureIdStack; // [Internal] + ImVector _Path; // [Internal] current path building + ImDrawCmd _CmdHeader; // [Internal] Template of active commands. Fields should match those of CmdBuffer.back(). + ImDrawListSplitter _Splitter; // [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) + + // If you want to create ImDrawList instances, pass them ImGui::GetDrawListSharedData() or create and use your own ImDrawListSharedData (so you can use ImDrawList without ImGui) + ImDrawList(const ImDrawListSharedData* shared_data) { _Data = shared_data; Flags = ImDrawListFlags_None; _VtxCurrentIdx = 0; _VtxWritePtr = NULL; _IdxWritePtr = NULL; _OwnerName = NULL; } + + ~ImDrawList() { _ClearFreeMemory(); } + IMGUI_API void PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) + IMGUI_API void PushClipRectFullScreen(); + IMGUI_API void PopClipRect(); + IMGUI_API void PushTextureID(ImTextureID texture_id); + IMGUI_API void PopTextureID(); + inline ImVec2 GetClipRectMin() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.x, cr.y); } + inline ImVec2 GetClipRectMax() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.z, cr.w); } + + // Primitives + // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners. + // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred). + // In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12. + // In future versions we will use textures to provide cheaper and higher-quality circles. + // Use AddNgon() and AddNgonFilled() functions if you need to guaranteed a specific number of sides. + IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All, float thickness = 1.0f); // a: upper-left, b: lower-right (== upper-left + size), rounding_corners_flags: 4 bits corresponding to which corner to round + IMGUI_API void AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All); // a: upper-left, b: lower-right (== upper-left + size) + IMGUI_API void AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); + IMGUI_API void AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col); + IMGUI_API void AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness = 1.0f); + IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col); + IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 0, float thickness = 1.0f); + IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 0); + IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f); + IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments); + IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL); + IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); + IMGUI_API void AddPolyline(const ImVec2* points, int num_points, ImU32 col, bool closed, float thickness); + IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); // Note: Anti-aliased filling requires points to be in clockwise order. + IMGUI_API void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0); + + // Image primitives + // - Read FAQ to understand what ImTextureID is. + // - "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle. + // - "uv_min" and "uv_max" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture. + IMGUI_API void AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min = ImVec2(0, 0), const ImVec2& uv_max = ImVec2(1, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1 = ImVec2(0, 0), const ImVec2& uv2 = ImVec2(1, 0), const ImVec2& uv3 = ImVec2(1, 1), const ImVec2& uv4 = ImVec2(0, 1), ImU32 col = IM_COL32_WHITE); + IMGUI_API void AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All); + + // Stateful path API, add points then finish with PathFillConvex() or PathStroke() + inline void PathClear() { _Path.Size = 0; } + inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } + inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); } + inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } // Note: Anti-aliased filling requires points to be in clockwise order. + inline void PathStroke(ImU32 col, bool closed, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, closed, thickness); _Path.Size = 0; } + IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 10); + IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle + IMGUI_API void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0); + IMGUI_API void PathRect(const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0.0f, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All); + + // Advanced + IMGUI_API void AddCallback(ImDrawCallback callback, void* callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. + IMGUI_API void AddDrawCmd(); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible + IMGUI_API ImDrawList* CloneOutput() const; // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer. + + // Advanced: Channels + // - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) + // - Use to minimize draw calls (e.g. if going back-and-forth between multiple clipping rectangles, prefer to append into separate channels then merge at the end) + // - FIXME-OBSOLETE: This API shouldn't have been in ImDrawList in the first place! + // Prefer using your own persistent instance of ImDrawListSplitter as you can stack them. + // Using the ImDrawList::ChannelsXXXX you cannot stack a split over another. + inline void ChannelsSplit(int count) { _Splitter.Split(this, count); } + inline void ChannelsMerge() { _Splitter.Merge(this); } + inline void ChannelsSetCurrent(int n) { _Splitter.SetCurrentChannel(this, n); } + + // Advanced: Primitives allocations + // - We render triangles (three vertices) + // - All primitives needs to be reserved via PrimReserve() beforehand. + IMGUI_API void PrimReserve(int idx_count, int vtx_count); + IMGUI_API void PrimUnreserve(int idx_count, int vtx_count); + IMGUI_API void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col); // Axis aligned rectangle (composed of two triangles) + IMGUI_API void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col); + IMGUI_API void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col); + inline void PrimWriteVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; } + inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; } + inline void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); } // Write vertex with unique index + + // [Internal helpers] + IMGUI_API void _ResetForNewFrame(); + IMGUI_API void _ClearFreeMemory(); + IMGUI_API void _PopUnusedDrawCmd(); + IMGUI_API void _OnChangedClipRect(); + IMGUI_API void _OnChangedTextureID(); + IMGUI_API void _OnChangedVtxOffset(); +}; + +// All draw data to render a Dear ImGui frame +// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose, +// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList) +struct ImDrawData +{ + bool Valid; // Only valid after Render() is called and before the next NewFrame() is called. + ImDrawList** CmdLists; // Array of ImDrawList* to render. The ImDrawList are owned by ImGuiContext and only pointed to from here. + int CmdListsCount; // Number of ImDrawList* to render + int TotalIdxCount; // For convenience, sum of all ImDrawList's IdxBuffer.Size + int TotalVtxCount; // For convenience, sum of all ImDrawList's VtxBuffer.Size + ImVec2 DisplayPos; // Upper-left position of the viewport to render (== upper-left of the orthogonal projection matrix to use) + ImVec2 DisplaySize; // Size of the viewport to render (== io.DisplaySize for the main viewport) (DisplayPos + DisplaySize == lower-right of the orthogonal projection matrix to use) + ImVec2 FramebufferScale; // Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display. + + // Functions + ImDrawData() { Valid = false; Clear(); } + ~ImDrawData() { Clear(); } + void Clear() { Valid = false; CmdLists = NULL; CmdListsCount = TotalVtxCount = TotalIdxCount = 0; DisplayPos = DisplaySize = FramebufferScale = ImVec2(0.f, 0.f); } // The ImDrawList are owned by ImGuiContext! + IMGUI_API void DeIndexAllBuffers(); // Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! + IMGUI_API void ScaleClipRects(const ImVec2& fb_scale); // Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. +}; + +//----------------------------------------------------------------------------- +// Font API (ImFontConfig, ImFontGlyph, ImFontAtlasFlags, ImFontAtlas, ImFontGlyphRangesBuilder, ImFont) +//----------------------------------------------------------------------------- + +struct ImFontConfig +{ + void* FontData; // // TTF/OTF data + int FontDataSize; // // TTF/OTF data size + bool FontDataOwnedByAtlas; // true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself). + int FontNo; // 0 // Index of font within TTF/OTF file + float SizePixels; // // Size in pixels for rasterizer (more or less maps to the resulting font height). + int OversampleH; // 3 // Rasterize at higher quality for sub-pixel positioning. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details. + int OversampleV; // 1 // Rasterize at higher quality for sub-pixel positioning. We don't use sub-pixel positions on the Y axis. + bool PixelSnapH; // false // Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1. + ImVec2 GlyphExtraSpacing; // 0, 0 // Extra spacing (in pixels) between glyphs. Only X axis is supported for now. + ImVec2 GlyphOffset; // 0, 0 // Offset all glyphs from this font input. + const ImWchar* GlyphRanges; // NULL // Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list). THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. + float GlyphMinAdvanceX; // 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font + float GlyphMaxAdvanceX; // FLT_MAX // Maximum AdvanceX for glyphs + bool MergeMode; // false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights. + unsigned int RasterizerFlags; // 0x00 // Settings for custom font rasterizer (e.g. ImGuiFreeType). Leave as zero if you aren't using one. + float RasterizerMultiply; // 1.0f // Brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. + ImWchar EllipsisChar; // -1 // Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used. + + // [Internal] + char Name[40]; // Name (strictly to ease debugging) + ImFont* DstFont; + + IMGUI_API ImFontConfig(); +}; + +// Hold rendering data for one glyph. +// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this) +struct ImFontGlyph +{ + unsigned int Codepoint : 31; // 0x0000..0xFFFF + unsigned int Visible : 1; // Flag to allow early out when rendering + float AdvanceX; // Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in) + float X0, Y0, X1, Y1; // Glyph corners + float U0, V0, U1, V1; // Texture coordinates +}; + +// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges(). +// This is essentially a tightly packed of vector of 64k booleans = 8KB storage. +struct ImFontGlyphRangesBuilder +{ + ImVector UsedChars; // Store 1-bit per Unicode code point (0=unused, 1=used) + + ImFontGlyphRangesBuilder() { Clear(); } + inline void Clear() { int size_in_bytes = (IM_UNICODE_CODEPOINT_MAX + 1) / 8; UsedChars.resize(size_in_bytes / (int)sizeof(ImU32)); memset(UsedChars.Data, 0, (size_t)size_in_bytes); } + inline bool GetBit(size_t n) const { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); return (UsedChars[off] & mask) != 0; } // Get bit n in the array + inline void SetBit(size_t n) { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; } // Set bit n in the array + inline void AddChar(ImWchar c) { SetBit(c); } // Add character + IMGUI_API void AddText(const char* text, const char* text_end = NULL); // Add string (each character of the UTF-8 string are added) + IMGUI_API void AddRanges(const ImWchar* ranges); // Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext + IMGUI_API void BuildRanges(ImVector* out_ranges); // Output new ranges +}; + +// See ImFontAtlas::AddCustomRectXXX functions. +struct ImFontAtlasCustomRect +{ + unsigned short Width, Height; // Input // Desired rectangle dimension + unsigned short X, Y; // Output // Packed position in Atlas + unsigned int GlyphID; // Input // For custom font glyphs only (ID < 0x110000) + float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance + ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset + ImFont* Font; // Input // For custom font glyphs only: target font + ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; } + bool IsPacked() const { return X != 0xFFFF; } +}; + +// Flags for ImFontAtlas build +enum ImFontAtlasFlags_ +{ + ImFontAtlasFlags_None = 0, + ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two + ImFontAtlasFlags_NoMouseCursors = 1 << 1, // Don't build software mouse cursors into the atlas (save a little texture memory) + ImFontAtlasFlags_NoBakedLines = 1 << 2 // Don't build thick line textures into the atlas (save a little texture memory). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). +}; + +// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding: +// - One or more fonts. +// - Custom graphics data needed to render the shapes needed by Dear ImGui. +// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas). +// It is the user-code responsibility to setup/build the atlas, then upload the pixel data into a texture accessible by your graphics api. +// - Optionally, call any of the AddFont*** functions. If you don't call any, the default font embedded in the code will be loaded for you. +// - Call GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data. +// - Upload the pixels data into a texture within your graphics system (see imgui_impl_xxxx.cpp examples) +// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API. +// This value will be passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID for more details. +// Common pitfalls: +// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the +// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data. +// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction. +// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed, +// - Even though many functions are suffixed with "TTF", OTF data is supported just as well. +// - This is an old API and it is currently awkward for those and and various other reasons! We will address them in the future! +struct ImFontAtlas +{ + IMGUI_API ImFontAtlas(); + IMGUI_API ~ImFontAtlas(); + IMGUI_API ImFont* AddFont(const ImFontConfig* font_cfg); + IMGUI_API ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL); + IMGUI_API ImFont* AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); + IMGUI_API ImFont* AddFontFromMemoryTTF(void* font_data, int font_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. + IMGUI_API ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. + IMGUI_API ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. + IMGUI_API void ClearInputData(); // Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. + IMGUI_API void ClearTexData(); // Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. + IMGUI_API void ClearFonts(); // Clear output font data (glyphs storage, UV coordinates). + IMGUI_API void Clear(); // Clear all input and output. + + // Build atlas, retrieve pixel data. + // User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID(). + // The pitch is always = Width * BytesPerPixels (1 or 4) + // Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into + // the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste. + IMGUI_API bool Build(); // Build pixels data. This is called automatically for you by the GetTexData*** functions. + IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 1 byte per-pixel + IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 4 bytes-per-pixel + bool IsBuilt() const { return Fonts.Size > 0 && (TexPixelsAlpha8 != NULL || TexPixelsRGBA32 != NULL); } + void SetTexID(ImTextureID id) { TexID = id; } + + //------------------------------------------- + // Glyph Ranges + //------------------------------------------- + + // Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list) + // NB: Make sure that your string are UTF-8 and NOT in your local code page. In C++11, you can create UTF-8 string literal using the u8"Hello world" syntax. See FAQ for details. + // NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data. + IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin + IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters + IMGUI_API const ImWchar* GetGlyphRangesJapanese(); // Default + Hiragana, Katakana, Half-Width, Selection of 1946 Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs + IMGUI_API const ImWchar* GetGlyphRangesChineseSimplifiedCommon();// Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese + IMGUI_API const ImWchar* GetGlyphRangesCyrillic(); // Default + about 400 Cyrillic characters + IMGUI_API const ImWchar* GetGlyphRangesThai(); // Default + Thai characters + IMGUI_API const ImWchar* GetGlyphRangesVietnamese(); // Default + Vietnamese characters + + //------------------------------------------- + // [BETA] Custom Rectangles/Glyphs API + //------------------------------------------- + + // You can request arbitrary rectangles to be packed into the atlas, for your own purposes. + // After calling Build(), you can query the rectangle position and render your pixels. + // You can also request your rectangles to be mapped as font glyph (given a font + Unicode point), + // so you can render e.g. custom colorful icons and use them as regular glyphs. + // Read docs/FONTS.md for more details about using colorful icons. + // Note: this API may be redesigned later in order to support multi-monitor varying DPI settings. + IMGUI_API int AddCustomRectRegular(int width, int height); + IMGUI_API int AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0, 0)); + ImFontAtlasCustomRect* GetCustomRectByIndex(int index) { IM_ASSERT(index >= 0); return &CustomRects[index]; } + + // [Internal] + IMGUI_API void CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const; + IMGUI_API bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]); + + //------------------------------------------- + // Members + //------------------------------------------- + + bool Locked; // Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert. + ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) + ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure. + int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height. + int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0. + + // [Internal] + // NB: Access texture data via GetTexData*() calls! Which will setup a default font for you. + unsigned char* TexPixelsAlpha8; // 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight + unsigned int* TexPixelsRGBA32; // 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 + int TexWidth; // Texture width calculated during Build(). + int TexHeight; // Texture height calculated during Build(). + ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight) + ImVec2 TexUvWhitePixel; // Texture coordinates to a white pixel + ImVector Fonts; // Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(), use ImGui::PushFont()/PopFont() to change the current font. + ImVector CustomRects; // Rectangles for packing custom texture data into the atlas. + ImVector ConfigData; // Configuration data + ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]; // UVs for baked anti-aliased lines + + // [Internal] Packing data + int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors + int PackIdLines; // Custom texture rectangle ID for baked anti-aliased lines + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ + typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ +#endif +}; + +// Font runtime data and rendering +// ImFontAtlas automatically loads a default embedded font for you when you call GetTexDataAsAlpha8() or GetTexDataAsRGBA32(). +struct ImFont +{ + // Members: Hot ~20/24 bytes (for CalcTextSize) + ImVector IndexAdvanceX; // 12-16 // out // // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this this info, and are often bottleneck in large UI). + float FallbackAdvanceX; // 4 // out // = FallbackGlyph->AdvanceX + float FontSize; // 4 // in // // Height of characters/line, set during loading (don't change after loading) + + // Members: Hot ~28/40 bytes (for CalcTextSize + render loop) + ImVector IndexLookup; // 12-16 // out // // Sparse. Index glyphs by Unicode code-point. + ImVector Glyphs; // 12-16 // out // // All glyphs. + const ImFontGlyph* FallbackGlyph; // 4-8 // out // = FindGlyph(FontFallbackChar) + + // Members: Cold ~32/40 bytes + ImFontAtlas* ContainerAtlas; // 4-8 // out // // What we has been loaded into + const ImFontConfig* ConfigData; // 4-8 // in // // Pointer within ContainerAtlas->ConfigData + short ConfigDataCount; // 2 // in // ~ 1 // Number of ImFontConfig involved in creating this font. Bigger than 1 when merging multiple font sources into one ImFont. + ImWchar FallbackChar; // 2 // in // = '?' // Replacement character if a glyph isn't found. Only set via SetFallbackChar() + ImWchar EllipsisChar; // 2 // out // = -1 // Character used for ellipsis rendering. + bool DirtyLookupTables; // 1 // out // + float Scale; // 4 // in // = 1.f // Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale() + float Ascent, Descent; // 4+4 // out // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] + int MetricsTotalSurface;// 4 // out // // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs) + ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8]; // 2 bytes if ImWchar=ImWchar16, 34 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints. + + // Methods + IMGUI_API ImFont(); + IMGUI_API ~ImFont(); + IMGUI_API const ImFontGlyph*FindGlyph(ImWchar c) const; + IMGUI_API const ImFontGlyph*FindGlyphNoFallback(ImWchar c) const; + float GetCharAdvance(ImWchar c) const { return ((int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; } + bool IsLoaded() const { return ContainerAtlas != NULL; } + const char* GetDebugName() const { return ConfigData ? ConfigData->Name : ""; } + + // 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable. + // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. + IMGUI_API ImVec2 CalcTextSizeA(float menu_size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 + IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; + IMGUI_API void RenderChar(ImDrawList* draw_list, float menu_size, ImVec2 pos, ImU32 col, ImWchar c) const; + IMGUI_API void RenderText(ImDrawList* draw_list, float menu_size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; + + // [Internal] Don't use! + IMGUI_API void BuildLookupTable(); + IMGUI_API void ClearOutputData(); + IMGUI_API void GrowIndex(int new_size); + IMGUI_API void AddGlyph(const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); + IMGUI_API void AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst = true); // Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built. + IMGUI_API void SetGlyphVisible(ImWchar c, bool visible); + IMGUI_API void SetFallbackChar(ImWchar c); + IMGUI_API bool IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last); +}; + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +// Include imgui_user.h at the end of imgui.h (convenient for user to only explicitly include vanilla imgui.h) +#ifdef IMGUI_INCLUDE_IMGUI_USER_H +#include "imgui_user.h" +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/CheatMenu/external/imgui/imgui_demo.cpp b/CheatMenu/external/imgui/imgui_demo.cpp new file mode 100644 index 0000000..0eb12af --- /dev/null +++ b/CheatMenu/external/imgui/imgui_demo.cpp @@ -0,0 +1,5593 @@ +// dear imgui, v1.79 +// (demo code) + +// Help: +// - Read FAQ at http://dearimgui.org/faq +// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. +// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. +// Read imgui.cpp for more details, documentation and comments. +// Get latest version at https://github.com/ocornut/imgui + +// Message to the person tempted to delete this file when integrating Dear ImGui into their code base: +// Do NOT remove this file from your project! Think again! It is the most useful reference code that you and other +// coders will want to refer to and call. Have the ImGui::ShowDemoWindow() function wired in an always-available +// debug menu of your game/app! Removing this file from your project is hindering access to documentation for everyone +// in your team, likely leading you to poorer usage of the library. +// Everything in this file will be stripped out by the linker if you don't call ImGui::ShowDemoWindow(). +// If you want to link core Dear ImGui in your shipped builds but want a thorough guarantee that the demo will not be +// linked, you can setup your imconfig.h with #define IMGUI_DISABLE_DEMO_WINDOWS and those functions will be empty. +// In other situation, whenever you have Dear ImGui available you probably want this to be available for reference. +// Thank you, +// -Your beloved friend, imgui_demo.cpp (which you won't delete) + +// Message to beginner C/C++ programmers about the meaning of the 'static' keyword: +// In this demo code, we frequently we use 'static' variables inside functions. A static variable persist across calls, +// so it is essentially like a global variable but declared inside the scope of the function. We do this as a way to +// gather code and data in the same place, to make the demo source code faster to read, faster to write, and smaller +// in size. It also happens to be a convenient way of storing simple UI related information as long as your function +// doesn't need to be reentrant or used in multiple threads. This might be a pattern you will want to use in your code, +// but most of the real data you would be editing is likely going to be stored outside your functions. + +// The Demo code in this file is designed to be easy to copy-and-paste in into your application! +// Because of this: +// - We never omit the ImGui:: prefix when calling functions, even though most code here is in the same namespace. +// - We try to declare static variables in the local scope, as close as possible to the code using them. +// - We never use any of the helpers/facilities used internally by Dear ImGui, unless available in the public API. +// - We never use maths operators on ImVec2/ImVec4. For our other sources files we use them, and they are provided +// by imgui_internal.h using the IMGUI_DEFINE_MATH_OPERATORS define. For your own sources file they are optional +// and require you either enable those, either provide your own via IM_VEC2_CLASS_EXTRA in imconfig.h. +// Because we can't assume anything about your support of maths operators, we cannot use them in imgui_demo.cpp. + +/* + +Index of this file: + +// [SECTION] Forward Declarations, Helpers +// [SECTION] Demo Window / ShowDemoWindow() +// [SECTION] About Window / ShowAboutWindow() +// [SECTION] Style Editor / ShowStyleEditor() +// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() +// [SECTION] Example App: Debug Console / ShowExampleAppConsole() +// [SECTION] Example App: Debug Log / ShowExampleAppLog() +// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() +// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() +// [SECTION] Example App: Long Text / ShowExampleAppLongText() +// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() +// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() +// [SECTION] Example App: Simple Overlay / ShowExampleAppSimpleOverlay() +// [SECTION] Example App: Manipulating Window Titles / ShowExampleAppWindowTitles() +// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() +// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#include // toupper +#include // INT_MIN, INT_MAX +#include // sqrtf, powf, cosf, sinf, floorf, ceilf +#include // vsnprintf, sscanf, printf +#include // NULL, malloc, free, atoi +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wdeprecated-declarations" // warning: 'xx' is deprecated: The POSIX name for this.. // for strdup used in demo code (so user can copy & paste the code) +#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type +#pragma clang diagnostic ignored "-Wformat-security" // warning: format string is not a string literal +#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. +#pragma clang diagnostic ignored "-Wunused-macros" // warning: macro is not used // we define snprintf/vsnprintf on Windows so they are available, but not always used. +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size +#pragma GCC diagnostic ignored "-Wformat-security" // warning: format string is not a string literal (potentially insecure) +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wmisleading-indentation" // [__GNUC__ >= 6] warning: this 'if' clause does not guard this statement // GCC 6.0+ only. See #883 on GitHub. +#endif + +// Play it nice with Windows users (Update: May 2018, Notepad now supports Unix-style carriage returns!) +#ifdef _WIN32 +#define IM_NEWLINE "\r\n" +#else +#define IM_NEWLINE "\n" +#endif + +// Helpers +#if defined(_MSC_VER) && !defined(snprintf) +#define snprintf _snprintf +#endif +#if defined(_MSC_VER) && !defined(vsnprintf) +#define vsnprintf _vsnprintf +#endif + +// Helpers macros +// We normally try to not use many helpers in imgui_demo.cpp in order to make code easier to copy and paste, +// but making an exception here as those are largely simplifying code... +// In other imgui sources we can use nicer internal functions from imgui_internal.h (ImMin/ImMax) but not in the demo. +#define IM_MIN(A, B) (((A) < (B)) ? (A) : (B)) +#define IM_MAX(A, B) (((A) >= (B)) ? (A) : (B)) +#define IM_CLAMP(V, MN, MX) ((V) < (MN) ? (MN) : (V) > (MX) ? (MX) : (V)) + +//----------------------------------------------------------------------------- +// [SECTION] Forward Declarations, Helpers +//----------------------------------------------------------------------------- + +#if !defined(IMGUI_DISABLE_DEMO_WINDOWS) + +// Forward Declarations +static void ShowExampleAppDocuments(bool* p_open); +static void ShowExampleAppMainMenuBar(); +static void ShowExampleAppConsole(bool* p_open); +static void ShowExampleAppLog(bool* p_open); +static void ShowExampleAppLayout(bool* p_open); +static void ShowExampleAppPropertyEditor(bool* p_open); +static void ShowExampleAppLongText(bool* p_open); +static void ShowExampleAppAutoResize(bool* p_open); +static void ShowExampleAppConstrainedResize(bool* p_open); +static void ShowExampleAppSimpleOverlay(bool* p_open); +static void ShowExampleAppWindowTitles(bool* p_open); +static void ShowExampleAppCustomRendering(bool* p_open); +static void ShowExampleMenuFile(); + +// Helper to display a little (?) mark which shows a tooltip when hovered. +// In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md) +static void HelpMarker(const char* desc) +{ + ImGui::TextDisabled("(?)"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); + ImGui::TextUnformatted(desc); + ImGui::PopTextWrapPos(); + ImGui::EndTooltip(); + } +} + +// Helper to display basic user controls. +void ImGui::ShowUserGuide() +{ + ImGuiIO& io = ImGui::GetIO(); + ImGui::BulletText("Double-click on title bar to collapse window."); + ImGui::BulletText( + "Click and drag on lower corner to resize window\n" + "(double-click to auto fit window to its contents)."); + ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text."); + ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields."); + if (io.FontAllowUserScaling) + ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents."); + ImGui::BulletText("While inputing text:\n"); + ImGui::Indent(); + ImGui::BulletText("CTRL+Left/Right to word jump."); + ImGui::BulletText("CTRL+A or double-click to select all."); + ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste."); + ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo."); + ImGui::BulletText("ESCAPE to revert."); + ImGui::BulletText("You can apply arithmetic operators +,*,/ on numerical values.\nUse +- to subtract."); + ImGui::Unindent(); + ImGui::BulletText("With keyboard navigation enabled:"); + ImGui::Indent(); + ImGui::BulletText("Arrow keys to navigate."); + ImGui::BulletText("Space to activate a widget."); + ImGui::BulletText("Return to input text into a widget."); + ImGui::BulletText("Escape to deactivate a widget, close popup, exit child window."); + ImGui::BulletText("Alt to jump to the menu layer of a window."); + ImGui::BulletText("CTRL+Tab to select a window."); + ImGui::Unindent(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Demo Window / ShowDemoWindow() +//----------------------------------------------------------------------------- +// - ShowDemoWindowWidgets() +// - ShowDemoWindowLayout() +// - ShowDemoWindowPopups() +// - ShowDemoWindowColumns() +// - ShowDemoWindowMisc() +//----------------------------------------------------------------------------- + +// We split the contents of the big ShowDemoWindow() function into smaller functions +// (because the link time of very large functions grow non-linearly) +static void ShowDemoWindowWidgets(); +static void ShowDemoWindowLayout(); +static void ShowDemoWindowPopups(); +static void ShowDemoWindowColumns(); +static void ShowDemoWindowMisc(); + +// Demonstrate most Dear ImGui features (this is big function!) +// You may execute this function to experiment with the UI and understand what it does. +// You may then search for keywords in the code when you are interested by a specific feature. +void ImGui::ShowDemoWindow(bool* p_open) +{ + // Exceptionally add an extra assert here for people confused about initial Dear ImGui setup + // Most ImGui functions would normally just crash if the context is missing. + IM_ASSERT(ImGui::GetCurrentContext() != NULL && "Missing dear imgui context. Refer to examples app!"); + + // Examples Apps (accessible from the "Examples" menu) + static bool show_app_main_menu_bar = false; + static bool show_app_documents = false; + static bool show_app_console = false; + static bool show_app_log = false; + static bool show_app_layout = false; + static bool show_app_property_editor = false; + static bool show_app_long_text = false; + static bool show_app_auto_resize = false; + static bool show_app_constrained_resize = false; + static bool show_app_simple_overlay = false; + static bool show_app_window_titles = false; + static bool show_app_custom_rendering = false; + + if (show_app_main_menu_bar) ShowExampleAppMainMenuBar(); + if (show_app_documents) ShowExampleAppDocuments(&show_app_documents); + + if (show_app_console) ShowExampleAppConsole(&show_app_console); + if (show_app_log) ShowExampleAppLog(&show_app_log); + if (show_app_layout) ShowExampleAppLayout(&show_app_layout); + if (show_app_property_editor) ShowExampleAppPropertyEditor(&show_app_property_editor); + if (show_app_long_text) ShowExampleAppLongText(&show_app_long_text); + if (show_app_auto_resize) ShowExampleAppAutoResize(&show_app_auto_resize); + if (show_app_constrained_resize) ShowExampleAppConstrainedResize(&show_app_constrained_resize); + if (show_app_simple_overlay) ShowExampleAppSimpleOverlay(&show_app_simple_overlay); + if (show_app_window_titles) ShowExampleAppWindowTitles(&show_app_window_titles); + if (show_app_custom_rendering) ShowExampleAppCustomRendering(&show_app_custom_rendering); + + // Dear ImGui Apps (accessible from the "Tools" menu) + static bool show_app_metrics = false; + static bool show_app_style_editor = false; + static bool show_app_about = false; + + if (show_app_metrics) { ImGui::ShowMetricsWindow(&show_app_metrics); } + if (show_app_about) { ImGui::ShowAboutWindow(&show_app_about); } + if (show_app_style_editor) + { + ImGui::Begin("Dear ImGui Style Editor", &show_app_style_editor); + ImGui::ShowStyleEditor(); + ImGui::End(); + } + + // Demonstrate the various window flags. Typically you would just use the default! + static bool no_titlebar = false; + static bool no_scrollbar = false; + static bool no_menu = false; + static bool no_move = false; + static bool no_resize = false; + static bool no_collapse = false; + static bool no_close = false; + static bool no_nav = false; + static bool no_background = false; + static bool no_bring_to_front = false; + + ImGuiWindowFlags window_flags = 0; + if (no_titlebar) window_flags |= ImGuiWindowFlags_NoTitleBar; + if (no_scrollbar) window_flags |= ImGuiWindowFlags_NoScrollbar; + if (!no_menu) window_flags |= ImGuiWindowFlags_MenuBar; + if (no_move) window_flags |= ImGuiWindowFlags_NoMove; + if (no_resize) window_flags |= ImGuiWindowFlags_NoResize; + if (no_collapse) window_flags |= ImGuiWindowFlags_NoCollapse; + if (no_nav) window_flags |= ImGuiWindowFlags_NoNav; + if (no_background) window_flags |= ImGuiWindowFlags_NoBackground; + if (no_bring_to_front) window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus; + if (no_close) p_open = NULL; // Don't pass our bool* to Begin + + // We specify a default position/size in case there's no data in the .ini file. + // We only do it to make the demo applications a little more welcoming, but typically this isn't required. + ImGui::SetNextWindowPos(ImVec2(650, 20), ImGuiCond_FirstUseEver); + ImGui::SetNextWindowSize(ImVec2(550, 680), ImGuiCond_FirstUseEver); + + // Main body of the Demo window starts here. + if (!ImGui::Begin("Dear ImGui Demo", p_open, window_flags)) + { + // Early out if the window is collapsed, as an optimization. + ImGui::End(); + return; + } + + // Most "big" widgets share a common width settings by default. See 'Demo->Layout->Widgets Width' for details. + + // e.g. Use 2/3 of the space for widgets and 1/3 for labels (default) + //ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.65f); + + // e.g. Leave a fixed amount of width for labels (by passing a negative value), the rest goes to widgets. + ImGui::PushItemWidth(ImGui::GetFontSize() * -12); + + // Menu Bar + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Menu")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Examples")) + { + ImGui::MenuItem("Main menu bar", NULL, &show_app_main_menu_bar); + ImGui::MenuItem("Console", NULL, &show_app_console); + ImGui::MenuItem("Log", NULL, &show_app_log); + ImGui::MenuItem("Simple layout", NULL, &show_app_layout); + ImGui::MenuItem("Property editor", NULL, &show_app_property_editor); + ImGui::MenuItem("Long text display", NULL, &show_app_long_text); + ImGui::MenuItem("Auto-resizing window", NULL, &show_app_auto_resize); + ImGui::MenuItem("Constrained-resizing window", NULL, &show_app_constrained_resize); + ImGui::MenuItem("Simple overlay", NULL, &show_app_simple_overlay); + ImGui::MenuItem("Manipulating window titles", NULL, &show_app_window_titles); + ImGui::MenuItem("Custom rendering", NULL, &show_app_custom_rendering); + ImGui::MenuItem("Documents", NULL, &show_app_documents); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Tools")) + { + ImGui::MenuItem("Metrics", NULL, &show_app_metrics); + ImGui::MenuItem("Style Editor", NULL, &show_app_style_editor); + ImGui::MenuItem("About Dear ImGui", NULL, &show_app_about); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + ImGui::Text("dear imgui says hello. (%s)", IMGUI_VERSION); + ImGui::Spacing(); + + if (ImGui::CollapsingHeader("Help")) + { + ImGui::Text("ABOUT THIS DEMO:"); + ImGui::BulletText("Sections below are demonstrating many aspects of the library."); + ImGui::BulletText("The \"Examples\" menu above leads to more demo contents."); + ImGui::BulletText("The \"Tools\" menu above gives access to: About Box, Style Editor,\n" + "and Metrics (general purpose Dear ImGui debugging tool)."); + ImGui::Separator(); + + ImGui::Text("PROGRAMMER GUIDE:"); + ImGui::BulletText("See the ShowDemoWindow() code in imgui_demo.cpp. <- you are here!"); + ImGui::BulletText("See comments in imgui.cpp."); + ImGui::BulletText("See example applications in the examples/ folder."); + ImGui::BulletText("Read the FAQ at http://www.dearimgui.org/faq/"); + ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableKeyboard' for keyboard controls."); + ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableGamepad' for gamepad controls."); + ImGui::Separator(); + + ImGui::Text("USER GUIDE:"); + ImGui::ShowUserGuide(); + } + + if (ImGui::CollapsingHeader("Configuration")) + { + ImGuiIO& io = ImGui::GetIO(); + + if (ImGui::TreeNode("Configuration##2")) + { + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableKeyboard", (unsigned int*)&io.ConfigFlags, ImGuiConfigFlags_NavEnableKeyboard); + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableGamepad", (unsigned int*)&io.ConfigFlags, ImGuiConfigFlags_NavEnableGamepad); + ImGui::SameLine(); HelpMarker("Required back-end to feed in gamepad inputs in io.NavInputs[] and set io.BackendFlags |= ImGuiBackendFlags_HasGamepad.\n\nRead instructions in imgui.cpp for details."); + ImGui::CheckboxFlags("io.ConfigFlags: NavEnableSetMousePos", (unsigned int*)&io.ConfigFlags, ImGuiConfigFlags_NavEnableSetMousePos); + ImGui::SameLine(); HelpMarker("Instruct navigation to move the mouse cursor. See comment for ImGuiConfigFlags_NavEnableSetMousePos."); + ImGui::CheckboxFlags("io.ConfigFlags: NoMouse", (unsigned int*)&io.ConfigFlags, ImGuiConfigFlags_NoMouse); + + // The "NoMouse" option above can get us stuck with a disable mouse! Provide an alternative way to fix it: + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) + { + if (fmodf((float)ImGui::GetTime(), 0.40f) < 0.20f) + { + ImGui::SameLine(); + ImGui::Text("<>"); + } + if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Space))) + io.ConfigFlags &= ~ImGuiConfigFlags_NoMouse; + } + ImGui::CheckboxFlags("io.ConfigFlags: NoMouseCursorChange", (unsigned int*)&io.ConfigFlags, ImGuiConfigFlags_NoMouseCursorChange); + ImGui::SameLine(); HelpMarker("Instruct back-end to not alter mouse cursor shape and visibility."); + ImGui::Checkbox("io.ConfigInputTextCursorBlink", &io.ConfigInputTextCursorBlink); + ImGui::SameLine(); HelpMarker("Set to false to disable blinking cursor, for users who consider it distracting"); + ImGui::Checkbox("io.ConfigWindowsResizeFromEdges", &io.ConfigWindowsResizeFromEdges); + ImGui::SameLine(); HelpMarker("Enable resizing of windows from their edges and from the lower-left corner.\nThis requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback."); + ImGui::Checkbox("io.ConfigWindowsMoveFromTitleBarOnly", &io.ConfigWindowsMoveFromTitleBarOnly); + ImGui::Checkbox("io.MouseDrawCursor", &io.MouseDrawCursor); + ImGui::SameLine(); HelpMarker("Instruct Dear ImGui to render a mouse cursor itself. Note that a mouse cursor rendered via your application GPU rendering path will feel more laggy than hardware cursor, but will be more in sync with your other visuals.\n\nSome desktop applications may use both kinds of cursors (e.g. enable software cursor only when resizing/dragging something)."); + ImGui::Text("Also see Style->Rendering for rendering options."); + ImGui::TreePop(); + ImGui::Separator(); + } + + if (ImGui::TreeNode("Backend Flags")) + { + HelpMarker( + "Those flags are set by the back-ends (imgui_impl_xxx files) to specify their capabilities.\n" + "Here we expose then as read-only fields to avoid breaking interactions with your back-end."); + + // Make a local copy to avoid modifying actual back-end flags. + ImGuiBackendFlags backend_flags = io.BackendFlags; + ImGui::CheckboxFlags("io.BackendFlags: HasGamepad", (unsigned int*)&backend_flags, ImGuiBackendFlags_HasGamepad); + ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", (unsigned int*)&backend_flags, ImGuiBackendFlags_HasMouseCursors); + ImGui::CheckboxFlags("io.BackendFlags: HasSetMousePos", (unsigned int*)&backend_flags, ImGuiBackendFlags_HasSetMousePos); + ImGui::CheckboxFlags("io.BackendFlags: RendererHasVtxOffset", (unsigned int*)&backend_flags, ImGuiBackendFlags_RendererHasVtxOffset); + ImGui::TreePop(); + ImGui::Separator(); + } + + if (ImGui::TreeNode("Style")) + { + HelpMarker("The same contents can be accessed in 'Tools->Style Editor' or by calling the ShowStyleEditor() function."); + ImGui::ShowStyleEditor(); + ImGui::TreePop(); + ImGui::Separator(); + } + + if (ImGui::TreeNode("Capture/Logging")) + { + HelpMarker( + "The logging API redirects all text output so you can easily capture the content of " + "a window or a block. Tree nodes can be automatically expanded.\n" + "Try opening any of the contents below in this window and then click one of the \"Log To\" button."); + ImGui::LogButtons(); + + HelpMarker("You can also call ImGui::LogText() to output directly to the log without a visual output."); + if (ImGui::Button("Copy \"Hello, world!\" to clipboard")) + { + ImGui::LogToClipboard(); + ImGui::LogText("Hello, world!"); + ImGui::LogFinish(); + } + ImGui::TreePop(); + } + } + + if (ImGui::CollapsingHeader("Window options")) + { + ImGui::Checkbox("No titlebar", &no_titlebar); ImGui::SameLine(150); + ImGui::Checkbox("No scrollbar", &no_scrollbar); ImGui::SameLine(300); + ImGui::Checkbox("No menu", &no_menu); + ImGui::Checkbox("No move", &no_move); ImGui::SameLine(150); + ImGui::Checkbox("No resize", &no_resize); ImGui::SameLine(300); + ImGui::Checkbox("No collapse", &no_collapse); + ImGui::Checkbox("No close", &no_close); ImGui::SameLine(150); + ImGui::Checkbox("No nav", &no_nav); ImGui::SameLine(300); + ImGui::Checkbox("No background", &no_background); + ImGui::Checkbox("No bring to front", &no_bring_to_front); + } + + // All demo contents + ShowDemoWindowWidgets(); + ShowDemoWindowLayout(); + ShowDemoWindowPopups(); + ShowDemoWindowColumns(); + ShowDemoWindowMisc(); + + // End of ShowDemoWindow() + ImGui::End(); +} + +static void ShowDemoWindowWidgets() +{ + if (!ImGui::CollapsingHeader("Widgets")) + return; + + if (ImGui::TreeNode("Basic")) + { + static int clicked = 0; + if (ImGui::Button("Button")) + clicked++; + if (clicked & 1) + { + ImGui::SameLine(); + ImGui::Text("Thanks for clicking me!"); + } + + static bool check = true; + ImGui::Checkbox("checkbox", &check); + + static int e = 0; + ImGui::RadioButton("radio a", &e, 0); ImGui::SameLine(); + ImGui::RadioButton("radio b", &e, 1); ImGui::SameLine(); + ImGui::RadioButton("radio c", &e, 2); + + // Color buttons, demonstrate using PushID() to add unique identifier in the ID stack, and changing style. + for (int i = 0; i < 7; i++) + { + if (i > 0) + ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.6f)); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.7f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.8f, 0.8f)); + ImGui::Button("Click"); + ImGui::PopStyleColor(3); + ImGui::PopID(); + } + + // Use AlignTextToFramePadding() to align text baseline to the baseline of framed widgets elements + // (otherwise a Text+SameLine+Button sequence will have the text a little too high by default!) + // See 'Demo->Layout->Text Baseline Alignment' for details. + ImGui::AlignTextToFramePadding(); + ImGui::Text("Hold to repeat:"); + ImGui::SameLine(); + + // Arrow buttons with Repeater + static int counter = 0; + float spacing = ImGui::GetStyle().ItemInnerSpacing.x; + ImGui::PushButtonRepeat(true); + if (ImGui::ArrowButton("##left", ImGuiDir_Left)) { counter--; } + ImGui::SameLine(0.0f, spacing); + if (ImGui::ArrowButton("##right", ImGuiDir_Right)) { counter++; } + ImGui::PopButtonRepeat(); + ImGui::SameLine(); + ImGui::Text("%d", counter); + + ImGui::Text("Hover over me"); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("I am a tooltip"); + + ImGui::SameLine(); + ImGui::Text("- or me"); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + ImGui::Text("I am a fancy tooltip"); + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); + ImGui::EndTooltip(); + } + + ImGui::Separator(); + + ImGui::LabelText("label", "Value"); + + { + // Using the _simplified_ one-liner Combo() api here + // See "Combo" section for examples of how to use the more complete BeginCombo()/EndCombo() api. + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIIIIII", "JJJJ", "KKKKKKK" }; + static int item_current = 0; + ImGui::Combo("combo", &item_current, items, IM_ARRAYSIZE(items)); + ImGui::SameLine(); HelpMarker( + "Refer to the \"Combo\" section below for an explanation of the full BeginCombo/EndCombo API, " + "and demonstration of various flags.\n"); + } + + { + // To wire InputText() with std::string or any other custom string type, + // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. + static char str0[128] = "Hello, world!"; + ImGui::InputText("input text", str0, IM_ARRAYSIZE(str0)); + ImGui::SameLine(); HelpMarker( + "USER:\n" + "Hold SHIFT or use mouse to select text.\n" + "CTRL+Left/Right to word jump.\n" + "CTRL+A or double-click to select all.\n" + "CTRL+X,CTRL+C,CTRL+V clipboard.\n" + "CTRL+Z,CTRL+Y undo/redo.\n" + "ESCAPE to revert.\n\n" + "PROGRAMMER:\n" + "You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputText() " + "to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example (this is not demonstrated " + "in imgui_demo.cpp)."); + + static char str1[128] = ""; + ImGui::InputTextWithHint("input text (w/ hint)", "enter text here", str1, IM_ARRAYSIZE(str1)); + + static int i0 = 123; + ImGui::InputInt("input int", &i0); + ImGui::SameLine(); HelpMarker( + "You can apply arithmetic operators +,*,/ on numerical values.\n" + " e.g. [ 100 ], input \'*2\', result becomes [ 200 ]\n" + "Use +- to subtract."); + + static float f0 = 0.001f; + ImGui::InputFloat("input float", &f0, 0.01f, 1.0f, "%.3f"); + + static double d0 = 999999.00000001; + ImGui::InputDouble("input double", &d0, 0.01f, 1.0f, "%.8f"); + + static float f1 = 1.e10f; + ImGui::InputFloat("input scientific", &f1, 0.0f, 0.0f, "%e"); + ImGui::SameLine(); HelpMarker( + "You can input value using the scientific notation,\n" + " e.g. \"1e+8\" becomes \"100000000\"."); + + static float vec4a[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; + ImGui::InputFloat3("input float3", vec4a); + } + + { + static int i1 = 50, i2 = 42; + ImGui::DragInt("drag int", &i1, 1); + ImGui::SameLine(); HelpMarker( + "Click and drag to edit value.\n" + "Hold SHIFT/ALT for faster/slower edit.\n" + "Double-click or CTRL+click to input value."); + + ImGui::DragInt("drag int 0..100", &i2, 1, 0, 100, "%d%%", ImGuiSliderFlags_AlwaysClamp); + + static float f1 = 1.00f, f2 = 0.0067f; + ImGui::DragFloat("drag float", &f1, 0.005f); + ImGui::DragFloat("drag small float", &f2, 0.0001f, 0.0f, 0.0f, "%.06f ns"); + } + + { + static int i1 = 0; + ImGui::SliderInt("slider int", &i1, -1, 3); + ImGui::SameLine(); HelpMarker("CTRL+click to input value."); + + static float f1 = 0.123f, f2 = 0.0f; + ImGui::SliderFloat("slider float", &f1, 0.0f, 1.0f, "ratio = %.3f"); + ImGui::SliderFloat("slider float (log)", &f2, -10.0f, 10.0f, "%.4f", ImGuiSliderFlags_Logarithmic); + + static float angle = 0.0f; + ImGui::SliderAngle("slider angle", &angle); + + // Using the format string to display a name instead of an integer. + // Here we completely omit '%d' from the format string, so it'll only display a name. + // This technique can also be used with DragInt(). + enum Element { Element_Fire, Element_Earth, Element_Air, Element_Water, Element_COUNT }; + static int elem = Element_Fire; + const char* elems_names[Element_COUNT] = { "Fire", "Earth", "Air", "Water" }; + const char* elem_name = (elem >= 0 && elem < Element_COUNT) ? elems_names[elem] : "Unknown"; + ImGui::SliderInt("slider enum", &elem, 0, Element_COUNT - 1, elem_name); + ImGui::SameLine(); HelpMarker("Using the format string parameter to display a name instead of the underlying integer."); + } + + { + static float col1[3] = { 1.0f, 0.0f, 0.2f }; + static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::ColorEdit3("color 1", col1); + ImGui::SameLine(); HelpMarker( + "Click on the colored square to open a color picker.\n" + "Click and hold to use drag and drop.\n" + "Right-click on the colored square to show options.\n" + "CTRL+click on individual component to input value.\n"); + + ImGui::ColorEdit4("color 2", col2); + } + + { + // List box + const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi", "Mango", "Orange", "Pineapple", "Strawberry", "Watermelon" }; + static int item_current = 1; + ImGui::ListBox("listbox\n(single select)", &item_current, items, IM_ARRAYSIZE(items), 4); + + //static int listbox_item_current2 = 2; + //ImGui::SetNextItemWidth(-1); + //ImGui::ListBox("##listbox2", &listbox_item_current2, listbox_items, IM_ARRAYSIZE(listbox_items), 4); + } + + ImGui::TreePop(); + } + + // Testing ImGuiOnceUponAFrame helper. + //static ImGuiOnceUponAFrame once; + //for (int i = 0; i < 5; i++) + // if (once) + // ImGui::Text("This will be displayed only once."); + + if (ImGui::TreeNode("Trees")) + { + if (ImGui::TreeNode("Basic trees")) + { + for (int i = 0; i < 5; i++) + { + // Use SetNextItemOpen() so set the default state of a node to be open. We could + // also use TreeNodeEx() with the ImGuiTreeNodeFlags_DefaultOpen flag to achieve the same thing! + if (i == 0) + ImGui::SetNextItemOpen(true, ImGuiCond_Once); + + if (ImGui::TreeNode((void*)(intptr_t)i, "Child %d", i)) + { + ImGui::Text("blah blah"); + ImGui::SameLine(); + if (ImGui::SmallButton("button")) {} + ImGui::TreePop(); + } + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Advanced, with Selectable nodes")) + { + HelpMarker( + "This is a more typical looking tree with selectable nodes.\n" + "Click to select, CTRL+Click to toggle, click on arrows or double-click to open."); + static ImGuiTreeNodeFlags base_flags = ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_SpanAvailWidth; + static bool align_label_with_current_x_position = false; + static bool test_drag_and_drop = false; + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnArrow", (unsigned int*)&base_flags, ImGuiTreeNodeFlags_OpenOnArrow); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnDoubleClick", (unsigned int*)&base_flags, ImGuiTreeNodeFlags_OpenOnDoubleClick); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanAvailWidth", (unsigned int*)&base_flags, ImGuiTreeNodeFlags_SpanAvailWidth); ImGui::SameLine(); HelpMarker("Extend hit area to all available width instead of allowing more items to be laid out after the node."); + ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanFullWidth", (unsigned int*)&base_flags, ImGuiTreeNodeFlags_SpanFullWidth); + ImGui::Checkbox("Align label with current X position", &align_label_with_current_x_position); + ImGui::Checkbox("Test tree node as drag source", &test_drag_and_drop); + ImGui::Text("Hello!"); + if (align_label_with_current_x_position) + ImGui::Unindent(ImGui::GetTreeNodeToLabelSpacing()); + + // 'selection_mask' is dumb representation of what may be user-side selection state. + // You may retain selection state inside or outside your objects in whatever format you see fit. + // 'node_clicked' is temporary storage of what node we have clicked to process selection at the end + /// of the loop. May be a pointer to your own node type, etc. + static int selection_mask = (1 << 2); + int node_clicked = -1; + for (int i = 0; i < 6; i++) + { + // Disable the default "open on single-click behavior" + set Selected flag according to our selection. + ImGuiTreeNodeFlags node_flags = base_flags; + const bool is_selected = (selection_mask & (1 << i)) != 0; + if (is_selected) + node_flags |= ImGuiTreeNodeFlags_Selected; + if (i < 3) + { + // Items 0..2 are Tree Node + bool node_open = ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Node %d", i); + if (ImGui::IsItemClicked()) + node_clicked = i; + if (test_drag_and_drop && ImGui::BeginDragDropSource()) + { + ImGui::SetDragDropPayload("_TREENODE", NULL, 0); + ImGui::Text("This is a drag and drop source"); + ImGui::EndDragDropSource(); + } + if (node_open) + { + ImGui::BulletText("Blah blah\nBlah Blah"); + ImGui::TreePop(); + } + } + else + { + // Items 3..5 are Tree Leaves + // The only reason we use TreeNode at all is to allow selection of the leaf. Otherwise we can + // use BulletText() or advance the cursor by GetTreeNodeToLabelSpacing() and call Text(). + node_flags |= ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen; // ImGuiTreeNodeFlags_Bullet + ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Leaf %d", i); + if (ImGui::IsItemClicked()) + node_clicked = i; + if (test_drag_and_drop && ImGui::BeginDragDropSource()) + { + ImGui::SetDragDropPayload("_TREENODE", NULL, 0); + ImGui::Text("This is a drag and drop source"); + ImGui::EndDragDropSource(); + } + } + } + if (node_clicked != -1) + { + // Update selection state + // (process outside of tree loop to avoid visual inconsistencies during the clicking frame) + if (ImGui::GetIO().KeyCtrl) + selection_mask ^= (1 << node_clicked); // CTRL+click to toggle + else //if (!(selection_mask & (1 << node_clicked))) // Depending on selection behavior you want, may want to preserve selection when clicking on item that is part of the selection + selection_mask = (1 << node_clicked); // Click to single-select + } + if (align_label_with_current_x_position) + ImGui::Indent(ImGui::GetTreeNodeToLabelSpacing()); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Collapsing Headers")) + { + static bool closable_group = true; + ImGui::Checkbox("Show 2nd header", &closable_group); + if (ImGui::CollapsingHeader("Header", ImGuiTreeNodeFlags_None)) + { + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + for (int i = 0; i < 5; i++) + ImGui::Text("Some content %d", i); + } + if (ImGui::CollapsingHeader("Header with a close button", &closable_group)) + { + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + for (int i = 0; i < 5; i++) + ImGui::Text("More content %d", i); + } + /* + if (ImGui::CollapsingHeader("Header with a bullet", ImGuiTreeNodeFlags_Bullet)) + ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); + */ + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Bullets")) + { + ImGui::BulletText("Bullet point 1"); + ImGui::BulletText("Bullet point 2\nOn multiple lines"); + if (ImGui::TreeNode("Tree node")) + { + ImGui::BulletText("Another bullet point"); + ImGui::TreePop(); + } + ImGui::Bullet(); ImGui::Text("Bullet point 3 (two calls)"); + ImGui::Bullet(); ImGui::SmallButton("Button"); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Text")) + { + if (ImGui::TreeNode("Colored Text")) + { + // Using shortcut. You can use PushStyleColor()/PopStyleColor() for more flexibility. + ImGui::TextColored(ImVec4(1.0f, 0.0f, 1.0f, 1.0f), "Pink"); + ImGui::TextColored(ImVec4(1.0f, 1.0f, 0.0f, 1.0f), "Yellow"); + ImGui::TextDisabled("Disabled"); + ImGui::SameLine(); HelpMarker("The TextDisabled color is stored in ImGuiStyle."); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Word Wrapping")) + { + // Using shortcut. You can use PushTextWrapPos()/PopTextWrapPos() for more flexibility. + ImGui::TextWrapped( + "This text should automatically wrap on the edge of the window. The current implementation " + "for text wrapping follows simple rules suitable for English and possibly other languages."); + ImGui::Spacing(); + + static float wrap_width = 200.0f; + ImGui::SliderFloat("Wrap width", &wrap_width, -20, 600, "%.0f"); + + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + for (int n = 0; n < 2; n++) + { + ImGui::Text("Test paragraph %d:", n); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImVec2 marker_min = ImVec2(pos.x + wrap_width, pos.y); + ImVec2 marker_max = ImVec2(pos.x + wrap_width + 10, pos.y + ImGui::GetTextLineHeight()); + ImGui::PushTextWrapPos(ImGui::GetCursorPos().x + wrap_width); + if (n == 0) + ImGui::Text("The lazy dog is a good dog. This paragraph should fit within %.0f pixels. Testing a 1 character word. The quick brown fox jumps over the lazy dog.", wrap_width); + else + ImGui::Text("aaaaaaaa bbbbbbbb, c cccccccc,dddddddd. d eeeeeeee ffffffff. gggggggg!hhhhhhhh"); + + // Draw actual text bounding box, following by marker of our expected limit (should not overlap!) + draw_list->AddRect(ImGui::GetItemRectMin(), ImGui::GetItemRectMax(), IM_COL32(255, 255, 0, 255)); + draw_list->AddRectFilled(marker_min, marker_max, IM_COL32(255, 0, 255, 255)); + ImGui::PopTextWrapPos(); + } + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("UTF-8 Text")) + { + // UTF-8 test with Japanese characters + // (Needs a suitable font? Try "Google Noto" or "Arial Unicode". See docs/FONTS.md for details.) + // - From C++11 you can use the u8"my text" syntax to encode literal strings as UTF-8 + // - For earlier compiler, you may be able to encode your sources as UTF-8 (e.g. in Visual Studio, you + // can save your source files as 'UTF-8 without signature'). + // - FOR THIS DEMO FILE ONLY, BECAUSE WE WANT TO SUPPORT OLD COMPILERS, WE ARE *NOT* INCLUDING RAW UTF-8 + // CHARACTERS IN THIS SOURCE FILE. Instead we are encoding a few strings with hexadecimal constants. + // Don't do this in your application! Please use u8"text in any language" in your application! + // Note that characters values are preserved even by InputText() if the font cannot be displayed, + // so you can safely copy & paste garbled characters into another application. + ImGui::TextWrapped( + "CJK text will only appears if the font was loaded with the appropriate CJK character ranges. " + "Call io.Font->AddFontFromFileTTF() manually to load extra character ranges. " + "Read docs/FONTS.md for details."); + ImGui::Text("Hiragana: \xe3\x81\x8b\xe3\x81\x8d\xe3\x81\x8f\xe3\x81\x91\xe3\x81\x93 (kakikukeko)"); // Normally we would use u8"blah blah" with the proper characters directly in the string. + ImGui::Text("Kanjis: \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e (nihongo)"); + static char buf[32] = "\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e"; + //static char buf[32] = u8"NIHONGO"; // <- this is how you would write it with C++11, using real kanjis + ImGui::InputText("UTF-8 input", buf, IM_ARRAYSIZE(buf)); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Images")) + { + ImGuiIO& io = ImGui::GetIO(); + ImGui::TextWrapped( + "Below we are displaying the font texture (which is the only texture we have access to in this demo). " + "Use the 'ImTextureID' type as storage to pass pointers or identifier to your own texture data. " + "Hover the texture for a zoomed view!"); + + // Below we are displaying the font texture because it is the only texture we have access to inside the demo! + // Remember that ImTextureID is just storage for whatever you want it to be. It is essentially a value that + // will be passed to the rendering back-end via the ImDrawCmd structure. + // If you use one of the default imgui_impl_XXXX.cpp rendering back-end, they all have comments at the top + // of their respective source file to specify what they expect to be stored in ImTextureID, for example: + // - The imgui_impl_dx11.cpp renderer expect a 'ID3D11ShaderResourceView*' pointer + // - The imgui_impl_opengl3.cpp renderer expect a GLuint OpenGL texture identifier, etc. + // More: + // - If you decided that ImTextureID = MyEngineTexture*, then you can pass your MyEngineTexture* pointers + // to ImGui::Image(), and gather width/height through your own functions, etc. + // - You can use ShowMetricsWindow() to inspect the draw data that are being passed to your renderer, + // it will help you debug issues if you are confused about it. + // - Consider using the lower-level ImDrawList::AddImage() API, via ImGui::GetWindowDrawList()->AddImage(). + // - Read https://github.com/ocornut/imgui/blob/master/docs/FAQ.md + // - Read https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples + ImTextureID my_tex_id = io.Fonts->TexID; + float my_tex_w = (float)io.Fonts->TexWidth; + float my_tex_h = (float)io.Fonts->TexHeight; + { + ImGui::Text("%.0fx%.0f", my_tex_w, my_tex_h); + ImVec2 pos = ImGui::GetCursorScreenPos(); + ImVec2 uv_min = ImVec2(0.0f, 0.0f); // Top-left + ImVec2 uv_max = ImVec2(1.0f, 1.0f); // Lower-right + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); // 50% opaque white + ImGui::Image(my_tex_id, ImVec2(my_tex_w, my_tex_h), uv_min, uv_max, tint_col, border_col); + if (ImGui::IsItemHovered()) + { + ImGui::BeginTooltip(); + float region_sz = 32.0f; + float region_x = io.MousePos.x - pos.x - region_sz * 0.5f; + float region_y = io.MousePos.y - pos.y - region_sz * 0.5f; + float zoom = 4.0f; + if (region_x < 0.0f) { region_x = 0.0f; } + else if (region_x > my_tex_w - region_sz) { region_x = my_tex_w - region_sz; } + if (region_y < 0.0f) { region_y = 0.0f; } + else if (region_y > my_tex_h - region_sz) { region_y = my_tex_h - region_sz; } + ImGui::Text("Min: (%.2f, %.2f)", region_x, region_y); + ImGui::Text("Max: (%.2f, %.2f)", region_x + region_sz, region_y + region_sz); + ImVec2 uv0 = ImVec2((region_x) / my_tex_w, (region_y) / my_tex_h); + ImVec2 uv1 = ImVec2((region_x + region_sz) / my_tex_w, (region_y + region_sz) / my_tex_h); + ImGui::Image(my_tex_id, ImVec2(region_sz * zoom, region_sz * zoom), uv0, uv1, tint_col, border_col); + ImGui::EndTooltip(); + } + } + ImGui::TextWrapped("And now some textured buttons.."); + static int pressed_count = 0; + for (int i = 0; i < 8; i++) + { + ImGui::PushID(i); + int frame_padding = -1 + i; // -1 == uses default padding (style.FramePadding) + ImVec2 menu_size = ImVec2(32.0f, 32.0f); // Size of the image we want to make visible + ImVec2 uv0 = ImVec2(0.0f, 0.0f); // UV coordinates for lower-left + ImVec2 uv1 = ImVec2(32.0f / my_tex_w, 32.0f / my_tex_h);// UV coordinates for (32,32) in our texture + ImVec4 bg_col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); // Black background + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint + if (ImGui::ImageButton(my_tex_id, menu_size, uv0, uv1, frame_padding, bg_col, tint_col)) + pressed_count += 1; + ImGui::PopID(); + ImGui::SameLine(); + } + ImGui::NewLine(); + ImGui::Text("Pressed %d times.", pressed_count); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Combo")) + { + // Expose flags as checkbox for the demo + static ImGuiComboFlags flags = 0; + ImGui::CheckboxFlags("ImGuiComboFlags_PopupAlignLeft", (unsigned int*)&flags, ImGuiComboFlags_PopupAlignLeft); + ImGui::SameLine(); HelpMarker("Only makes a difference if the popup is larger than the combo"); + if (ImGui::CheckboxFlags("ImGuiComboFlags_NoArrowButton", (unsigned int*)&flags, ImGuiComboFlags_NoArrowButton)) + flags &= ~ImGuiComboFlags_NoPreview; // Clear the other flag, as we cannot combine both + if (ImGui::CheckboxFlags("ImGuiComboFlags_NoPreview", (unsigned int*)&flags, ImGuiComboFlags_NoPreview)) + flags &= ~ImGuiComboFlags_NoArrowButton; // Clear the other flag, as we cannot combine both + + // Using the generic BeginCombo() API, you have full control over how to display the combo contents. + // (your selection data could be an index, a pointer to the object, an id for the object, a flag intrusively + // stored in the object itself, etc.) + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "LLLLLLL", "MMMM", "OOOOOOO" }; + static int item_current_idx = 0; // Here our selection data is an index. + const char* combo_label = items[item_current_idx]; // Label to preview before opening the combo (technically it could be anything) + if (ImGui::BeginCombo("combo 1", combo_label, flags)) + { + for (int n = 0; n < IM_ARRAYSIZE(items); n++) + { + const bool is_selected = (item_current_idx == n); + if (ImGui::Selectable(items[n], is_selected)) + item_current_idx = n; + + // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) + if (is_selected) + ImGui::SetItemDefaultFocus(); + } + ImGui::EndCombo(); + } + + // Simplified one-liner Combo() API, using values packed in a single constant string + static int item_current_2 = 0; + ImGui::Combo("combo 2 (one-liner)", &item_current_2, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); + + // Simplified one-liner Combo() using an array of const char* + static int item_current_3 = -1; // If the selection isn't within 0..count, Combo won't display a preview + ImGui::Combo("combo 3 (array)", &item_current_3, items, IM_ARRAYSIZE(items)); + + // Simplified one-liner Combo() using an accessor function + struct Funcs { static bool ItemGetter(void* data, int n, const char** out_str) { *out_str = ((const char**)data)[n]; return true; } }; + static int item_current_4 = 0; + ImGui::Combo("combo 4 (function)", &item_current_4, &Funcs::ItemGetter, items, IM_ARRAYSIZE(items)); + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Selectables")) + { + // Selectable() has 2 overloads: + // - The one taking "bool selected" as a read-only selection information. + // When Selectable() has been clicked it returns true and you can alter selection state accordingly. + // - The one taking "bool* p_selected" as a read-write selection information (convenient in some cases) + // The earlier is more flexible, as in real application your selection may be stored in many different ways + // and not necessarily inside a bool value (e.g. in flags within objects, as an external list, etc). + if (ImGui::TreeNode("Basic")) + { + static bool selection[5] = { false, true, false, false, false }; + ImGui::Selectable("1. I am selectable", &selection[0]); + ImGui::Selectable("2. I am selectable", &selection[1]); + ImGui::Text("3. I am not selectable"); + ImGui::Selectable("4. I am selectable", &selection[3]); + if (ImGui::Selectable("5. I am double clickable", selection[4], ImGuiSelectableFlags_AllowDoubleClick)) + if (ImGui::IsMouseDoubleClicked(0)) + selection[4] = !selection[4]; + ImGui::TreePop(); + } + if (ImGui::TreeNode("Selection State: Single Selection")) + { + static int selected = -1; + for (int n = 0; n < 5; n++) + { + char buf[32]; + sprintf(buf, "Object %d", n); + if (ImGui::Selectable(buf, selected == n)) + selected = n; + } + ImGui::TreePop(); + } + if (ImGui::TreeNode("Selection State: Multiple Selection")) + { + HelpMarker("Hold CTRL and click to select multiple items."); + static bool selection[5] = { false, false, false, false, false }; + for (int n = 0; n < 5; n++) + { + char buf[32]; + sprintf(buf, "Object %d", n); + if (ImGui::Selectable(buf, selection[n])) + { + if (!ImGui::GetIO().KeyCtrl) // Clear selection when CTRL is not held + memset(selection, 0, sizeof(selection)); + selection[n] ^= 1; + } + } + ImGui::TreePop(); + } + if (ImGui::TreeNode("Rendering more text into the same line")) + { + // Using the Selectable() override that takes "bool* p_selected" parameter, + // this function toggle your bool value automatically. + static bool selected[3] = { false, false, false }; + ImGui::Selectable("main.c", &selected[0]); ImGui::SameLine(300); ImGui::Text(" 2,345 bytes"); + ImGui::Selectable("Hello.cpp", &selected[1]); ImGui::SameLine(300); ImGui::Text("12,345 bytes"); + ImGui::Selectable("Hello.h", &selected[2]); ImGui::SameLine(300); ImGui::Text(" 2,345 bytes"); + ImGui::TreePop(); + } + if (ImGui::TreeNode("In columns")) + { + ImGui::Columns(3, NULL, false); + static bool selected[16] = {}; + for (int i = 0; i < 16; i++) + { + char label[32]; sprintf(label, "Item %d", i); + if (ImGui::Selectable(label, &selected[i])) {} + ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::TreePop(); + } + if (ImGui::TreeNode("Grid")) + { + static char selected[4][4] = { { 1, 0, 0, 0 }, { 0, 1, 0, 0 }, { 0, 0, 1, 0 }, { 0, 0, 0, 1 } }; + + // Add in a bit of silly fun... + const float time = (float)ImGui::GetTime(); + const bool winning_state = memchr(selected, 0, sizeof(selected)) == NULL; // If all cells are selected... + if (winning_state) + ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, ImVec2(0.5f + 0.5f * cosf(time * 2.0f), 0.5f + 0.5f * sinf(time * 3.0f))); + + for (int y = 0; y < 4; y++) + for (int x = 0; x < 4; x++) + { + if (x > 0) + ImGui::SameLine(); + ImGui::PushID(y * 4 + x); + if (ImGui::Selectable("Sailor", selected[y][x] != 0, 0, ImVec2(50, 50))) + { + // Toggle clicked cell + toggle neighbors + selected[y][x] ^= 1; + if (x > 0) { selected[y][x - 1] ^= 1; } + if (x < 3) { selected[y][x + 1] ^= 1; } + if (y > 0) { selected[y - 1][x] ^= 1; } + if (y < 3) { selected[y + 1][x] ^= 1; } + } + ImGui::PopID(); + } + + if (winning_state) + ImGui::PopStyleVar(); + ImGui::TreePop(); + } + if (ImGui::TreeNode("Alignment")) + { + HelpMarker( + "By default, Selectables uses style.SelectableTextAlign but it can be overridden on a per-item " + "basis using PushStyleVar(). You'll probably want to always keep your default situation to " + "left-align otherwise it becomes difficult to layout multiple items on a same line"); + static bool selected[3 * 3] = { true, false, true, false, true, false, true, false, true }; + for (int y = 0; y < 3; y++) + { + for (int x = 0; x < 3; x++) + { + ImVec2 alignment = ImVec2((float)x / 2.0f, (float)y / 2.0f); + char name[32]; + sprintf(name, "(%.1f,%.1f)", alignment.x, alignment.y); + if (x > 0) ImGui::SameLine(); + ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, alignment); + ImGui::Selectable(name, &selected[3 * y + x], ImGuiSelectableFlags_None, ImVec2(80, 80)); + ImGui::PopStyleVar(); + } + } + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + // To wire InputText() with std::string or any other custom string type, + // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. + if (ImGui::TreeNode("Text Input")) + { + if (ImGui::TreeNode("Multi-line Text Input")) + { + // Note: we are using a fixed-sized buffer for simplicity here. See ImGuiInputTextFlags_CallbackResize + // and the code in misc/cpp/imgui_stdlib.h for how to setup InputText() for dynamically resizing strings. + static char text[1024 * 16] = + "/*\n" + " The Pentium F00F bug, shorthand for F0 0F C7 C8,\n" + " the hexadecimal encoding of one offending instruction,\n" + " more formally, the invalid operand with locked CMPXCHG8B\n" + " instruction bug, is a design flaw in the majority of\n" + " Intel Pentium, Pentium MMX, and Pentium OverDrive\n" + " processors (all in the P5 microarchitecture).\n" + "*/\n\n" + "label:\n" + "\tlock cmpxchg8b eax\n"; + + static ImGuiInputTextFlags flags = ImGuiInputTextFlags_AllowTabInput; + HelpMarker("You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputTextMultiline() to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example. (This is not demonstrated in imgui_demo.cpp because we don't want to include in here)"); + ImGui::CheckboxFlags("ImGuiInputTextFlags_ReadOnly", (unsigned int*)&flags, ImGuiInputTextFlags_ReadOnly); + ImGui::CheckboxFlags("ImGuiInputTextFlags_AllowTabInput", (unsigned int*)&flags, ImGuiInputTextFlags_AllowTabInput); + ImGui::CheckboxFlags("ImGuiInputTextFlags_CtrlEnterForNewLine", (unsigned int*)&flags, ImGuiInputTextFlags_CtrlEnterForNewLine); + ImGui::InputTextMultiline("##source", text, IM_ARRAYSIZE(text), ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16), flags); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Filtered Text Input")) + { + struct TextFilters + { + // Return 0 (pass) if the character is 'i' or 'm' or 'g' or 'u' or 'i' + static int FilterImGuiLetters(ImGuiInputTextCallbackData* data) + { + if (data->EventChar < 256 && strchr("imgui", (char)data->EventChar)) + return 0; + return 1; + } + }; + + static char buf1[64] = ""; ImGui::InputText("default", buf1, 64); + static char buf2[64] = ""; ImGui::InputText("decimal", buf2, 64, ImGuiInputTextFlags_CharsDecimal); + static char buf3[64] = ""; ImGui::InputText("hexadecimal", buf3, 64, ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase); + static char buf4[64] = ""; ImGui::InputText("uppercase", buf4, 64, ImGuiInputTextFlags_CharsUppercase); + static char buf5[64] = ""; ImGui::InputText("no blank", buf5, 64, ImGuiInputTextFlags_CharsNoBlank); + static char buf6[64] = ""; ImGui::InputText("\"imgui\" letters", buf6, 64, ImGuiInputTextFlags_CallbackCharFilter, TextFilters::FilterImGuiLetters); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Password Input")) + { + static char password[64] = "password123"; + ImGui::InputText("password", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); + ImGui::SameLine(); HelpMarker("Display all characters as '*'.\nDisable clipboard cut and copy.\nDisable logging.\n"); + ImGui::InputTextWithHint("password (w/ hint)", "", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); + ImGui::InputText("password (clear)", password, IM_ARRAYSIZE(password)); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Completion, History, Edit Callbacks")) + { + struct Funcs + { + static int MyCallback(ImGuiInputTextCallbackData* data) + { + if (data->EventFlag == ImGuiInputTextFlags_CallbackCompletion) + { + data->InsertChars(data->CursorPos, ".."); + } + else if (data->EventFlag == ImGuiInputTextFlags_CallbackHistory) + { + if (data->EventKey == ImGuiKey_UpArrow) + { + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, "Pressed Up!"); + data->SelectAll(); + } + else if (data->EventKey == ImGuiKey_DownArrow) + { + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, "Pressed Down!"); + data->SelectAll(); + } + } + else if (data->EventFlag == ImGuiInputTextFlags_CallbackEdit) + { + // Toggle casing of first character + char c = data->Buf[0]; + if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) data->Buf[0] ^= 32; + data->BufDirty = true; + + // Increment a counter + int* p_int = (int*)data->UserData; + *p_int = *p_int + 1; + } + return 0; + } + }; + static char buf1[64]; + ImGui::InputText("Completion", buf1, 64, ImGuiInputTextFlags_CallbackCompletion, Funcs::MyCallback); + ImGui::SameLine(); HelpMarker("Here we append \"..\" each time Tab is pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); + + static char buf2[64]; + ImGui::InputText("History", buf2, 64, ImGuiInputTextFlags_CallbackHistory, Funcs::MyCallback); + ImGui::SameLine(); HelpMarker("Here we replace and select text each time Up/Down are pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); + + static char buf3[64]; + static int edit_count = 0; + ImGui::InputText("Edit", buf3, 64, ImGuiInputTextFlags_CallbackEdit, Funcs::MyCallback, (void*)&edit_count); + ImGui::SameLine(); HelpMarker("Here we toggle the casing of the first character on every edits + count edits."); + ImGui::SameLine(); ImGui::Text("(%d)", edit_count); + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Resize Callback")) + { + // To wire InputText() with std::string or any other custom string type, + // you can use the ImGuiInputTextFlags_CallbackResize flag + create a custom ImGui::InputText() wrapper + // using your preferred type. See misc/cpp/imgui_stdlib.h for an implementation of this using std::string. + HelpMarker( + "Using ImGuiInputTextFlags_CallbackResize to wire your custom string type to InputText().\n\n" + "See misc/cpp/imgui_stdlib.h for an implementation of this for std::string."); + struct Funcs + { + static int MyResizeCallback(ImGuiInputTextCallbackData* data) + { + if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) + { + ImVector* my_str = (ImVector*)data->UserData; + IM_ASSERT(my_str->begin() == data->Buf); + my_str->resize(data->BufSize); // NB: On resizing calls, generally data->BufSize == data->BufTextLen + 1 + data->Buf = my_str->begin(); + } + return 0; + } + + // Note: Because ImGui:: is a namespace you would typically add your own function into the namespace. + // For example, you code may declare a function 'ImGui::InputText(const char* label, MyString* my_str)' + static bool MyInputTextMultiline(const char* label, ImVector* my_str, const ImVec2& menu_size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0) + { + IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); + return ImGui::InputTextMultiline(label, my_str->begin(), (size_t)my_str->menu_size(), menu_size, flags | ImGuiInputTextFlags_CallbackResize, Funcs::MyResizeCallback, (void*)my_str); + } + }; + + // For this demo we are using ImVector as a string container. + // Note that because we need to store a terminating zero character, our size/capacity are 1 more + // than usually reported by a typical string class. + static ImVector my_str; + if (my_str.empty()) + my_str.push_back(0); + Funcs::MyInputTextMultiline("##MyStr", &my_str, ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16)); + ImGui::Text("Data: %p\nSize: %d\nCapacity: %d", (void*)my_str.begin(), my_str.menu_size(), my_str.capacity()); + ImGui::TreePop(); + } + + ImGui::TreePop(); + } + + // Plot/Graph widgets are currently fairly limited. + // Consider writing your own plotting widget, or using a third-party one + // (for third-party Plot widgets, see 'Wiki->Useful Widgets' or https://github.com/ocornut/imgui/labels/plot%2Fgraph) + if (ImGui::TreeNode("Plots Widgets")) + { + static bool animate = true; + ImGui::Checkbox("Animate", &animate); + + static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; + ImGui::PlotLines("Frame Times", arr, IM_ARRAYSIZE(arr)); + + // Fill an array of contiguous float values to plot + // Tip: If your float aren't contiguous but part of a structure, you can pass a pointer to your first float + // and the sizeof() of your structure in the "stride" parameter. + static float values[90] = {}; + static int values_offset = 0; + static double refresh_time = 0.0; + if (!animate || refresh_time == 0.0) + refresh_time = ImGui::GetTime(); + while (refresh_time < ImGui::GetTime()) // Create data at fixed 60 Hz rate for the demo + { + static float phase = 0.0f; + values[values_offset] = cosf(phase); + values_offset = (values_offset + 1) % IM_ARRAYSIZE(values); + phase += 0.10f * values_offset; + refresh_time += 1.0f / 60.0f; + } + + // Plots can display overlay texts + // (in this example, we will display an average value) + { + float average = 0.0f; + for (int n = 0; n < IM_ARRAYSIZE(values); n++) + average += values[n]; + average /= (float)IM_ARRAYSIZE(values); + char overlay[32]; + sprintf(overlay, "avg %f", average); + ImGui::PlotLines("Lines", values, IM_ARRAYSIZE(values), values_offset, overlay, -1.0f, 1.0f, ImVec2(0, 80.0f)); + } + ImGui::PlotHistogram("Histogram", arr, IM_ARRAYSIZE(arr), 0, NULL, 0.0f, 1.0f, ImVec2(0, 80.0f)); + + // Use functions to generate output + // FIXME: This is rather awkward because current plot API only pass in indices. + // We probably want an API passing floats and user provide sample rate/count. + struct Funcs + { + static float Sin(void*, int i) { return sinf(i * 0.1f); } + static float Saw(void*, int i) { return (i & 1) ? 1.0f : -1.0f; } + }; + static int func_type = 0, display_count = 70; + ImGui::Separator(); + ImGui::SetNextItemWidth(100); + ImGui::Combo("func", &func_type, "Sin\0Saw\0"); + ImGui::SameLine(); + ImGui::SliderInt("Sample count", &display_count, 1, 400); + float (*func)(void*, int) = (func_type == 0) ? Funcs::Sin : Funcs::Saw; + ImGui::PlotLines("Lines", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); + ImGui::PlotHistogram("Histogram", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); + ImGui::Separator(); + + // Animate a simple progress bar + static float progress = 0.0f, progress_dir = 1.0f; + if (animate) + { + progress += progress_dir * 0.4f * ImGui::GetIO().DeltaTime; + if (progress >= +1.1f) { progress = +1.1f; progress_dir *= -1.0f; } + if (progress <= -0.1f) { progress = -0.1f; progress_dir *= -1.0f; } + } + + // Typically we would use ImVec2(-1.0f,0.0f) or ImVec2(-FLT_MIN,0.0f) to use all available width, + // or ImVec2(width,0.0f) for a specified width. ImVec2(0.0f,0.0f) uses ItemWidth. + ImGui::ProgressBar(progress, ImVec2(0.0f, 0.0f)); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + ImGui::Text("Progress Bar"); + + float progress_saturated = IM_CLAMP(progress, 0.0f, 1.0f); + char buf[32]; + sprintf(buf, "%d/%d", (int)(progress_saturated * 1753), 1753); + ImGui::ProgressBar(progress, ImVec2(0.f, 0.f), buf); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Color/Picker Widgets")) + { + static ImVec4 color = ImVec4(114.0f / 255.0f, 144.0f / 255.0f, 154.0f / 255.0f, 200.0f / 255.0f); + + static bool alpha_preview = true; + static bool alpha_half_preview = false; + static bool drag_and_drop = true; + static bool options_menu = true; + static bool hdr = false; + ImGui::Checkbox("With Alpha Preview", &alpha_preview); + ImGui::Checkbox("With Half Alpha Preview", &alpha_half_preview); + ImGui::Checkbox("With Drag and Drop", &drag_and_drop); + ImGui::Checkbox("With Options Menu", &options_menu); ImGui::SameLine(); HelpMarker("Right-click on the individual color widget to show options."); + ImGui::Checkbox("With HDR", &hdr); ImGui::SameLine(); HelpMarker("Currently all this does is to lift the 0..1 limits on dragging widgets."); + ImGuiColorEditFlags misc_flags = (hdr ? ImGuiColorEditFlags_HDR : 0) | (drag_and_drop ? 0 : ImGuiColorEditFlags_NoDragDrop) | (alpha_half_preview ? ImGuiColorEditFlags_AlphaPreviewHalf : (alpha_preview ? ImGuiColorEditFlags_AlphaPreview : 0)) | (options_menu ? 0 : ImGuiColorEditFlags_NoOptions); + + ImGui::Text("Color widget:"); + ImGui::SameLine(); HelpMarker( + "Click on the colored square to open a color picker.\n" + "CTRL+click on individual component to input value.\n"); + ImGui::ColorEdit3("MyColor##1", (float*)&color, misc_flags); + + ImGui::Text("Color widget HSV with Alpha:"); + ImGui::ColorEdit4("MyColor##2", (float*)&color, ImGuiColorEditFlags_DisplayHSV | misc_flags); + + ImGui::Text("Color widget with Float Display:"); + ImGui::ColorEdit4("MyColor##2f", (float*)&color, ImGuiColorEditFlags_Float | misc_flags); + + ImGui::Text("Color button with Picker:"); + ImGui::SameLine(); HelpMarker( + "With the ImGuiColorEditFlags_NoInputs flag you can hide all the slider/text inputs.\n" + "With the ImGuiColorEditFlags_NoLabel flag you can pass a non-empty label which will only " + "be used for the tooltip and picker popup."); + ImGui::ColorEdit4("MyColor##3", (float*)&color, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoLabel | misc_flags); + + ImGui::Text("Color button with Custom Picker Popup:"); + + // Generate a default palette. The palette will persist and can be edited. + static bool saved_palette_init = true; + static ImVec4 saved_palette[32] = {}; + if (saved_palette_init) + { + for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) + { + ImGui::ColorConvertHSVtoRGB(n / 31.0f, 0.8f, 0.8f, + saved_palette[n].x, saved_palette[n].y, saved_palette[n].z); + saved_palette[n].w = 1.0f; // Alpha + } + saved_palette_init = false; + } + + static ImVec4 backup_color; + bool open_popup = ImGui::ColorButton("MyColor##3b", color, misc_flags); + ImGui::SameLine(0, ImGui::GetStyle().ItemInnerSpacing.x); + open_popup |= ImGui::Button("Palette"); + if (open_popup) + { + ImGui::OpenPopup("mypicker"); + backup_color = color; + } + if (ImGui::BeginPopup("mypicker")) + { + ImGui::Text("MY CUSTOM COLOR PICKER WITH AN AMAZING PALETTE!"); + ImGui::Separator(); + ImGui::ColorPicker4("##picker", (float*)&color, misc_flags | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoSmallPreview); + ImGui::SameLine(); + + ImGui::BeginGroup(); // Lock X position + ImGui::Text("Current"); + ImGui::ColorButton("##current", color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40)); + ImGui::Text("Previous"); + if (ImGui::ColorButton("##previous", backup_color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40))) + color = backup_color; + ImGui::Separator(); + ImGui::Text("Palette"); + for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) + { + ImGui::PushID(n); + if ((n % 8) != 0) + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemSpacing.y); + + ImGuiColorEditFlags palette_button_flags = ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_NoTooltip; + if (ImGui::ColorButton("##palette", saved_palette[n], palette_button_flags, ImVec2(20, 20))) + color = ImVec4(saved_palette[n].x, saved_palette[n].y, saved_palette[n].z, color.w); // Preserve alpha! + + // Allow user to drop colors into each palette entry. Note that ColorButton() is already a + // drag source by default, unless specifying the ImGuiColorEditFlags_NoDragDrop flag. + if (ImGui::BeginDragDropTarget()) + { + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) + memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 3); + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) + memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 4); + ImGui::EndDragDropTarget(); + } + + ImGui::PopID(); + } + ImGui::EndGroup(); + ImGui::EndPopup(); + } + + ImGui::Text("Color button only:"); + static bool no_border = false; + ImGui::Checkbox("ImGuiColorEditFlags_NoBorder", &no_border); + ImGui::ColorButton("MyColor##3c", *(ImVec4*)&color, misc_flags | (no_border ? ImGuiColorEditFlags_NoBorder : 0), ImVec2(80, 80)); + + ImGui::Text("Color picker:"); + static bool alpha = true; + static bool alpha_bar = true; + static bool side_preview = true; + static bool ref_color = false; + static ImVec4 ref_color_v(1.0f, 0.0f, 1.0f, 0.5f); + static int display_mode = 0; + static int picker_mode = 0; + ImGui::Checkbox("With Alpha", &alpha); + ImGui::Checkbox("With Alpha Bar", &alpha_bar); + ImGui::Checkbox("With Side Preview", &side_preview); + if (side_preview) + { + ImGui::SameLine(); + ImGui::Checkbox("With Ref Color", &ref_color); + if (ref_color) + { + ImGui::SameLine(); + ImGui::ColorEdit4("##RefColor", &ref_color_v.x, ImGuiColorEditFlags_NoInputs | misc_flags); + } + } + ImGui::Combo("Display Mode", &display_mode, "Auto/Current\0None\0RGB Only\0HSV Only\0Hex Only\0"); + ImGui::SameLine(); HelpMarker( + "ColorEdit defaults to displaying RGB inputs if you don't specify a display mode, " + "but the user can change it with a right-click.\n\nColorPicker defaults to displaying RGB+HSV+Hex " + "if you don't specify a display mode.\n\nYou can change the defaults using SetColorEditOptions()."); + ImGui::Combo("Picker Mode", &picker_mode, "Auto/Current\0Hue bar + SV rect\0Hue wheel + SV triangle\0"); + ImGui::SameLine(); HelpMarker("User can right-click the picker to change mode."); + ImGuiColorEditFlags flags = misc_flags; + if (!alpha) flags |= ImGuiColorEditFlags_NoAlpha; // This is by default if you call ColorPicker3() instead of ColorPicker4() + if (alpha_bar) flags |= ImGuiColorEditFlags_AlphaBar; + if (!side_preview) flags |= ImGuiColorEditFlags_NoSidePreview; + if (picker_mode == 1) flags |= ImGuiColorEditFlags_PickerHueBar; + if (picker_mode == 2) flags |= ImGuiColorEditFlags_PickerHueWheel; + if (display_mode == 1) flags |= ImGuiColorEditFlags_NoInputs; // Disable all RGB/HSV/Hex displays + if (display_mode == 2) flags |= ImGuiColorEditFlags_DisplayRGB; // Override display mode + if (display_mode == 3) flags |= ImGuiColorEditFlags_DisplayHSV; + if (display_mode == 4) flags |= ImGuiColorEditFlags_DisplayHex; + ImGui::ColorPicker4("MyColor##4", (float*)&color, flags, ref_color ? &ref_color_v.x : NULL); + + ImGui::Text("Set defaults in code:"); + ImGui::SameLine(); HelpMarker( + "SetColorEditOptions() is designed to allow you to set boot-time default.\n" + "We don't have Push/Pop functions because you can force options on a per-widget basis if needed," + "and the user can change non-forced ones with the options menu.\nWe don't have a getter to avoid" + "encouraging you to persistently save values that aren't forward-compatible."); + if (ImGui::Button("Default: Uint8 + HSV + Hue Bar")) + ImGui::SetColorEditOptions(ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_PickerHueBar); + if (ImGui::Button("Default: Float + HDR + Hue Wheel")) + ImGui::SetColorEditOptions(ImGuiColorEditFlags_Float | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_PickerHueWheel); + + // HSV encoded support (to avoid RGB<>HSV round trips and singularities when S==0 or V==0) + static ImVec4 color_hsv(0.23f, 1.0f, 1.0f, 1.0f); // Stored as HSV! + ImGui::Spacing(); + ImGui::Text("HSV encoded colors"); + ImGui::SameLine(); HelpMarker( + "By default, colors are given to ColorEdit and ColorPicker in RGB, but ImGuiColorEditFlags_InputHSV" + "allows you to store colors as HSV and pass them to ColorEdit and ColorPicker as HSV. This comes with the" + "added benefit that you can manipulate hue values with the picker even when saturation or value are zero."); + ImGui::Text("Color widget with InputHSV:"); + ImGui::ColorEdit4("HSV shown as RGB##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); + ImGui::ColorEdit4("HSV shown as HSV##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); + ImGui::DragFloat4("Raw HSV values", (float*)&color_hsv, 0.01f, 0.0f, 1.0f); + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Drag/Slider Flags")) + { + // Demonstrate using advanced flags for DragXXX and SliderXXX functions. Note that the flags are the same! + static ImGuiSliderFlags flags = ImGuiSliderFlags_None; + ImGui::CheckboxFlags("ImGuiSliderFlags_AlwaysClamp", (unsigned int*)&flags, ImGuiSliderFlags_AlwaysClamp); + ImGui::SameLine(); HelpMarker("Always clamp value to min/max bounds (if any) when input manually with CTRL+Click."); + ImGui::CheckboxFlags("ImGuiSliderFlags_Logarithmic", (unsigned int*)&flags, ImGuiSliderFlags_Logarithmic); + ImGui::SameLine(); HelpMarker("Enable logarithmic editing (more precision for small values)."); + ImGui::CheckboxFlags("ImGuiSliderFlags_NoRoundToFormat", (unsigned int*)&flags, ImGuiSliderFlags_NoRoundToFormat); + ImGui::SameLine(); HelpMarker("Disable rounding underlying value to match precision of the format string (e.g. %.3f values are rounded to those 3 digits)."); + ImGui::CheckboxFlags("ImGuiSliderFlags_NoInput", (unsigned int*)&flags, ImGuiSliderFlags_NoInput); + ImGui::SameLine(); HelpMarker("Disable CTRL+Click or Enter key allowing to input text directly into the widget."); + + // Drags + static float drag_f = 0.5f; + static int drag_i = 50; + ImGui::Text("Underlying float value: %f", drag_f); + ImGui::DragFloat("DragFloat (0 -> 1)", &drag_f, 0.005f, 0.0f, 1.0f, "%.3f", flags); + ImGui::DragFloat("DragFloat (0 -> +inf)", &drag_f, 0.005f, 0.0f, FLT_MAX, "%.3f", flags); + ImGui::DragFloat("DragFloat (-inf -> 1)", &drag_f, 0.005f, -FLT_MAX, 1.0f, "%.3f", flags); + ImGui::DragFloat("DragFloat (-inf -> +inf)", &drag_f, 0.005f, -FLT_MAX, +FLT_MAX, "%.3f", flags); + ImGui::DragInt("DragInt (0 -> 100)", &drag_i, 0.5f, 0, 100, "%d", flags); + + // Sliders + static float slider_f = 0.5f; + static int slider_i = 50; + ImGui::Text("Underlying float value: %f", slider_f); + ImGui::SliderFloat("SliderFloat (0 -> 1)", &slider_f, 0.0f, 1.0f, "%.3f", flags); + ImGui::SliderInt("SliderInt (0 -> 100)", &slider_i, 0, 100, "%d", flags); + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Range Widgets")) + { + static float begin = 10, end = 90; + static int begin_i = 100, end_i = 1000; + ImGui::DragFloatRange2("range float", &begin, &end, 0.25f, 0.0f, 100.0f, "Min: %.1f %%", "Max: %.1f %%", ImGuiSliderFlags_AlwaysClamp); + ImGui::DragIntRange2("range int", &begin_i, &end_i, 5, 0, 1000, "Min: %d units", "Max: %d units"); + ImGui::DragIntRange2("range int (no bounds)", &begin_i, &end_i, 5, 0, 0, "Min: %d units", "Max: %d units"); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Data Types")) + { + // DragScalar/InputScalar/SliderScalar functions allow various data types + // - signed/unsigned + // - 8/16/32/64-bits + // - integer/float/double + // To avoid polluting the public API with all possible combinations, we use the ImGuiDataType enum + // to pass the type, and passing all arguments by pointer. + // This is the reason the test code below creates local variables to hold "zero" "one" etc. for each types. + // In practice, if you frequently use a given type that is not covered by the normal API entry points, + // you can wrap it yourself inside a 1 line function which can take typed argument as value instead of void*, + // and then pass their address to the generic function. For example: + // bool MySliderU64(const char *label, u64* value, u64 min = 0, u64 max = 0, const char* format = "%lld") + // { + // return SliderScalar(label, ImGuiDataType_U64, value, &min, &max, format); + // } + + // Setup limits (as helper variables so we can take their address, as explained above) + // Note: SliderScalar() functions have a maximum usable range of half the natural type maximum, hence the /2. + #ifndef LLONG_MIN + ImS64 LLONG_MIN = -9223372036854775807LL - 1; + ImS64 LLONG_MAX = 9223372036854775807LL; + ImU64 ULLONG_MAX = (2ULL * 9223372036854775807LL + 1); + #endif + const char s8_zero = 0, s8_one = 1, s8_fifty = 50, s8_min = -128, s8_max = 127; + const ImU8 u8_zero = 0, u8_one = 1, u8_fifty = 50, u8_min = 0, u8_max = 255; + const short s16_zero = 0, s16_one = 1, s16_fifty = 50, s16_min = -32768, s16_max = 32767; + const ImU16 u16_zero = 0, u16_one = 1, u16_fifty = 50, u16_min = 0, u16_max = 65535; + const ImS32 s32_zero = 0, s32_one = 1, s32_fifty = 50, s32_min = INT_MIN/2, s32_max = INT_MAX/2, s32_hi_a = INT_MAX/2 - 100, s32_hi_b = INT_MAX/2; + const ImU32 u32_zero = 0, u32_one = 1, u32_fifty = 50, u32_min = 0, u32_max = UINT_MAX/2, u32_hi_a = UINT_MAX/2 - 100, u32_hi_b = UINT_MAX/2; + const ImS64 s64_zero = 0, s64_one = 1, s64_fifty = 50, s64_min = LLONG_MIN/2, s64_max = LLONG_MAX/2, s64_hi_a = LLONG_MAX/2 - 100, s64_hi_b = LLONG_MAX/2; + const ImU64 u64_zero = 0, u64_one = 1, u64_fifty = 50, u64_min = 0, u64_max = ULLONG_MAX/2, u64_hi_a = ULLONG_MAX/2 - 100, u64_hi_b = ULLONG_MAX/2; + const float f32_zero = 0.f, f32_one = 1.f, f32_lo_a = -10000000000.0f, f32_hi_a = +10000000000.0f; + const double f64_zero = 0., f64_one = 1., f64_lo_a = -1000000000000000.0, f64_hi_a = +1000000000000000.0; + + // State + static char s8_v = 127; + static ImU8 u8_v = 255; + static short s16_v = 32767; + static ImU16 u16_v = 65535; + static ImS32 s32_v = -1; + static ImU32 u32_v = (ImU32)-1; + static ImS64 s64_v = -1; + static ImU64 u64_v = (ImU64)-1; + static float f32_v = 0.123f; + static double f64_v = 90000.01234567890123456789; + + const float drag_speed = 0.2f; + static bool drag_clamp = false; + ImGui::Text("Drags:"); + ImGui::Checkbox("Clamp integers to 0..50", &drag_clamp); + ImGui::SameLine(); HelpMarker( + "As with every widgets in dear imgui, we never modify values unless there is a user interaction.\n" + "You can override the clamping limits by using CTRL+Click to input a value."); + ImGui::DragScalar("drag s8", ImGuiDataType_S8, &s8_v, drag_speed, drag_clamp ? &s8_zero : NULL, drag_clamp ? &s8_fifty : NULL); + ImGui::DragScalar("drag u8", ImGuiDataType_U8, &u8_v, drag_speed, drag_clamp ? &u8_zero : NULL, drag_clamp ? &u8_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s16", ImGuiDataType_S16, &s16_v, drag_speed, drag_clamp ? &s16_zero : NULL, drag_clamp ? &s16_fifty : NULL); + ImGui::DragScalar("drag u16", ImGuiDataType_U16, &u16_v, drag_speed, drag_clamp ? &u16_zero : NULL, drag_clamp ? &u16_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s32", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL); + ImGui::DragScalar("drag u32", ImGuiDataType_U32, &u32_v, drag_speed, drag_clamp ? &u32_zero : NULL, drag_clamp ? &u32_fifty : NULL, "%u ms"); + ImGui::DragScalar("drag s64", ImGuiDataType_S64, &s64_v, drag_speed, drag_clamp ? &s64_zero : NULL, drag_clamp ? &s64_fifty : NULL); + ImGui::DragScalar("drag u64", ImGuiDataType_U64, &u64_v, drag_speed, drag_clamp ? &u64_zero : NULL, drag_clamp ? &u64_fifty : NULL); + ImGui::DragScalar("drag float", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f"); + ImGui::DragScalar("drag float log", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f", ImGuiSliderFlags_Logarithmic); + ImGui::DragScalar("drag double", ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, NULL, "%.10f grams"); + ImGui::DragScalar("drag double log",ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, &f64_one, "0 < %.10f < 1", ImGuiSliderFlags_Logarithmic); + + ImGui::Text("Sliders"); + ImGui::SliderScalar("slider s8 full", ImGuiDataType_S8, &s8_v, &s8_min, &s8_max, "%d"); + ImGui::SliderScalar("slider u8 full", ImGuiDataType_U8, &u8_v, &u8_min, &u8_max, "%u"); + ImGui::SliderScalar("slider s16 full", ImGuiDataType_S16, &s16_v, &s16_min, &s16_max, "%d"); + ImGui::SliderScalar("slider u16 full", ImGuiDataType_U16, &u16_v, &u16_min, &u16_max, "%u"); + ImGui::SliderScalar("slider s32 low", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty,"%d"); + ImGui::SliderScalar("slider s32 high", ImGuiDataType_S32, &s32_v, &s32_hi_a, &s32_hi_b, "%d"); + ImGui::SliderScalar("slider s32 full", ImGuiDataType_S32, &s32_v, &s32_min, &s32_max, "%d"); + ImGui::SliderScalar("slider u32 low", ImGuiDataType_U32, &u32_v, &u32_zero, &u32_fifty,"%u"); + ImGui::SliderScalar("slider u32 high", ImGuiDataType_U32, &u32_v, &u32_hi_a, &u32_hi_b, "%u"); + ImGui::SliderScalar("slider u32 full", ImGuiDataType_U32, &u32_v, &u32_min, &u32_max, "%u"); + ImGui::SliderScalar("slider s64 low", ImGuiDataType_S64, &s64_v, &s64_zero, &s64_fifty,"%I64d"); + ImGui::SliderScalar("slider s64 high", ImGuiDataType_S64, &s64_v, &s64_hi_a, &s64_hi_b, "%I64d"); + ImGui::SliderScalar("slider s64 full", ImGuiDataType_S64, &s64_v, &s64_min, &s64_max, "%I64d"); + ImGui::SliderScalar("slider u64 low", ImGuiDataType_U64, &u64_v, &u64_zero, &u64_fifty,"%I64u ms"); + ImGui::SliderScalar("slider u64 high", ImGuiDataType_U64, &u64_v, &u64_hi_a, &u64_hi_b, "%I64u ms"); + ImGui::SliderScalar("slider u64 full", ImGuiDataType_U64, &u64_v, &u64_min, &u64_max, "%I64u ms"); + ImGui::SliderScalar("slider float low", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one); + ImGui::SliderScalar("slider float low log", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one, "%.10f", ImGuiSliderFlags_Logarithmic); + ImGui::SliderScalar("slider float high", ImGuiDataType_Float, &f32_v, &f32_lo_a, &f32_hi_a, "%e"); + ImGui::SliderScalar("slider double low", ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f grams"); + ImGui::SliderScalar("slider double low log",ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f", ImGuiSliderFlags_Logarithmic); + ImGui::SliderScalar("slider double high", ImGuiDataType_Double, &f64_v, &f64_lo_a, &f64_hi_a, "%e grams"); + + ImGui::Text("Sliders (reverse)"); + ImGui::SliderScalar("slider s8 reverse", ImGuiDataType_S8, &s8_v, &s8_max, &s8_min, "%d"); + ImGui::SliderScalar("slider u8 reverse", ImGuiDataType_U8, &u8_v, &u8_max, &u8_min, "%u"); + ImGui::SliderScalar("slider s32 reverse", ImGuiDataType_S32, &s32_v, &s32_fifty, &s32_zero, "%d"); + ImGui::SliderScalar("slider u32 reverse", ImGuiDataType_U32, &u32_v, &u32_fifty, &u32_zero, "%u"); + ImGui::SliderScalar("slider s64 reverse", ImGuiDataType_S64, &s64_v, &s64_fifty, &s64_zero, "%I64d"); + ImGui::SliderScalar("slider u64 reverse", ImGuiDataType_U64, &u64_v, &u64_fifty, &u64_zero, "%I64u ms"); + + static bool inputs_step = true; + ImGui::Text("Inputs"); + ImGui::Checkbox("Show step buttons", &inputs_step); + ImGui::InputScalar("input s8", ImGuiDataType_S8, &s8_v, inputs_step ? &s8_one : NULL, NULL, "%d"); + ImGui::InputScalar("input u8", ImGuiDataType_U8, &u8_v, inputs_step ? &u8_one : NULL, NULL, "%u"); + ImGui::InputScalar("input s16", ImGuiDataType_S16, &s16_v, inputs_step ? &s16_one : NULL, NULL, "%d"); + ImGui::InputScalar("input u16", ImGuiDataType_U16, &u16_v, inputs_step ? &u16_one : NULL, NULL, "%u"); + ImGui::InputScalar("input s32", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%d"); + ImGui::InputScalar("input s32 hex", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%08X", ImGuiInputTextFlags_CharsHexadecimal); + ImGui::InputScalar("input u32", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%u"); + ImGui::InputScalar("input u32 hex", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%08X", ImGuiInputTextFlags_CharsHexadecimal); + ImGui::InputScalar("input s64", ImGuiDataType_S64, &s64_v, inputs_step ? &s64_one : NULL); + ImGui::InputScalar("input u64", ImGuiDataType_U64, &u64_v, inputs_step ? &u64_one : NULL); + ImGui::InputScalar("input float", ImGuiDataType_Float, &f32_v, inputs_step ? &f32_one : NULL); + ImGui::InputScalar("input double", ImGuiDataType_Double, &f64_v, inputs_step ? &f64_one : NULL); + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Multi-component Widgets")) + { + static float vec4f[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; + static int vec4i[4] = { 1, 5, 100, 255 }; + + ImGui::InputFloat2("input float2", vec4f); + ImGui::DragFloat2("drag float2", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat2("slider float2", vec4f, 0.0f, 1.0f); + ImGui::InputInt2("input int2", vec4i); + ImGui::DragInt2("drag int2", vec4i, 1, 0, 255); + ImGui::SliderInt2("slider int2", vec4i, 0, 255); + ImGui::Spacing(); + + ImGui::InputFloat3("input float3", vec4f); + ImGui::DragFloat3("drag float3", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat3("slider float3", vec4f, 0.0f, 1.0f); + ImGui::InputInt3("input int3", vec4i); + ImGui::DragInt3("drag int3", vec4i, 1, 0, 255); + ImGui::SliderInt3("slider int3", vec4i, 0, 255); + ImGui::Spacing(); + + ImGui::InputFloat4("input float4", vec4f); + ImGui::DragFloat4("drag float4", vec4f, 0.01f, 0.0f, 1.0f); + ImGui::SliderFloat4("slider float4", vec4f, 0.0f, 1.0f); + ImGui::InputInt4("input int4", vec4i); + ImGui::DragInt4("drag int4", vec4i, 1, 0, 255); + ImGui::SliderInt4("slider int4", vec4i, 0, 255); + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Vertical Sliders")) + { + const float spacing = 4; + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(spacing, spacing)); + + static int int_value = 0; + ImGui::VSliderInt("##int", ImVec2(18, 160), &int_value, 0, 5); + ImGui::SameLine(); + + static float values[7] = { 0.0f, 0.60f, 0.35f, 0.9f, 0.70f, 0.20f, 0.0f }; + ImGui::PushID("set1"); + for (int i = 0; i < 7; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleColor(ImGuiCol_FrameBg, (ImVec4)ImColor::HSV(i / 7.0f, 0.5f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_FrameBgHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_FrameBgActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.5f)); + ImGui::PushStyleColor(ImGuiCol_SliderGrab, (ImVec4)ImColor::HSV(i / 7.0f, 0.9f, 0.9f)); + ImGui::VSliderFloat("##v", ImVec2(18, 160), &values[i], 0.0f, 1.0f, ""); + if (ImGui::IsItemActive() || ImGui::IsItemHovered()) + ImGui::SetTooltip("%.3f", values[i]); + ImGui::PopStyleColor(4); + ImGui::PopID(); + } + ImGui::PopID(); + + ImGui::SameLine(); + ImGui::PushID("set2"); + static float values2[4] = { 0.20f, 0.80f, 0.40f, 0.25f }; + const int rows = 3; + const ImVec2 small_slider_size(18, (float)(int)((160.0f - (rows - 1) * spacing) / rows)); + for (int nx = 0; nx < 4; nx++) + { + if (nx > 0) ImGui::SameLine(); + ImGui::BeginGroup(); + for (int ny = 0; ny < rows; ny++) + { + ImGui::PushID(nx * rows + ny); + ImGui::VSliderFloat("##v", small_slider_size, &values2[nx], 0.0f, 1.0f, ""); + if (ImGui::IsItemActive() || ImGui::IsItemHovered()) + ImGui::SetTooltip("%.3f", values2[nx]); + ImGui::PopID(); + } + ImGui::EndGroup(); + } + ImGui::PopID(); + + ImGui::SameLine(); + ImGui::PushID("set3"); + for (int i = 0; i < 4; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::PushStyleVar(ImGuiStyleVar_GrabMinSize, 40); + ImGui::VSliderFloat("##v", ImVec2(40, 160), &values[i], 0.0f, 1.0f, "%.2f\nsec"); + ImGui::PopStyleVar(); + ImGui::PopID(); + } + ImGui::PopID(); + ImGui::PopStyleVar(); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Drag and Drop")) + { + if (ImGui::TreeNode("Drag and drop in standard widgets")) + { + // ColorEdit widgets automatically act as drag source and drag target. + // They are using standardized payload strings IMGUI_PAYLOAD_TYPE_COLOR_3F and IMGUI_PAYLOAD_TYPE_COLOR_4F + // to allow your own widgets to use colors in their drag and drop interaction. + // Also see 'Demo->Widgets->Color/Picker Widgets->Palette' demo. + HelpMarker("You can drag from the colored squares."); + static float col1[3] = { 1.0f, 0.0f, 0.2f }; + static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::ColorEdit3("color 1", col1); + ImGui::ColorEdit4("color 2", col2); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Drag and drop to copy/swap items")) + { + enum Mode + { + Mode_Copy, + Mode_Move, + Mode_Swap + }; + static int mode = 0; + if (ImGui::RadioButton("Copy", mode == Mode_Copy)) { mode = Mode_Copy; } ImGui::SameLine(); + if (ImGui::RadioButton("Move", mode == Mode_Move)) { mode = Mode_Move; } ImGui::SameLine(); + if (ImGui::RadioButton("Swap", mode == Mode_Swap)) { mode = Mode_Swap; } + static const char* names[9] = + { + "Bobby", "Beatrice", "Betty", + "Brianna", "Barry", "Bernard", + "Bibi", "Blaine", "Bryn" + }; + for (int n = 0; n < IM_ARRAYSIZE(names); n++) + { + ImGui::PushID(n); + if ((n % 3) != 0) + ImGui::SameLine(); + ImGui::Button(names[n], ImVec2(60, 60)); + + // Our buttons are both drag sources and drag targets here! + if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_None)) + { + // Set payload to carry the index of our item (could be anything) + ImGui::SetDragDropPayload("DND_DEMO_CELL", &n, sizeof(int)); + + // Display preview (could be anything, e.g. when dragging an image we could decide to display + // the filename and a small preview of the image, etc.) + if (mode == Mode_Copy) { ImGui::Text("Copy %s", names[n]); } + if (mode == Mode_Move) { ImGui::Text("Move %s", names[n]); } + if (mode == Mode_Swap) { ImGui::Text("Swap %s", names[n]); } + ImGui::EndDragDropSource(); + } + if (ImGui::BeginDragDropTarget()) + { + if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload("DND_DEMO_CELL")) + { + IM_ASSERT(payload->DataSize == sizeof(int)); + int payload_n = *(const int*)payload->Data; + if (mode == Mode_Copy) + { + names[n] = names[payload_n]; + } + if (mode == Mode_Move) + { + names[n] = names[payload_n]; + names[payload_n] = ""; + } + if (mode == Mode_Swap) + { + const char* tmp = names[n]; + names[n] = names[payload_n]; + names[payload_n] = tmp; + } + } + ImGui::EndDragDropTarget(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Drag to reorder items (simple)")) + { + // Simple reordering + HelpMarker( + "We don't use the drag and drop api at all here! " + "Instead we query when the item is held but not hovered, and order items accordingly."); + static const char* item_names[] = { "Item One", "Item Two", "Item Three", "Item Four", "Item Five" }; + for (int n = 0; n < IM_ARRAYSIZE(item_names); n++) + { + const char* item = item_names[n]; + ImGui::Selectable(item); + + if (ImGui::IsItemActive() && !ImGui::IsItemHovered()) + { + int n_next = n + (ImGui::GetMouseDragDelta(0).y < 0.f ? -1 : 1); + if (n_next >= 0 && n_next < IM_ARRAYSIZE(item_names)) + { + item_names[n] = item_names[n_next]; + item_names[n_next] = item; + ImGui::ResetMouseDragDelta(); + } + } + } + ImGui::TreePop(); + } + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Querying Status (Active/Focused/Hovered etc.)")) + { + // Select an item type + const char* item_names[] = + { + "Text", "Button", "Button (w/ repeat)", "Checkbox", "SliderFloat", "InputText", "InputFloat", + "InputFloat3", "ColorEdit4", "MenuItem", "TreeNode", "TreeNode (w/ double-click)", "ListBox" + }; + static int item_type = 1; + ImGui::Combo("Item Type", &item_type, item_names, IM_ARRAYSIZE(item_names), IM_ARRAYSIZE(item_names)); + ImGui::SameLine(); + HelpMarker("Testing how various types of items are interacting with the IsItemXXX functions."); + + // Submit selected item item so we can query their status in the code following it. + bool ret = false; + static bool b = false; + static float col4f[4] = { 1.0f, 0.5, 0.0f, 1.0f }; + static char str[16] = {}; + if (item_type == 0) { ImGui::Text("ITEM: Text"); } // Testing text items with no identifier/interaction + if (item_type == 1) { ret = ImGui::Button("ITEM: Button"); } // Testing button + if (item_type == 2) { ImGui::PushButtonRepeat(true); ret = ImGui::Button("ITEM: Button"); ImGui::PopButtonRepeat(); } // Testing button (with repeater) + if (item_type == 3) { ret = ImGui::Checkbox("ITEM: Checkbox", &b); } // Testing checkbox + if (item_type == 4) { ret = ImGui::SliderFloat("ITEM: SliderFloat", &col4f[0], 0.0f, 1.0f); } // Testing basic item + if (item_type == 5) { ret = ImGui::InputText("ITEM: InputText", &str[0], IM_ARRAYSIZE(str)); } // Testing input text (which handles tabbing) + if (item_type == 6) { ret = ImGui::InputFloat("ITEM: InputFloat", col4f, 1.0f); } // Testing +/- buttons on scalar input + if (item_type == 7) { ret = ImGui::InputFloat3("ITEM: InputFloat3", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) + if (item_type == 8) { ret = ImGui::ColorEdit4("ITEM: ColorEdit4", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) + if (item_type == 9) { ret = ImGui::MenuItem("ITEM: MenuItem"); } // Testing menu item (they use ImGuiButtonFlags_PressedOnRelease button policy) + if (item_type == 10){ ret = ImGui::TreeNode("ITEM: TreeNode"); if (ret) ImGui::TreePop(); } // Testing tree node + if (item_type == 11){ ret = ImGui::TreeNodeEx("ITEM: TreeNode w/ ImGuiTreeNodeFlags_OpenOnDoubleClick", ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_NoTreePushOnOpen); } // Testing tree node with ImGuiButtonFlags_PressedOnDoubleClick button policy. + if (item_type == 12){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::ListBox("ITEM: ListBox", ¤t, items, IM_ARRAYSIZE(items), IM_ARRAYSIZE(items)); } + + // Display the values of IsItemHovered() and other common item state functions. + // Note that the ImGuiHoveredFlags_XXX flags can be combined. + // Because BulletText is an item itself and that would affect the output of IsItemXXX functions, + // we query every state in a single call to avoid storing them and to simplify the code. + ImGui::BulletText( + "Return value = %d\n" + "IsItemFocused() = %d\n" + "IsItemHovered() = %d\n" + "IsItemHovered(_AllowWhenBlockedByPopup) = %d\n" + "IsItemHovered(_AllowWhenBlockedByActiveItem) = %d\n" + "IsItemHovered(_AllowWhenOverlapped) = %d\n" + "IsItemHovered(_RectOnly) = %d\n" + "IsItemActive() = %d\n" + "IsItemEdited() = %d\n" + "IsItemActivated() = %d\n" + "IsItemDeactivated() = %d\n" + "IsItemDeactivatedAfterEdit() = %d\n" + "IsItemVisible() = %d\n" + "IsItemClicked() = %d\n" + "IsItemToggledOpen() = %d\n" + "GetItemRectMin() = (%.1f, %.1f)\n" + "GetItemRectMax() = (%.1f, %.1f)\n" + "GetItemRectSize() = (%.1f, %.1f)", + ret, + ImGui::IsItemFocused(), + ImGui::IsItemHovered(), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenOverlapped), + ImGui::IsItemHovered(ImGuiHoveredFlags_RectOnly), + ImGui::IsItemActive(), + ImGui::IsItemEdited(), + ImGui::IsItemActivated(), + ImGui::IsItemDeactivated(), + ImGui::IsItemDeactivatedAfterEdit(), + ImGui::IsItemVisible(), + ImGui::IsItemClicked(), + ImGui::IsItemToggledOpen(), + ImGui::GetItemRectMin().x, ImGui::GetItemRectMin().y, + ImGui::GetItemRectMax().x, ImGui::GetItemRectMax().y, + ImGui::GetItemRectSize().x, ImGui::GetItemRectSize().y + ); + + static bool embed_all_inside_a_child_window = false; + ImGui::Checkbox("Embed everything inside a child window (for additional testing)", &embed_all_inside_a_child_window); + if (embed_all_inside_a_child_window) + ImGui::BeginChild("outer_child", ImVec2(0, ImGui::GetFontSize() * 20.0f), true); + + // Testing IsWindowFocused() function with its various flags. + // Note that the ImGuiFocusedFlags_XXX flags can be combined. + ImGui::BulletText( + "IsWindowFocused() = %d\n" + "IsWindowFocused(_ChildWindows) = %d\n" + "IsWindowFocused(_ChildWindows|_RootWindow) = %d\n" + "IsWindowFocused(_RootWindow) = %d\n" + "IsWindowFocused(_AnyWindow) = %d\n", + ImGui::IsWindowFocused(), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows), + ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow), + ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow), + ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow)); + + // Testing IsWindowHovered() function with its various flags. + // Note that the ImGuiHoveredFlags_XXX flags can be combined. + ImGui::BulletText( + "IsWindowHovered() = %d\n" + "IsWindowHovered(_AllowWhenBlockedByPopup) = %d\n" + "IsWindowHovered(_AllowWhenBlockedByActiveItem) = %d\n" + "IsWindowHovered(_ChildWindows) = %d\n" + "IsWindowHovered(_ChildWindows|_RootWindow) = %d\n" + "IsWindowHovered(_ChildWindows|_AllowWhenBlockedByPopup) = %d\n" + "IsWindowHovered(_RootWindow) = %d\n" + "IsWindowHovered(_AnyWindow) = %d\n", + ImGui::IsWindowHovered(), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow), + ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_AllowWhenBlockedByPopup), + ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow), + ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow)); + + ImGui::BeginChild("child", ImVec2(0, 50), true); + ImGui::Text("This is another child window for testing the _ChildWindows flag."); + ImGui::EndChild(); + if (embed_all_inside_a_child_window) + ImGui::EndChild(); + + static char unused_str[] = "This widget is only here to be able to tab-out of the widgets above."; + ImGui::InputText("unused", unused_str, IM_ARRAYSIZE(unused_str), ImGuiInputTextFlags_ReadOnly); + + // Calling IsItemHovered() after begin returns the hovered status of the title bar. + // This is useful in particular if you want to create a context menu associated to the title bar of a window. + static bool test_window = false; + ImGui::Checkbox("Hovered/Active tests after Begin() for title bar testing", &test_window); + if (test_window) + { + ImGui::Begin("Title bar Hovered/Active tests", &test_window); + if (ImGui::BeginPopupContextItem()) // <-- This is using IsItemHovered() + { + if (ImGui::MenuItem("Close")) { test_window = false; } + ImGui::EndPopup(); + } + ImGui::Text( + "IsItemHovered() after begin = %d (== is title bar hovered)\n" + "IsItemActive() after begin = %d (== is window being clicked/moved)\n", + ImGui::IsItemHovered(), ImGui::IsItemActive()); + ImGui::End(); + } + + ImGui::TreePop(); + } +} + +static void ShowDemoWindowLayout() +{ + if (!ImGui::CollapsingHeader("Layout & Scrolling")) + return; + + if (ImGui::TreeNode("Child windows")) + { + HelpMarker("Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window."); + static bool disable_mouse_wheel = false; + static bool disable_menu = false; + ImGui::Checkbox("Disable Mouse Wheel", &disable_mouse_wheel); + ImGui::Checkbox("Disable Menu", &disable_menu); + + // Child 1: no border, enable horizontal scrollbar + { + ImGuiWindowFlags window_flags = ImGuiWindowFlags_HorizontalScrollbar; + if (disable_mouse_wheel) + window_flags |= ImGuiWindowFlags_NoScrollWithMouse; + ImGui::BeginChild("ChildL", ImVec2(ImGui::GetWindowContentRegionWidth() * 0.5f, 260), false, window_flags); + for (int i = 0; i < 100; i++) + ImGui::Text("%04d: scrollable region", i); + ImGui::EndChild(); + } + + ImGui::SameLine(); + + // Child 2: rounded border + { + ImGuiWindowFlags window_flags = ImGuiWindowFlags_None; + if (disable_mouse_wheel) + window_flags |= ImGuiWindowFlags_NoScrollWithMouse; + if (!disable_menu) + window_flags |= ImGuiWindowFlags_MenuBar; + ImGui::PushStyleVar(ImGuiStyleVar_ChildRounding, 5.0f); + ImGui::BeginChild("ChildR", ImVec2(0, 260), true, window_flags); + if (!disable_menu && ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("Menu")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + ImGui::Columns(2); + for (int i = 0; i < 100; i++) + { + char buf[32]; + sprintf(buf, "%03d", i); + ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); + ImGui::NextColumn(); + } + ImGui::EndChild(); + ImGui::PopStyleVar(); + } + + ImGui::Separator(); + + // Demonstrate a few extra things + // - Changing ImGuiCol_ChildBg (which is transparent black in default styles) + // - Using SetCursorPos() to position child window (the child window is an item from the POV of parent window) + // You can also call SetNextWindowPos() to position the child window. The parent window will effectively + // layout from this position. + // - Using ImGui::GetItemRectMin/Max() to query the "item" state (because the child window is an item from + // the POV of the parent window). See 'Demo->Querying Status (Active/Focused/Hovered etc.)' for details. + { + static int offset_x = 0; + ImGui::SetNextItemWidth(100); + ImGui::DragInt("Offset X", &offset_x, 1.0f, -1000, 1000); + + ImGui::SetCursorPosX(ImGui::GetCursorPosX() + (float)offset_x); + ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(255, 0, 0, 100)); + ImGui::BeginChild("Red", ImVec2(200, 100), true, ImGuiWindowFlags_None); + for (int n = 0; n < 50; n++) + ImGui::Text("Some test %d", n); + ImGui::EndChild(); + bool child_is_hovered = ImGui::IsItemHovered(); + ImVec2 child_rect_min = ImGui::GetItemRectMin(); + ImVec2 child_rect_max = ImGui::GetItemRectMax(); + ImGui::PopStyleColor(); + ImGui::Text("Hovered: %d", child_is_hovered); + ImGui::Text("Rect of child window is: (%.0f,%.0f) (%.0f,%.0f)", child_rect_min.x, child_rect_min.y, child_rect_max.x, child_rect_max.y); + } + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Widgets Width")) + { + // Use SetNextItemWidth() to set the width of a single upcoming item. + // Use PushItemWidth()/PopItemWidth() to set the width of a group of items. + // In real code use you'll probably want to choose width values that are proportional to your font size + // e.g. Using '20.0f * GetFontSize()' as width instead of '200.0f', etc. + + static float f = 0.0f; + ImGui::Text("SetNextItemWidth/PushItemWidth(100)"); + ImGui::SameLine(); HelpMarker("Fixed width."); + ImGui::SetNextItemWidth(100); + ImGui::DragFloat("float##1", &f); + + ImGui::Text("SetNextItemWidth/PushItemWidth(GetWindowWidth() * 0.5f)"); + ImGui::SameLine(); HelpMarker("Half of window width."); + ImGui::SetNextItemWidth(ImGui::GetWindowWidth() * 0.5f); + ImGui::DragFloat("float##2", &f); + + ImGui::Text("SetNextItemWidth/PushItemWidth(GetContentRegionAvail().x * 0.5f)"); + ImGui::SameLine(); HelpMarker("Half of available width.\n(~ right-cursor_pos)\n(works within a column set)"); + ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x * 0.5f); + ImGui::DragFloat("float##3", &f); + + ImGui::Text("SetNextItemWidth/PushItemWidth(-100)"); + ImGui::SameLine(); HelpMarker("Align to right edge minus 100"); + ImGui::SetNextItemWidth(-100); + ImGui::DragFloat("float##4", &f); + + // Demonstrate using PushItemWidth to surround three items. + // Calling SetNextItemWidth() before each of them would have the same effect. + ImGui::Text("SetNextItemWidth/PushItemWidth(-1)"); + ImGui::SameLine(); HelpMarker("Align to right edge"); + ImGui::PushItemWidth(-1); + ImGui::DragFloat("##float5a", &f); + ImGui::DragFloat("##float5b", &f); + ImGui::DragFloat("##float5c", &f); + ImGui::PopItemWidth(); + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Basic Horizontal Layout")) + { + ImGui::TextWrapped("(Use ImGui::SameLine() to keep adding items to the right of the preceding item)"); + + // Text + ImGui::Text("Two items: Hello"); ImGui::SameLine(); + ImGui::TextColored(ImVec4(1,1,0,1), "Sailor"); + + // Adjust spacing + ImGui::Text("More spacing: Hello"); ImGui::SameLine(0, 20); + ImGui::TextColored(ImVec4(1,1,0,1), "Sailor"); + + // Button + ImGui::AlignTextToFramePadding(); + ImGui::Text("Normal buttons"); ImGui::SameLine(); + ImGui::Button("Banana"); ImGui::SameLine(); + ImGui::Button("Apple"); ImGui::SameLine(); + ImGui::Button("Corniflower"); + + // Button + ImGui::Text("Small buttons"); ImGui::SameLine(); + ImGui::SmallButton("Like this one"); ImGui::SameLine(); + ImGui::Text("can fit within a text block."); + + // Aligned to arbitrary position. Easy/cheap column. + ImGui::Text("Aligned"); + ImGui::SameLine(150); ImGui::Text("x=150"); + ImGui::SameLine(300); ImGui::Text("x=300"); + ImGui::Text("Aligned"); + ImGui::SameLine(150); ImGui::SmallButton("x=150"); + ImGui::SameLine(300); ImGui::SmallButton("x=300"); + + // Checkbox + static bool c1 = false, c2 = false, c3 = false, c4 = false; + ImGui::Checkbox("My", &c1); ImGui::SameLine(); + ImGui::Checkbox("Tailor", &c2); ImGui::SameLine(); + ImGui::Checkbox("Is", &c3); ImGui::SameLine(); + ImGui::Checkbox("Rich", &c4); + + // Various + static float f0 = 1.0f, f1 = 2.0f, f2 = 3.0f; + ImGui::PushItemWidth(80); + const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD" }; + static int item = -1; + ImGui::Combo("Combo", &item, items, IM_ARRAYSIZE(items)); ImGui::SameLine(); + ImGui::SliderFloat("X", &f0, 0.0f, 5.0f); ImGui::SameLine(); + ImGui::SliderFloat("Y", &f1, 0.0f, 5.0f); ImGui::SameLine(); + ImGui::SliderFloat("Z", &f2, 0.0f, 5.0f); + ImGui::PopItemWidth(); + + ImGui::PushItemWidth(80); + ImGui::Text("Lists:"); + static int selection[4] = { 0, 1, 2, 3 }; + for (int i = 0; i < 4; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::PushID(i); + ImGui::ListBox("", &selection[i], items, IM_ARRAYSIZE(items)); + ImGui::PopID(); + //if (ImGui::IsItemHovered()) ImGui::SetTooltip("ListBox %d hovered", i); + } + ImGui::PopItemWidth(); + + // Dummy + ImVec2 button_sz(40, 40); + ImGui::Button("A", button_sz); ImGui::SameLine(); + ImGui::Dummy(button_sz); ImGui::SameLine(); + ImGui::Button("B", button_sz); + + // Manually wrapping + // (we should eventually provide this as an automatic layout feature, but for now you can do it manually) + ImGui::Text("Manually wrapping:"); + ImGuiStyle& style = ImGui::GetStyle(); + int buttons_count = 20; + float window_visible_x2 = ImGui::GetWindowPos().x + ImGui::GetWindowContentRegionMax().x; + for (int n = 0; n < buttons_count; n++) + { + ImGui::PushID(n); + ImGui::Button("Box", button_sz); + float last_button_x2 = ImGui::GetItemRectMax().x; + float next_button_x2 = last_button_x2 + style.ItemSpacing.x + button_sz.x; // Expected position if next button was on same line + if (n + 1 < buttons_count && next_button_x2 < window_visible_x2) + ImGui::SameLine(); + ImGui::PopID(); + } + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Tabs")) + { + if (ImGui::TreeNode("Basic")) + { + ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_None; + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + if (ImGui::BeginTabItem("Avocado")) + { + ImGui::Text("This is the Avocado tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Broccoli")) + { + ImGui::Text("This is the Broccoli tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Cucumber")) + { + ImGui::Text("This is the Cucumber tab!\nblah blah blah blah blah"); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Advanced & Close Button")) + { + // Expose a couple of the available flags. In most cases you may just call BeginTabBar() with no flags (0). + static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable; + ImGui::CheckboxFlags("ImGuiTabBarFlags_Reorderable", (unsigned int*)&tab_bar_flags, ImGuiTabBarFlags_Reorderable); + ImGui::CheckboxFlags("ImGuiTabBarFlags_AutoSelectNewTabs", (unsigned int*)&tab_bar_flags, ImGuiTabBarFlags_AutoSelectNewTabs); + ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", (unsigned int*)&tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); + ImGui::CheckboxFlags("ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", (unsigned int*)&tab_bar_flags, ImGuiTabBarFlags_NoCloseWithMiddleMouseButton); + if ((tab_bar_flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) + tab_bar_flags |= ImGuiTabBarFlags_FittingPolicyDefault_; + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", (unsigned int*)&tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", (unsigned int*)&tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); + + // Tab Bar + const char* names[4] = { "Artichoke", "Beetroot", "Celery", "Daikon" }; + static bool opened[4] = { true, true, true, true }; // Persistent user state + for (int n = 0; n < IM_ARRAYSIZE(opened); n++) + { + if (n > 0) { ImGui::SameLine(); } + ImGui::Checkbox(names[n], &opened[n]); + } + + // Passing a bool* to BeginTabItem() is similar to passing one to Begin(): + // the underlying bool will be set to false when the tab is closed. + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + for (int n = 0; n < IM_ARRAYSIZE(opened); n++) + if (opened[n] && ImGui::BeginTabItem(names[n], &opened[n], ImGuiTabItemFlags_None)) + { + ImGui::Text("This is the %s tab!", names[n]); + if (n & 1) + ImGui::Text("I am an odd tab."); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("TabItemButton & Leading/Trailing flags")) + { + static ImVector active_tabs; + static int next_tab_id = 0; + if (next_tab_id == 0) // Initialize with some default tabs + for (int i = 0; i < 3; i++) + active_tabs.push_back(next_tab_id++); + + // TabItemButton() and Leading/Trailing flags are distinct features which we will demo together. + // (It is possible to submit regular tabs with Leading/Trailing flags, or TabItemButton tabs without Leading/Trailing flags... + // but they tend to make more sense together) + static bool show_leading_button = true; + static bool show_trailing_button = true; + ImGui::Checkbox("Show Leading TabItemButton()", &show_leading_button); + ImGui::Checkbox("Show Trailing TabItemButton()", &show_trailing_button); + + // Expose some other flags which are useful to showcase how they interact with Leading/Trailing tabs + static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_AutoSelectNewTabs | ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_FittingPolicyResizeDown; + ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", (unsigned int*)&tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", (unsigned int*)&tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); + if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", (unsigned int*)&tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) + tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); + + if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) + { + // Demo a Leading TabItemButton(): click the "?" button to open a menu + if (show_leading_button) + if (ImGui::TabItemButton("?", ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_NoTooltip)) + ImGui::OpenPopup("MyHelpMenu"); + if (ImGui::BeginPopup("MyHelpMenu")) + { + ImGui::Selectable("Hello!"); + ImGui::EndPopup(); + } + + // Demo Trailing Tabs: click the "+" button to add a new tab (in your app you may want to use a font icon instead of the "+") + // Note that we submit it before the regular tabs, but because of the ImGuiTabItemFlags_Trailing flag it will always appear at the end. + if (show_trailing_button) + if (ImGui::TabItemButton("+", ImGuiTabItemFlags_Trailing | ImGuiTabItemFlags_NoTooltip)) + active_tabs.push_back(next_tab_id++); // Add new tab + + // Submit our regular tabs + for (int n = 0; n < active_tabs.Size; ) + { + bool open = true; + char name[16]; + snprintf(name, IM_ARRAYSIZE(name), "%04d", active_tabs[n]); + if (ImGui::BeginTabItem(name, &open, ImGuiTabItemFlags_None)) + { + ImGui::Text("This is the %s tab!", name); + ImGui::EndTabItem(); + } + + if (!open) + active_tabs.erase(active_tabs.Data + n); + else + n++; + } + + ImGui::EndTabBar(); + } + ImGui::Separator(); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Groups")) + { + HelpMarker( + "BeginGroup() basically locks the horizontal position for new line. " + "EndGroup() bundles the whole group so that you can use \"item\" functions such as " + "IsItemHovered()/IsItemActive() or SameLine() etc. on the whole group."); + ImGui::BeginGroup(); + { + ImGui::BeginGroup(); + ImGui::Button("AAA"); + ImGui::SameLine(); + ImGui::Button("BBB"); + ImGui::SameLine(); + ImGui::BeginGroup(); + ImGui::Button("CCC"); + ImGui::Button("DDD"); + ImGui::EndGroup(); + ImGui::SameLine(); + ImGui::Button("EEE"); + ImGui::EndGroup(); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("First group hovered"); + } + // Capture the group size and create widgets using the same size + ImVec2 menu_size = ImGui::GetItemRectSize(); + const float values[5] = { 0.5f, 0.20f, 0.80f, 0.60f, 0.25f }; + ImGui::PlotHistogram("##values", values, IM_ARRAYSIZE(values), 0, NULL, 0.0f, 1.0f, menu_size); + + ImGui::Button("ACTION", ImVec2((menu_size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, menu_size.y)); + ImGui::SameLine(); + ImGui::Button("REACTION", ImVec2((menu_size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, menu_size.y)); + ImGui::EndGroup(); + ImGui::SameLine(); + + ImGui::Button("LEVERAGE\nBUZZWORD", menu_size); + ImGui::SameLine(); + + if (ImGui::ListBoxHeader("List", menu_size)) + { + ImGui::Selectable("Selected", true); + ImGui::Selectable("Not Selected", false); + ImGui::ListBoxFooter(); + } + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Text Baseline Alignment")) + { + { + ImGui::BulletText("Text baseline:"); + ImGui::SameLine(); HelpMarker( + "This is testing the vertical alignment that gets applied on text to keep it aligned with widgets. " + "Lines only composed of text or \"small\" widgets use less vertical space than lines with framed widgets."); + ImGui::Indent(); + + ImGui::Text("KO Blahblah"); ImGui::SameLine(); + ImGui::Button("Some framed item"); ImGui::SameLine(); + HelpMarker("Baseline of button will look misaligned with text.."); + + // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. + // (because we don't know what's coming after the Text() statement, we need to move the text baseline + // down by FramePadding.y ahead of time) + ImGui::AlignTextToFramePadding(); + ImGui::Text("OK Blahblah"); ImGui::SameLine(); + ImGui::Button("Some framed item"); ImGui::SameLine(); + HelpMarker("We call AlignTextToFramePadding() to vertically align the text baseline by +FramePadding.y"); + + // SmallButton() uses the same vertical padding as Text + ImGui::Button("TEST##1"); ImGui::SameLine(); + ImGui::Text("TEST"); ImGui::SameLine(); + ImGui::SmallButton("TEST##2"); + + // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. + ImGui::AlignTextToFramePadding(); + ImGui::Text("Text aligned to framed item"); ImGui::SameLine(); + ImGui::Button("Item##1"); ImGui::SameLine(); + ImGui::Text("Item"); ImGui::SameLine(); + ImGui::SmallButton("Item##2"); ImGui::SameLine(); + ImGui::Button("Item##3"); + + ImGui::Unindent(); + } + + ImGui::Spacing(); + + { + ImGui::BulletText("Multi-line text:"); + ImGui::Indent(); + ImGui::Text("One\nTwo\nThree"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + + ImGui::Text("Banana"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("One\nTwo\nThree"); + + ImGui::Button("HOP##1"); ImGui::SameLine(); + ImGui::Text("Banana"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + + ImGui::Button("HOP##2"); ImGui::SameLine(); + ImGui::Text("Hello\nWorld"); ImGui::SameLine(); + ImGui::Text("Banana"); + ImGui::Unindent(); + } + + ImGui::Spacing(); + + { + ImGui::BulletText("Misc items:"); + ImGui::Indent(); + + // SmallButton() sets FramePadding to zero. Text baseline is aligned to match baseline of previous Button. + ImGui::Button("80x80", ImVec2(80, 80)); + ImGui::SameLine(); + ImGui::Button("50x50", ImVec2(50, 50)); + ImGui::SameLine(); + ImGui::Button("Button()"); + ImGui::SameLine(); + ImGui::SmallButton("SmallButton()"); + + // Tree + const float spacing = ImGui::GetStyle().ItemInnerSpacing.x; + ImGui::Button("Button##1"); + ImGui::SameLine(0.0f, spacing); + if (ImGui::TreeNode("Node##1")) + { + // Placeholder tree data + for (int i = 0; i < 6; i++) + ImGui::BulletText("Item %d..", i); + ImGui::TreePop(); + } + + // Vertically align text node a bit lower so it'll be vertically centered with upcoming widget. + // Otherwise you can use SmallButton() (smaller fit). + ImGui::AlignTextToFramePadding(); + + // Common mistake to avoid: if we want to SameLine after TreeNode we need to do it before we add + // other contents below the node. + bool node_open = ImGui::TreeNode("Node##2"); + ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##2"); + if (node_open) + { + // Placeholder tree data + for (int i = 0; i < 6; i++) + ImGui::BulletText("Item %d..", i); + ImGui::TreePop(); + } + + // Bullet + ImGui::Button("Button##3"); + ImGui::SameLine(0.0f, spacing); + ImGui::BulletText("Bullet text"); + + ImGui::AlignTextToFramePadding(); + ImGui::BulletText("Node"); + ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##4"); + ImGui::Unindent(); + } + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Scrolling")) + { + // Vertical scroll functions + HelpMarker("Use SetScrollHereY() or SetScrollFromPosY() to scroll to a given vertical position."); + + static int track_item = 50; + static bool enable_track = true; + static bool enable_extra_decorations = false; + static float scroll_to_off_px = 0.0f; + static float scroll_to_pos_px = 200.0f; + + ImGui::Checkbox("Decoration", &enable_extra_decorations); + + ImGui::Checkbox("Track", &enable_track); + ImGui::PushItemWidth(100); + ImGui::SameLine(140); enable_track |= ImGui::DragInt("##item", &track_item, 0.25f, 0, 99, "Item = %d"); + + bool scroll_to_off = ImGui::Button("Scroll Offset"); + ImGui::SameLine(140); scroll_to_off |= ImGui::DragFloat("##off", &scroll_to_off_px, 1.00f, 0, FLT_MAX, "+%.0f px"); + + bool scroll_to_pos = ImGui::Button("Scroll To Pos"); + ImGui::SameLine(140); scroll_to_pos |= ImGui::DragFloat("##pos", &scroll_to_pos_px, 1.00f, -10, FLT_MAX, "X/Y = %.0f px"); + ImGui::PopItemWidth(); + + if (scroll_to_off || scroll_to_pos) + enable_track = false; + + ImGuiStyle& style = ImGui::GetStyle(); + float child_w = (ImGui::GetContentRegionAvail().x - 4 * style.ItemSpacing.x) / 5; + if (child_w < 1.0f) + child_w = 1.0f; + ImGui::PushID("##VerticalScrolling"); + for (int i = 0; i < 5; i++) + { + if (i > 0) ImGui::SameLine(); + ImGui::BeginGroup(); + const char* names[] = { "Top", "25%", "Center", "75%", "Bottom" }; + ImGui::TextUnformatted(names[i]); + + const ImGuiWindowFlags child_flags = enable_extra_decorations ? ImGuiWindowFlags_MenuBar : 0; + const ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); + const bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(child_w, 200.0f), true, child_flags); + if (ImGui::BeginMenuBar()) + { + ImGui::TextUnformatted("abc"); + ImGui::EndMenuBar(); + } + if (scroll_to_off) + ImGui::SetScrollY(scroll_to_off_px); + if (scroll_to_pos) + ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + scroll_to_pos_px, i * 0.25f); + if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items + { + for (int item = 0; item < 100; item++) + { + if (enable_track && item == track_item) + { + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); + ImGui::SetScrollHereY(i * 0.25f); // 0.0f:top, 0.5f:center, 1.0f:bottom + } + else + { + ImGui::Text("Item %d", item); + } + } + } + float scroll_y = ImGui::GetScrollY(); + float scroll_max_y = ImGui::GetScrollMaxY(); + ImGui::EndChild(); + ImGui::Text("%.0f/%.0f", scroll_y, scroll_max_y); + ImGui::EndGroup(); + } + ImGui::PopID(); + + // Horizontal scroll functions + ImGui::Spacing(); + HelpMarker( + "Use SetScrollHereX() or SetScrollFromPosX() to scroll to a given horizontal position.\n\n" + "Because the clipping rectangle of most window hides half worth of WindowPadding on the " + "left/right, using SetScrollFromPosX(+1) will usually result in clipped text whereas the " + "equivalent SetScrollFromPosY(+1) wouldn't."); + ImGui::PushID("##HorizontalScrolling"); + for (int i = 0; i < 5; i++) + { + float child_height = ImGui::GetTextLineHeight() + style.ScrollbarSize + style.WindowPadding.y * 2.0f; + ImGuiWindowFlags child_flags = ImGuiWindowFlags_HorizontalScrollbar | (enable_extra_decorations ? ImGuiWindowFlags_AlwaysVerticalScrollbar : 0); + ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); + bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(-100, child_height), true, child_flags); + if (scroll_to_off) + ImGui::SetScrollX(scroll_to_off_px); + if (scroll_to_pos) + ImGui::SetScrollFromPosX(ImGui::GetCursorStartPos().x + scroll_to_pos_px, i * 0.25f); + if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items + { + for (int item = 0; item < 100; item++) + { + if (enable_track && item == track_item) + { + ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); + ImGui::SetScrollHereX(i * 0.25f); // 0.0f:left, 0.5f:center, 1.0f:right + } + else + { + ImGui::Text("Item %d", item); + } + ImGui::SameLine(); + } + } + float scroll_x = ImGui::GetScrollX(); + float scroll_max_x = ImGui::GetScrollMaxX(); + ImGui::EndChild(); + ImGui::SameLine(); + const char* names[] = { "Left", "25%", "Center", "75%", "Right" }; + ImGui::Text("%s\n%.0f/%.0f", names[i], scroll_x, scroll_max_x); + ImGui::Spacing(); + } + ImGui::PopID(); + + // Miscellaneous Horizontal Scrolling Demo + HelpMarker( + "Horizontal scrolling for a window is enabled via the ImGuiWindowFlags_HorizontalScrollbar flag.\n\n" + "You may want to also explicitly specify content width by using SetNextWindowContentWidth() before Begin()."); + static int lines = 7; + ImGui::SliderInt("Lines", &lines, 1, 15); + ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 3.0f); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2.0f, 1.0f)); + ImVec2 scrolling_child_size = ImVec2(0, ImGui::GetFrameHeightWithSpacing() * 7 + 30); + ImGui::BeginChild("scrolling", scrolling_child_size, true, ImGuiWindowFlags_HorizontalScrollbar); + for (int line = 0; line < lines; line++) + { + // Display random stuff. For the sake of this trivial demo we are using basic Button() + SameLine() + // If you want to create your own time line for a real application you may be better off manipulating + // the cursor position yourself, aka using SetCursorPos/SetCursorScreenPos to position the widgets + // yourself. You may also want to use the lower-level ImDrawList API. + int num_buttons = 10 + ((line & 1) ? line * 9 : line * 3); + for (int n = 0; n < num_buttons; n++) + { + if (n > 0) ImGui::SameLine(); + ImGui::PushID(n + line * 1000); + char num_buf[16]; + sprintf(num_buf, "%d", n); + const char* label = (!(n % 15)) ? "FizzBuzz" : (!(n % 3)) ? "Fizz" : (!(n % 5)) ? "Buzz" : num_buf; + float hue = n * 0.05f; + ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(hue, 0.6f, 0.6f)); + ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(hue, 0.7f, 0.7f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(hue, 0.8f, 0.8f)); + ImGui::Button(label, ImVec2(40.0f + sinf((float)(line + n)) * 20.0f, 0.0f)); + ImGui::PopStyleColor(3); + ImGui::PopID(); + } + } + float scroll_x = ImGui::GetScrollX(); + float scroll_max_x = ImGui::GetScrollMaxX(); + ImGui::EndChild(); + ImGui::PopStyleVar(2); + float scroll_x_delta = 0.0f; + ImGui::SmallButton("<<"); + if (ImGui::IsItemActive()) + scroll_x_delta = -ImGui::GetIO().DeltaTime * 1000.0f; + ImGui::SameLine(); + ImGui::Text("Scroll from code"); ImGui::SameLine(); + ImGui::SmallButton(">>"); + if (ImGui::IsItemActive()) + scroll_x_delta = +ImGui::GetIO().DeltaTime * 1000.0f; + ImGui::SameLine(); + ImGui::Text("%.0f/%.0f", scroll_x, scroll_max_x); + if (scroll_x_delta != 0.0f) + { + // Demonstrate a trick: you can use Begin to set yourself in the context of another window + // (here we are already out of your child window) + ImGui::BeginChild("scrolling"); + ImGui::SetScrollX(ImGui::GetScrollX() + scroll_x_delta); + ImGui::EndChild(); + } + ImGui::Spacing(); + + static bool show_horizontal_contents_size_demo_window = false; + ImGui::Checkbox("Show Horizontal contents size demo window", &show_horizontal_contents_size_demo_window); + + if (show_horizontal_contents_size_demo_window) + { + static bool show_h_scrollbar = true; + static bool show_button = true; + static bool show_tree_nodes = true; + static bool show_text_wrapped = false; + static bool show_columns = true; + static bool show_tab_bar = true; + static bool show_child = false; + static bool explicit_content_size = false; + static float contents_size_x = 300.0f; + if (explicit_content_size) + ImGui::SetNextWindowContentSize(ImVec2(contents_size_x, 0.0f)); + ImGui::Begin("Horizontal contents size demo window", &show_horizontal_contents_size_demo_window, show_h_scrollbar ? ImGuiWindowFlags_HorizontalScrollbar : 0); + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(2, 0)); + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 0)); + HelpMarker("Test of different widgets react and impact the work rectangle growing when horizontal scrolling is enabled.\n\nUse 'Metrics->Tools->Show windows rectangles' to visualize rectangles."); + ImGui::Checkbox("H-scrollbar", &show_h_scrollbar); + ImGui::Checkbox("Button", &show_button); // Will grow contents size (unless explicitly overwritten) + ImGui::Checkbox("Tree nodes", &show_tree_nodes); // Will grow contents size and display highlight over full width + ImGui::Checkbox("Text wrapped", &show_text_wrapped);// Will grow and use contents size + ImGui::Checkbox("Columns", &show_columns); // Will use contents size + ImGui::Checkbox("Tab bar", &show_tab_bar); // Will use contents size + ImGui::Checkbox("Child", &show_child); // Will grow and use contents size + ImGui::Checkbox("Explicit content size", &explicit_content_size); + ImGui::Text("Scroll %.1f/%.1f %.1f/%.1f", ImGui::GetScrollX(), ImGui::GetScrollMaxX(), ImGui::GetScrollY(), ImGui::GetScrollMaxY()); + if (explicit_content_size) + { + ImGui::SameLine(); + ImGui::SetNextItemWidth(100); + ImGui::DragFloat("##csx", &contents_size_x); + ImVec2 p = ImGui::GetCursorScreenPos(); + ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + 10, p.y + 10), IM_COL32_WHITE); + ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(p.x + contents_size_x - 10, p.y), ImVec2(p.x + contents_size_x, p.y + 10), IM_COL32_WHITE); + ImGui::Dummy(ImVec2(0, 10)); + } + ImGui::PopStyleVar(2); + ImGui::Separator(); + if (show_button) + { + ImGui::Button("this is a 300-wide button", ImVec2(300, 0)); + } + if (show_tree_nodes) + { + bool open = true; + if (ImGui::TreeNode("this is a tree node")) + { + if (ImGui::TreeNode("another one of those tree node...")) + { + ImGui::Text("Some tree contents"); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + ImGui::CollapsingHeader("CollapsingHeader", &open); + } + if (show_text_wrapped) + { + ImGui::TextWrapped("This text should automatically wrap on the edge of the work rectangle."); + } + if (show_columns) + { + ImGui::Columns(4); + for (int n = 0; n < 4; n++) + { + ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); + ImGui::NextColumn(); + } + ImGui::Columns(1); + } + if (show_tab_bar && ImGui::BeginTabBar("Hello")) + { + if (ImGui::BeginTabItem("OneOneOne")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("TwoTwoTwo")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("ThreeThreeThree")) { ImGui::EndTabItem(); } + if (ImGui::BeginTabItem("FourFourFour")) { ImGui::EndTabItem(); } + ImGui::EndTabBar(); + } + if (show_child) + { + ImGui::BeginChild("child", ImVec2(0, 0), true); + ImGui::EndChild(); + } + ImGui::End(); + } + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Clipping")) + { + static ImVec2 menu_size(100.0f, 100.0f); + static ImVec2 offset(30.0f, 30.0f); + ImGui::DragFloat2("size", (float*)&menu_size, 0.5f, 1.0f, 200.0f, "%.0f"); + ImGui::TextWrapped("(Click and drag to scroll)"); + + for (int n = 0; n < 3; n++) + { + if (n > 0) + ImGui::SameLine(); + ImGui::PushID(n); + ImGui::BeginGroup(); // Lock X position + + ImGui::InvisibleButton("##empty", menu_size); + if (ImGui::IsItemActive() && ImGui::IsMouseDragging(ImGuiMouseButton_Left)) + { + offset.x += ImGui::GetIO().MouseDelta.x; + offset.y += ImGui::GetIO().MouseDelta.y; + } + const ImVec2 p0 = ImGui::GetItemRectMin(); + const ImVec2 p1 = ImGui::GetItemRectMax(); + const char* text_str = "Line 1 hello\nLine 2 clip me!"; + const ImVec2 text_pos = ImVec2(p0.x + offset.x, p0.y + offset.y); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + + switch (n) + { + case 0: + HelpMarker( + "Using ImGui::PushClipRect():\n" + "Will alter ImGui hit-testing logic + ImDrawList rendering.\n" + "(use this if you want your clipping rectangle to affect interactions)"); + ImGui::PushClipRect(p0, p1, true); + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); + ImGui::PopClipRect(); + break; + case 1: + HelpMarker( + "Using ImDrawList::PushClipRect():\n" + "Will alter ImDrawList rendering only.\n" + "(use this as a shortcut if you are only using ImDrawList calls)"); + draw_list->PushClipRect(p0, p1, true); + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); + draw_list->PopClipRect(); + break; + case 2: + HelpMarker( + "Using ImDrawList::AddText() with a fine ClipRect:\n" + "Will alter only this specific ImDrawList::AddText() rendering.\n" + "(this is often used internally to avoid altering the clipping rectangle and minimize draw calls)"); + ImVec4 clip_rect(p0.x, p0.y, p1.x, p1.y); // AddText() takes a ImVec4* here so let's convert. + draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); + draw_list->AddText(ImGui::GetFont(), ImGui::GetFontSize(), text_pos, IM_COL32_WHITE, text_str, NULL, 0.0f, &clip_rect); + break; + } + ImGui::EndGroup(); + ImGui::PopID(); + } + + ImGui::TreePop(); + } +} + +static void ShowDemoWindowPopups() +{ + if (!ImGui::CollapsingHeader("Popups & Modal windows")) + return; + + // The properties of popups windows are: + // - They block normal mouse hovering detection outside them. (*) + // - Unless modal, they can be closed by clicking anywhere outside them, or by pressing ESCAPE. + // - Their visibility state (~bool) is held internally by Dear ImGui instead of being held by the programmer as + // we are used to with regular Begin() calls. User can manipulate the visibility state by calling OpenPopup(). + // (*) One can use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup) to bypass it and detect hovering even + // when normally blocked by a popup. + // Those three properties are connected. The library needs to hold their visibility state BECAUSE it can close + // popups at any time. + + // Typical use for regular windows: + // bool my_tool_is_active = false; if (ImGui::Button("Open")) my_tool_is_active = true; [...] if (my_tool_is_active) Begin("My Tool", &my_tool_is_active) { [...] } End(); + // Typical use for popups: + // if (ImGui::Button("Open")) ImGui::OpenPopup("MyPopup"); if (ImGui::BeginPopup("MyPopup") { [...] EndPopup(); } + + // With popups we have to go through a library call (here OpenPopup) to manipulate the visibility state. + // This may be a bit confusing at first but it should quickly make sense. Follow on the examples below. + + if (ImGui::TreeNode("Popups")) + { + ImGui::TextWrapped( + "When a popup is active, it inhibits interacting with windows that are behind the popup. " + "Clicking outside the popup closes it."); + + static int selected_fish = -1; + const char* names[] = { "Bream", "Haddock", "Mackerel", "Pollock", "Tilefish" }; + static bool toggles[] = { true, false, false, false, false }; + + // Simple selection popup (if you want to show the current selection inside the Button itself, + // you may want to build a string using the "###" operator to preserve a constant ID with a variable label) + if (ImGui::Button("Select..")) + ImGui::OpenPopup("my_select_popup"); + ImGui::SameLine(); + ImGui::TextUnformatted(selected_fish == -1 ? "" : names[selected_fish]); + if (ImGui::BeginPopup("my_select_popup")) + { + ImGui::Text("Aquarium"); + ImGui::Separator(); + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + if (ImGui::Selectable(names[i])) + selected_fish = i; + ImGui::EndPopup(); + } + + // Showing a menu with toggles + if (ImGui::Button("Toggle..")) + ImGui::OpenPopup("my_toggle_popup"); + if (ImGui::BeginPopup("my_toggle_popup")) + { + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + ImGui::MenuItem(names[i], "", &toggles[i]); + if (ImGui::BeginMenu("Sub-menu")) + { + ImGui::MenuItem("Click me"); + ImGui::EndMenu(); + } + + ImGui::Separator(); + ImGui::Text("Tooltip here"); + if (ImGui::IsItemHovered()) + ImGui::SetTooltip("I am a tooltip over a popup"); + + if (ImGui::Button("Stacked Popup")) + ImGui::OpenPopup("another popup"); + if (ImGui::BeginPopup("another popup")) + { + for (int i = 0; i < IM_ARRAYSIZE(names); i++) + ImGui::MenuItem(names[i], "", &toggles[i]); + if (ImGui::BeginMenu("Sub-menu")) + { + ImGui::MenuItem("Click me"); + if (ImGui::Button("Stacked Popup")) + ImGui::OpenPopup("another popup"); + if (ImGui::BeginPopup("another popup")) + { + ImGui::Text("I am the last one here."); + ImGui::EndPopup(); + } + ImGui::EndMenu(); + } + ImGui::EndPopup(); + } + ImGui::EndPopup(); + } + + // Call the more complete ShowExampleMenuFile which we use in various places of this demo + if (ImGui::Button("File Menu..")) + ImGui::OpenPopup("my_file_popup"); + if (ImGui::BeginPopup("my_file_popup")) + { + ShowExampleMenuFile(); + ImGui::EndPopup(); + } + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Context menus")) + { + // BeginPopupContextItem() is a helper to provide common/simple popup behavior of essentially doing: + // if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) + // OpenPopup(id); + // return BeginPopup(id); + // For more advanced uses you may want to replicate and customize this code. + // See details in BeginPopupContextItem(). + static float value = 0.5f; + ImGui::Text("Value = %.3f (<-- right-click here)", value); + if (ImGui::BeginPopupContextItem("item context menu")) + { + if (ImGui::Selectable("Set to zero")) value = 0.0f; + if (ImGui::Selectable("Set to PI")) value = 3.1415f; + ImGui::SetNextItemWidth(-1); + ImGui::DragFloat("##Value", &value, 0.1f, 0.0f, 0.0f); + ImGui::EndPopup(); + } + + // We can also use OpenPopupOnItemClick() which is the same as BeginPopupContextItem() but without the + // Begin() call. So here we will make it that clicking on the text field with the right mouse button (1) + // will toggle the visibility of the popup above. + ImGui::Text("(You can also right-click me to open the same popup as above.)"); + ImGui::OpenPopupOnItemClick("item context menu", 1); + + // When used after an item that has an ID (e.g.Button), we can skip providing an ID to BeginPopupContextItem(). + // BeginPopupContextItem() will use the last item ID as the popup ID. + // In addition here, we want to include your editable label inside the button label. + // We use the ### operator to override the ID (read FAQ about ID for details) + static char name[32] = "Label1"; + char buf[64]; + sprintf(buf, "Button: %s###Button", name); // ### operator override ID ignoring the preceding label + ImGui::Button(buf); + if (ImGui::BeginPopupContextItem()) + { + ImGui::Text("Edit name:"); + ImGui::InputText("##edit", name, IM_ARRAYSIZE(name)); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + ImGui::SameLine(); ImGui::Text("(<-- right-click here)"); + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Modals")) + { + ImGui::TextWrapped("Modal windows are like popups but the user cannot close them by clicking outside."); + + if (ImGui::Button("Delete..")) + ImGui::OpenPopup("Delete?"); + + // Always center this window when appearing + ImVec2 center(ImGui::GetIO().DisplaySize.x * 0.5f, ImGui::GetIO().DisplaySize.y * 0.5f); + ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f)); + + if (ImGui::BeginPopupModal("Delete?", NULL, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::Text("All those beautiful files will be deleted.\nThis operation cannot be undone!\n\n"); + ImGui::Separator(); + + //static int unused_i = 0; + //ImGui::Combo("Combo", &unused_i, "Delete\0Delete harder\0"); + + static bool dont_ask_me_next_time = false; + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); + ImGui::Checkbox("Don't ask me next time", &dont_ask_me_next_time); + ImGui::PopStyleVar(); + + if (ImGui::Button("OK", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } + ImGui::SetItemDefaultFocus(); + ImGui::SameLine(); + if (ImGui::Button("Cancel", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } + ImGui::EndPopup(); + } + + if (ImGui::Button("Stacked modals..")) + ImGui::OpenPopup("Stacked 1"); + if (ImGui::BeginPopupModal("Stacked 1", NULL, ImGuiWindowFlags_MenuBar)) + { + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + if (ImGui::MenuItem("Some menu item")) {} + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + ImGui::Text("Hello from Stacked The First\nUsing style.Colors[ImGuiCol_ModalWindowDimBg] behind it."); + + // Testing behavior of widgets stacking their own regular popups over the modal. + static int item = 1; + static float color[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; + ImGui::Combo("Combo", &item, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); + ImGui::ColorEdit4("color", color); + + if (ImGui::Button("Add another modal..")) + ImGui::OpenPopup("Stacked 2"); + + // Also demonstrate passing a bool* to BeginPopupModal(), this will create a regular close button which + // will close the popup. Note that the visibility state of popups is owned by imgui, so the input value + // of the bool actually doesn't matter here. + bool unused_open = true; + if (ImGui::BeginPopupModal("Stacked 2", &unused_open)) + { + ImGui::Text("Hello from Stacked The Second!"); + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + + if (ImGui::Button("Close")) + ImGui::CloseCurrentPopup(); + ImGui::EndPopup(); + } + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Menus inside a regular window")) + { + ImGui::TextWrapped("Below we are testing adding menu items to a regular window. It's rather unusual but should work!"); + ImGui::Separator(); + + // Note: As a quirk in this very specific example, we want to differentiate the parent of this menu from the + // parent of the various popup menus above. To do so we are encloding the items in a PushID()/PopID() block + // to make them two different menusets. If we don't, opening any popup above and hovering our menu here would + // open it. This is because once a menu is active, we allow to switch to a sibling menu by just hovering on it, + // which is the desired behavior for regular menus. + ImGui::PushID("foo"); + ImGui::MenuItem("Menu item", "CTRL+M"); + if (ImGui::BeginMenu("Menu inside a regular window")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::PopID(); + ImGui::Separator(); + ImGui::TreePop(); + } +} + +static void ShowDemoWindowColumns() +{ + if (!ImGui::CollapsingHeader("Columns")) + return; + + ImGui::PushID("Columns"); + + static bool disable_indent = false; + ImGui::Checkbox("Disable tree indentation", &disable_indent); + ImGui::SameLine(); + HelpMarker("Disable the indenting of tree nodes so demo columns can use the full window width."); + if (disable_indent) + ImGui::PushStyleVar(ImGuiStyleVar_IndentSpacing, 0.0f); + + // Basic columns + if (ImGui::TreeNode("Basic")) + { + ImGui::Text("Without border:"); + ImGui::Columns(3, "mycolumns3", false); // 3-ways, no border + ImGui::Separator(); + for (int n = 0; n < 14; n++) + { + char label[32]; + sprintf(label, "Item %d", n); + if (ImGui::Selectable(label)) {} + //if (ImGui::Button(label, ImVec2(-FLT_MIN,0.0f))) {} + ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::Separator(); + + ImGui::Text("With border:"); + ImGui::Columns(4, "mycolumns"); // 4-ways, with border + ImGui::Separator(); + ImGui::Text("ID"); ImGui::NextColumn(); + ImGui::Text("Name"); ImGui::NextColumn(); + ImGui::Text("Path"); ImGui::NextColumn(); + ImGui::Text("Hovered"); ImGui::NextColumn(); + ImGui::Separator(); + const char* names[3] = { "One", "Two", "Three" }; + const char* paths[3] = { "/path/one", "/path/two", "/path/three" }; + static int selected = -1; + for (int i = 0; i < 3; i++) + { + char label[32]; + sprintf(label, "%04d", i); + if (ImGui::Selectable(label, selected == i, ImGuiSelectableFlags_SpanAllColumns)) + selected = i; + bool hovered = ImGui::IsItemHovered(); + ImGui::NextColumn(); + ImGui::Text(names[i]); ImGui::NextColumn(); + ImGui::Text(paths[i]); ImGui::NextColumn(); + ImGui::Text("%d", hovered); ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Borders")) + { + // NB: Future columns API should allow automatic horizontal borders. + static bool h_borders = true; + static bool v_borders = true; + static int columns_count = 4; + const int lines_count = 3; + ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); + ImGui::DragInt("##columns_count", &columns_count, 0.1f, 2, 10, "%d columns"); + if (columns_count < 2) + columns_count = 2; + ImGui::SameLine(); + ImGui::Checkbox("horizontal", &h_borders); + ImGui::SameLine(); + ImGui::Checkbox("vertical", &v_borders); + ImGui::Columns(columns_count, NULL, v_borders); + for (int i = 0; i < columns_count * lines_count; i++) + { + if (h_borders && ImGui::GetColumnIndex() == 0) + ImGui::Separator(); + ImGui::Text("%c%c%c", 'a' + i, 'a' + i, 'a' + i); + ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); + ImGui::Text("Avail %.2f", ImGui::GetContentRegionAvail().x); + ImGui::Text("Offset %.2f", ImGui::GetColumnOffset()); + ImGui::Text("Long text that is likely to clip"); + ImGui::Button("Button", ImVec2(-FLT_MIN, 0.0f)); + ImGui::NextColumn(); + } + ImGui::Columns(1); + if (h_borders) + ImGui::Separator(); + ImGui::TreePop(); + } + + // Create multiple items in a same cell before switching to next column + if (ImGui::TreeNode("Mixed items")) + { + ImGui::Columns(3, "mixed"); + ImGui::Separator(); + + ImGui::Text("Hello"); + ImGui::Button("Banana"); + ImGui::NextColumn(); + + ImGui::Text("ImGui"); + ImGui::Button("Apple"); + static float foo = 1.0f; + ImGui::InputFloat("red", &foo, 0.05f, 0, "%.3f"); + ImGui::Text("An extra line here."); + ImGui::NextColumn(); + + ImGui::Text("Sailor"); + ImGui::Button("Corniflower"); + static float bar = 1.0f; + ImGui::InputFloat("blue", &bar, 0.05f, 0, "%.3f"); + ImGui::NextColumn(); + + if (ImGui::CollapsingHeader("Category A")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + if (ImGui::CollapsingHeader("Category B")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + if (ImGui::CollapsingHeader("Category C")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + // Word wrapping + if (ImGui::TreeNode("Word-wrapping")) + { + ImGui::Columns(2, "word-wrapping"); + ImGui::Separator(); + ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); + ImGui::TextWrapped("Hello Left"); + ImGui::NextColumn(); + ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); + ImGui::TextWrapped("Hello Right"); + ImGui::Columns(1); + ImGui::Separator(); + ImGui::TreePop(); + } + + // Scrolling columns + /* + if (ImGui::TreeNode("Vertical Scrolling")) + { + ImGui::BeginChild("##header", ImVec2(0, ImGui::GetTextLineHeightWithSpacing()+ImGui::GetStyle().ItemSpacing.y)); + ImGui::Columns(3); + ImGui::Text("ID"); ImGui::NextColumn(); + ImGui::Text("Name"); ImGui::NextColumn(); + ImGui::Text("Path"); ImGui::NextColumn(); + ImGui::Columns(1); + ImGui::Separator(); + ImGui::EndChild(); + ImGui::BeginChild("##scrollingregion", ImVec2(0, 60)); + ImGui::Columns(3); + for (int i = 0; i < 10; i++) + { + ImGui::Text("%04d", i); ImGui::NextColumn(); + ImGui::Text("Foobar"); ImGui::NextColumn(); + ImGui::Text("/path/foobar/%04d/", i); ImGui::NextColumn(); + } + ImGui::Columns(1); + ImGui::EndChild(); + ImGui::TreePop(); + } + */ + + if (ImGui::TreeNode("Horizontal Scrolling")) + { + ImGui::SetNextWindowContentSize(ImVec2(1500.0f, 0.0f)); + ImVec2 child_size = ImVec2(0, ImGui::GetFontSize() * 20.0f); + ImGui::BeginChild("##ScrollingRegion", child_size, false, ImGuiWindowFlags_HorizontalScrollbar); + ImGui::Columns(10); + int ITEMS_COUNT = 2000; + ImGuiListClipper clipper; // Also demonstrate using the clipper for large list + clipper.Begin(ITEMS_COUNT); + while (clipper.Step()) + { + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + for (int j = 0; j < 10; j++) + { + ImGui::Text("Line %d Column %d...", i, j); + ImGui::NextColumn(); + } + } + ImGui::Columns(1); + ImGui::EndChild(); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Tree")) + { + ImGui::Columns(2, "tree", true); + for (int x = 0; x < 3; x++) + { + bool open1 = ImGui::TreeNode((void*)(intptr_t)x, "Node%d", x); + ImGui::NextColumn(); + ImGui::Text("Node contents"); + ImGui::NextColumn(); + if (open1) + { + for (int y = 0; y < 3; y++) + { + bool open2 = ImGui::TreeNode((void*)(intptr_t)y, "Node%d.%d", x, y); + ImGui::NextColumn(); + ImGui::Text("Node contents"); + if (open2) + { + ImGui::Text("Even more contents"); + if (ImGui::TreeNode("Tree in column")) + { + ImGui::Text("The quick brown fox jumps over the lazy dog"); + ImGui::TreePop(); + } + } + ImGui::NextColumn(); + if (open2) + ImGui::TreePop(); + } + ImGui::TreePop(); + } + } + ImGui::Columns(1); + ImGui::TreePop(); + } + + if (disable_indent) + ImGui::PopStyleVar(); + ImGui::PopID(); +} + +static void ShowDemoWindowMisc() +{ + if (ImGui::CollapsingHeader("Filtering")) + { + // Helper class to easy setup a text filter. + // You may want to implement a more feature-full filtering scheme in your own application. + static ImGuiTextFilter filter; + ImGui::Text("Filter usage:\n" + " \"\" display all lines\n" + " \"xxx\" display lines containing \"xxx\"\n" + " \"xxx,yyy\" display lines containing \"xxx\" or \"yyy\"\n" + " \"-xxx\" hide lines containing \"xxx\""); + filter.Draw(); + const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" }; + for (int i = 0; i < IM_ARRAYSIZE(lines); i++) + if (filter.PassFilter(lines[i])) + ImGui::BulletText("%s", lines[i]); + } + + if (ImGui::CollapsingHeader("Inputs, Navigation & Focus")) + { + ImGuiIO& io = ImGui::GetIO(); + + // Display ImGuiIO output flags + ImGui::Text("WantCaptureMouse: %d", io.WantCaptureMouse); + ImGui::Text("WantCaptureKeyboard: %d", io.WantCaptureKeyboard); + ImGui::Text("WantTextInput: %d", io.WantTextInput); + ImGui::Text("WantSetMousePos: %d", io.WantSetMousePos); + ImGui::Text("NavActive: %d, NavVisible: %d", io.NavActive, io.NavVisible); + + // Display Keyboard/Mouse state + if (ImGui::TreeNode("Keyboard, Mouse & Navigation State")) + { + if (ImGui::IsMousePosValid()) + ImGui::Text("Mouse pos: (%g, %g)", io.MousePos.x, io.MousePos.y); + else + ImGui::Text("Mouse pos: "); + ImGui::Text("Mouse delta: (%g, %g)", io.MouseDelta.x, io.MouseDelta.y); + ImGui::Text("Mouse down:"); for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (io.MouseDownDuration[i] >= 0.0f) { ImGui::SameLine(); ImGui::Text("b%d (%.02f secs)", i, io.MouseDownDuration[i]); } + ImGui::Text("Mouse clicked:"); for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (ImGui::IsMouseClicked(i)) { ImGui::SameLine(); ImGui::Text("b%d", i); } + ImGui::Text("Mouse dblclick:"); for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (ImGui::IsMouseDoubleClicked(i)) { ImGui::SameLine(); ImGui::Text("b%d", i); } + ImGui::Text("Mouse released:"); for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (ImGui::IsMouseReleased(i)) { ImGui::SameLine(); ImGui::Text("b%d", i); } + ImGui::Text("Mouse wheel: %.1f", io.MouseWheel); + + ImGui::Text("Keys down:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (io.KeysDownDuration[i] >= 0.0f) { ImGui::SameLine(); ImGui::Text("%d (0x%X) (%.02f secs)", i, i, io.KeysDownDuration[i]); } + ImGui::Text("Keys pressed:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyPressed(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X)", i, i); } + ImGui::Text("Keys release:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyReleased(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X)", i, i); } + ImGui::Text("Keys mods: %s%s%s%s", io.KeyCtrl ? "CTRL " : "", io.KeyShift ? "SHIFT " : "", io.KeyAlt ? "ALT " : "", io.KeySuper ? "SUPER " : ""); + ImGui::Text("Chars queue:"); for (int i = 0; i < io.InputQueueCharacters.Size; i++) { ImWchar c = io.InputQueueCharacters[i]; ImGui::SameLine(); ImGui::Text("\'%c\' (0x%04X)", (c > ' ' && c <= 255) ? (char)c : '?', c); } // FIXME: We should convert 'c' to UTF-8 here but the functions are not public. + + ImGui::Text("NavInputs down:"); for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) if (io.NavInputs[i] > 0.0f) { ImGui::SameLine(); ImGui::Text("[%d] %.2f", i, io.NavInputs[i]); } + ImGui::Text("NavInputs pressed:"); for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) if (io.NavInputsDownDuration[i] == 0.0f) { ImGui::SameLine(); ImGui::Text("[%d]", i); } + ImGui::Text("NavInputs duration:"); for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) if (io.NavInputsDownDuration[i] >= 0.0f) { ImGui::SameLine(); ImGui::Text("[%d] %.2f", i, io.NavInputsDownDuration[i]); } + + ImGui::Button("Hovering me sets the\nkeyboard capture flag"); + if (ImGui::IsItemHovered()) + ImGui::CaptureKeyboardFromApp(true); + ImGui::SameLine(); + ImGui::Button("Holding me clears the\nthe keyboard capture flag"); + if (ImGui::IsItemActive()) + ImGui::CaptureKeyboardFromApp(false); + + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Tabbing")) + { + ImGui::Text("Use TAB/SHIFT+TAB to cycle through keyboard editable fields."); + static char buf[32] = "hello"; + ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); + ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); + ImGui::InputText("3", buf, IM_ARRAYSIZE(buf)); + ImGui::PushAllowKeyboardFocus(false); + ImGui::InputText("4 (tab skip)", buf, IM_ARRAYSIZE(buf)); + //ImGui::SameLine(); HelpMarker("Use ImGui::PushAllowKeyboardFocus(bool) to disable tabbing through certain widgets."); + ImGui::PopAllowKeyboardFocus(); + ImGui::InputText("5", buf, IM_ARRAYSIZE(buf)); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Focus from code")) + { + bool focus_1 = ImGui::Button("Focus on 1"); ImGui::SameLine(); + bool focus_2 = ImGui::Button("Focus on 2"); ImGui::SameLine(); + bool focus_3 = ImGui::Button("Focus on 3"); + int has_focus = 0; + static char buf[128] = "click on a button to set focus"; + + if (focus_1) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 1; + + if (focus_2) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 2; + + ImGui::PushAllowKeyboardFocus(false); + if (focus_3) ImGui::SetKeyboardFocusHere(); + ImGui::InputText("3 (tab skip)", buf, IM_ARRAYSIZE(buf)); + if (ImGui::IsItemActive()) has_focus = 3; + ImGui::PopAllowKeyboardFocus(); + + if (has_focus) + ImGui::Text("Item with focus: %d", has_focus); + else + ImGui::Text("Item with focus: "); + + // Use >= 0 parameter to SetKeyboardFocusHere() to focus an upcoming item + static float f3[3] = { 0.0f, 0.0f, 0.0f }; + int focus_ahead = -1; + if (ImGui::Button("Focus on X")) { focus_ahead = 0; } ImGui::SameLine(); + if (ImGui::Button("Focus on Y")) { focus_ahead = 1; } ImGui::SameLine(); + if (ImGui::Button("Focus on Z")) { focus_ahead = 2; } + if (focus_ahead != -1) ImGui::SetKeyboardFocusHere(focus_ahead); + ImGui::SliderFloat3("Float3", &f3[0], 0.0f, 1.0f); + + ImGui::TextWrapped("NB: Cursor & selection are preserved when refocusing last used item in code."); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Dragging")) + { + ImGui::TextWrapped("You can use ImGui::GetMouseDragDelta(0) to query for the dragged amount on any widget."); + for (int button = 0; button < 3; button++) + { + ImGui::Text("IsMouseDragging(%d):", button); + ImGui::Text(" w/ default threshold: %d,", ImGui::IsMouseDragging(button)); + ImGui::Text(" w/ zero threshold: %d,", ImGui::IsMouseDragging(button, 0.0f)); + ImGui::Text(" w/ large threshold: %d,", ImGui::IsMouseDragging(button, 20.0f)); + } + + ImGui::Button("Drag Me"); + if (ImGui::IsItemActive()) + ImGui::GetForegroundDrawList()->AddLine(io.MouseClickedPos[0], io.MousePos, ImGui::GetColorU32(ImGuiCol_Button), 4.0f); // Draw a line between the button and the mouse cursor + + // Drag operations gets "unlocked" when the mouse has moved past a certain threshold + // (the default threshold is stored in io.MouseDragThreshold). You can request a lower or higher + // threshold using the second parameter of IsMouseDragging() and GetMouseDragDelta(). + ImVec2 value_raw = ImGui::GetMouseDragDelta(0, 0.0f); + ImVec2 value_with_lock_threshold = ImGui::GetMouseDragDelta(0); + ImVec2 mouse_delta = io.MouseDelta; + ImGui::Text("GetMouseDragDelta(0):"); + ImGui::Text(" w/ default threshold: (%.1f, %.1f)", value_with_lock_threshold.x, value_with_lock_threshold.y); + ImGui::Text(" w/ zero threshold: (%.1f, %.1f)", value_raw.x, value_raw.y); + ImGui::Text("io.MouseDelta: (%.1f, %.1f)", mouse_delta.x, mouse_delta.y); + ImGui::TreePop(); + } + + if (ImGui::TreeNode("Mouse cursors")) + { + const char* mouse_cursors_names[] = { "Arrow", "TextInput", "ResizeAll", "ResizeNS", "ResizeEW", "ResizeNESW", "ResizeNWSE", "Hand", "NotAllowed" }; + IM_ASSERT(IM_ARRAYSIZE(mouse_cursors_names) == ImGuiMouseCursor_COUNT); + + ImGuiMouseCursor current = ImGui::GetMouseCursor(); + ImGui::Text("Current mouse cursor = %d: %s", current, mouse_cursors_names[current]); + ImGui::Text("Hover to see mouse cursors:"); + ImGui::SameLine(); HelpMarker( + "Your application can render a different mouse cursor based on what ImGui::GetMouseCursor() returns. " + "If software cursor rendering (io.MouseDrawCursor) is set ImGui will draw the right cursor for you, " + "otherwise your backend needs to handle it."); + for (int i = 0; i < ImGuiMouseCursor_COUNT; i++) + { + char label[32]; + sprintf(label, "Mouse cursor %d: %s", i, mouse_cursors_names[i]); + ImGui::Bullet(); ImGui::Selectable(label, false); + if (ImGui::IsItemHovered() || ImGui::IsItemFocused()) + ImGui::SetMouseCursor(i); + } + ImGui::TreePop(); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] About Window / ShowAboutWindow() +// Access from Dear ImGui Demo -> Tools -> About +//----------------------------------------------------------------------------- + +void ImGui::ShowAboutWindow(bool* p_open) +{ + if (!ImGui::Begin("About Dear ImGui", p_open, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::End(); + return; + } + ImGui::Text("Dear ImGui %s", ImGui::GetVersion()); + ImGui::Separator(); + ImGui::Text("By Omar Cornut and all Dear ImGui contributors."); + ImGui::Text("Dear ImGui is licensed under the MIT License, see LICENSE for more information."); + + static bool show_config_info = false; + ImGui::Checkbox("Config/Build Information", &show_config_info); + if (show_config_info) + { + ImGuiIO& io = ImGui::GetIO(); + ImGuiStyle& style = ImGui::GetStyle(); + + bool copy_to_clipboard = ImGui::Button("Copy to clipboard"); + ImVec2 child_size = ImVec2(0, ImGui::GetTextLineHeightWithSpacing() * 18); + ImGui::BeginChildFrame(ImGui::GetID("cfg_infos"), child_size, ImGuiWindowFlags_NoMove); + if (copy_to_clipboard) + { + ImGui::LogToClipboard(); + ImGui::LogText("```\n"); // Back quotes will make text appears without formatting when pasting on GitHub + } + + ImGui::Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); + ImGui::Separator(); + ImGui::Text("sizeof(size_t): %d, sizeof(ImDrawIdx): %d, sizeof(ImDrawVert): %d", (int)sizeof(size_t), (int)sizeof(ImDrawIdx), (int)sizeof(ImDrawVert)); + ImGui::Text("define: __cplusplus=%d", (int)__cplusplus); +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_WIN32_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_WIN32_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_FILE_FUNCTIONS + ImGui::Text("define: IMGUI_DISABLE_FILE_FUNCTIONS"); +#endif +#ifdef IMGUI_DISABLE_DEFAULT_ALLOCATORS + ImGui::Text("define: IMGUI_DISABLE_DEFAULT_ALLOCATORS"); +#endif +#ifdef IMGUI_USE_BGRA_PACKED_COLOR + ImGui::Text("define: IMGUI_USE_BGRA_PACKED_COLOR"); +#endif +#ifdef _WIN32 + ImGui::Text("define: _WIN32"); +#endif +#ifdef _WIN64 + ImGui::Text("define: _WIN64"); +#endif +#ifdef __linux__ + ImGui::Text("define: __linux__"); +#endif +#ifdef __APPLE__ + ImGui::Text("define: __APPLE__"); +#endif +#ifdef _MSC_VER + ImGui::Text("define: _MSC_VER=%d", _MSC_VER); +#endif +#ifdef __MINGW32__ + ImGui::Text("define: __MINGW32__"); +#endif +#ifdef __MINGW64__ + ImGui::Text("define: __MINGW64__"); +#endif +#ifdef __GNUC__ + ImGui::Text("define: __GNUC__=%d", (int)__GNUC__); +#endif +#ifdef __clang_version__ + ImGui::Text("define: __clang_version__=%s", __clang_version__); +#endif + ImGui::Separator(); + ImGui::Text("io.BackendPlatformName: %s", io.BackendPlatformName ? io.BackendPlatformName : "NULL"); + ImGui::Text("io.BackendRendererName: %s", io.BackendRendererName ? io.BackendRendererName : "NULL"); + ImGui::Text("io.ConfigFlags: 0x%08X", io.ConfigFlags); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) ImGui::Text(" NavEnableKeyboard"); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) ImGui::Text(" NavEnableGamepad"); + if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) ImGui::Text(" NavEnableSetMousePos"); + if (io.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard) ImGui::Text(" NavNoCaptureKeyboard"); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) ImGui::Text(" NoMouse"); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) ImGui::Text(" NoMouseCursorChange"); + if (io.MouseDrawCursor) ImGui::Text("io.MouseDrawCursor"); + if (io.ConfigMacOSXBehaviors) ImGui::Text("io.ConfigMacOSXBehaviors"); + if (io.ConfigInputTextCursorBlink) ImGui::Text("io.ConfigInputTextCursorBlink"); + if (io.ConfigWindowsResizeFromEdges) ImGui::Text("io.ConfigWindowsResizeFromEdges"); + if (io.ConfigWindowsMoveFromTitleBarOnly) ImGui::Text("io.ConfigWindowsMoveFromTitleBarOnly"); + if (io.ConfigWindowsMemoryCompactTimer >= 0.0f) ImGui::Text("io.ConfigWindowsMemoryCompactTimer = %.1ff", io.ConfigWindowsMemoryCompactTimer); + ImGui::Text("io.BackendFlags: 0x%08X", io.BackendFlags); + if (io.BackendFlags & ImGuiBackendFlags_HasGamepad) ImGui::Text(" HasGamepad"); + if (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) ImGui::Text(" HasMouseCursors"); + if (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos) ImGui::Text(" HasSetMousePos"); + if (io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) ImGui::Text(" RendererHasVtxOffset"); + ImGui::Separator(); + ImGui::Text("io.Fonts: %d fonts, Flags: 0x%08X, TexSize: %d,%d", io.Fonts->Fonts.Size, io.Fonts->Flags, io.Fonts->TexWidth, io.Fonts->TexHeight); + ImGui::Text("io.DisplaySize: %.2f,%.2f", io.DisplaySize.x, io.DisplaySize.y); + ImGui::Text("io.DisplayFramebufferScale: %.2f,%.2f", io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); + ImGui::Separator(); + ImGui::Text("style.WindowPadding: %.2f,%.2f", style.WindowPadding.x, style.WindowPadding.y); + ImGui::Text("style.WindowBorderSize: %.2f", style.WindowBorderSize); + ImGui::Text("style.FramePadding: %.2f,%.2f", style.FramePadding.x, style.FramePadding.y); + ImGui::Text("style.FrameRounding: %.2f", style.FrameRounding); + ImGui::Text("style.FrameBorderSize: %.2f", style.FrameBorderSize); + ImGui::Text("style.ItemSpacing: %.2f,%.2f", style.ItemSpacing.x, style.ItemSpacing.y); + ImGui::Text("style.ItemInnerSpacing: %.2f,%.2f", style.ItemInnerSpacing.x, style.ItemInnerSpacing.y); + + if (copy_to_clipboard) + { + ImGui::LogText("\n```\n"); + ImGui::LogFinish(); + } + ImGui::EndChildFrame(); + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Style Editor / ShowStyleEditor() +//----------------------------------------------------------------------------- +// - ShowStyleSelector() +// - ShowFontSelector() +// - ShowStyleEditor() +//----------------------------------------------------------------------------- + +// Demo helper function to select among default colors. See ShowStyleEditor() for more advanced options. +// Here we use the simplified Combo() api that packs items into a single literal string. +// Useful for quick combo boxes where the choices are known locally. +bool ImGui::ShowStyleSelector(const char* label) +{ + static int style_idx = -1; + if (ImGui::Combo(label, &style_idx, "Classic\0Dark\0Light\0")) + { + switch (style_idx) + { + case 0: ImGui::StyleColorsClassic(); break; + case 1: ImGui::StyleColorsDark(); break; + case 2: ImGui::StyleColorsLight(); break; + } + return true; + } + return false; +} + +// Demo helper function to select among loaded fonts. +// Here we use the regular BeginCombo()/EndCombo() api which is more the more flexible one. +void ImGui::ShowFontSelector(const char* label) +{ + ImGuiIO& io = ImGui::GetIO(); + ImFont* font_current = ImGui::GetFont(); + if (ImGui::BeginCombo(label, font_current->GetDebugName())) + { + for (int n = 0; n < io.Fonts->Fonts.Size; n++) + { + ImFont* font = io.Fonts->Fonts[n]; + ImGui::PushID((void*)font); + if (ImGui::Selectable(font->GetDebugName(), font == font_current)) + io.FontDefault = font; + ImGui::PopID(); + } + ImGui::EndCombo(); + } + ImGui::SameLine(); + HelpMarker( + "- Load additional fonts with io.Fonts->AddFontFromFileTTF().\n" + "- The font atlas is built when calling io.Fonts->GetTexDataAsXXXX() or io.Fonts->Build().\n" + "- Read FAQ and docs/FONTS.md for more details.\n" + "- If you need to add/remove fonts at runtime (e.g. for DPI change), do it before calling NewFrame()."); +} + +// [Internal] Display details for a single font, called by ShowStyleEditor(). +static void NodeFont(ImFont* font) +{ + ImGuiIO& io = ImGui::GetIO(); + ImGuiStyle& style = ImGui::GetStyle(); + bool font_details_opened = ImGui::TreeNode(font, "Font: \"%s\"\n%.2f px, %d glyphs, %d file(s)", + font->ConfigData ? font->ConfigData[0].Name : "", font->FontSize, font->Glyphs.Size, font->ConfigDataCount); + ImGui::SameLine(); if (ImGui::SmallButton("Set as default")) { io.FontDefault = font; } + if (!font_details_opened) + return; + + ImGui::PushFont(font); + ImGui::Text("The quick brown fox jumps over the lazy dog"); + ImGui::PopFont(); + ImGui::DragFloat("Font scale", &font->Scale, 0.005f, 0.3f, 2.0f, "%.1f"); // Scale only this font + ImGui::SameLine(); HelpMarker( + "Note than the default embedded font is NOT meant to be scaled.\n\n" + "Font are currently rendered into bitmaps at a given size at the time of building the atlas. " + "You may oversample them to get some flexibility with scaling. " + "You can also render at multiple sizes and select which one to use at runtime.\n\n" + "(Glimmer of hope: the atlas system will be rewritten in the future to make scaling more flexible.)"); + ImGui::Text("Ascent: %f, Descent: %f, Height: %f", font->Ascent, font->Descent, font->Ascent - font->Descent); + ImGui::Text("Fallback character: '%c' (U+%04X)", font->FallbackChar, font->FallbackChar); + ImGui::Text("Ellipsis character: '%c' (U+%04X)", font->EllipsisChar, font->EllipsisChar); + const int surface_sqrt = (int)sqrtf((float)font->MetricsTotalSurface); + ImGui::Text("Texture Area: about %d px ~%dx%d px", font->MetricsTotalSurface, surface_sqrt, surface_sqrt); + for (int config_i = 0; config_i < font->ConfigDataCount; config_i++) + if (font->ConfigData) + if (const ImFontConfig* cfg = &font->ConfigData[config_i]) + ImGui::BulletText("Input %d: \'%s\', Oversample: (%d,%d), PixelSnapH: %d, Offset: (%.1f,%.1f)", + config_i, cfg->Name, cfg->OversampleH, cfg->OversampleV, cfg->PixelSnapH, cfg->GlyphOffset.x, cfg->GlyphOffset.y); + if (ImGui::TreeNode("Glyphs", "Glyphs (%d)", font->Glyphs.Size)) + { + // Display all glyphs of the fonts in separate pages of 256 characters + const ImU32 glyph_col = ImGui::GetColorU32(ImGuiCol_Text); + for (unsigned int base = 0; base <= IM_UNICODE_CODEPOINT_MAX; base += 256) + { + // Skip ahead if a large bunch of glyphs are not present in the font (test in chunks of 4k) + // This is only a small optimization to reduce the number of iterations when IM_UNICODE_MAX_CODEPOINT + // is large // (if ImWchar==ImWchar32 we will do at least about 272 queries here) + if (!(base & 4095) && font->IsGlyphRangeUnused(base, base + 4095)) + { + base += 4096 - 256; + continue; + } + + int count = 0; + for (unsigned int n = 0; n < 256; n++) + if (font->FindGlyphNoFallback((ImWchar)(base + n))) + count++; + if (count <= 0) + continue; + if (!ImGui::TreeNode((void*)(intptr_t)base, "U+%04X..U+%04X (%d %s)", base, base + 255, count, count > 1 ? "glyphs" : "glyph")) + continue; + float cell_size = font->FontSize * 1; + float cell_spacing = style.ItemSpacing.y; + ImVec2 base_pos = ImGui::GetCursorScreenPos(); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + for (unsigned int n = 0; n < 256; n++) + { + // We use ImFont::RenderChar as a shortcut because we don't have UTF-8 conversion functions + // available here and thus cannot easily generate a zero-terminated UTF-8 encoded string. + ImVec2 cell_p1(base_pos.x + (n % 16) * (cell_size + cell_spacing), base_pos.y + (n / 16) * (cell_size + cell_spacing)); + ImVec2 cell_p2(cell_p1.x + cell_size, cell_p1.y + cell_size); + const ImFontGlyph* glyph = font->FindGlyphNoFallback((ImWchar)(base + n)); + draw_list->AddRect(cell_p1, cell_p2, glyph ? IM_COL32(255, 255, 255, 100) : IM_COL32(255, 255, 255, 50)); + if (glyph) + font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); + if (glyph && ImGui::IsMouseHoveringRect(cell_p1, cell_p2)) + { + ImGui::BeginTooltip(); + ImGui::Text("Codepoint: U+%04X", base + n); + ImGui::Separator(); + ImGui::Text("Visible: %d", glyph->Visible); + ImGui::Text("AdvanceX: %.1f", glyph->AdvanceX); + ImGui::Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); + ImGui::Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); + ImGui::EndTooltip(); + } + } + ImGui::Dummy(ImVec2((cell_size + cell_spacing) * 16, (cell_size + cell_spacing) * 16)); + ImGui::TreePop(); + } + ImGui::TreePop(); + } + ImGui::TreePop(); +} + +void ImGui::ShowStyleEditor(ImGuiStyle* ref) +{ + // You can pass in a reference ImGuiStyle structure to compare to, revert to and save to + // (without a reference style pointer, we will use one compared locally as a reference) + ImGuiStyle& style = ImGui::GetStyle(); + static ImGuiStyle ref_saved_style; + + // Default to using internal storage as reference + static bool init = true; + if (init && ref == NULL) + ref_saved_style = style; + init = false; + if (ref == NULL) + ref = &ref_saved_style; + + ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.50f); + + if (ImGui::ShowStyleSelector("Colors##Selector")) + ref_saved_style = style; + ImGui::ShowFontSelector("Fonts##Selector"); + + // Simplified Settings (expose floating-pointer border sizes as boolean representing 0.0f or 1.0f) + if (ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f")) + style.GrabRounding = style.FrameRounding; // Make GrabRounding always the same value as FrameRounding + { bool border = (style.WindowBorderSize > 0.0f); if (ImGui::Checkbox("WindowBorder", &border)) { style.WindowBorderSize = border ? 1.0f : 0.0f; } } + ImGui::SameLine(); + { bool border = (style.FrameBorderSize > 0.0f); if (ImGui::Checkbox("FrameBorder", &border)) { style.FrameBorderSize = border ? 1.0f : 0.0f; } } + ImGui::SameLine(); + { bool border = (style.PopupBorderSize > 0.0f); if (ImGui::Checkbox("PopupBorder", &border)) { style.PopupBorderSize = border ? 1.0f : 0.0f; } } + + // Save/Revert button + if (ImGui::Button("Save Ref")) + *ref = ref_saved_style = style; + ImGui::SameLine(); + if (ImGui::Button("Revert Ref")) + style = *ref; + ImGui::SameLine(); + HelpMarker( + "Save/Revert in local non-persistent storage. Default Colors definition are not affected. " + "Use \"Export\" below to save them somewhere."); + + ImGui::Separator(); + + if (ImGui::BeginTabBar("##tabs", ImGuiTabBarFlags_None)) + { + if (ImGui::BeginTabItem("Sizes")) + { + ImGui::Text("Main"); + ImGui::SliderFloat2("WindowPadding", (float*)&style.WindowPadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("FramePadding", (float*)&style.FramePadding, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("ItemSpacing", (float*)&style.ItemSpacing, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("ItemInnerSpacing", (float*)&style.ItemInnerSpacing, 0.0f, 20.0f, "%.0f"); + ImGui::SliderFloat2("TouchExtraPadding", (float*)&style.TouchExtraPadding, 0.0f, 10.0f, "%.0f"); + ImGui::SliderFloat("IndentSpacing", &style.IndentSpacing, 0.0f, 30.0f, "%.0f"); + ImGui::SliderFloat("ScrollbarSize", &style.ScrollbarSize, 1.0f, 20.0f, "%.0f"); + ImGui::SliderFloat("GrabMinSize", &style.GrabMinSize, 1.0f, 20.0f, "%.0f"); + ImGui::Text("Borders"); + ImGui::SliderFloat("WindowBorderSize", &style.WindowBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("ChildBorderSize", &style.ChildBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("PopupBorderSize", &style.PopupBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("FrameBorderSize", &style.FrameBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::SliderFloat("TabBorderSize", &style.TabBorderSize, 0.0f, 1.0f, "%.0f"); + ImGui::Text("Rounding"); + ImGui::SliderFloat("WindowRounding", &style.WindowRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("ChildRounding", &style.ChildRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("PopupRounding", &style.PopupRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("ScrollbarRounding", &style.ScrollbarRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("GrabRounding", &style.GrabRounding, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("LogSliderDeadzone", &style.LogSliderDeadzone, 0.0f, 12.0f, "%.0f"); + ImGui::SliderFloat("TabRounding", &style.TabRounding, 0.0f, 12.0f, "%.0f"); + ImGui::Text("Alignment"); + ImGui::SliderFloat2("WindowTitleAlign", (float*)&style.WindowTitleAlign, 0.0f, 1.0f, "%.2f"); + int window_menu_button_position = style.WindowMenuButtonPosition + 1; + if (ImGui::Combo("WindowMenuButtonPosition", (int*)&window_menu_button_position, "None\0Left\0Right\0")) + style.WindowMenuButtonPosition = window_menu_button_position - 1; + ImGui::Combo("ColorButtonPosition", (int*)&style.ColorButtonPosition, "Left\0Right\0"); + ImGui::SliderFloat2("ButtonTextAlign", (float*)&style.ButtonTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui::SameLine(); HelpMarker("Alignment applies when a button is larger than its text content."); + ImGui::SliderFloat2("SelectableTextAlign", (float*)&style.SelectableTextAlign, 0.0f, 1.0f, "%.2f"); + ImGui::SameLine(); HelpMarker("Alignment applies when a selectable is larger than its text content."); + ImGui::Text("Safe Area Padding"); + ImGui::SameLine(); HelpMarker("Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured)."); + ImGui::SliderFloat2("DisplaySafeAreaPadding", (float*)&style.DisplaySafeAreaPadding, 0.0f, 30.0f, "%.0f"); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Colors")) + { + static int output_dest = 0; + static bool output_only_modified = true; + if (ImGui::Button("Export")) + { + if (output_dest == 0) + ImGui::LogToClipboard(); + else + ImGui::LogToTTY(); + ImGui::LogText("ImVec4* colors = ImGui::GetStyle().Colors;" IM_NEWLINE); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const ImVec4& col = style.Colors[i]; + const char* name = ImGui::GetStyleColorName(i); + if (!output_only_modified || memcmp(&col, &ref->Colors[i], sizeof(ImVec4)) != 0) + ImGui::LogText("colors[ImGuiCol_%s]%*s= ImVec4(%.2ff, %.2ff, %.2ff, %.2ff);" IM_NEWLINE, + name, 23 - (int)strlen(name), "", col.x, col.y, col.z, col.w); + } + ImGui::LogFinish(); + } + ImGui::SameLine(); ImGui::SetNextItemWidth(120); ImGui::Combo("##output_type", &output_dest, "To Clipboard\0To TTY\0"); + ImGui::SameLine(); ImGui::Checkbox("Only Modified Colors", &output_only_modified); + + static ImGuiTextFilter filter; + filter.Draw("Filter colors", ImGui::GetFontSize() * 16); + + static ImGuiColorEditFlags alpha_flags = 0; + if (ImGui::RadioButton("Opaque", alpha_flags == ImGuiColorEditFlags_None)) { alpha_flags = ImGuiColorEditFlags_None; } ImGui::SameLine(); + if (ImGui::RadioButton("Alpha", alpha_flags == ImGuiColorEditFlags_AlphaPreview)) { alpha_flags = ImGuiColorEditFlags_AlphaPreview; } ImGui::SameLine(); + if (ImGui::RadioButton("Both", alpha_flags == ImGuiColorEditFlags_AlphaPreviewHalf)) { alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf; } ImGui::SameLine(); + HelpMarker( + "In the color list:\n" + "Left-click on colored square to open color picker,\n" + "Right-click to open edit options menu."); + + ImGui::BeginChild("##colors", ImVec2(0, 0), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar | ImGuiWindowFlags_NavFlattened); + ImGui::PushItemWidth(-160); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const char* name = ImGui::GetStyleColorName(i); + if (!filter.PassFilter(name)) + continue; + ImGui::PushID(i); + ImGui::ColorEdit4("##color", (float*)&style.Colors[i], ImGuiColorEditFlags_AlphaBar | alpha_flags); + if (memcmp(&style.Colors[i], &ref->Colors[i], sizeof(ImVec4)) != 0) + { + // Tips: in a real user application, you may want to merge and use an icon font into the main font, + // so instead of "Save"/"Revert" you'd use icons! + // Read the FAQ and docs/FONTS.md about using icon fonts. It's really easy and super convenient! + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Save")) { ref->Colors[i] = style.Colors[i]; } + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Revert")) { style.Colors[i] = ref->Colors[i]; } + } + ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); + ImGui::TextUnformatted(name); + ImGui::PopID(); + } + ImGui::PopItemWidth(); + ImGui::EndChild(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Fonts")) + { + ImGuiIO& io = ImGui::GetIO(); + ImFontAtlas* atlas = io.Fonts; + HelpMarker("Read FAQ and docs/FONTS.md for details on font loading."); + ImGui::PushItemWidth(120); + for (int i = 0; i < atlas->Fonts.Size; i++) + { + ImFont* font = atlas->Fonts[i]; + ImGui::PushID(font); + NodeFont(font); + ImGui::PopID(); + } + if (ImGui::TreeNode("Atlas texture", "Atlas texture (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) + { + ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); + ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); + ImGui::Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0, 0), ImVec2(1, 1), tint_col, border_col); + ImGui::TreePop(); + } + + // Post-baking font scaling. Note that this is NOT the nice way of scaling fonts, read below. + // (we enforce hard clamping manually as by default DragFloat/SliderFloat allows CTRL+Click text to get out of bounds). + const float MIN_SCALE = 0.3f; + const float MAX_SCALE = 2.0f; + HelpMarker( + "Those are old settings provided for convenience.\n" + "However, the _correct_ way of scaling your UI is currently to reload your font at the designed size, " + "rebuild the font atlas, and call style.ScaleAllSizes() on a reference ImGuiStyle structure.\n" + "Using those settings here will give you poor quality results."); + static float window_scale = 1.0f; + if (ImGui::DragFloat("window scale", &window_scale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp)) // Scale only this window + ImGui::SetWindowFontScale(window_scale); + ImGui::DragFloat("global scale", &io.FontGlobalScale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp); // Scale everything + ImGui::PopItemWidth(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Rendering")) + { + ImGui::Checkbox("Anti-aliased lines", &style.AntiAliasedLines); + ImGui::SameLine(); + HelpMarker("When disabling anti-aliasing lines, you'll probably want to disable borders in your style as well."); + + ImGui::Checkbox("Anti-aliased lines use texture", &style.AntiAliasedLinesUseTex); + ImGui::SameLine(); + HelpMarker("Faster lines using texture data. Require back-end to render with bilinear filtering (not point/nearest filtering)."); + + ImGui::Checkbox("Anti-aliased fill", &style.AntiAliasedFill); + ImGui::PushItemWidth(100); + ImGui::DragFloat("Curve Tessellation Tolerance", &style.CurveTessellationTol, 0.02f, 0.10f, 10.0f, "%.2f"); + if (style.CurveTessellationTol < 0.10f) style.CurveTessellationTol = 0.10f; + + // When editing the "Circle Segment Max Error" value, draw a preview of its effect on auto-tessellated circles. + ImGui::DragFloat("Circle Segment Max Error", &style.CircleSegmentMaxError, 0.01f, 0.10f, 10.0f, "%.2f"); + if (ImGui::IsItemActive()) + { + ImGui::SetNextWindowPos(ImGui::GetCursorScreenPos()); + ImGui::BeginTooltip(); + ImVec2 p = ImGui::GetCursorScreenPos(); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + float RAD_MIN = 10.0f, RAD_MAX = 80.0f; + float off_x = 10.0f; + for (int n = 0; n < 7; n++) + { + const float rad = RAD_MIN + (RAD_MAX - RAD_MIN) * (float)n / (7.0f - 1.0f); + draw_list->AddCircle(ImVec2(p.x + off_x + rad, p.y + RAD_MAX), rad, ImGui::GetColorU32(ImGuiCol_Text), 0); + off_x += 10.0f + rad * 2.0f; + } + ImGui::Dummy(ImVec2(off_x, RAD_MAX * 2.0f)); + ImGui::EndTooltip(); + } + ImGui::SameLine(); + HelpMarker("When drawing circle primitives with \"num_segments == 0\" tesselation will be calculated automatically."); + + ImGui::DragFloat("Global Alpha", &style.Alpha, 0.005f, 0.20f, 1.0f, "%.2f"); // Not exposing zero here so user doesn't "lose" the UI (zero alpha clips all widgets). But application code could have a toggle to switch between zero and non-zero. + ImGui::PopItemWidth(); + + ImGui::EndTabItem(); + } + + ImGui::EndTabBar(); + } + + ImGui::PopItemWidth(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() +//----------------------------------------------------------------------------- +// - ShowExampleAppMainMenuBar() +// - ShowExampleMenuFile() +//----------------------------------------------------------------------------- + +// Demonstrate creating a "main" fullscreen menu bar and populating it. +// Note the difference between BeginMainMenuBar() and BeginMenuBar(): +// - BeginMenuBar() = menu-bar inside current window (which needs the ImGuiWindowFlags_MenuBar flag!) +// - BeginMainMenuBar() = helper to create menu-bar-sized window at the top of the main viewport + call BeginMenuBar() into it. +static void ShowExampleAppMainMenuBar() +{ + if (ImGui::BeginMainMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + if (ImGui::BeginMenu("Edit")) + { + if (ImGui::MenuItem("Undo", "CTRL+Z")) {} + if (ImGui::MenuItem("Redo", "CTRL+Y", false, false)) {} // Disabled item + ImGui::Separator(); + if (ImGui::MenuItem("Cut", "CTRL+X")) {} + if (ImGui::MenuItem("Copy", "CTRL+C")) {} + if (ImGui::MenuItem("Paste", "CTRL+V")) {} + ImGui::EndMenu(); + } + ImGui::EndMainMenuBar(); + } +} + +// Note that shortcuts are currently provided for display only +// (future version will add explicit flags to BeginMenu() to request processing shortcuts) +static void ShowExampleMenuFile() +{ + ImGui::MenuItem("(demo menu)", NULL, false, false); + if (ImGui::MenuItem("New")) {} + if (ImGui::MenuItem("Open", "Ctrl+O")) {} + if (ImGui::BeginMenu("Open Recent")) + { + ImGui::MenuItem("fish_hat.c"); + ImGui::MenuItem("fish_hat.inl"); + ImGui::MenuItem("fish_hat.h"); + if (ImGui::BeginMenu("More..")) + { + ImGui::MenuItem("Hello"); + ImGui::MenuItem("Sailor"); + if (ImGui::BeginMenu("Recurse..")) + { + ShowExampleMenuFile(); + ImGui::EndMenu(); + } + ImGui::EndMenu(); + } + ImGui::EndMenu(); + } + if (ImGui::MenuItem("Save", "Ctrl+S")) {} + if (ImGui::MenuItem("Save As..")) {} + + ImGui::Separator(); + if (ImGui::BeginMenu("Options")) + { + static bool enabled = true; + ImGui::MenuItem("Enabled", "", &enabled); + ImGui::BeginChild("child", ImVec2(0, 60), true); + for (int i = 0; i < 10; i++) + ImGui::Text("Scrolling Text %d", i); + ImGui::EndChild(); + static float f = 0.5f; + static int n = 0; + ImGui::SliderFloat("Value", &f, 0.0f, 1.0f); + ImGui::InputFloat("Input", &f, 0.1f); + ImGui::Combo("Combo", &n, "Yes\0No\0Maybe\0\0"); + ImGui::EndMenu(); + } + + if (ImGui::BeginMenu("Colors")) + { + float sz = ImGui::GetTextLineHeight(); + for (int i = 0; i < ImGuiCol_COUNT; i++) + { + const char* name = ImGui::GetStyleColorName((ImGuiCol)i); + ImVec2 p = ImGui::GetCursorScreenPos(); + ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + sz, p.y + sz), ImGui::GetColorU32((ImGuiCol)i)); + ImGui::Dummy(ImVec2(sz, sz)); + ImGui::SameLine(); + ImGui::MenuItem(name); + } + ImGui::EndMenu(); + } + + // Here we demonstrate appending again to the "Options" menu (which we already created above) + // Of course in this demo it is a little bit silly that this function calls BeginMenu("Options") twice. + // In a real code-base using it would make senses to use this feature from very different code locations. + if (ImGui::BeginMenu("Options")) // <-- Append! + { + static bool b = true; + ImGui::Checkbox("SomeOption", &b); + ImGui::EndMenu(); + } + + if (ImGui::BeginMenu("Disabled", false)) // Disabled + { + IM_ASSERT(0); + } + if (ImGui::MenuItem("Checked", NULL, true)) {} + if (ImGui::MenuItem("Quit", "Alt+F4")) {} +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Debug Console / ShowExampleAppConsole() +//----------------------------------------------------------------------------- + +// Demonstrate creating a simple console window, with scrolling, filtering, completion and history. +// For the console example, we are using a more C++ like approach of declaring a class to hold both data and functions. +struct ExampleAppConsole +{ + char InputBuf[256]; + ImVector Items; + ImVector Commands; + ImVector History; + int HistoryPos; // -1: new line, 0..History.Size-1 browsing history. + ImGuiTextFilter Filter; + bool AutoScroll; + bool ScrollToBottom; + + ExampleAppConsole() + { + ClearLog(); + memset(InputBuf, 0, sizeof(InputBuf)); + HistoryPos = -1; + + // "CLASSIFY" is here to provide the test case where "C"+[tab] completes to "CL" and display multiple matches. + Commands.push_back("HELP"); + Commands.push_back("HISTORY"); + Commands.push_back("CLEAR"); + Commands.push_back("CLASSIFY"); + AutoScroll = true; + ScrollToBottom = false; + AddLog("Welcome to Dear ImGui!"); + } + ~ExampleAppConsole() + { + ClearLog(); + for (int i = 0; i < History.Size; i++) + free(History[i]); + } + + // Portable helpers + static int Stricmp(const char* s1, const char* s2) { int d; while ((d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; } return d; } + static int Strnicmp(const char* s1, const char* s2, int n) { int d = 0; while (n > 0 && (d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; n--; } return d; } + static char* Strdup(const char* s) { size_t len = strlen(s) + 1; void* buf = malloc(len); IM_ASSERT(buf); return (char*)memcpy(buf, (const void*)s, len); } + static void Strtrim(char* s) { char* str_end = s + strlen(s); while (str_end > s && str_end[-1] == ' ') str_end--; *str_end = 0; } + + void ClearLog() + { + for (int i = 0; i < Items.Size; i++) + free(Items[i]); + Items.clear(); + } + + void AddLog(const char* fmt, ...) IM_FMTARGS(2) + { + // FIXME-OPT + char buf[1024]; + va_list args; + va_start(args, fmt); + vsnprintf(buf, IM_ARRAYSIZE(buf), fmt, args); + buf[IM_ARRAYSIZE(buf)-1] = 0; + va_end(args); + Items.push_back(Strdup(buf)); + } + + void Draw(const char* menu_title, bool* p_open) + { + ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); + if (!ImGui::Begin(menu_title, p_open)) + { + ImGui::End(); + return; + } + + // As a specific feature guaranteed by the library, after calling Begin() the last Item represent the title bar. + // So e.g. IsItemHovered() will return true when hovering the title bar. + // Here we create a context menu only available from the title bar. + if (ImGui::BeginPopupContextItem()) + { + if (ImGui::MenuItem("Close Console")) + *p_open = false; + ImGui::EndPopup(); + } + + ImGui::TextWrapped( + "This example implements a console with basic coloring, completion (TAB key) and history (Up/Down keys). A more elaborate " + "implementation may want to store entries along with extra data such as timestamp, emitter, etc."); + ImGui::TextWrapped("Enter 'HELP' for help."); + + // TODO: display items starting from the bottom + + if (ImGui::SmallButton("Add Debug Text")) { AddLog("%d some text", Items.Size); AddLog("some more text"); AddLog("display very important message here!"); } + ImGui::SameLine(); + if (ImGui::SmallButton("Add Debug Error")) { AddLog("[error] something went wrong"); } + ImGui::SameLine(); + if (ImGui::SmallButton("Clear")) { ClearLog(); } + ImGui::SameLine(); + bool copy_to_clipboard = ImGui::SmallButton("Copy"); + //static float t = 0.0f; if (ImGui::GetTime() - t > 0.02f) { t = ImGui::GetTime(); AddLog("Spam %f", t); } + + ImGui::Separator(); + + // Options menu + if (ImGui::BeginPopup("Options")) + { + ImGui::Checkbox("Auto-scroll", &AutoScroll); + ImGui::EndPopup(); + } + + // Options, Filter + if (ImGui::Button("Options")) + ImGui::OpenPopup("Options"); + ImGui::SameLine(); + Filter.Draw("Filter (\"incl,-excl\") (\"error\")", 180); + ImGui::Separator(); + + // Reserve enough left-over height for 1 separator + 1 input text + const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing(); + ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar); + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::Selectable("Clear")) ClearLog(); + ImGui::EndPopup(); + } + + // Display every line as a separate entry so we can change their color or add custom widgets. + // If you only want raw text you can use ImGui::TextUnformatted(log.begin(), log.end()); + // NB- if you have thousands of entries this approach may be too inefficient and may require user-side clipping + // to only process visible items. The clipper will automatically measure the height of your first item and then + // "seek" to display only items in the visible area. + // To use the clipper we can replace your standard loop: + // for (int i = 0; i < Items.Size; i++) + // With: + // ImGuiListClipper clipper; + // clipper.Begin(Items.Size); + // while (clipper.Step()) + // for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + // - That your items are evenly spaced (same height) + // - That you have cheap random access to your elements (you can access them given their index, + // without processing all the ones before) + // You cannot this code as-is if a filter is active because it breaks the 'cheap random-access' property. + // We would need random-access on the post-filtered list. + // A typical application wanting coarse clipping and filtering may want to pre-compute an array of indices + // or offsets of items that passed the filtering test, recomputing this array when user changes the filter, + // and appending newly elements as they are inserted. This is left as a task to the user until we can manage + // to improve this example code! + // If your items are of variable height: + // - Split them into same height items would be simpler and facilitate random-seeking into your list. + // - Consider using manual call to IsRectVisible() and skipping extraneous decoration from your items. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing + if (copy_to_clipboard) + ImGui::LogToClipboard(); + for (int i = 0; i < Items.Size; i++) + { + const char* item = Items[i]; + if (!Filter.PassFilter(item)) + continue; + + // Normally you would store more information in your item than just a string. + // (e.g. make Items[] an array of structure, store color/type etc.) + ImVec4 color; + bool has_color = false; + if (strstr(item, "[error]")) { color = ImVec4(1.0f, 0.4f, 0.4f, 1.0f); has_color = true; } + else if (strncmp(item, "# ", 2) == 0) { color = ImVec4(1.0f, 0.8f, 0.6f, 1.0f); has_color = true; } + if (has_color) + ImGui::PushStyleColor(ImGuiCol_Text, color); + ImGui::TextUnformatted(item); + if (has_color) + ImGui::PopStyleColor(); + } + if (copy_to_clipboard) + ImGui::LogFinish(); + + if (ScrollToBottom || (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())) + ImGui::SetScrollHereY(1.0f); + ScrollToBottom = false; + + ImGui::PopStyleVar(); + ImGui::EndChild(); + ImGui::Separator(); + + // Command-line + bool reclaim_focus = false; + ImGuiInputTextFlags input_text_flags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory; + if (ImGui::InputText("Input", InputBuf, IM_ARRAYSIZE(InputBuf), input_text_flags, &TextEditCallbackStub, (void*)this)) + { + char* s = InputBuf; + Strtrim(s); + if (s[0]) + ExecCommand(s); + strcpy(s, ""); + reclaim_focus = true; + } + + // Auto-focus on window apparition + ImGui::SetItemDefaultFocus(); + if (reclaim_focus) + ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget + + ImGui::End(); + } + + void ExecCommand(const char* command_line) + { + AddLog("# %s\n", command_line); + + // Insert into history. First find match and delete it so it can be pushed to the back. + // This isn't trying to be smart or optimal. + HistoryPos = -1; + for (int i = History.Size - 1; i >= 0; i--) + if (Stricmp(History[i], command_line) == 0) + { + free(History[i]); + History.erase(History.begin() + i); + break; + } + History.push_back(Strdup(command_line)); + + // Process command + if (Stricmp(command_line, "CLEAR") == 0) + { + ClearLog(); + } + else if (Stricmp(command_line, "HELP") == 0) + { + AddLog("Commands:"); + for (int i = 0; i < Commands.Size; i++) + AddLog("- %s", Commands[i]); + } + else if (Stricmp(command_line, "HISTORY") == 0) + { + int first = History.Size - 10; + for (int i = first > 0 ? first : 0; i < History.Size; i++) + AddLog("%3d: %s\n", i, History[i]); + } + else + { + AddLog("Unknown command: '%s'\n", command_line); + } + + // On command input, we scroll to bottom even if AutoScroll==false + ScrollToBottom = true; + } + + // In C++11 you'd be better off using lambdas for this sort of forwarding callbacks + static int TextEditCallbackStub(ImGuiInputTextCallbackData* data) + { + ExampleAppConsole* console = (ExampleAppConsole*)data->UserData; + return console->TextEditCallback(data); + } + + int TextEditCallback(ImGuiInputTextCallbackData* data) + { + //AddLog("cursor: %d, selection: %d-%d", data->CursorPos, data->SelectionStart, data->SelectionEnd); + switch (data->EventFlag) + { + case ImGuiInputTextFlags_CallbackCompletion: + { + // Example of TEXT COMPLETION + + // Locate beginning of current word + const char* word_end = data->Buf + data->CursorPos; + const char* word_start = word_end; + while (word_start > data->Buf) + { + const char c = word_start[-1]; + if (c == ' ' || c == '\t' || c == ',' || c == ';') + break; + word_start--; + } + + // Build a list of candidates + ImVector candidates; + for (int i = 0; i < Commands.Size; i++) + if (Strnicmp(Commands[i], word_start, (int)(word_end - word_start)) == 0) + candidates.push_back(Commands[i]); + + if (candidates.Size == 0) + { + // No match + AddLog("No match for \"%.*s\"!\n", (int)(word_end - word_start), word_start); + } + else if (candidates.Size == 1) + { + // Single match. Delete the beginning of the word and replace it entirely so we've got nice casing. + data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); + data->InsertChars(data->CursorPos, candidates[0]); + data->InsertChars(data->CursorPos, " "); + } + else + { + // Multiple matches. Complete as much as we can.. + // So inputing "C"+Tab will complete to "CL" then display "CLEAR" and "CLASSIFY" as matches. + int match_len = (int)(word_end - word_start); + for (;;) + { + int c = 0; + bool all_candidates_matches = true; + for (int i = 0; i < candidates.Size && all_candidates_matches; i++) + if (i == 0) + c = toupper(candidates[i][match_len]); + else if (c == 0 || c != toupper(candidates[i][match_len])) + all_candidates_matches = false; + if (!all_candidates_matches) + break; + match_len++; + } + + if (match_len > 0) + { + data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); + data->InsertChars(data->CursorPos, candidates[0], candidates[0] + match_len); + } + + // List matches + AddLog("Possible matches:\n"); + for (int i = 0; i < candidates.Size; i++) + AddLog("- %s\n", candidates[i]); + } + + break; + } + case ImGuiInputTextFlags_CallbackHistory: + { + // Example of HISTORY + const int prev_history_pos = HistoryPos; + if (data->EventKey == ImGuiKey_UpArrow) + { + if (HistoryPos == -1) + HistoryPos = History.Size - 1; + else if (HistoryPos > 0) + HistoryPos--; + } + else if (data->EventKey == ImGuiKey_DownArrow) + { + if (HistoryPos != -1) + if (++HistoryPos >= History.Size) + HistoryPos = -1; + } + + // A better implementation would preserve the data on the current input line along with cursor position. + if (prev_history_pos != HistoryPos) + { + const char* history_str = (HistoryPos >= 0) ? History[HistoryPos] : ""; + data->DeleteChars(0, data->BufTextLen); + data->InsertChars(0, history_str); + } + } + } + return 0; + } +}; + +static void ShowExampleAppConsole(bool* p_open) +{ + static ExampleAppConsole console; + console.Draw("Example: Console", p_open); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Debug Log / ShowExampleAppLog() +//----------------------------------------------------------------------------- + +// Usage: +// static ExampleAppLog my_log; +// my_log.AddLog("Hello %d world\n", 123); +// my_log.Draw("title"); +struct ExampleAppLog +{ + ImGuiTextBuffer Buf; + ImGuiTextFilter Filter; + ImVector LineOffsets; // Index to lines offset. We maintain this with AddLog() calls. + bool AutoScroll; // Keep scrolling if already at the bottom. + + ExampleAppLog() + { + AutoScroll = true; + Clear(); + } + + void Clear() + { + Buf.clear(); + LineOffsets.clear(); + LineOffsets.push_back(0); + } + + void AddLog(const char* fmt, ...) IM_FMTARGS(2) + { + int old_size = Buf.menu_size(); + va_list args; + va_start(args, fmt); + Buf.appendfv(fmt, args); + va_end(args); + for (int new_size = Buf.menu_size(); old_size < new_size; old_size++) + if (Buf[old_size] == '\n') + LineOffsets.push_back(old_size + 1); + } + + void Draw(const char* menu_title, bool* p_open = NULL) + { + if (!ImGui::Begin(menu_title, p_open)) + { + ImGui::End(); + return; + } + + // Options menu + if (ImGui::BeginPopup("Options")) + { + ImGui::Checkbox("Auto-scroll", &AutoScroll); + ImGui::EndPopup(); + } + + // Main window + if (ImGui::Button("Options")) + ImGui::OpenPopup("Options"); + ImGui::SameLine(); + bool clear = ImGui::Button("Clear"); + ImGui::SameLine(); + bool copy = ImGui::Button("Copy"); + ImGui::SameLine(); + Filter.Draw("Filter", -100.0f); + + ImGui::Separator(); + ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar); + + if (clear) + Clear(); + if (copy) + ImGui::LogToClipboard(); + + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + const char* buf = Buf.begin(); + const char* buf_end = Buf.end(); + if (Filter.IsActive()) + { + // In this example we don't use the clipper when Filter is enabled. + // This is because we don't have a random access on the result on our filter. + // A real application processing logs with ten of thousands of entries may want to store the result of + // search/filter.. especially if the filtering function is not trivial (e.g. reg-exp). + for (int line_no = 0; line_no < LineOffsets.Size; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + if (Filter.PassFilter(line_start, line_end)) + ImGui::TextUnformatted(line_start, line_end); + } + } + else + { + // The simplest and easy way to display the entire buffer: + // ImGui::TextUnformatted(buf_begin, buf_end); + // And it'll just work. TextUnformatted() has specialization for large blob of text and will fast-forward + // to skip non-visible lines. Here we instead demonstrate using the clipper to only process lines that are + // within the visible area. + // If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them + // on your side is recommended. Using ImGuiListClipper requires + // - A) random access into your data + // - B) items all being the same height, + // both of which we can handle since we an array pointing to the beginning of each line of text. + // When using the filter (in the block of code above) we don't have random access into the data to display + // anymore, which is why we don't use the clipper. Storing or skimming through the search result would make + // it possible (and would be recommended if you want to search through tens of thousands of entries). + ImGuiListClipper clipper; + clipper.Begin(LineOffsets.Size); + while (clipper.Step()) + { + for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) + { + const char* line_start = buf + LineOffsets[line_no]; + const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; + ImGui::TextUnformatted(line_start, line_end); + } + } + clipper.End(); + } + ImGui::PopStyleVar(); + + if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) + ImGui::SetScrollHereY(1.0f); + + ImGui::EndChild(); + ImGui::End(); + } +}; + +// Demonstrate creating a simple log window with basic filtering. +static void ShowExampleAppLog(bool* p_open) +{ + static ExampleAppLog log; + + // For the demo: add a debug button _BEFORE_ the normal log window contents + // We take advantage of a rarely used feature: multiple calls to Begin()/End() are appending to the _same_ window. + // Most of the contents of the window will be added by the log.Draw() call. + ImGui::SetNextWindowSize(ImVec2(500, 400), ImGuiCond_FirstUseEver); + ImGui::Begin("Example: Log", p_open); + if (ImGui::SmallButton("[Debug] Add 5 entries")) + { + static int counter = 0; + const char* categories[3] = { "info", "warn", "error" }; + const char* words[] = { "Bumfuzzled", "Cattywampus", "Snickersnee", "Abibliophobia", "Absquatulate", "Nincompoop", "Pauciloquent" }; + for (int n = 0; n < 5; n++) + { + const char* category = categories[counter % IM_ARRAYSIZE(categories)]; + const char* word = words[counter % IM_ARRAYSIZE(words)]; + log.AddLog("[%05d] [%s] Hello, current time is %.1f, here's a word: '%s'\n", + ImGui::GetFrameCount(), category, ImGui::GetTime(), word); + counter++; + } + } + ImGui::End(); + + // Actually call in the regular Log helper (which will Begin() into the same window as we just did) + log.Draw("Example: Log", p_open); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() +//----------------------------------------------------------------------------- + +// Demonstrate create a window with multiple child windows. +static void ShowExampleAppLayout(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(500, 440), ImGuiCond_FirstUseEver); + if (ImGui::Begin("Example: Simple layout", p_open, ImGuiWindowFlags_MenuBar)) + { + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + if (ImGui::MenuItem("Close")) *p_open = false; + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + // Left + static int selected = 0; + { + ImGui::BeginChild("left pane", ImVec2(150, 0), true); + for (int i = 0; i < 100; i++) + { + char label[128]; + sprintf(label, "MyObject %d", i); + if (ImGui::Selectable(label, selected == i)) + selected = i; + } + ImGui::EndChild(); + } + ImGui::SameLine(); + + // Right + { + ImGui::BeginGroup(); + ImGui::BeginChild("item view", ImVec2(0, -ImGui::GetFrameHeightWithSpacing())); // Leave room for 1 line below us + ImGui::Text("MyObject: %d", selected); + ImGui::Separator(); + if (ImGui::BeginTabBar("##Tabs", ImGuiTabBarFlags_None)) + { + if (ImGui::BeginTabItem("Description")) + { + ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "); + ImGui::EndTabItem(); + } + if (ImGui::BeginTabItem("Details")) + { + ImGui::Text("ID: 0123456789"); + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); + } + ImGui::EndChild(); + if (ImGui::Button("Revert")) {} + ImGui::SameLine(); + if (ImGui::Button("Save")) {} + ImGui::EndGroup(); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() +//----------------------------------------------------------------------------- + +static void ShowPlaceholderObject(const char* prefix, int uid) +{ + // Use object uid as identifier. Most commonly you could also use the object pointer as a base ID. + ImGui::PushID(uid); + + // Text and Tree nodes are less high than framed widgets, using AlignTextToFramePadding() we add vertical spacing to make the tree lines equal high. + ImGui::AlignTextToFramePadding(); + bool node_open = ImGui::TreeNode("Object", "%s_%u", prefix, uid); + ImGui::NextColumn(); + ImGui::AlignTextToFramePadding(); + ImGui::Text("my sailor is rich"); + ImGui::NextColumn(); + if (node_open) + { + static float placeholder_members[8] = { 0.0f, 0.0f, 1.0f, 3.1416f, 100.0f, 999.0f }; + for (int i = 0; i < 8; i++) + { + ImGui::PushID(i); // Use field index as identifier. + if (i < 2) + { + ShowPlaceholderObject("Child", 424242); + } + else + { + // Here we use a TreeNode to highlight on hover (we could use e.g. Selectable as well) + ImGui::AlignTextToFramePadding(); + ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_Bullet; + ImGui::TreeNodeEx("Field", flags, "Field_%d", i); + ImGui::NextColumn(); + ImGui::SetNextItemWidth(-1); + if (i >= 5) + ImGui::InputFloat("##value", &placeholder_members[i], 1.0f); + else + ImGui::DragFloat("##value", &placeholder_members[i], 0.01f); + ImGui::NextColumn(); + } + ImGui::PopID(); + } + ImGui::TreePop(); + } + ImGui::PopID(); +} + +// Demonstrate create a simple property editor. +static void ShowExampleAppPropertyEditor(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver); + if (!ImGui::Begin("Example: Property editor", p_open)) + { + ImGui::End(); + return; + } + + HelpMarker( + "This example shows how you may implement a property editor using two columns.\n" + "All objects/fields data are dummies here.\n" + "Remember that in many simple cases, you can use ImGui::SameLine(xxx) to position\n" + "your cursor horizontally instead of using the Columns() API."); + + ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2)); + ImGui::Columns(2); + ImGui::Separator(); + + // Iterate placeholder objects (all the same data) + for (int obj_i = 0; obj_i < 3; obj_i++) + ShowPlaceholderObject("Object", obj_i); + + ImGui::Columns(1); + ImGui::Separator(); + ImGui::PopStyleVar(); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Long Text / ShowExampleAppLongText() +//----------------------------------------------------------------------------- + +// Demonstrate/test rendering huge amount of text, and the incidence of clipping. +static void ShowExampleAppLongText(bool* p_open) +{ + ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); + if (!ImGui::Begin("Example: Long text display", p_open)) + { + ImGui::End(); + return; + } + + static int test_type = 0; + static ImGuiTextBuffer log; + static int lines = 0; + ImGui::Text("Printing unusually long amount of text."); + ImGui::Combo("Test type", &test_type, + "Single call to TextUnformatted()\0" + "Multiple calls to Text(), clipped\0" + "Multiple calls to Text(), not clipped (slow)\0"); + ImGui::Text("Buffer contents: %d lines, %d bytes", lines, log.menu_size()); + if (ImGui::Button("Clear")) { log.clear(); lines = 0; } + ImGui::SameLine(); + if (ImGui::Button("Add 1000 lines")) + { + for (int i = 0; i < 1000; i++) + log.appendf("%i The quick brown fox jumps over the lazy dog\n", lines + i); + lines += 1000; + } + ImGui::BeginChild("Log"); + switch (test_type) + { + case 0: + // Single call to TextUnformatted() with a big buffer + ImGui::TextUnformatted(log.begin(), log.end()); + break; + case 1: + { + // Multiple calls to Text(), manually coarsely clipped - demonstrate how to use the ImGuiListClipper helper. + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + ImGuiListClipper clipper; + clipper.Begin(lines); + while (clipper.Step()) + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); + ImGui::PopStyleVar(); + break; + } + case 2: + // Multiple calls to Text(), not clipped (slow) + ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); + for (int i = 0; i < lines; i++) + ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); + ImGui::PopStyleVar(); + break; + } + ImGui::EndChild(); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window which gets auto-resized according to its content. +static void ShowExampleAppAutoResize(bool* p_open) +{ + if (!ImGui::Begin("Example: Auto-resizing window", p_open, ImGuiWindowFlags_AlwaysAutoResize)) + { + ImGui::End(); + return; + } + + static int lines = 10; + ImGui::TextUnformatted( + "Window will resize every-frame to the size of its content.\n" + "Note that you probably don't want to query the window size to\n" + "output your content because that would create a feedback loop."); + ImGui::SliderInt("Number of lines", &lines, 1, 20); + for (int i = 0; i < lines; i++) + ImGui::Text("%*sThis is line %d", i * 4, "", i); // Pad with space to extend size horizontally + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() +//----------------------------------------------------------------------------- + +// Demonstrate creating a window with custom resize constraints. +static void ShowExampleAppConstrainedResize(bool* p_open) +{ + struct CustomConstraints + { + // Helper functions to demonstrate programmatic constraints + static void Square(ImGuiSizeCallbackData* data) { data->DesiredSize.x = data->DesiredSize.y = IM_MAX(data->DesiredSize.x, data->DesiredSize.y); } + static void Step(ImGuiSizeCallbackData* data) { float step = (float)(int)(intptr_t)data->UserData; data->DesiredSize = ImVec2((int)(data->DesiredSize.x / step + 0.5f) * step, (int)(data->DesiredSize.y / step + 0.5f) * step); } + }; + + const char* test_desc[] = + { + "Resize vertical only", + "Resize horizontal only", + "Width > 100, Height > 100", + "Width 400-500", + "Height 400-500", + "Custom: Always Square", + "Custom: Fixed Steps (100)", + }; + + static bool auto_resize = false; + static int type = 0; + static int display_lines = 10; + if (type == 0) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 0), ImVec2(-1, FLT_MAX)); // Vertical only + if (type == 1) ImGui::SetNextWindowSizeConstraints(ImVec2(0, -1), ImVec2(FLT_MAX, -1)); // Horizontal only + if (type == 2) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(FLT_MAX, FLT_MAX)); // Width > 100, Height > 100 + if (type == 3) ImGui::SetNextWindowSizeConstraints(ImVec2(400, -1), ImVec2(500, -1)); // Width 400-500 + if (type == 4) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 400), ImVec2(-1, 500)); // Height 400-500 + if (type == 5) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Square); // Always Square + if (type == 6) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Step, (void*)(intptr_t)100); // Fixed Step + + ImGuiWindowFlags flags = auto_resize ? ImGuiWindowFlags_AlwaysAutoResize : 0; + if (ImGui::Begin("Example: Constrained Resize", p_open, flags)) + { + if (ImGui::Button("200x200")) { ImGui::SetWindowSize(ImVec2(200, 200)); } ImGui::SameLine(); + if (ImGui::Button("500x500")) { ImGui::SetWindowSize(ImVec2(500, 500)); } ImGui::SameLine(); + if (ImGui::Button("800x200")) { ImGui::SetWindowSize(ImVec2(800, 200)); } + ImGui::SetNextItemWidth(200); + ImGui::Combo("Constraint", &type, test_desc, IM_ARRAYSIZE(test_desc)); + ImGui::SetNextItemWidth(200); + ImGui::DragInt("Lines", &display_lines, 0.2f, 1, 100); + ImGui::Checkbox("Auto-resize", &auto_resize); + for (int i = 0; i < display_lines; i++) + ImGui::Text("%*sHello, sailor! Making this line long enough for the example.", i * 4, ""); + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Simple Overlay / ShowExampleAppSimpleOverlay() +//----------------------------------------------------------------------------- + +// Demonstrate creating a simple static window with no decoration +// + a context-menu to choose which corner of the screen to use. +static void ShowExampleAppSimpleOverlay(bool* p_open) +{ + const float DISTANCE = 10.0f; + static int corner = 0; + ImGuiIO& io = ImGui::GetIO(); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav; + if (corner != -1) + { + window_flags |= ImGuiWindowFlags_NoMove; + ImVec2 window_pos = ImVec2((corner & 1) ? io.DisplaySize.x - DISTANCE : DISTANCE, (corner & 2) ? io.DisplaySize.y - DISTANCE : DISTANCE); + ImVec2 window_pos_pivot = ImVec2((corner & 1) ? 1.0f : 0.0f, (corner & 2) ? 1.0f : 0.0f); + ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always, window_pos_pivot); + } + ImGui::SetNextWindowBgAlpha(0.35f); // Transparent background + if (ImGui::Begin("Example: Simple overlay", p_open, window_flags)) + { + ImGui::Text("Simple overlay\n" "in the corner of the screen.\n" "(right-click to change position)"); + ImGui::Separator(); + if (ImGui::IsMousePosValid()) + ImGui::Text("Mouse Position: (%.1f,%.1f)", io.MousePos.x, io.MousePos.y); + else + ImGui::Text("Mouse Position: "); + if (ImGui::BeginPopupContextWindow()) + { + if (ImGui::MenuItem("Custom", NULL, corner == -1)) corner = -1; + if (ImGui::MenuItem("Top-left", NULL, corner == 0)) corner = 0; + if (ImGui::MenuItem("Top-right", NULL, corner == 1)) corner = 1; + if (ImGui::MenuItem("Bottom-left", NULL, corner == 2)) corner = 2; + if (ImGui::MenuItem("Bottom-right", NULL, corner == 3)) corner = 3; + if (p_open && ImGui::MenuItem("Close")) *p_open = false; + ImGui::EndPopup(); + } + } + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Manipulating Window Titles / ShowExampleAppWindowTitles() +//----------------------------------------------------------------------------- + +// Demonstrate using "##" and "###" in identifiers to manipulate ID generation. +// This apply to all regular items as well. +// Read FAQ section "How can I have multiple widgets with the same label?" for details. +static void ShowExampleAppWindowTitles(bool*) +{ + // By default, Windows are uniquely identified by their title. + // You can use the "##" and "###" markers to manipulate the display/ID. + + // Using "##" to display same title but have unique identifier. + ImGui::SetNextWindowPos(ImVec2(100, 100), ImGuiCond_FirstUseEver); + ImGui::Begin("Same title as another window##1"); + ImGui::Text("This is window 1.\nMy title is the same as window 2, but my identifier is unique."); + ImGui::End(); + + ImGui::SetNextWindowPos(ImVec2(100, 200), ImGuiCond_FirstUseEver); + ImGui::Begin("Same title as another window##2"); + ImGui::Text("This is window 2.\nMy title is the same as window 1, but my identifier is unique."); + ImGui::End(); + + // Using "###" to display a changing title but keep a static identifier "AnimatedTitle" + char buf[128]; + sprintf(buf, "Animated title %c %d###AnimatedTitle", "|/-\\"[(int)(ImGui::GetTime() / 0.25f) & 3], ImGui::GetFrameCount()); + ImGui::SetNextWindowPos(ImVec2(100, 300), ImGuiCond_FirstUseEver); + ImGui::Begin(buf); + ImGui::Text("This window has a changing title."); + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() +//----------------------------------------------------------------------------- + +// Demonstrate using the low-level ImDrawList to draw custom shapes. +static void ShowExampleAppCustomRendering(bool* p_open) +{ + if (!ImGui::Begin("Example: Custom rendering", p_open)) + { + ImGui::End(); + return; + } + + // Tip: If you do a lot of custom rendering, you probably want to use your own geometrical types and benefit of + // overloaded operators, etc. Define IM_VEC2_CLASS_EXTRA in imconfig.h to create implicit conversions between your + // types and ImVec2/ImVec4. Dear ImGui defines overloaded operators but they are internal to imgui.cpp and not + // exposed outside (to avoid messing with your types) In this example we are not using the maths operators! + + if (ImGui::BeginTabBar("##TabBar")) + { + if (ImGui::BeginTabItem("Primitives")) + { + ImGui::PushItemWidth(-ImGui::GetFontSize() * 10); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + + // Draw gradients + // (note that those are currently exacerbating our sRGB/Linear issues) + // Calling ImGui::GetColorU32() multiplies the given colors by the current Style Alpha, but you may pass the IM_COL32() directly as well.. + ImGui::Text("Gradients"); + ImVec2 gradient_size = ImVec2(ImGui::CalcItemWidth(), ImGui::GetFrameHeight()); + { + ImVec2 p0 = ImGui::GetCursorScreenPos(); + ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); + ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 0, 0, 255)); + ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 255, 255, 255)); + draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); + ImGui::InvisibleButton("##gradient1", gradient_size); + } + { + ImVec2 p0 = ImGui::GetCursorScreenPos(); + ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); + ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 255, 0, 255)); + ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 0, 0, 255)); + draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); + ImGui::InvisibleButton("##gradient2", gradient_size); + } + + // Draw a bunch of primitives + ImGui::Text("All primitives"); + static float sz = 36.0f; + static float thickness = 3.0f; + static int ngon_sides = 6; + static bool circle_segments_override = false; + static int circle_segments_override_v = 12; + static ImVec4 colf = ImVec4(1.0f, 1.0f, 0.4f, 1.0f); + ImGui::DragFloat("Size", &sz, 0.2f, 2.0f, 72.0f, "%.0f"); + ImGui::DragFloat("Thickness", &thickness, 0.05f, 1.0f, 8.0f, "%.02f"); + ImGui::SliderInt("N-gon sides", &ngon_sides, 3, 12); + ImGui::Checkbox("##circlesegmentoverride", &circle_segments_override); + ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); + if (ImGui::SliderInt("Circle segments", &circle_segments_override_v, 3, 40)) + circle_segments_override = true; + ImGui::ColorEdit4("Color", &colf.x); + + const ImVec2 p = ImGui::GetCursorScreenPos(); + const ImU32 col = ImColor(colf); + const float spacing = 10.0f; + const ImDrawCornerFlags corners_none = 0; + const ImDrawCornerFlags corners_all = ImDrawCornerFlags_All; + const ImDrawCornerFlags corners_tl_br = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotRight; + const int circle_segments = circle_segments_override ? circle_segments_override_v : 0; + float x = p.x + 4.0f; + float y = p.y + 4.0f; + for (int n = 0; n < 2; n++) + { + // First line uses a thickness of 1.0f, second line uses the configurable thickness + float th = (n == 0) ? 1.0f : thickness; + draw_list->AddNgon(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, ngon_sides, th); x += sz + spacing; // N-gon + draw_list->AddCircle(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments, th); x += sz + spacing; // Circle + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 0.0f, corners_none, th); x += sz + spacing; // Square + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f, corners_all, th); x += sz + spacing; // Square with all rounded corners + draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f, corners_tl_br, th); x += sz + spacing; // Square with two rounded corners + draw_list->AddTriangle(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col, th);x += sz + spacing; // Triangle + //draw_list->AddTriangle(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col, th);x+= sz*0.4f + spacing; // Thin triangle + draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y), col, th); x += sz + spacing; // Horizontal line (note: drawing a filled rectangle will be faster!) + draw_list->AddLine(ImVec2(x, y), ImVec2(x, y + sz), col, th); x += spacing; // Vertical line (note: drawing a filled rectangle will be faster!) + draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y + sz), col, th); x += sz + spacing; // Diagonal line + draw_list->AddBezierCurve(ImVec2(x, y), ImVec2(x + sz*1.3f, y + sz*0.3f), ImVec2(x + sz - sz*1.3f, y + sz - sz*0.3f), ImVec2(x + sz, y + sz), col, th); + x = p.x + 4; + y += sz + spacing; + } + draw_list->AddNgonFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz*0.5f, col, ngon_sides); x += sz + spacing; // N-gon + draw_list->AddCircleFilled(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments); x += sz + spacing; // Circle + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col); x += sz + spacing; // Square + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f); x += sz + spacing; // Square with all rounded corners + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f, corners_tl_br); x += sz + spacing; // Square with two rounded corners + draw_list->AddTriangleFilled(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col); x += sz + spacing; // Triangle + //draw_list->AddTriangleFilled(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col); x += sz*0.4f + spacing; // Thin triangle + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + thickness), col); x += sz + spacing; // Horizontal line (faster than AddLine, but only handle integer thickness) + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + thickness, y + sz), col); x += spacing * 2.0f;// Vertical line (faster than AddLine, but only handle integer thickness) + draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + 1, y + 1), col); x += sz; // Pixel (faster than AddLine) + draw_list->AddRectFilledMultiColor(ImVec2(x, y), ImVec2(x + sz, y + sz), IM_COL32(0, 0, 0, 255), IM_COL32(255, 0, 0, 255), IM_COL32(255, 255, 0, 255), IM_COL32(0, 255, 0, 255)); + + ImGui::Dummy(ImVec2((sz + spacing) * 8.8f, (sz + spacing) * 3.0f)); + ImGui::PopItemWidth(); + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("Canvas")) + { + static ImVector points; + static ImVec2 scrolling(0.0f, 0.0f); + static bool opt_enable_grid = true; + static bool opt_enable_context_menu = true; + static bool adding_line = false; + + ImGui::Checkbox("Enable grid", &opt_enable_grid); + ImGui::Checkbox("Enable context menu", &opt_enable_context_menu); + ImGui::Text("Mouse Left: drag to add lines,\nMouse Right: drag to scroll, click for context menu."); + + // Typically you would use a BeginChild()/EndChild() pair to benefit from a clipping region + own scrolling. + // Here we demonstrate that this can be replaced by simple offsetting + custom drawing + PushClipRect/PopClipRect() calls. + // To use a child window instead we could use, e.g: + // ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); // Disable padding + // ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 50, 50, 255)); // Set a background color + // ImGui::BeginChild("canvas", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_NoMove); + // ImGui::PopStyleColor(); + // ImGui::PopStyleVar(); + // [...] + // ImGui::EndChild(); + + // Using InvisibleButton() as a convenience 1) it will advance the layout cursor and 2) allows us to use IsItemHovered()/IsItemActive() + ImVec2 canvas_p0 = ImGui::GetCursorScreenPos(); // ImDrawList API uses screen coordinates! + ImVec2 canvas_sz = ImGui::GetContentRegionAvail(); // Resize canvas to what's available + if (canvas_sz.x < 50.0f) canvas_sz.x = 50.0f; + if (canvas_sz.y < 50.0f) canvas_sz.y = 50.0f; + ImVec2 canvas_p1 = ImVec2(canvas_p0.x + canvas_sz.x, canvas_p0.y + canvas_sz.y); + + // Draw border and background color + ImGuiIO& io = ImGui::GetIO(); + ImDrawList* draw_list = ImGui::GetWindowDrawList(); + draw_list->AddRectFilled(canvas_p0, canvas_p1, IM_COL32(50, 50, 50, 255)); + draw_list->AddRect(canvas_p0, canvas_p1, IM_COL32(255, 255, 255, 255)); + + // This will catch our interactions + ImGui::InvisibleButton("canvas", canvas_sz, ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight); + const bool is_hovered = ImGui::IsItemHovered(); // Hovered + const bool is_active = ImGui::IsItemActive(); // Held + const ImVec2 origin(canvas_p0.x + scrolling.x, canvas_p0.y + scrolling.y); // Lock scrolled origin + const ImVec2 mouse_pos_in_canvas(io.MousePos.x - origin.x, io.MousePos.y - origin.y); + + // Add first and second point + if (is_hovered && !adding_line && ImGui::IsMouseClicked(ImGuiMouseButton_Left)) + { + points.push_back(mouse_pos_in_canvas); + points.push_back(mouse_pos_in_canvas); + adding_line = true; + } + if (adding_line) + { + points.back() = mouse_pos_in_canvas; + if (!ImGui::IsMouseDown(ImGuiMouseButton_Left)) + adding_line = false; + } + + // Pan (we use a zero mouse threshold when there's no context menu) + // You may decide to make that threshold dynamic based on whether the mouse is hovering something etc. + const float mouse_threshold_for_pan = opt_enable_context_menu ? -1.0f : 0.0f; + if (is_active && ImGui::IsMouseDragging(ImGuiMouseButton_Right, mouse_threshold_for_pan)) + { + scrolling.x += io.MouseDelta.x; + scrolling.y += io.MouseDelta.y; + } + + // Context menu (under default mouse threshold) + ImVec2 drag_delta = ImGui::GetMouseDragDelta(ImGuiMouseButton_Right); + if (opt_enable_context_menu && ImGui::IsMouseReleased(ImGuiMouseButton_Right) && drag_delta.x == 0.0f && drag_delta.y == 0.0f) + ImGui::OpenPopupOnItemClick("context"); + if (ImGui::BeginPopup("context")) + { + if (adding_line) + points.resize(points.menu_size() - 2); + adding_line = false; + if (ImGui::MenuItem("Remove one", NULL, false, points.Size > 0)) { points.resize(points.menu_size() - 2); } + if (ImGui::MenuItem("Remove all", NULL, false, points.Size > 0)) { points.clear(); } + ImGui::EndPopup(); + } + + // Draw grid + all lines in the canvas + draw_list->PushClipRect(canvas_p0, canvas_p1, true); + if (opt_enable_grid) + { + const float GRID_STEP = 64.0f; + for (float x = fmodf(scrolling.x, GRID_STEP); x < canvas_sz.x; x += GRID_STEP) + draw_list->AddLine(ImVec2(canvas_p0.x + x, canvas_p0.y), ImVec2(canvas_p0.x + x, canvas_p1.y), IM_COL32(200, 200, 200, 40)); + for (float y = fmodf(scrolling.y, GRID_STEP); y < canvas_sz.y; y += GRID_STEP) + draw_list->AddLine(ImVec2(canvas_p0.x, canvas_p0.y + y), ImVec2(canvas_p1.x, canvas_p0.y + y), IM_COL32(200, 200, 200, 40)); + } + for (int n = 0; n < points.Size; n += 2) + draw_list->AddLine(ImVec2(origin.x + points[n].x, origin.y + points[n].y), ImVec2(origin.x + points[n + 1].x, origin.y + points[n + 1].y), IM_COL32(255, 255, 0, 255), 2.0f); + draw_list->PopClipRect(); + + ImGui::EndTabItem(); + } + + if (ImGui::BeginTabItem("BG/FG draw lists")) + { + static bool draw_bg = true; + static bool draw_fg = true; + ImGui::Checkbox("Draw in Background draw list", &draw_bg); + ImGui::SameLine(); HelpMarker("The Background draw list will be rendered below every Dear ImGui windows."); + ImGui::Checkbox("Draw in Foreground draw list", &draw_fg); + ImGui::SameLine(); HelpMarker("The Foreground draw list will be rendered over every Dear ImGui windows."); + ImVec2 window_pos = ImGui::GetWindowPos(); + ImVec2 window_size = ImGui::GetWindowSize(); + ImVec2 window_center = ImVec2(window_pos.x + window_size.x * 0.5f, window_pos.y + window_size.y * 0.5f); + if (draw_bg) + ImGui::GetBackgroundDrawList()->AddCircle(window_center, window_size.x * 0.6f, IM_COL32(255, 0, 0, 200), 0, 10 + 4); + if (draw_fg) + ImGui::GetForegroundDrawList()->AddCircle(window_center, window_size.y * 0.6f, IM_COL32(0, 255, 0, 200), 0, 10); + ImGui::EndTabItem(); + } + + ImGui::EndTabBar(); + } + + ImGui::End(); +} + +//----------------------------------------------------------------------------- +// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() +//----------------------------------------------------------------------------- + +// Simplified structure to mimic a Document model +struct MyDocument +{ + const char* Name; // Document title + bool Open; // Set when open (we keep an array of all available documents to simplify demo code!) + bool OpenPrev; // Copy of Open from last update. + bool Dirty; // Set when the document has been modified + bool WantClose; // Set when the document + ImVec4 Color; // An arbitrary variable associated to the document + + MyDocument(const char* name, bool open = true, const ImVec4& color = ImVec4(1.0f, 1.0f, 1.0f, 1.0f)) + { + Name = name; + Open = OpenPrev = open; + Dirty = false; + WantClose = false; + Color = color; + } + void DoOpen() { Open = true; } + void DoQueueClose() { WantClose = true; } + void DoForceClose() { Open = false; Dirty = false; } + void DoSave() { Dirty = false; } + + // Display placeholder contents for the Document + static void DisplayContents(MyDocument* doc) + { + ImGui::PushID(doc); + ImGui::Text("Document \"%s\"", doc->Name); + ImGui::PushStyleColor(ImGuiCol_Text, doc->Color); + ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); + ImGui::PopStyleColor(); + if (ImGui::Button("Modify", ImVec2(100, 0))) + doc->Dirty = true; + ImGui::SameLine(); + if (ImGui::Button("Save", ImVec2(100, 0))) + doc->DoSave(); + ImGui::ColorEdit3("color", &doc->Color.x); // Useful to test drag and drop and hold-dragged-to-open-tab behavior. + ImGui::PopID(); + } + + // Display context menu for the Document + static void DisplayContextMenu(MyDocument* doc) + { + if (!ImGui::BeginPopupContextItem()) + return; + + char buf[256]; + sprintf(buf, "Save %s", doc->Name); + if (ImGui::MenuItem(buf, "CTRL+S", false, doc->Open)) + doc->DoSave(); + if (ImGui::MenuItem("Close", "CTRL+W", false, doc->Open)) + doc->DoQueueClose(); + ImGui::EndPopup(); + } +}; + +struct ExampleAppDocuments +{ + ImVector Documents; + + ExampleAppDocuments() + { + Documents.push_back(MyDocument("Lettuce", true, ImVec4(0.4f, 0.8f, 0.4f, 1.0f))); + Documents.push_back(MyDocument("Eggplant", true, ImVec4(0.8f, 0.5f, 1.0f, 1.0f))); + Documents.push_back(MyDocument("Carrot", true, ImVec4(1.0f, 0.8f, 0.5f, 1.0f))); + Documents.push_back(MyDocument("Tomato", false, ImVec4(1.0f, 0.3f, 0.4f, 1.0f))); + Documents.push_back(MyDocument("A Rather Long Title", false)); + Documents.push_back(MyDocument("Some Document", false)); + } +}; + +// [Optional] Notify the system of Tabs/Windows closure that happened outside the regular tab interface. +// If a tab has been closed programmatically (aka closed from another source such as the Checkbox() in the demo, +// as opposed to clicking on the regular tab closing button) and stops being submitted, it will take a frame for +// the tab bar to notice its absence. During this frame there will be a gap in the tab bar, and if the tab that has +// disappeared was the selected one, the tab bar will report no selected tab during the frame. This will effectively +// give the impression of a flicker for one frame. +// We call SetTabItemClosed() to manually notify the Tab Bar or Docking system of removed tabs to avoid this glitch. +// Note that this completely optional, and only affect tab bars with the ImGuiTabBarFlags_Reorderable flag. +static void NotifyOfDocumentsClosedElsewhere(ExampleAppDocuments& app) +{ + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open && doc->OpenPrev) + ImGui::SetTabItemClosed(doc->Name); + doc->OpenPrev = doc->Open; + } +} + +void ShowExampleAppDocuments(bool* p_open) +{ + static ExampleAppDocuments app; + + // Options + static bool opt_reorderable = true; + static ImGuiTabBarFlags opt_fitting_flags = ImGuiTabBarFlags_FittingPolicyDefault_; + + bool window_contents_visible = ImGui::Begin("Example: Documents", p_open, ImGuiWindowFlags_MenuBar); + if (!window_contents_visible) + { + ImGui::End(); + return; + } + + // Menu + if (ImGui::BeginMenuBar()) + { + if (ImGui::BeginMenu("File")) + { + int open_count = 0; + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + open_count += app.Documents[doc_n].Open ? 1 : 0; + + if (ImGui::BeginMenu("Open", open_count < app.Documents.Size)) + { + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open) + if (ImGui::MenuItem(doc->Name)) + doc->DoOpen(); + } + ImGui::EndMenu(); + } + if (ImGui::MenuItem("Close All Documents", NULL, false, open_count > 0)) + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + app.Documents[doc_n].DoQueueClose(); + if (ImGui::MenuItem("Exit", "Alt+F4")) {} + ImGui::EndMenu(); + } + ImGui::EndMenuBar(); + } + + // [Debug] List documents with one checkbox for each + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (doc_n > 0) + ImGui::SameLine(); + ImGui::PushID(doc); + if (ImGui::Checkbox(doc->Name, &doc->Open)) + if (!doc->Open) + doc->DoForceClose(); + ImGui::PopID(); + } + + ImGui::Separator(); + + // Submit Tab Bar and Tabs + { + ImGuiTabBarFlags tab_bar_flags = (opt_fitting_flags) | (opt_reorderable ? ImGuiTabBarFlags_Reorderable : 0); + if (ImGui::BeginTabBar("##tabs", tab_bar_flags)) + { + if (opt_reorderable) + NotifyOfDocumentsClosedElsewhere(app); + + // [DEBUG] Stress tests + //if ((ImGui::GetFrameCount() % 30) == 0) docs[1].Open ^= 1; // [DEBUG] Automatically show/hide a tab. Test various interactions e.g. dragging with this on. + //if (ImGui::GetIO().KeyCtrl) ImGui::SetTabItemSelected(docs[1].Name); // [DEBUG] Test SetTabItemSelected(), probably not very useful as-is anyway.. + + // Submit Tabs + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (!doc->Open) + continue; + + ImGuiTabItemFlags tab_flags = (doc->Dirty ? ImGuiTabItemFlags_UnsavedDocument : 0); + bool visible = ImGui::BeginTabItem(doc->Name, &doc->Open, tab_flags); + + // Cancel attempt to close when unsaved add to save queue so we can display a popup. + if (!doc->Open && doc->Dirty) + { + doc->Open = true; + doc->DoQueueClose(); + } + + MyDocument::DisplayContextMenu(doc); + if (visible) + { + MyDocument::DisplayContents(doc); + ImGui::EndTabItem(); + } + } + + ImGui::EndTabBar(); + } + } + + // Update closing queue + static ImVector close_queue; + if (close_queue.empty()) + { + // Close queue is locked once we started a popup + for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) + { + MyDocument* doc = &app.Documents[doc_n]; + if (doc->WantClose) + { + doc->WantClose = false; + close_queue.push_back(doc); + } + } + } + + // Display closing confirmation UI + if (!close_queue.empty()) + { + int close_queue_unsaved_documents = 0; + for (int n = 0; n < close_queue.Size; n++) + if (close_queue[n]->Dirty) + close_queue_unsaved_documents++; + + if (close_queue_unsaved_documents == 0) + { + // Close documents when all are unsaved + for (int n = 0; n < close_queue.Size; n++) + close_queue[n]->DoForceClose(); + close_queue.clear(); + } + else + { + if (!ImGui::IsPopupOpen("Save?")) + ImGui::OpenPopup("Save?"); + if (ImGui::BeginPopupModal("Save?")) + { + ImGui::Text("Save change to the following items?"); + ImGui::SetNextItemWidth(-1.0f); + if (ImGui::ListBoxHeader("##", close_queue_unsaved_documents, 6)) + { + for (int n = 0; n < close_queue.Size; n++) + if (close_queue[n]->Dirty) + ImGui::Text("%s", close_queue[n]->Name); + ImGui::ListBoxFooter(); + } + + if (ImGui::Button("Yes", ImVec2(80, 0))) + { + for (int n = 0; n < close_queue.Size; n++) + { + if (close_queue[n]->Dirty) + close_queue[n]->DoSave(); + close_queue[n]->DoForceClose(); + } + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::SameLine(); + if (ImGui::Button("No", ImVec2(80, 0))) + { + for (int n = 0; n < close_queue.Size; n++) + close_queue[n]->DoForceClose(); + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::SameLine(); + if (ImGui::Button("Cancel", ImVec2(80, 0))) + { + close_queue.clear(); + ImGui::CloseCurrentPopup(); + } + ImGui::EndPopup(); + } + } + } + + ImGui::End(); +} + +// End of Demo code +#else + +void ImGui::ShowAboutWindow(bool*) {} +void ImGui::ShowDemoWindow(bool*) {} +void ImGui::ShowUserGuide() {} +void ImGui::ShowStyleEditor(ImGuiStyle*) {} + +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/CheatMenu/external/imgui/imgui_draw.cpp b/CheatMenu/external/imgui/imgui_draw.cpp new file mode 100644 index 0000000..6c6ef8d --- /dev/null +++ b/CheatMenu/external/imgui/imgui_draw.cpp @@ -0,0 +1,3804 @@ +// dear imgui, v1.79 +// (drawing and font code) + +/* + +Index of this file: + +// [SECTION] STB libraries implementation +// [SECTION] Style functions +// [SECTION] ImDrawList +// [SECTION] ImDrawListSplitter +// [SECTION] ImDrawData +// [SECTION] Helpers ShadeVertsXXX functions +// [SECTION] ImFontConfig +// [SECTION] ImFontAtlas +// [SECTION] ImFontAtlas glyph ranges helpers +// [SECTION] ImFontGlyphRangesBuilder +// [SECTION] ImFont +// [SECTION] ImGui Internal Render Helpers +// [SECTION] Decompression code +// [SECTION] Default font data (ProggyClean.ttf) + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif +#include "imgui_internal.h" + +#include // vsnprintf, sscanf, printf +#if !defined(alloca) +#if defined(__GLIBC__) || defined(__sun) || defined(__APPLE__) || defined(__NEWLIB__) +#include // alloca (glibc uses . Note that Cygwin may have _WIN32 defined, so the order matters here) +#elif defined(_WIN32) +#include // alloca +#if !defined(alloca) +#define alloca _alloca // for clang with MS Codegen +#endif +#else +#include // alloca +#endif +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok. +#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wcomma" // warning: possible misuse of comma operator here +#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used +#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function +#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value +#pragma GCC diagnostic ignored "-Wstack-protector" // warning: stack protector not protecting local variables: variable length buffer +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries implementation +//------------------------------------------------------------------------- + +// Compile time options: +//#define IMGUI_STB_NAMESPACE ImStb +//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" +//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" +//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION + +#ifdef IMGUI_STB_NAMESPACE +namespace IMGUI_STB_NAMESPACE +{ +#endif + +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4456) // declaration of 'xx' hides previous local declaration +#endif + +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-function" +#pragma clang diagnostic ignored "-Wmissing-prototypes" +#pragma clang diagnostic ignored "-Wimplicit-fallthrough" +#pragma clang diagnostic ignored "-Wcast-qual" // warning: cast from 'const xxxx *' to 'xxx *' drops const qualifier +#endif + +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wtype-limits" // warning: comparison is always true due to limited range of data type [-Wtype-limits] +#pragma GCC diagnostic ignored "-Wcast-qual" // warning: cast from type 'const xxxx *' to type 'xxxx *' casts away qualifiers +#endif + +#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION +#define STBRP_STATIC +#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) +#define STBRP_SORT ImQsort +#define STB_RECT_PACK_IMPLEMENTATION +#endif +#ifdef IMGUI_STB_RECT_PACK_FILENAME +#include IMGUI_STB_RECT_PACK_FILENAME +#else +#include "imstb_rectpack.h" +#endif +#endif + +#ifndef STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) +#ifndef IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION +#define STBTT_malloc(x,u) ((void)(u), IM_ALLOC(x)) +#define STBTT_free(x,u) ((void)(u), IM_FREE(x)) +#define STBTT_assert(x) do { IM_ASSERT(x); } while(0) +#define STBTT_fmod(x,y) ImFmod(x,y) +#define STBTT_sqrt(x) ImSqrt(x) +#define STBTT_pow(x,y) ImPow(x,y) +#define STBTT_fabs(x) ImFabs(x) +#define STBTT_ifloor(x) ((int)ImFloorStd(x)) +#define STBTT_iceil(x) ((int)ImCeil(x)) +#define STBTT_STATIC +#define STB_TRUETYPE_IMPLEMENTATION +#else +#define STBTT_DEF extern +#endif +#ifdef IMGUI_STB_TRUETYPE_FILENAME +#include IMGUI_STB_TRUETYPE_FILENAME +#else +#include "imstb_truetype.h" +#endif +#endif + +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + +#if defined(_MSC_VER) +#pragma warning (pop) +#endif + +#ifdef IMGUI_STB_NAMESPACE +} // namespace ImStb +using namespace IMGUI_STB_NAMESPACE; +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Style functions +//----------------------------------------------------------------------------- + +void ImGui::StyleColorsDark(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.06f, 0.06f, 0.94f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f); + colors[ImGuiCol_Border] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.29f, 0.48f, 0.54f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.04f, 0.04f, 0.04f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.16f, 0.29f, 0.48f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.00f, 0.00f, 0.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.51f, 0.51f, 0.51f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.24f, 0.52f, 0.88f, 1.00f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = colors[ImGuiCol_Border]; + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.10f, 0.40f, 0.75f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.10f, 0.40f, 0.75f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.25f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f); +} + +void ImGui::StyleColorsClassic(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.70f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(0.11f, 0.11f, 0.14f, 0.92f); + colors[ImGuiCol_Border] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(0.43f, 0.43f, 0.43f, 0.39f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.47f, 0.47f, 0.69f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.42f, 0.41f, 0.64f, 0.69f); + colors[ImGuiCol_TitleBg] = ImVec4(0.27f, 0.27f, 0.54f, 0.83f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.32f, 0.32f, 0.63f, 0.87f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.40f, 0.40f, 0.80f, 0.20f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.40f, 0.40f, 0.55f, 0.80f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.25f, 0.30f, 0.60f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.40f, 0.40f, 0.80f, 0.30f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.40f, 0.40f, 0.80f, 0.40f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_CheckMark] = ImVec4(0.90f, 0.90f, 0.90f, 0.50f); + colors[ImGuiCol_SliderGrab] = ImVec4(1.00f, 1.00f, 1.00f, 0.30f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.35f, 0.40f, 0.61f, 0.62f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.40f, 0.48f, 0.71f, 0.79f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.46f, 0.54f, 0.80f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.40f, 0.40f, 0.90f, 0.45f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.45f, 0.45f, 0.90f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.53f, 0.53f, 0.87f, 0.80f); + colors[ImGuiCol_Separator] = ImVec4(0.50f, 0.50f, 0.50f, 0.60f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.60f, 0.60f, 0.70f, 1.00f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.70f, 0.70f, 0.90f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(1.00f, 1.00f, 1.00f, 0.16f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.78f, 0.82f, 1.00f, 0.60f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.78f, 0.82f, 1.00f, 0.90f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_PlotLines] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.00f, 0.00f, 1.00f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +// Those light colors are better suited with a thicker font than the default one + FrameBorder +void ImGui::StyleColorsLight(ImGuiStyle* dst) +{ + ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); + ImVec4* colors = style->Colors; + + colors[ImGuiCol_Text] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); + colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); + colors[ImGuiCol_WindowBg] = ImVec4(0.94f, 0.94f, 0.94f, 1.00f); + colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_PopupBg] = ImVec4(1.00f, 1.00f, 1.00f, 0.98f); + colors[ImGuiCol_Border] = ImVec4(0.00f, 0.00f, 0.00f, 0.30f); + colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); + colors[ImGuiCol_FrameBg] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); + colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_TitleBg] = ImVec4(0.96f, 0.96f, 0.96f, 1.00f); + colors[ImGuiCol_TitleBgActive] = ImVec4(0.82f, 0.82f, 0.82f, 1.00f); + colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 1.00f, 1.00f, 0.51f); + colors[ImGuiCol_MenuBarBg] = ImVec4(0.86f, 0.86f, 0.86f, 1.00f); + colors[ImGuiCol_ScrollbarBg] = ImVec4(0.98f, 0.98f, 0.98f, 0.53f); + colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.69f, 0.69f, 0.69f, 0.80f); + colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.49f, 0.49f, 0.49f, 0.80f); + colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.49f, 0.49f, 0.49f, 1.00f); + colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_SliderGrab] = ImVec4(0.26f, 0.59f, 0.98f, 0.78f); + colors[ImGuiCol_SliderGrabActive] = ImVec4(0.46f, 0.54f, 0.80f, 0.60f); + colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); + colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); + colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); + colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); + colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); + colors[ImGuiCol_Separator] = ImVec4(0.39f, 0.39f, 0.39f, 0.62f); + colors[ImGuiCol_SeparatorHovered] = ImVec4(0.14f, 0.44f, 0.80f, 0.78f); + colors[ImGuiCol_SeparatorActive] = ImVec4(0.14f, 0.44f, 0.80f, 1.00f); + colors[ImGuiCol_ResizeGrip] = ImVec4(0.80f, 0.80f, 0.80f, 0.56f); + colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); + colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.90f); + colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); + colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); + colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); + colors[ImGuiCol_PlotLines] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f); + colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); + colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); + colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.45f, 0.00f, 1.00f); + colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); + colors[ImGuiCol_DragDropTarget] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); + colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; + colors[ImGuiCol_NavWindowingHighlight] = ImVec4(0.70f, 0.70f, 0.70f, 0.70f); + colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.20f); + colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList +//----------------------------------------------------------------------------- + +ImDrawListSharedData::ImDrawListSharedData() +{ + Font = NULL; + FontSize = 0.0f; + CurveTessellationTol = 0.0f; + CircleSegmentMaxError = 0.0f; + ClipRectFullscreen = ImVec4(-8192.0f, -8192.0f, +8192.0f, +8192.0f); + InitialFlags = ImDrawListFlags_None; + + // Lookup tables + for (int i = 0; i < IM_ARRAYSIZE(ArcFastVtx); i++) + { + const float a = ((float)i * 2 * IM_PI) / (float)IM_ARRAYSIZE(ArcFastVtx); + ArcFastVtx[i] = ImVec2(ImCos(a), ImSin(a)); + } + memset(CircleSegmentCounts, 0, sizeof(CircleSegmentCounts)); // This will be set by SetCircleSegmentMaxError() + TexUvLines = NULL; +} + +void ImDrawListSharedData::SetCircleSegmentMaxError(float max_error) +{ + if (CircleSegmentMaxError == max_error) + return; + CircleSegmentMaxError = max_error; + for (int i = 0; i < IM_ARRAYSIZE(CircleSegmentCounts); i++) + { + const float radius = i + 1.0f; + const int segment_count = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError); + CircleSegmentCounts[i] = (ImU8)ImMin(segment_count, 255); + } +} + +// Initialize before use in a new frame. We always have a command ready in the buffer. +void ImDrawList::_ResetForNewFrame() +{ + // Verify that the ImDrawCmd fields we want to memcmp() are contiguous in memory. + // (those should be IM_STATIC_ASSERT() in theory but with our pre C++11 setup the whole check doesn't compile with GCC) + IM_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); + IM_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); + IM_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); + + CmdBuffer.resize(0); + IdxBuffer.resize(0); + VtxBuffer.resize(0); + Flags = _Data->InitialFlags; + memset(&_CmdHeader, 0, sizeof(_CmdHeader)); + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.resize(0); + _TextureIdStack.resize(0); + _Path.resize(0); + _Splitter.Clear(); + CmdBuffer.push_back(ImDrawCmd()); +} + +void ImDrawList::_ClearFreeMemory() +{ + CmdBuffer.clear(); + IdxBuffer.clear(); + VtxBuffer.clear(); + Flags = ImDrawListFlags_None; + _VtxCurrentIdx = 0; + _VtxWritePtr = NULL; + _IdxWritePtr = NULL; + _ClipRectStack.clear(); + _TextureIdStack.clear(); + _Path.clear(); + _Splitter.ClearFreeMemory(); +} + +ImDrawList* ImDrawList::CloneOutput() const +{ + ImDrawList* dst = IM_NEW(ImDrawList(_Data)); + dst->CmdBuffer = CmdBuffer; + dst->IdxBuffer = IdxBuffer; + dst->VtxBuffer = VtxBuffer; + dst->Flags = Flags; + return dst; +} + +void ImDrawList::AddDrawCmd() +{ + ImDrawCmd draw_cmd; + draw_cmd.ClipRect = _CmdHeader.ClipRect; // Same as calling ImDrawCmd_HeaderCopy() + draw_cmd.TextureId = _CmdHeader.TextureId; + draw_cmd.VtxOffset = _CmdHeader.VtxOffset; + draw_cmd.IdxOffset = IdxBuffer.Size; + + IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w); + CmdBuffer.push_back(draw_cmd); +} + +// Pop trailing draw command (used before merging or presenting to user) +// Note that this leaves the ImDrawList in a state unfit for further commands, as most code assume that CmdBuffer.Size > 0 && CmdBuffer.back().UserCallback == NULL +void ImDrawList::_PopUnusedDrawCmd() +{ + if (CmdBuffer.Size == 0) + return; + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount == 0 && curr_cmd->UserCallback == NULL) + CmdBuffer.pop_back(); +} + +void ImDrawList::AddCallback(ImDrawCallback callback, void* callback_data) +{ + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + IM_ASSERT(curr_cmd->UserCallback == NULL); + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + } + curr_cmd->UserCallback = callback; + curr_cmd->UserCallbackData = callback_data; + + AddDrawCmd(); // Force a new command after us (see comment below) +} + +// Compare ClipRect, TextureId and VtxOffset with a single memcmp() +#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) +#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset +#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset + +// Our scheme may appears a bit unusual, basically we want the most-common calls AddLine AddRect etc. to not have to perform any check so we always have a command ready in the stack. +// The cost of figuring out if a new command has to be added or if we can merge is paid in those Update** functions only. +void ImDrawList::_OnChangedClipRect() +{ + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && memcmp(&curr_cmd->ClipRect, &_CmdHeader.ClipRect, sizeof(ImVec4)) != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->ClipRect = _CmdHeader.ClipRect; +} + +void ImDrawList::_OnChangedTextureID() +{ + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount != 0 && curr_cmd->TextureId != _CmdHeader.TextureId) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + + // Try to merge with previous command if it matches, else use current command + ImDrawCmd* prev_cmd = curr_cmd - 1; + if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && prev_cmd->UserCallback == NULL) + { + CmdBuffer.pop_back(); + return; + } + + curr_cmd->TextureId = _CmdHeader.TextureId; +} + +void ImDrawList::_OnChangedVtxOffset() +{ + // We don't need to compare curr_cmd->VtxOffset != _CmdHeader.VtxOffset because we know it'll be different at the time we call this. + _VtxCurrentIdx = 0; + ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + //IM_ASSERT(curr_cmd->VtxOffset != _CmdHeader.VtxOffset); // See #3349 + if (curr_cmd->ElemCount != 0) + { + AddDrawCmd(); + return; + } + IM_ASSERT(curr_cmd->UserCallback == NULL); + curr_cmd->VtxOffset = _CmdHeader.VtxOffset; +} + +// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) +void ImDrawList::PushClipRect(ImVec2 cr_min, ImVec2 cr_max, bool intersect_with_current_clip_rect) +{ + ImVec4 cr(cr_min.x, cr_min.y, cr_max.x, cr_max.y); + if (intersect_with_current_clip_rect) + { + ImVec4 current = _CmdHeader.ClipRect; + if (cr.x < current.x) cr.x = current.x; + if (cr.y < current.y) cr.y = current.y; + if (cr.z > current.z) cr.z = current.z; + if (cr.w > current.w) cr.w = current.w; + } + cr.z = ImMax(cr.x, cr.z); + cr.w = ImMax(cr.y, cr.w); + + _ClipRectStack.push_back(cr); + _CmdHeader.ClipRect = cr; + _OnChangedClipRect(); +} + +void ImDrawList::PushClipRectFullScreen() +{ + PushClipRect(ImVec2(_Data->ClipRectFullscreen.x, _Data->ClipRectFullscreen.y), ImVec2(_Data->ClipRectFullscreen.z, _Data->ClipRectFullscreen.w)); +} + +void ImDrawList::PopClipRect() +{ + _ClipRectStack.pop_back(); + _CmdHeader.ClipRect = (_ClipRectStack.Size == 0) ? _Data->ClipRectFullscreen : _ClipRectStack.Data[_ClipRectStack.Size - 1]; + _OnChangedClipRect(); +} + +void ImDrawList::PushTextureID(ImTextureID texture_id) +{ + _TextureIdStack.push_back(texture_id); + _CmdHeader.TextureId = texture_id; + _OnChangedTextureID(); +} + +void ImDrawList::PopTextureID() +{ + _TextureIdStack.pop_back(); + _CmdHeader.TextureId = (_TextureIdStack.Size == 0) ? (ImTextureID)NULL : _TextureIdStack.Data[_TextureIdStack.Size - 1]; + _OnChangedTextureID(); +} + +// Reserve space for a number of vertices and indices. +// You must finish filling your reserved data before calling PrimReserve() again, as it may reallocate or +// submit the intermediate results. PrimUnreserve() can be used to release unused allocations. +void ImDrawList::PrimReserve(int idx_count, int vtx_count) +{ + // Large mesh support (when enabled) + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + if (sizeof(ImDrawIdx) == 2 && (_VtxCurrentIdx + vtx_count >= (1 << 16)) && (Flags & ImDrawListFlags_AllowVtxOffset)) + { + // FIXME: In theory we should be testing that vtx_count <64k here. + // In practice, RenderText() relies on reserving ahead for a worst case scenario so it is currently useful for us + // to not make that check until we rework the text functions to handle clipping and large horizontal lines better. + _CmdHeader.VtxOffset = VtxBuffer.Size; + _OnChangedVtxOffset(); + } + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount += idx_count; + + int vtx_buffer_old_size = VtxBuffer.Size; + VtxBuffer.resize(vtx_buffer_old_size + vtx_count); + _VtxWritePtr = VtxBuffer.Data + vtx_buffer_old_size; + + int idx_buffer_old_size = IdxBuffer.Size; + IdxBuffer.resize(idx_buffer_old_size + idx_count); + _IdxWritePtr = IdxBuffer.Data + idx_buffer_old_size; +} + +// Release the a number of reserved vertices/indices from the end of the last reservation made with PrimReserve(). +void ImDrawList::PrimUnreserve(int idx_count, int vtx_count) +{ + IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); + + ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; + draw_cmd->ElemCount -= idx_count; + VtxBuffer.shrink(VtxBuffer.Size - vtx_count); + IdxBuffer.shrink(IdxBuffer.Size - idx_count); +} + +// Fully unrolled with inline call to keep our debug builds decently fast. +void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv(_Data->TexUvWhitePixel); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimRectUV(const ImVec2& a, const ImVec2& c, const ImVec2& uv_a, const ImVec2& uv_c, ImU32 col) +{ + ImVec2 b(c.x, a.y), d(a.x, c.y), uv_b(uv_c.x, uv_a.y), uv_d(uv_a.x, uv_c.y); + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +void ImDrawList::PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col) +{ + ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; + _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); + _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); + _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + _VtxCurrentIdx += 4; + _IdxWritePtr += 6; +} + +// On AddPolyline() and AddConvexPolyFilled() we intentionally avoid using ImVec2 and superfluous function calls to optimize debug/non-inlined builds. +// Those macros expects l-values. +#define IM_NORMALIZE2F_OVER_ZERO(VX,VY) do { float d2 = VX*VX + VY*VY; if (d2 > 0.0f) { float inv_len = 1.0f / ImSqrt(d2); VX *= inv_len; VY *= inv_len; } } while (0) +#define IM_FIXNORMAL2F(VX,VY) do { float d2 = VX*VX + VY*VY; if (d2 < 0.5f) d2 = 0.5f; float inv_lensq = 1.0f / d2; VX *= inv_lensq; VY *= inv_lensq; } while (0) + +// TODO: Thickness anti-aliased lines cap are missing their AA fringe. +// We avoid using the ImVec2 math operators here to reduce cost to a minimum for debug/non-inlined builds. +void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, bool closed, float thickness) +{ + if (points_count < 2) + return; + + const ImVec2 opaque_uv = _Data->TexUvWhitePixel; + const int count = closed ? points_count : points_count - 1; // The number of line segments we need to draw + const bool thick_line = (thickness > 1.0f); + + if (Flags & ImDrawListFlags_AntiAliasedLines) + { + // Anti-aliased stroke + const float AA_SIZE = 1.0f; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + + // Thicknesses <1.0 should behave like thickness 1.0 + thickness = ImMax(thickness, 1.0f); + const int integer_thickness = (int)thickness; + const float fractional_thickness = thickness - integer_thickness; + + // Do we want to draw this line using a texture? + // - For now, only draw integer-width lines using textures to avoid issues with the way scaling occurs, could be improved. + // - If AA_SIZE is not 1.0f we cannot use the texture path. + const bool use_texture = (Flags & ImDrawListFlags_AntiAliasedLinesUseTex) && (integer_thickness < IM_DRAWLIST_TEX_LINES_WIDTH_MAX) && (fractional_thickness <= 0.00001f); + + // We should never hit this, because NewFrame() doesn't set ImDrawListFlags_AntiAliasedLinesUseTex unless ImFontAtlasFlags_NoBakedLines is off + IM_ASSERT_PARANOID(!use_texture || !(_Data->Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)); + + const int idx_count = use_texture ? (count * 6) : (thick_line ? count * 18 : count * 12); + const int vtx_count = use_texture ? (points_count * 2) : (thick_line ? points_count * 4 : points_count * 3); + PrimReserve(idx_count, vtx_count); + + // Temporary buffer + // The first items are normals at each line point, then after that there are either 2 or 4 temp points for each line point + ImVec2* temp_normals = (ImVec2*)alloca(points_count * ((use_texture || !thick_line) ? 3 : 5) * sizeof(ImVec2)); //-V630 + ImVec2* temp_points = temp_normals + points_count; + + // Calculate normals (tangents) for each line segment + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + float dx = points[i2].x - points[i1].x; + float dy = points[i2].y - points[i1].y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i1].x = dy; + temp_normals[i1].y = -dx; + } + if (!closed) + temp_normals[points_count - 1] = temp_normals[points_count - 2]; + + // If we are drawing a one-pixel-wide line without a texture, or a textured line of any width, we only need 2 or 3 vertices per point + if (use_texture || !thick_line) + { + // [PATH 1] Texture-based lines (thick or non-thick) + // [PATH 2] Non texture-based lines (non-thick) + + // The width of the geometry we need to draw - this is essentially pixels for the line itself, plus "one pixel" for AA. + // - In the texture-based path, we don't use AA_SIZE here because the +1 is tied to the generated texture + // (see ImFontAtlasBuildRenderLinesTexData() function), and so alternate values won't work without changes to that code. + // - In the non texture-based paths, we would allow AA_SIZE to potentially be != 1.0f with a patch (e.g. fringe_scale patch to + // allow scaling geometry while preserving one-screen-pixel AA fringe). + const float half_draw_size = use_texture ? ((thickness * 0.5f) + 1) : AA_SIZE; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + temp_points[0] = points[0] + temp_normals[0] * half_draw_size; + temp_points[1] = points[0] - temp_normals[0] * half_draw_size; + temp_points[(points_count-1)*2+0] = points[points_count-1] + temp_normals[points_count-1] * half_draw_size; + temp_points[(points_count-1)*2+1] = points[points_count-1] - temp_normals[points_count-1] * half_draw_size; + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; // i2 is the second point of the line segment + const unsigned int idx2 = ((i1 + 1) == points_count) ? _VtxCurrentIdx : (idx1 + (use_texture ? 2 : 3)); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= half_draw_size; // dm_x, dm_y are offset to the outer edge of the AA area + dm_y *= half_draw_size; + + // Add temporary vertexes for the outer edges + ImVec2* out_vtx = &temp_points[i2 * 2]; + out_vtx[0].x = points[i2].x + dm_x; + out_vtx[0].y = points[i2].y + dm_y; + out_vtx[1].x = points[i2].x - dm_x; + out_vtx[1].y = points[i2].y - dm_y; + + if (use_texture) + { + // Add indices for two triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 1); // Right tri + _IdxWritePtr[3] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[4] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Left tri + _IdxWritePtr += 6; + } + else + { + // Add indexes for four triangles + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); // Right tri 1 + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Right tri 2 + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); // Left tri 1 + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); // Left tri 2 + _IdxWritePtr += 12; + } + + idx1 = idx2; + } + + // Add vertexes for each point on the line + if (use_texture) + { + // If we're using textures we only need to emit the left/right edge vertices + ImVec4 tex_uvs = _Data->TexUvLines[integer_thickness]; + if (fractional_thickness != 0.0f) + { + const ImVec4 tex_uvs_1 = _Data->TexUvLines[integer_thickness + 1]; + tex_uvs.x = tex_uvs.x + (tex_uvs_1.x - tex_uvs.x) * fractional_thickness; // inlined ImLerp() + tex_uvs.y = tex_uvs.y + (tex_uvs_1.y - tex_uvs.y) * fractional_thickness; + tex_uvs.z = tex_uvs.z + (tex_uvs_1.z - tex_uvs.z) * fractional_thickness; + tex_uvs.w = tex_uvs.w + (tex_uvs_1.w - tex_uvs.w) * fractional_thickness; + } + ImVec2 tex_uv0(tex_uvs.x, tex_uvs.y); + ImVec2 tex_uv1(tex_uvs.z, tex_uvs.w); + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 2 + 0]; _VtxWritePtr[0].uv = tex_uv0; _VtxWritePtr[0].col = col; // Left-side outer edge + _VtxWritePtr[1].pos = temp_points[i * 2 + 1]; _VtxWritePtr[1].uv = tex_uv1; _VtxWritePtr[1].col = col; // Right-side outer edge + _VtxWritePtr += 2; + } + } + else + { + // If we're not using a texture, we need the center vertex as well + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; // Center of line + _VtxWritePtr[1].pos = temp_points[i * 2 + 0]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col_trans; // Left-side outer edge + _VtxWritePtr[2].pos = temp_points[i * 2 + 1]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col_trans; // Right-side outer edge + _VtxWritePtr += 3; + } + } + } + else + { + // [PATH 2] Non texture-based lines (thick): we need to draw the solid line core and thus require four vertices per point + const float half_inner_thickness = (thickness - AA_SIZE) * 0.5f; + + // If line is not closed, the first and last points need to be generated differently as there are no normals to blend + if (!closed) + { + const int points_last = points_count - 1; + temp_points[0] = points[0] + temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[1] = points[0] + temp_normals[0] * (half_inner_thickness); + temp_points[2] = points[0] - temp_normals[0] * (half_inner_thickness); + temp_points[3] = points[0] - temp_normals[0] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 0] = points[points_last] + temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + temp_points[points_last * 4 + 1] = points[points_last] + temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 2] = points[points_last] - temp_normals[points_last] * (half_inner_thickness); + temp_points[points_last * 4 + 3] = points[points_last] - temp_normals[points_last] * (half_inner_thickness + AA_SIZE); + } + + // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges + // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) + // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. + unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment + for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment + { + const int i2 = (i1 + 1) == points_count ? 0 : (i1 + 1); // i2 is the second point of the line segment + const unsigned int idx2 = (i1 + 1) == points_count ? _VtxCurrentIdx : (idx1 + 4); // Vertex index for end of segment + + // Average normals + float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; + float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + float dm_out_x = dm_x * (half_inner_thickness + AA_SIZE); + float dm_out_y = dm_y * (half_inner_thickness + AA_SIZE); + float dm_in_x = dm_x * half_inner_thickness; + float dm_in_y = dm_y * half_inner_thickness; + + // Add temporary vertices + ImVec2* out_vtx = &temp_points[i2 * 4]; + out_vtx[0].x = points[i2].x + dm_out_x; + out_vtx[0].y = points[i2].y + dm_out_y; + out_vtx[1].x = points[i2].x + dm_in_x; + out_vtx[1].y = points[i2].y + dm_in_y; + out_vtx[2].x = points[i2].x - dm_in_x; + out_vtx[2].y = points[i2].y - dm_in_y; + out_vtx[3].x = points[i2].x - dm_out_x; + out_vtx[3].y = points[i2].y - dm_out_y; + + // Add indexes + _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); + _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); + _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); + _IdxWritePtr[12] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[13] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[14] = (ImDrawIdx)(idx1 + 3); + _IdxWritePtr[15] = (ImDrawIdx)(idx1 + 3); _IdxWritePtr[16] = (ImDrawIdx)(idx2 + 3); _IdxWritePtr[17] = (ImDrawIdx)(idx2 + 2); + _IdxWritePtr += 18; + + idx1 = idx2; + } + + // Add vertices + for (int i = 0; i < points_count; i++) + { + _VtxWritePtr[0].pos = temp_points[i * 4 + 0]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col_trans; + _VtxWritePtr[1].pos = temp_points[i * 4 + 1]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos = temp_points[i * 4 + 2]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos = temp_points[i * 4 + 3]; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col_trans; + _VtxWritePtr += 4; + } + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // [PATH 4] Non texture-based, Non anti-aliased lines + const int idx_count = count * 6; + const int vtx_count = count * 4; // FIXME-OPT: Not sharing edges + PrimReserve(idx_count, vtx_count); + + for (int i1 = 0; i1 < count; i1++) + { + const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; + const ImVec2& p1 = points[i1]; + const ImVec2& p2 = points[i2]; + + float dx = p2.x - p1.x; + float dy = p2.y - p1.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + dx *= (thickness * 0.5f); + dy *= (thickness * 0.5f); + + _VtxWritePtr[0].pos.x = p1.x + dy; _VtxWritePtr[0].pos.y = p1.y - dx; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; + _VtxWritePtr[1].pos.x = p2.x + dy; _VtxWritePtr[1].pos.y = p2.y - dx; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; + _VtxWritePtr[2].pos.x = p2.x - dy; _VtxWritePtr[2].pos.y = p2.y + dx; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; + _VtxWritePtr[3].pos.x = p1.x - dy; _VtxWritePtr[3].pos.y = p1.y + dx; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col; + _VtxWritePtr += 4; + + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + 2); + _IdxWritePtr[3] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[4] = (ImDrawIdx)(_VtxCurrentIdx + 2); _IdxWritePtr[5] = (ImDrawIdx)(_VtxCurrentIdx + 3); + _IdxWritePtr += 6; + _VtxCurrentIdx += 4; + } + } +} + +// We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. +void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) +{ + if (points_count < 3) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + + if (Flags & ImDrawListFlags_AntiAliasedFill) + { + // Anti-aliased Fill + const float AA_SIZE = 1.0f; + const ImU32 col_trans = col & ~IM_COL32_A_MASK; + const int idx_count = (points_count - 2)*3 + points_count * 6; + const int vtx_count = (points_count * 2); + PrimReserve(idx_count, vtx_count); + + // Add indexes for fill + unsigned int vtx_inner_idx = _VtxCurrentIdx; + unsigned int vtx_outer_idx = _VtxCurrentIdx + 1; + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + ((i - 1) << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_inner_idx + (i << 1)); + _IdxWritePtr += 3; + } + + // Compute normals + ImVec2* temp_normals = (ImVec2*)alloca(points_count * sizeof(ImVec2)); //-V630 + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + const ImVec2& p0 = points[i0]; + const ImVec2& p1 = points[i1]; + float dx = p1.x - p0.x; + float dy = p1.y - p0.y; + IM_NORMALIZE2F_OVER_ZERO(dx, dy); + temp_normals[i0].x = dy; + temp_normals[i0].y = -dx; + } + + for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) + { + // Average normals + const ImVec2& n0 = temp_normals[i0]; + const ImVec2& n1 = temp_normals[i1]; + float dm_x = (n0.x + n1.x) * 0.5f; + float dm_y = (n0.y + n1.y) * 0.5f; + IM_FIXNORMAL2F(dm_x, dm_y); + dm_x *= AA_SIZE * 0.5f; + dm_y *= AA_SIZE * 0.5f; + + // Add vertices + _VtxWritePtr[0].pos.x = (points[i1].x - dm_x); _VtxWritePtr[0].pos.y = (points[i1].y - dm_y); _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; // Inner + _VtxWritePtr[1].pos.x = (points[i1].x + dm_x); _VtxWritePtr[1].pos.y = (points[i1].y + dm_y); _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col_trans; // Outer + _VtxWritePtr += 2; + + // Add indexes for fringes + _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + (i0 << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); + _IdxWritePtr[3] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); _IdxWritePtr[4] = (ImDrawIdx)(vtx_outer_idx + (i1 << 1)); _IdxWritePtr[5] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); + _IdxWritePtr += 6; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } + else + { + // Non Anti-aliased Fill + const int idx_count = (points_count - 2)*3; + const int vtx_count = points_count; + PrimReserve(idx_count, vtx_count); + for (int i = 0; i < vtx_count; i++) + { + _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; + _VtxWritePtr++; + } + for (int i = 2; i < points_count; i++) + { + _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + i - 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + i); + _IdxWritePtr += 3; + } + _VtxCurrentIdx += (ImDrawIdx)vtx_count; + } +} + +void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12) +{ + if (radius == 0.0f || a_min_of_12 > a_max_of_12) + { + _Path.push_back(center); + return; + } + + // For legacy reason the PathArcToFast() always takes angles where 2*PI is represented by 12, + // but it is possible to set IM_DRAWLIST_ARCFAST_TESSELATION_MULTIPLIER to a higher value. This should compile to a no-op otherwise. +#if IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER != 1 + a_min_of_12 *= IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER; + a_max_of_12 *= IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER; +#endif + + _Path.reserve(_Path.Size + (a_max_of_12 - a_min_of_12 + 1)); + for (int a = a_min_of_12; a <= a_max_of_12; a++) + { + const ImVec2& c = _Data->ArcFastVtx[a % IM_ARRAYSIZE(_Data->ArcFastVtx)]; + _Path.push_back(ImVec2(center.x + c.x * radius, center.y + c.y * radius)); + } +} + +void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) +{ + if (radius == 0.0f) + { + _Path.push_back(center); + return; + } + + // Note that we are adding a point at both a_min and a_max. + // If you are trying to draw a full closed circle you don't want the overlapping points! + _Path.reserve(_Path.Size + (num_segments + 1)); + for (int i = 0; i <= num_segments; i++) + { + const float a = a_min + ((float)i / (float)num_segments) * (a_max - a_min); + _Path.push_back(ImVec2(center.x + ImCos(a) * radius, center.y + ImSin(a) * radius)); + } +} + +ImVec2 ImBezierCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t) +{ + float u = 1.0f - t; + float w1 = u*u*u; + float w2 = 3*u*u*t; + float w3 = 3*u*t*t; + float w4 = t*t*t; + return ImVec2(w1*p1.x + w2*p2.x + w3*p3.x + w4*p4.x, w1*p1.y + w2*p2.y + w3*p3.y + w4*p4.y); +} + +// Closely mimics BezierClosestPointCasteljauStep() in imgui.cpp +static void PathBezierToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) +{ + float dx = x4 - x1; + float dy = y4 - y1; + float d2 = ((x2 - x4) * dy - (y2 - y4) * dx); + float d3 = ((x3 - x4) * dy - (y3 - y4) * dx); + d2 = (d2 >= 0) ? d2 : -d2; + d3 = (d3 >= 0) ? d3 : -d3; + if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) + { + path->push_back(ImVec2(x4, y4)); + } + else if (level < 10) + { + float x12 = (x1 + x2)*0.5f, y12 = (y1 + y2)*0.5f; + float x23 = (x2 + x3)*0.5f, y23 = (y2 + y3)*0.5f; + float x34 = (x3 + x4)*0.5f, y34 = (y3 + y4)*0.5f; + float x123 = (x12 + x23)*0.5f, y123 = (y12 + y23)*0.5f; + float x234 = (x23 + x34)*0.5f, y234 = (y23 + y34)*0.5f; + float x1234 = (x123 + x234)*0.5f, y1234 = (y123 + y234)*0.5f; + PathBezierToCasteljau(path, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); + PathBezierToCasteljau(path, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); + } +} + +void ImDrawList::PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments) +{ + ImVec2 p1 = _Path.back(); + if (num_segments == 0) + { + PathBezierToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, _Data->CurveTessellationTol, 0); // Auto-tessellated + } + else + { + float t_step = 1.0f / (float)num_segments; + for (int i_step = 1; i_step <= num_segments; i_step++) + _Path.push_back(ImBezierCalc(p1, p2, p3, p4, t_step * i_step)); + } +} + +void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDrawCornerFlags rounding_corners) +{ + rounding = ImMin(rounding, ImFabs(b.x - a.x) * ( ((rounding_corners & ImDrawCornerFlags_Top) == ImDrawCornerFlags_Top) || ((rounding_corners & ImDrawCornerFlags_Bot) == ImDrawCornerFlags_Bot) ? 0.5f : 1.0f ) - 1.0f); + rounding = ImMin(rounding, ImFabs(b.y - a.y) * ( ((rounding_corners & ImDrawCornerFlags_Left) == ImDrawCornerFlags_Left) || ((rounding_corners & ImDrawCornerFlags_Right) == ImDrawCornerFlags_Right) ? 0.5f : 1.0f ) - 1.0f); + + if (rounding <= 0.0f || rounding_corners == 0) + { + PathLineTo(a); + PathLineTo(ImVec2(b.x, a.y)); + PathLineTo(b); + PathLineTo(ImVec2(a.x, b.y)); + } + else + { + const float rounding_tl = (rounding_corners & ImDrawCornerFlags_TopLeft) ? rounding : 0.0f; + const float rounding_tr = (rounding_corners & ImDrawCornerFlags_TopRight) ? rounding : 0.0f; + const float rounding_br = (rounding_corners & ImDrawCornerFlags_BotRight) ? rounding : 0.0f; + const float rounding_bl = (rounding_corners & ImDrawCornerFlags_BotLeft) ? rounding : 0.0f; + PathArcToFast(ImVec2(a.x + rounding_tl, a.y + rounding_tl), rounding_tl, 6, 9); + PathArcToFast(ImVec2(b.x - rounding_tr, a.y + rounding_tr), rounding_tr, 9, 12); + PathArcToFast(ImVec2(b.x - rounding_br, b.y - rounding_br), rounding_br, 0, 3); + PathArcToFast(ImVec2(a.x + rounding_bl, b.y - rounding_bl), rounding_bl, 3, 6); + } +} + +void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + PathLineTo(p1 + ImVec2(0.5f, 0.5f)); + PathLineTo(p2 + ImVec2(0.5f, 0.5f)); + PathStroke(col, false, thickness); +} + +// p_min = upper-left, p_max = lower-right +// Note we don't render 1 pixels sized rectangles properly. +void ImDrawList::AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (Flags & ImDrawListFlags_AntiAliasedLines) + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.50f, 0.50f), rounding, rounding_corners); + else + PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.49f, 0.49f), rounding, rounding_corners); // Better looking lower-right corner and rounded non-AA shapes. + PathStroke(col, true, thickness); +} + +void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + if (rounding > 0.0f) + { + PathRect(p_min, p_max, rounding, rounding_corners); + PathFillConvex(col); + } + else + { + PrimReserve(6, 4); + PrimRect(p_min, p_max, col); + } +} + +// p_min = upper-left, p_max = lower-right +void ImDrawList::AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left) +{ + if (((col_upr_left | col_upr_right | col_bot_right | col_bot_left) & IM_COL32_A_MASK) == 0) + return; + + const ImVec2 uv = _Data->TexUvWhitePixel; + PrimReserve(6, 4); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 1)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); + PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 3)); + PrimWriteVtx(p_min, uv, col_upr_left); + PrimWriteVtx(ImVec2(p_max.x, p_min.y), uv, col_upr_right); + PrimWriteVtx(p_max, uv, col_bot_right); + PrimWriteVtx(ImVec2(p_min.x, p_max.y), uv, col_bot_left); +} + +void ImDrawList::AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathStroke(col, true, thickness); +} + +void ImDrawList::AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathLineTo(p4); + PathFillConvex(col); +} + +void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathStroke(col, true, thickness); +} + +void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathLineTo(p2); + PathLineTo(p3); + PathFillConvex(col); +} + +void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) + return; + + // Obtain segment count + if (num_segments <= 0) + { + // Automatic segment count + const int radius_idx = (int)radius - 1; + if (radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts)) + num_segments = _Data->CircleSegmentCounts[radius_idx]; // Use cached value + else + num_segments = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError); + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + } + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + if (num_segments == 12) + PathArcToFast(center, radius - 0.5f, 0, 12 - 1); + else + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + PathStroke(col, true, thickness); +} + +void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) + return; + + // Obtain segment count + if (num_segments <= 0) + { + // Automatic segment count + const int radius_idx = (int)radius - 1; + if (radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts)) + num_segments = _Data->CircleSegmentCounts[radius_idx]; // Use cached value + else + num_segments = IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError); + } + else + { + // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) + num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); + } + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + if (num_segments == 12) + PathArcToFast(center, radius, 0, 12 - 1); + else + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + PathFillConvex(col); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); + PathStroke(col, true, thickness); +} + +// Guaranteed to honor 'num_segments' +void ImDrawList::AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) + return; + + // Because we are filling a closed shape we remove 1 from the count of segments/points + const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; + PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); + PathFillConvex(col); +} + +// Cubic Bezier takes 4 controls points +void ImDrawList::AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + PathLineTo(p1); + PathBezierCurveTo(p2, p3, p4, num_segments); + PathStroke(col, false, thickness); +} + +void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (text_end == NULL) + text_end = text_begin + strlen(text_begin); + if (text_begin == text_end) + return; + + // Pull default font/size from the shared ImDrawListSharedData instance + if (font == NULL) + font = _Data->Font; + if (font_size == 0.0f) + font_size = _Data->FontSize; + + IM_ASSERT(font->ContainerAtlas->TexID == _CmdHeader.TextureId); // Use high-level ImGui::PushFont() or low-level ImDrawList::PushTextureId() to change font. + + ImVec4 clip_rect = _CmdHeader.ClipRect; + if (cpu_fine_clip_rect) + { + clip_rect.x = ImMax(clip_rect.x, cpu_fine_clip_rect->x); + clip_rect.y = ImMax(clip_rect.y, cpu_fine_clip_rect->y); + clip_rect.z = ImMin(clip_rect.z, cpu_fine_clip_rect->z); + clip_rect.w = ImMin(clip_rect.w, cpu_fine_clip_rect->w); + } + font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL); +} + +void ImDrawList::AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end) +{ + AddText(NULL, 0.0f, pos, col, text_begin, text_end); +} + +void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimRectUV(p_min, p_max, uv_min, uv_max, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1, const ImVec2& uv2, const ImVec2& uv3, const ImVec2& uv4, ImU32 col) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; + if (push_texture_id) + PushTextureID(user_texture_id); + + PrimReserve(6, 4); + PrimQuadUV(p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); + + if (push_texture_id) + PopTextureID(); +} + +void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners) +{ + if ((col & IM_COL32_A_MASK) == 0) + return; + + if (rounding <= 0.0f || (rounding_corners & ImDrawCornerFlags_All) == 0) + { + AddImage(user_texture_id, p_min, p_max, uv_min, uv_max, col); + return; + } + + const bool push_texture_id = _TextureIdStack.empty() || user_texture_id != _TextureIdStack.back(); + if (push_texture_id) + PushTextureID(user_texture_id); + + int vert_start_idx = VtxBuffer.Size; + PathRect(p_min, p_max, rounding, rounding_corners); + PathFillConvex(col); + int vert_end_idx = VtxBuffer.Size; + ImGui::ShadeVertsLinearUV(this, vert_start_idx, vert_end_idx, p_min, p_max, uv_min, uv_max, true); + + if (push_texture_id) + PopTextureID(); +} + + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawListSplitter +//----------------------------------------------------------------------------- +// FIXME: This may be a little confusing, trying to be a little too low-level/optimal instead of just doing vector swap.. +//----------------------------------------------------------------------------- + +void ImDrawListSplitter::ClearFreeMemory() +{ + for (int i = 0; i < _Channels.Size; i++) + { + if (i == _Current) + memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again + _Channels[i]._CmdBuffer.clear(); + _Channels[i]._IdxBuffer.clear(); + } + _Current = 0; + _Count = 1; + _Channels.clear(); +} + +void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) +{ + IM_ASSERT(_Current == 0 && _Count <= 1 && "Nested channel splitting is not supported. Please use separate instances of ImDrawListSplitter."); + int old_channels_count = _Channels.Size; + if (old_channels_count < channels_count) + _Channels.resize(channels_count); + _Count = channels_count; + + // Channels[] (24/32 bytes each) hold storage that we'll swap with draw_list->_CmdBuffer/_IdxBuffer + // The content of Channels[0] at this point doesn't matter. We clear it to make state tidy in a debugger but we don't strictly need to. + // When we switch to the next channel, we'll copy draw_list->_CmdBuffer/_IdxBuffer into Channels[0] and then Channels[1] into draw_list->CmdBuffer/_IdxBuffer + memset(&_Channels[0], 0, sizeof(ImDrawChannel)); + for (int i = 1; i < channels_count; i++) + { + if (i >= old_channels_count) + { + IM_PLACEMENT_NEW(&_Channels[i]) ImDrawChannel(); + } + else + { + _Channels[i]._CmdBuffer.resize(0); + _Channels[i]._IdxBuffer.resize(0); + } + if (_Channels[i]._CmdBuffer.Size == 0) + { + ImDrawCmd draw_cmd; + ImDrawCmd_HeaderCopy(&draw_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + _Channels[i]._CmdBuffer.push_back(draw_cmd); + } + } +} + +void ImDrawListSplitter::Merge(ImDrawList* draw_list) +{ + // Note that we never use or rely on _Channels.Size because it is merely a buffer that we never shrink back to 0 to keep all sub-buffers ready for use. + if (_Count <= 1) + return; + + SetCurrentChannel(draw_list, 0); + draw_list->_PopUnusedDrawCmd(); + + // Calculate our final buffer sizes. Also fix the incorrect IdxOffset values in each command. + int new_cmd_buffer_count = 0; + int new_idx_buffer_count = 0; + ImDrawCmd* last_cmd = (_Count > 0 && draw_list->CmdBuffer.Size > 0) ? &draw_list->CmdBuffer.back() : NULL; + int idx_offset = last_cmd ? last_cmd->IdxOffset + last_cmd->ElemCount : 0; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + + // Equivalent of PopUnusedDrawCmd() for this channel's cmdbuffer and except we don't need to test for UserCallback. + if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0) + ch._CmdBuffer.pop_back(); + + if (ch._CmdBuffer.Size > 0 && last_cmd != NULL) + { + ImDrawCmd* next_cmd = &ch._CmdBuffer[0]; + if (ImDrawCmd_HeaderCompare(last_cmd, next_cmd) == 0 && last_cmd->UserCallback == NULL && next_cmd->UserCallback == NULL) + { + // Merge previous channel last draw command with current channel first draw command if matching. + last_cmd->ElemCount += next_cmd->ElemCount; + idx_offset += next_cmd->ElemCount; + ch._CmdBuffer.erase(ch._CmdBuffer.Data); // FIXME-OPT: Improve for multiple merges. + } + } + if (ch._CmdBuffer.Size > 0) + last_cmd = &ch._CmdBuffer.back(); + new_cmd_buffer_count += ch._CmdBuffer.Size; + new_idx_buffer_count += ch._IdxBuffer.Size; + for (int cmd_n = 0; cmd_n < ch._CmdBuffer.Size; cmd_n++) + { + ch._CmdBuffer.Data[cmd_n].IdxOffset = idx_offset; + idx_offset += ch._CmdBuffer.Data[cmd_n].ElemCount; + } + } + draw_list->CmdBuffer.resize(draw_list->CmdBuffer.Size + new_cmd_buffer_count); + draw_list->IdxBuffer.resize(draw_list->IdxBuffer.Size + new_idx_buffer_count); + + // Write commands and indices in order (they are fairly small structures, we don't copy vertices only indices) + ImDrawCmd* cmd_write = draw_list->CmdBuffer.Data + draw_list->CmdBuffer.Size - new_cmd_buffer_count; + ImDrawIdx* idx_write = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size - new_idx_buffer_count; + for (int i = 1; i < _Count; i++) + { + ImDrawChannel& ch = _Channels[i]; + if (int sz = ch._CmdBuffer.Size) { memcpy(cmd_write, ch._CmdBuffer.Data, sz * sizeof(ImDrawCmd)); cmd_write += sz; } + if (int sz = ch._IdxBuffer.Size) { memcpy(idx_write, ch._IdxBuffer.Data, sz * sizeof(ImDrawIdx)); idx_write += sz; } + } + draw_list->_IdxWritePtr = idx_write; + + // Ensure there's always a non-callback draw command trailing the command-buffer + if (draw_list->CmdBuffer.Size == 0 || draw_list->CmdBuffer.back().UserCallback != NULL) + draw_list->AddDrawCmd(); + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); + + _Count = 1; +} + +void ImDrawListSplitter::SetCurrentChannel(ImDrawList* draw_list, int idx) +{ + IM_ASSERT(idx >= 0 && idx < _Count); + if (_Current == idx) + return; + + // Overwrite ImVector (12/16 bytes), four times. This is merely a silly optimization instead of doing .swap() + memcpy(&_Channels.Data[_Current]._CmdBuffer, &draw_list->CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&_Channels.Data[_Current]._IdxBuffer, &draw_list->IdxBuffer, sizeof(draw_list->IdxBuffer)); + _Current = idx; + memcpy(&draw_list->CmdBuffer, &_Channels.Data[idx]._CmdBuffer, sizeof(draw_list->CmdBuffer)); + memcpy(&draw_list->IdxBuffer, &_Channels.Data[idx]._IdxBuffer, sizeof(draw_list->IdxBuffer)); + draw_list->_IdxWritePtr = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size; + + // If current command is used with different settings we need to add a new command + ImDrawCmd* curr_cmd = &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; + if (curr_cmd->ElemCount == 0) + ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset + else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) + draw_list->AddDrawCmd(); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawData +//----------------------------------------------------------------------------- + +// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! +void ImDrawData::DeIndexAllBuffers() +{ + ImVector new_vtx_buffer; + TotalVtxCount = TotalIdxCount = 0; + for (int i = 0; i < CmdListsCount; i++) + { + ImDrawList* cmd_list = CmdLists[i]; + if (cmd_list->IdxBuffer.empty()) + continue; + new_vtx_buffer.resize(cmd_list->IdxBuffer.Size); + for (int j = 0; j < cmd_list->IdxBuffer.Size; j++) + new_vtx_buffer[j] = cmd_list->VtxBuffer[cmd_list->IdxBuffer[j]]; + cmd_list->VtxBuffer.swap(new_vtx_buffer); + cmd_list->IdxBuffer.resize(0); + TotalVtxCount += cmd_list->VtxBuffer.Size; + } +} + +// Helper to scale the ClipRect field of each ImDrawCmd. +// Use if your final output buffer is at a different scale than draw_data->DisplaySize, +// or if there is a difference between your window resolution and framebuffer resolution. +void ImDrawData::ScaleClipRects(const ImVec2& fb_scale) +{ + for (int i = 0; i < CmdListsCount; i++) + { + ImDrawList* cmd_list = CmdLists[i]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + ImDrawCmd* cmd = &cmd_list->CmdBuffer[cmd_i]; + cmd->ClipRect = ImVec4(cmd->ClipRect.x * fb_scale.x, cmd->ClipRect.y * fb_scale.y, cmd->ClipRect.z * fb_scale.x, cmd->ClipRect.w * fb_scale.y); + } + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Helpers ShadeVertsXXX functions +//----------------------------------------------------------------------------- + +// Generic linear color gradient, write to RGB fields, leave A untouched. +void ImGui::ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1) +{ + ImVec2 gradient_extent = gradient_p1 - gradient_p0; + float gradient_inv_length2 = 1.0f / ImLengthSqr(gradient_extent); + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + const int col0_r = (int)(col0 >> IM_COL32_R_SHIFT) & 0xFF; + const int col0_g = (int)(col0 >> IM_COL32_G_SHIFT) & 0xFF; + const int col0_b = (int)(col0 >> IM_COL32_B_SHIFT) & 0xFF; + const int col_delta_r = ((int)(col1 >> IM_COL32_R_SHIFT) & 0xFF) - col0_r; + const int col_delta_g = ((int)(col1 >> IM_COL32_G_SHIFT) & 0xFF) - col0_g; + const int col_delta_b = ((int)(col1 >> IM_COL32_B_SHIFT) & 0xFF) - col0_b; + for (ImDrawVert* vert = vert_start; vert < vert_end; vert++) + { + float d = ImDot(vert->pos - gradient_p0, gradient_extent); + float t = ImClamp(d * gradient_inv_length2, 0.0f, 1.0f); + int r = (int)(col0_r + col_delta_r * t); + int g = (int)(col0_g + col_delta_g * t); + int b = (int)(col0_b + col_delta_b * t); + vert->col = (r << IM_COL32_R_SHIFT) | (g << IM_COL32_G_SHIFT) | (b << IM_COL32_B_SHIFT) | (vert->col & IM_COL32_A_MASK); + } +} + +// Distribute UV over (a, b) rectangle +void ImGui::ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp) +{ + const ImVec2 menu_size = b - a; + const ImVec2 uv_size = uv_b - uv_a; + const ImVec2 scale = ImVec2( + menu_size.x != 0.0f ? (uv_size.x / menu_size.x) : 0.0f, + menu_size.y != 0.0f ? (uv_size.y / menu_size.y) : 0.0f); + + ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; + ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; + if (clamp) + { + const ImVec2 min = ImMin(uv_a, uv_b); + const ImVec2 max = ImMax(uv_a, uv_b); + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max); + } + else + { + for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) + vertex->uv = uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontConfig +//----------------------------------------------------------------------------- + +ImFontConfig::ImFontConfig() +{ + FontData = NULL; + FontDataSize = 0; + FontDataOwnedByAtlas = true; + FontNo = 0; + SizePixels = 0.0f; + OversampleH = 3; // FIXME: 2 may be a better default? + OversampleV = 1; + PixelSnapH = false; + GlyphExtraSpacing = ImVec2(0.0f, 0.0f); + GlyphOffset = ImVec2(0.0f, 0.0f); + GlyphRanges = NULL; + GlyphMinAdvanceX = 0.0f; + GlyphMaxAdvanceX = FLT_MAX; + MergeMode = false; + RasterizerFlags = 0x00; + RasterizerMultiply = 1.0f; + EllipsisChar = (ImWchar)-1; + memset(Name, 0, sizeof(Name)); + DstFont = NULL; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontAtlas +//----------------------------------------------------------------------------- + +// A work of art lies ahead! (. = white layer, X = black layer, others are blank) +// The 2x2 white texels on the top left are the ones we'll use everywhere in Dear ImGui to render filled shapes. +const int FONT_ATLAS_DEFAULT_TEX_DATA_W = 108; // Actual texture will be 2 times that + 1 spacing. +const int FONT_ATLAS_DEFAULT_TEX_DATA_H = 27; +static const char FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS[FONT_ATLAS_DEFAULT_TEX_DATA_W * FONT_ATLAS_DEFAULT_TEX_DATA_H + 1] = +{ + "..- -XXXXXXX- X - X -XXXXXXX - XXXXXXX- XX " + "..- -X.....X- X.X - X.X -X.....X - X.....X- X..X " + "--- -XXX.XXX- X...X - X...X -X....X - X....X- X..X " + "X - X.X - X.....X - X.....X -X...X - X...X- X..X " + "XX - X.X -X.......X- X.......X -X..X.X - X.X..X- X..X " + "X.X - X.X -XXXX.XXXX- XXXX.XXXX -X.X X.X - X.X X.X- X..XXX " + "X..X - X.X - X.X - X.X -XX X.X - X.X XX- X..X..XXX " + "X...X - X.X - X.X - XX X.X XX - X.X - X.X - X..X..X..XX " + "X....X - X.X - X.X - X.X X.X X.X - X.X - X.X - X..X..X..X.X " + "X.....X - X.X - X.X - X..X X.X X..X - X.X - X.X -XXX X..X..X..X..X" + "X......X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X XX-XX X.X -X..XX........X..X" + "X.......X - X.X - X.X -X.....................X- X.X X.X-X.X X.X -X...X...........X" + "X........X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X..X-X..X.X - X..............X" + "X.........X -XXX.XXX- X.X - X..X X.X X..X - X...X-X...X - X.............X" + "X..........X-X.....X- X.X - X.X X.X X.X - X....X-X....X - X.............X" + "X......XXXXX-XXXXXXX- X.X - XX X.X XX - X.....X-X.....X - X............X" + "X...X..X --------- X.X - X.X - XXXXXXX-XXXXXXX - X...........X " + "X..X X..X - -XXXX.XXXX- XXXX.XXXX ------------------------------------- X..........X " + "X.X X..X - -X.......X- X.......X - XX XX - - X..........X " + "XX X..X - - X.....X - X.....X - X.X X.X - - X........X " + " X..X - X...X - X...X - X..X X..X - - X........X " + " XX - X.X - X.X - X...XXXXXXXXXXXXX...X - - XXXXXXXXXX " + "------------ - X - X -X.....................X- ------------------" + " ----------------------------------- X...XXXXXXXXXXXXX...X - " + " - X..X X..X - " + " - X.X X.X - " + " - XX XX - " +}; + +static const ImVec2 FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[ImGuiMouseCursor_COUNT][3] = +{ + // Pos ........ Size ......... Offset ...... + { ImVec2( 0,3), ImVec2(12,19), ImVec2( 0, 0) }, // ImGuiMouseCursor_Arrow + { ImVec2(13,0), ImVec2( 7,16), ImVec2( 1, 8) }, // ImGuiMouseCursor_TextInput + { ImVec2(31,0), ImVec2(23,23), ImVec2(11,11) }, // ImGuiMouseCursor_ResizeAll + { ImVec2(21,0), ImVec2( 9,23), ImVec2( 4,11) }, // ImGuiMouseCursor_ResizeNS + { ImVec2(55,18),ImVec2(23, 9), ImVec2(11, 4) }, // ImGuiMouseCursor_ResizeEW + { ImVec2(73,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNESW + { ImVec2(55,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNWSE + { ImVec2(91,0), ImVec2(17,22), ImVec2( 5, 0) }, // ImGuiMouseCursor_Hand +}; + +ImFontAtlas::ImFontAtlas() +{ + Locked = false; + Flags = ImFontAtlasFlags_None; + TexID = (ImTextureID)NULL; + TexDesiredWidth = 0; + TexGlyphPadding = 1; + + TexPixelsAlpha8 = NULL; + TexPixelsRGBA32 = NULL; + TexWidth = TexHeight = 0; + TexUvScale = ImVec2(0.0f, 0.0f); + TexUvWhitePixel = ImVec2(0.0f, 0.0f); + PackIdMouseCursors = PackIdLines = -1; +} + +ImFontAtlas::~ImFontAtlas() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + Clear(); +} + +void ImFontAtlas::ClearInputData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + for (int i = 0; i < ConfigData.Size; i++) + if (ConfigData[i].FontData && ConfigData[i].FontDataOwnedByAtlas) + { + IM_FREE(ConfigData[i].FontData); + ConfigData[i].FontData = NULL; + } + + // When clearing this we lose access to the font name and other information used to build the font. + for (int i = 0; i < Fonts.Size; i++) + if (Fonts[i]->ConfigData >= ConfigData.Data && Fonts[i]->ConfigData < ConfigData.Data + ConfigData.Size) + { + Fonts[i]->ConfigData = NULL; + Fonts[i]->ConfigDataCount = 0; + } + ConfigData.clear(); + CustomRects.clear(); + PackIdMouseCursors = PackIdLines = -1; +} + +void ImFontAtlas::ClearTexData() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + if (TexPixelsAlpha8) + IM_FREE(TexPixelsAlpha8); + if (TexPixelsRGBA32) + IM_FREE(TexPixelsRGBA32); + TexPixelsAlpha8 = NULL; + TexPixelsRGBA32 = NULL; +} + +void ImFontAtlas::ClearFonts() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + for (int i = 0; i < Fonts.Size; i++) + IM_DELETE(Fonts[i]); + Fonts.clear(); +} + +void ImFontAtlas::Clear() +{ + ClearInputData(); + ClearTexData(); + ClearFonts(); +} + +void ImFontAtlas::GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Build atlas on demand + if (TexPixelsAlpha8 == NULL) + { + if (ConfigData.empty()) + AddFontDefault(); + Build(); + } + + *out_pixels = TexPixelsAlpha8; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 1; +} + +void ImFontAtlas::GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +{ + // Convert to RGBA32 format on demand + // Although it is likely to be the most commonly used format, our font rendering is 1 channel / 8 bpp + if (!TexPixelsRGBA32) + { + unsigned char* pixels = NULL; + GetTexDataAsAlpha8(&pixels, NULL, NULL); + if (pixels) + { + TexPixelsRGBA32 = (unsigned int*)IM_ALLOC((size_t)TexWidth * (size_t)TexHeight * 4); + const unsigned char* src = pixels; + unsigned int* dst = TexPixelsRGBA32; + for (int n = TexWidth * TexHeight; n > 0; n--) + *dst++ = IM_COL32(255, 255, 255, (unsigned int)(*src++)); + } + } + + *out_pixels = (unsigned char*)TexPixelsRGBA32; + if (out_width) *out_width = TexWidth; + if (out_height) *out_height = TexHeight; + if (out_bytes_per_pixel) *out_bytes_per_pixel = 4; +} + +ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + IM_ASSERT(font_cfg->FontData != NULL && font_cfg->FontDataSize > 0); + IM_ASSERT(font_cfg->SizePixels > 0.0f); + + // Create new font + if (!font_cfg->MergeMode) + Fonts.push_back(IM_NEW(ImFont)); + else + IM_ASSERT(!Fonts.empty() && "Cannot use MergeMode for the first font"); // When using MergeMode make sure that a font has already been added before. You can use ImGui::GetIO().Fonts->AddFontDefault() to add the default imgui font. + + ConfigData.push_back(*font_cfg); + ImFontConfig& new_font_cfg = ConfigData.back(); + if (new_font_cfg.DstFont == NULL) + new_font_cfg.DstFont = Fonts.back(); + if (!new_font_cfg.FontDataOwnedByAtlas) + { + new_font_cfg.FontData = IM_ALLOC(new_font_cfg.FontDataSize); + new_font_cfg.FontDataOwnedByAtlas = true; + memcpy(new_font_cfg.FontData, font_cfg->FontData, (size_t)new_font_cfg.FontDataSize); + } + + if (new_font_cfg.DstFont->EllipsisChar == (ImWchar)-1) + new_font_cfg.DstFont->EllipsisChar = font_cfg->EllipsisChar; + + // Invalidate texture + ClearTexData(); + return new_font_cfg.DstFont; +} + +// Default font TTF is compressed with stb_compress then base85 encoded (see misc/fonts/binary_to_compressed_c.cpp for encoder) +static unsigned int stb_decompress_length(const unsigned char* input); +static unsigned int stb_decompress(unsigned char* output, const unsigned char* input, unsigned int length); +static const char* GetDefaultCompressedFontDataTTFBase85(); +static unsigned int Decode85Byte(char c) { return c >= '\\' ? c-36 : c-35; } +static void Decode85(const unsigned char* src, unsigned char* dst) +{ + while (*src) + { + unsigned int tmp = Decode85Byte(src[0]) + 85 * (Decode85Byte(src[1]) + 85 * (Decode85Byte(src[2]) + 85 * (Decode85Byte(src[3]) + 85 * Decode85Byte(src[4])))); + dst[0] = ((tmp >> 0) & 0xFF); dst[1] = ((tmp >> 8) & 0xFF); dst[2] = ((tmp >> 16) & 0xFF); dst[3] = ((tmp >> 24) & 0xFF); // We can't assume little-endianness. + src += 5; + dst += 4; + } +} + +// Load embedded ProggyClean.ttf at size 13, disable oversampling +ImFont* ImFontAtlas::AddFontDefault(const ImFontConfig* font_cfg_template) +{ + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (!font_cfg_template) + { + font_cfg.OversampleH = font_cfg.OversampleV = 1; + font_cfg.PixelSnapH = true; + } + if (font_cfg.SizePixels <= 0.0f) + font_cfg.SizePixels = 13.0f * 1.0f; + if (font_cfg.Name[0] == '\0') + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "ProggyClean.ttf, %dpx", (int)font_cfg.SizePixels); + font_cfg.EllipsisChar = (ImWchar)0x0085; + font_cfg.GlyphOffset.y = 1.0f * IM_FLOOR(font_cfg.SizePixels / 13.0f); // Add +1 offset per 13 units + + const char* ttf_compressed_base85 = GetDefaultCompressedFontDataTTFBase85(); + const ImWchar* glyph_ranges = font_cfg.GlyphRanges != NULL ? font_cfg.GlyphRanges : GetGlyphRangesDefault(); + ImFont* font = AddFontFromMemoryCompressedBase85TTF(ttf_compressed_base85, font_cfg.SizePixels, &font_cfg, glyph_ranges); + return font; +} + +ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + size_t data_size = 0; + void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0); + if (!data) + { + IM_ASSERT_USER_ERROR(0, "Could not load font file!"); + return NULL; + } + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + if (font_cfg.Name[0] == '\0') + { + // Store a short copy of filename into into the font name for convenience + const char* p; + for (p = filename + strlen(filename); p > filename && p[-1] != '/' && p[-1] != '\\'; p--) {} + ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); + } + return AddFontFromMemoryTTF(data, (int)data_size, size_pixels, &font_cfg, glyph_ranges); +} + +// NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless font_cfg_template->FontDataOwnedByAtlas == false. Owned TTF buffer will be deleted after Build(). +ImFont* ImFontAtlas::AddFontFromMemoryTTF(void* ttf_data, int ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + font_cfg.FontData = ttf_data; + font_cfg.FontDataSize = ttf_size; + font_cfg.SizePixels = size_pixels; + if (glyph_ranges) + font_cfg.GlyphRanges = glyph_ranges; + return AddFont(&font_cfg); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) +{ + const unsigned int buf_decompressed_size = stb_decompress_length((const unsigned char*)compressed_ttf_data); + unsigned char* buf_decompressed_data = (unsigned char*)IM_ALLOC(buf_decompressed_size); + stb_decompress(buf_decompressed_data, (const unsigned char*)compressed_ttf_data, (unsigned int)compressed_ttf_size); + + ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); + IM_ASSERT(font_cfg.FontData == NULL); + font_cfg.FontDataOwnedByAtlas = true; + return AddFontFromMemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, size_pixels, &font_cfg, glyph_ranges); +} + +ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) +{ + int compressed_ttf_size = (((int)strlen(compressed_ttf_data_base85) + 4) / 5) * 4; + void* compressed_ttf = IM_ALLOC((size_t)compressed_ttf_size); + Decode85((const unsigned char*)compressed_ttf_data_base85, (unsigned char*)compressed_ttf); + ImFont* font = AddFontFromMemoryCompressedTTF(compressed_ttf, compressed_ttf_size, size_pixels, font_cfg, glyph_ranges); + IM_FREE(compressed_ttf); + return font; +} + +int ImFontAtlas::AddCustomRectRegular(int width, int height) +{ + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset) +{ +#ifdef IMGUI_USE_WCHAR32 + IM_ASSERT(id <= IM_UNICODE_CODEPOINT_MAX); +#endif + IM_ASSERT(font != NULL); + IM_ASSERT(width > 0 && width <= 0xFFFF); + IM_ASSERT(height > 0 && height <= 0xFFFF); + ImFontAtlasCustomRect r; + r.Width = (unsigned short)width; + r.Height = (unsigned short)height; + r.GlyphID = id; + r.GlyphAdvanceX = advance_x; + r.GlyphOffset = offset; + r.Font = font; + CustomRects.push_back(r); + return CustomRects.Size - 1; // Return index +} + +void ImFontAtlas::CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const +{ + IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates + IM_ASSERT(rect->IsPacked()); // Make sure the rectangle has been packed + *out_uv_min = ImVec2((float)rect->X * TexUvScale.x, (float)rect->Y * TexUvScale.y); + *out_uv_max = ImVec2((float)(rect->X + rect->Width) * TexUvScale.x, (float)(rect->Y + rect->Height) * TexUvScale.y); +} + +bool ImFontAtlas::GetMouseCursorTexData(ImGuiMouseCursor cursor_type, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]) +{ + if (cursor_type <= ImGuiMouseCursor_None || cursor_type >= ImGuiMouseCursor_COUNT) + return false; + if (Flags & ImFontAtlasFlags_NoMouseCursors) + return false; + + IM_ASSERT(PackIdMouseCursors != -1); + ImFontAtlasCustomRect* r = GetCustomRectByIndex(PackIdMouseCursors); + ImVec2 pos = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][0] + ImVec2((float)r->X, (float)r->Y); + ImVec2 menu_size = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][1]; + *out_size = menu_size; + *out_offset = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][2]; + out_uv_border[0] = (pos) * TexUvScale; + out_uv_border[1] = (pos + menu_size) * TexUvScale; + pos.x += FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + out_uv_fill[0] = (pos) * TexUvScale; + out_uv_fill[1] = (pos + menu_size) * TexUvScale; + return true; +} + +bool ImFontAtlas::Build() +{ + IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); + return ImFontAtlasBuildWithStbTruetype(this); +} + +void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_brighten_factor) +{ + for (unsigned int i = 0; i < 256; i++) + { + unsigned int value = (unsigned int)(i * in_brighten_factor); + out_table[i] = value > 255 ? 255 : (value & 0xFF); + } +} + +void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride) +{ + unsigned char* data = pixels + x + y * stride; + for (int j = h; j > 0; j--, data += stride) + for (int i = 0; i < w; i++) + data[i] = table[data[i]]; +} + +// Temporary data for one source font (multiple source fonts can be merged into one destination ImFont) +// (C++03 doesn't allow instancing ImVector<> with function-local types so we declare the type here.) +struct ImFontBuildSrcData +{ + stbtt_fontinfo FontInfo; + stbtt_pack_range PackRange; // Hold the list of codepoints to pack (essentially points to Codepoints.Data) + stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. + stbtt_packedchar* PackedChars; // Output glyphs + const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) + int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] + int GlyphsHighest; // Highest requested codepoint + int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) + ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) + ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsMap) +}; + +// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) +struct ImFontBuildDstData +{ + int SrcCount; // Number of source fonts targeting this destination font. + int GlyphsHighest; + int GlyphsCount; + ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. +}; + +static void UnpackBitVectorToFlatIndexList(const ImBitVector* in, ImVector* out) +{ + IM_ASSERT(sizeof(in->Storage.Data[0]) == sizeof(int)); + const ImU32* it_begin = in->Storage.begin(); + const ImU32* it_end = in->Storage.end(); + for (const ImU32* it = it_begin; it < it_end; it++) + if (ImU32 entries_32 = *it) + for (ImU32 bit_n = 0; bit_n < 32; bit_n++) + if (entries_32 & ((ImU32)1 << bit_n)) + out->push_back((int)(((it - it_begin) << 5) + bit_n)); +} + +bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) +{ + IM_ASSERT(atlas->ConfigData.Size > 0); + + ImFontAtlasBuildInit(atlas); + + // Clear atlas + atlas->TexID = (ImTextureID)NULL; + atlas->TexWidth = atlas->TexHeight = 0; + atlas->TexUvScale = ImVec2(0.0f, 0.0f); + atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); + atlas->ClearTexData(); + + // Temporary storage for building + ImVector src_tmp_array; + ImVector dst_tmp_array; + src_tmp_array.resize(atlas->ConfigData.Size); + dst_tmp_array.resize(atlas->Fonts.Size); + memset(src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); + memset(dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); + + // 1. Initialize font loading structure, check font data validity + for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontConfig& cfg = atlas->ConfigData[src_i]; + IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); + + // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) + src_tmp.DstIndex = -1; + for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) + if (cfg.DstFont == atlas->Fonts[output_i]) + src_tmp.DstIndex = output_i; + IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? + if (src_tmp.DstIndex == -1) + return false; + + // Initialize helper structure for font loading and verify that the TTF/OTF data is correct + const int font_offset = stbtt_GetFontOffsetForIndex((unsigned char*)cfg.FontData, cfg.FontNo); + IM_ASSERT(font_offset >= 0 && "FontData is incorrect, or FontNo cannot be found."); + if (!stbtt_InitFont(&src_tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset)) + return false; + + // Measure highest codepoints + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); + dst_tmp.SrcCount++; + dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); + } + + // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. + int total_glyphs_count = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; + src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); + if (dst_tmp.GlyphsSet.Storage.empty()) + dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); + + for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) + for (unsigned int codepoint = src_range[0]; codepoint <= src_range[1]; codepoint++) + { + if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option for MergeMode (e.g. MergeOverwrite==true) + continue; + if (!stbtt_FindGlyphIndex(&src_tmp.FontInfo, codepoint)) // It is actually in the font? + continue; + + // Add to avail set/counters + src_tmp.GlyphsCount++; + dst_tmp.GlyphsCount++; + src_tmp.GlyphsSet.SetBit(codepoint); + dst_tmp.GlyphsSet.SetBit(codepoint); + total_glyphs_count++; + } + } + + // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); + UnpackBitVectorToFlatIndexList(&src_tmp.GlyphsSet, &src_tmp.GlyphsList); + src_tmp.GlyphsSet.Clear(); + IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); + } + for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) + dst_tmp_array[dst_i].GlyphsSet.Clear(); + dst_tmp_array.clear(); + + // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) + // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) + ImVector buf_rects; + ImVector buf_packedchars; + buf_rects.resize(total_glyphs_count); + buf_packedchars.resize(total_glyphs_count); + memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); + memset(buf_packedchars.Data, 0, (size_t)buf_packedchars.size_in_bytes()); + + // 4. Gather glyphs sizes so we can pack them in our virtual canvas. + int total_surface = 0; + int buf_rects_out_n = 0; + int buf_packedchars_out_n = 0; + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + src_tmp.Rects = &buf_rects[buf_rects_out_n]; + src_tmp.PackedChars = &buf_packedchars[buf_packedchars_out_n]; + buf_rects_out_n += src_tmp.GlyphsCount; + buf_packedchars_out_n += src_tmp.GlyphsCount; + + // Convert our ranges in the format stb_truetype wants + ImFontConfig& cfg = atlas->ConfigData[src_i]; + src_tmp.PackRange.font_size = cfg.SizePixels; + src_tmp.PackRange.first_unicode_codepoint_in_range = 0; + src_tmp.PackRange.array_of_unicode_codepoints = src_tmp.GlyphsList.Data; + src_tmp.PackRange.num_chars = src_tmp.GlyphsList.Size; + src_tmp.PackRange.chardata_for_range = src_tmp.PackedChars; + src_tmp.PackRange.h_oversample = (unsigned char)cfg.OversampleH; + src_tmp.PackRange.v_oversample = (unsigned char)cfg.OversampleV; + + // Gather the sizes of all rectangles we will need to pack (this loop is based on stbtt_PackFontRangesGatherRects) + const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels); + const int padding = atlas->TexGlyphPadding; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) + { + int x0, y0, x1, y1; + const int glyph_index_in_font = stbtt_FindGlyphIndex(&src_tmp.FontInfo, src_tmp.GlyphsList[glyph_i]); + IM_ASSERT(glyph_index_in_font != 0); + stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1); + src_tmp.Rects[glyph_i].w = (stbrp_coord)(x1 - x0 + padding + cfg.OversampleH - 1); + src_tmp.Rects[glyph_i].h = (stbrp_coord)(y1 - y0 + padding + cfg.OversampleV - 1); + total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; + } + } + + // We need a width for the skyline algorithm, any width! + // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. + // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. + const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; + atlas->TexHeight = 0; + if (atlas->TexDesiredWidth > 0) + atlas->TexWidth = atlas->TexDesiredWidth; + else + atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; + + // 5. Start packing + // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). + const int TEX_HEIGHT_MAX = 1024 * 32; + stbtt_pack_context spc = {}; + stbtt_PackBegin(&spc, NULL, atlas->TexWidth, TEX_HEIGHT_MAX, 0, atlas->TexGlyphPadding, NULL); + ImFontAtlasBuildPackCustomRects(atlas, spc.pack_info); + + // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbrp_pack_rects((stbrp_context*)spc.pack_info, src_tmp.Rects, src_tmp.GlyphsCount); + + // Extend texture height and mark missing glyphs as non-packed so we won't render them. + // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + if (src_tmp.Rects[glyph_i].was_packed) + atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); + } + + // 7. Allocate texture + atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); + atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); + atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(atlas->TexWidth * atlas->TexHeight); + memset(atlas->TexPixelsAlpha8, 0, atlas->TexWidth * atlas->TexHeight); + spc.pixels = atlas->TexPixelsAlpha8; + spc.height = atlas->TexHeight; + + // 8. Render/rasterize font characters into the texture + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + stbtt_PackFontRangesRenderIntoRects(&spc, &src_tmp.FontInfo, &src_tmp.PackRange, 1, src_tmp.Rects); + + // Apply multiply operator + if (cfg.RasterizerMultiply != 1.0f) + { + unsigned char multiply_table[256]; + ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); + stbrp_rect* r = &src_tmp.Rects[0]; + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++, r++) + if (r->was_packed) + ImFontAtlasBuildMultiplyRectAlpha8(multiply_table, atlas->TexPixelsAlpha8, r->x, r->y, r->w, r->h, atlas->TexWidth * 1); + } + src_tmp.Rects = NULL; + } + + // End packing + stbtt_PackEnd(&spc); + buf_rects.clear(); + + // 9. Setup ImFont and glyphs for runtime + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + { + ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; + if (src_tmp.GlyphsCount == 0) + continue; + + // When merging fonts with MergeMode=true: + // - We can have multiple input fonts writing into a same destination font. + // - dst_font->ConfigData is != from cfg which is our source configuration. + ImFontConfig& cfg = atlas->ConfigData[src_i]; + ImFont* dst_font = cfg.DstFont; + + const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels); + int unscaled_ascent, unscaled_descent, unscaled_line_gap; + stbtt_GetFontVMetrics(&src_tmp.FontInfo, &unscaled_ascent, &unscaled_descent, &unscaled_line_gap); + + const float ascent = ImFloor(unscaled_ascent * font_scale + ((unscaled_ascent > 0.0f) ? +1 : -1)); + const float descent = ImFloor(unscaled_descent * font_scale + ((unscaled_descent > 0.0f) ? +1 : -1)); + ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); + const float font_off_x = cfg.GlyphOffset.x; + const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); + + for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) + { + // Register glyph + const int codepoint = src_tmp.GlyphsList[glyph_i]; + const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i]; + stbtt_aligned_quad q; + float unused_x = 0.0f, unused_y = 0.0f; + stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &unused_x, &unused_y, &q, 0); + dst_font->AddGlyph(&cfg, (ImWchar)codepoint, q.x0 + font_off_x, q.y0 + font_off_y, q.x1 + font_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, pc.xadvance); + } + } + + // Cleanup temporary (ImVector doesn't honor destructor) + for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) + src_tmp_array[src_i].~ImFontBuildSrcData(); + + ImFontAtlasBuildFinish(atlas); + return true; +} + +void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent) +{ + if (!font_config->MergeMode) + { + font->ClearOutputData(); + font->FontSize = font_config->SizePixels; + font->ConfigData = font_config; + font->ConfigDataCount = 0; + font->ContainerAtlas = atlas; + font->Ascent = ascent; + font->Descent = descent; + } + font->ConfigDataCount++; +} + +void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque) +{ + stbrp_context* pack_context = (stbrp_context*)stbrp_context_opaque; + IM_ASSERT(pack_context != NULL); + + ImVector& user_rects = atlas->CustomRects; + IM_ASSERT(user_rects.Size >= 1); // We expect at least the default custom rects to be registered, else something went wrong. + + ImVector pack_rects; + pack_rects.resize(user_rects.Size); + memset(pack_rects.Data, 0, (size_t)pack_rects.size_in_bytes()); + for (int i = 0; i < user_rects.Size; i++) + { + pack_rects[i].w = user_rects[i].Width; + pack_rects[i].h = user_rects[i].Height; + } + stbrp_pack_rects(pack_context, &pack_rects[0], pack_rects.Size); + for (int i = 0; i < pack_rects.Size; i++) + if (pack_rects[i].was_packed) + { + user_rects[i].X = pack_rects[i].x; + user_rects[i].Y = pack_rects[i].y; + IM_ASSERT(pack_rects[i].w == user_rects[i].Width && pack_rects[i].h == user_rects[i].Height); + atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); + } +} + +void ImFontAtlasBuildRender1bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value) +{ + IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); + IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); + unsigned char* out_pixel = atlas->TexPixelsAlpha8 + x + (y * atlas->TexWidth); + for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) + for (int off_x = 0; off_x < w; off_x++) + out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : 0x00; +} + +static void ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas) +{ + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdMouseCursors); + IM_ASSERT(r->IsPacked()); + + const int w = atlas->TexWidth; + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + { + // Render/copy pixels + IM_ASSERT(r->Width == FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1 && r->Height == FONT_ATLAS_DEFAULT_TEX_DATA_H); + const int x_for_white = r->X; + const int x_for_black = r->X + FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; + ImFontAtlasBuildRender1bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', 0xFF); + ImFontAtlasBuildRender1bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', 0xFF); + } + else + { + // Render 4 white pixels + IM_ASSERT(r->Width == 2 && r->Height == 2); + const int offset = (int)r->X + (int)r->Y * w; + atlas->TexPixelsAlpha8[offset] = atlas->TexPixelsAlpha8[offset + 1] = atlas->TexPixelsAlpha8[offset + w] = atlas->TexPixelsAlpha8[offset + w + 1] = 0xFF; + } + atlas->TexUvWhitePixel = ImVec2((r->X + 0.5f) * atlas->TexUvScale.x, (r->Y + 0.5f) * atlas->TexUvScale.y); +} + +static void ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) +{ + if (atlas->Flags & ImFontAtlasFlags_NoBakedLines) + return; + + // This generates a triangular shape in the texture, with the various line widths stacked on top of each other to allow interpolation between them + ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdLines); + IM_ASSERT(r->IsPacked()); + for (unsigned int n = 0; n < IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1; n++) // +1 because of the zero-width row + { + // Each line consists of at least two empty pixels at the ends, with a line of solid pixels in the middle + unsigned int y = n; + unsigned int line_width = n; + unsigned int pad_left = (r->Width - line_width) / 2; + unsigned int pad_right = r->Width - (pad_left + line_width); + + // Write each slice + IM_ASSERT(pad_left + line_width + pad_right == r->Width && y < r->Height); // Make sure we're inside the texture bounds before we start writing pixels + unsigned char* write_ptr = &atlas->TexPixelsAlpha8[r->X + ((r->Y + y) * atlas->TexWidth)]; + memset(write_ptr, 0x00, pad_left); + memset(write_ptr + pad_left, 0xFF, line_width); + memset(write_ptr + pad_left + line_width, 0x00, pad_right); + + // Calculate UVs for this line + ImVec2 uv0 = ImVec2((float)(r->X + pad_left - 1), (float)(r->Y + y)) * atlas->TexUvScale; + ImVec2 uv1 = ImVec2((float)(r->X + pad_left + line_width + 1), (float)(r->Y + y + 1)) * atlas->TexUvScale; + float half_v = (uv0.y + uv1.y) * 0.5f; // Calculate a constant V in the middle of the row to avoid sampling artifacts + atlas->TexUvLines[n] = ImVec4(uv0.x, half_v, uv1.x, half_v); + } +} + +// Note: this is called / shared by both the stb_truetype and the FreeType builder +void ImFontAtlasBuildInit(ImFontAtlas* atlas) +{ + // Register texture region for mouse cursors or standard white pixels + if (atlas->PackIdMouseCursors < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1, FONT_ATLAS_DEFAULT_TEX_DATA_H); + else + atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(2, 2); + } + + // Register texture region for thick lines + // The +2 here is to give space for the end caps, whilst height +1 is to accommodate the fact we have a zero-width row + if (atlas->PackIdLines < 0) + { + if (!(atlas->Flags & ImFontAtlasFlags_NoBakedLines)) + atlas->PackIdLines = atlas->AddCustomRectRegular(IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 2, IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1); + } +} + +// This is called/shared by both the stb_truetype and the FreeType builder. +void ImFontAtlasBuildFinish(ImFontAtlas* atlas) +{ + // Render into our custom data blocks + IM_ASSERT(atlas->TexPixelsAlpha8 != NULL); + ImFontAtlasBuildRenderDefaultTexData(atlas); + ImFontAtlasBuildRenderLinesTexData(atlas); + + // Register custom rectangle glyphs + for (int i = 0; i < atlas->CustomRects.Size; i++) + { + const ImFontAtlasCustomRect* r = &atlas->CustomRects[i]; + if (r->Font == NULL || r->GlyphID == 0) + continue; + + // Will ignore ImFontConfig settings: GlyphMinAdvanceX, GlyphMinAdvanceY, GlyphExtraSpacing, PixelSnapH + IM_ASSERT(r->Font->ContainerAtlas == atlas); + ImVec2 uv0, uv1; + atlas->CalcCustomRectUV(r, &uv0, &uv1); + r->Font->AddGlyph(NULL, (ImWchar)r->GlyphID, r->GlyphOffset.x, r->GlyphOffset.y, r->GlyphOffset.x + r->Width, r->GlyphOffset.y + r->Height, uv0.x, uv0.y, uv1.x, uv1.y, r->GlyphAdvanceX); + } + + // Build all fonts lookup tables + for (int i = 0; i < atlas->Fonts.Size; i++) + if (atlas->Fonts[i]->DirtyLookupTables) + atlas->Fonts[i]->BuildLookupTable(); + + // Ellipsis character is required for rendering elided text. We prefer using U+2026 (horizontal ellipsis). + // However some old fonts may contain ellipsis at U+0085. Here we auto-detect most suitable ellipsis character. + // FIXME: Also note that 0x2026 is currently seldom included in our font ranges. Because of this we are more likely to use three individual dots. + for (int i = 0; i < atlas->Fonts.menu_size(); i++) + { + ImFont* font = atlas->Fonts[i]; + if (font->EllipsisChar != (ImWchar)-1) + continue; + const ImWchar ellipsis_variants[] = { (ImWchar)0x2026, (ImWchar)0x0085 }; + for (int j = 0; j < IM_ARRAYSIZE(ellipsis_variants); j++) + if (font->FindGlyphNoFallback(ellipsis_variants[j]) != NULL) // Verify glyph exists + { + font->EllipsisChar = ellipsis_variants[j]; + break; + } + } +} + +// Retrieve list of range (2 int per range, values are inclusive) +const ImWchar* ImFontAtlas::GetGlyphRangesDefault() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesKorean() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3131, 0x3163, // Korean alphabets + 0xAC00, 0xD7A3, // Korean characters + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseFull() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF, // Half-width characters + 0x4e00, 0x9FAF, // CJK Ideograms + 0, + }; + return &ranges[0]; +} + +static void UnpackAccumulativeOffsetsIntoRanges(int base_codepoint, const short* accumulative_offsets, int accumulative_offsets_count, ImWchar* out_ranges) +{ + for (int n = 0; n < accumulative_offsets_count; n++, out_ranges += 2) + { + out_ranges[0] = out_ranges[1] = (ImWchar)(base_codepoint + accumulative_offsets[n]); + base_codepoint += accumulative_offsets[n]; + } + out_ranges[0] = 0; +} + +//------------------------------------------------------------------------- +// [SECTION] ImFontAtlas glyph ranges helpers +//------------------------------------------------------------------------- + +const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon() +{ + // Store 2500 regularly used characters for Simplified Chinese. + // Sourced from https://zh.wiktionary.org/wiki/%E9%99%84%E5%BD%95:%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E5%AD%97%E8%A1%A8 + // This table covers 97.97% of all characters used during the month in July, 1987. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,3,2,1,2,2,1,1,1,1,1,5,2,1,2,3,3,3,2,2,4,1,1,1,2,1,5,2,3,1,2,1,2,1,1,2,1,1,2,2,1,4,1,1,1,1,5,10,1,2,19,2,1,2,1,2,1,2,1,2, + 1,5,1,6,3,2,1,2,2,1,1,1,4,8,5,1,1,4,1,1,3,1,2,1,5,1,2,1,1,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4,6, + 2,1,4,12,1,5,3,7,13,2,5,8,1,6,1,2,5,14,6,1,5,2,4,8,15,5,1,23,6,62,2,10,1,1,8,1,2,2,10,4,2,2,9,2,1,1,3,2,3,1,5,3,3,2,1,3,8,1,1,1,11,3,1,1,4, + 3,7,1,14,1,2,3,12,5,2,5,1,6,7,5,7,14,11,1,3,1,8,9,12,2,1,11,8,4,4,2,6,10,9,13,1,1,3,1,5,1,3,2,4,4,1,18,2,3,14,11,4,29,4,2,7,1,3,13,9,2,2,5, + 3,5,20,7,16,8,5,72,34,6,4,22,12,12,28,45,36,9,7,39,9,191,1,1,1,4,11,8,4,9,2,3,22,1,1,1,1,4,17,1,7,7,1,11,31,10,2,4,8,2,3,2,1,4,2,16,4,32,2, + 3,19,13,4,9,1,5,2,14,8,1,1,3,6,19,6,5,1,16,6,2,10,8,5,1,2,3,1,5,5,1,11,6,6,1,3,3,2,6,3,8,1,1,4,10,7,5,7,7,5,8,9,2,1,3,4,1,1,3,1,3,3,2,6,16, + 1,4,6,3,1,10,6,1,3,15,2,9,2,10,25,13,9,16,6,2,2,10,11,4,3,9,1,2,6,6,5,4,30,40,1,10,7,12,14,33,6,3,6,7,3,1,3,1,11,14,4,9,5,12,11,49,18,51,31, + 140,31,2,2,1,5,1,8,1,10,1,4,4,3,24,1,10,1,3,6,6,16,3,4,5,2,1,4,2,57,10,6,22,2,22,3,7,22,6,10,11,36,18,16,33,36,2,5,5,1,1,1,4,10,1,4,13,2,7, + 5,2,9,3,4,1,7,43,3,7,3,9,14,7,9,1,11,1,1,3,7,4,18,13,1,14,1,3,6,10,73,2,2,30,6,1,11,18,19,13,22,3,46,42,37,89,7,3,16,34,2,2,3,9,1,7,1,1,1,2, + 2,4,10,7,3,10,3,9,5,28,9,2,6,13,7,3,1,3,10,2,7,2,11,3,6,21,54,85,2,1,4,2,2,1,39,3,21,2,2,5,1,1,1,4,1,1,3,4,15,1,3,2,4,4,2,3,8,2,20,1,8,7,13, + 4,1,26,6,2,9,34,4,21,52,10,4,4,1,5,12,2,11,1,7,2,30,12,44,2,30,1,1,3,6,16,9,17,39,82,2,2,24,7,1,7,3,16,9,14,44,2,1,2,1,2,3,5,2,4,1,6,7,5,3, + 2,6,1,11,5,11,2,1,18,19,8,1,3,24,29,2,1,3,5,2,2,1,13,6,5,1,46,11,3,5,1,1,5,8,2,10,6,12,6,3,7,11,2,4,16,13,2,5,1,1,2,2,5,2,28,5,2,23,10,8,4, + 4,22,39,95,38,8,14,9,5,1,13,5,4,3,13,12,11,1,9,1,27,37,2,5,4,4,63,211,95,2,2,2,1,3,5,2,1,1,2,2,1,1,1,3,2,4,1,2,1,1,5,2,2,1,1,2,3,1,3,1,1,1, + 3,1,4,2,1,3,6,1,1,3,7,15,5,3,2,5,3,9,11,4,2,22,1,6,3,8,7,1,4,28,4,16,3,3,25,4,4,27,27,1,4,1,2,2,7,1,3,5,2,28,8,2,14,1,8,6,16,25,3,3,3,14,3, + 3,1,1,2,1,4,6,3,8,4,1,1,1,2,3,6,10,6,2,3,18,3,2,5,5,4,3,1,5,2,5,4,23,7,6,12,6,4,17,11,9,5,1,1,10,5,12,1,1,11,26,33,7,3,6,1,17,7,1,5,12,1,11, + 2,4,1,8,14,17,23,1,2,1,7,8,16,11,9,6,5,2,6,4,16,2,8,14,1,11,8,9,1,1,1,9,25,4,11,19,7,2,15,2,12,8,52,7,5,19,2,16,4,36,8,1,16,8,24,26,4,6,2,9, + 5,4,36,3,28,12,25,15,37,27,17,12,59,38,5,32,127,1,2,9,17,14,4,1,2,1,1,8,11,50,4,14,2,19,16,4,17,5,4,5,26,12,45,2,23,45,104,30,12,8,3,10,2,2, + 3,3,1,4,20,7,2,9,6,15,2,20,1,3,16,4,11,15,6,134,2,5,59,1,2,2,2,1,9,17,3,26,137,10,211,59,1,2,4,1,4,1,1,1,2,6,2,3,1,1,2,3,2,3,1,3,4,4,2,3,3, + 1,4,3,1,7,2,2,3,1,2,1,3,3,3,2,2,3,2,1,3,14,6,1,3,2,9,6,15,27,9,34,145,1,1,2,1,1,1,1,2,1,1,1,1,2,2,2,3,1,2,1,1,1,2,3,5,8,3,5,2,4,1,3,2,2,2,12, + 4,1,1,1,10,4,5,1,20,4,16,1,15,9,5,12,2,9,2,5,4,2,26,19,7,1,26,4,30,12,15,42,1,6,8,172,1,1,4,2,1,1,11,2,2,4,2,1,2,1,10,8,1,2,1,4,5,1,2,5,1,8, + 4,1,3,4,2,1,6,2,1,3,4,1,2,1,1,1,1,12,5,7,2,4,3,1,1,1,3,3,6,1,2,2,3,3,3,2,1,2,12,14,11,6,6,4,12,2,8,1,7,10,1,35,7,4,13,15,4,3,23,21,28,52,5, + 26,5,6,1,7,10,2,7,53,3,2,1,1,1,2,163,532,1,10,11,1,3,3,4,8,2,8,6,2,2,23,22,4,2,2,4,2,1,3,1,3,3,5,9,8,2,1,2,8,1,10,2,12,21,20,15,105,2,3,1,1, + 3,2,3,1,1,2,5,1,4,15,11,19,1,1,1,1,5,4,5,1,1,2,5,3,5,12,1,2,5,1,11,1,1,15,9,1,4,5,3,26,8,2,1,3,1,1,15,19,2,12,1,2,5,2,7,2,19,2,20,6,26,7,5, + 2,2,7,34,21,13,70,2,128,1,1,2,1,1,2,1,1,3,2,2,2,15,1,4,1,3,4,42,10,6,1,49,85,8,1,2,1,1,4,4,2,3,6,1,5,7,4,3,211,4,1,2,1,2,5,1,2,4,2,2,6,5,6, + 10,3,4,48,100,6,2,16,296,5,27,387,2,2,3,7,16,8,5,38,15,39,21,9,10,3,7,59,13,27,21,47,5,21,6 + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x2000, 0x206F, // General Punctuation + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF // Half-width characters + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00) * 2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesJapanese() +{ + // 1946 common ideograms code points for Japanese + // Sourced from http://theinstructionlimit.com/common-kanji-character-ranges-for-xna-spritefont-rendering + // FIXME: Source a list of the revised 2136 Joyo Kanji list from 2010 and rebuild this. + // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. + // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) + static const short accumulative_offsets_from_0x4E00[] = + { + 0,1,2,4,1,1,1,1,2,1,6,2,2,1,8,5,7,11,1,2,10,10,8,2,4,20,2,11,8,2,1,2,1,6,2,1,7,5,3,7,1,1,13,7,9,1,4,6,1,2,1,10,1,1,9,2,2,4,5,6,14,1,1,9,3,18, + 5,4,2,2,10,7,1,1,1,3,2,4,3,23,2,10,12,2,14,2,4,13,1,6,10,3,1,7,13,6,4,13,5,2,3,17,2,2,5,7,6,4,1,7,14,16,6,13,9,15,1,1,7,16,4,7,1,19,9,2,7,15, + 2,6,5,13,25,4,14,13,11,25,1,1,1,2,1,2,2,3,10,11,3,3,1,1,4,4,2,1,4,9,1,4,3,5,5,2,7,12,11,15,7,16,4,5,16,2,1,1,6,3,3,1,1,2,7,6,6,7,1,4,7,6,1,1, + 2,1,12,3,3,9,5,8,1,11,1,2,3,18,20,4,1,3,6,1,7,3,5,5,7,2,2,12,3,1,4,2,3,2,3,11,8,7,4,17,1,9,25,1,1,4,2,2,4,1,2,7,1,1,1,3,1,2,6,16,1,2,1,1,3,12, + 20,2,5,20,8,7,6,2,1,1,1,1,6,2,1,2,10,1,1,6,1,3,1,2,1,4,1,12,4,1,3,1,1,1,1,1,10,4,7,5,13,1,15,1,1,30,11,9,1,15,38,14,1,32,17,20,1,9,31,2,21,9, + 4,49,22,2,1,13,1,11,45,35,43,55,12,19,83,1,3,2,3,13,2,1,7,3,18,3,13,8,1,8,18,5,3,7,25,24,9,24,40,3,17,24,2,1,6,2,3,16,15,6,7,3,12,1,9,7,3,3, + 3,15,21,5,16,4,5,12,11,11,3,6,3,2,31,3,2,1,1,23,6,6,1,4,2,6,5,2,1,1,3,3,22,2,6,2,3,17,3,2,4,5,1,9,5,1,1,6,15,12,3,17,2,14,2,8,1,23,16,4,2,23, + 8,15,23,20,12,25,19,47,11,21,65,46,4,3,1,5,6,1,2,5,26,2,1,1,3,11,1,1,1,2,1,2,3,1,1,10,2,3,1,1,1,3,6,3,2,2,6,6,9,2,2,2,6,2,5,10,2,4,1,2,1,2,2, + 3,1,1,3,1,2,9,23,9,2,1,1,1,1,5,3,2,1,10,9,6,1,10,2,31,25,3,7,5,40,1,15,6,17,7,27,180,1,3,2,2,1,1,1,6,3,10,7,1,3,6,17,8,6,2,2,1,3,5,5,8,16,14, + 15,1,1,4,1,2,1,1,1,3,2,7,5,6,2,5,10,1,4,2,9,1,1,11,6,1,44,1,3,7,9,5,1,3,1,1,10,7,1,10,4,2,7,21,15,7,2,5,1,8,3,4,1,3,1,6,1,4,2,1,4,10,8,1,4,5, + 1,5,10,2,7,1,10,1,1,3,4,11,10,29,4,7,3,5,2,3,33,5,2,19,3,1,4,2,6,31,11,1,3,3,3,1,8,10,9,12,11,12,8,3,14,8,6,11,1,4,41,3,1,2,7,13,1,5,6,2,6,12, + 12,22,5,9,4,8,9,9,34,6,24,1,1,20,9,9,3,4,1,7,2,2,2,6,2,28,5,3,6,1,4,6,7,4,2,1,4,2,13,6,4,4,3,1,8,8,3,2,1,5,1,2,2,3,1,11,11,7,3,6,10,8,6,16,16, + 22,7,12,6,21,5,4,6,6,3,6,1,3,2,1,2,8,29,1,10,1,6,13,6,6,19,31,1,13,4,4,22,17,26,33,10,4,15,12,25,6,67,10,2,3,1,6,10,2,6,2,9,1,9,4,4,1,2,16,2, + 5,9,2,3,8,1,8,3,9,4,8,6,4,8,11,3,2,1,1,3,26,1,7,5,1,11,1,5,3,5,2,13,6,39,5,1,5,2,11,6,10,5,1,15,5,3,6,19,21,22,2,4,1,6,1,8,1,4,8,2,4,2,2,9,2, + 1,1,1,4,3,6,3,12,7,1,14,2,4,10,2,13,1,17,7,3,2,1,3,2,13,7,14,12,3,1,29,2,8,9,15,14,9,14,1,3,1,6,5,9,11,3,38,43,20,7,7,8,5,15,12,19,15,81,8,7, + 1,5,73,13,37,28,8,8,1,15,18,20,165,28,1,6,11,8,4,14,7,15,1,3,3,6,4,1,7,14,1,1,11,30,1,5,1,4,14,1,4,2,7,52,2,6,29,3,1,9,1,21,3,5,1,26,3,11,14, + 11,1,17,5,1,2,1,3,2,8,1,2,9,12,1,1,2,3,8,3,24,12,7,7,5,17,3,3,3,1,23,10,4,4,6,3,1,16,17,22,3,10,21,16,16,6,4,10,2,1,1,2,8,8,6,5,3,3,3,39,25, + 15,1,1,16,6,7,25,15,6,6,12,1,22,13,1,4,9,5,12,2,9,1,12,28,8,3,5,10,22,60,1,2,40,4,61,63,4,1,13,12,1,4,31,12,1,14,89,5,16,6,29,14,2,5,49,18,18, + 5,29,33,47,1,17,1,19,12,2,9,7,39,12,3,7,12,39,3,1,46,4,12,3,8,9,5,31,15,18,3,2,2,66,19,13,17,5,3,46,124,13,57,34,2,5,4,5,8,1,1,1,4,3,1,17,5, + 3,5,3,1,8,5,6,3,27,3,26,7,12,7,2,17,3,7,18,78,16,4,36,1,2,1,6,2,1,39,17,7,4,13,4,4,4,1,10,4,2,4,6,3,10,1,19,1,26,2,4,33,2,73,47,7,3,8,2,4,15, + 18,1,29,2,41,14,1,21,16,41,7,39,25,13,44,2,2,10,1,13,7,1,7,3,5,20,4,8,2,49,1,10,6,1,6,7,10,7,11,16,3,12,20,4,10,3,1,2,11,2,28,9,2,4,7,2,15,1, + 27,1,28,17,4,5,10,7,3,24,10,11,6,26,3,2,7,2,2,49,16,10,16,15,4,5,27,61,30,14,38,22,2,7,5,1,3,12,23,24,17,17,3,3,2,4,1,6,2,7,5,1,1,5,1,1,9,4, + 1,3,6,1,8,2,8,4,14,3,5,11,4,1,3,32,1,19,4,1,13,11,5,2,1,8,6,8,1,6,5,13,3,23,11,5,3,16,3,9,10,1,24,3,198,52,4,2,2,5,14,5,4,22,5,20,4,11,6,41, + 1,5,2,2,11,5,2,28,35,8,22,3,18,3,10,7,5,3,4,1,5,3,8,9,3,6,2,16,22,4,5,5,3,3,18,23,2,6,23,5,27,8,1,33,2,12,43,16,5,2,3,6,1,20,4,2,9,7,1,11,2, + 10,3,14,31,9,3,25,18,20,2,5,5,26,14,1,11,17,12,40,19,9,6,31,83,2,7,9,19,78,12,14,21,76,12,113,79,34,4,1,1,61,18,85,10,2,2,13,31,11,50,6,33,159, + 179,6,6,7,4,4,2,4,2,5,8,7,20,32,22,1,3,10,6,7,28,5,10,9,2,77,19,13,2,5,1,4,4,7,4,13,3,9,31,17,3,26,2,6,6,5,4,1,7,11,3,4,2,1,6,2,20,4,1,9,2,6, + 3,7,1,1,1,20,2,3,1,6,2,3,6,2,4,8,1,5,13,8,4,11,23,1,10,6,2,1,3,21,2,2,4,24,31,4,10,10,2,5,192,15,4,16,7,9,51,1,2,1,1,5,1,1,2,1,3,5,3,1,3,4,1, + 3,1,3,3,9,8,1,2,2,2,4,4,18,12,92,2,10,4,3,14,5,25,16,42,4,14,4,2,21,5,126,30,31,2,1,5,13,3,22,5,6,6,20,12,1,14,12,87,3,19,1,8,2,9,9,3,3,23,2, + 3,7,6,3,1,2,3,9,1,3,1,6,3,2,1,3,11,3,1,6,10,3,2,3,1,2,1,5,1,1,11,3,6,4,1,7,2,1,2,5,5,34,4,14,18,4,19,7,5,8,2,6,79,1,5,2,14,8,2,9,2,1,36,28,16, + 4,1,1,1,2,12,6,42,39,16,23,7,15,15,3,2,12,7,21,64,6,9,28,8,12,3,3,41,59,24,51,55,57,294,9,9,2,6,2,15,1,2,13,38,90,9,9,9,3,11,7,1,1,1,5,6,3,2, + 1,2,2,3,8,1,4,4,1,5,7,1,4,3,20,4,9,1,1,1,5,5,17,1,5,2,6,2,4,1,4,5,7,3,18,11,11,32,7,5,4,7,11,127,8,4,3,3,1,10,1,1,6,21,14,1,16,1,7,1,3,6,9,65, + 51,4,3,13,3,10,1,1,12,9,21,110,3,19,24,1,1,10,62,4,1,29,42,78,28,20,18,82,6,3,15,6,84,58,253,15,155,264,15,21,9,14,7,58,40,39, + }; + static ImWchar base_ranges[] = // not zero-terminated + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana + 0x31F0, 0x31FF, // Katakana Phonetic Extensions + 0xFF00, 0xFFEF // Half-width characters + }; + static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00)*2 + 1] = { 0 }; + if (!full_ranges[0]) + { + memcpy(full_ranges, base_ranges, sizeof(base_ranges)); + UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); + } + return &full_ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + Latin Supplement + 0x0400, 0x052F, // Cyrillic + Cyrillic Supplement + 0x2DE0, 0x2DFF, // Cyrillic Extended-A + 0xA640, 0xA69F, // Cyrillic Extended-B + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesThai() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x2010, 0x205E, // Punctuations + 0x0E00, 0x0E7F, // Thai + 0, + }; + return &ranges[0]; +} + +const ImWchar* ImFontAtlas::GetGlyphRangesVietnamese() +{ + static const ImWchar ranges[] = + { + 0x0020, 0x00FF, // Basic Latin + 0x0102, 0x0103, + 0x0110, 0x0111, + 0x0128, 0x0129, + 0x0168, 0x0169, + 0x01A0, 0x01A1, + 0x01AF, 0x01B0, + 0x1EA0, 0x1EF9, + 0, + }; + return &ranges[0]; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFontGlyphRangesBuilder +//----------------------------------------------------------------------------- + +void ImFontGlyphRangesBuilder::AddText(const char* text, const char* text_end) +{ + while (text_end ? (text < text_end) : *text) + { + unsigned int c = 0; + int c_len = ImTextCharFromUtf8(&c, text, text_end); + text += c_len; + if (c_len == 0) + break; + AddChar((ImWchar)c); + } +} + +void ImFontGlyphRangesBuilder::AddRanges(const ImWchar* ranges) +{ + for (; ranges[0]; ranges += 2) + for (ImWchar c = ranges[0]; c <= ranges[1]; c++) + AddChar(c); +} + +void ImFontGlyphRangesBuilder::BuildRanges(ImVector* out_ranges) +{ + const int max_codepoint = IM_UNICODE_CODEPOINT_MAX; + for (int n = 0; n <= max_codepoint; n++) + if (GetBit(n)) + { + out_ranges->push_back((ImWchar)n); + while (n < max_codepoint && GetBit(n + 1)) + n++; + out_ranges->push_back((ImWchar)n); + } + out_ranges->push_back(0); +} + +//----------------------------------------------------------------------------- +// [SECTION] ImFont +//----------------------------------------------------------------------------- + +ImFont::ImFont() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + FallbackChar = (ImWchar)'?'; + EllipsisChar = (ImWchar)-1; + FallbackGlyph = NULL; + ContainerAtlas = NULL; + ConfigData = NULL; + ConfigDataCount = 0; + DirtyLookupTables = false; + Scale = 1.0f; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); +} + +ImFont::~ImFont() +{ + ClearOutputData(); +} + +void ImFont::ClearOutputData() +{ + FontSize = 0.0f; + FallbackAdvanceX = 0.0f; + Glyphs.clear(); + IndexAdvanceX.clear(); + IndexLookup.clear(); + FallbackGlyph = NULL; + ContainerAtlas = NULL; + DirtyLookupTables = true; + Ascent = Descent = 0.0f; + MetricsTotalSurface = 0; +} + +void ImFont::BuildLookupTable() +{ + int max_codepoint = 0; + for (int i = 0; i != Glyphs.Size; i++) + max_codepoint = ImMax(max_codepoint, (int)Glyphs[i].Codepoint); + + // Build lookup table + IM_ASSERT(Glyphs.Size < 0xFFFF); // -1 is reserved + IndexAdvanceX.clear(); + IndexLookup.clear(); + DirtyLookupTables = false; + memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); + GrowIndex(max_codepoint + 1); + for (int i = 0; i < Glyphs.Size; i++) + { + int codepoint = (int)Glyphs[i].Codepoint; + IndexAdvanceX[codepoint] = Glyphs[i].AdvanceX; + IndexLookup[codepoint] = (ImWchar)i; + + // Mark 4K page as used + const int page_n = codepoint / 4096; + Used4kPagesMap[page_n >> 3] |= 1 << (page_n & 7); + } + + // Create a glyph to handle TAB + // FIXME: Needs proper TAB handling but it needs to be contextualized (or we could arbitrary say that each string starts at "column 0" ?) + if (FindGlyph((ImWchar)' ')) + { + if (Glyphs.back().Codepoint != '\t') // So we can call this function multiple times (FIXME: Flaky) + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& tab_glyph = Glyphs.back(); + tab_glyph = *FindGlyph((ImWchar)' '); + tab_glyph.Codepoint = '\t'; + tab_glyph.AdvanceX *= IM_TABSIZE; + IndexAdvanceX[(int)tab_glyph.Codepoint] = (float)tab_glyph.AdvanceX; + IndexLookup[(int)tab_glyph.Codepoint] = (ImWchar)(Glyphs.Size - 1); + } + + // Mark special glyphs as not visible (note that AddGlyph already mark as non-visible glyphs with zero-size polygons) + SetGlyphVisible((ImWchar)' ', false); + SetGlyphVisible((ImWchar)'\t', false); + + // Setup fall-backs + FallbackGlyph = FindGlyphNoFallback(FallbackChar); + FallbackAdvanceX = FallbackGlyph ? FallbackGlyph->AdvanceX : 0.0f; + for (int i = 0; i < max_codepoint + 1; i++) + if (IndexAdvanceX[i] < 0.0f) + IndexAdvanceX[i] = FallbackAdvanceX; +} + +// API is designed this way to avoid exposing the 4K page size +// e.g. use with IsGlyphRangeUnused(0, 255) +bool ImFont::IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last) +{ + unsigned int page_begin = (c_begin / 4096); + unsigned int page_last = (c_last / 4096); + for (unsigned int page_n = page_begin; page_n <= page_last; page_n++) + if ((page_n >> 3) < sizeof(Used4kPagesMap)) + if (Used4kPagesMap[page_n >> 3] & (1 << (page_n & 7))) + return false; + return true; +} + +void ImFont::SetGlyphVisible(ImWchar c, bool visible) +{ + if (ImFontGlyph* glyph = (ImFontGlyph*)(void*)FindGlyph((ImWchar)c)) + glyph->Visible = visible ? 1 : 0; +} + +void ImFont::SetFallbackChar(ImWchar c) +{ + FallbackChar = c; + BuildLookupTable(); +} + +void ImFont::GrowIndex(int new_size) +{ + IM_ASSERT(IndexAdvanceX.Size == IndexLookup.Size); + if (new_size <= IndexLookup.Size) + return; + IndexAdvanceX.resize(new_size, -1.0f); + IndexLookup.resize(new_size, (ImWchar)-1); +} + +// x0/y0/x1/y1 are offset from the character upper-left layout position, in pixels. Therefore x0/y0 are often fairly close to zero. +// Not to be mistaken with texture coordinates, which are held by u0/v0/u1/v1 in normalized format (0.0..1.0 on each texture axis). +// 'cfg' is not necessarily == 'this->ConfigData' because multiple source fonts+configs can be used to build one target font. +void ImFont::AddGlyph(const ImFontConfig* cfg, ImWchar codepoint, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x) +{ + if (cfg != NULL) + { + // Clamp & recenter if needed + const float advance_x_original = advance_x; + advance_x = ImClamp(advance_x, cfg->GlyphMinAdvanceX, cfg->GlyphMaxAdvanceX); + if (advance_x != advance_x_original) + { + float char_off_x = cfg->PixelSnapH ? ImFloor((advance_x - advance_x_original) * 0.5f) : (advance_x - advance_x_original) * 0.5f; + x0 += char_off_x; + x1 += char_off_x; + } + + // Snap to pixel + if (cfg->PixelSnapH) + advance_x = IM_ROUND(advance_x); + + // Bake spacing + advance_x += cfg->GlyphExtraSpacing.x; + } + + Glyphs.resize(Glyphs.Size + 1); + ImFontGlyph& glyph = Glyphs.back(); + glyph.Codepoint = (unsigned int)codepoint; + glyph.Visible = (x0 != x1) && (y0 != y1); + glyph.X0 = x0; + glyph.Y0 = y0; + glyph.X1 = x1; + glyph.Y1 = y1; + glyph.U0 = u0; + glyph.V0 = v0; + glyph.U1 = u1; + glyph.V1 = v1; + glyph.AdvanceX = advance_x; + + // Compute rough surface usage metrics (+1 to account for average padding, +0.99 to round) + // We use (U1-U0)*TexWidth instead of X1-X0 to account for oversampling. + float pad = ContainerAtlas->TexGlyphPadding + 0.99f; + DirtyLookupTables = true; + MetricsTotalSurface += (int)((glyph.U1 - glyph.U0) * ContainerAtlas->TexWidth + pad) * (int)((glyph.V1 - glyph.V0) * ContainerAtlas->TexHeight + pad); +} + +void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst) +{ + IM_ASSERT(IndexLookup.Size > 0); // Currently this can only be called AFTER the font has been built, aka after calling ImFontAtlas::GetTexDataAs*() function. + unsigned int index_size = (unsigned int)IndexLookup.Size; + + if (dst < index_size && IndexLookup.Data[dst] == (ImWchar)-1 && !overwrite_dst) // 'dst' already exists + return; + if (src >= index_size && dst >= index_size) // both 'dst' and 'src' don't exist -> no-op + return; + + GrowIndex(dst + 1); + IndexLookup[dst] = (src < index_size) ? IndexLookup.Data[src] : (ImWchar)-1; + IndexAdvanceX[dst] = (src < index_size) ? IndexAdvanceX.Data[src] : 1.0f; +} + +const ImFontGlyph* ImFont::FindGlyph(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return FallbackGlyph; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return FallbackGlyph; + return &Glyphs.Data[i]; +} + +const ImFontGlyph* ImFont::FindGlyphNoFallback(ImWchar c) const +{ + if (c >= (size_t)IndexLookup.Size) + return NULL; + const ImWchar i = IndexLookup.Data[c]; + if (i == (ImWchar)-1) + return NULL; + return &Glyphs.Data[i]; +} + +const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const +{ + // Simple word-wrapping for English, not full-featured. Please submit failing cases! + // FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) + + // For references, possible wrap point marked with ^ + // "aaa bbb, ccc,ddd. eee fff. ggg!" + // ^ ^ ^ ^ ^__ ^ ^ + + // List of hardcoded separators: .,;!?'" + + // Skip extra blanks after a line returns (that includes not counting them in width computation) + // e.g. "Hello world" --> "Hello" "World" + + // Cut words that cannot possibly fit within one line. + // e.g.: "The tropical fish" with ~5 characters worth of width --> "The tr" "opical" "fish" + + float line_width = 0.0f; + float word_width = 0.0f; + float blank_width = 0.0f; + wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters + + const char* word_end = text; + const char* prev_word_end = NULL; + bool inside_word = true; + + const char* s = text; + while (s < text_end) + { + unsigned int c = (unsigned int)*s; + const char* next_s; + if (c < 0x80) + next_s = s + 1; + else + next_s = s + ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) + break; + + if (c < 32) + { + if (c == '\n') + { + line_width = word_width = blank_width = 0.0f; + inside_word = true; + s = next_s; + continue; + } + if (c == '\r') + { + s = next_s; + continue; + } + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX); + if (ImCharIsBlankW(c)) + { + if (inside_word) + { + line_width += blank_width; + blank_width = 0.0f; + word_end = s; + } + blank_width += char_width; + inside_word = false; + } + else + { + word_width += char_width; + if (inside_word) + { + word_end = next_s; + } + else + { + prev_word_end = word_end; + line_width += word_width + blank_width; + word_width = blank_width = 0.0f; + } + + // Allow wrapping after punctuation. + inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"'); + } + + // We ignore blank width at the end of the line (they can be skipped) + if (line_width + word_width > wrap_width) + { + // Words that cannot possibly fit within an entire line will be cut anywhere. + if (word_width < wrap_width) + s = prev_word_end ? prev_word_end : word_end; + break; + } + + s = next_s; + } + + return s; +} + +ImVec2 ImFont::CalcTextSizeA(float menu_size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // FIXME-OPT: Need to avoid this. + + const float line_height = menu_size; + const float scale = menu_size / FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const bool word_wrap_enabled = (wrap_width > 0.0f); + const char* word_wrap_eol = NULL; + + const char* s = text_begin; + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + { + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); + if (word_wrap_eol == s) // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. + word_wrap_eol++; // +1 may not be a character start point in UTF-8 but it's ok because we use s >= word_wrap_eol below + } + + if (s >= word_wrap_eol) + { + if (text_size.x < line_width) + text_size.x = line_width; + text_size.y += line_height; + line_width = 0.0f; + word_wrap_eol = NULL; + + // Wrapping skips upcoming blanks + while (s < text_end) + { + const char c = *s; + if (ImCharIsBlankA(c)) { s++; } else if (c == '\n') { s++; break; } else { break; } + } + continue; + } + } + + // Decode and advance source + const char* prev_s = s; + unsigned int c = (unsigned int)*s; + if (c < 0x80) + { + s += 1; + } + else + { + s += ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) // Malformed UTF-8? + break; + } + + if (c < 32) + { + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + continue; + } + if (c == '\r') + continue; + } + + const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX) * scale; + if (line_width + char_width >= max_width) + { + s = prev_s; + break; + } + + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (line_width > 0 || text_size.y == 0.0f) + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +void ImFont::RenderChar(ImDrawList* draw_list, float menu_size, ImVec2 pos, ImU32 col, ImWchar c) const +{ + const ImFontGlyph* glyph = FindGlyph(c); + if (!glyph || !glyph->Visible) + return; + float scale = (menu_size >= 0.0f) ? (menu_size / FontSize) : 1.0f; + pos.x = IM_FLOOR(pos.x); + pos.y = IM_FLOOR(pos.y); + draw_list->PrimReserve(6, 4); + draw_list->PrimRectUV(ImVec2(pos.x + glyph->X0 * scale, pos.y + glyph->Y0 * scale), ImVec2(pos.x + glyph->X1 * scale, pos.y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); +} + +void ImFont::RenderText(ImDrawList* draw_list, float menu_size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const +{ + if (!text_end) + text_end = text_begin + strlen(text_begin); // ImGui:: functions generally already provides a valid text_end, so this is merely to handle direct calls. + + // Align to be pixel perfect + pos.x = IM_FLOOR(pos.x); + pos.y = IM_FLOOR(pos.y); + float x = pos.x; + float y = pos.y; + if (y > clip_rect.w) + return; + + const float scale = menu_size / FontSize; + const float line_height = FontSize * scale; + const bool word_wrap_enabled = (wrap_width > 0.0f); + const char* word_wrap_eol = NULL; + + // Fast-forward to first visible line + const char* s = text_begin; + if (y + line_height < clip_rect.y && !word_wrap_enabled) + while (y + line_height < clip_rect.y && s < text_end) + { + s = (const char*)memchr(s, '\n', text_end - s); + s = s ? s + 1 : text_end; + y += line_height; + } + + // For large text, scan for the last visible line in order to avoid over-reserving in the call to PrimReserve() + // Note that very large horizontal line will still be affected by the issue (e.g. a one megabyte string buffer without a newline will likely crash atm) + if (text_end - s > 10000 && !word_wrap_enabled) + { + const char* s_end = s; + float y_end = y; + while (y_end < clip_rect.w && s_end < text_end) + { + s_end = (const char*)memchr(s_end, '\n', text_end - s_end); + s_end = s_end ? s_end + 1 : text_end; + y_end += line_height; + } + text_end = s_end; + } + if (s == text_end) + return; + + // Reserve vertices for remaining worse case (over-reserving is useful and easily amortized) + const int vtx_count_max = (int)(text_end - s) * 4; + const int idx_count_max = (int)(text_end - s) * 6; + const int idx_expected_size = draw_list->IdxBuffer.Size + idx_count_max; + draw_list->PrimReserve(idx_count_max, vtx_count_max); + + ImDrawVert* vtx_write = draw_list->_VtxWritePtr; + ImDrawIdx* idx_write = draw_list->_IdxWritePtr; + unsigned int vtx_current_idx = draw_list->_VtxCurrentIdx; + + while (s < text_end) + { + if (word_wrap_enabled) + { + // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. + if (!word_wrap_eol) + { + word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - pos.x)); + if (word_wrap_eol == s) // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. + word_wrap_eol++; // +1 may not be a character start point in UTF-8 but it's ok because we use s >= word_wrap_eol below + } + + if (s >= word_wrap_eol) + { + x = pos.x; + y += line_height; + word_wrap_eol = NULL; + + // Wrapping skips upcoming blanks + while (s < text_end) + { + const char c = *s; + if (ImCharIsBlankA(c)) { s++; } else if (c == '\n') { s++; break; } else { break; } + } + continue; + } + } + + // Decode and advance source + unsigned int c = (unsigned int)*s; + if (c < 0x80) + { + s += 1; + } + else + { + s += ImTextCharFromUtf8(&c, s, text_end); + if (c == 0) // Malformed UTF-8? + break; + } + + if (c < 32) + { + if (c == '\n') + { + x = pos.x; + y += line_height; + if (y > clip_rect.w) + break; // break out of main loop + continue; + } + if (c == '\r') + continue; + } + + const ImFontGlyph* glyph = FindGlyph((ImWchar)c); + if (glyph == NULL) + continue; + + float char_width = glyph->AdvanceX * scale; + if (glyph->Visible) + { + // We don't do a second finer clipping test on the Y axis as we've already skipped anything before clip_rect.y and exit once we pass clip_rect.w + float x1 = x + glyph->X0 * scale; + float x2 = x + glyph->X1 * scale; + float y1 = y + glyph->Y0 * scale; + float y2 = y + glyph->Y1 * scale; + if (x1 <= clip_rect.z && x2 >= clip_rect.x) + { + // Render a character + float u1 = glyph->U0; + float v1 = glyph->V0; + float u2 = glyph->U1; + float v2 = glyph->V1; + + // CPU side clipping used to fit text in their frame when the frame is too small. Only does clipping for axis aligned quads. + if (cpu_fine_clip) + { + if (x1 < clip_rect.x) + { + u1 = u1 + (1.0f - (x2 - clip_rect.x) / (x2 - x1)) * (u2 - u1); + x1 = clip_rect.x; + } + if (y1 < clip_rect.y) + { + v1 = v1 + (1.0f - (y2 - clip_rect.y) / (y2 - y1)) * (v2 - v1); + y1 = clip_rect.y; + } + if (x2 > clip_rect.z) + { + u2 = u1 + ((clip_rect.z - x1) / (x2 - x1)) * (u2 - u1); + x2 = clip_rect.z; + } + if (y2 > clip_rect.w) + { + v2 = v1 + ((clip_rect.w - y1) / (y2 - y1)) * (v2 - v1); + y2 = clip_rect.w; + } + if (y1 >= y2) + { + x += char_width; + continue; + } + } + + // We are NOT calling PrimRectUV() here because non-inlined causes too much overhead in a debug builds. Inlined here: + { + idx_write[0] = (ImDrawIdx)(vtx_current_idx); idx_write[1] = (ImDrawIdx)(vtx_current_idx+1); idx_write[2] = (ImDrawIdx)(vtx_current_idx+2); + idx_write[3] = (ImDrawIdx)(vtx_current_idx); idx_write[4] = (ImDrawIdx)(vtx_current_idx+2); idx_write[5] = (ImDrawIdx)(vtx_current_idx+3); + vtx_write[0].pos.x = x1; vtx_write[0].pos.y = y1; vtx_write[0].col = col; vtx_write[0].uv.x = u1; vtx_write[0].uv.y = v1; + vtx_write[1].pos.x = x2; vtx_write[1].pos.y = y1; vtx_write[1].col = col; vtx_write[1].uv.x = u2; vtx_write[1].uv.y = v1; + vtx_write[2].pos.x = x2; vtx_write[2].pos.y = y2; vtx_write[2].col = col; vtx_write[2].uv.x = u2; vtx_write[2].uv.y = v2; + vtx_write[3].pos.x = x1; vtx_write[3].pos.y = y2; vtx_write[3].col = col; vtx_write[3].uv.x = u1; vtx_write[3].uv.y = v2; + vtx_write += 4; + vtx_current_idx += 4; + idx_write += 6; + } + } + } + x += char_width; + } + + // Give back unused vertices (clipped ones, blanks) ~ this is essentially a PrimUnreserve() action. + draw_list->VtxBuffer.Size = (int)(vtx_write - draw_list->VtxBuffer.Data); // Same as calling shrink() + draw_list->IdxBuffer.Size = (int)(idx_write - draw_list->IdxBuffer.Data); + draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ElemCount -= (idx_expected_size - draw_list->IdxBuffer.Size); + draw_list->_VtxWritePtr = vtx_write; + draw_list->_IdxWritePtr = idx_write; + draw_list->_VtxCurrentIdx = vtx_current_idx; +} + +//----------------------------------------------------------------------------- +// [SECTION] ImGui Internal Render Helpers +//----------------------------------------------------------------------------- +// Vaguely redesigned to stop accessing ImGui global state: +// - RenderArrow() +// - RenderBullet() +// - RenderCheckMark() +// - RenderMouseCursor() +// - RenderArrowPointingAt() +// - RenderRectFilledRangeH() +//----------------------------------------------------------------------------- +// Function in need of a redesign (legacy mess) +// - RenderColorRectWithAlphaCheckerboard() +//----------------------------------------------------------------------------- + +// Render an arrow aimed to be aligned with text (p_min is a position in the same space text would be positioned). To e.g. denote expanded/collapsed state +void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale) +{ + const float h = draw_list->_Data->FontSize * 1.00f; + float r = h * 0.40f * scale; + ImVec2 center = pos + ImVec2(h * 0.50f, h * 0.50f * scale); + + ImVec2 a, b, c; + switch (dir) + { + case ImGuiDir_Up: + case ImGuiDir_Down: + if (dir == ImGuiDir_Up) r = -r; + a = ImVec2(+0.000f, +0.750f) * r; + b = ImVec2(-0.866f, -0.750f) * r; + c = ImVec2(+0.866f, -0.750f) * r; + break; + case ImGuiDir_Left: + case ImGuiDir_Right: + if (dir == ImGuiDir_Left) r = -r; + a = ImVec2(+0.750f, +0.000f) * r; + b = ImVec2(-0.750f, +0.866f) * r; + c = ImVec2(-0.750f, -0.866f) * r; + break; + case ImGuiDir_None: + case ImGuiDir_COUNT: + IM_ASSERT(0); + break; + } + draw_list->AddTriangleFilled(center + a, center + b, center + c, col); +} + +void ImGui::RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col) +{ + draw_list->AddCircleFilled(pos, draw_list->_Data->FontSize * 0.20f, col, 8); +} + +void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz) +{ + float thickness = ImMax(sz / 5.0f, 1.0f); + sz -= thickness * 0.5f; + pos += ImVec2(thickness * 0.25f, thickness * 0.25f); + + float third = sz / 3.0f; + float bx = pos.x + third; + float by = pos.y + sz - third * 0.5f; + draw_list->PathLineTo(ImVec2(bx - third, by - third)); + draw_list->PathLineTo(ImVec2(bx, by)); + draw_list->PathLineTo(ImVec2(bx + third * 2.0f, by - third * 2.0f)); + draw_list->PathStroke(col, false, thickness); +} + +void ImGui::RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) +{ + if (mouse_cursor == ImGuiMouseCursor_None) + return; + IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); + + ImFontAtlas* font_atlas = draw_list->_Data->Font->ContainerAtlas; + ImVec2 offset, menu_size, uv[4]; + if (font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &menu_size, &uv[0], &uv[2])) + { + pos -= offset; + const ImTextureID tex_id = font_atlas->TexID; + draw_list->PushTextureID(tex_id); + draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + menu_size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + menu_size) * scale, uv[2], uv[3], col_shadow); + draw_list->AddImage(tex_id, pos, pos + menu_size * scale, uv[2], uv[3], col_border); + draw_list->AddImage(tex_id, pos, pos + menu_size * scale, uv[0], uv[1], col_fill); + draw_list->PopTextureID(); + } +} + +// Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side. +void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) +{ + switch (direction) + { + case ImGuiDir_Left: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Right: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_Up: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), pos, col); return; + case ImGuiDir_Down: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), pos, col); return; + case ImGuiDir_None: case ImGuiDir_COUNT: break; // Fix warnings + } +} + +static inline float ImAcos01(float x) +{ + if (x <= 0.0f) return IM_PI * 0.5f; + if (x >= 1.0f) return 0.0f; + return ImAcos(x); + //return (-0.69813170079773212f * x * x - 0.87266462599716477f) * x + 1.5707963267948966f; // Cheap approximation, may be enough for what we do. +} + +// FIXME: Cleanup and move code to ImDrawList. +void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding) +{ + if (x_end_norm == x_start_norm) + return; + if (x_start_norm > x_end_norm) + ImSwap(x_start_norm, x_end_norm); + + ImVec2 p0 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_start_norm), rect.Min.y); + ImVec2 p1 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_end_norm), rect.Max.y); + if (rounding == 0.0f) + { + draw_list->AddRectFilled(p0, p1, col, 0.0f); + return; + } + + rounding = ImClamp(ImMin((rect.Max.x - rect.Min.x) * 0.5f, (rect.Max.y - rect.Min.y) * 0.5f) - 1.0f, 0.0f, rounding); + const float inv_rounding = 1.0f / rounding; + const float arc0_b = ImAcos01(1.0f - (p0.x - rect.Min.x) * inv_rounding); + const float arc0_e = ImAcos01(1.0f - (p1.x - rect.Min.x) * inv_rounding); + const float half_pi = IM_PI * 0.5f; // We will == compare to this because we know this is the exact value ImAcos01 can return. + const float x0 = ImMax(p0.x, rect.Min.x + rounding); + if (arc0_b == arc0_e) + { + draw_list->PathLineTo(ImVec2(x0, p1.y)); + draw_list->PathLineTo(ImVec2(x0, p0.y)); + } + else if (arc0_b == 0.0f && arc0_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x0, p1.y - rounding), rounding, 3, 6); // BL + draw_list->PathArcToFast(ImVec2(x0, p0.y + rounding), rounding, 6, 9); // TR + } + else + { + draw_list->PathArcTo(ImVec2(x0, p1.y - rounding), rounding, IM_PI - arc0_e, IM_PI - arc0_b, 3); // BL + draw_list->PathArcTo(ImVec2(x0, p0.y + rounding), rounding, IM_PI + arc0_b, IM_PI + arc0_e, 3); // TR + } + if (p1.x > rect.Min.x + rounding) + { + const float arc1_b = ImAcos01(1.0f - (rect.Max.x - p1.x) * inv_rounding); + const float arc1_e = ImAcos01(1.0f - (rect.Max.x - p0.x) * inv_rounding); + const float x1 = ImMin(p1.x, rect.Max.x - rounding); + if (arc1_b == arc1_e) + { + draw_list->PathLineTo(ImVec2(x1, p0.y)); + draw_list->PathLineTo(ImVec2(x1, p1.y)); + } + else if (arc1_b == 0.0f && arc1_e == half_pi) + { + draw_list->PathArcToFast(ImVec2(x1, p0.y + rounding), rounding, 9, 12); // TR + draw_list->PathArcToFast(ImVec2(x1, p1.y - rounding), rounding, 0, 3); // BR + } + else + { + draw_list->PathArcTo(ImVec2(x1, p0.y + rounding), rounding, -arc1_e, -arc1_b, 3); // TR + draw_list->PathArcTo(ImVec2(x1, p1.y - rounding), rounding, +arc1_b, +arc1_e, 3); // BR + } + } + draw_list->PathFillConvex(col); +} + +void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding) +{ + const bool fill_L = (inner.Min.x > outer.Min.x); + const bool fill_R = (inner.Max.x < outer.Max.x); + const bool fill_U = (inner.Min.y > outer.Min.y); + const bool fill_D = (inner.Max.y < outer.Max.y); + if (fill_L) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Min.y), ImVec2(inner.Min.x, inner.Max.y), col, rounding, (fill_U ? 0 : ImDrawCornerFlags_TopLeft) | (fill_D ? 0 : ImDrawCornerFlags_BotLeft)); + if (fill_R) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Min.y), ImVec2(outer.Max.x, inner.Max.y), col, rounding, (fill_U ? 0 : ImDrawCornerFlags_TopRight) | (fill_D ? 0 : ImDrawCornerFlags_BotRight)); + if (fill_U) draw_list->AddRectFilled(ImVec2(inner.Min.x, outer.Min.y), ImVec2(inner.Max.x, inner.Min.y), col, rounding, (fill_L ? 0 : ImDrawCornerFlags_TopLeft) | (fill_R ? 0 : ImDrawCornerFlags_TopRight)); + if (fill_D) draw_list->AddRectFilled(ImVec2(inner.Min.x, inner.Max.y), ImVec2(inner.Max.x, outer.Max.y), col, rounding, (fill_L ? 0 : ImDrawCornerFlags_BotLeft) | (fill_R ? 0 : ImDrawCornerFlags_BotRight)); + if (fill_L && fill_U) draw_list->AddRectFilled(ImVec2(outer.Min.x, outer.Min.y), ImVec2(inner.Min.x, inner.Min.y), col, rounding, ImDrawCornerFlags_TopLeft); + if (fill_R && fill_U) draw_list->AddRectFilled(ImVec2(inner.Max.x, outer.Min.y), ImVec2(outer.Max.x, inner.Min.y), col, rounding, ImDrawCornerFlags_TopRight); + if (fill_L && fill_D) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Max.y), ImVec2(inner.Min.x, outer.Max.y), col, rounding, ImDrawCornerFlags_BotLeft); + if (fill_R && fill_D) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Max.y), ImVec2(outer.Max.x, outer.Max.y), col, rounding, ImDrawCornerFlags_BotRight); +} + +// Helper for ColorPicker4() +// NB: This is rather brittle and will show artifact when rounding this enabled if rounded corners overlap multiple cells. Caller currently responsible for avoiding that. +// Spent a non reasonable amount of time trying to getting this right for ColorButton with rounding+anti-aliasing+ImGuiColorEditFlags_HalfAlphaPreview flag + various grid sizes and offsets, and eventually gave up... probably more reasonable to disable rounding altogether. +// FIXME: uses ImGui::GetColorU32 +void ImGui::RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 col, float grid_step, ImVec2 grid_off, float rounding, int rounding_corners_flags) +{ + if (((col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT) < 0xFF) + { + ImU32 col_bg1 = ImGui::GetColorU32(ImAlphaBlendColors(IM_COL32(204, 204, 204, 255), col)); + ImU32 col_bg2 = ImGui::GetColorU32(ImAlphaBlendColors(IM_COL32(128, 128, 128, 255), col)); + draw_list->AddRectFilled(p_min, p_max, col_bg1, rounding, rounding_corners_flags); + + int yi = 0; + for (float y = p_min.y + grid_off.y; y < p_max.y; y += grid_step, yi++) + { + float y1 = ImClamp(y, p_min.y, p_max.y), y2 = ImMin(y + grid_step, p_max.y); + if (y2 <= y1) + continue; + for (float x = p_min.x + grid_off.x + (yi & 1) * grid_step; x < p_max.x; x += grid_step * 2.0f) + { + float x1 = ImClamp(x, p_min.x, p_max.x), x2 = ImMin(x + grid_step, p_max.x); + if (x2 <= x1) + continue; + int rounding_corners_flags_cell = 0; + if (y1 <= p_min.y) { if (x1 <= p_min.x) rounding_corners_flags_cell |= ImDrawCornerFlags_TopLeft; if (x2 >= p_max.x) rounding_corners_flags_cell |= ImDrawCornerFlags_TopRight; } + if (y2 >= p_max.y) { if (x1 <= p_min.x) rounding_corners_flags_cell |= ImDrawCornerFlags_BotLeft; if (x2 >= p_max.x) rounding_corners_flags_cell |= ImDrawCornerFlags_BotRight; } + rounding_corners_flags_cell &= rounding_corners_flags; + draw_list->AddRectFilled(ImVec2(x1, y1), ImVec2(x2, y2), col_bg2, rounding_corners_flags_cell ? rounding : 0.0f, rounding_corners_flags_cell); + } + } + } + else + { + draw_list->AddRectFilled(p_min, p_max, col, rounding, rounding_corners_flags); + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Decompression code +//----------------------------------------------------------------------------- +// Compressed with stb_compress() then converted to a C array and encoded as base85. +// Use the program in misc/fonts/binary_to_compressed_c.cpp to create the array from a TTF file. +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +// Decompression from stb.h (public domain) by Sean Barrett https://github.com/nothings/stb/blob/master/stb.h +//----------------------------------------------------------------------------- + +static unsigned int stb_decompress_length(const unsigned char *input) +{ + return (input[8] << 24) + (input[9] << 16) + (input[10] << 8) + input[11]; +} + +static unsigned char *stb__barrier_out_e, *stb__barrier_out_b; +static const unsigned char *stb__barrier_in_b; +static unsigned char *stb__dout; +static void stb__match(const unsigned char *data, unsigned int length) +{ + // INVERSE of memmove... write each byte before copying the next... + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_out_b) { stb__dout = stb__barrier_out_e+1; return; } + while (length--) *stb__dout++ = *data++; +} + +static void stb__lit(const unsigned char *data, unsigned int length) +{ + IM_ASSERT(stb__dout + length <= stb__barrier_out_e); + if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } + if (data < stb__barrier_in_b) { stb__dout = stb__barrier_out_e+1; return; } + memcpy(stb__dout, data, length); + stb__dout += length; +} + +#define stb__in2(x) ((i[x] << 8) + i[(x)+1]) +#define stb__in3(x) ((i[x] << 16) + stb__in2((x)+1)) +#define stb__in4(x) ((i[x] << 24) + stb__in3((x)+1)) + +static const unsigned char *stb_decompress_token(const unsigned char *i) +{ + if (*i >= 0x20) { // use fewer if's for cases that expand small + if (*i >= 0x80) stb__match(stb__dout-i[1]-1, i[0] - 0x80 + 1), i += 2; + else if (*i >= 0x40) stb__match(stb__dout-(stb__in2(0) - 0x4000 + 1), i[2]+1), i += 3; + else /* *i >= 0x20 */ stb__lit(i+1, i[0] - 0x20 + 1), i += 1 + (i[0] - 0x20 + 1); + } else { // more ifs for cases that expand large, since overhead is amortized + if (*i >= 0x18) stb__match(stb__dout-(stb__in3(0) - 0x180000 + 1), i[3]+1), i += 4; + else if (*i >= 0x10) stb__match(stb__dout-(stb__in3(0) - 0x100000 + 1), stb__in2(3)+1), i += 5; + else if (*i >= 0x08) stb__lit(i+2, stb__in2(0) - 0x0800 + 1), i += 2 + (stb__in2(0) - 0x0800 + 1); + else if (*i == 0x07) stb__lit(i+3, stb__in2(1) + 1), i += 3 + (stb__in2(1) + 1); + else if (*i == 0x06) stb__match(stb__dout-(stb__in3(1)+1), i[4]+1), i += 5; + else if (*i == 0x04) stb__match(stb__dout-(stb__in3(1)+1), stb__in2(4)+1), i += 6; + } + return i; +} + +static unsigned int stb_adler32(unsigned int adler32, unsigned char *buffer, unsigned int buflen) +{ + const unsigned long ADLER_MOD = 65521; + unsigned long s1 = adler32 & 0xffff, s2 = adler32 >> 16; + unsigned long blocklen = buflen % 5552; + + unsigned long i; + while (buflen) { + for (i=0; i + 7 < blocklen; i += 8) { + s1 += buffer[0], s2 += s1; + s1 += buffer[1], s2 += s1; + s1 += buffer[2], s2 += s1; + s1 += buffer[3], s2 += s1; + s1 += buffer[4], s2 += s1; + s1 += buffer[5], s2 += s1; + s1 += buffer[6], s2 += s1; + s1 += buffer[7], s2 += s1; + + buffer += 8; + } + + for (; i < blocklen; ++i) + s1 += *buffer++, s2 += s1; + + s1 %= ADLER_MOD, s2 %= ADLER_MOD; + buflen -= blocklen; + blocklen = 5552; + } + return (unsigned int)(s2 << 16) + (unsigned int)s1; +} + +static unsigned int stb_decompress(unsigned char *output, const unsigned char *i, unsigned int /*length*/) +{ + if (stb__in4(0) != 0x57bC0000) return 0; + if (stb__in4(4) != 0) return 0; // error! stream is > 4GB + const unsigned int olen = stb_decompress_length(i); + stb__barrier_in_b = i; + stb__barrier_out_e = output + olen; + stb__barrier_out_b = output; + i += 16; + + stb__dout = output; + for (;;) { + const unsigned char *old_i = i; + i = stb_decompress_token(i); + if (i == old_i) { + if (*i == 0x05 && i[1] == 0xfa) { + IM_ASSERT(stb__dout == output + olen); + if (stb__dout != output + olen) return 0; + if (stb_adler32(1, output, olen) != (unsigned int) stb__in4(2)) + return 0; + return olen; + } else { + IM_ASSERT(0); /* NOTREACHED */ + return 0; + } + } + IM_ASSERT(stb__dout <= output + olen); + if (stb__dout > output + olen) + return 0; + } +} + +//----------------------------------------------------------------------------- +// [SECTION] Default font data (ProggyClean.ttf) +//----------------------------------------------------------------------------- +// ProggyClean.ttf +// Copyright (c) 2004, 2005 Tristan Grimmer +// MIT license (see License.txt in http://www.upperbounds.net/download/ProggyClean.ttf.zip) +// Download and more information at http://upperbounds.net +//----------------------------------------------------------------------------- +// File: 'ProggyClean.ttf' (41208 bytes) +// Exported using misc/fonts/binary_to_compressed_c.cpp (with compression + base85 string encoding). +// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. +//----------------------------------------------------------------------------- +static const char proggy_clean_ttf_compressed_data_base85[11980 + 1] = + "7])#######hV0qs'/###[),##/l:$#Q6>##5[n42>c-TH`->>#/e>11NNV=Bv(*:.F?uu#(gRU.o0XGH`$vhLG1hxt9?W`#,5LsCp#-i>.r$<$6pD>Lb';9Crc6tgXmKVeU2cD4Eo3R/" + "2*>]b(MC;$jPfY.;h^`IWM9Qo#t'X#(v#Y9w0#1D$CIf;W'#pWUPXOuxXuU(H9M(1=Ke$$'5F%)]0^#0X@U.a$FBjVQTSDgEKnIS7EM9>ZY9w0#L;>>#Mx&4Mvt//L[MkA#W@lK.N'[0#7RL_&#w+F%HtG9M#XL`N&.,GM4Pg;--VsM.M0rJfLH2eTM`*oJMHRC`N" + "kfimM2J,W-j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Zww%#_-4^Rh%Sflr-k'MS.o?.5/sWel/wpEM0%3'/1)K^f1-d>G21&v(35>V`39V7A4=onx4" + "A1OY5EI0;6Ibgr6M$HS7Q<)58C5w,;WoA*#[%T*#`1g*#d=#+#hI5+#lUG+#pbY+#tnl+#x$),#&1;,#*=M,#.I`,#2Ur,#6b.-#;w[H#iQtA#m^0B#qjBB#uvTB##-hB#'9$C#+E6C#" + "/QHC#3^ZC#7jmC#;v)D#?,)4kMYD4lVu`4m`:&5niUA5@(A5BA1]PBB:xlBCC=2CDLXMCEUtiCf&0g2'tN?PGT4CPGT4CPGT4CPGT4CPGT4CPGT4CPGT4CP" + "GT4CPGT4CPGT4CPGT4CPGT4CPGT4CP-qekC`.9kEg^+F$kwViFJTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5o,^<-28ZI'O?;xp" + "O?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xp;7q-#lLYI:xvD=#"; + +static const char* GetDefaultCompressedFontDataTTFBase85() +{ + return proggy_clean_ttf_compressed_data_base85; +} + +#endif // #ifndef IMGUI_DISABLE diff --git a/CheatMenu/external/imgui/imgui_impl_dx11.cpp b/CheatMenu/external/imgui/imgui_impl_dx11.cpp new file mode 100644 index 0000000..0f4a861 --- /dev/null +++ b/CheatMenu/external/imgui/imgui_impl_dx11.cpp @@ -0,0 +1,551 @@ +// dear imgui: Renderer for DirectX11 +// This needs to be used along with a Platform Binding (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. + +// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. +// If you are new to dear imgui, read examples/README.txt and read the documentation at the top of imgui.cpp +// https://github.com/ocornut/imgui + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2019-08-01: DirectX11: Fixed code querying the Geometry Shader state (would generally error with Debug layer enabled). +// 2019-07-21: DirectX11: Backup, clear and restore Geometry Shader is any is bound when calling ImGui_ImplDX10_RenderDrawData. Clearing Hull/Domain/Compute shaders without backup/restore. +// 2019-05-29: DirectX11: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: DirectX11: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2018-12-03: Misc: Added #pragma comment statement to automatically link with d3dcompiler.lib when using D3DCompile(). +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-08-01: DirectX11: Querying for IDXGIFactory instead of IDXGIFactory1 to increase compatibility. +// 2018-07-13: DirectX11: Fixed unreleased resources in Init and Shutdown functions. +// 2018-06-08: Misc: Extracted imgui_impl_dx11.cpp/.h away from the old combined DX11+Win32 example. +// 2018-06-08: DirectX11: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplDX11_RenderDrawData() in the .h file so you can call it yourself. +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2016-05-07: DirectX11: Disabling depth-write. + +#include "imgui.h" +#include "imgui_impl_dx11.h" + +// DirectX +#include +#include +#include +#ifdef _MSC_VER +#pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below. +#endif + +// DirectX data +static ID3D11Device* g_pd3dDevice = NULL; +static ID3D11DeviceContext* g_pd3dDeviceContext = NULL; +static IDXGIFactory* g_pFactory = NULL; +static ID3D11Buffer* g_pVB = NULL; +static ID3D11Buffer* g_pIB = NULL; +static ID3D11VertexShader* g_pVertexShader = NULL; +static ID3D11InputLayout* g_pInputLayout = NULL; +static ID3D11Buffer* g_pVertexConstantBuffer = NULL; +static ID3D11PixelShader* g_pPixelShader = NULL; +static ID3D11SamplerState* g_pFontSampler = NULL; +static ID3D11ShaderResourceView*g_pFontTextureView = NULL; +static ID3D11RasterizerState* g_pRasterizerState = NULL; +static ID3D11BlendState* g_pBlendState = NULL; +static ID3D11DepthStencilState* g_pDepthStencilState = NULL; +static int g_VertexBufferSize = 5000, g_IndexBufferSize = 10000; + +struct VERTEX_CONSTANT_BUFFER +{ + float mvp[4][4]; +}; + +static void ImGui_ImplDX11_SetupRenderState(ImDrawData* draw_data, ID3D11DeviceContext* ctx) +{ + // Setup viewport + D3D11_VIEWPORT vp; + memset(&vp, 0, sizeof(D3D11_VIEWPORT)); + vp.Width = draw_data->DisplaySize.x; + vp.Height = draw_data->DisplaySize.y; + vp.MinDepth = 0.0f; + vp.MaxDepth = 1.0f; + vp.TopLeftX = vp.TopLeftY = 0; + ctx->RSSetViewports(1, &vp); + + // Setup shader and vertex buffers + unsigned int stride = sizeof(ImDrawVert); + unsigned int offset = 0; + ctx->IASetInputLayout(g_pInputLayout); + ctx->IASetVertexBuffers(0, 1, &g_pVB, &stride, &offset); + ctx->IASetIndexBuffer(g_pIB, sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT, 0); + ctx->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); + ctx->VSSetShader(g_pVertexShader, NULL, 0); + ctx->VSSetConstantBuffers(0, 1, &g_pVertexConstantBuffer); + ctx->PSSetShader(g_pPixelShader, NULL, 0); + ctx->PSSetSamplers(0, 1, &g_pFontSampler); + ctx->GSSetShader(NULL, NULL, 0); + ctx->HSSetShader(NULL, NULL, 0); // In theory we should backup and restore this as well.. very infrequently used.. + ctx->DSSetShader(NULL, NULL, 0); // In theory we should backup and restore this as well.. very infrequently used.. + ctx->CSSetShader(NULL, NULL, 0); // In theory we should backup and restore this as well.. very infrequently used.. + + // Setup blend state + const float blend_factor[4] = { 0.f, 0.f, 0.f, 0.f }; + ctx->OMSetBlendState(g_pBlendState, blend_factor, 0xffffffff); + ctx->OMSetDepthStencilState(g_pDepthStencilState, 0); + ctx->RSSetState(g_pRasterizerState); +} + +// Render function +// (this used to be set in io.RenderDrawListsFn and called by ImGui::Render(), but you can now call this directly from your main loop) +void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized + if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) + return; + + ID3D11DeviceContext* ctx = g_pd3dDeviceContext; + + // Create and grow vertex/index buffers if needed + if (!g_pVB || g_VertexBufferSize < draw_data->TotalVtxCount) + { + if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } + g_VertexBufferSize = draw_data->TotalVtxCount + 5000; + D3D11_BUFFER_DESC desc; + memset(&desc, 0, sizeof(D3D11_BUFFER_DESC)); + desc.Usage = D3D11_USAGE_DYNAMIC; + desc.ByteWidth = g_VertexBufferSize * sizeof(ImDrawVert); + desc.BindFlags = D3D11_BIND_VERTEX_BUFFER; + desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + desc.MiscFlags = 0; + if (g_pd3dDevice->CreateBuffer(&desc, NULL, &g_pVB) < 0) + return; + } + if (!g_pIB || g_IndexBufferSize < draw_data->TotalIdxCount) + { + if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } + g_IndexBufferSize = draw_data->TotalIdxCount + 10000; + D3D11_BUFFER_DESC desc; + memset(&desc, 0, sizeof(D3D11_BUFFER_DESC)); + desc.Usage = D3D11_USAGE_DYNAMIC; + desc.ByteWidth = g_IndexBufferSize * sizeof(ImDrawIdx); + desc.BindFlags = D3D11_BIND_INDEX_BUFFER; + desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + if (g_pd3dDevice->CreateBuffer(&desc, NULL, &g_pIB) < 0) + return; + } + + // Upload vertex/index data into a single contiguous GPU buffer + D3D11_MAPPED_SUBRESOURCE vtx_resource, idx_resource; + if (ctx->Map(g_pVB, 0, D3D11_MAP_WRITE_DISCARD, 0, &vtx_resource) != S_OK) + return; + if (ctx->Map(g_pIB, 0, D3D11_MAP_WRITE_DISCARD, 0, &idx_resource) != S_OK) + return; + ImDrawVert* vtx_dst = (ImDrawVert*)vtx_resource.pData; + ImDrawIdx* idx_dst = (ImDrawIdx*)idx_resource.pData; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); + memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + vtx_dst += cmd_list->VtxBuffer.Size; + idx_dst += cmd_list->IdxBuffer.Size; + } + ctx->Unmap(g_pVB, 0); + ctx->Unmap(g_pIB, 0); + + // Setup orthographic projection matrix into our constant buffer + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + { + D3D11_MAPPED_SUBRESOURCE mapped_resource; + if (ctx->Map(g_pVertexConstantBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mapped_resource) != S_OK) + return; + VERTEX_CONSTANT_BUFFER* constant_buffer = (VERTEX_CONSTANT_BUFFER*)mapped_resource.pData; + float L = draw_data->DisplayPos.x; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; + float T = draw_data->DisplayPos.y; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; + float mvp[4][4] = + { + { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, + { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, + { 0.0f, 0.0f, 0.5f, 0.0f }, + { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, + }; + memcpy(&constant_buffer->mvp, mvp, sizeof(mvp)); + ctx->Unmap(g_pVertexConstantBuffer, 0); + } + + // Backup DX state that will be modified to restore it afterwards (unfortunately this is very ugly looking and verbose. Close your eyes!) + struct BACKUP_DX11_STATE + { + UINT ScissorRectsCount, ViewportsCount; + D3D11_RECT ScissorRects[D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; + D3D11_VIEWPORT Viewports[D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; + ID3D11RasterizerState* RS; + ID3D11BlendState* BlendState; + FLOAT BlendFactor[4]; + UINT SampleMask; + UINT StencilRef; + ID3D11DepthStencilState* DepthStencilState; + ID3D11ShaderResourceView* PSShaderResource; + ID3D11SamplerState* PSSampler; + ID3D11PixelShader* PS; + ID3D11VertexShader* VS; + ID3D11GeometryShader* GS; + UINT PSInstancesCount, VSInstancesCount, GSInstancesCount; + ID3D11ClassInstance *PSInstances[256], *VSInstances[256], *GSInstances[256]; // 256 is max according to PSSetShader documentation + D3D11_PRIMITIVE_TOPOLOGY PrimitiveTopology; + ID3D11Buffer* IndexBuffer, *VertexBuffer, *VSConstantBuffer; + UINT IndexBufferOffset, VertexBufferStride, VertexBufferOffset; + DXGI_FORMAT IndexBufferFormat; + ID3D11InputLayout* InputLayout; + }; + BACKUP_DX11_STATE old; + old.ScissorRectsCount = old.ViewportsCount = D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE; + ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); + ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); + ctx->RSGetState(&old.RS); + ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); + ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); + ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); + ctx->PSGetSamplers(0, 1, &old.PSSampler); + old.PSInstancesCount = old.VSInstancesCount = old.GSInstancesCount = 256; + ctx->PSGetShader(&old.PS, old.PSInstances, &old.PSInstancesCount); + ctx->VSGetShader(&old.VS, old.VSInstances, &old.VSInstancesCount); + ctx->VSGetConstantBuffers(0, 1, &old.VSConstantBuffer); + ctx->GSGetShader(&old.GS, old.GSInstances, &old.GSInstancesCount); + + ctx->IAGetPrimitiveTopology(&old.PrimitiveTopology); + ctx->IAGetIndexBuffer(&old.IndexBuffer, &old.IndexBufferFormat, &old.IndexBufferOffset); + ctx->IAGetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); + ctx->IAGetInputLayout(&old.InputLayout); + + // Setup desired DX state + ImGui_ImplDX11_SetupRenderState(draw_data, ctx); + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + int global_idx_offset = 0; + int global_vtx_offset = 0; + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != NULL) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplDX11_SetupRenderState(draw_data, ctx); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + // Apply scissor/clipping rectangle + const D3D11_RECT r = { (LONG)(pcmd->ClipRect.x - clip_off.x), (LONG)(pcmd->ClipRect.y - clip_off.y), (LONG)(pcmd->ClipRect.z - clip_off.x), (LONG)(pcmd->ClipRect.w - clip_off.y) }; + ctx->RSSetScissorRects(1, &r); + + // Bind texture, Draw + ID3D11ShaderResourceView* texture_srv = (ID3D11ShaderResourceView*)pcmd->TextureId; + ctx->PSSetShaderResources(0, 1, &texture_srv); + ctx->DrawIndexed(pcmd->ElemCount, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset); + } + } + global_idx_offset += cmd_list->IdxBuffer.Size; + global_vtx_offset += cmd_list->VtxBuffer.Size; + } + + // Restore modified DX state + ctx->RSSetScissorRects(old.ScissorRectsCount, old.ScissorRects); + ctx->RSSetViewports(old.ViewportsCount, old.Viewports); + ctx->RSSetState(old.RS); if (old.RS) old.RS->Release(); + ctx->OMSetBlendState(old.BlendState, old.BlendFactor, old.SampleMask); if (old.BlendState) old.BlendState->Release(); + ctx->OMSetDepthStencilState(old.DepthStencilState, old.StencilRef); if (old.DepthStencilState) old.DepthStencilState->Release(); + ctx->PSSetShaderResources(0, 1, &old.PSShaderResource); if (old.PSShaderResource) old.PSShaderResource->Release(); + ctx->PSSetSamplers(0, 1, &old.PSSampler); if (old.PSSampler) old.PSSampler->Release(); + ctx->PSSetShader(old.PS, old.PSInstances, old.PSInstancesCount); if (old.PS) old.PS->Release(); + for (UINT i = 0; i < old.PSInstancesCount; i++) if (old.PSInstances[i]) old.PSInstances[i]->Release(); + ctx->VSSetShader(old.VS, old.VSInstances, old.VSInstancesCount); if (old.VS) old.VS->Release(); + ctx->VSSetConstantBuffers(0, 1, &old.VSConstantBuffer); if (old.VSConstantBuffer) old.VSConstantBuffer->Release(); + ctx->GSSetShader(old.GS, old.GSInstances, old.GSInstancesCount); if (old.GS) old.GS->Release(); + for (UINT i = 0; i < old.VSInstancesCount; i++) if (old.VSInstances[i]) old.VSInstances[i]->Release(); + ctx->IASetPrimitiveTopology(old.PrimitiveTopology); + ctx->IASetIndexBuffer(old.IndexBuffer, old.IndexBufferFormat, old.IndexBufferOffset); if (old.IndexBuffer) old.IndexBuffer->Release(); + ctx->IASetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); if (old.VertexBuffer) old.VertexBuffer->Release(); + ctx->IASetInputLayout(old.InputLayout); if (old.InputLayout) old.InputLayout->Release(); +} + +static void ImGui_ImplDX11_CreateFontsTexture() +{ + // Build texture atlas + ImGuiIO& io = ImGui::GetIO(); + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); + + // Upload texture to graphics system + { + D3D11_TEXTURE2D_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Width = width; + desc.Height = height; + desc.MipLevels = 1; + desc.ArraySize = 1; + desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + desc.SampleDesc.Count = 1; + desc.Usage = D3D11_USAGE_DEFAULT; + desc.BindFlags = D3D11_BIND_SHADER_RESOURCE; + desc.CPUAccessFlags = 0; + + ID3D11Texture2D* pTexture = NULL; + D3D11_SUBRESOURCE_DATA subResource; + subResource.pSysMem = pixels; + subResource.SysMemPitch = desc.Width * 4; + subResource.SysMemSlicePitch = 0; + g_pd3dDevice->CreateTexture2D(&desc, &subResource, &pTexture); + + // Create texture view + D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc; + ZeroMemory(&srvDesc, sizeof(srvDesc)); + srvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + srvDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; + srvDesc.Texture2D.MipLevels = desc.MipLevels; + srvDesc.Texture2D.MostDetailedMip = 0; + g_pd3dDevice->CreateShaderResourceView(pTexture, &srvDesc, &g_pFontTextureView); + pTexture->Release(); + } + + // Store our identifier + io.Fonts->TexID = (ImTextureID)g_pFontTextureView; + + // Create texture sampler + { + D3D11_SAMPLER_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR; + desc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; + desc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; + desc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP; + desc.MipLODBias = 0.f; + desc.ComparisonFunc = D3D11_COMPARISON_ALWAYS; + desc.MinLOD = 0.f; + desc.MaxLOD = 0.f; + g_pd3dDevice->CreateSamplerState(&desc, &g_pFontSampler); + } +} + +bool ImGui_ImplDX11_CreateDeviceObjects() +{ + if (!g_pd3dDevice) + return false; + if (g_pFontSampler) + ImGui_ImplDX11_InvalidateDeviceObjects(); + + // By using D3DCompile() from / d3dcompiler.lib, we introduce a dependency to a given version of d3dcompiler_XX.dll (see D3DCOMPILER_DLL_A) + // If you would like to use this DX11 sample code but remove this dependency you can: + // 1) compile once, save the compiled shader blobs into a file or source code and pass them to CreateVertexShader()/CreatePixelShader() [preferred solution] + // 2) use code to detect any version of the DLL and grab a pointer to D3DCompile from the DLL. + // See https://github.com/ocornut/imgui/pull/638 for sources and details. + + // Create the vertex shader + { + static const char* vertexShader = + "cbuffer vertexBuffer : register(b0) \ + {\ + float4x4 ProjectionMatrix; \ + };\ + struct VS_INPUT\ + {\ + float2 pos : POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + \ + PS_INPUT main(VS_INPUT input)\ + {\ + PS_INPUT output;\ + output.pos = mul( ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));\ + output.col = input.col;\ + output.uv = input.uv;\ + return output;\ + }"; + + ID3DBlob* vertexShaderBlob; + if (FAILED(D3DCompile(vertexShader, strlen(vertexShader), NULL, NULL, NULL, "main", "vs_4_0", 0, 0, &vertexShaderBlob, NULL))) + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + if (g_pd3dDevice->CreateVertexShader(vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), NULL, &g_pVertexShader) != S_OK) + { + vertexShaderBlob->Release(); + return false; + } + + // Create the input layout + D3D11_INPUT_ELEMENT_DESC local_layout[] = + { + { "POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, pos), D3D11_INPUT_PER_VERTEX_DATA, 0 }, + { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, uv), D3D11_INPUT_PER_VERTEX_DATA, 0 }, + { "COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, (UINT)IM_OFFSETOF(ImDrawVert, col), D3D11_INPUT_PER_VERTEX_DATA, 0 }, + }; + if (g_pd3dDevice->CreateInputLayout(local_layout, 3, vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), &g_pInputLayout) != S_OK) + { + vertexShaderBlob->Release(); + return false; + } + vertexShaderBlob->Release(); + + // Create the constant buffer + { + D3D11_BUFFER_DESC desc; + desc.ByteWidth = sizeof(VERTEX_CONSTANT_BUFFER); + desc.Usage = D3D11_USAGE_DYNAMIC; + desc.BindFlags = D3D11_BIND_CONSTANT_BUFFER; + desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + desc.MiscFlags = 0; + g_pd3dDevice->CreateBuffer(&desc, NULL, &g_pVertexConstantBuffer); + } + } + + // Create the pixel shader + { + static const char* pixelShader = + "struct PS_INPUT\ + {\ + float4 pos : SV_POSITION;\ + float4 col : COLOR0;\ + float2 uv : TEXCOORD0;\ + };\ + sampler sampler0;\ + Texture2D texture0;\ + \ + float4 main(PS_INPUT input) : SV_Target\ + {\ + float4 out_col = input.col * texture0.Sample(sampler0, input.uv); \ + return out_col; \ + }"; + + ID3DBlob* pixelShaderBlob; + if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), NULL, NULL, NULL, "main", "ps_4_0", 0, 0, &pixelShaderBlob, NULL))) + return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! + if (g_pd3dDevice->CreatePixelShader(pixelShaderBlob->GetBufferPointer(), pixelShaderBlob->GetBufferSize(), NULL, &g_pPixelShader) != S_OK) + { + pixelShaderBlob->Release(); + return false; + } + pixelShaderBlob->Release(); + } + + // Create the blending setup + { + D3D11_BLEND_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.AlphaToCoverageEnable = false; + desc.RenderTarget[0].BlendEnable = true; + desc.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA; + desc.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA; + desc.RenderTarget[0].BlendOp = D3D11_BLEND_OP_ADD; + desc.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_INV_SRC_ALPHA; + desc.RenderTarget[0].DestBlendAlpha = D3D11_BLEND_ZERO; + desc.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD; + desc.RenderTarget[0].RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL; + g_pd3dDevice->CreateBlendState(&desc, &g_pBlendState); + } + + // Create the rasterizer state + { + D3D11_RASTERIZER_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.FillMode = D3D11_FILL_SOLID; + desc.CullMode = D3D11_CULL_NONE; + desc.ScissorEnable = true; + desc.DepthClipEnable = true; + g_pd3dDevice->CreateRasterizerState(&desc, &g_pRasterizerState); + } + + // Create depth-stencil State + { + D3D11_DEPTH_STENCIL_DESC desc; + ZeroMemory(&desc, sizeof(desc)); + desc.DepthEnable = false; + desc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL; + desc.DepthFunc = D3D11_COMPARISON_ALWAYS; + desc.StencilEnable = false; + desc.FrontFace.StencilFailOp = desc.FrontFace.StencilDepthFailOp = desc.FrontFace.StencilPassOp = D3D11_STENCIL_OP_KEEP; + desc.FrontFace.StencilFunc = D3D11_COMPARISON_ALWAYS; + desc.BackFace = desc.FrontFace; + g_pd3dDevice->CreateDepthStencilState(&desc, &g_pDepthStencilState); + } + + ImGui_ImplDX11_CreateFontsTexture(); + + return true; +} + +void ImGui_ImplDX11_InvalidateDeviceObjects() +{ + if (!g_pd3dDevice) + return; + + if (g_pFontSampler) { g_pFontSampler->Release(); g_pFontSampler = NULL; } + if (g_pFontTextureView) { g_pFontTextureView->Release(); g_pFontTextureView = NULL; ImGui::GetIO().Fonts->TexID = NULL; } // We copied g_pFontTextureView to io.Fonts->TexID so let's clear that as well. + if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } + if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } + + if (g_pBlendState) { g_pBlendState->Release(); g_pBlendState = NULL; } + if (g_pDepthStencilState) { g_pDepthStencilState->Release(); g_pDepthStencilState = NULL; } + if (g_pRasterizerState) { g_pRasterizerState->Release(); g_pRasterizerState = NULL; } + if (g_pPixelShader) { g_pPixelShader->Release(); g_pPixelShader = NULL; } + if (g_pVertexConstantBuffer) { g_pVertexConstantBuffer->Release(); g_pVertexConstantBuffer = NULL; } + if (g_pInputLayout) { g_pInputLayout->Release(); g_pInputLayout = NULL; } + if (g_pVertexShader) { g_pVertexShader->Release(); g_pVertexShader = NULL; } +} + +bool ImGui_ImplDX11_Init(ID3D11Device* device, ID3D11DeviceContext* device_context) +{ + // Setup back-end capabilities flags + ImGuiIO& io = ImGui::GetIO(); + io.BackendRendererName = "imgui_impl_dx11"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + + // Get factory from device + IDXGIDevice* pDXGIDevice = NULL; + IDXGIAdapter* pDXGIAdapter = NULL; + IDXGIFactory* pFactory = NULL; + + if (device->QueryInterface(IID_PPV_ARGS(&pDXGIDevice)) == S_OK) + if (pDXGIDevice->GetParent(IID_PPV_ARGS(&pDXGIAdapter)) == S_OK) + if (pDXGIAdapter->GetParent(IID_PPV_ARGS(&pFactory)) == S_OK) + { + g_pd3dDevice = device; + g_pd3dDeviceContext = device_context; + g_pFactory = pFactory; + } + if (pDXGIDevice) pDXGIDevice->Release(); + if (pDXGIAdapter) pDXGIAdapter->Release(); + g_pd3dDevice->AddRef(); + g_pd3dDeviceContext->AddRef(); + + return true; +} + +void ImGui_ImplDX11_Shutdown() +{ + ImGui_ImplDX11_InvalidateDeviceObjects(); + if (g_pFactory) { g_pFactory->Release(); g_pFactory = NULL; } + if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } + if (g_pd3dDeviceContext) { g_pd3dDeviceContext->Release(); g_pd3dDeviceContext = NULL; } +} + +void ImGui_ImplDX11_NewFrame() +{ + if (!g_pFontSampler) + ImGui_ImplDX11_CreateDeviceObjects(); +} diff --git a/CheatMenu/external/imgui/imgui_impl_dx11.h b/CheatMenu/external/imgui/imgui_impl_dx11.h new file mode 100644 index 0000000..cccadcd --- /dev/null +++ b/CheatMenu/external/imgui/imgui_impl_dx11.h @@ -0,0 +1,25 @@ +// dear imgui: Renderer for DirectX11 +// This needs to be used along with a Platform Binding (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. + +// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. +// If you are new to dear imgui, read examples/README.txt and read the documentation at the top of imgui.cpp. +// https://github.com/ocornut/imgui + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API + +struct ID3D11Device; +struct ID3D11DeviceContext; + +IMGUI_IMPL_API bool ImGui_ImplDX11_Init(ID3D11Device* device, ID3D11DeviceContext* device_context); +IMGUI_IMPL_API void ImGui_ImplDX11_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplDX11_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data); + +// Use if you want to reset your rendering device without losing Dear ImGui state. +IMGUI_IMPL_API void ImGui_ImplDX11_InvalidateDeviceObjects(); +IMGUI_IMPL_API bool ImGui_ImplDX11_CreateDeviceObjects(); diff --git a/CheatMenu/external/imgui/imgui_impl_dx9.cpp b/CheatMenu/external/imgui/imgui_impl_dx9.cpp new file mode 100644 index 0000000..bfc8750 --- /dev/null +++ b/CheatMenu/external/imgui/imgui_impl_dx9.cpp @@ -0,0 +1,284 @@ +// dear imgui: Renderer for DirectX9 +// This needs to be used along with a Platform Binding (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'LPDIRECT3DTEXTURE9' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. + +// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. +// If you are new to dear imgui, read examples/README.txt and read the documentation at the top of imgui.cpp. +// https://github.com/ocornut/imgui + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2019-05-29: DirectX9: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. +// 2019-04-30: DirectX9: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. +// 2019-03-29: Misc: Fixed erroneous assert in ImGui_ImplDX9_InvalidateDeviceObjects(). +// 2019-01-16: Misc: Disabled fog before drawing UI's. Fixes issue #2288. +// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. +// 2018-06-08: Misc: Extracted imgui_impl_dx9.cpp/.h away from the old combined DX9+Win32 example. +// 2018-06-08: DirectX9: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. +// 2018-05-07: Render: Saving/restoring Transform because they don't seem to be included in the StateBlock. Setting shading mode to Gouraud. +// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplDX9_RenderDrawData() in the .h file so you can call it yourself. +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. + +#include "imgui.h" +#include "imgui_impl_dx9.h" + +// DirectX +#include +#define DIRECTINPUT_VERSION 0x0800 +#include + +// DirectX data +static LPDIRECT3DDEVICE9 g_pd3dDevice = NULL; +static LPDIRECT3DVERTEXBUFFER9 g_pVB = NULL; +static LPDIRECT3DINDEXBUFFER9 g_pIB = NULL; +static LPDIRECT3DTEXTURE9 g_FontTexture = NULL; +static int g_VertexBufferSize = 5000, g_IndexBufferSize = 10000; + +struct CUSTOMVERTEX +{ + float pos[3]; + D3DCOLOR col; + float uv[2]; +}; +#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_DIFFUSE|D3DFVF_TEX1) + +static void ImGui_ImplDX9_SetupRenderState(ImDrawData* draw_data) +{ + // Setup viewport + D3DVIEWPORT9 vp; + vp.X = vp.Y = 0; + vp.Width = (DWORD)draw_data->DisplaySize.x; + vp.Height = (DWORD)draw_data->DisplaySize.y; + vp.MinZ = 0.0f; + vp.MaxZ = 1.0f; + g_pd3dDevice->SetViewport(&vp); + + // Setup render state: fixed-pipeline, alpha-blending, no face culling, no depth testing, shade mode (for gradient) + g_pd3dDevice->SetPixelShader(NULL); + g_pd3dDevice->SetVertexShader(NULL); + g_pd3dDevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE); + g_pd3dDevice->SetRenderState(D3DRS_LIGHTING, FALSE); + g_pd3dDevice->SetRenderState(D3DRS_ZENABLE, FALSE); + g_pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, TRUE); + g_pd3dDevice->SetRenderState(D3DRS_ALPHATESTENABLE, FALSE); + g_pd3dDevice->SetRenderState(D3DRS_BLENDOP, D3DBLENDOP_ADD); + g_pd3dDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA); + g_pd3dDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA); + g_pd3dDevice->SetRenderState(D3DRS_SCISSORTESTENABLE, TRUE); + g_pd3dDevice->SetRenderState(D3DRS_SHADEMODE, D3DSHADE_GOURAUD); + g_pd3dDevice->SetRenderState(D3DRS_FOGENABLE, FALSE); + g_pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE); + g_pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE); + g_pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_DIFFUSE); + g_pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE); + g_pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE); + g_pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG2, D3DTA_DIFFUSE); + g_pd3dDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR); + g_pd3dDevice->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR); + + // Setup orthographic projection matrix + // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. + // Being agnostic of whether or can be used, we aren't relying on D3DXMatrixIdentity()/D3DXMatrixOrthoOffCenterLH() or DirectX::XMMatrixIdentity()/DirectX::XMMatrixOrthographicOffCenterLH() + { + float L = draw_data->DisplayPos.x + 0.5f; + float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x + 0.5f; + float T = draw_data->DisplayPos.y + 0.5f; + float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y + 0.5f; + D3DMATRIX mat_identity = { { { 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f } } }; + D3DMATRIX mat_projection = + { { { + 2.0f/(R-L), 0.0f, 0.0f, 0.0f, + 0.0f, 2.0f/(T-B), 0.0f, 0.0f, + 0.0f, 0.0f, 0.5f, 0.0f, + (L+R)/(L-R), (T+B)/(B-T), 0.5f, 1.0f + } } }; + g_pd3dDevice->SetTransform(D3DTS_WORLD, &mat_identity); + g_pd3dDevice->SetTransform(D3DTS_VIEW, &mat_identity); + g_pd3dDevice->SetTransform(D3DTS_PROJECTION, &mat_projection); + } +} + +// Render function. +// (this used to be set in io.RenderDrawListsFn and called by ImGui::Render(), but you can now call this directly from your main loop) +void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data) +{ + // Avoid rendering when minimized + if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) + return; + + // Create and grow buffers if needed + if (!g_pVB || g_VertexBufferSize < draw_data->TotalVtxCount) + { + if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } + g_VertexBufferSize = draw_data->TotalVtxCount + 5000; + if (g_pd3dDevice->CreateVertexBuffer(g_VertexBufferSize * sizeof(CUSTOMVERTEX), D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY, D3DFVF_CUSTOMVERTEX, D3DPOOL_DEFAULT, &g_pVB, NULL) < 0) + return; + } + if (!g_pIB || g_IndexBufferSize < draw_data->TotalIdxCount) + { + if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } + g_IndexBufferSize = draw_data->TotalIdxCount + 10000; + if (g_pd3dDevice->CreateIndexBuffer(g_IndexBufferSize * sizeof(ImDrawIdx), D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY, sizeof(ImDrawIdx) == 2 ? D3DFMT_INDEX16 : D3DFMT_INDEX32, D3DPOOL_DEFAULT, &g_pIB, NULL) < 0) + return; + } + + // Backup the DX9 state + IDirect3DStateBlock9* d3d9_state_block = NULL; + if (g_pd3dDevice->CreateStateBlock(D3DSBT_ALL, &d3d9_state_block) < 0) + return; + + // Backup the DX9 transform (DX9 documentation suggests that it is included in the StateBlock but it doesn't appear to) + D3DMATRIX last_world, last_view, last_projection; + g_pd3dDevice->GetTransform(D3DTS_WORLD, &last_world); + g_pd3dDevice->GetTransform(D3DTS_VIEW, &last_view); + g_pd3dDevice->GetTransform(D3DTS_PROJECTION, &last_projection); + + // Copy and convert all vertices into a single contiguous buffer, convert colors to DX9 default format. + // FIXME-OPT: This is a waste of resource, the ideal is to use imconfig.h and + // 1) to avoid repacking colors: #define IMGUI_USE_BGRA_PACKED_COLOR + // 2) to avoid repacking vertices: #define IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT struct ImDrawVert { ImVec2 pos; float z; ImU32 col; ImVec2 uv; } + CUSTOMVERTEX* vtx_dst; + ImDrawIdx* idx_dst; + if (g_pVB->Lock(0, (UINT)(draw_data->TotalVtxCount * sizeof(CUSTOMVERTEX)), (void**)&vtx_dst, D3DLOCK_DISCARD) < 0) + return; + if (g_pIB->Lock(0, (UINT)(draw_data->TotalIdxCount * sizeof(ImDrawIdx)), (void**)&idx_dst, D3DLOCK_DISCARD) < 0) + return; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_src = cmd_list->VtxBuffer.Data; + for (int i = 0; i < cmd_list->VtxBuffer.Size; i++) + { + vtx_dst->pos[0] = vtx_src->pos.x; + vtx_dst->pos[1] = vtx_src->pos.y; + vtx_dst->pos[2] = 0.0f; + vtx_dst->col = (vtx_src->col & 0xFF00FF00) | ((vtx_src->col & 0xFF0000) >> 16) | ((vtx_src->col & 0xFF) << 16); // RGBA --> ARGB for DirectX9 + vtx_dst->uv[0] = vtx_src->uv.x; + vtx_dst->uv[1] = vtx_src->uv.y; + vtx_dst++; + vtx_src++; + } + memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); + idx_dst += cmd_list->IdxBuffer.Size; + } + g_pVB->Unlock(); + g_pIB->Unlock(); + g_pd3dDevice->SetStreamSource(0, g_pVB, 0, sizeof(CUSTOMVERTEX)); + g_pd3dDevice->SetIndices(g_pIB); + g_pd3dDevice->SetFVF(D3DFVF_CUSTOMVERTEX); + + // Setup desired DX state + ImGui_ImplDX9_SetupRenderState(draw_data); + + // Render command lists + // (Because we merged all buffers into a single one, we maintain our own offset into them) + int global_vtx_offset = 0; + int global_idx_offset = 0; + ImVec2 clip_off = draw_data->DisplayPos; + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback != NULL) + { + // User callback, registered via ImDrawList::AddCallback() + // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) + if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) + ImGui_ImplDX9_SetupRenderState(draw_data); + else + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + const RECT r = { (LONG)(pcmd->ClipRect.x - clip_off.x), (LONG)(pcmd->ClipRect.y - clip_off.y), (LONG)(pcmd->ClipRect.z - clip_off.x), (LONG)(pcmd->ClipRect.w - clip_off.y) }; + const LPDIRECT3DTEXTURE9 texture9 = (LPDIRECT3DTEXTURE9)pcmd->TextureId; + g_pd3dDevice->SetTexture(0, texture9); + g_pd3dDevice->SetScissorRect(&r); + g_pd3dDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, pcmd->VtxOffset + global_vtx_offset, 0, (UINT)cmd_list->VtxBuffer.Size, pcmd->IdxOffset + global_idx_offset, pcmd->ElemCount/3); + } + } + global_idx_offset += cmd_list->IdxBuffer.Size; + global_vtx_offset += cmd_list->VtxBuffer.Size; + } + + // Restore the DX9 transform + g_pd3dDevice->SetTransform(D3DTS_WORLD, &last_world); + g_pd3dDevice->SetTransform(D3DTS_VIEW, &last_view); + g_pd3dDevice->SetTransform(D3DTS_PROJECTION, &last_projection); + + // Restore the DX9 state + d3d9_state_block->Apply(); + d3d9_state_block->Release(); +} + +bool ImGui_ImplDX9_Init(IDirect3DDevice9* device) +{ + // Setup back-end capabilities flags + ImGuiIO& io = ImGui::GetIO(); + io.BackendRendererName = "imgui_impl_dx9"; + io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. + + g_pd3dDevice = device; + g_pd3dDevice->AddRef(); + return true; +} + +void ImGui_ImplDX9_Shutdown() +{ + ImGui_ImplDX9_InvalidateDeviceObjects(); + if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } +} + +static bool ImGui_ImplDX9_CreateFontsTexture() +{ + // Build texture atlas + ImGuiIO& io = ImGui::GetIO(); + unsigned char* pixels; + int width, height, bytes_per_pixel; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height, &bytes_per_pixel); + + // Upload texture to graphics system + g_FontTexture = NULL; + if (g_pd3dDevice->CreateTexture(width, height, 1, D3DUSAGE_DYNAMIC, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &g_FontTexture, NULL) < 0) + return false; + D3DLOCKED_RECT tex_locked_rect; + if (g_FontTexture->LockRect(0, &tex_locked_rect, NULL, 0) != D3D_OK) + return false; + for (int y = 0; y < height; y++) + memcpy((unsigned char *)tex_locked_rect.pBits + tex_locked_rect.Pitch * y, pixels + (width * bytes_per_pixel) * y, (width * bytes_per_pixel)); + g_FontTexture->UnlockRect(0); + + // Store our identifier + io.Fonts->TexID = (ImTextureID)g_FontTexture; + + return true; +} + +bool ImGui_ImplDX9_CreateDeviceObjects() +{ + if (!g_pd3dDevice) + return false; + if (!ImGui_ImplDX9_CreateFontsTexture()) + return false; + return true; +} + +void ImGui_ImplDX9_InvalidateDeviceObjects() +{ + if (!g_pd3dDevice) + return; + if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } + if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } + if (g_FontTexture) { g_FontTexture->Release(); g_FontTexture = NULL; ImGui::GetIO().Fonts->TexID = NULL; } // We copied g_pFontTextureView to io.Fonts->TexID so let's clear that as well. +} + +void ImGui_ImplDX9_NewFrame() +{ + if (!g_FontTexture) + ImGui_ImplDX9_CreateDeviceObjects(); +} diff --git a/CheatMenu/external/imgui/imgui_impl_dx9.h b/CheatMenu/external/imgui/imgui_impl_dx9.h new file mode 100644 index 0000000..b93c89f --- /dev/null +++ b/CheatMenu/external/imgui/imgui_impl_dx9.h @@ -0,0 +1,24 @@ +// dear imgui: Renderer for DirectX9 +// This needs to be used along with a Platform Binding (e.g. Win32) + +// Implemented features: +// [X] Renderer: User texture binding. Use 'LPDIRECT3DTEXTURE9' as ImTextureID. Read the FAQ about ImTextureID! +// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. + +// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. +// If you are new to dear imgui, read examples/README.txt and read the documentation at the top of imgui.cpp. +// https://github.com/ocornut/imgui + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API + +struct IDirect3DDevice9; + +IMGUI_IMPL_API bool ImGui_ImplDX9_Init(IDirect3DDevice9* device); +IMGUI_IMPL_API void ImGui_ImplDX9_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplDX9_NewFrame(); +IMGUI_IMPL_API void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data); + +// Use if you want to reset your rendering device without losing Dear ImGui state. +IMGUI_IMPL_API bool ImGui_ImplDX9_CreateDeviceObjects(); +IMGUI_IMPL_API void ImGui_ImplDX9_InvalidateDeviceObjects(); diff --git a/CheatMenu/external/imgui/imgui_impl_win32.cpp b/CheatMenu/external/imgui/imgui_impl_win32.cpp new file mode 100644 index 0000000..f8868ce --- /dev/null +++ b/CheatMenu/external/imgui/imgui_impl_win32.cpp @@ -0,0 +1,441 @@ +// dear imgui: Platform Binding for Windows (standard windows API for 32 and 64 bits applications) +// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) + +// Implemented features: +// [X] Platform: Clipboard support (for Win32 this is actually part of core dear imgui) +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [X] Platform: Keyboard arrays indexed using VK_* Virtual Key Codes, e.g. ImGui::IsKeyPressed(VK_SPACE). +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. + +#include "imgui.h" +#include "imgui_impl_win32.h" +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#include +#include + +// Using XInput library for gamepad (with recent Windows SDK this may leads to executables which won't run on Windows 7) +#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD +#include +#else +#define IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT +#endif +#if defined(_MSC_VER) && !defined(IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT) +#pragma comment(lib, "xinput") +//#pragma comment(lib, "Xinput9_1_0") +#endif + +// CHANGELOG +// (minor and older changes stripped away, please see git history for details) +// 2020-03-03: Inputs: Calling AddInputCharacterUTF16() to support surrogate pairs leading to codepoint >= 0x10000 (for more complete CJK inputs) +// 2020-02-17: Added ImGui_ImplWin32_EnableDpiAwareness(), ImGui_ImplWin32_GetDpiScaleForHwnd(), ImGui_ImplWin32_GetDpiScaleForMonitor() helper functions. +// 2020-01-14: Inputs: Added support for #define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD/IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT. +// 2019-12-05: Inputs: Added support for ImGuiMouseCursor_NotAllowed mouse cursor. +// 2019-05-11: Inputs: Don't filter value from WM_CHAR before calling AddInputCharacter(). +// 2019-01-17: Misc: Using GetForegroundWindow()+IsChild() instead of GetActiveWindow() to be compatible with windows created in a different thread or parent. +// 2019-01-17: Inputs: Added support for mouse buttons 4 and 5 via WM_XBUTTON* messages. +// 2019-01-15: Inputs: Added support for XInput gamepads (if ImGuiConfigFlags_NavEnableGamepad is set by user application). +// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. +// 2018-06-29: Inputs: Added support for the ImGuiMouseCursor_Hand cursor. +// 2018-06-10: Inputs: Fixed handling of mouse wheel messages to support fine position messages (typically sent by track-pads). +// 2018-06-08: Misc: Extracted imgui_impl_win32.cpp/.h away from the old combined DX9/DX10/DX11/DX12 examples. +// 2018-03-20: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors and ImGuiBackendFlags_HasSetMousePos flags + honor ImGuiConfigFlags_NoMouseCursorChange flag. +// 2018-02-20: Inputs: Added support for mouse cursors (ImGui::GetMouseCursor() value and WM_SETCURSOR message handling). +// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. +// 2018-02-06: Inputs: Honoring the io.WantSetMousePos by repositioning the mouse (when using navigation and ImGuiConfigFlags_NavMoveMouse is set). +// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. +// 2018-01-20: Inputs: Added Horizontal Mouse Wheel support. +// 2018-01-08: Inputs: Added mapping for ImGuiKey_Insert. +// 2018-01-05: Inputs: Added WM_LBUTTONDBLCLK double-click handlers for window classes with the CS_DBLCLKS flag. +// 2017-10-23: Inputs: Added WM_SYSKEYDOWN / WM_SYSKEYUP handlers so e.g. the VK_MENU key can be read. +// 2017-10-23: Inputs: Using Win32 ::SetCapture/::GetCapture() to retrieve mouse positions outside the client area when dragging. +// 2016-11-12: Inputs: Only call Win32 ::SetCursor(NULL) when io.MouseDrawCursor is set. + +// Win32 Data +static HWND g_hWnd = NULL; +static INT64 g_Time = 0; +static INT64 g_TicksPerSecond = 0; +static ImGuiMouseCursor g_LastMouseCursor = ImGuiMouseCursor_COUNT; +static bool g_HasGamepad = false; +static bool g_WantUpdateHasGamepad = true; + +// Functions +bool ImGui_ImplWin32_Init(void* hwnd) +{ + if (!::QueryPerformanceFrequency((LARGE_INTEGER *)&g_TicksPerSecond)) + return false; + if (!::QueryPerformanceCounter((LARGE_INTEGER *)&g_Time)) + return false; + + // Setup back-end capabilities flags + g_hWnd = (HWND)hwnd; + ImGuiIO& io = ImGui::GetIO(); + io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) + io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) + io.BackendPlatformName = "imgui_impl_win32"; + io.ImeWindowHandle = hwnd; + + // Keyboard mapping. ImGui will use those indices to peek into the io.KeysDown[] array that we will update during the application lifetime. + io.KeyMap[ImGuiKey_Tab] = VK_TAB; + io.KeyMap[ImGuiKey_LeftArrow] = VK_LEFT; + io.KeyMap[ImGuiKey_RightArrow] = VK_RIGHT; + io.KeyMap[ImGuiKey_UpArrow] = VK_UP; + io.KeyMap[ImGuiKey_DownArrow] = VK_DOWN; + io.KeyMap[ImGuiKey_PageUp] = VK_PRIOR; + io.KeyMap[ImGuiKey_PageDown] = VK_NEXT; + io.KeyMap[ImGuiKey_Home] = VK_HOME; + io.KeyMap[ImGuiKey_End] = VK_END; + io.KeyMap[ImGuiKey_Insert] = VK_INSERT; + io.KeyMap[ImGuiKey_Delete] = VK_DELETE; + io.KeyMap[ImGuiKey_Backspace] = VK_BACK; + io.KeyMap[ImGuiKey_Space] = VK_SPACE; + io.KeyMap[ImGuiKey_Enter] = VK_RETURN; + io.KeyMap[ImGuiKey_Escape] = VK_ESCAPE; + io.KeyMap[ImGuiKey_KeyPadEnter] = VK_RETURN; + io.KeyMap[ImGuiKey_A] = 'A'; + io.KeyMap[ImGuiKey_C] = 'C'; + io.KeyMap[ImGuiKey_V] = 'V'; + io.KeyMap[ImGuiKey_X] = 'X'; + io.KeyMap[ImGuiKey_Y] = 'Y'; + io.KeyMap[ImGuiKey_Z] = 'Z'; + + return true; +} + +void ImGui_ImplWin32_Shutdown() +{ + g_hWnd = (HWND)0; +} + +static bool ImGui_ImplWin32_UpdateMouseCursor() +{ + ImGuiIO& io = ImGui::GetIO(); + if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) + return false; + + ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); + if (imgui_cursor == ImGuiMouseCursor_None || io.MouseDrawCursor) + { + // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor + ::SetCursor(NULL); + } + else + { + // Show OS mouse cursor + LPTSTR win32_cursor = IDC_ARROW; + switch (imgui_cursor) + { + case ImGuiMouseCursor_Arrow: win32_cursor = IDC_ARROW; break; + case ImGuiMouseCursor_TextInput: win32_cursor = IDC_IBEAM; break; + case ImGuiMouseCursor_ResizeAll: win32_cursor = IDC_SIZEALL; break; + case ImGuiMouseCursor_ResizeEW: win32_cursor = IDC_SIZEWE; break; + case ImGuiMouseCursor_ResizeNS: win32_cursor = IDC_SIZENS; break; + case ImGuiMouseCursor_ResizeNESW: win32_cursor = IDC_SIZENESW; break; + case ImGuiMouseCursor_ResizeNWSE: win32_cursor = IDC_SIZENWSE; break; + case ImGuiMouseCursor_Hand: win32_cursor = IDC_HAND; break; + case ImGuiMouseCursor_NotAllowed: win32_cursor = IDC_NO; break; + } + ::SetCursor(::LoadCursor(NULL, win32_cursor)); + } + return true; +} + +static void ImGui_ImplWin32_UpdateMousePos() +{ + ImGuiIO& io = ImGui::GetIO(); + + // Set OS mouse position if requested (rarely used, only when ImGuiConfigFlags_NavEnableSetMousePos is enabled by user) + if (io.WantSetMousePos) + { + POINT pos = { (int)io.MousePos.x, (int)io.MousePos.y }; + ::ClientToScreen(g_hWnd, &pos); + ::SetCursorPos(pos.x, pos.y); + } + + // Set mouse position + io.MousePos = ImVec2(-FLT_MAX, -FLT_MAX); + POINT pos; + if (HWND active_window = ::GetForegroundWindow()) + if (active_window == g_hWnd || ::IsChild(active_window, g_hWnd)) + if (::GetCursorPos(&pos) && ::ScreenToClient(g_hWnd, &pos)) + io.MousePos = ImVec2((float)pos.x, (float)pos.y); +} + +// Gamepad navigation mapping +static void ImGui_ImplWin32_UpdateGamepads() +{ +#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD + ImGuiIO& io = ImGui::GetIO(); + memset(io.NavInputs, 0, sizeof(io.NavInputs)); + if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) + return; + + // Calling XInputGetState() every frame on disconnected gamepads is unfortunately too slow. + // Instead we refresh gamepad availability by calling XInputGetCapabilities() _only_ after receiving WM_DEVICECHANGE. + if (g_WantUpdateHasGamepad) + { + XINPUT_CAPABILITIES caps; + g_HasGamepad = (XInputGetCapabilities(0, XINPUT_FLAG_GAMEPAD, &caps) == ERROR_SUCCESS); + g_WantUpdateHasGamepad = false; + } + + XINPUT_STATE xinput_state; + io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; + if (g_HasGamepad && XInputGetState(0, &xinput_state) == ERROR_SUCCESS) + { + const XINPUT_GAMEPAD& gamepad = xinput_state.Gamepad; + io.BackendFlags |= ImGuiBackendFlags_HasGamepad; + + #define MAP_BUTTON(NAV_NO, BUTTON_ENUM) { io.NavInputs[NAV_NO] = (gamepad.wButtons & BUTTON_ENUM) ? 1.0f : 0.0f; } + #define MAP_ANALOG(NAV_NO, VALUE, V0, V1) { float vn = (float)(VALUE - V0) / (float)(V1 - V0); if (vn > 1.0f) vn = 1.0f; if (vn > 0.0f && io.NavInputs[NAV_NO] < vn) io.NavInputs[NAV_NO] = vn; } + MAP_BUTTON(ImGuiNavInput_Activate, XINPUT_GAMEPAD_A); // Cross / A + MAP_BUTTON(ImGuiNavInput_Cancel, XINPUT_GAMEPAD_B); // Circle / B + MAP_BUTTON(ImGuiNavInput_Menu, XINPUT_GAMEPAD_X); // Square / X + MAP_BUTTON(ImGuiNavInput_Input, XINPUT_GAMEPAD_Y); // Triangle / Y + MAP_BUTTON(ImGuiNavInput_DpadLeft, XINPUT_GAMEPAD_DPAD_LEFT); // D-Pad Left + MAP_BUTTON(ImGuiNavInput_DpadRight, XINPUT_GAMEPAD_DPAD_RIGHT); // D-Pad Right + MAP_BUTTON(ImGuiNavInput_DpadUp, XINPUT_GAMEPAD_DPAD_UP); // D-Pad Up + MAP_BUTTON(ImGuiNavInput_DpadDown, XINPUT_GAMEPAD_DPAD_DOWN); // D-Pad Down + MAP_BUTTON(ImGuiNavInput_FocusPrev, XINPUT_GAMEPAD_LEFT_SHOULDER); // L1 / LB + MAP_BUTTON(ImGuiNavInput_FocusNext, XINPUT_GAMEPAD_RIGHT_SHOULDER); // R1 / RB + MAP_BUTTON(ImGuiNavInput_TweakSlow, XINPUT_GAMEPAD_LEFT_SHOULDER); // L1 / LB + MAP_BUTTON(ImGuiNavInput_TweakFast, XINPUT_GAMEPAD_RIGHT_SHOULDER); // R1 / RB + MAP_ANALOG(ImGuiNavInput_LStickLeft, gamepad.sThumbLX, -XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, -32768); + MAP_ANALOG(ImGuiNavInput_LStickRight, gamepad.sThumbLX, +XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, +32767); + MAP_ANALOG(ImGuiNavInput_LStickUp, gamepad.sThumbLY, +XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, +32767); + MAP_ANALOG(ImGuiNavInput_LStickDown, gamepad.sThumbLY, -XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, -32767); + #undef MAP_BUTTON + #undef MAP_ANALOG + } +#endif // #ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD +} + +void ImGui_ImplWin32_NewFrame() +{ + ImGuiIO& io = ImGui::GetIO(); + IM_ASSERT(io.Fonts->IsBuilt() && "Font atlas not built! It is generally built by the renderer back-end. Missing call to renderer _NewFrame() function? e.g. ImGui_ImplOpenGL3_NewFrame()."); + + // Setup display size (every frame to accommodate for window resizing) + RECT rect; + ::GetClientRect(g_hWnd, &rect); + io.DisplaySize = ImVec2((float)(rect.right - rect.left), (float)(rect.bottom - rect.top)); + + // Setup time step + INT64 current_time; + ::QueryPerformanceCounter((LARGE_INTEGER *)¤t_time); + io.DeltaTime = (float)(current_time - g_Time) / g_TicksPerSecond; + g_Time = current_time; + + // Read keyboard modifiers inputs + io.KeyCtrl = (::GetKeyState(VK_CONTROL) & 0x8000) != 0; + io.KeyShift = (::GetKeyState(VK_SHIFT) & 0x8000) != 0; + io.KeyAlt = (::GetKeyState(VK_MENU) & 0x8000) != 0; + io.KeySuper = false; + // io.KeysDown[], io.MousePos, io.MouseDown[], io.MouseWheel: filled by the WndProc handler below. + + // Update OS mouse position + ImGui_ImplWin32_UpdateMousePos(); + + // Update OS mouse cursor with the cursor requested by imgui + ImGuiMouseCursor mouse_cursor = io.MouseDrawCursor ? ImGuiMouseCursor_None : ImGui::GetMouseCursor(); + if (g_LastMouseCursor != mouse_cursor) + { + g_LastMouseCursor = mouse_cursor; + ImGui_ImplWin32_UpdateMouseCursor(); + } + + // Update game controllers (if enabled and available) + ImGui_ImplWin32_UpdateGamepads(); +} + +// Allow compilation with old Windows SDK. MinGW doesn't have default _WIN32_WINNT/WINVER versions. +#ifndef WM_MOUSEHWHEEL +#define WM_MOUSEHWHEEL 0x020E +#endif +#ifndef DBT_DEVNODES_CHANGED +#define DBT_DEVNODES_CHANGED 0x0007 +#endif + +// Win32 message handler (process Win32 mouse/keyboard inputs, etc.) +// Call from your application's message handler. +// When implementing your own back-end, you can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if Dear ImGui wants to use your inputs. +// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. +// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. +// Generally you may always pass all inputs to Dear ImGui, and hide them from your application based on those two flags. +// PS: In this Win32 handler, we use the capture API (GetCapture/SetCapture/ReleaseCapture) to be able to read mouse coordinates when dragging mouse outside of our window bounds. +// PS: We treat DBLCLK messages as regular mouse down messages, so this code will work on windows classes that have the CS_DBLCLKS flag set. Our own example app code doesn't set this flag. +#if 0 +// Copy this line into your .cpp file to forward declare the function. +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); +#endif +IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + if (ImGui::GetCurrentContext() == NULL) + return 0; + + ImGuiIO& io = ImGui::GetIO(); + switch (msg) + { + case WM_LBUTTONDOWN: case WM_LBUTTONDBLCLK: + case WM_RBUTTONDOWN: case WM_RBUTTONDBLCLK: + case WM_MBUTTONDOWN: case WM_MBUTTONDBLCLK: + case WM_XBUTTONDOWN: case WM_XBUTTONDBLCLK: + { + int button = 0; + if (msg == WM_LBUTTONDOWN || msg == WM_LBUTTONDBLCLK) { button = 0; } + if (msg == WM_RBUTTONDOWN || msg == WM_RBUTTONDBLCLK) { button = 1; } + if (msg == WM_MBUTTONDOWN || msg == WM_MBUTTONDBLCLK) { button = 2; } + if (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONDBLCLK) { button = (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) ? 3 : 4; } + if (!ImGui::IsAnyMouseDown() && ::GetCapture() == NULL) + ::SetCapture(hwnd); + io.MouseDown[button] = true; + return 0; + } + case WM_LBUTTONUP: + case WM_RBUTTONUP: + case WM_MBUTTONUP: + case WM_XBUTTONUP: + { + int button = 0; + if (msg == WM_LBUTTONUP) { button = 0; } + if (msg == WM_RBUTTONUP) { button = 1; } + if (msg == WM_MBUTTONUP) { button = 2; } + if (msg == WM_XBUTTONUP) { button = (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) ? 3 : 4; } + io.MouseDown[button] = false; + if (!ImGui::IsAnyMouseDown() && ::GetCapture() == hwnd) + ::ReleaseCapture(); + return 0; + } + case WM_MOUSEWHEEL: + io.MouseWheel += (float)GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA; + return 0; + case WM_MOUSEHWHEEL: + io.MouseWheelH += (float)GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA; + return 0; + case WM_KEYDOWN: + case WM_SYSKEYDOWN: + if (wParam < 256) + io.KeysDown[wParam] = 1; + return 0; + case WM_KEYUP: + case WM_SYSKEYUP: + if (wParam < 256) + io.KeysDown[wParam] = 0; + return 0; + case WM_CHAR: + // You can also use ToAscii()+GetKeyboardState() to retrieve characters. + if (wParam > 0 && wParam < 0x10000) + io.AddInputCharacterUTF16((unsigned short)wParam); + return 0; + case WM_SETCURSOR: + if (LOWORD(lParam) == HTCLIENT && ImGui_ImplWin32_UpdateMouseCursor()) + return 1; + return 0; + case WM_DEVICECHANGE: + if ((UINT)wParam == DBT_DEVNODES_CHANGED) + g_WantUpdateHasGamepad = true; + return 0; + } + return 0; +} + + +//-------------------------------------------------------------------------------------------------------- +// DPI-related helpers (optional) +//-------------------------------------------------------------------------------------------------------- +// - Use to enable DPI awareness without having to create an application manifest. +// - Your own app may already do this via a manifest or explicit calls. This is mostly useful for our examples/ apps. +// - In theory we could call simple functions from Windows SDK such as SetProcessDPIAware(), SetProcessDpiAwareness(), etc. +// but most of the functions provided by Microsoft require Windows 8.1/10+ SDK at compile time and Windows 8/10+ at runtime, +// neither we want to require the user to have. So we dynamically select and load those functions to avoid dependencies. +//--------------------------------------------------------------------------------------------------------- +// This is the scheme successfully used by GLFW (from which we borrowed some of the code) and other apps aiming to be highly portable. +// ImGui_ImplWin32_EnableDpiAwareness() is just a helper called by main.cpp, we don't call it automatically. +// If you are trying to implement your own back-end for your own engine, you may ignore that noise. +//--------------------------------------------------------------------------------------------------------- + +// Implement some of the functions and types normally declared in recent Windows SDK. +#if !defined(_versionhelpers_H_INCLUDED_) && !defined(_INC_VERSIONHELPERS) +static BOOL IsWindowsVersionOrGreater(WORD major, WORD minor, WORD sp) +{ + OSVERSIONINFOEXW osvi = { sizeof(osvi), major, minor, 0, 0, { 0 }, sp }; + DWORD mask = VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR; + ULONGLONG cond = ::VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL); + cond = ::VerSetConditionMask(cond, VER_MINORVERSION, VER_GREATER_EQUAL); + cond = ::VerSetConditionMask(cond, VER_SERVICEPACKMAJOR, VER_GREATER_EQUAL); + return ::VerifyVersionInfoW(&osvi, mask, cond); +} +#define IsWindows8Point1OrGreater() IsWindowsVersionOrGreater(HIBYTE(0x0602), LOBYTE(0x0602), 0) // _WIN32_WINNT_WINBLUE +#endif + +#ifndef DPI_ENUMS_DECLARED +typedef enum { PROCESS_DPI_UNAWARE = 0, PROCESS_SYSTEM_DPI_AWARE = 1, PROCESS_PER_MONITOR_DPI_AWARE = 2 } PROCESS_DPI_AWARENESS; +typedef enum { MDT_EFFECTIVE_DPI = 0, MDT_ANGULAR_DPI = 1, MDT_RAW_DPI = 2, MDT_DEFAULT = MDT_EFFECTIVE_DPI } MONITOR_DPI_TYPE; +#endif +#ifndef _DPI_AWARENESS_CONTEXTS_ +DECLARE_HANDLE(DPI_AWARENESS_CONTEXT); +#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE (DPI_AWARENESS_CONTEXT)-3 +#endif +#ifndef DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 +#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 (DPI_AWARENESS_CONTEXT)-4 +#endif +typedef HRESULT(WINAPI* PFN_SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS); // Shcore.lib + dll, Windows 8.1+ +typedef HRESULT(WINAPI* PFN_GetDpiForMonitor)(HMONITOR, MONITOR_DPI_TYPE, UINT*, UINT*); // Shcore.lib + dll, Windows 8.1+ +typedef DPI_AWARENESS_CONTEXT(WINAPI* PFN_SetThreadDpiAwarenessContext)(DPI_AWARENESS_CONTEXT); // User32.lib + dll, Windows 10 v1607+ (Creators Update) + +// Helper function to enable DPI awareness without setting up a manifest +void ImGui_ImplWin32_EnableDpiAwareness() +{ + // if (IsWindows10OrGreater()) // This needs a manifest to succeed. Instead we try to grab the function pointer! + { + static HINSTANCE user32_dll = ::LoadLibraryA("user32.dll"); // Reference counted per-process + if (PFN_SetThreadDpiAwarenessContext SetThreadDpiAwarenessContextFn = (PFN_SetThreadDpiAwarenessContext)::GetProcAddress(user32_dll, "SetThreadDpiAwarenessContext")) + { + SetThreadDpiAwarenessContextFn(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); + return; + } + } + if (IsWindows8Point1OrGreater()) + { + static HINSTANCE shcore_dll = ::LoadLibraryA("shcore.dll"); // Reference counted per-process + if (PFN_SetProcessDpiAwareness SetProcessDpiAwarenessFn = (PFN_SetProcessDpiAwareness)::GetProcAddress(shcore_dll, "SetProcessDpiAwareness")) + { + SetProcessDpiAwarenessFn(PROCESS_PER_MONITOR_DPI_AWARE); + return; + } + } + SetProcessDPIAware(); +} + +#ifdef _MSC_VER +#pragma comment(lib, "gdi32") // Link with gdi32.lib for GetDeviceCaps() +#endif + +float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor) +{ + UINT xdpi = 96, ydpi = 96; + if (IsWindows8Point1OrGreater()) + { + static HINSTANCE shcore_dll = ::LoadLibraryA("shcore.dll"); // Reference counted per-process + if (PFN_GetDpiForMonitor GetDpiForMonitorFn = (PFN_GetDpiForMonitor)::GetProcAddress(shcore_dll, "GetDpiForMonitor")) + GetDpiForMonitorFn((HMONITOR)monitor, MDT_EFFECTIVE_DPI, &xdpi, &ydpi); + } + else + { + const HDC dc = ::GetDC(NULL); + xdpi = ::GetDeviceCaps(dc, LOGPIXELSX); + ydpi = ::GetDeviceCaps(dc, LOGPIXELSY); + ::ReleaseDC(NULL, dc); + } + IM_ASSERT(xdpi == ydpi); // Please contact me if you hit this assert! + return xdpi / 96.0f; +} + +float ImGui_ImplWin32_GetDpiScaleForHwnd(void* hwnd) +{ + HMONITOR monitor = ::MonitorFromWindow((HWND)hwnd, MONITOR_DEFAULTTONEAREST); + return ImGui_ImplWin32_GetDpiScaleForMonitor(monitor); +} + +//--------------------------------------------------------------------------------------------------------- diff --git a/CheatMenu/external/imgui/imgui_impl_win32.h b/CheatMenu/external/imgui/imgui_impl_win32.h new file mode 100644 index 0000000..8923bd6 --- /dev/null +++ b/CheatMenu/external/imgui/imgui_impl_win32.h @@ -0,0 +1,37 @@ +// dear imgui: Platform Binding for Windows (standard windows API for 32 and 64 bits applications) +// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) + +// Implemented features: +// [X] Platform: Clipboard support (for Win32 this is actually part of core dear imgui) +// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. +// [X] Platform: Keyboard arrays indexed using VK_* Virtual Key Codes, e.g. ImGui::IsKeyPressed(VK_SPACE). +// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. + +#pragma once +#include "imgui.h" // IMGUI_IMPL_API + +IMGUI_IMPL_API bool ImGui_ImplWin32_Init(void* hwnd); +IMGUI_IMPL_API void ImGui_ImplWin32_Shutdown(); +IMGUI_IMPL_API void ImGui_ImplWin32_NewFrame(); + +// Configuration +// - Disable gamepad support or linking with xinput.lib +//#define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD +//#define IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT + +// Win32 message handler your application need to call. +// - Intentionally commented out in a '#if 0' block to avoid dragging dependencies on from this helper. +// - You should COPY the line below into your .cpp code to forward declare the function and then you can call it. +#if 0 +extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); +#endif + +// DPI-related helpers (optional) +// - Use to enable DPI awareness without having to create an application manifest. +// - Your own app may already do this via a manifest or explicit calls. This is mostly useful for our examples/ apps. +// - In theory we could call simple functions from Windows SDK such as SetProcessDPIAware(), SetProcessDpiAwareness(), etc. +// but most of the functions provided by Microsoft require Windows 8.1/10+ SDK at compile time and Windows 8/10+ at runtime, +// neither we want to require the user to have. So we dynamically select and load those functions to avoid dependencies. +IMGUI_IMPL_API void ImGui_ImplWin32_EnableDpiAwareness(); +IMGUI_IMPL_API float ImGui_ImplWin32_GetDpiScaleForHwnd(void* hwnd); // HWND hwnd +IMGUI_IMPL_API float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor); // HMONITOR monitor diff --git a/CheatMenu/external/imgui/imgui_internal.h b/CheatMenu/external/imgui/imgui_internal.h new file mode 100644 index 0000000..2e108c2 --- /dev/null +++ b/CheatMenu/external/imgui/imgui_internal.h @@ -0,0 +1,2093 @@ +// dear imgui, v1.79 +// (internal structures/api) + +// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility! +// Set: +// #define IMGUI_DEFINE_MATH_OPERATORS +// To implement maths operators for ImVec2 (disabled by default to not collide with using IM_VEC2_CLASS_EXTRA along with your own math types+operators) + +/* + +Index of this file: + +// [SECTION] Header mess +// [SECTION] Forward declarations +// [SECTION] Context pointer +// [SECTION] STB libraries includes +// [SECTION] Macros +// [SECTION] Generic helpers +// [SECTION] ImDrawList support +// [SECTION] Widgets support: flags, enums, data structures +// [SECTION] Columns support +// [SECTION] Settings support +// [SECTION] Multi-select support +// [SECTION] Docking support +// [SECTION] Viewport support +// [SECTION] ImGuiContext (main imgui context) +// [SECTION] ImGuiWindowTempData, ImGuiWindow +// [SECTION] Tab bar, Tab item support +// [SECTION] Table support +// [SECTION] Internal API +// [SECTION] Test Engine Hooks (imgui_test_engine) + +*/ + +#pragma once +#ifndef IMGUI_DISABLE + +//----------------------------------------------------------------------------- +// [SECTION] Header mess +//----------------------------------------------------------------------------- + +#ifndef IMGUI_VERSION +#error Must include imgui.h before imgui_internal.h +#endif + +#include // FILE*, sscanf +#include // NULL, malloc, free, qsort, atoi, atof +#include // sqrtf, fabsf, fmodf, powf, floorf, ceilf, cosf, sinf +#include // INT_MIN, INT_MAX + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (push) +#pragma warning (disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of struct 'xxx' // when IMGUI_API is set to__declspec(dllexport) +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#pragma clang diagnostic push +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wunused-function" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wmissing-prototypes" // for stb_textedit.h +#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#pragma clang diagnostic ignored "-Wdouble-promotion" +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +// Legacy defines +#ifdef IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS +#endif +#ifdef IMGUI_DISABLE_MATH_FUNCTIONS // Renamed in 1.74 +#error Use IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#endif + +//----------------------------------------------------------------------------- +// [SECTION] Forward declarations +//----------------------------------------------------------------------------- + +struct ImBitVector; // Store 1-bit per value +struct ImRect; // An axis-aligned rectangle (2 points) +struct ImDrawDataBuilder; // Helper to build a ImDrawData instance +struct ImDrawListSharedData; // Data shared between all ImDrawList instances +struct ImGuiColorMod; // Stacked color modifier, backup of modified data so we can restore it +struct ImGuiColumnData; // Storage data for a single column +struct ImGuiColumns; // Storage data for a columns set +struct ImGuiContext; // Main Dear ImGui context +struct ImGuiDataTypeInfo; // Type information associated to a ImGuiDataType enum +struct ImGuiGroupData; // Stacked storage data for BeginGroup()/EndGroup() +struct ImGuiInputTextState; // Internal state of the currently focused/edited text input box +struct ImGuiLastItemDataBackup; // Backup and restore IsItemHovered() internal data +struct ImGuiMenuColumns; // Simple column measurement, currently used for MenuItem() only +struct ImGuiNavMoveResult; // Result of a gamepad/keyboard directional navigation move query result +struct ImGuiNextWindowData; // Storage for SetNextWindow** functions +struct ImGuiNextItemData; // Storage for SetNextItem** functions +struct ImGuiPopupData; // Storage for current popup stack +struct ImGuiSettingsHandler; // Storage for one type registered in the .ini file +struct ImGuiStyleMod; // Stacked style modifier, backup of modified data so we can restore it +struct ImGuiTabBar; // Storage for a tab bar +struct ImGuiTabItem; // Storage for a tab item (within a tab bar) +struct ImGuiWindow; // Storage for one window +struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame) +struct ImGuiWindowSettings; // Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during this session) + +// Use your programming IDE "Go to definition" facility on the names of the center columns to find the actual flags/enum lists. +typedef int ImGuiLayoutType; // -> enum ImGuiLayoutType_ // Enum: Horizontal or vertical +typedef int ImGuiButtonFlags; // -> enum ImGuiButtonFlags_ // Flags: for ButtonEx(), ButtonBehavior() +typedef int ImGuiColumnsFlags; // -> enum ImGuiColumnsFlags_ // Flags: BeginColumns() +typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag() +typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for DC.LastItemStatusFlags +typedef int ImGuiNavHighlightFlags; // -> enum ImGuiNavHighlightFlags_ // Flags: for RenderNavHighlight() +typedef int ImGuiNavDirSourceFlags; // -> enum ImGuiNavDirSourceFlags_ // Flags: for GetNavInputAmount2d() +typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests +typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions +typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions +typedef int ImGuiSeparatorFlags; // -> enum ImGuiSeparatorFlags_ // Flags: for SeparatorEx() +typedef int ImGuiTextFlags; // -> enum ImGuiTextFlags_ // Flags: for TextEx() +typedef int ImGuiTooltipFlags; // -> enum ImGuiTooltipFlags_ // Flags: for BeginTooltipEx() + +//----------------------------------------------------------------------------- +// [SECTION] Context pointer +// See implementation of this variable in imgui.cpp for comments and details. +//----------------------------------------------------------------------------- + +#ifndef GImGui +extern IMGUI_API ImGuiContext* GImGui; // Current implicit context pointer +#endif + +//------------------------------------------------------------------------- +// [SECTION] STB libraries includes +//------------------------------------------------------------------------- + +namespace ImStb +{ + +#undef STB_TEXTEDIT_STRING +#undef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_STRING ImGuiInputTextState +#define STB_TEXTEDIT_CHARTYPE ImWchar +#define STB_TEXTEDIT_GETWIDTH_NEWLINE (-1.0f) +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#include "imstb_textedit.h" + +} // namespace ImStb + +//----------------------------------------------------------------------------- +// [SECTION] Macros +//----------------------------------------------------------------------------- + +// Debug Logging +#ifndef IMGUI_DEBUG_LOG +#define IMGUI_DEBUG_LOG(_FMT,...) printf("[%05d] " _FMT, GImGui->FrameCount, __VA_ARGS__) +#endif + +// Debug Logging for selected systems. Remove the '((void)0) //' to enable. +//#define IMGUI_DEBUG_LOG_POPUP IMGUI_DEBUG_LOG // Enable log +//#define IMGUI_DEBUG_LOG_NAV IMGUI_DEBUG_LOG // Enable log +#define IMGUI_DEBUG_LOG_POPUP(...) ((void)0) // Disable log +#define IMGUI_DEBUG_LOG_NAV(...) ((void)0) // Disable log + +// Static Asserts +#if (__cplusplus >= 201100) +#define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") +#else +#define IM_STATIC_ASSERT(_COND) typedef char static_assertion_##__line__[(_COND)?1:-1] +#endif + +// "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much. +// We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code. +//#define IMGUI_DEBUG_PARANOID +#ifdef IMGUI_DEBUG_PARANOID +#define IM_ASSERT_PARANOID(_EXPR) IM_ASSERT(_EXPR) +#else +#define IM_ASSERT_PARANOID(_EXPR) +#endif + +// Error handling +// Down the line in some frameworks/languages we would like to have a way to redirect those to the programmer and recover from more faults. +#ifndef IM_ASSERT_USER_ERROR +#define IM_ASSERT_USER_ERROR(_EXP,_MSG) IM_ASSERT((_EXP) && _MSG) // Recoverable User Error +#endif + +// Misc Macros +#define IM_PI 3.14159265358979323846f +#ifdef _WIN32 +#define IM_NEWLINE "\r\n" // Play it nice with Windows users (Update: since 2018-05, Notepad finally appears to support Unix-style carriage returns!) +#else +#define IM_NEWLINE "\n" +#endif +#define IM_TABSIZE (4) +#define IM_F32_TO_INT8_UNBOUND(_VAL) ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f))) // Unsaturated, for display purpose +#define IM_F32_TO_INT8_SAT(_VAL) ((int)(ImSaturate(_VAL) * 255.0f + 0.5f)) // Saturated, always output 0..255 +#define IM_FLOOR(_VAL) ((float)(int)(_VAL)) // ImFloor() is not inlined in MSVC debug builds +#define IM_ROUND(_VAL) ((float)(int)((_VAL) + 0.5f)) // + +// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall +#ifdef _MSC_VER +#define IMGUI_CDECL __cdecl +#else +#define IMGUI_CDECL +#endif + +// Debug Tools +// Use 'Metrics->Tools->Item Picker' to break into the call-stack of a specific item. +#ifndef IM_DEBUG_BREAK +#if defined(__clang__) +#define IM_DEBUG_BREAK() __builtin_debugtrap() +#elif defined (_MSC_VER) +#define IM_DEBUG_BREAK() __debugbreak() +#else +#define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger! +#endif +#endif // #ifndef IM_DEBUG_BREAK + +//----------------------------------------------------------------------------- +// [SECTION] Generic helpers +// Note that the ImXXX helpers functions are lower-level than ImGui functions. +// ImGui functions or the ImGui context are never called/used from other ImXXX functions. +//----------------------------------------------------------------------------- +// - Helpers: Hashing +// - Helpers: Sorting +// - Helpers: Bit manipulation +// - Helpers: String, Formatting +// - Helpers: UTF-8 <> wchar conversions +// - Helpers: ImVec2/ImVec4 operators +// - Helpers: Maths +// - Helpers: Geometry +// - Helper: ImVec1 +// - Helper: ImVec2ih +// - Helper: ImRect +// - Helper: ImBitArray +// - Helper: ImBitVector +// - Helper: ImPool<> +// - Helper: ImChunkStream<> +//----------------------------------------------------------------------------- + +// Helpers: Hashing +IMGUI_API ImU32 ImHashData(const void* data, size_t data_size, ImU32 seed = 0); +IMGUI_API ImU32 ImHashStr(const char* data, size_t data_size = 0, ImU32 seed = 0); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +static inline ImU32 ImHash(const void* data, int menu_size, ImU32 seed = 0) { return menu_size ? ImHashData(data, (size_t)menu_size, seed) : ImHashStr((const char*)data, 0, seed); } // [moved to ImHashStr/ImHashData in 1.68] +#endif + +// Helpers: Sorting +#define ImQsort qsort + +// Helpers: Color Blending +IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b); + +// Helpers: Bit manipulation +static inline bool ImIsPowerOfTwo(int v) { return v != 0 && (v & (v - 1)) == 0; } +static inline int ImUpperPowerOfTwo(int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; } + +// Helpers: String, Formatting +IMGUI_API int ImStricmp(const char* str1, const char* str2); +IMGUI_API int ImStrnicmp(const char* str1, const char* str2, size_t count); +IMGUI_API void ImStrncpy(char* dst, const char* src, size_t count); +IMGUI_API char* ImStrdup(const char* str); +IMGUI_API char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* str); +IMGUI_API const char* ImStrchrRange(const char* str_begin, const char* str_end, char c); +IMGUI_API int ImStrlenW(const ImWchar* str); +IMGUI_API const char* ImStreolRange(const char* str, const char* str_end); // End end-of-line +IMGUI_API const ImWchar*ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin); // Find beginning-of-line +IMGUI_API const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); +IMGUI_API void ImStrTrimBlanks(char* str); +IMGUI_API const char* ImStrSkipBlank(const char* str); +IMGUI_API int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) IM_FMTARGS(3); +IMGUI_API int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) IM_FMTLIST(3); +IMGUI_API const char* ImParseFormatFindStart(const char* format); +IMGUI_API const char* ImParseFormatFindEnd(const char* format); +IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); +IMGUI_API int ImParseFormatPrecision(const char* format, int default_value); +static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } +static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } + +// Helpers: UTF-8 <> wchar conversions +IMGUI_API int ImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end); // return output UTF-8 bytes count +IMGUI_API int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); // read one character. return input UTF-8 bytes count +IMGUI_API int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_remaining = NULL); // return input UTF-8 bytes count +IMGUI_API int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); // return number of UTF-8 code-points (NOT bytes count) +IMGUI_API int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end); // return number of bytes to express one char in UTF-8 +IMGUI_API int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); // return number of bytes to express string in UTF-8 + +// Helpers: ImVec2/ImVec4 operators +// We are keeping those disabled by default so they don't leak in user space, to allow user enabling implicit cast operators between ImVec2 and their own types (using IM_VEC2_CLASS_EXTRA etc.) +// We unfortunately don't have a unary- operator for ImVec2 because this would needs to be defined inside the class itself. +#ifdef IMGUI_DEFINE_MATH_OPERATORS +static inline ImVec2 operator*(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x * rhs, lhs.y * rhs); } +static inline ImVec2 operator/(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x / rhs, lhs.y / rhs); } +static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); } +static inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); } +static inline ImVec2 operator*(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } +static inline ImVec2 operator/(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x / rhs.x, lhs.y / rhs.y); } +static inline ImVec2& operator*=(ImVec2& lhs, const float rhs) { lhs.x *= rhs; lhs.y *= rhs; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const float rhs) { lhs.x /= rhs; lhs.y /= rhs; return lhs; } +static inline ImVec2& operator+=(ImVec2& lhs, const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; return lhs; } +static inline ImVec2& operator-=(ImVec2& lhs, const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; } +static inline ImVec2& operator*=(ImVec2& lhs, const ImVec2& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y; return lhs; } +static inline ImVec2& operator/=(ImVec2& lhs, const ImVec2& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y; return lhs; } +static inline ImVec4 operator+(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } +static inline ImVec4 operator-(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } +static inline ImVec4 operator*(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } +#endif + +// Helpers: File System +#ifdef IMGUI_DISABLE_FILE_FUNCTIONS +#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef void* ImFileHandle; +static inline ImFileHandle ImFileOpen(const char*, const char*) { return NULL; } +static inline bool ImFileClose(ImFileHandle) { return false; } +static inline ImU64 ImFileGetSize(ImFileHandle) { return (ImU64)-1; } +static inline ImU64 ImFileRead(void*, ImU64, ImU64, ImFileHandle) { return 0; } +static inline ImU64 ImFileWrite(const void*, ImU64, ImU64, ImFileHandle) { return 0; } +#endif +#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS +typedef FILE* ImFileHandle; +IMGUI_API ImFileHandle ImFileOpen(const char* filename, const char* mode); +IMGUI_API bool ImFileClose(ImFileHandle file); +IMGUI_API ImU64 ImFileGetSize(ImFileHandle file); +IMGUI_API ImU64 ImFileRead(void* data, ImU64 menu_size, ImU64 count, ImFileHandle file); +IMGUI_API ImU64 ImFileWrite(const void* data, ImU64 menu_size, ImU64 count, ImFileHandle file); +#else +#define IMGUI_DISABLE_TTY_FUNCTIONS // Can't use stdout, fflush if we are not using default file functions +#endif +IMGUI_API void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size = NULL, int padding_bytes = 0); + +// Helpers: Maths +// - Wrapper for standard libs functions. (Note that imgui_demo.cpp does _not_ use them to keep the code easy to copy) +#ifndef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS +#define ImFabs(X) fabsf(X) +#define ImSqrt(X) sqrtf(X) +#define ImFmod(X, Y) fmodf((X), (Y)) +#define ImCos(X) cosf(X) +#define ImSin(X) sinf(X) +#define ImAcos(X) acosf(X) +#define ImAtan2(Y, X) atan2f((Y), (X)) +#define ImAtof(STR) atof(STR) +#define ImFloorStd(X) floorf(X) // We already uses our own ImFloor() { return (float)(int)v } internally so the standard one wrapper is named differently (it's used by e.g. stb_truetype) +#define ImCeil(X) ceilf(X) +static inline float ImPow(float x, float y) { return powf(x, y); } // DragBehaviorT/SliderBehaviorT uses ImPow with either float/double and need the precision +static inline double ImPow(double x, double y) { return pow(x, y); } +static inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision +static inline double ImLog(double x) { return log(x); } +static inline float ImAbs(float x) { return fabsf(x); } +static inline double ImAbs(double x) { return fabs(x); } +static inline float ImSign(float x) { return (x < 0.0f) ? -1.0f : ((x > 0.0f) ? 1.0f : 0.0f); } // Sign operator - returns -1, 0 or 1 based on sign of argument +static inline double ImSign(double x) { return (x < 0.0) ? -1.0 : ((x > 0.0) ? 1.0 : 0.0); } +#endif +// - ImMin/ImMax/ImClamp/ImLerp/ImSwap are used by widgets which support variety of types: signed/unsigned int/long long float/double +// (Exceptionally using templates here but we could also redefine them for those types) +template static inline T ImMin(T lhs, T rhs) { return lhs < rhs ? lhs : rhs; } +template static inline T ImMax(T lhs, T rhs) { return lhs >= rhs ? lhs : rhs; } +template static inline T ImClamp(T v, T mn, T mx) { return (v < mn) ? mn : (v > mx) ? mx : v; } +template static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * t); } +template static inline void ImSwap(T& a, T& b) { T tmp = a; a = b; b = tmp; } +template static inline T ImAddClampOverflow(T a, T b, T mn, T mx) { if (b < 0 && (a < mn - b)) return mn; if (b > 0 && (a > mx - b)) return mx; return a + b; } +template static inline T ImSubClampOverflow(T a, T b, T mn, T mx) { if (b > 0 && (a < mn + b)) return mn; if (b < 0 && (a > mx + b)) return mx; return a - b; } +// - Misc maths helpers +static inline ImVec2 ImMin(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x < rhs.x ? lhs.x : rhs.x, lhs.y < rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImMax(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x >= rhs.x ? lhs.x : rhs.x, lhs.y >= rhs.y ? lhs.y : rhs.y); } +static inline ImVec2 ImClamp(const ImVec2& v, const ImVec2& mn, ImVec2 mx) { return ImVec2((v.x < mn.x) ? mn.x : (v.x > mx.x) ? mx.x : v.x, (v.y < mn.y) ? mn.y : (v.y > mx.y) ? mx.y : v.y); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, float t) { return ImVec2(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t); } +static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, const ImVec2& t) { return ImVec2(a.x + (b.x - a.x) * t.x, a.y + (b.y - a.y) * t.y); } +static inline ImVec4 ImLerp(const ImVec4& a, const ImVec4& b, float t) { return ImVec4(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t, a.z + (b.z - a.z) * t, a.w + (b.w - a.w) * t); } +static inline float ImSaturate(float f) { return (f < 0.0f) ? 0.0f : (f > 1.0f) ? 1.0f : f; } +static inline float ImLengthSqr(const ImVec2& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y); } +static inline float ImLengthSqr(const ImVec4& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y) + (lhs.z * lhs.z) + (lhs.w * lhs.w); } +static inline float ImInvLength(const ImVec2& lhs, float fail_value) { float d = (lhs.x * lhs.x) + (lhs.y * lhs.y); if (d > 0.0f) return 1.0f / ImSqrt(d); return fail_value; } +static inline float ImFloor(float f) { return (float)(int)(f); } +static inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2((float)(int)(v.x), (float)(int)(v.y)); } +static inline int ImModPositive(int a, int b) { return (a + b) % b; } +static inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; } +static inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); } +static inline float ImLinearSweep(float current, float target, float speed) { if (current < target) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, target); return current; } +static inline ImVec2 ImMul(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } + +// Helpers: Geometry +IMGUI_API ImVec2 ImBezierCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t); // Cubic Bezier +IMGUI_API ImVec2 ImBezierClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments); // For curves with explicit number of segments +IMGUI_API ImVec2 ImBezierClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol);// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol +IMGUI_API ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p); +IMGUI_API bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); +IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w); +inline float ImTriangleArea(const ImVec2& a, const ImVec2& b, const ImVec2& c) { return ImFabs((a.x * (b.y - c.y)) + (b.x * (c.y - a.y)) + (c.x * (a.y - b.y))) * 0.5f; } +IMGUI_API ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy); + +// Helper: ImVec1 (1D vector) +// (this odd construct is used to facilitate the transition between 1D and 2D, and the maintenance of some branches/patches) +struct ImVec1 +{ + float x; + ImVec1() { x = 0.0f; } + ImVec1(float _x) { x = _x; } +}; + +// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage) +struct ImVec2ih +{ + short x, y; + ImVec2ih() { x = y = 0; } + ImVec2ih(short _x, short _y) { x = _x; y = _y; } + explicit ImVec2ih(const ImVec2& rhs) { x = (short)rhs.x; y = (short)rhs.y; } +}; + +// Helper: ImRect (2D axis aligned bounding-box) +// NB: we can't rely on ImVec2 math operators being available here! +struct IMGUI_API ImRect +{ + ImVec2 Min; // Upper-left + ImVec2 Max; // Lower-right + + ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} + ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} + ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} + ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} + + ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + Max.y) * 0.5f); } + ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); } + float GetWidth() const { return Max.x - Min.x; } + float GetHeight() const { return Max.y - Min.y; } + ImVec2 GetTL() const { return Min; } // Top-left + ImVec2 GetTR() const { return ImVec2(Max.x, Min.y); } // Top-right + ImVec2 GetBL() const { return ImVec2(Min.x, Max.y); } // Bottom-left + ImVec2 GetBR() const { return Max; } // Bottom-right + bool Contains(const ImVec2& p) const { return p.x >= Min.x && p.y >= Min.y && p.x < Max.x && p.y < Max.y; } + bool Contains(const ImRect& r) const { return r.Min.x >= Min.x && r.Min.y >= Min.y && r.Max.x <= Max.x && r.Max.y <= Max.y; } + bool Overlaps(const ImRect& r) const { return r.Min.y < Max.y && r.Max.y > Min.y && r.Min.x < Max.x && r.Max.x > Min.x; } + void Add(const ImVec2& p) { if (Min.x > p.x) Min.x = p.x; if (Min.y > p.y) Min.y = p.y; if (Max.x < p.x) Max.x = p.x; if (Max.y < p.y) Max.y = p.y; } + void Add(const ImRect& r) { if (Min.x > r.Min.x) Min.x = r.Min.x; if (Min.y > r.Min.y) Min.y = r.Min.y; if (Max.x < r.Max.x) Max.x = r.Max.x; if (Max.y < r.Max.y) Max.y = r.Max.y; } + void Expand(const float amount) { Min.x -= amount; Min.y -= amount; Max.x += amount; Max.y += amount; } + void Expand(const ImVec2& amount) { Min.x -= amount.x; Min.y -= amount.y; Max.x += amount.x; Max.y += amount.y; } + void Translate(const ImVec2& d) { Min.x += d.x; Min.y += d.y; Max.x += d.x; Max.y += d.y; } + void TranslateX(float dx) { Min.x += dx; Max.x += dx; } + void TranslateY(float dy) { Min.y += dy; Max.y += dy; } + void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max); } // Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not for display. + void ClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(Max, r.Min, r.Max); } // Full version, ensure both points are fully clipped. + void Floor() { Min.x = IM_FLOOR(Min.x); Min.y = IM_FLOOR(Min.y); Max.x = IM_FLOOR(Max.x); Max.y = IM_FLOOR(Max.y); } + bool IsInverted() const { return Min.x > Max.x || Min.y > Max.y; } + ImVec4 ToVec4() const { return ImVec4(Min.x, Min.y, Max.x, Max.y); } +}; + +// Helper: ImBitArray +inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; } +inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; } +inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; } +inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) +{ + while (n <= n2) + { + int a_mod = (n & 31); + int b_mod = ((n2 >= n + 31) ? 31 : (n2 & 31)) + 1; + ImU32 mask = (ImU32)(((ImU64)1 << b_mod) - 1) & ~(ImU32)(((ImU64)1 << a_mod) - 1); + arr[n >> 5] |= mask; + n = (n + 32) & ~31; + } +} + +// Helper: ImBitVector +// Store 1-bit per value. +struct IMGUI_API ImBitVector +{ + ImVector Storage; + void Create(int sz) { Storage.resize((sz + 31) >> 5); memset(Storage.Data, 0, (size_t)Storage.Size * sizeof(Storage.Data[0])); } + void Clear() { Storage.clear(); } + bool TestBit(int n) const { IM_ASSERT(n < (Storage.Size << 5)); return ImBitArrayTestBit(Storage.Data, n); } + void SetBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArraySetBit(Storage.Data, n); } + void ClearBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArrayClearBit(Storage.Data, n); } +}; + +// Helper: ImPool<> +// Basic keyed storage for contiguous instances, slow/amortized insertion, O(1) indexable, O(Log N) queries by ID over a dense/hot buffer, +// Honor constructor/destructor. Add/remove invalidate all pointers. Indexes have the same lifetime as the associated object. +typedef int ImPoolIdx; +template +struct IMGUI_API ImPool +{ + ImVector Buf; // Contiguous data + ImGuiStorage Map; // ID->Index + ImPoolIdx FreeIdx; // Next free idx to use + + ImPool() { FreeIdx = 0; } + ~ImPool() { Clear(); } + T* GetByKey(ImGuiID key) { int idx = Map.GetInt(key, -1); return (idx != -1) ? &Buf[idx] : NULL; } + T* GetByIndex(ImPoolIdx n) { return &Buf[n]; } + ImPoolIdx GetIndex(const T* p) const { IM_ASSERT(p >= Buf.Data && p < Buf.Data + Buf.Size); return (ImPoolIdx)(p - Buf.Data); } + T* GetOrAddByKey(ImGuiID key) { int* p_idx = Map.GetIntRef(key, -1); if (*p_idx != -1) return &Buf[*p_idx]; *p_idx = FreeIdx; return Add(); } + bool Contains(const T* p) const { return (p >= Buf.Data && p < Buf.Data + Buf.Size); } + void Clear() { for (int n = 0; n < Map.Data.Size; n++) { int idx = Map.Data[n].val_i; if (idx != -1) Buf[idx].~T(); } Map.Clear(); Buf.clear(); FreeIdx = 0; } + T* Add() { int idx = FreeIdx; if (idx == Buf.Size) { Buf.resize(Buf.Size + 1); FreeIdx++; } else { FreeIdx = *(int*)&Buf[idx]; } IM_PLACEMENT_NEW(&Buf[idx]) T(); return &Buf[idx]; } + void Remove(ImGuiID key, const T* p) { Remove(key, GetIndex(p)); } + void Remove(ImGuiID key, ImPoolIdx idx) { Buf[idx].~T(); *(int*)&Buf[idx] = FreeIdx; FreeIdx = idx; Map.SetInt(key, -1); } + void Reserve(int capacity) { Buf.reserve(capacity); Map.Data.reserve(capacity); } + int GetSize() const { return Buf.Size; } +}; + +// Helper: ImChunkStream<> +// Build and iterate a contiguous stream of variable-sized structures. +// This is used by Settings to store persistent data while reducing allocation count. +// We store the chunk size first, and align the final size on 4 bytes boundaries (this what the '(X + 3) & ~3' statement is for) +// The tedious/zealous amount of casting is to avoid -Wcast-align warnings. +template +struct IMGUI_API ImChunkStream +{ + ImVector Buf; + + void clear() { Buf.clear(); } + bool empty() const { return Buf.Size == 0; } + int menu_size() const { return Buf.Size; } + T* alloc_chunk(size_t sz) { size_t HDR_SZ = 4; sz = ((HDR_SZ + sz) + 3u) & ~3u; int off = Buf.Size; Buf.resize(off + (int)sz); ((int*)(void*)(Buf.Data + off))[0] = (int)sz; return (T*)(void*)(Buf.Data + off + (int)HDR_SZ); } + T* begin() { size_t HDR_SZ = 4; if (!Buf.Data) return NULL; return (T*)(void*)(Buf.Data + HDR_SZ); } + T* next_chunk(T* p) { size_t HDR_SZ = 4; IM_ASSERT(p >= begin() && p < end()); p = (T*)(void*)((char*)(void*)p + chunk_size(p)); if (p == (T*)(void*)((char*)end() + HDR_SZ)) return (T*)0; IM_ASSERT(p < end()); return p; } + int chunk_size(const T* p) { return ((const int*)p)[-1]; } + T* end() { return (T*)(void*)(Buf.Data + Buf.Size); } + int offset_from_ptr(const T* p) { IM_ASSERT(p >= begin() && p < end()); const ptrdiff_t off = (const char*)p - Buf.Data; return (int)off; } + T* ptr_from_offset(int off) { IM_ASSERT(off >= 4 && off < Buf.Size); return (T*)(void*)(Buf.Data + off); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImDrawList support +//----------------------------------------------------------------------------- + +// ImDrawList: Helper function to calculate a circle's segment count given its radius and a "maximum error" value. +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN 12 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX 512 +#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(_RAD,_MAXERROR) ImClamp((int)((IM_PI * 2.0f) / ImAcos(((_RAD) - (_MAXERROR)) / (_RAD))), IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX) + +// ImDrawList: You may set this to higher values (e.g. 2 or 3) to increase tessellation of fast rounded corners path. +#ifndef IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER +#define IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER 1 +#endif + +// Data shared between all ImDrawList instances +// You may want to create your own instance of this if you want to use ImDrawList completely without ImGui. In that case, watch out for future changes to this structure. +struct IMGUI_API ImDrawListSharedData +{ + ImVec2 TexUvWhitePixel; // UV of white pixel in the atlas + ImFont* Font; // Current/default font (optional, for simplified AddText overload) + float FontSize; // Current/default font size (optional, for simplified AddText overload) + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() + float CircleSegmentMaxError; // Number of circle segments to use per pixel of radius for AddCircle() etc + ImVec4 ClipRectFullscreen; // Value for PushClipRectFullscreen() + ImDrawListFlags InitialFlags; // Initial flags at the beginning of the frame (it is possible to alter flags on a per-drawlist basis afterwards) + + // [Internal] Lookup tables + ImVec2 ArcFastVtx[12 * IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER]; // FIXME: Bake rounded corners fill/borders in atlas + ImU8 CircleSegmentCounts[64]; // Precomputed segment count for given radius (array index + 1) before we calculate it dynamically (to avoid calculation overhead) + const ImVec4* TexUvLines; // UV of anti-aliased lines in the atlas + + ImDrawListSharedData(); + void SetCircleSegmentMaxError(float max_error); +}; + +struct ImDrawDataBuilder +{ + ImVector Layers[2]; // Global layers for: regular, tooltip + + void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].resize(0); } + void ClearFreeMemory() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].clear(); } + IMGUI_API void FlattenIntoSingleLayer(); +}; + +//----------------------------------------------------------------------------- +// [SECTION] Widgets support: flags, enums, data structures +//----------------------------------------------------------------------------- + +// Transient per-window flags, reset at the beginning of the frame. For child window, inherited from parent on first Begin(). +// This is going to be exposed in imgui.h when stabilized enough. +enum ImGuiItemFlags_ +{ + ImGuiItemFlags_None = 0, + ImGuiItemFlags_NoTabStop = 1 << 0, // false + ImGuiItemFlags_ButtonRepeat = 1 << 1, // false // Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings. + ImGuiItemFlags_Disabled = 1 << 2, // false // [BETA] Disable interactions but doesn't affect visuals yet. See github.com/ocornut/imgui/issues/211 + ImGuiItemFlags_NoNav = 1 << 3, // false + ImGuiItemFlags_NoNavDefaultFocus = 1 << 4, // false + ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, // false // MenuItem/Selectable() automatically closes current Popup window + ImGuiItemFlags_MixedValue = 1 << 6, // false // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets) + ImGuiItemFlags_ReadOnly = 1 << 7, // false // [ALPHA] Allow hovering interactions but underlying value is not changed. + ImGuiItemFlags_Default_ = 0 +}; + +// Storage for LastItem data +enum ImGuiItemStatusFlags_ +{ + ImGuiItemStatusFlags_None = 0, + ImGuiItemStatusFlags_HoveredRect = 1 << 0, + ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, + ImGuiItemStatusFlags_Edited = 1 << 2, // Value exposed by item was edited in the current frame (should match the bool return value of most widgets) + ImGuiItemStatusFlags_ToggledSelection = 1 << 3, // Set when Selectable(), TreeNode() reports toggling a selection. We can't report "Selected" because reporting the change allows us to handle clipping with less issues. + ImGuiItemStatusFlags_ToggledOpen = 1 << 4, // Set when TreeNode() reports toggling their open state. + ImGuiItemStatusFlags_HasDeactivated = 1 << 5, // Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag. + ImGuiItemStatusFlags_Deactivated = 1 << 6 // Only valid if ImGuiItemStatusFlags_HasDeactivated is set. + +#ifdef IMGUI_ENABLE_TEST_ENGINE + , // [imgui_tests only] + ImGuiItemStatusFlags_Openable = 1 << 10, // + ImGuiItemStatusFlags_Opened = 1 << 11, // + ImGuiItemStatusFlags_Checkable = 1 << 12, // + ImGuiItemStatusFlags_Checked = 1 << 13 // +#endif +}; + +// Extend ImGuiButtonFlags_ +enum ImGuiButtonFlagsPrivate_ +{ + ImGuiButtonFlags_PressedOnClick = 1 << 4, // return true on click (mouse down event) + ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, // [Default] return true on click + release on same item <-- this is what the majority of Button are using + ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, // return true on click + release even if the release event is not done while hovering the item + ImGuiButtonFlags_PressedOnRelease = 1 << 7, // return true on release (default requires click+release) + ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, // return true on double-click (default requires click+release) + ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, // return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers) + ImGuiButtonFlags_Repeat = 1 << 10, // hold to repeat + ImGuiButtonFlags_FlattenChildren = 1 << 11, // allow interactions even if a child window is overlapping + ImGuiButtonFlags_AllowItemOverlap = 1 << 12, // require previous frame HoveredId to either match id or be null before being usable, use along with SetItemAllowOverlap() + ImGuiButtonFlags_DontClosePopups = 1 << 13, // disable automatically closing parent popup on press // [UNUSED] + ImGuiButtonFlags_Disabled = 1 << 14, // disable interactions + ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine + ImGuiButtonFlags_NoKeyModifiers = 1 << 16, // disable mouse interaction if a key modifier is held + ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only) + ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated + ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, // don't report as hovered when nav focus is on this item + ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, + ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease +}; + +// Extend ImGuiSliderFlags_ +enum ImGuiSliderFlagsPrivate_ +{ + ImGuiSliderFlags_Vertical = 1 << 20, // Should this slider be orientated vertically? + ImGuiSliderFlags_ReadOnly = 1 << 21 +}; + +// Extend ImGuiSelectableFlags_ +enum ImGuiSelectableFlagsPrivate_ +{ + // NB: need to be in sync with last value of ImGuiSelectableFlags_ + ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, + ImGuiSelectableFlags_SelectOnClick = 1 << 21, // Override button behavior to react on Click (default is Click+Release) + ImGuiSelectableFlags_SelectOnRelease = 1 << 22, // Override button behavior to react on Release (default is Click+Release) + ImGuiSelectableFlags_SpanAvailWidth = 1 << 23, // Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus) + ImGuiSelectableFlags_DrawHoveredWhenHeld = 1 << 24, // Always show active when held, even is not hovered. This concept could probably be renamed/formalized somehow. + ImGuiSelectableFlags_SetNavIdOnHover = 1 << 25, // Set Nav/Focus ID on mouse hover (used by MenuItem) + ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 26 // Disable padding each side with ItemSpacing * 0.5f +}; + +// Extend ImGuiTreeNodeFlags_ +enum ImGuiTreeNodeFlagsPrivate_ +{ + ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20 +}; + +enum ImGuiSeparatorFlags_ +{ + ImGuiSeparatorFlags_None = 0, + ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar + ImGuiSeparatorFlags_Vertical = 1 << 1, + ImGuiSeparatorFlags_SpanAllColumns = 1 << 2 +}; + +enum ImGuiTextFlags_ +{ + ImGuiTextFlags_None = 0, + ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0 +}; + +enum ImGuiTooltipFlags_ +{ + ImGuiTooltipFlags_None = 0, + ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0 // Override will clear/ignore previously submitted tooltip (defaults to append) +}; + +// FIXME: this is in development, not exposed/functional as a generic feature yet. +// Horizontal/Vertical enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiLayoutType_ +{ + ImGuiLayoutType_Horizontal = 0, + ImGuiLayoutType_Vertical = 1 +}; + +enum ImGuiLogType +{ + ImGuiLogType_None = 0, + ImGuiLogType_TTY, + ImGuiLogType_File, + ImGuiLogType_Buffer, + ImGuiLogType_Clipboard +}; + +// X/Y enums are fixed to 0/1 so they may be used to index ImVec2 +enum ImGuiAxis +{ + ImGuiAxis_None = -1, + ImGuiAxis_X = 0, + ImGuiAxis_Y = 1 +}; + +enum ImGuiPlotType +{ + ImGuiPlotType_Lines, + ImGuiPlotType_Histogram +}; + +enum ImGuiInputSource +{ + ImGuiInputSource_None = 0, + ImGuiInputSource_Mouse, + ImGuiInputSource_Nav, + ImGuiInputSource_NavKeyboard, // Only used occasionally for storage, not tested/handled by most code + ImGuiInputSource_NavGamepad, // " + ImGuiInputSource_COUNT +}; + +// FIXME-NAV: Clarify/expose various repeat delay/rate +enum ImGuiInputReadMode +{ + ImGuiInputReadMode_Down, + ImGuiInputReadMode_Pressed, + ImGuiInputReadMode_Released, + ImGuiInputReadMode_Repeat, + ImGuiInputReadMode_RepeatSlow, + ImGuiInputReadMode_RepeatFast +}; + +enum ImGuiNavHighlightFlags_ +{ + ImGuiNavHighlightFlags_None = 0, + ImGuiNavHighlightFlags_TypeDefault = 1 << 0, + ImGuiNavHighlightFlags_TypeThin = 1 << 1, + ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) _even_ when using the mouse. + ImGuiNavHighlightFlags_NoRounding = 1 << 3 +}; + +enum ImGuiNavDirSourceFlags_ +{ + ImGuiNavDirSourceFlags_None = 0, + ImGuiNavDirSourceFlags_Keyboard = 1 << 0, + ImGuiNavDirSourceFlags_PadDPad = 1 << 1, + ImGuiNavDirSourceFlags_PadLStick = 1 << 2 +}; + +enum ImGuiNavMoveFlags_ +{ + ImGuiNavMoveFlags_None = 0, + ImGuiNavMoveFlags_LoopX = 1 << 0, // On failed request, restart from opposite side + ImGuiNavMoveFlags_LoopY = 1 << 1, + ImGuiNavMoveFlags_WrapX = 1 << 2, // On failed request, request from opposite side one line down (when NavDir==right) or one line up (when NavDir==left) + ImGuiNavMoveFlags_WrapY = 1 << 3, // This is not super useful for provided for completeness + ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, // Allow scoring and considering the current NavId as a move target candidate. This is used when the move source is offset (e.g. pressing PageDown actually needs to send a Up move request, if we are pressing PageDown from the bottom-most item we need to stay in place) + ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, // Store alternate result in NavMoveResultLocalVisibleSet that only comprise elements that are already fully visible. + ImGuiNavMoveFlags_ScrollToEdge = 1 << 6 +}; + +enum ImGuiNavForward +{ + ImGuiNavForward_None, + ImGuiNavForward_ForwardQueued, + ImGuiNavForward_ForwardActive +}; + +enum ImGuiNavLayer +{ + ImGuiNavLayer_Main = 0, // Main scrolling layer + ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt/ImGuiNavInput_Menu) + ImGuiNavLayer_COUNT +}; + +enum ImGuiPopupPositionPolicy +{ + ImGuiPopupPositionPolicy_Default, + ImGuiPopupPositionPolicy_ComboBox, + ImGuiPopupPositionPolicy_Tooltip +}; + +struct ImGuiDataTypeTempStorage +{ + ImU8 Data[8]; // Can fit any data up to ImGuiDataType_COUNT +}; + +// Type information associated to one ImGuiDataType. Retrieve with DataTypeGetInfo(). +struct ImGuiDataTypeInfo +{ + size_t Size; // Size in bytes + const char* Name; // Short descriptive name for the type, for debugging + const char* PrintFmt; // Default printf format for the type + const char* ScanFmt; // Default scanf format for the type +}; + +// Extend ImGuiDataType_ +enum ImGuiDataTypePrivate_ +{ + ImGuiDataType_String = ImGuiDataType_COUNT + 1, + ImGuiDataType_Pointer, + ImGuiDataType_ID +}; + +// Stacked color modifier, backup of modified data so we can restore it +struct ImGuiColorMod +{ + ImGuiCol Col; + ImVec4 BackupValue; +}; + +// Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable. +struct ImGuiStyleMod +{ + ImGuiStyleVar VarIdx; + union { int BackupInt[2]; float BackupFloat[2]; }; + ImGuiStyleMod(ImGuiStyleVar idx, int v) { VarIdx = idx; BackupInt[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, float v) { VarIdx = idx; BackupFloat[0] = v; } + ImGuiStyleMod(ImGuiStyleVar idx, ImVec2 v) { VarIdx = idx; BackupFloat[0] = v.x; BackupFloat[1] = v.y; } +}; + +// Stacked storage data for BeginGroup()/EndGroup() +struct ImGuiGroupData +{ + ImVec2 BackupCursorPos; + ImVec2 BackupCursorMaxPos; + ImVec1 BackupIndent; + ImVec1 BackupGroupOffset; + ImVec2 BackupCurrLineSize; + float BackupCurrLineTextBaseOffset; + ImGuiID BackupActiveIdIsAlive; + bool BackupActiveIdPreviousFrameIsAlive; + bool EmitItem; +}; + +// Simple column measurement, currently used for MenuItem() only.. This is very short-sighted/throw-away code and NOT a generic helper. +struct IMGUI_API ImGuiMenuColumns +{ + float Spacing; + float Width, NextWidth; + float Pos[3], NextWidths[3]; + + ImGuiMenuColumns(); + void Update(int count, float spacing, bool clear); + float DeclColumns(float w0, float w1, float w2); + float CalcExtraSpace(float avail_w) const; +}; + +// Internal state of the currently focused/edited text input box +// For a given item ID, access with ImGui::GetInputTextState() +struct IMGUI_API ImGuiInputTextState +{ + ImGuiID ID; // widget id owning the text state + int CurLenW, CurLenA; // we need to maintain our buffer length in both UTF-8 and wchar format. UTF-8 length is valid even if TextA is not. + ImVector TextW; // edit buffer, we need to persist but can't guarantee the persistence of the user-provided buffer. so we copy into own buffer. + ImVector TextA; // temporary UTF8 buffer for callbacks and other operations. this is not updated in every code-path! size=capacity. + ImVector InitialTextA; // backup of end-user buffer at the time of focus (in UTF-8, unaltered) + bool TextAIsValid; // temporary UTF8 buffer is not initially valid before we make the widget active (until then we pull the data from user argument) + int BufCapacityA; // end-user buffer capacity + float ScrollX; // horizontal scrolling/offset + ImStb::STB_TexteditState Stb; // state for stb_textedit.h + float CursorAnim; // timer for cursor blink, reset on every user action so the cursor reappears immediately + bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!) + bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection + bool Edited; // edited this frame + ImGuiInputTextFlags UserFlags; // Temporarily set while we call user's callback + ImGuiInputTextCallback UserCallback; // " + void* UserCallbackData; // " + + ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } + void ClearText() { CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); } + void ClearFreeMemory() { TextW.clear(); TextA.clear(); InitialTextA.clear(); } + int GetUndoAvailCount() const { return Stb.undostate.undo_point; } + int GetRedoAvailCount() const { return STB_TEXTEDIT_UNDOSTATECOUNT - Stb.undostate.redo_point; } + void OnKeyPressed(int key); // Cannot be inline because we call in code in stb_textedit.h implementation + + // Cursor & Selection + void CursorAnimReset() { CursorAnim = -0.30f; } // After a user-input the cursor stays on for a while without blinking + void CursorClamp() { Stb.cursor = ImMin(Stb.cursor, CurLenW); Stb.select_start = ImMin(Stb.select_start, CurLenW); Stb.select_end = ImMin(Stb.select_end, CurLenW); } + bool HasSelection() const { return Stb.select_start != Stb.select_end; } + void ClearSelection() { Stb.select_start = Stb.select_end = Stb.cursor; } + void SelectAll() { Stb.select_start = 0; Stb.cursor = Stb.select_end = CurLenW; Stb.has_preferred_x = 0; } +}; + +// Storage for current popup stack +struct ImGuiPopupData +{ + ImGuiID PopupId; // Set on OpenPopup() + ImGuiWindow* Window; // Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup() + ImGuiWindow* SourceWindow; // Set on OpenPopup() copy of NavWindow at the time of opening the popup + int OpenFrameCount; // Set on OpenPopup() + ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) + ImVec2 OpenPopupPos; // Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse) + ImVec2 OpenMousePos; // Set on OpenPopup(), copy of mouse position at the time of opening popup + + ImGuiPopupData() { PopupId = 0; Window = SourceWindow = NULL; OpenFrameCount = -1; OpenParentId = 0; } +}; + +struct ImGuiNavMoveResult +{ + ImGuiWindow* Window; // Best candidate window + ImGuiID ID; // Best candidate ID + ImGuiID FocusScopeId; // Best candidate focus scope ID + float DistBox; // Best candidate box distance to current NavId + float DistCenter; // Best candidate center distance to current NavId + float DistAxial; + ImRect RectRel; // Best candidate bounding box in window relative space + + ImGuiNavMoveResult() { Clear(); } + void Clear() { Window = NULL; ID = FocusScopeId = 0; DistBox = DistCenter = DistAxial = FLT_MAX; RectRel = ImRect(); } +}; + +enum ImGuiNextWindowDataFlags_ +{ + ImGuiNextWindowDataFlags_None = 0, + ImGuiNextWindowDataFlags_HasPos = 1 << 0, + ImGuiNextWindowDataFlags_HasSize = 1 << 1, + ImGuiNextWindowDataFlags_HasContentSize = 1 << 2, + ImGuiNextWindowDataFlags_HasCollapsed = 1 << 3, + ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, + ImGuiNextWindowDataFlags_HasFocus = 1 << 5, + ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, + ImGuiNextWindowDataFlags_HasScroll = 1 << 7 +}; + +// Storage for SetNexWindow** functions +struct ImGuiNextWindowData +{ + ImGuiNextWindowDataFlags Flags; + ImGuiCond PosCond; + ImGuiCond SizeCond; + ImGuiCond CollapsedCond; + ImVec2 PosVal; + ImVec2 PosPivotVal; + ImVec2 SizeVal; + ImVec2 ContentSizeVal; + ImVec2 ScrollVal; + bool CollapsedVal; + ImRect SizeConstraintRect; + ImGuiSizeCallback SizeCallback; + void* SizeCallbackUserData; + float BgAlphaVal; // Override background alpha + ImVec2 MenuBarOffsetMinVal; // *Always on* This is not exposed publicly, so we don't clear it. + + ImGuiNextWindowData() { memset(this, 0, sizeof(*this)); } + inline void ClearFlags() { Flags = ImGuiNextWindowDataFlags_None; } +}; + +enum ImGuiNextItemDataFlags_ +{ + ImGuiNextItemDataFlags_None = 0, + ImGuiNextItemDataFlags_HasWidth = 1 << 0, + ImGuiNextItemDataFlags_HasOpen = 1 << 1 +}; + +struct ImGuiNextItemData +{ + ImGuiNextItemDataFlags Flags; + float Width; // Set by SetNextItemWidth() + ImGuiID FocusScopeId; // Set by SetNextItemMultiSelectData() (!= 0 signify value has been set, so it's an alternate version of HasSelectionData, we don't use Flags for this because they are cleared too early. This is mostly used for debugging) + ImGuiCond OpenCond; + bool OpenVal; // Set by SetNextItemOpen() + + ImGuiNextItemData() { memset(this, 0, sizeof(*this)); } + inline void ClearFlags() { Flags = ImGuiNextItemDataFlags_None; } // Also cleared manually by ItemAdd()! +}; + +struct ImGuiShrinkWidthItem +{ + int Index; + float Width; +}; + +struct ImGuiPtrOrIndex +{ + void* Ptr; // Either field can be set, not both. e.g. Dock node tab bars are loose while BeginTabBar() ones are in a pool. + int Index; // Usually index in a main pool. + + ImGuiPtrOrIndex(void* ptr) { Ptr = ptr; Index = -1; } + ImGuiPtrOrIndex(int index) { Ptr = NULL; Index = index; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Columns support +//----------------------------------------------------------------------------- + +enum ImGuiColumnsFlags_ +{ + // Default: 0 + ImGuiColumnsFlags_None = 0, + ImGuiColumnsFlags_NoBorder = 1 << 0, // Disable column dividers + ImGuiColumnsFlags_NoResize = 1 << 1, // Disable resizing columns when clicking on the dividers + ImGuiColumnsFlags_NoPreserveWidths = 1 << 2, // Disable column width preservation when adjusting columns + ImGuiColumnsFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window + ImGuiColumnsFlags_GrowParentContentsSize= 1 << 4 // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. +}; + +struct ImGuiColumnData +{ + float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) + float OffsetNormBeforeResize; + ImGuiColumnsFlags Flags; // Not exposed + ImRect ClipRect; + + ImGuiColumnData() { OffsetNorm = OffsetNormBeforeResize = 0.0f; Flags = ImGuiColumnsFlags_None; } +}; + +struct ImGuiColumns +{ + ImGuiID ID; + ImGuiColumnsFlags Flags; + bool IsFirstFrame; + bool IsBeingResized; + int Current; + int Count; + float OffMinX, OffMaxX; // Offsets from HostWorkRect.Min.x + float LineMinY, LineMaxY; + float HostCursorPosY; // Backup of CursorPos at the time of BeginColumns() + float HostCursorMaxPosX; // Backup of CursorMaxPos at the time of BeginColumns() + ImRect HostInitialClipRect; // Backup of ClipRect at the time of BeginColumns() + ImRect HostBackupClipRect; // Backup of ClipRect during PushColumnsBackground()/PopColumnsBackground() + ImRect HostBackupParentWorkRect;//Backup of WorkRect at the time of BeginColumns() + ImVector Columns; + ImDrawListSplitter Splitter; + + ImGuiColumns() { Clear(); } + void Clear() + { + ID = 0; + Flags = ImGuiColumnsFlags_None; + IsFirstFrame = false; + IsBeingResized = false; + Current = 0; + Count = 1; + OffMinX = OffMaxX = 0.0f; + LineMinY = LineMaxY = 0.0f; + HostCursorPosY = 0.0f; + HostCursorMaxPosX = 0.0f; + Columns.clear(); + } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Multi-select support +//----------------------------------------------------------------------------- + +#ifdef IMGUI_HAS_MULTI_SELECT +// +#endif // #ifdef IMGUI_HAS_MULTI_SELECT + +//----------------------------------------------------------------------------- +// [SECTION] Docking support +//----------------------------------------------------------------------------- + +#ifdef IMGUI_HAS_DOCK +// +#endif // #ifdef IMGUI_HAS_DOCK + +//----------------------------------------------------------------------------- +// [SECTION] Viewport support +//----------------------------------------------------------------------------- + +#ifdef IMGUI_HAS_VIEWPORT +// +#endif // #ifdef IMGUI_HAS_VIEWPORT + +//----------------------------------------------------------------------------- +// [SECTION] Settings support +//----------------------------------------------------------------------------- + +// Windows data saved in imgui.ini file +// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily. +// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure) +struct ImGuiWindowSettings +{ + ImGuiID ID; + ImVec2ih Pos; + ImVec2ih Size; + bool Collapsed; + bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) + + ImGuiWindowSettings() { ID = 0; Pos = Size = ImVec2ih(0, 0); Collapsed = WantApply = false; } + char* GetName() { return (char*)(this + 1); } +}; + +struct ImGuiSettingsHandler +{ + const char* TypeName; // Short description stored in .ini file. Disallowed characters: '[' ']' + ImGuiID TypeHash; // == ImHashStr(TypeName) + void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Clear all settings data + void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called before reading (in registration order) + void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); // Read: Called when entering into a new ini entry e.g. "[Window][Name]" + void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); // Read: Called for every line of text within an ini entry + void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called after reading (in registration order) + void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); // Write: Output every entries into 'out_buf' + void* UserData; + + ImGuiSettingsHandler() { memset(this, 0, sizeof(*this)); } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiContext (main imgui context) +//----------------------------------------------------------------------------- + +struct ImGuiContext +{ + bool Initialized; + bool FontAtlasOwnedByContext; // IO.Fonts-> is owned by the ImGuiContext and will be destructed along with it. + ImGuiIO IO; + ImGuiStyle Style; + ImFont* Font; // (Shortcut) == FontStack.empty() ? IO.Font : FontStack.back() + float FontSize; // (Shortcut) == FontBaseSize * g.CurrentWindow->FontWindowScale == window->FontSize(). Text height for current window. + float FontBaseSize; // (Shortcut) == IO.FontGlobalScale * Font->Scale * Font->FontSize. Base text height. + ImDrawListSharedData DrawListSharedData; + double Time; + int FrameCount; + int FrameCountEnded; + int FrameCountRendered; + bool WithinFrameScope; // Set by NewFrame(), cleared by EndFrame() + bool WithinFrameScopeWithImplicitWindow; // Set by NewFrame(), cleared by EndFrame() when the implicit debug window has been pushed + bool WithinEndChild; // Set within EndChild() + bool TestEngineHookItems; // Will call test engine hooks: ImGuiTestEngineHook_ItemAdd(), ImGuiTestEngineHook_ItemInfo(), ImGuiTestEngineHook_Log() + ImGuiID TestEngineHookIdInfo; // Will call test engine hooks: ImGuiTestEngineHook_IdInfo() from GetID() + void* TestEngine; // Test engine user data + + // Windows state + ImVector Windows; // Windows, sorted in display order, back to front + ImVector WindowsFocusOrder; // Windows, sorted in focus order, back to front. (FIXME: We could only store root windows here! Need to sort out the Docking equivalent which is RootWindowDockStop and is unfortunately a little more dynamic) + ImVector WindowsTempSortBuffer; // Temporary buffer used in EndFrame() to reorder windows so parents are kept before their child + ImVector CurrentWindowStack; + ImGuiStorage WindowsById; // Map window's ImGuiID to ImGuiWindow* + int WindowsActiveCount; // Number of unique windows submitted by frame + ImGuiWindow* CurrentWindow; // Window being drawn into + ImGuiWindow* HoveredWindow; // Window the mouse is hovering. Will typically catch mouse inputs. + ImGuiWindow* HoveredRootWindow; // == HoveredWindow ? HoveredWindow->RootWindow : NULL, merely a shortcut to avoid null test in some situation. + ImGuiWindow* HoveredWindowUnderMovingWindow; // Hovered window ignoring MovingWindow. Only set if MovingWindow is set. + ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindow. + ImGuiWindow* WheelingWindow; // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. + ImVec2 WheelingWindowRefMousePos; + float WheelingWindowTimer; + + // Item/widgets state and tracking information + ImGuiID HoveredId; // Hovered widget + ImGuiID HoveredIdPreviousFrame; + bool HoveredIdAllowOverlap; + bool HoveredIdDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0. + float HoveredIdTimer; // Measure contiguous hovering time + float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active + ImGuiID ActiveId; // Active widget + ImGuiID ActiveIdIsAlive; // Active widget has been seen this frame (we can't use a bool as the ActiveId may change within the frame) + float ActiveIdTimer; + bool ActiveIdIsJustActivated; // Set at the time of activation for one frame + bool ActiveIdAllowOverlap; // Active widget allows another widget to steal active id (generally for overlapping widgets, but not always) + bool ActiveIdNoClearOnFocusLoss; // Disable losing active id if the active id window gets unfocused. + bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch. + bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state. + bool ActiveIdHasBeenEditedThisFrame; + ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) + ImU32 ActiveIdUsingNavInputMask; // Active widget will want to read those nav inputs. + ImU64 ActiveIdUsingKeyInputMask; // Active widget will want to read those key inputs. When we grow the ImGuiKey enum we'll need to either to order the enum to make useful keys come first, either redesign this into e.g. a small array. + ImVec2 ActiveIdClickOffset; // Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior) + ImGuiWindow* ActiveIdWindow; + ImGuiInputSource ActiveIdSource; // Activating with mouse or nav (gamepad/keyboard) + int ActiveIdMouseButton; + ImGuiID ActiveIdPreviousFrame; + bool ActiveIdPreviousFrameIsAlive; + bool ActiveIdPreviousFrameHasBeenEditedBefore; + ImGuiWindow* ActiveIdPreviousFrameWindow; + ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation. + float LastActiveIdTimer; // Store the last non-zero ActiveId timer since the beginning of activation, useful for animation. + + // Next window/item data + ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions + ImGuiNextItemData NextItemData; // Storage for SetNextItem** functions + + // Shared stacks + ImVector ColorModifiers; // Stack for PushStyleColor()/PopStyleColor() + ImVector StyleModifiers; // Stack for PushStyleVar()/PopStyleVar() + ImVector FontStack; // Stack for PushFont()/PopFont() + ImVectorOpenPopupStack; // Which popups are open (persistent) + ImVectorBeginPopupStack; // Which level of BeginPopup() we are in (reset every frame) + + // Gamepad/keyboard Navigation + ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusWindow' + ImGuiID NavId; // Focused item for navigation + ImGuiID NavFocusScopeId; // Identify a selection scope (selection code often wants to "clear other items" when landing on an item of the selection set) + ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0, also set when calling ActivateItem() + ImGuiID NavActivateDownId; // ~~ IsNavInputDown(ImGuiNavInput_Activate) ? NavId : 0 + ImGuiID NavActivatePressedId; // ~~ IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0 + ImGuiID NavInputId; // ~~ IsNavInputPressed(ImGuiNavInput_Input) ? NavId : 0 + ImGuiID NavJustTabbedId; // Just tabbed to this id. + ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest). + ImGuiID NavJustMovedToFocusScopeId; // Just navigated to this focus scope id (result of a successfully MoveRequest). + ImGuiKeyModFlags NavJustMovedToKeyMods; + ImGuiID NavNextActivateId; // Set by ActivateItem(), queued until next frame. + ImGuiInputSource NavInputSource; // Keyboard or Gamepad mode? THIS WILL ONLY BE None or NavGamepad or NavKeyboard. + ImRect NavScoringRect; // Rectangle used for scoring, in screen space. Based of window->NavRectRel[], modified for directional navigation scoring. + int NavScoringCount; // Metrics for debugging + ImGuiNavLayer NavLayer; // Layer we are navigating on. For now the system is hard-coded for 0=main contents and 1=menu/title bar, may expose layers later. + int NavIdTabCounter; // == NavWindow->DC.FocusIdxTabCounter at time of NavId processing + bool NavIdIsAlive; // Nav widget has been seen this frame ~~ NavRectRel is valid + bool NavMousePosDirty; // When set we will update mouse position if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) if set (NB: this not enabled by default) + bool NavDisableHighlight; // When user starts using mouse, we hide gamepad/keyboard highlight (NB: but they are still available, which is why NavDisableHighlight isn't always != NavDisableMouseHover) + bool NavDisableMouseHover; // When user starts using gamepad/keyboard, we hide mouse hovering highlight until mouse is touched again. + bool NavAnyRequest; // ~~ NavMoveRequest || NavInitRequest + bool NavInitRequest; // Init request for appearing window to select first item + bool NavInitRequestFromMove; + ImGuiID NavInitResultId; // Init request result (first item of the window, or one for which SetItemDefaultFocus() was called) + ImRect NavInitResultRectRel; // Init request result rectangle (relative to parent window) + bool NavMoveRequest; // Move request for this frame + ImGuiNavMoveFlags NavMoveRequestFlags; + ImGuiNavForward NavMoveRequestForward; // None / ForwardQueued / ForwardActive (this is used to navigate sibling parent menus from a child menu) + ImGuiKeyModFlags NavMoveRequestKeyMods; + ImGuiDir NavMoveDir, NavMoveDirLast; // Direction of the move request (left/right/up/down), direction of the previous move request + ImGuiDir NavMoveClipDir; // FIXME-NAV: Describe the purpose of this better. Might want to rename? + ImGuiNavMoveResult NavMoveResultLocal; // Best move request candidate within NavWindow + ImGuiNavMoveResult NavMoveResultLocalVisibleSet; // Best move request candidate within NavWindow that are mostly visible (when using ImGuiNavMoveFlags_AlsoScoreVisibleSet flag) + ImGuiNavMoveResult NavMoveResultOther; // Best move request candidate within NavWindow's flattened hierarchy (when using ImGuiWindowFlags_NavFlattened flag) + ImGuiWindow* NavWrapRequestWindow; // Window which requested trying nav wrap-around. + ImGuiNavMoveFlags NavWrapRequestFlags; // Wrap-around operation flags. + + // Navigation: Windowing (CTRL+TAB for list, or Menu button + keys or directional pads to move/resize) + ImGuiWindow* NavWindowingTarget; // Target window when doing CTRL+Tab (or Pad Menu + FocusPrev/Next), this window is temporarily displayed top-most! + ImGuiWindow* NavWindowingTargetAnim; // Record of last valid NavWindowingTarget until DimBgRatio and NavWindowingHighlightAlpha becomes 0.0f, so the fade-out can stay on it. + ImGuiWindow* NavWindowingListWindow; // Internal window actually listing the CTRL+Tab contents + float NavWindowingTimer; + float NavWindowingHighlightAlpha; + bool NavWindowingToggleLayer; + + // Legacy Focus/Tabbing system (older than Nav, active even if Nav is disabled, misnamed. FIXME-NAV: This needs a redesign!) + ImGuiWindow* FocusRequestCurrWindow; // + ImGuiWindow* FocusRequestNextWindow; // + int FocusRequestCurrCounterRegular; // Any item being requested for focus, stored as an index (we on layout to be stable between the frame pressing TAB and the next frame, semi-ouch) + int FocusRequestCurrCounterTabStop; // Tab item being requested for focus, stored as an index + int FocusRequestNextCounterRegular; // Stored for next frame + int FocusRequestNextCounterTabStop; // " + bool FocusTabPressed; // + + // Render + ImDrawData DrawData; // Main ImDrawData instance to pass render information to the user + ImDrawDataBuilder DrawDataBuilder; + float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list) + ImDrawList BackgroundDrawList; // First draw list to be rendered. + ImDrawList ForegroundDrawList; // Last draw list to be rendered. This is where we the render software mouse cursor (if io.MouseDrawCursor is set) and most debug overlays. + ImGuiMouseCursor MouseCursor; + + // Drag and Drop + bool DragDropActive; + bool DragDropWithinSource; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag source. + bool DragDropWithinTarget; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag target. + ImGuiDragDropFlags DragDropSourceFlags; + int DragDropSourceFrameCount; + int DragDropMouseButton; + ImGuiPayload DragDropPayload; + ImRect DragDropTargetRect; // Store rectangle of current target candidate (we favor small targets when overlapping) + ImGuiID DragDropTargetId; + ImGuiDragDropFlags DragDropAcceptFlags; + float DragDropAcceptIdCurrRectSurface; // Target item surface (we resolve overlapping targets by prioritizing the smaller surface) + ImGuiID DragDropAcceptIdCurr; // Target item id (set at the time of accepting the payload) + ImGuiID DragDropAcceptIdPrev; // Target item id from previous frame (we need to store this to allow for overlapping drag and drop targets) + int DragDropAcceptFrameCount; // Last time a target expressed a desire to accept the source + ImGuiID DragDropHoldJustPressedId; // Set when holding a payload just made ButtonBehavior() return a press. + ImVector DragDropPayloadBufHeap; // We don't expose the ImVector<> directly, ImGuiPayload only holds pointer+size + unsigned char DragDropPayloadBufLocal[16]; // Local buffer for small payloads + + // Tab bars + ImGuiTabBar* CurrentTabBar; + ImPool TabBars; + ImVector CurrentTabBarStack; + ImVector ShrinkWidthBuffer; + + // Widget state + ImVec2 LastValidMousePos; + ImGuiInputTextState InputTextState; + ImFont InputTextPasswordFont; + ImGuiID TempInputId; // Temporary text input when CTRL+clicking on a slider, etc. + ImGuiColorEditFlags ColorEditOptions; // Store user options for color edit widgets + float ColorEditLastHue; // Backup of last Hue associated to LastColor[3], so we can restore Hue in lossy RGB<>HSV round trips + float ColorEditLastSat; // Backup of last Saturation associated to LastColor[3], so we can restore Saturation in lossy RGB<>HSV round trips + float ColorEditLastColor[3]; + ImVec4 ColorPickerRef; // Initial/reference color at the time of opening the color picker. + float SliderCurrentAccum; // Accumulated slider delta when using navigation controls. + bool SliderCurrentAccumDirty; // Has the accumulated slider delta changed since last time we tried to apply it? + bool DragCurrentAccumDirty; + float DragCurrentAccum; // Accumulator for dragging modification. Always high-precision, not rounded by end-user precision settings + float DragSpeedDefaultRatio; // If speed == 0.0f, uses (max-min) * DragSpeedDefaultRatio + float ScrollbarClickDeltaToGrabCenter; // Distance between mouse and center of grab box, normalized in parent space. Use storage? + int TooltipOverrideCount; + ImVector ClipboardHandlerData; // If no custom clipboard handler is defined + ImVector MenusIdSubmittedThisFrame; // A list of menu IDs that were rendered at least once + + // Platform support + ImVec2 PlatformImePos; // Cursor position request & last passed to the OS Input Method Editor + ImVec2 PlatformImeLastPos; + char PlatformLocaleDecimalPoint; // '.' or *localeconv()->decimal_point + + // Settings + bool SettingsLoaded; + float SettingsDirtyTimer; // Save .ini Settings to memory when time reaches zero + ImGuiTextBuffer SettingsIniData; // In memory .ini settings + ImVector SettingsHandlers; // List of .ini settings handlers + ImChunkStream SettingsWindows; // ImGuiWindow .ini settings entries + + // Capture/Logging + bool LogEnabled; // Currently capturing + ImGuiLogType LogType; // Capture target + ImFileHandle LogFile; // If != NULL log to stdout/ file + ImGuiTextBuffer LogBuffer; // Accumulation buffer when log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators. + float LogLinePosY; + bool LogLineFirstItem; + int LogDepthRef; + int LogDepthToExpand; + int LogDepthToExpandDefault; // Default/stored value for LogDepthMaxExpand if not specified in the LogXXX function call. + + // Debug Tools + bool DebugItemPickerActive; // Item picker is active (started with DebugStartItemPicker()) + ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this id + + // Misc + float FramerateSecPerFrame[120]; // Calculate estimate of framerate for user over the last 2 seconds. + int FramerateSecPerFrameIdx; + float FramerateSecPerFrameAccum; + int WantCaptureMouseNextFrame; // Explicit capture via CaptureKeyboardFromApp()/CaptureMouseFromApp() sets those flags + int WantCaptureKeyboardNextFrame; + int WantTextInputNextFrame; + char TempBuffer[1024 * 3 + 1]; // Temporary text buffer + + ImGuiContext(ImFontAtlas* shared_font_atlas) : BackgroundDrawList(&DrawListSharedData), ForegroundDrawList(&DrawListSharedData) + { + Initialized = false; + FontAtlasOwnedByContext = shared_font_atlas ? false : true; + Font = NULL; + FontSize = FontBaseSize = 0.0f; + IO.Fonts = shared_font_atlas ? shared_font_atlas : IM_NEW(ImFontAtlas)(); + Time = 0.0f; + FrameCount = 0; + FrameCountEnded = FrameCountRendered = -1; + WithinFrameScope = WithinFrameScopeWithImplicitWindow = WithinEndChild = false; + TestEngineHookItems = false; + TestEngineHookIdInfo = 0; + TestEngine = NULL; + + WindowsActiveCount = 0; + CurrentWindow = NULL; + HoveredWindow = NULL; + HoveredRootWindow = NULL; + HoveredWindowUnderMovingWindow = NULL; + MovingWindow = NULL; + WheelingWindow = NULL; + WheelingWindowTimer = 0.0f; + + HoveredId = HoveredIdPreviousFrame = 0; + HoveredIdAllowOverlap = false; + HoveredIdDisabled = false; + HoveredIdTimer = HoveredIdNotActiveTimer = 0.0f; + ActiveId = 0; + ActiveIdIsAlive = 0; + ActiveIdTimer = 0.0f; + ActiveIdIsJustActivated = false; + ActiveIdAllowOverlap = false; + ActiveIdNoClearOnFocusLoss = false; + ActiveIdHasBeenPressedBefore = false; + ActiveIdHasBeenEditedBefore = false; + ActiveIdHasBeenEditedThisFrame = false; + ActiveIdUsingNavDirMask = 0x00; + ActiveIdUsingNavInputMask = 0x00; + ActiveIdUsingKeyInputMask = 0x00; + ActiveIdClickOffset = ImVec2(-1, -1); + ActiveIdWindow = NULL; + ActiveIdSource = ImGuiInputSource_None; + ActiveIdMouseButton = 0; + ActiveIdPreviousFrame = 0; + ActiveIdPreviousFrameIsAlive = false; + ActiveIdPreviousFrameHasBeenEditedBefore = false; + ActiveIdPreviousFrameWindow = NULL; + LastActiveId = 0; + LastActiveIdTimer = 0.0f; + + NavWindow = NULL; + NavId = NavFocusScopeId = NavActivateId = NavActivateDownId = NavActivatePressedId = NavInputId = 0; + NavJustTabbedId = NavJustMovedToId = NavJustMovedToFocusScopeId = NavNextActivateId = 0; + NavJustMovedToKeyMods = ImGuiKeyModFlags_None; + NavInputSource = ImGuiInputSource_None; + NavScoringRect = ImRect(); + NavScoringCount = 0; + NavLayer = ImGuiNavLayer_Main; + NavIdTabCounter = INT_MAX; + NavIdIsAlive = false; + NavMousePosDirty = false; + NavDisableHighlight = true; + NavDisableMouseHover = false; + NavAnyRequest = false; + NavInitRequest = false; + NavInitRequestFromMove = false; + NavInitResultId = 0; + NavMoveRequest = false; + NavMoveRequestFlags = ImGuiNavMoveFlags_None; + NavMoveRequestForward = ImGuiNavForward_None; + NavMoveRequestKeyMods = ImGuiKeyModFlags_None; + NavMoveDir = NavMoveDirLast = NavMoveClipDir = ImGuiDir_None; + NavWrapRequestWindow = NULL; + NavWrapRequestFlags = ImGuiNavMoveFlags_None; + + NavWindowingTarget = NavWindowingTargetAnim = NavWindowingListWindow = NULL; + NavWindowingTimer = NavWindowingHighlightAlpha = 0.0f; + NavWindowingToggleLayer = false; + + FocusRequestCurrWindow = FocusRequestNextWindow = NULL; + FocusRequestCurrCounterRegular = FocusRequestCurrCounterTabStop = INT_MAX; + FocusRequestNextCounterRegular = FocusRequestNextCounterTabStop = INT_MAX; + FocusTabPressed = false; + + DimBgRatio = 0.0f; + BackgroundDrawList._OwnerName = "##Background"; // Give it a name for debugging + ForegroundDrawList._OwnerName = "##Foreground"; // Give it a name for debugging + MouseCursor = ImGuiMouseCursor_Arrow; + + DragDropActive = DragDropWithinSource = DragDropWithinTarget = false; + DragDropSourceFlags = ImGuiDragDropFlags_None; + DragDropSourceFrameCount = -1; + DragDropMouseButton = -1; + DragDropTargetId = 0; + DragDropAcceptFlags = ImGuiDragDropFlags_None; + DragDropAcceptIdCurrRectSurface = 0.0f; + DragDropAcceptIdPrev = DragDropAcceptIdCurr = 0; + DragDropAcceptFrameCount = -1; + DragDropHoldJustPressedId = 0; + memset(DragDropPayloadBufLocal, 0, sizeof(DragDropPayloadBufLocal)); + + CurrentTabBar = NULL; + + LastValidMousePos = ImVec2(0.0f, 0.0f); + TempInputId = 0; + ColorEditOptions = ImGuiColorEditFlags__OptionsDefault; + ColorEditLastHue = ColorEditLastSat = 0.0f; + ColorEditLastColor[0] = ColorEditLastColor[1] = ColorEditLastColor[2] = FLT_MAX; + SliderCurrentAccum = 0.0f; + SliderCurrentAccumDirty = false; + DragCurrentAccumDirty = false; + DragCurrentAccum = 0.0f; + DragSpeedDefaultRatio = 1.0f / 100.0f; + ScrollbarClickDeltaToGrabCenter = 0.0f; + TooltipOverrideCount = 0; + + PlatformImePos = PlatformImeLastPos = ImVec2(FLT_MAX, FLT_MAX); + PlatformLocaleDecimalPoint = '.'; + + SettingsLoaded = false; + SettingsDirtyTimer = 0.0f; + + LogEnabled = false; + LogType = ImGuiLogType_None; + LogFile = NULL; + LogLinePosY = FLT_MAX; + LogLineFirstItem = false; + LogDepthRef = 0; + LogDepthToExpand = LogDepthToExpandDefault = 2; + + DebugItemPickerActive = false; + DebugItemPickerBreakId = 0; + + memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); + FramerateSecPerFrameIdx = 0; + FramerateSecPerFrameAccum = 0.0f; + WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; + memset(TempBuffer, 0, sizeof(TempBuffer)); + } +}; + +//----------------------------------------------------------------------------- +// [SECTION] ImGuiWindowTempData, ImGuiWindow +//----------------------------------------------------------------------------- + +// Transient per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the DC variable name in ImGuiWindow. +// FIXME: That's theory, in practice the delimitation between ImGuiWindow and ImGuiWindowTempData is quite tenuous and could be reconsidered. +struct IMGUI_API ImGuiWindowTempData +{ + // Layout + ImVec2 CursorPos; // Current emitting position, in absolute coordinates. + ImVec2 CursorPosPrevLine; + ImVec2 CursorStartPos; // Initial position after Begin(), generally ~ window position + WindowPadding. + ImVec2 CursorMaxPos; // Used to implicitly calculate the size of our contents, always growing during the frame. Used to calculate window->ContentSize at the beginning of next frame + ImVec2 CurrLineSize; + ImVec2 PrevLineSize; + float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added). + float PrevLineTextBaseOffset; + ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.) + ImVec1 ColumnsOffset; // Offset to the current column (if ColumnsCurrent > 0). FIXME: This and the above should be a stack to allow use cases like Tree->Column->Tree. Need revamp columns API. + ImVec1 GroupOffset; + + // Last item status + ImGuiID LastItemId; // ID for last item + ImGuiItemStatusFlags LastItemStatusFlags; // Status flags for last item (see ImGuiItemStatusFlags_) + ImRect LastItemRect; // Interaction rect for last item + ImRect LastItemDisplayRect; // End-user display rect for last item (only valid if LastItemStatusFlags & ImGuiItemStatusFlags_HasDisplayRect) + + // Keyboard/Gamepad navigation + ImGuiNavLayer NavLayerCurrent; // Current layer, 0..31 (we currently only use 0..1) + int NavLayerActiveMask; // Which layers have been written to (result from previous frame) + int NavLayerActiveMaskNext; // Which layers have been written to (accumulator for current frame) + ImGuiID NavFocusScopeIdCurrent; // Current focus scope ID while appending + bool NavHideHighlightOneFrame; + bool NavHasScroll; // Set when scrolling can be used (ScrollMax > 0.0f) + + // Miscellaneous + bool MenuBarAppending; // FIXME: Remove this + ImVec2 MenuBarOffset; // MenuBarOffset.x is sort of equivalent of a per-layer CursorPos.x, saved/restored as we switch to the menu bar. The only situation when MenuBarOffset.y is > 0 if when (SafeAreaPadding.y > FramePadding.y), often used on TVs. + ImGuiMenuColumns MenuColumns; // Simplified columns storage for menu items measurement + int TreeDepth; // Current tree depth. + ImU32 TreeJumpToParentOnPopMask; // Store a copy of !g.NavIdIsAlive for TreeDepth 0..31.. Could be turned into a ImU64 if necessary. + ImVector ChildWindows; + ImGuiStorage* StateStorage; // Current persistent per-window storage (store e.g. tree node open/close state) + ImGuiColumns* CurrentColumns; // Current columns set + ImGuiLayoutType LayoutType; + ImGuiLayoutType ParentLayoutType; // Layout type of parent window at the time of Begin() + int FocusCounterRegular; // (Legacy Focus/Tabbing system) Sequential counter, start at -1 and increase as assigned via FocusableItemRegister() (FIXME-NAV: Needs redesign) + int FocusCounterTabStop; // (Legacy Focus/Tabbing system) Same, but only count widgets which you can Tab through. + + // Local parameters stacks + // We store the current settings outside of the vectors to increase memory locality (reduce cache misses). The vectors are rarely modified. Also it allows us to not heap allocate for short-lived windows which are not using those settings. + ImGuiItemFlags ItemFlags; // == ItemFlagsStack.back() [empty == ImGuiItemFlags_Default] + float ItemWidth; // == ItemWidthStack.back(). 0.0: default, >0.0: width in pixels, <0.0: align xx pixels to the right of window + float TextWrapPos; // == TextWrapPosStack.back() [empty == -1.0f] + ImVectorItemFlagsStack; + ImVector ItemWidthStack; + ImVector TextWrapPosStack; + ImVectorGroupStack; + short StackSizesBackup[6]; // Store size of various stacks for asserting + + ImGuiWindowTempData() + { + CursorPos = CursorPosPrevLine = CursorStartPos = CursorMaxPos = ImVec2(0.0f, 0.0f); + CurrLineSize = PrevLineSize = ImVec2(0.0f, 0.0f); + CurrLineTextBaseOffset = PrevLineTextBaseOffset = 0.0f; + Indent = ImVec1(0.0f); + ColumnsOffset = ImVec1(0.0f); + GroupOffset = ImVec1(0.0f); + + LastItemId = 0; + LastItemStatusFlags = ImGuiItemStatusFlags_None; + LastItemRect = LastItemDisplayRect = ImRect(); + + NavLayerActiveMask = NavLayerActiveMaskNext = 0x00; + NavLayerCurrent = ImGuiNavLayer_Main; + NavFocusScopeIdCurrent = 0; + NavHideHighlightOneFrame = false; + NavHasScroll = false; + + MenuBarAppending = false; + MenuBarOffset = ImVec2(0.0f, 0.0f); + TreeDepth = 0; + TreeJumpToParentOnPopMask = 0x00; + StateStorage = NULL; + CurrentColumns = NULL; + LayoutType = ParentLayoutType = ImGuiLayoutType_Vertical; + FocusCounterRegular = FocusCounterTabStop = -1; + + ItemFlags = ImGuiItemFlags_Default_; + ItemWidth = 0.0f; + TextWrapPos = -1.0f; + memset(StackSizesBackup, 0, sizeof(StackSizesBackup)); + } +}; + +// Storage for one window +struct IMGUI_API ImGuiWindow +{ + char* Name; // Window name, owned by the window. + ImGuiID ID; // == ImHashStr(Name) + ImGuiWindowFlags Flags; // See enum ImGuiWindowFlags_ + ImVec2 Pos; // Position (always rounded-up to nearest pixel) + ImVec2 Size; // Current size (==SizeFull or collapsed title bar size) + ImVec2 SizeFull; // Size when non collapsed + ImVec2 ContentSize; // Size of contents/scrollable client area (calculated from the extents reach of the cursor) from previous frame. Does not include window decoration or window padding. + ImVec2 ContentSizeExplicit; // Size of contents/scrollable client area explicitly request by the user via SetNextWindowContentSize(). + ImVec2 WindowPadding; // Window padding at the time of Begin(). + float WindowRounding; // Window rounding at the time of Begin(). May be clamped lower to avoid rendering artifacts with title bar, menu bar etc. + float WindowBorderSize; // Window border size at the time of Begin(). + int NameBufLen; // Size of buffer storing Name. May be larger than strlen(Name)! + ImGuiID MoveId; // == window->GetID("#MOVE") + ImGuiID ChildId; // ID of corresponding item in parent window (for navigation to return from child window to parent window) + ImVec2 Scroll; + ImVec2 ScrollMax; + ImVec2 ScrollTarget; // target scroll position. stored as cursor position with scrolling canceled out, so the highest point is always 0.0f. (FLT_MAX for no change) + ImVec2 ScrollTargetCenterRatio; // 0.0f = scroll so that target position is at top, 0.5f = scroll so that target position is centered + ImVec2 ScrollTargetEdgeSnapDist; // 0.0f = no snapping, >0.0f snapping threshold + ImVec2 ScrollbarSizes; // Size taken by each scrollbars on their smaller axis. Pay attention! ScrollbarSizes.x == width of the vertical scrollbar, ScrollbarSizes.y = height of the horizontal scrollbar. + bool ScrollbarX, ScrollbarY; // Are scrollbars visible? + bool Active; // Set to true on Begin(), unless Collapsed + bool WasActive; + bool WriteAccessed; // Set to true when any widget access the current window + bool Collapsed; // Set when collapsing window to become only title-bar + bool WantCollapseToggle; + bool SkipItems; // Set when items can safely be all clipped (e.g. window not visible or collapsed) + bool Appearing; // Set during the frame where the window is appearing (or re-appearing) + bool Hidden; // Do not display (== HiddenFrames*** > 0) + bool IsFallbackWindow; // Set on the "Debug##Default" window. + bool HasCloseButton; // Set when the window has a close button (p_open != NULL) + signed char ResizeBorderHeld; // Current border being held for resize (-1: none, otherwise 0-3) + short BeginCount; // Number of Begin() during the current frame (generally 0 or 1, 1+ if appending via multiple Begin/End pairs) + short BeginOrderWithinParent; // Order within immediate parent window, if we are a child window. Otherwise 0. + short BeginOrderWithinContext; // Order within entire imgui context. This is mostly used for debugging submission order related issues. + ImGuiID PopupId; // ID in the popup stack when this window is used as a popup/menu (because we use generic Name/ID for recycling) + ImS8 AutoFitFramesX, AutoFitFramesY; + ImS8 AutoFitChildAxises; + bool AutoFitOnlyGrows; + ImGuiDir AutoPosLastDirection; + int HiddenFramesCanSkipItems; // Hide the window for N frames + int HiddenFramesCannotSkipItems; // Hide the window for N frames while allowing items to be submitted so we can measure their size + ImGuiCond SetWindowPosAllowFlags; // store acceptable condition flags for SetNextWindowPos() use. + ImGuiCond SetWindowSizeAllowFlags; // store acceptable condition flags for SetNextWindowSize() use. + ImGuiCond SetWindowCollapsedAllowFlags; // store acceptable condition flags for SetNextWindowCollapsed() use. + ImVec2 SetWindowPosVal; // store window position when using a non-zero Pivot (position set needs to be processed when we know the window size) + ImVec2 SetWindowPosPivot; // store window pivot for positioning. ImVec2(0, 0) when positioning from top-left corner; ImVec2(0.5f, 0.5f) for centering; ImVec2(1, 1) for bottom right. + + ImVector IDStack; // ID stack. ID are hashes seeded with the value at the top of the stack. (In theory this should be in the TempData structure) + ImGuiWindowTempData DC; // Temporary per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the "DC" variable name. + + // The best way to understand what those rectangles are is to use the 'Metrics -> Tools -> Show windows rectangles' viewer. + // The main 'OuterRect', omitted as a field, is window->Rect(). + ImRect OuterRectClipped; // == Window->Rect() just after setup in Begin(). == window->Rect() for root window. + ImRect InnerRect; // Inner rectangle (omit title bar, menu bar, scroll bar) + ImRect InnerClipRect; // == InnerRect shrunk by WindowPadding*0.5f on each side, clipped within viewport or parent clip rect. + ImRect WorkRect; // Initially covers the whole scrolling region. Reduced by containers e.g columns/tables when active. Shrunk by WindowPadding*1.0f on each side. This is meant to replace ContentRegionRect over time (from 1.71+ onward). + ImRect ParentWorkRect; // Backup of WorkRect before entering a container such as columns/tables. Used by e.g. SpanAllColumns functions to easily access. Stacked containers are responsible for maintaining this. // FIXME-WORKRECT: Could be a stack? + ImRect ClipRect; // Current clipping/scissoring rectangle, evolve as we are using PushClipRect(), etc. == DrawList->clip_rect_stack.back(). + ImRect ContentRegionRect; // FIXME: This is currently confusing/misleading. It is essentially WorkRect but not handling of scrolling. We currently rely on it as right/bottom aligned sizing operation need some size to rely on. + ImVec2ih HitTestHoleSize; // Define an optional rectangular hole where mouse will pass-through the window. + ImVec2ih HitTestHoleOffset; + + int LastFrameActive; // Last frame number the window was Active. + float LastTimeActive; // Last timestamp the window was Active (using float as we don't need high precision there) + float ItemWidthDefault; + ImGuiStorage StateStorage; + ImVector ColumnsStorage; + float FontWindowScale; // User scale multiplier per-window, via SetWindowFontScale() + int SettingsOffset; // Offset into SettingsWindows[] (offsets are always valid as we only grow the array from the back) + + ImDrawList* DrawList; // == &DrawListInst (for backward compatibility reason with code using imgui_internal.h we keep this a pointer) + ImDrawList DrawListInst; + ImGuiWindow* ParentWindow; // If we are a child _or_ popup window, this is pointing to our parent. Otherwise NULL. + ImGuiWindow* RootWindow; // Point to ourself or first ancestor that is not a child window == Top-level window. + ImGuiWindow* RootWindowForTitleBarHighlight; // Point to ourself or first ancestor which will display TitleBgActive color when this window is active. + ImGuiWindow* RootWindowForNav; // Point to ourself or first ancestor which doesn't have the NavFlattened flag. + + ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.) + ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1) + ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space + + bool MemoryCompacted; // Set when window extraneous data have been garbage collected + int MemoryDrawListIdxCapacity; // Backup of last idx/vtx count, so when waking up the window we can preallocate and avoid iterative alloc/copy + int MemoryDrawListVtxCapacity; + +public: + ImGuiWindow(ImGuiContext* context, const char* name); + ~ImGuiWindow(); + + ImGuiID GetID(const char* str, const char* str_end = NULL); + ImGuiID GetID(const void* ptr); + ImGuiID GetID(int n); + ImGuiID GetIDNoKeepAlive(const char* str, const char* str_end = NULL); + ImGuiID GetIDNoKeepAlive(const void* ptr); + ImGuiID GetIDNoKeepAlive(int n); + ImGuiID GetIDFromRectangle(const ImRect& r_abs); + + // We don't use g.FontSize because the window may be != g.CurrentWidow. + ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } + float CalcFontSize() const { ImGuiContext& g = *GImGui; float scale = g.FontBaseSize * FontWindowScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; } + float TitleBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; } + ImRect TitleBarRect() const { return ImRect(Pos, ImVec2(Pos.x + SizeFull.x, Pos.y + TitleBarHeight())); } + float MenuBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + g.Style.FramePadding.y * 2.0f : 0.0f; } + ImRect MenuBarRect() const { float y1 = Pos.y + TitleBarHeight(); return ImRect(Pos.x, y1, Pos.x + SizeFull.x, y1 + MenuBarHeight()); } +}; + +// Backup and restore just enough data to be able to use IsItemHovered() on item A after another B in the same window has overwritten the data. +struct ImGuiLastItemDataBackup +{ + ImGuiID LastItemId; + ImGuiItemStatusFlags LastItemStatusFlags; + ImRect LastItemRect; + ImRect LastItemDisplayRect; + + ImGuiLastItemDataBackup() { Backup(); } + void Backup() { ImGuiWindow* window = GImGui->CurrentWindow; LastItemId = window->DC.LastItemId; LastItemStatusFlags = window->DC.LastItemStatusFlags; LastItemRect = window->DC.LastItemRect; LastItemDisplayRect = window->DC.LastItemDisplayRect; } + void Restore() const { ImGuiWindow* window = GImGui->CurrentWindow; window->DC.LastItemId = LastItemId; window->DC.LastItemStatusFlags = LastItemStatusFlags; window->DC.LastItemRect = LastItemRect; window->DC.LastItemDisplayRect = LastItemDisplayRect; } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Tab bar, Tab item support +//----------------------------------------------------------------------------- + +// Extend ImGuiTabBarFlags_ +enum ImGuiTabBarFlagsPrivate_ +{ + ImGuiTabBarFlags_DockNode = 1 << 20, // Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around] + ImGuiTabBarFlags_IsFocused = 1 << 21, + ImGuiTabBarFlags_SaveSettings = 1 << 22 // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs +}; + +// Extend ImGuiTabItemFlags_ +enum ImGuiTabItemFlagsPrivate_ +{ + ImGuiTabItemFlags_NoCloseButton = 1 << 20, // Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout) + ImGuiTabItemFlags_Button = 1 << 21 // Used by TabItemButton, change the tab item behavior to mimic a button +}; + +// Storage for one active tab item (sizeof() 28~32 bytes) +struct ImGuiTabItem +{ + ImGuiID ID; + ImGuiTabItemFlags Flags; + int LastFrameVisible; + int LastFrameSelected; // This allows us to infer an ordered list of the last activated tabs with little maintenance + float Offset; // Position relative to beginning of tab + float Width; // Width currently displayed + float ContentWidth; // Width of label, stored during BeginTabItem() call + ImS16 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames + ImS8 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable + ImS8 IndexDuringLayout; // Index only used during TabBarLayout() + bool WantClose; // Marked as closed by SetTabItemClosed() + + ImGuiTabItem() { ID = 0; Flags = ImGuiTabItemFlags_None; LastFrameVisible = LastFrameSelected = -1; NameOffset = -1; Offset = Width = ContentWidth = 0.0f; BeginOrder = -1; IndexDuringLayout = -1; WantClose = false; } +}; + +// Storage for a tab bar (sizeof() 92~96 bytes) +struct ImGuiTabBar +{ + ImVector Tabs; + ImGuiID ID; // Zero for tab-bars used by docking + ImGuiID SelectedTabId; // Selected tab/window + ImGuiID NextSelectedTabId; + ImGuiID VisibleTabId; // Can occasionally be != SelectedTabId (e.g. when previewing contents for CTRL+TAB preview) + int CurrFrameVisible; + int PrevFrameVisible; + ImRect BarRect; + float LastTabContentHeight; // Record the height of contents submitted below the tab bar + float WidthAllTabs; // Actual width of all tabs (locked during layout) + float WidthAllTabsIdeal; // Ideal width if all tabs were visible and not clipped + float ScrollingAnim; + float ScrollingTarget; + float ScrollingTargetDistToVisibility; + float ScrollingSpeed; + float ScrollingRectMinX; + float ScrollingRectMaxX; + ImGuiTabBarFlags Flags; + ImGuiID ReorderRequestTabId; + ImS8 ReorderRequestDir; + ImS8 TabsActiveCount; // Number of tabs submitted this frame. + bool WantLayout; + bool VisibleTabWasSubmitted; + bool TabsAddedNew; // Set to true when a new tab item or button has been added to the tab bar during last frame + short LastTabItemIdx; // Index of last BeginTabItem() tab for use by EndTabItem() + ImVec2 FramePadding; // style.FramePadding locked at the time of BeginTabBar() + ImGuiTextBuffer TabsNames; // For non-docking tab bar we re-append names in a contiguous buffer. + + ImGuiTabBar(); + int GetTabOrder(const ImGuiTabItem* tab) const { return Tabs.index_from_ptr(tab); } + const char* GetTabName(const ImGuiTabItem* tab) const + { + IM_ASSERT(tab->NameOffset != -1 && (int)tab->NameOffset < TabsNames.Buf.Size); + return TabsNames.Buf.Data + tab->NameOffset; + } +}; + +//----------------------------------------------------------------------------- +// [SECTION] Table support +//----------------------------------------------------------------------------- + +#ifdef IMGUI_HAS_TABLE +// +#endif // #ifdef IMGUI_HAS_TABLE + +//----------------------------------------------------------------------------- +// [SECTION] Internal API +// No guarantee of forward compatibility here! +//----------------------------------------------------------------------------- + +namespace ImGui +{ + // Windows + // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) + // If this ever crash because g.CurrentWindow is NULL it means that either + // - ImGui::NewFrame() has never been called, which is illegal. + // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. + inline ImGuiWindow* GetCurrentWindowRead() { ImGuiContext& g = *GImGui; return g.CurrentWindow; } + inline ImGuiWindow* GetCurrentWindow() { ImGuiContext& g = *GImGui; g.CurrentWindow->WriteAccessed = true; return g.CurrentWindow; } + IMGUI_API ImGuiWindow* FindWindowByID(ImGuiID id); + IMGUI_API ImGuiWindow* FindWindowByName(const char* name); + IMGUI_API void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); + IMGUI_API ImVec2 CalcWindowExpectedSize(ImGuiWindow* window); + IMGUI_API bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent); + IMGUI_API bool IsWindowNavFocusable(ImGuiWindow* window); + IMGUI_API ImRect GetWindowAllowedExtentRect(ImGuiWindow* window); + IMGUI_API void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond = 0); + IMGUI_API void SetWindowSize(ImGuiWindow* window, const ImVec2& menu_size, ImGuiCond cond = 0); + IMGUI_API void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0); + IMGUI_API void SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& menu_size); + + // Windows: Display Order and Focus Order + IMGUI_API void FocusWindow(ImGuiWindow* window); + IMGUI_API void FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window); + IMGUI_API void BringWindowToFocusFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayFront(ImGuiWindow* window); + IMGUI_API void BringWindowToDisplayBack(ImGuiWindow* window); + + // Fonts, drawing + IMGUI_API void SetCurrentFont(ImFont* font); + inline ImFont* GetDefaultFont() { ImGuiContext& g = *GImGui; return g.IO.FontDefault ? g.IO.FontDefault : g.IO.Fonts->Fonts[0]; } + inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window) { IM_UNUSED(window); ImGuiContext& g = *GImGui; return &g.ForegroundDrawList; } // This seemingly unnecessary wrapper simplifies compatibility between the 'master' and 'docking' branches. + + // Init + IMGUI_API void Initialize(ImGuiContext* context); + IMGUI_API void Shutdown(ImGuiContext* context); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). + + // NewFrame + IMGUI_API void UpdateHoveredWindowAndCaptureFlags(); + IMGUI_API void StartMouseMovingWindow(ImGuiWindow* window); + IMGUI_API void UpdateMouseMovingWindowNewFrame(); + IMGUI_API void UpdateMouseMovingWindowEndFrame(); + + // Settings + IMGUI_API void MarkIniSettingsDirty(); + IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window); + IMGUI_API void ClearIniSettings(); + IMGUI_API ImGuiWindowSettings* CreateNewWindowSettings(const char* name); + IMGUI_API ImGuiWindowSettings* FindWindowSettings(ImGuiID id); + IMGUI_API ImGuiWindowSettings* FindOrCreateWindowSettings(const char* name); + IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name); + + // Scrolling + IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // Use -1.0f on one axis to leave as-is + IMGUI_API void SetScrollX(ImGuiWindow* window, float scroll_x); + IMGUI_API void SetScrollY(ImGuiWindow* window, float scroll_y); + IMGUI_API void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio); + IMGUI_API void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio); + IMGUI_API ImVec2 ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& item_rect); + + // Basic Accessors + inline ImGuiID GetItemID() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.LastItemId; } // Get ID of last item (~~ often same ImGui::GetID(label) beforehand) + inline ImGuiItemStatusFlags GetItemStatusFlags() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.LastItemStatusFlags; } + inline ImGuiID GetActiveID() { ImGuiContext& g = *GImGui; return g.ActiveId; } + inline ImGuiID GetFocusID() { ImGuiContext& g = *GImGui; return g.NavId; } + IMGUI_API void SetActiveID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void SetFocusID(ImGuiID id, ImGuiWindow* window); + IMGUI_API void ClearActiveID(); + IMGUI_API ImGuiID GetHoveredID(); + IMGUI_API void SetHoveredID(ImGuiID id); + IMGUI_API void KeepAliveID(ImGuiID id); + IMGUI_API void MarkItemEdited(ImGuiID id); // Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function. + IMGUI_API void PushOverrideID(ImGuiID id); // Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes) + IMGUI_API ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed); + + // Basic Helpers for widget code + IMGUI_API void ItemSize(const ImVec2& menu_size, float text_baseline_y = -1.0f); + IMGUI_API void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f); + IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL); + IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id); + IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id, bool clip_even_when_logged); + IMGUI_API void SetLastItemData(ImGuiWindow* window, ImGuiID item_id, ImGuiItemStatusFlags status_flags, const ImRect& item_rect); + IMGUI_API bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id); // Return true if focus is requested + IMGUI_API void FocusableItemUnregister(ImGuiWindow* window); + IMGUI_API ImVec2 CalcItemSize(ImVec2 menu_size, float default_w, float default_h); + IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x); + IMGUI_API void PushMultiItemsWidths(int components, float width_full); + IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled); + IMGUI_API void PopItemFlag(); + IMGUI_API bool IsItemToggledSelection(); // Was the last item selection toggled? (after Selectable(), TreeNode() etc. We only returns toggle _event_ in order to handle clipping correctly) + IMGUI_API ImVec2 GetContentRegionMaxAbs(); + IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); + + // Logging/Capture + IMGUI_API void LogBegin(ImGuiLogType type, int auto_open_depth); // -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. + IMGUI_API void LogToBuffer(int auto_open_depth = -1); // Start logging/capturing to internal buffer + + // Popups, Modals, Tooltips + IMGUI_API bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags); + IMGUI_API void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags = ImGuiPopupFlags_None); + IMGUI_API void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup); + IMGUI_API void ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup); + IMGUI_API bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags); + IMGUI_API bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags); + IMGUI_API void BeginTooltipEx(ImGuiWindowFlags extra_flags, ImGuiTooltipFlags tooltip_flags); + IMGUI_API ImGuiWindow* GetTopMostPopupModal(); + IMGUI_API ImVec2 FindBestWindowPosForPopup(ImGuiWindow* window); + IMGUI_API ImVec2 FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& menu_size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy); + + // Gamepad/Keyboard Navigation + IMGUI_API void NavInitWindow(ImGuiWindow* window, bool force_reinit); + IMGUI_API bool NavMoveRequestButNoResultYet(); + IMGUI_API void NavMoveRequestCancel(); + IMGUI_API void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, const ImRect& bb_rel, ImGuiNavMoveFlags move_flags); + IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); + IMGUI_API float GetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode); + IMGUI_API ImVec2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor = 0.0f, float fast_factor = 0.0f); + IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); + IMGUI_API void ActivateItem(ImGuiID id); // Remotely activate a button, checkbox, tree node etc. given its unique ID. activation is queued and processed on the next frame when the item is encountered again. + IMGUI_API void SetNavID(ImGuiID id, int nav_layer, ImGuiID focus_scope_id); + IMGUI_API void SetNavIDWithRectRel(ImGuiID id, int nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel); + + // Focus Scope (WIP) + // This is generally used to identify a selection set (multiple of which may be in the same window), as selection + // patterns generally need to react (e.g. clear selection) when landing on an item of the set. + IMGUI_API void PushFocusScope(ImGuiID id); + IMGUI_API void PopFocusScope(); + inline ImGuiID GetFocusScopeID() { ImGuiContext& g = *GImGui; return g.NavFocusScopeId; } + + // Inputs + // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. + inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } + inline bool IsActiveIdUsingNavInput(ImGuiNavInput input) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavInputMask & (1 << input)) != 0; } + inline bool IsActiveIdUsingKey(ImGuiKey key) { ImGuiContext& g = *GImGui; IM_ASSERT(key < 64); return (g.ActiveIdUsingKeyInputMask & ((ImU64)1 << key)) != 0; } + IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f); + inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { ImGuiContext& g = *GImGui; const int key_index = g.IO.KeyMap[key]; return (key_index >= 0) ? IsKeyPressed(key_index, repeat) : false; } + inline bool IsNavInputDown(ImGuiNavInput n) { ImGuiContext& g = *GImGui; return g.IO.NavInputs[n] > 0.0f; } + inline bool IsNavInputTest(ImGuiNavInput n, ImGuiInputReadMode rm) { return (GetNavInputAmount(n, rm) > 0.0f); } + IMGUI_API ImGuiKeyModFlags GetMergedKeyModFlags(); + + // Drag and Drop + IMGUI_API bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id); + IMGUI_API void ClearDragDrop(); + IMGUI_API bool IsDragDropPayloadBeingAccepted(); + + // Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) + IMGUI_API void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect); + IMGUI_API void BeginColumns(const char* str_id, int count, ImGuiColumnsFlags flags = 0); // setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). + IMGUI_API void EndColumns(); // close columns + IMGUI_API void PushColumnClipRect(int column_index); + IMGUI_API void PushColumnsBackground(); + IMGUI_API void PopColumnsBackground(); + IMGUI_API ImGuiID GetColumnsID(const char* str_id, int count); + IMGUI_API ImGuiColumns* FindOrCreateColumns(ImGuiWindow* window, ImGuiID id); + IMGUI_API float GetColumnOffsetFromNorm(const ImGuiColumns* columns, float offset_norm); + IMGUI_API float GetColumnNormFromOffset(const ImGuiColumns* columns, float offset); + + // Tab Bars + IMGUI_API bool BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& bb, ImGuiTabBarFlags flags); + IMGUI_API ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id); + IMGUI_API void TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); + IMGUI_API void TabBarQueueReorder(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int dir); + IMGUI_API bool TabBarProcessReorder(ImGuiTabBar* tab_bar); + IMGUI_API bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags); + IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button); + IMGUI_API void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col); + IMGUI_API bool TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible); + + // Render helpers + // AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. + // NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) + IMGUI_API void RenderText(ImVec2 pos, const char* text, const char* text_end = NULL, bool hide_text_after_hash = true); + IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width); + IMGUI_API void RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); + IMGUI_API void RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known); + IMGUI_API void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border = true, float rounding = 0.0f); + IMGUI_API void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f); + IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, int rounding_corners_flags = ~0); + IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault); // Navigation highlight + IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text. + IMGUI_API void LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end = NULL); + + // Render helpers (those functions don't access any ImGui state!) + IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f); + IMGUI_API void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); + IMGUI_API void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); + IMGUI_API void RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); + IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); + IMGUI_API void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); + IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding); + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // [1.71: 2019/06/07: Updating prototypes of some of the internal functions. Leaving those for reference for a short while] + inline void RenderArrow(ImVec2 pos, ImGuiDir dir, float scale=1.0f) { ImGuiWindow* window = GetCurrentWindow(); RenderArrow(window->DrawList, pos, GetColorU32(ImGuiCol_Text), dir, scale); } + inline void RenderBullet(ImVec2 pos) { ImGuiWindow* window = GetCurrentWindow(); RenderBullet(window->DrawList, pos, GetColorU32(ImGuiCol_Text)); } +#endif + + // Widgets + IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0); + IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0); + IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos); + IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos); + IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0); + IMGUI_API void Scrollbar(ImGuiAxis axis); + IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* p_scroll_v, float avail_v, float contents_v, ImDrawCornerFlags rounding_corners); + IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& menu_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec2& padding, const ImVec4& bg_col, const ImVec4& tint_col); + IMGUI_API ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); + IMGUI_API ImGuiID GetWindowResizeID(ImGuiWindow* window, int n); // 0..3: corners, 4..7: borders + IMGUI_API void SeparatorEx(ImGuiSeparatorFlags flags); + + // Widgets low-level behaviors + IMGUI_API bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0); + IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); + IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f); + IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL); + IMGUI_API bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0); // Consume previous SetNextItemOpen() data, if any. May return true when logging + IMGUI_API void TreePushOverrideID(ImGuiID id); + + // Template functions are instantiated in imgui_widgets.cpp for a finite number of types. + // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036). + // e.g. " extern template IMGUI_API float RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, float v); " + template IMGUI_API float ScaleRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); + template IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags); + template IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); + template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); + + // Data type helpers + IMGUI_API const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type); + IMGUI_API int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); + IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format); + IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); + IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); + + // InputText + IMGUI_API bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); + IMGUI_API bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); + IMGUI_API bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL); + inline bool TempInputIsActive(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.ActiveId == id && g.TempInputId == id); } + inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active + + // Color + IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags); + IMGUI_API void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags); + + // Plot + IMGUI_API int PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 frame_size); + + // Shade functions (write over already created vertices) + IMGUI_API void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1); + IMGUI_API void ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp); + + // Garbage collection + IMGUI_API void GcCompactTransientWindowBuffers(ImGuiWindow* window); + IMGUI_API void GcAwakeTransientWindowBuffers(ImGuiWindow* window); + + // Debug Tools + inline void DebugDrawItemRect(ImU32 col = IM_COL32(255,0,0,255)) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; GetForegroundDrawList(window)->AddRect(window->DC.LastItemRect.Min, window->DC.LastItemRect.Max, col); } + inline void DebugStartItemPicker() { ImGuiContext& g = *GImGui; g.DebugItemPickerActive = true; } + +} // namespace ImGui + +// ImFontAtlas internals +IMGUI_API bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildInit(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); +IMGUI_API void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); +IMGUI_API void ImFontAtlasBuildFinish(ImFontAtlas* atlas); +IMGUI_API void ImFontAtlasBuildRender1bppRectFromString(ImFontAtlas* atlas, int atlas_x, int atlas_y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value); +IMGUI_API void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_multiply_factor); +IMGUI_API void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride); + +//----------------------------------------------------------------------------- +// [SECTION] Test Engine Hooks (imgui_test_engine) +//----------------------------------------------------------------------------- + +#ifdef IMGUI_ENABLE_TEST_ENGINE +extern void ImGuiTestEngineHook_Shutdown(ImGuiContext* ctx); +extern void ImGuiTestEngineHook_PreNewFrame(ImGuiContext* ctx); +extern void ImGuiTestEngineHook_PostNewFrame(ImGuiContext* ctx); +extern void ImGuiTestEngineHook_ItemAdd(ImGuiContext* ctx, const ImRect& bb, ImGuiID id); +extern void ImGuiTestEngineHook_ItemInfo(ImGuiContext* ctx, ImGuiID id, const char* label, ImGuiItemStatusFlags flags); +extern void ImGuiTestEngineHook_IdInfo(ImGuiContext* ctx, ImGuiDataType data_type, ImGuiID id, const void* data_id); +extern void ImGuiTestEngineHook_IdInfo(ImGuiContext* ctx, ImGuiDataType data_type, ImGuiID id, const void* data_id, const void* data_id_end); +extern void ImGuiTestEngineHook_Log(ImGuiContext* ctx, const char* fmt, ...); +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemAdd(&g, _BB, _ID) // Register item bounding box +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register item label and status flags (optional) +#define IMGUI_TEST_ENGINE_LOG(_FMT,...) if (g.TestEngineHookItems) ImGuiTestEngineHook_Log(&g, _FMT, __VA_ARGS__) // Custom log entry from user land into test log +#define IMGUI_TEST_ENGINE_ID_INFO(_ID,_TYPE,_DATA) if (g.TestEngineHookIdInfo == id) ImGuiTestEngineHook_IdInfo(&g, _TYPE, _ID, (const void*)(_DATA)); +#define IMGUI_TEST_ENGINE_ID_INFO2(_ID,_TYPE,_DATA,_DATA2) if (g.TestEngineHookIdInfo == id) ImGuiTestEngineHook_IdInfo(&g, _TYPE, _ID, (const void*)(_DATA), (const void*)(_DATA2)); +#else +#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) do { } while (0) +#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) do { } while (0) +#define IMGUI_TEST_ENGINE_LOG(_FMT,...) do { } while (0) +#define IMGUI_TEST_ENGINE_ID_INFO(_ID,_TYPE,_DATA) do { } while (0) +#define IMGUI_TEST_ENGINE_ID_INFO2(_ID,_TYPE,_DATA,_DATA2) do { } while (0) +#endif + +#if defined(__clang__) +#pragma clang diagnostic pop +#elif defined(__GNUC__) +#pragma GCC diagnostic pop +#endif + +#ifdef _MSC_VER +#pragma warning (pop) +#endif + +#endif // #ifndef IMGUI_DISABLE diff --git a/CheatMenu/external/imgui/imgui_widgets.cpp b/CheatMenu/external/imgui/imgui_widgets.cpp new file mode 100644 index 0000000..1018200 --- /dev/null +++ b/CheatMenu/external/imgui/imgui_widgets.cpp @@ -0,0 +1,8299 @@ +// dear imgui, v1.79 +// (widgets code) + +/* + +Index of this file: + +// [SECTION] Forward Declarations +// [SECTION] Widgets: Text, etc. +// [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.) +// [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, etc.) +// [SECTION] Widgets: ComboBox +// [SECTION] Data Type and Data Formatting Helpers +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +// [SECTION] Widgets: InputText, InputTextMultiline +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +// [SECTION] Widgets: Selectable +// [SECTION] Widgets: ListBox +// [SECTION] Widgets: PlotLines, PlotHistogram +// [SECTION] Widgets: Value helpers +// [SECTION] Widgets: MenuItem, BeginMenu, EndMenu, etc. +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +// [SECTION] Widgets: Columns, BeginColumns, EndColumns, etc. + +*/ + +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + +#include "imgui.h" +#ifndef IMGUI_DISABLE + +#ifndef IMGUI_DEFINE_MATH_OPERATORS +#define IMGUI_DEFINE_MATH_OPERATORS +#endif +#include "imgui_internal.h" + +#include // toupper +#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier +#include // intptr_t +#else +#include // intptr_t +#endif + +// Visual Studio warnings +#ifdef _MSC_VER +#pragma warning (disable: 4127) // condition expression is constant +#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen +#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later +#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types +#endif +#endif + +// Clang/GCC warnings with -Weverything +#if defined(__clang__) +#if __has_warning("-Wunknown-warning-option") +#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. +#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. +#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. +#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 +#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. +#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') +#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated +#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision +#elif defined(__GNUC__) +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#endif + +//------------------------------------------------------------------------- +// Data +//------------------------------------------------------------------------- + +// Those MIN/MAX values are not define because we need to point to them +static const signed char IM_S8_MIN = -128; +static const signed char IM_S8_MAX = 127; +static const unsigned char IM_U8_MIN = 0; +static const unsigned char IM_U8_MAX = 0xFF; +static const signed short IM_S16_MIN = -32768; +static const signed short IM_S16_MAX = 32767; +static const unsigned short IM_U16_MIN = 0; +static const unsigned short IM_U16_MAX = 0xFFFF; +static const ImS32 IM_S32_MIN = INT_MIN; // (-2147483647 - 1), (0x80000000); +static const ImS32 IM_S32_MAX = INT_MAX; // (2147483647), (0x7FFFFFFF) +static const ImU32 IM_U32_MIN = 0; +static const ImU32 IM_U32_MAX = UINT_MAX; // (0xFFFFFFFF) +#ifdef LLONG_MIN +static const ImS64 IM_S64_MIN = LLONG_MIN; // (-9223372036854775807ll - 1ll); +static const ImS64 IM_S64_MAX = LLONG_MAX; // (9223372036854775807ll); +#else +static const ImS64 IM_S64_MIN = -9223372036854775807LL - 1; +static const ImS64 IM_S64_MAX = 9223372036854775807LL; +#endif +static const ImU64 IM_U64_MIN = 0; +#ifdef ULLONG_MAX +static const ImU64 IM_U64_MAX = ULLONG_MAX; // (0xFFFFFFFFFFFFFFFFull); +#else +static const ImU64 IM_U64_MAX = (2ULL * 9223372036854775807LL + 1); +#endif + +//------------------------------------------------------------------------- +// [SECTION] Forward Declarations +//------------------------------------------------------------------------- + +// For InputTextEx() +static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end); +static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining = NULL, ImVec2* out_offset = NULL, bool stop_on_new_line = false); + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Text, etc. +//------------------------------------------------------------------------- +// - TextEx() [Internal] +// - TextUnformatted() +// - Text() +// - TextV() +// - TextColored() +// - TextColoredV() +// - TextDisabled() +// - TextDisabledV() +// - TextWrapped() +// - TextWrappedV() +// - LabelText() +// - LabelTextV() +// - BulletText() +// - BulletTextV() +//------------------------------------------------------------------------- + +void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + IM_ASSERT(text != NULL); + const char* text_begin = text; + if (text_end == NULL) + text_end = text + strlen(text); // FIXME-OPT + + const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); + const float wrap_pos_x = window->DC.TextWrapPos; + const bool wrap_enabled = (wrap_pos_x >= 0.0f); + if (text_end - text > 2000 && !wrap_enabled) + { + // Long text! + // Perform manual coarse clipping to optimize for long multi-line text + // - From this point we will only compute the width of lines that are visible. Optimization only available when word-wrapping is disabled. + // - We also don't vertically center the text within the line full height, which is unlikely to matter because we are likely the biggest and only item on the line. + // - We use memchr(), pay attention that well optimized versions of those str/mem functions are much faster than a casually written loop. + const char* line = text; + const float line_height = GetTextLineHeight(); + ImVec2 text_size(0, 0); + + // Lines to skip (can't skip when logging text) + ImVec2 pos = text_pos; + if (!g.LogEnabled) + { + int lines_skippable = (int)((window->ClipRect.Min.y - text_pos.y) / line_height); + if (lines_skippable > 0) + { + int lines_skipped = 0; + while (line < text_end && lines_skipped < lines_skippable) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + } + + // Lines to render + if (line < text_end) + { + ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); + while (line < text_end) + { + if (IsClippedEx(line_rect, 0, false)) + break; + + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + RenderText(pos, line, line_end, false); + line = line_end + 1; + line_rect.Min.y += line_height; + line_rect.Max.y += line_height; + pos.y += line_height; + } + + // Count remaining lines + int lines_skipped = 0; + while (line < text_end) + { + const char* line_end = (const char*)memchr(line, '\n', text_end - line); + if (!line_end) + line_end = text_end; + if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) + text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); + line = line_end + 1; + lines_skipped++; + } + pos.y += lines_skipped * line_height; + } + text_size.y = (pos - text_pos).y; + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + ItemAdd(bb, 0); + } + else + { + const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; + const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); + + ImRect bb(text_pos, text_pos + text_size); + ItemSize(text_size, 0.0f); + if (!ItemAdd(bb, 0)) + return; + + // Render (we don't hide text after ## in this end-user function) + RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); + } +} + +void ImGui::TextUnformatted(const char* text, const char* text_end) +{ + TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::Text(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextV(fmt, args); + va_end(args); +} + +void ImGui::TextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); + TextEx(g.TempBuffer, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); +} + +void ImGui::TextColored(const ImVec4& col, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextColoredV(col, fmt, args); + va_end(args); +} + +void ImGui::TextColoredV(const ImVec4& col, const char* fmt, va_list args) +{ + PushStyleColor(ImGuiCol_Text, col); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting + else + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextDisabled(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextDisabledV(fmt, args); + va_end(args); +} + +void ImGui::TextDisabledV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting + else + TextV(fmt, args); + PopStyleColor(); +} + +void ImGui::TextWrapped(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + TextWrappedV(fmt, args); + va_end(args); +} + +void ImGui::TextWrappedV(const char* fmt, va_list args) +{ + ImGuiContext& g = *GImGui; + bool need_backup = (g.CurrentWindow->DC.TextWrapPos < 0.0f); // Keep existing wrap position if one is already set + if (need_backup) + PushTextWrapPos(0.0f); + if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) + TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting + else + TextV(fmt, args); + if (need_backup) + PopTextWrapPos(); +} + +void ImGui::LabelText(const char* label, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + LabelTextV(label, fmt, args); + va_end(args); +} + +// Add a label+text combo aligned to other label+value widgets +void ImGui::LabelTextV(const char* label, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect value_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2)); + const ImRect total_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w + (label_size.x > 0.0f ? style.ItemInnerSpacing.x : 0.0f), style.FramePadding.y * 2) + label_size); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0)) + return; + + // Render + const char* value_text_begin = &g.TempBuffer[0]; + const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); + RenderTextClipped(value_bb.Min, value_bb.Max, value_text_begin, value_text_end, NULL, ImVec2(0.0f, 0.5f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(value_bb.Max.x + style.ItemInnerSpacing.x, value_bb.Min.y + style.FramePadding.y), label); +} + +void ImGui::BulletText(const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + BulletTextV(fmt, args); + va_end(args); +} + +// Text with a little bullet aligned to the typical tree node. +void ImGui::BulletTextV(const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const char* text_begin = g.TempBuffer; + const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); + const ImVec2 label_size = CalcTextSize(text_begin, text_end, false); + const ImVec2 total_size = ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x * 2) : 0.0f), label_size.y); // Empty text doesn't add padding + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(total_size, 0.0f); + const ImRect bb(pos, pos + total_size); + if (!ItemAdd(bb, 0)) + return; + + // Render + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, g.FontSize * 0.5f), text_col); + RenderText(bb.Min + ImVec2(g.FontSize + style.FramePadding.x * 2, 0.0f), text_begin, text_end, false); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Main +//------------------------------------------------------------------------- +// - ButtonBehavior() [Internal] +// - Button() +// - SmallButton() +// - InvisibleButton() +// - ArrowButton() +// - CloseButton() [Internal] +// - CollapseButton() [Internal] +// - GetWindowScrollbarID() [Internal] +// - GetWindowScrollbarRect() [Internal] +// - Scrollbar() [Internal] +// - ScrollbarEx() [Internal] +// - Image() +// - ImageButton() +// - Checkbox() +// - CheckboxFlags() +// - RadioButton() +// - ProgressBar() +// - Bullet() +//------------------------------------------------------------------------- + +// The ButtonBehavior() function is key to many interactions and used by many/most widgets. +// Because we handle so many cases (keyboard/gamepad navigation, drag and drop) and many specific behavior (via ImGuiButtonFlags_), +// this code is a little complex. +// By far the most common path is interacting with the Mouse using the default ImGuiButtonFlags_PressedOnClickRelease button behavior. +// See the series of events below and the corresponding state reported by dear imgui: +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClickRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse is outside bb) - - - - - - +// Frame N+1 (mouse moves inside bb) - true - - - - +// Frame N+2 (mouse button is down) - true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+4 (mouse moves outside bb) - - true - - - +// Frame N+5 (mouse moves inside bb) - true true - - - +// Frame N+6 (mouse button is released) true true - - true - +// Frame N+7 (mouse button is released) - true - - - - +// Frame N+8 (mouse moves outside bb) - - - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) true true true true - true +// Frame N+3 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+2 (mouse button is down) - true - - - true +// Frame N+3 (mouse button is down) - true - - - - +// Frame N+6 (mouse button is released) true true - - - - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// with PressedOnDoubleClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() +// Frame N+0 (mouse button is down) - true - - - true +// Frame N+1 (mouse button is down) - true - - - - +// Frame N+2 (mouse button is released) - true - - - - +// Frame N+3 (mouse button is released) - true - - - - +// Frame N+4 (mouse button is down) true true true true - true +// Frame N+5 (mouse button is down) - true true - - - +// Frame N+6 (mouse button is released) - true - - true - +// Frame N+7 (mouse button is released) - true - - - - +//------------------------------------------------------------------------------------------------------------------------------------------------ +// Note that some combinations are supported, +// - PressedOnDragDropHold can generally be associated with any flag. +// - PressedOnDoubleClick can be associated by PressedOnClickRelease/PressedOnRelease, in which case the second release event won't be reported. +//------------------------------------------------------------------------------------------------------------------------------------------------ +// The behavior of the return-value changes when ImGuiButtonFlags_Repeat is set: +// Repeat+ Repeat+ Repeat+ Repeat+ +// PressedOnClickRelease PressedOnClick PressedOnRelease PressedOnDoubleClick +//------------------------------------------------------------------------------------------------------------------------------------------------- +// Frame N+0 (mouse button is down) - true - true +// ... - - - - +// Frame N + RepeatDelay true true - true +// ... - - - - +// Frame N + RepeatDelay + RepeatRate*N true true - true +//------------------------------------------------------------------------------------------------------------------------------------------------- + +bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + if (flags & ImGuiButtonFlags_Disabled) + { + if (out_hovered) *out_hovered = false; + if (out_held) *out_held = false; + if (g.ActiveId == id) ClearActiveID(); + return false; + } + + // Default only reacts to left mouse button + if ((flags & ImGuiButtonFlags_MouseButtonMask_) == 0) + flags |= ImGuiButtonFlags_MouseButtonDefault_; + + // Default behavior requires click + release inside bounding box + if ((flags & ImGuiButtonFlags_PressedOnMask_) == 0) + flags |= ImGuiButtonFlags_PressedOnDefault_; + + ImGuiWindow* backup_hovered_window = g.HoveredWindow; + const bool flatten_hovered_children = (flags & ImGuiButtonFlags_FlattenChildren) && g.HoveredRootWindow == window; + if (flatten_hovered_children) + g.HoveredWindow = window; + +#ifdef IMGUI_ENABLE_TEST_ENGINE + if (id != 0 && window->DC.LastItemId != id) + IMGUI_TEST_ENGINE_ITEM_ADD(bb, id); +#endif + + bool pressed = false; + bool hovered = ItemHoverable(bb, id); + + // Drag source doesn't report as hovered + if (hovered && g.DragDropActive && g.DragDropPayload.SourceId == id && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoDisableHover)) + hovered = false; + + // Special mode for Drag and Drop where holding button pressed for a long time while dragging another item triggers the button + if (g.DragDropActive && (flags & ImGuiButtonFlags_PressedOnDragDropHold) && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoHoldToOpenOthers)) + if (IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) + { + const float DRAG_DROP_HOLD_TIMER = 0.70f; + hovered = true; + SetHoveredID(id); + if (CalcTypematicRepeatAmount(g.HoveredIdTimer + 0.0001f - g.IO.DeltaTime, g.HoveredIdTimer + 0.0001f, DRAG_DROP_HOLD_TIMER, 0.00f)) + { + pressed = true; + g.DragDropHoldJustPressedId = id; + FocusWindow(window); + } + } + + if (flatten_hovered_children) + g.HoveredWindow = backup_hovered_window; + + // AllowOverlap mode (rarely used) requires previous frame HoveredId to be null or to match. This allows using patterns where a later submitted widget overlaps a previous one. + if (hovered && (flags & ImGuiButtonFlags_AllowItemOverlap) && (g.HoveredIdPreviousFrame != id && g.HoveredIdPreviousFrame != 0)) + hovered = false; + + // Mouse handling + if (hovered) + { + if (!(flags & ImGuiButtonFlags_NoKeyModifiers) || (!g.IO.KeyCtrl && !g.IO.KeyShift && !g.IO.KeyAlt)) + { + // Poll buttons + int mouse_button_clicked = -1; + int mouse_button_released = -1; + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && g.IO.MouseClicked[0]) { mouse_button_clicked = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && g.IO.MouseClicked[1]) { mouse_button_clicked = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && g.IO.MouseClicked[2]) { mouse_button_clicked = 2; } + if ((flags & ImGuiButtonFlags_MouseButtonLeft) && g.IO.MouseReleased[0]) { mouse_button_released = 0; } + else if ((flags & ImGuiButtonFlags_MouseButtonRight) && g.IO.MouseReleased[1]) { mouse_button_released = 1; } + else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && g.IO.MouseReleased[2]) { mouse_button_released = 2; } + + if (mouse_button_clicked != -1 && g.ActiveId != id) + { + if (flags & (ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere)) + { + SetActiveID(id, window); + g.ActiveIdMouseButton = mouse_button_clicked; + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + FocusWindow(window); + } + if ((flags & ImGuiButtonFlags_PressedOnClick) || ((flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseDoubleClicked[mouse_button_clicked])) + { + pressed = true; + if (flags & ImGuiButtonFlags_NoHoldingActiveId) + ClearActiveID(); + else + SetActiveID(id, window); // Hold on ID + g.ActiveIdMouseButton = mouse_button_clicked; + FocusWindow(window); + } + } + if ((flags & ImGuiButtonFlags_PressedOnRelease) && mouse_button_released != -1) + { + // Repeat mode trumps on release behavior + const bool has_repeated_at_least_once = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; + if (!has_repeated_at_least_once) + pressed = true; + ClearActiveID(); + } + + // 'Repeat' mode acts when held regardless of _PressedOn flags (see table above). + // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. + if (g.ActiveId == id && (flags & ImGuiButtonFlags_Repeat)) + if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, true)) + pressed = true; + } + + if (pressed) + g.NavDisableHighlight = true; + } + + // Gamepad/Keyboard navigation + // We report navigated item as hovered but we don't set g.HoveredId to not interfere with mouse. + if (g.NavId == id && !g.NavDisableHighlight && g.NavDisableMouseHover && (g.ActiveId == 0 || g.ActiveId == id || g.ActiveId == window->MoveId)) + if (!(flags & ImGuiButtonFlags_NoHoveredOnFocus)) + hovered = true; + if (g.NavActivateDownId == id) + { + bool nav_activated_by_code = (g.NavActivateId == id); + bool nav_activated_by_inputs = IsNavInputTest(ImGuiNavInput_Activate, (flags & ImGuiButtonFlags_Repeat) ? ImGuiInputReadMode_Repeat : ImGuiInputReadMode_Pressed); + if (nav_activated_by_code || nav_activated_by_inputs) + pressed = true; + if (nav_activated_by_code || nav_activated_by_inputs || g.ActiveId == id) + { + // Set active id so it can be queried by user via IsItemActive(), equivalent of holding the mouse button. + g.NavActivateId = id; // This is so SetActiveId assign a Nav source + SetActiveID(id, window); + if ((nav_activated_by_code || nav_activated_by_inputs) && !(flags & ImGuiButtonFlags_NoNavFocus)) + SetFocusID(id, window); + } + } + + // Process while held + bool held = false; + if (g.ActiveId == id) + { + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (g.ActiveIdIsJustActivated) + g.ActiveIdClickOffset = g.IO.MousePos - bb.Min; + + const int mouse_button = g.ActiveIdMouseButton; + IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); + if (g.IO.MouseDown[mouse_button]) + { + held = true; + } + else + { + bool release_in = hovered && (flags & ImGuiButtonFlags_PressedOnClickRelease) != 0; + bool release_anywhere = (flags & ImGuiButtonFlags_PressedOnClickReleaseAnywhere) != 0; + if ((release_in || release_anywhere) && !g.DragDropActive) + { + // Report as pressed when releasing the mouse (this is the most common path) + bool is_double_click_release = (flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseDownWasDoubleClick[mouse_button]; + bool is_repeating_already = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button] >= g.IO.KeyRepeatDelay; // Repeat mode trumps + if (!is_double_click_release && !is_repeating_already) + pressed = true; + } + ClearActiveID(); + } + if (!(flags & ImGuiButtonFlags_NoNavFocus)) + g.NavDisableHighlight = true; + } + else if (g.ActiveIdSource == ImGuiInputSource_Nav) + { + // When activated using Nav, we hold on the ActiveID until activation button is released + if (g.NavActivateDownId != id) + ClearActiveID(); + } + if (pressed) + g.ActiveIdHasBeenPressedBefore = true; + } + + if (out_hovered) *out_hovered = hovered; + if (out_held) *out_held = held; + + return pressed; +} + +bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + ImVec2 pos = window->DC.CursorPos; + if ((flags & ImGuiButtonFlags_AlignTextBaseLine) && style.FramePadding.y < window->DC.CurrLineTextBaseOffset) // Try to vertically align buttons that are smaller/have no padding so that text baseline matches (bit hacky, since it shouldn't be a flag) + pos.y += window->DC.CurrLineTextBaseOffset - style.FramePadding.y; + ImVec2 menu_size = CalcItemSize(size_arg, label_size.x + style.FramePadding.x * 2.0f, label_size.y + style.FramePadding.y * 2.0f); + + const ImRect bb(pos, pos + menu_size); + ItemSize(menu_size, style.FramePadding.y); + if (!ItemAdd(bb, id)) + return false; + + if (window->DC.ItemFlags & ImGuiItemFlags_ButtonRepeat) + flags |= ImGuiButtonFlags_Repeat; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding); + RenderTextClipped(bb.Min + style.FramePadding, bb.Max - style.FramePadding, label, NULL, &label_size, style.ButtonTextAlign, &bb); + + // Automatically close popups + //if (pressed && !(flags & ImGuiButtonFlags_DontClosePopups) && (window->Flags & ImGuiWindowFlags_Popup)) + // CloseCurrentPopup(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.LastItemStatusFlags); + return pressed; +} + +bool ImGui::Button(const char* label, const ImVec2& size_arg) +{ + return ButtonEx(label, size_arg, ImGuiButtonFlags_None); +} + +// Small buttons fits within text without additional vertical spacing. +bool ImGui::SmallButton(const char* label) +{ + ImGuiContext& g = *GImGui; + float backup_padding_y = g.Style.FramePadding.y; + g.Style.FramePadding.y = 0.0f; + bool pressed = ButtonEx(label, ImVec2(0, 0), ImGuiButtonFlags_AlignTextBaseLine); + g.Style.FramePadding.y = backup_padding_y; + return pressed; +} + +// Tip: use ImGui::PushID()/PopID() to push indices or pointers in the ID stack. +// Then you can keep 'str_id' empty or the same for all your buttons (instead of creating a string based on a non-string id) +bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + // Cannot use zero-size for InvisibleButton(). Unlike Button() there is not way to fallback using the label size. + IM_ASSERT(size_arg.x != 0.0f && size_arg.y != 0.0f); + + const ImGuiID id = window->GetID(str_id); + ImVec2 menu_size = CalcItemSize(size_arg, 0.0f, 0.0f); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + menu_size); + ItemSize(menu_size); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + return pressed; +} + +bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 menu_size, ImGuiButtonFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiID id = window->GetID(str_id); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + menu_size); + const float default_size = GetFrameHeight(); + ItemSize(menu_size, (menu_size.y >= default_size) ? g.Style.FramePadding.y : -1.0f); + if (!ItemAdd(bb, id)) + return false; + + if (window->DC.ItemFlags & ImGuiItemFlags_ButtonRepeat) + flags |= ImGuiButtonFlags_Repeat; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); + + // Render + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding); + RenderArrow(window->DrawList, bb.Min + ImVec2(ImMax(0.0f, (menu_size.x - g.FontSize) * 0.5f), ImMax(0.0f, (menu_size.y - g.FontSize) * 0.5f)), text_col, dir); + + return pressed; +} + +bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir) +{ + float sz = GetFrameHeight(); + return ArrowButtonEx(str_id, dir, ImVec2(sz, sz), ImGuiButtonFlags_None); +} + +// Button to close a window +bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos)//, float size) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We intentionally allow interaction when clipped so that a mechanical Alt,Right,Validate sequence close a window. + // (this isn't the regular behavior of buttons, but it doesn't affect the user much because navigation tends to keep items visible). + const ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f); + bool is_clipped = !ItemAdd(bb, id); + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + if (is_clipped) + return pressed; + + // Render + ImU32 col = GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered); + ImVec2 center = bb.GetCenter(); + if (hovered) + window->DrawList->AddCircleFilled(center, ImMax(2.0f, g.FontSize * 0.5f + 1.0f), col, 12); + + float cross_extent = g.FontSize * 0.5f * 0.7071f - 1.0f; + ImU32 cross_col = GetColorU32(ImGuiCol_Text); + center -= ImVec2(0.5f, 0.5f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, +cross_extent), center + ImVec2(-cross_extent, -cross_extent), cross_col, 1.0f); + window->DrawList->AddLine(center + ImVec2(+cross_extent, -cross_extent), center + ImVec2(-cross_extent, +cross_extent), cross_col, 1.0f); + + return pressed; +} + +bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f); + ItemAdd(bb, id); + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_None); + + // Render + ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + ImVec2 center = bb.GetCenter(); + if (hovered || held) + window->DrawList->AddCircleFilled(center/*+ ImVec2(0.0f, -0.5f)*/, g.FontSize * 0.5f + 1.0f, bg_col, 12); + RenderArrow(window->DrawList, bb.Min + g.Style.FramePadding, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f); + + // Switch to moving the window after mouse is moved beyond the initial drag threshold + if (IsItemActive() && IsMouseDragging(0)) + StartMouseMovingWindow(window); + + return pressed; +} + +ImGuiID ImGui::GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) +{ + return window->GetIDNoKeepAlive(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); +} + +// Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is set. +ImRect ImGui::GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis) +{ + const ImRect outer_rect = window->Rect(); + const ImRect inner_rect = window->InnerRect; + const float border_size = window->WindowBorderSize; + const float scrollbar_size = window->ScrollbarSizes[axis ^ 1]; // (ScrollbarSizes.x = width of Y scrollbar; ScrollbarSizes.y = height of X scrollbar) + IM_ASSERT(scrollbar_size > 0.0f); + if (axis == ImGuiAxis_X) + return ImRect(inner_rect.Min.x, ImMax(outer_rect.Min.y, outer_rect.Max.y - border_size - scrollbar_size), inner_rect.Max.x, outer_rect.Max.y); + else + return ImRect(ImMax(outer_rect.Min.x, outer_rect.Max.x - border_size - scrollbar_size), inner_rect.Min.y, outer_rect.Max.x, inner_rect.Max.y); +} + +void ImGui::Scrollbar(ImGuiAxis axis) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const ImGuiID id = GetWindowScrollbarID(window, axis); + KeepAliveID(id); + + // Calculate scrollbar bounding box + ImRect bb = GetWindowScrollbarRect(window, axis); + ImDrawCornerFlags rounding_corners = 0; + if (axis == ImGuiAxis_X) + { + rounding_corners |= ImDrawCornerFlags_BotLeft; + if (!window->ScrollbarY) + rounding_corners |= ImDrawCornerFlags_BotRight; + } + else + { + if ((window->Flags & ImGuiWindowFlags_NoTitleBar) && !(window->Flags & ImGuiWindowFlags_MenuBar)) + rounding_corners |= ImDrawCornerFlags_TopRight; + if (!window->ScrollbarX) + rounding_corners |= ImDrawCornerFlags_BotRight; + } + float size_avail = window->InnerRect.Max[axis] - window->InnerRect.Min[axis]; + float size_contents = window->ContentSize[axis] + window->WindowPadding[axis] * 2.0f; + ScrollbarEx(bb, id, axis, &window->Scroll[axis], size_avail, size_contents, rounding_corners); +} + +// Vertical/Horizontal scrollbar +// The entire piece of code below is rather confusing because: +// - We handle absolute seeking (when first clicking outside the grab) and relative manipulation (afterward or when clicking inside the grab) +// - We store values as normalized ratio and in a form that allows the window content to change while we are holding on a scrollbar +// - We handle both horizontal and vertical scrollbars, which makes the terminology not ideal. +// Still, the code should probably be made simpler.. +bool ImGui::ScrollbarEx(const ImRect& bb_frame, ImGuiID id, ImGuiAxis axis, float* p_scroll_v, float size_avail_v, float size_contents_v, ImDrawCornerFlags rounding_corners) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const float bb_frame_width = bb_frame.GetWidth(); + const float bb_frame_height = bb_frame.GetHeight(); + if (bb_frame_width <= 0.0f || bb_frame_height <= 0.0f) + return false; + + // When we are too small, start hiding and disabling the grab (this reduce visual noise on very small window and facilitate using the window resize grab) + float alpha = 1.0f; + if ((axis == ImGuiAxis_Y) && bb_frame_height < g.FontSize + g.Style.FramePadding.y * 2.0f) + alpha = ImSaturate((bb_frame_height - g.FontSize) / (g.Style.FramePadding.y * 2.0f)); + if (alpha <= 0.0f) + return false; + + const ImGuiStyle& style = g.Style; + const bool allow_interaction = (alpha >= 1.0f); + + ImRect bb = bb_frame; + bb.Expand(ImVec2(-ImClamp(IM_FLOOR((bb_frame_width - 2.0f) * 0.5f), 0.0f, 3.0f), -ImClamp(IM_FLOOR((bb_frame_height - 2.0f) * 0.5f), 0.0f, 3.0f))); + + // V denote the main, longer axis of the scrollbar (= height for a vertical scrollbar) + const float scrollbar_size_v = (axis == ImGuiAxis_X) ? bb.GetWidth() : bb.GetHeight(); + + // Calculate the height of our grabbable box. It generally represent the amount visible (vs the total scrollable amount) + // But we maintain a minimum size in pixel to allow for the user to still aim inside. + IM_ASSERT(ImMax(size_contents_v, size_avail_v) > 0.0f); // Adding this assert to check if the ImMax(XXX,1.0f) is still needed. PLEASE CONTACT ME if this triggers. + const float win_size_v = ImMax(ImMax(size_contents_v, size_avail_v), 1.0f); + const float grab_h_pixels = ImClamp(scrollbar_size_v * (size_avail_v / win_size_v), style.GrabMinSize, scrollbar_size_v); + const float grab_h_norm = grab_h_pixels / scrollbar_size_v; + + // Handle input right away. None of the code of Begin() is relying on scrolling position before calling Scrollbar(). + bool held = false; + bool hovered = false; + ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus); + + float scroll_max = ImMax(1.0f, size_contents_v - size_avail_v); + float scroll_ratio = ImSaturate(*p_scroll_v / scroll_max); + float grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; // Grab position in normalized space + if (held && allow_interaction && grab_h_norm < 1.0f) + { + float scrollbar_pos_v = bb.Min[axis]; + float mouse_pos_v = g.IO.MousePos[axis]; + + // Click position in scrollbar normalized space (0.0f->1.0f) + const float clicked_v_norm = ImSaturate((mouse_pos_v - scrollbar_pos_v) / scrollbar_size_v); + SetHoveredID(id); + + bool seek_absolute = false; + if (g.ActiveIdIsJustActivated) + { + // On initial click calculate the distance between mouse and the center of the grab + seek_absolute = (clicked_v_norm < grab_v_norm || clicked_v_norm > grab_v_norm + grab_h_norm); + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = 0.0f; + else + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Apply scroll (p_scroll_v will generally point on one member of window->Scroll) + // It is ok to modify Scroll here because we are being called in Begin() after the calculation of ContentSize and before setting up our starting position + const float scroll_v_norm = ImSaturate((clicked_v_norm - g.ScrollbarClickDeltaToGrabCenter - grab_h_norm * 0.5f) / (1.0f - grab_h_norm)); + *p_scroll_v = IM_ROUND(scroll_v_norm * scroll_max);//(win_size_contents_v - win_size_v)); + + // Update values for rendering + scroll_ratio = ImSaturate(*p_scroll_v / scroll_max); + grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; + + // Update distance to grab now that we have seeked and saturated + if (seek_absolute) + g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; + } + + // Render + const ImU32 bg_col = GetColorU32(ImGuiCol_ScrollbarBg); + const ImU32 grab_col = GetColorU32(held ? ImGuiCol_ScrollbarGrabActive : hovered ? ImGuiCol_ScrollbarGrabHovered : ImGuiCol_ScrollbarGrab, alpha); + window->DrawList->AddRectFilled(bb_frame.Min, bb_frame.Max, bg_col, window->WindowRounding, rounding_corners); + ImRect grab_rect; + if (axis == ImGuiAxis_X) + grab_rect = ImRect(ImLerp(bb.Min.x, bb.Max.x, grab_v_norm), bb.Min.y, ImLerp(bb.Min.x, bb.Max.x, grab_v_norm) + grab_h_pixels, bb.Max.y); + else + grab_rect = ImRect(bb.Min.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm), bb.Max.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm) + grab_h_pixels); + window->DrawList->AddRectFilled(grab_rect.Min, grab_rect.Max, grab_col, style.ScrollbarRounding); + + return held; +} + +void ImGui::Image(ImTextureID user_texture_id, const ImVec2& menu_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImRect bb(window->DC.CursorPos, window->DC.CursorPos + menu_size); + if (border_col.w > 0.0f) + bb.Max += ImVec2(2, 2); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + return; + + if (border_col.w > 0.0f) + { + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(border_col), 0.0f); + window->DrawList->AddImage(user_texture_id, bb.Min + ImVec2(1, 1), bb.Max - ImVec2(1, 1), uv0, uv1, GetColorU32(tint_col)); + } + else + { + window->DrawList->AddImage(user_texture_id, bb.Min, bb.Max, uv0, uv1, GetColorU32(tint_col)); + } +} + +// ImageButton() is flawed as 'id' is always derived from 'texture_id' (see #2464 #1390) +// We provide this internal helper to write your own variant while we figure out how to redesign the public ImageButton() API. +bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& menu_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec2& padding, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + menu_size + padding * 2); + ItemSize(bb); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + + // Render + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + RenderNavHighlight(bb, id); + RenderFrame(bb.Min, bb.Max, col, true, ImClamp((float)ImMin(padding.x, padding.y), 0.0f, g.Style.FrameRounding)); + if (bg_col.w > 0.0f) + window->DrawList->AddRectFilled(bb.Min + padding, bb.Max - padding, GetColorU32(bg_col)); + window->DrawList->AddImage(texture_id, bb.Min + padding, bb.Max - padding, uv0, uv1, GetColorU32(tint_col)); + + return pressed; +} + +// frame_padding < 0: uses FramePadding from style (default) +// frame_padding = 0: no framing +// frame_padding > 0: set framing size +bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& menu_size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + // Default to using texture ID as ID. User can still push string/integer prefixes. + PushID((void*)(intptr_t)user_texture_id); + const ImGuiID id = window->GetID("#image"); + PopID(); + + const ImVec2 padding = (frame_padding >= 0) ? ImVec2((float)frame_padding, (float)frame_padding) : g.Style.FramePadding; + return ImageButtonEx(id, user_texture_id, menu_size, uv0, uv1, padding, bg_col, tint_col); +} + +bool ImGui::Checkbox(const char* label, bool* v) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + { + *v = !(*v); + MarkItemEdited(id); + } + + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + RenderNavHighlight(total_bb, id); + RenderFrame(check_bb.Min, check_bb.Max, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), true, style.FrameRounding); + ImU32 check_col = GetColorU32(ImGuiCol_CheckMark); + bool mixed_value = (window->DC.ItemFlags & ImGuiItemFlags_MixedValue) != 0; + if (mixed_value) + { + // Undocumented tristate/mixed/indeterminate checkbox (#2644) + ImVec2 pad(ImMax(1.0f, IM_FLOOR(square_sz / 3.6f)), ImMax(1.0f, IM_FLOOR(square_sz / 3.6f))); + window->DrawList->AddRectFilled(check_bb.Min + pad, check_bb.Max - pad, check_col, style.FrameRounding); + } + else if (*v) + { + const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); + RenderCheckMark(window->DrawList, check_bb.Min + ImVec2(pad, pad), check_col, square_sz - pad * 2.0f); + } + + if (g.LogEnabled) + LogRenderedText(&total_bb.Min, mixed_value ? "[~]" : *v ? "[x]" : "[ ]"); + if (label_size.x > 0.0f) + RenderText(ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); + return pressed; +} + +bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value) +{ + bool v = ((*flags & flags_value) == flags_value); + bool pressed; + if (v == false && (*flags & flags_value) != 0) + { + // Mixed value (FIXME: find a way to expose neatly to Checkbox?) + ImGuiWindow* window = GetCurrentWindow(); + const ImGuiItemFlags backup_item_flags = window->DC.ItemFlags; + window->DC.ItemFlags |= ImGuiItemFlags_MixedValue; + pressed = Checkbox(label, &v); + window->DC.ItemFlags = backup_item_flags; + } + else + { + // Regular checkbox + pressed = Checkbox(label, &v); + } + if (pressed) + { + if (v) + *flags |= flags_value; + else + *flags &= ~flags_value; + } + + return pressed; +} + +bool ImGui::RadioButton(const char* label, bool active) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + const float square_sz = GetFrameHeight(); + const ImVec2 pos = window->DC.CursorPos; + const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); + const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id)) + return false; + + ImVec2 center = check_bb.GetCenter(); + center.x = IM_ROUND(center.x); + center.y = IM_ROUND(center.y); + const float radius = (square_sz - 1.0f) * 0.5f; + + bool hovered, held; + bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); + if (pressed) + MarkItemEdited(id); + + RenderNavHighlight(total_bb, id); + window->DrawList->AddCircleFilled(center, radius, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), 16); + if (active) + { + const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); + window->DrawList->AddCircleFilled(center, radius - pad, GetColorU32(ImGuiCol_CheckMark), 16); + } + + if (style.FrameBorderSize > 0.0f) + { + window->DrawList->AddCircle(center + ImVec2(1, 1), radius, GetColorU32(ImGuiCol_BorderShadow), 16, style.FrameBorderSize); + window->DrawList->AddCircle(center, radius, GetColorU32(ImGuiCol_Border), 16, style.FrameBorderSize); + } + + if (g.LogEnabled) + LogRenderedText(&total_bb.Min, active ? "(x)" : "( )"); + if (label_size.x > 0.0f) + RenderText(ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); + return pressed; +} + +// FIXME: This would work nicely if it was a public template, e.g. 'template RadioButton(const char* label, T* v, T v_button)', but I'm not sure how we would expose it.. +bool ImGui::RadioButton(const char* label, int* v, int v_button) +{ + const bool pressed = RadioButton(label, *v == v_button); + if (pressed) + *v = v_button; + return pressed; +} + +// size_arg (for each axis) < 0.0f: align to end, 0.0f: auto, > 0.0f: specified size +void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + ImVec2 pos = window->DC.CursorPos; + ImVec2 menu_size = CalcItemSize(size_arg, CalcItemWidth(), g.FontSize + style.FramePadding.y * 2.0f); + ImRect bb(pos, pos + menu_size); + ItemSize(menu_size, style.FramePadding.y); + if (!ItemAdd(bb, 0)) + return; + + // Render + fraction = ImSaturate(fraction); + RenderFrame(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + bb.Expand(ImVec2(-style.FrameBorderSize, -style.FrameBorderSize)); + const ImVec2 fill_br = ImVec2(ImLerp(bb.Min.x, bb.Max.x, fraction), bb.Max.y); + RenderRectFilledRangeH(window->DrawList, bb, GetColorU32(ImGuiCol_PlotHistogram), 0.0f, fraction, style.FrameRounding); + + // Default displaying the fraction as percentage string, but user can override it + char overlay_buf[32]; + if (!overlay) + { + ImFormatString(overlay_buf, IM_ARRAYSIZE(overlay_buf), "%.0f%%", fraction * 100 + 0.01f); + overlay = overlay_buf; + } + + ImVec2 overlay_size = CalcTextSize(overlay, NULL); + if (overlay_size.x > 0.0f) + RenderTextClipped(ImVec2(ImClamp(fill_br.x + style.ItemSpacing.x, bb.Min.x, bb.Max.x - overlay_size.x - style.ItemInnerSpacing.x), bb.Min.y), bb.Max, overlay, NULL, &overlay_size, ImVec2(0.0f, 0.5f), &bb); +} + +void ImGui::Bullet() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2), g.FontSize); + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); + ItemSize(bb); + if (!ItemAdd(bb, 0)) + { + SameLine(0, style.FramePadding.x * 2); + return; + } + + // Render and stay on same line + ImU32 text_col = GetColorU32(ImGuiCol_Text); + RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, line_height * 0.5f), text_col); + SameLine(0, style.FramePadding.x * 2.0f); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Low-level Layout helpers +//------------------------------------------------------------------------- +// - Spacing() +// - Dummy() +// - NewLine() +// - AlignTextToFramePadding() +// - SeparatorEx() [Internal] +// - Separator() +// - SplitterBehavior() [Internal] +// - ShrinkWidths() [Internal] +//------------------------------------------------------------------------- + +void ImGui::Spacing() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ItemSize(ImVec2(0, 0)); +} + +void ImGui::Dummy(const ImVec2& menu_size) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + menu_size); + ItemSize(menu_size); + ItemAdd(bb, 0); +} + +void ImGui::NewLine() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + const ImGuiLayoutType backup_layout_type = window->DC.LayoutType; + window->DC.LayoutType = ImGuiLayoutType_Vertical; + if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height. + ItemSize(ImVec2(0, 0)); + else + ItemSize(ImVec2(0.0f, g.FontSize)); + window->DC.LayoutType = backup_layout_type; +} + +void ImGui::AlignTextToFramePadding() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2); + window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y); +} + +// Horizontal/vertical separating line +void ImGui::SeparatorEx(ImGuiSeparatorFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + + ImGuiContext& g = *GImGui; + IM_ASSERT(ImIsPowerOfTwo(flags & (ImGuiSeparatorFlags_Horizontal | ImGuiSeparatorFlags_Vertical))); // Check that only 1 option is selected + + float thickness_draw = 1.0f; + float thickness_layout = 0.0f; + if (flags & ImGuiSeparatorFlags_Vertical) + { + // Vertical separator, for menu bars (use current line height). Not exposed because it is misleading and it doesn't have an effect on regular layout. + float y1 = window->DC.CursorPos.y; + float y2 = window->DC.CursorPos.y + window->DC.CurrLineSize.y; + const ImRect bb(ImVec2(window->DC.CursorPos.x, y1), ImVec2(window->DC.CursorPos.x + thickness_draw, y2)); + ItemSize(ImVec2(thickness_layout, 0.0f)); + if (!ItemAdd(bb, 0)) + return; + + // Draw + window->DrawList->AddLine(ImVec2(bb.Min.x, bb.Min.y), ImVec2(bb.Min.x, bb.Max.y), GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogText(" |"); + } + else if (flags & ImGuiSeparatorFlags_Horizontal) + { + // Horizontal Separator + float x1 = window->Pos.x; + float x2 = window->Pos.x + window->Size.x; + if (!window->DC.GroupStack.empty()) + x1 += window->DC.Indent.x; + + ImGuiColumns* columns = (flags & ImGuiSeparatorFlags_SpanAllColumns) ? window->DC.CurrentColumns : NULL; + if (columns) + PushColumnsBackground(); + + // We don't provide our width to the layout so that it doesn't get feed back into AutoFit + const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y + thickness_draw)); + ItemSize(ImVec2(0.0f, thickness_layout)); + const bool item_visible = ItemAdd(bb, 0); + if (item_visible) + { + // Draw + window->DrawList->AddLine(bb.Min, ImVec2(bb.Max.x, bb.Min.y), GetColorU32(ImGuiCol_Separator)); + if (g.LogEnabled) + LogRenderedText(&bb.Min, "--------------------------------"); + } + if (columns) + { + PopColumnsBackground(); + columns->LineMinY = window->DC.CursorPos.y; + } + } +} + +void ImGui::Separator() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + // Those flags should eventually be overridable by the user + ImGuiSeparatorFlags flags = (window->DC.LayoutType == ImGuiLayoutType_Horizontal) ? ImGuiSeparatorFlags_Vertical : ImGuiSeparatorFlags_Horizontal; + flags |= ImGuiSeparatorFlags_SpanAllColumns; + SeparatorEx(flags); +} + +// Using 'hover_visibility_delay' allows us to hide the highlight and mouse cursor for a short time, which can be convenient to reduce visual noise. +bool ImGui::SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const ImGuiItemFlags item_flags_backup = window->DC.ItemFlags; + window->DC.ItemFlags |= ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus; + bool item_add = ItemAdd(bb, id); + window->DC.ItemFlags = item_flags_backup; + if (!item_add) + return false; + + bool hovered, held; + ImRect bb_interact = bb; + bb_interact.Expand(axis == ImGuiAxis_Y ? ImVec2(0.0f, hover_extend) : ImVec2(hover_extend, 0.0f)); + ButtonBehavior(bb_interact, id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap); + if (g.ActiveId != id) + SetItemAllowOverlap(); + + if (held || (g.HoveredId == id && g.HoveredIdPreviousFrame == id && g.HoveredIdTimer >= hover_visibility_delay)) + SetMouseCursor(axis == ImGuiAxis_Y ? ImGuiMouseCursor_ResizeNS : ImGuiMouseCursor_ResizeEW); + + ImRect bb_render = bb; + if (held) + { + ImVec2 mouse_delta_2d = g.IO.MousePos - g.ActiveIdClickOffset - bb_interact.Min; + float mouse_delta = (axis == ImGuiAxis_Y) ? mouse_delta_2d.y : mouse_delta_2d.x; + + // Minimum pane size + float size_1_maximum_delta = ImMax(0.0f, *size1 - min_size1); + float size_2_maximum_delta = ImMax(0.0f, *size2 - min_size2); + if (mouse_delta < -size_1_maximum_delta) + mouse_delta = -size_1_maximum_delta; + if (mouse_delta > size_2_maximum_delta) + mouse_delta = size_2_maximum_delta; + + // Apply resize + if (mouse_delta != 0.0f) + { + if (mouse_delta < 0.0f) + IM_ASSERT(*size1 + mouse_delta >= min_size1); + if (mouse_delta > 0.0f) + IM_ASSERT(*size2 - mouse_delta >= min_size2); + *size1 += mouse_delta; + *size2 -= mouse_delta; + bb_render.Translate((axis == ImGuiAxis_X) ? ImVec2(mouse_delta, 0.0f) : ImVec2(0.0f, mouse_delta)); + MarkItemEdited(id); + } + } + + // Render + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, col, 0.0f); + + return held; +} + +static int IMGUI_CDECL ShrinkWidthItemComparer(const void* lhs, const void* rhs) +{ + const ImGuiShrinkWidthItem* a = (const ImGuiShrinkWidthItem*)lhs; + const ImGuiShrinkWidthItem* b = (const ImGuiShrinkWidthItem*)rhs; + if (int d = (int)(b->Width - a->Width)) + return d; + return (b->Index - a->Index); +} + +// Shrink excess width from a set of item, by removing width from the larger items first. +// Set items Width to -1.0f to disable shrinking this item. +void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess) +{ + if (count == 1) + { + if (items[0].Width >= 0.0f) + items[0].Width = ImMax(items[0].Width - width_excess, 1.0f); + return; + } + ImQsort(items, (size_t)count, sizeof(ImGuiShrinkWidthItem), ShrinkWidthItemComparer); + int count_same_width = 1; + while (width_excess > 0.0f && count_same_width < count) + { + while (count_same_width < count && items[0].Width <= items[count_same_width].Width) + count_same_width++; + float max_width_to_remove_per_item = (count_same_width < count && items[count_same_width].Width >= 0.0f) ? (items[0].Width - items[count_same_width].Width) : (items[0].Width - 1.0f); + if (max_width_to_remove_per_item <= 0.0f) + break; + float width_to_remove_per_item = ImMin(width_excess / count_same_width, max_width_to_remove_per_item); + for (int item_n = 0; item_n < count_same_width; item_n++) + items[item_n].Width -= width_to_remove_per_item; + width_excess -= width_to_remove_per_item * count_same_width; + } + + // Round width and redistribute remainder left-to-right (could make it an option of the function?) + // Ensure that e.g. the right-most tab of a shrunk tab-bar always reaches exactly at the same distance from the right-most edge of the tab bar separator. + width_excess = 0.0f; + for (int n = 0; n < count; n++) + { + float width_rounded = ImFloor(items[n].Width); + width_excess += items[n].Width - width_rounded; + items[n].Width = width_rounded; + } + if (width_excess > 0.0f) + for (int n = 0; n < count; n++) + if (items[n].Index < (int)(width_excess + 0.01f)) + items[n].Width += 1.0f; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ComboBox +//------------------------------------------------------------------------- +// - BeginCombo() +// - EndCombo() +// - Combo() +//------------------------------------------------------------------------- + +static float CalcMaxPopupHeightFromItemCount(int items_count) +{ + ImGuiContext& g = *GImGui; + if (items_count <= 0) + return FLT_MAX; + return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2); +} + +bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags) +{ + // Always consume the SetNextWindowSizeConstraint() call in our early return paths + ImGuiContext& g = *GImGui; + bool has_window_size_constraint = (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) != 0; + g.NextWindowData.Flags &= ~ImGuiNextWindowDataFlags_HasSizeConstraint; + + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + IM_ASSERT((flags & (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)) != (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)); // Can't use both flags together + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const float arrow_size = (flags & ImGuiComboFlags_NoArrowButton) ? 0.0f : GetFrameHeight(); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const float expected_w = CalcItemWidth(); + const float w = (flags & ImGuiComboFlags_NoPreview) ? arrow_size : expected_w; + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(frame_bb, id, &hovered, &held); + bool popup_open = IsPopupOpen(id, ImGuiPopupFlags_None); + + const ImU32 frame_col = GetColorU32(hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + const float value_x2 = ImMax(frame_bb.Min.x, frame_bb.Max.x - arrow_size); + RenderNavHighlight(frame_bb, id); + if (!(flags & ImGuiComboFlags_NoPreview)) + window->DrawList->AddRectFilled(frame_bb.Min, ImVec2(value_x2, frame_bb.Max.y), frame_col, style.FrameRounding, (flags & ImGuiComboFlags_NoArrowButton) ? ImDrawCornerFlags_All : ImDrawCornerFlags_Left); + if (!(flags & ImGuiComboFlags_NoArrowButton)) + { + ImU32 bg_col = GetColorU32((popup_open || hovered) ? ImGuiCol_ButtonHovered : ImGuiCol_Button); + ImU32 text_col = GetColorU32(ImGuiCol_Text); + window->DrawList->AddRectFilled(ImVec2(value_x2, frame_bb.Min.y), frame_bb.Max, bg_col, style.FrameRounding, (w <= arrow_size) ? ImDrawCornerFlags_All : ImDrawCornerFlags_Right); + if (value_x2 + arrow_size - style.FramePadding.x <= frame_bb.Max.x) + RenderArrow(window->DrawList, ImVec2(value_x2 + style.FramePadding.y, frame_bb.Min.y + style.FramePadding.y), text_col, ImGuiDir_Down, 1.0f); + } + RenderFrameBorder(frame_bb.Min, frame_bb.Max, style.FrameRounding); + if (preview_value != NULL && !(flags & ImGuiComboFlags_NoPreview)) + RenderTextClipped(frame_bb.Min + style.FramePadding, ImVec2(value_x2, frame_bb.Max.y), preview_value, NULL, NULL, ImVec2(0.0f, 0.0f)); + if (label_size.x > 0) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + if ((pressed || g.NavActivateId == id) && !popup_open) + { + if (window->DC.NavLayerCurrent == 0) + window->NavLastIds[0] = id; + OpenPopupEx(id, ImGuiPopupFlags_None); + popup_open = true; + } + + if (!popup_open) + return false; + + if (has_window_size_constraint) + { + g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSizeConstraint; + g.NextWindowData.SizeConstraintRect.Min.x = ImMax(g.NextWindowData.SizeConstraintRect.Min.x, w); + } + else + { + if ((flags & ImGuiComboFlags_HeightMask_) == 0) + flags |= ImGuiComboFlags_HeightRegular; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiComboFlags_HeightMask_)); // Only one + int popup_max_height_in_items = -1; + if (flags & ImGuiComboFlags_HeightRegular) popup_max_height_in_items = 8; + else if (flags & ImGuiComboFlags_HeightSmall) popup_max_height_in_items = 4; + else if (flags & ImGuiComboFlags_HeightLarge) popup_max_height_in_items = 20; + SetNextWindowSizeConstraints(ImVec2(w, 0.0f), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); + } + + char name[16]; + ImFormatString(name, IM_ARRAYSIZE(name), "##Combo_%02d", g.BeginPopupStack.Size); // Recycle windows based on depth + + // Peak into expected window size so we can position it + if (ImGuiWindow* popup_window = FindWindowByName(name)) + if (popup_window->WasActive) + { + ImVec2 size_expected = CalcWindowExpectedSize(popup_window); + if (flags & ImGuiComboFlags_PopupAlignLeft) + popup_window->AutoPosLastDirection = ImGuiDir_Left; + ImRect r_outer = GetWindowAllowedExtentRect(popup_window); + ImVec2 pos = FindBestWindowPosForPopupEx(frame_bb.GetBL(), size_expected, &popup_window->AutoPosLastDirection, r_outer, frame_bb, ImGuiPopupPositionPolicy_ComboBox); + SetNextWindowPos(pos); + } + + // We don't use BeginPopupEx() solely because we have a custom name string, which we could make an argument to BeginPopupEx() + ImGuiWindowFlags window_flags = ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoMove; + + // Horizontally align ourselves with the framed text + PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(style.FramePadding.x, style.WindowPadding.y)); + bool ret = Begin(name, NULL, window_flags); + PopStyleVar(); + if (!ret) + { + EndPopup(); + IM_ASSERT(0); // This should never happen as we tested for IsPopupOpen() above + return false; + } + return true; +} + +void ImGui::EndCombo() +{ + EndPopup(); +} + +// Getter for the old Combo() API: const char*[] +static bool Items_ArrayGetter(void* data, int idx, const char** out_text) +{ + const char* const* items = (const char* const*)data; + if (out_text) + *out_text = items[idx]; + return true; +} + +// Getter for the old Combo() API: "item1\0item2\0item3\0" +static bool Items_SingleStringGetter(void* data, int idx, const char** out_text) +{ + // FIXME-OPT: we could pre-compute the indices to fasten this. But only 1 active combo means the waste is limited. + const char* items_separated_by_zeros = (const char*)data; + int items_count = 0; + const char* p = items_separated_by_zeros; + while (*p) + { + if (idx == items_count) + break; + p += strlen(p) + 1; + items_count++; + } + if (!*p) + return false; + if (out_text) + *out_text = p; + return true; +} + +// Old API, prefer using BeginCombo() nowadays if you can. +bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int popup_max_height_in_items) +{ + ImGuiContext& g = *GImGui; + + // Call the getter to obtain the preview string which is a parameter to BeginCombo() + const char* preview_value = NULL; + if (*current_item >= 0 && *current_item < items_count) + items_getter(data, *current_item, &preview_value); + + // The old Combo() API exposed "popup_max_height_in_items". The new more general BeginCombo() API doesn't have/need it, but we emulate it here. + if (popup_max_height_in_items != -1 && !(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint)) + SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); + + if (!BeginCombo(label, preview_value, ImGuiComboFlags_None)) + return false; + + // Display items + // FIXME-OPT: Use clipper (but we need to disable it on the appearing frame to make sure our call to SetItemDefaultFocus() is processed) + bool value_changed = false; + for (int i = 0; i < items_count; i++) + { + PushID((void*)(intptr_t)i); + const bool item_selected = (i == *current_item); + const char* item_text; + if (!items_getter(data, i, &item_text)) + item_text = "*Unknown item*"; + if (Selectable(item_text, item_selected)) + { + value_changed = true; + *current_item = i; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + + EndCombo(); + return value_changed; +} + +// Combo box helper allowing to pass an array of strings. +bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items) +{ + const bool value_changed = Combo(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_in_items); + return value_changed; +} + +// Combo box helper allowing to pass all items in a single string literal holding multiple zero-terminated items "item1\0item2\0" +bool ImGui::Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int height_in_items) +{ + int items_count = 0; + const char* p = items_separated_by_zeros; // FIXME-OPT: Avoid computing this, or at least only when combo is open + while (*p) + { + p += strlen(p) + 1; + items_count++; + } + bool value_changed = Combo(label, current_item, Items_SingleStringGetter, (void*)items_separated_by_zeros, items_count, height_in_items); + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Data Type and Data Formatting Helpers [Internal] +//------------------------------------------------------------------------- +// - PatchFormatStringFloatToInt() +// - DataTypeGetInfo() +// - DataTypeFormatString() +// - DataTypeApplyOp() +// - DataTypeApplyOpFromText() +// - DataTypeClamp() +// - GetMinimumStepAtDecimalPrecision +// - RoundScalarWithFormat<>() +//------------------------------------------------------------------------- + +static const ImGuiDataTypeInfo GDataTypeInfo[] = +{ + { sizeof(char), "S8", "%d", "%d" }, // ImGuiDataType_S8 + { sizeof(unsigned char), "U8", "%u", "%u" }, + { sizeof(short), "S16", "%d", "%d" }, // ImGuiDataType_S16 + { sizeof(unsigned short), "U16", "%u", "%u" }, + { sizeof(int), "S32", "%d", "%d" }, // ImGuiDataType_S32 + { sizeof(unsigned int), "U32", "%u", "%u" }, +#ifdef _MSC_VER + { sizeof(ImS64), "S64", "%I64d","%I64d" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%I64u","%I64u" }, +#else + { sizeof(ImS64), "S64", "%lld", "%lld" }, // ImGuiDataType_S64 + { sizeof(ImU64), "U64", "%llu", "%llu" }, +#endif + { sizeof(float), "float", "%f", "%f" }, // ImGuiDataType_Float (float are promoted to double in va_arg) + { sizeof(double), "double","%f", "%lf" }, // ImGuiDataType_Double +}; +IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT); + +// FIXME-LEGACY: Prior to 1.61 our DragInt() function internally used floats and because of this the compile-time default value for format was "%.0f". +// Even though we changed the compile-time default, we expect users to have carried %f around, which would break the display of DragInt() calls. +// To honor backward compatibility we are rewriting the format string, unless IMGUI_DISABLE_OBSOLETE_FUNCTIONS is enabled. What could possibly go wrong?! +static const char* PatchFormatStringFloatToInt(const char* fmt) +{ + if (fmt[0] == '%' && fmt[1] == '.' && fmt[2] == '0' && fmt[3] == 'f' && fmt[4] == 0) // Fast legacy path for "%.0f" which is expected to be the most common case. + return "%d"; + const char* fmt_start = ImParseFormatFindStart(fmt); // Find % (if any, and ignore %%) + const char* fmt_end = ImParseFormatFindEnd(fmt_start); // Find end of format specifier, which itself is an exercise of confidence/recklessness (because snprintf is dependent on libc or user). + if (fmt_end > fmt_start && fmt_end[-1] == 'f') + { +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + if (fmt_start == fmt && fmt_end[0] == 0) + return "%d"; + ImGuiContext& g = *GImGui; + ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%.*s%%d%s", (int)(fmt_start - fmt), fmt, fmt_end); // Honor leading and trailing decorations, but lose alignment/precision. + return g.TempBuffer; +#else + IM_ASSERT(0 && "DragInt(): Invalid format string!"); // Old versions used a default parameter of "%.0f", please replace with e.g. "%d" +#endif + } + return fmt; +} + +const ImGuiDataTypeInfo* ImGui::DataTypeGetInfo(ImGuiDataType data_type) +{ + IM_ASSERT(data_type >= 0 && data_type < ImGuiDataType_COUNT); + return &GDataTypeInfo[data_type]; +} + +int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format) +{ + // Signedness doesn't matter when pushing integer arguments + if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32) + return ImFormatString(buf, buf_size, format, *(const ImU32*)p_data); + if (data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) + return ImFormatString(buf, buf_size, format, *(const ImU64*)p_data); + if (data_type == ImGuiDataType_Float) + return ImFormatString(buf, buf_size, format, *(const float*)p_data); + if (data_type == ImGuiDataType_Double) + return ImFormatString(buf, buf_size, format, *(const double*)p_data); + if (data_type == ImGuiDataType_S8) + return ImFormatString(buf, buf_size, format, *(const ImS8*)p_data); + if (data_type == ImGuiDataType_U8) + return ImFormatString(buf, buf_size, format, *(const ImU8*)p_data); + if (data_type == ImGuiDataType_S16) + return ImFormatString(buf, buf_size, format, *(const ImS16*)p_data); + if (data_type == ImGuiDataType_U16) + return ImFormatString(buf, buf_size, format, *(const ImU16*)p_data); + IM_ASSERT(0); + return 0; +} + +void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg1, const void* arg2) +{ + IM_ASSERT(op == '+' || op == '-'); + switch (data_type) + { + case ImGuiDataType_S8: + if (op == '+') { *(ImS8*)output = ImAddClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + if (op == '-') { *(ImS8*)output = ImSubClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } + return; + case ImGuiDataType_U8: + if (op == '+') { *(ImU8*)output = ImAddClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + if (op == '-') { *(ImU8*)output = ImSubClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } + return; + case ImGuiDataType_S16: + if (op == '+') { *(ImS16*)output = ImAddClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + if (op == '-') { *(ImS16*)output = ImSubClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } + return; + case ImGuiDataType_U16: + if (op == '+') { *(ImU16*)output = ImAddClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + if (op == '-') { *(ImU16*)output = ImSubClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } + return; + case ImGuiDataType_S32: + if (op == '+') { *(ImS32*)output = ImAddClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + if (op == '-') { *(ImS32*)output = ImSubClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } + return; + case ImGuiDataType_U32: + if (op == '+') { *(ImU32*)output = ImAddClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + if (op == '-') { *(ImU32*)output = ImSubClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } + return; + case ImGuiDataType_S64: + if (op == '+') { *(ImS64*)output = ImAddClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + if (op == '-') { *(ImS64*)output = ImSubClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } + return; + case ImGuiDataType_U64: + if (op == '+') { *(ImU64*)output = ImAddClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + if (op == '-') { *(ImU64*)output = ImSubClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } + return; + case ImGuiDataType_Float: + if (op == '+') { *(float*)output = *(const float*)arg1 + *(const float*)arg2; } + if (op == '-') { *(float*)output = *(const float*)arg1 - *(const float*)arg2; } + return; + case ImGuiDataType_Double: + if (op == '+') { *(double*)output = *(const double*)arg1 + *(const double*)arg2; } + if (op == '-') { *(double*)output = *(const double*)arg1 - *(const double*)arg2; } + return; + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); +} + +// User can input math operators (e.g. +100) to edit a numerical values. +// NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess.. +bool ImGui::DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format) +{ + while (ImCharIsBlankA(*buf)) + buf++; + + // We don't support '-' op because it would conflict with inputing negative value. + // Instead you can use +-100 to subtract from an existing value + char op = buf[0]; + if (op == '+' || op == '*' || op == '/') + { + buf++; + while (ImCharIsBlankA(*buf)) + buf++; + } + else + { + op = 0; + } + if (!buf[0]) + return false; + + // Copy the value in an opaque buffer so we can compare at the end of the function if it changed at all. + const ImGuiDataTypeInfo* type_info = DataTypeGetInfo(data_type); + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, type_info->Size); + + if (format == NULL) + format = type_info->ScanFmt; + + // FIXME-LEGACY: The aim is to remove those operators and write a proper expression evaluator at some point.. + int arg1i = 0; + if (data_type == ImGuiDataType_S32) + { + int* v = (int*)p_data; + int arg0i = *v; + float arg1f = 0.0f; + if (op && sscanf(initial_value_buf, format, &arg0i) < 1) + return false; + // Store operand in a float so we can use fractional value for multipliers (*1.1), but constant always parsed as integer so we can fit big integers (e.g. 2000000003) past float precision + if (op == '+') { if (sscanf(buf, "%d", &arg1i)) *v = (int)(arg0i + arg1i); } // Add (use "+-" to subtract) + else if (op == '*') { if (sscanf(buf, "%f", &arg1f)) *v = (int)(arg0i * arg1f); } // Multiply + else if (op == '/') { if (sscanf(buf, "%f", &arg1f) && arg1f != 0.0f) *v = (int)(arg0i / arg1f); } // Divide + else { if (sscanf(buf, format, &arg1i) == 1) *v = arg1i; } // Assign constant + } + else if (data_type == ImGuiDataType_Float) + { + // For floats we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in + format = "%f"; + float* v = (float*)p_data; + float arg0f = *v, arg1f = 0.0f; + if (op && sscanf(initial_value_buf, format, &arg0f) < 1) + return false; + if (sscanf(buf, format, &arg1f) < 1) + return false; + if (op == '+') { *v = arg0f + arg1f; } // Add (use "+-" to subtract) + else if (op == '*') { *v = arg0f * arg1f; } // Multiply + else if (op == '/') { if (arg1f != 0.0f) *v = arg0f / arg1f; } // Divide + else { *v = arg1f; } // Assign constant + } + else if (data_type == ImGuiDataType_Double) + { + format = "%lf"; // scanf differentiate float/double unlike printf which forces everything to double because of ellipsis + double* v = (double*)p_data; + double arg0f = *v, arg1f = 0.0; + if (op && sscanf(initial_value_buf, format, &arg0f) < 1) + return false; + if (sscanf(buf, format, &arg1f) < 1) + return false; + if (op == '+') { *v = arg0f + arg1f; } // Add (use "+-" to subtract) + else if (op == '*') { *v = arg0f * arg1f; } // Multiply + else if (op == '/') { if (arg1f != 0.0f) *v = arg0f / arg1f; } // Divide + else { *v = arg1f; } // Assign constant + } + else if (data_type == ImGuiDataType_U32 || data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) + { + // All other types assign constant + // We don't bother handling support for legacy operators since they are a little too crappy. Instead we will later implement a proper expression evaluator in the future. + sscanf(buf, format, p_data); + } + else + { + // Small types need a 32-bit buffer to receive the result from scanf() + int v32; + sscanf(buf, format, &v32); + if (data_type == ImGuiDataType_S8) + *(ImS8*)p_data = (ImS8)ImClamp(v32, (int)IM_S8_MIN, (int)IM_S8_MAX); + else if (data_type == ImGuiDataType_U8) + *(ImU8*)p_data = (ImU8)ImClamp(v32, (int)IM_U8_MIN, (int)IM_U8_MAX); + else if (data_type == ImGuiDataType_S16) + *(ImS16*)p_data = (ImS16)ImClamp(v32, (int)IM_S16_MIN, (int)IM_S16_MAX); + else if (data_type == ImGuiDataType_U16) + *(ImU16*)p_data = (ImU16)ImClamp(v32, (int)IM_U16_MIN, (int)IM_U16_MAX); + else + IM_ASSERT(0); + } + + return memcmp(&data_backup, p_data, type_info->Size) != 0; +} + +template +static int DataTypeCompareT(const T* lhs, const T* rhs) +{ + if (*lhs < *rhs) return -1; + if (*lhs > *rhs) return +1; + return 0; +} + +int ImGui::DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeCompareT((const ImS8* )arg_1, (const ImS8* )arg_2); + case ImGuiDataType_U8: return DataTypeCompareT((const ImU8* )arg_1, (const ImU8* )arg_2); + case ImGuiDataType_S16: return DataTypeCompareT((const ImS16* )arg_1, (const ImS16* )arg_2); + case ImGuiDataType_U16: return DataTypeCompareT((const ImU16* )arg_1, (const ImU16* )arg_2); + case ImGuiDataType_S32: return DataTypeCompareT((const ImS32* )arg_1, (const ImS32* )arg_2); + case ImGuiDataType_U32: return DataTypeCompareT((const ImU32* )arg_1, (const ImU32* )arg_2); + case ImGuiDataType_S64: return DataTypeCompareT((const ImS64* )arg_1, (const ImS64* )arg_2); + case ImGuiDataType_U64: return DataTypeCompareT((const ImU64* )arg_1, (const ImU64* )arg_2); + case ImGuiDataType_Float: return DataTypeCompareT((const float* )arg_1, (const float* )arg_2); + case ImGuiDataType_Double: return DataTypeCompareT((const double*)arg_1, (const double*)arg_2); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return 0; +} + +template +static bool DataTypeClampT(T* v, const T* v_min, const T* v_max) +{ + // Clamp, both sides are optional, return true if modified + if (v_min && *v < *v_min) { *v = *v_min; return true; } + if (v_max && *v > *v_max) { *v = *v_max; return true; } + return false; +} + +bool ImGui::DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max) +{ + switch (data_type) + { + case ImGuiDataType_S8: return DataTypeClampT((ImS8* )p_data, (const ImS8* )p_min, (const ImS8* )p_max); + case ImGuiDataType_U8: return DataTypeClampT((ImU8* )p_data, (const ImU8* )p_min, (const ImU8* )p_max); + case ImGuiDataType_S16: return DataTypeClampT((ImS16* )p_data, (const ImS16* )p_min, (const ImS16* )p_max); + case ImGuiDataType_U16: return DataTypeClampT((ImU16* )p_data, (const ImU16* )p_min, (const ImU16* )p_max); + case ImGuiDataType_S32: return DataTypeClampT((ImS32* )p_data, (const ImS32* )p_min, (const ImS32* )p_max); + case ImGuiDataType_U32: return DataTypeClampT((ImU32* )p_data, (const ImU32* )p_min, (const ImU32* )p_max); + case ImGuiDataType_S64: return DataTypeClampT((ImS64* )p_data, (const ImS64* )p_min, (const ImS64* )p_max); + case ImGuiDataType_U64: return DataTypeClampT((ImU64* )p_data, (const ImU64* )p_min, (const ImU64* )p_max); + case ImGuiDataType_Float: return DataTypeClampT((float* )p_data, (const float* )p_min, (const float* )p_max); + case ImGuiDataType_Double: return DataTypeClampT((double*)p_data, (const double*)p_min, (const double*)p_max); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +static float GetMinimumStepAtDecimalPrecision(int decimal_precision) +{ + static const float min_steps[10] = { 1.0f, 0.1f, 0.01f, 0.001f, 0.0001f, 0.00001f, 0.000001f, 0.0000001f, 0.00000001f, 0.000000001f }; + if (decimal_precision < 0) + return FLT_MIN; + return (decimal_precision < IM_ARRAYSIZE(min_steps)) ? min_steps[decimal_precision] : ImPow(10.0f, (float)-decimal_precision); +} + +template +static const char* ImAtoi(const char* src, TYPE* output) +{ + int negative = 0; + if (*src == '-') { negative = 1; src++; } + if (*src == '+') { src++; } + TYPE v = 0; + while (*src >= '0' && *src <= '9') + v = (v * 10) + (*src++ - '0'); + *output = negative ? -v : v; + return src; +} + +template +TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v) +{ + const char* fmt_start = ImParseFormatFindStart(format); + if (fmt_start[0] != '%' || fmt_start[1] == '%') // Don't apply if the value is not visible in the format string + return v; + char v_str[64]; + ImFormatString(v_str, IM_ARRAYSIZE(v_str), fmt_start, v); + const char* p = v_str; + while (*p == ' ') + p++; + if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) + v = (TYPE)ImAtof(p); + else + ImAtoi(p, (SIGNEDTYPE*)&v); + return v; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. +//------------------------------------------------------------------------- +// - DragBehaviorT<>() [Internal] +// - DragBehavior() [Internal] +// - DragScalar() +// - DragScalarN() +// - DragFloat() +// - DragFloat2() +// - DragFloat3() +// - DragFloat4() +// - DragFloatRange2() +// - DragInt() +// - DragInt2() +// - DragInt3() +// - DragInt4() +// - DragIntRange2() +//------------------------------------------------------------------------- + +// This is called by DragBehavior() when the widget is active (held by mouse or being manipulated with Nav controls) +template +bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiContext& g = *GImGui; + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_decimal = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + const bool is_clamped = (v_min < v_max); + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) && is_decimal; + + // Default tweak speed + if (v_speed == 0.0f && is_clamped && (v_max - v_min < FLT_MAX)) + v_speed = (float)((v_max - v_min) * g.DragSpeedDefaultRatio); + + // Inputs accumulates into g.DragCurrentAccum, which is flushed into the current value as soon as it makes a difference with our precision settings + float adjust_delta = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse && IsMousePosValid() && g.IO.MouseDragMaxDistanceSqr[0] > 1.0f * 1.0f) + { + adjust_delta = g.IO.MouseDelta[axis]; + if (g.IO.KeyAlt) + adjust_delta *= 1.0f / 100.0f; + if (g.IO.KeyShift) + adjust_delta *= 10.0f; + } + else if (g.ActiveIdSource == ImGuiInputSource_Nav) + { + int decimal_precision = is_decimal ? ImParseFormatPrecision(format, 3) : 0; + adjust_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard | ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_RepeatFast, 1.0f / 10.0f, 10.0f)[axis]; + v_speed = ImMax(v_speed, GetMinimumStepAtDecimalPrecision(decimal_precision)); + } + adjust_delta *= v_speed; + + // For vertical drag we currently assume that Up=higher value (like we do with vertical sliders). This may become a parameter. + if (axis == ImGuiAxis_Y) + adjust_delta = -adjust_delta; + + // For logarithmic use our range is effectively 0..1 so scale the delta into that range + if (is_logarithmic && (v_max - v_min < FLT_MAX) && ((v_max - v_min) > 0.000001f)) // Epsilon to avoid /0 + adjust_delta /= (float)(v_max - v_min); + + // Clear current value on activation + // Avoid altering values and clamping when we are _already_ past the limits and heading in the same direction, so e.g. if range is 0..255, current value is 300 and we are pushing to the right side, keep the 300. + bool is_just_activated = g.ActiveIdIsJustActivated; + bool is_already_past_limits_and_pushing_outward = is_clamped && ((*v >= v_max && adjust_delta > 0.0f) || (*v <= v_min && adjust_delta < 0.0f)); + if (is_just_activated || is_already_past_limits_and_pushing_outward) + { + g.DragCurrentAccum = 0.0f; + g.DragCurrentAccumDirty = false; + } + else if (adjust_delta != 0.0f) + { + g.DragCurrentAccum += adjust_delta; + g.DragCurrentAccumDirty = true; + } + + if (!g.DragCurrentAccumDirty) + return false; + + TYPE v_cur = *v; + FLOATTYPE v_old_ref_for_accum_remainder = (FLOATTYPE)0.0f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + const float zero_deadzone_halfsize = 0.0f; // Drag widgets have no deadzone (as it doesn't make sense) + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_decimal ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + + // Convert to parametric space, apply delta, convert back + float v_old_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + float v_new_parametric = v_old_parametric + g.DragCurrentAccum; + v_cur = ScaleValueFromRatioT(data_type, v_new_parametric, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + v_old_ref_for_accum_remainder = v_old_parametric; + } + else + { + v_cur += (SIGNEDTYPE)g.DragCurrentAccum; + } + + // Round to user desired precision based on format string + if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_cur = RoundScalarWithFormatT(format, data_type, v_cur); + + // Preserve remainder after rounding has been applied. This also allow slow tweaking of values. + g.DragCurrentAccumDirty = false; + if (is_logarithmic) + { + // Convert to parametric space, apply delta, convert back + float v_new_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + g.DragCurrentAccum -= (float)(v_new_parametric - v_old_ref_for_accum_remainder); + } + else + { + g.DragCurrentAccum -= (float)((SIGNEDTYPE)v_cur - (SIGNEDTYPE)*v); + } + + // Lose zero sign for float/double + if (v_cur == (TYPE)-0) + v_cur = (TYPE)0; + + // Clamp values (+ handle overflow/wrap-around for integer types) + if (*v != v_cur && is_clamped) + { + if (v_cur < v_min || (v_cur > *v && adjust_delta < 0.0f && !is_decimal)) + v_cur = v_min; + if (v_cur > v_max || (v_cur < *v && adjust_delta > 0.0f && !is_decimal)) + v_cur = v_max; + } + + // Apply result + if (*v == v_cur) + return false; + *v = v_cur; + return true; +} + +bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flags! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + ImGuiContext& g = *GImGui; + if (g.ActiveId == id) + { + if (g.ActiveIdSource == ImGuiInputSource_Mouse && !g.IO.MouseDown[0]) + ClearActiveID(); + else if (g.ActiveIdSource == ImGuiInputSource_Nav && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + ClearActiveID(); + } + if (g.ActiveId != id) + return false; + if ((g.CurrentWindow->DC.ItemFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + return false; + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS8*) p_min : IM_S8_MIN, p_max ? *(const ImS8*)p_max : IM_S8_MAX, format, flags); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU8*) p_min : IM_U8_MIN, p_max ? *(const ImU8*)p_max : IM_U8_MAX, format, flags); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS16*)p_min : IM_S16_MIN, p_max ? *(const ImS16*)p_max : IM_S16_MAX, format, flags); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU16*)p_min : IM_U16_MIN, p_max ? *(const ImU16*)p_max : IM_U16_MAX, format, flags); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: return DragBehaviorT(data_type, (ImS32*)p_v, v_speed, p_min ? *(const ImS32* )p_min : IM_S32_MIN, p_max ? *(const ImS32* )p_max : IM_S32_MAX, format, flags); + case ImGuiDataType_U32: return DragBehaviorT(data_type, (ImU32*)p_v, v_speed, p_min ? *(const ImU32* )p_min : IM_U32_MIN, p_max ? *(const ImU32* )p_max : IM_U32_MAX, format, flags); + case ImGuiDataType_S64: return DragBehaviorT(data_type, (ImS64*)p_v, v_speed, p_min ? *(const ImS64* )p_min : IM_S64_MIN, p_max ? *(const ImS64* )p_max : IM_S64_MAX, format, flags); + case ImGuiDataType_U64: return DragBehaviorT(data_type, (ImU64*)p_v, v_speed, p_min ? *(const ImU64* )p_min : IM_U64_MIN, p_max ? *(const ImU64* )p_max : IM_U64_MAX, format, flags); + case ImGuiDataType_Float: return DragBehaviorT(data_type, (float*)p_v, v_speed, p_min ? *(const float* )p_min : -FLT_MAX, p_max ? *(const float* )p_max : FLT_MAX, format, flags); + case ImGuiDataType_Double: return DragBehaviorT(data_type, (double*)p_v, v_speed, p_min ? *(const double*)p_min : -DBL_MAX, p_max ? *(const double*)p_max : DBL_MAX, format, flags); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a Drag widget, p_min and p_max are optional. +// Read code of e.g. DragFloat(), DragInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) + format = PatchFormatStringFloatToInt(format); + + // Tabbing or CTRL-clicking on Drag turns it into an input box + const bool hovered = ItemHoverable(frame_bb, id); + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + const bool focus_requested = temp_input_allowed && FocusableItemRegister(window, id); + const bool clicked = (hovered && g.IO.MouseClicked[0]); + const bool double_clicked = (hovered && g.IO.MouseDoubleClicked[0]); + if (focus_requested || clicked || double_clicked || g.NavActivateId == id || g.NavInputId == id) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + if (temp_input_allowed && (focus_requested || (clicked && g.IO.KeyCtrl) || double_clicked || g.NavInputId == id)) + { + temp_input_is_active = true; + FocusableItemUnregister(window); + } + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0 && (p_min == NULL || p_max == NULL || DataTypeCompare(data_type, p_min, p_max) < 0); + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : g.HoveredId == id ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, style.FrameRounding); + + // Drag behavior + const bool value_changed = DragBehavior(id, data_type, p_data, v_speed, p_min, p_max, format, flags); + if (value_changed) + MarkItemEdited(id); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); + return value_changed; +} + +bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= DragScalar("", data_type, p_data, v_speed, p_min, p_max, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + float min_min = (v_min >= v_max) ? -FLT_MAX : v_min; + float min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragScalar("##min", ImGuiDataType_Float, v_current_min, v_speed, &min_min, &min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + float max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + float max_max = (v_min >= v_max) ? FLT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragScalar("##max", ImGuiDataType_Float, v_current_max, v_speed, &max_min, &max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + return value_changed; +} + +// NB: v_speed is float to allow adjusting the drag speed with more precision +bool ImGui::DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalar(label, ImGuiDataType_S32, v, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 2, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 3, v_speed, &v_min, &v_max, format, flags); +} + +bool ImGui::DragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return DragScalarN(label, ImGuiDataType_S32, v, 4, v_speed, &v_min, &v_max, format, flags); +} + +// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. +bool ImGui::DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + PushID(label); + BeginGroup(); + PushMultiItemsWidths(2, CalcItemWidth()); + + int min_min = (v_min >= v_max) ? INT_MIN : v_min; + int min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); + ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); + bool value_changed = DragInt("##min", v_current_min, v_speed, min_min, min_max, format, min_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + int max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); + int max_max = (v_min >= v_max) ? INT_MAX : v_max; + ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); + value_changed |= DragInt("##max", v_current_max, v_speed, max_min, max_max, format_max ? format_max : format, max_flags); + PopItemWidth(); + SameLine(0, g.Style.ItemInnerSpacing.x); + + TextEx(label, FindRenderedTextEnd(label)); + EndGroup(); + PopID(); + + return value_changed; +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +// Obsolete versions with power parameter. See https://github.com/ocornut/imgui/issues/3361 for details. +bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power) +{ + ImGuiSliderFlags drag_flags = ImGuiSliderFlags_None; + if (power != 1.0f) + { + IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); + IM_ASSERT(p_min != NULL && p_max != NULL); // When using a power curve the drag needs to have known bounds + drag_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths + } + return DragScalar(label, data_type, p_data, v_speed, p_min, p_max, format, drag_flags); +} + +bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, float power) +{ + ImGuiSliderFlags drag_flags = ImGuiSliderFlags_None; + if (power != 1.0f) + { + IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); + IM_ASSERT(p_min != NULL && p_max != NULL); // When using a power curve the drag needs to have known bounds + drag_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths + } + return DragScalarN(label, data_type, p_data, components, v_speed, p_min, p_max, format, drag_flags); +} + +#endif // IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +//------------------------------------------------------------------------- +// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. +//------------------------------------------------------------------------- +// - ScaleRatioFromValueT<> [Internal] +// - ScaleValueFromRatioT<> [Internal] +// - SliderBehaviorT<>() [Internal] +// - SliderBehavior() [Internal] +// - SliderScalar() +// - SliderScalarN() +// - SliderFloat() +// - SliderFloat2() +// - SliderFloat3() +// - SliderFloat4() +// - SliderAngle() +// - SliderInt() +// - SliderInt2() +// - SliderInt3() +// - SliderInt4() +// - VSliderScalar() +// - VSliderFloat() +// - VSliderInt() +//------------------------------------------------------------------------- + +// Convert a value v in the output space of a slider into a parametric position on the slider itself (the logical opposite of ScaleValueFromRatioT) +template +float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + if (v_min == v_max) + return 0.0f; + IM_UNUSED(data_type); + + const TYPE v_clamped = (v_min < v_max) ? ImClamp(v, v_min, v_max) : ImClamp(v, v_max, v_min); + if (is_logarithmic) + { + bool flipped = v_max < v_min; + + if (flipped) // Handle the case where the range is backwards + ImSwap(v_min, v_max); + + // Fudge min/max to avoid getting close to log(0) + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + // Awkward special cases - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_min == 0.0f) && (v_max < 0.0f)) + v_min_fudged = -logarithmic_zero_epsilon; + else if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float result; + + if (v_clamped <= v_min_fudged) + result = 0.0f; // Workaround for values that are in-range but below our fudge + else if (v_clamped >= v_max_fudged) + result = 1.0f; // Workaround for values that are in-range but above our fudge + else if ((v_min * v_max) < 0.0f) // Range crosses zero, so split into two portions + { + float zero_point_center = (-(float)v_min) / ((float)v_max - (float)v_min); // The zero point in parametric space. There's an argument we should take the logarithmic nature into account when calculating this, but for now this should do (and the most common case of a symmetrical range works fine) + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (v == 0.0f) + result = zero_point_center; // Special case for exactly zero + else if (v < 0.0f) + result = (1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(-v_min_fudged / logarithmic_zero_epsilon))) * zero_point_snap_L; + else + result = zero_point_snap_R + ((float)(ImLog((FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(v_max_fudged / logarithmic_zero_epsilon)) * (1.0f - zero_point_snap_R)); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = 1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / -v_max_fudged) / ImLog(-v_min_fudged / -v_max_fudged)); + else + result = (float)(ImLog((FLOATTYPE)v_clamped / v_min_fudged) / ImLog(v_max_fudged / v_min_fudged)); + + return flipped ? (1.0f - result) : result; + } + + // Linear slider + return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); +} + +// Convert a parametric position on a slider into a value v in the output space (the logical opposite of ScaleRatioFromValueT) +template +TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) +{ + if (v_min == v_max) + return (TYPE)0.0f; + const bool is_decimal = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + + TYPE result; + if (is_logarithmic) + { + // We special-case the extents because otherwise our fudging can lead to "mathematically correct" but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value + if (t <= 0.0f) + result = v_min; + else if (t >= 1.0f) + result = v_max; + else + { + bool flipped = v_max < v_min; // Check if range is "backwards" + + // Fudge min/max to avoid getting silly results close to zero + FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; + FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; + + if (flipped) + ImSwap(v_min_fudged, v_max_fudged); + + // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) + if ((v_max == 0.0f) && (v_min < 0.0f)) + v_max_fudged = -logarithmic_zero_epsilon; + + float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range + + if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts + { + float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space + float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; + float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; + if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) + result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) + else if (t_with_flip < zero_point_center) + result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); + else + result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); + } + else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider + result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); + else + result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); + } + } + else + { + // Linear slider + if (is_decimal) + { + result = ImLerp(v_min, v_max, t); + } + else + { + // - For integer values we want the clicking position to match the grab box so we round above + // This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property.. + // - Not doing a *1.0 multiply at the end of a range as it tends to be lossy. While absolute aiming at a large s64/u64 + // range is going to be imprecise anyway, with this check we at least make the edge values matches expected limits. + if (t < 1.0) + { + FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; + result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); + } + else + { + result = v_max; + } + } + } + + return result; +} + +// FIXME: Move more of the code into SliderBehavior() +template +bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; + const bool is_decimal = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); + const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) && is_decimal; + + const float grab_padding = 2.0f; + const float slider_sz = (bb.Max[axis] - bb.Min[axis]) - grab_padding * 2.0f; + float grab_sz = style.GrabMinSize; + SIGNEDTYPE v_range = (v_min < v_max ? v_max - v_min : v_min - v_max); + if (!is_decimal && v_range >= 0) // v_range < 0 may happen on integer overflows + grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit + grab_sz = ImMin(grab_sz, slider_sz); + const float slider_usable_sz = slider_sz - grab_sz; + const float slider_usable_pos_min = bb.Min[axis] + grab_padding + grab_sz * 0.5f; + const float slider_usable_pos_max = bb.Max[axis] - grab_padding - grab_sz * 0.5f; + + float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true + float zero_deadzone_halfsize = 0.0f; // Only valid when is_logarithmic is true + if (is_logarithmic) + { + // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. + const int decimal_precision = is_decimal ? ImParseFormatPrecision(format, 3) : 1; + logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); + zero_deadzone_halfsize = (style.LogSliderDeadzone * 0.5f) / ImMax(slider_usable_sz, 1.0f); + } + + // Process interacting with the slider + bool value_changed = false; + if (g.ActiveId == id) + { + bool set_new_value = false; + float clicked_t = 0.0f; + if (g.ActiveIdSource == ImGuiInputSource_Mouse) + { + if (!g.IO.MouseDown[0]) + { + ClearActiveID(); + } + else + { + const float mouse_abs_pos = g.IO.MousePos[axis]; + clicked_t = (slider_usable_sz > 0.0f) ? ImClamp((mouse_abs_pos - slider_usable_pos_min) / slider_usable_sz, 0.0f, 1.0f) : 0.0f; + if (axis == ImGuiAxis_Y) + clicked_t = 1.0f - clicked_t; + set_new_value = true; + } + } + else if (g.ActiveIdSource == ImGuiInputSource_Nav) + { + if (g.ActiveIdIsJustActivated) + { + g.SliderCurrentAccum = 0.0f; // Reset any stored nav delta upon activation + g.SliderCurrentAccumDirty = false; + } + + const ImVec2 input_delta2 = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard | ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_RepeatFast, 0.0f, 0.0f); + float input_delta = (axis == ImGuiAxis_X) ? input_delta2.x : -input_delta2.y; + if (input_delta != 0.0f) + { + const int decimal_precision = is_decimal ? ImParseFormatPrecision(format, 3) : 0; + if (decimal_precision > 0) + { + input_delta /= 100.0f; // Gamepad/keyboard tweak speeds in % of slider bounds + if (IsNavInputDown(ImGuiNavInput_TweakSlow)) + input_delta /= 10.0f; + } + else + { + if ((v_range >= -100.0f && v_range <= 100.0f) || IsNavInputDown(ImGuiNavInput_TweakSlow)) + input_delta = ((input_delta < 0.0f) ? -1.0f : +1.0f) / (float)v_range; // Gamepad/keyboard tweak speeds in integer steps + else + input_delta /= 100.0f; + } + if (IsNavInputDown(ImGuiNavInput_TweakFast)) + input_delta *= 10.0f; + + g.SliderCurrentAccum += input_delta; + g.SliderCurrentAccumDirty = true; + } + + float delta = g.SliderCurrentAccum; + if (g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) + { + ClearActiveID(); + } + else if (g.SliderCurrentAccumDirty) + { + clicked_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if ((clicked_t >= 1.0f && delta > 0.0f) || (clicked_t <= 0.0f && delta < 0.0f)) // This is to avoid applying the saturation when already past the limits + { + set_new_value = false; + g.SliderCurrentAccum = 0.0f; // If pushing up against the limits, don't continue to accumulate + } + else + { + set_new_value = true; + float old_clicked_t = clicked_t; + clicked_t = ImSaturate(clicked_t + delta); + + // Calculate what our "new" clicked_t will be, and thus how far we actually moved the slider, and subtract this from the accumulator + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + float new_clicked_t = ScaleRatioFromValueT(data_type, v_new, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + if (delta > 0) + g.SliderCurrentAccum -= ImMin(new_clicked_t - old_clicked_t, delta); + else + g.SliderCurrentAccum -= ImMax(new_clicked_t - old_clicked_t, delta); + } + + g.SliderCurrentAccumDirty = false; + } + } + + if (set_new_value) + { + TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + + // Round to user desired precision based on format string + if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) + v_new = RoundScalarWithFormatT(format, data_type, v_new); + + // Apply result + if (*v != v_new) + { + *v = v_new; + value_changed = true; + } + } + } + + if (slider_sz < 1.0f) + { + *out_grab_bb = ImRect(bb.Min, bb.Min); + } + else + { + // Output grab position so it can be displayed by the caller + float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); + if (axis == ImGuiAxis_Y) + grab_t = 1.0f - grab_t; + const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); + if (axis == ImGuiAxis_X) + *out_grab_bb = ImRect(grab_pos - grab_sz * 0.5f, bb.Min.y + grab_padding, grab_pos + grab_sz * 0.5f, bb.Max.y - grab_padding); + else + *out_grab_bb = ImRect(bb.Min.x + grab_padding, grab_pos - grab_sz * 0.5f, bb.Max.x - grab_padding, grab_pos + grab_sz * 0.5f); + } + + return value_changed; +} + +// For 32-bit and larger types, slider bounds are limited to half the natural type range. +// So e.g. an integer Slider between INT_MAX-10 and INT_MAX will fail, but an integer Slider between INT_MAX/2-10 and INT_MAX/2 will be ok. +// It would be possible to lift that limitation with some work but it doesn't seem to be worth it for sliders. +bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) +{ + // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. + IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flag! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); + + ImGuiContext& g = *GImGui; + if ((g.CurrentWindow->DC.ItemFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) + return false; + + switch (data_type) + { + case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS8*)p_min, *(const ImS8*)p_max, format, flags, out_grab_bb); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } + case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU8*)p_min, *(const ImU8*)p_max, format, flags, out_grab_bb); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } + case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS16*)p_min, *(const ImS16*)p_max, format, flags, out_grab_bb); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } + case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU16*)p_min, *(const ImU16*)p_max, format, flags, out_grab_bb); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } + case ImGuiDataType_S32: + IM_ASSERT(*(const ImS32*)p_min >= IM_S32_MIN / 2 && *(const ImS32*)p_max <= IM_S32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS32*)p_v, *(const ImS32*)p_min, *(const ImS32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U32: + IM_ASSERT(*(const ImU32*)p_max <= IM_U32_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU32*)p_v, *(const ImU32*)p_min, *(const ImU32*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_S64: + IM_ASSERT(*(const ImS64*)p_min >= IM_S64_MIN / 2 && *(const ImS64*)p_max <= IM_S64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImS64*)p_v, *(const ImS64*)p_min, *(const ImS64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_U64: + IM_ASSERT(*(const ImU64*)p_max <= IM_U64_MAX / 2); + return SliderBehaviorT(bb, id, data_type, (ImU64*)p_v, *(const ImU64*)p_min, *(const ImU64*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Float: + IM_ASSERT(*(const float*)p_min >= -FLT_MAX / 2.0f && *(const float*)p_max <= FLT_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (float*)p_v, *(const float*)p_min, *(const float*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_Double: + IM_ASSERT(*(const double*)p_min >= -DBL_MAX / 2.0f && *(const double*)p_max <= DBL_MAX / 2.0f); + return SliderBehaviorT(bb, id, data_type, (double*)p_v, *(const double*)p_min, *(const double*)p_max, format, flags, out_grab_bb); + case ImGuiDataType_COUNT: break; + } + IM_ASSERT(0); + return false; +} + +// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a slider, they are all required. +// Read code of e.g. SliderFloat(), SliderInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + const float w = CalcItemWidth(); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) + format = PatchFormatStringFloatToInt(format); + + // Tabbing or CTRL-clicking on Slider turns it into an input box + const bool hovered = ItemHoverable(frame_bb, id); + const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; + bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); + if (!temp_input_is_active) + { + const bool focus_requested = temp_input_allowed && FocusableItemRegister(window, id); + const bool clicked = (hovered && g.IO.MouseClicked[0]); + if (focus_requested || clicked || g.NavActivateId == id || g.NavInputId == id) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + if (temp_input_allowed && (focus_requested || (clicked && g.IO.KeyCtrl) || g.NavInputId == id)) + { + temp_input_is_active = true; + FocusableItemUnregister(window); + } + } + } + + if (temp_input_is_active) + { + // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set + const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0; + return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : g.HoveredId == id ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.x > grab_bb.Min.x) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); + return value_changed; +} + +// Add multiple sliders on 1 line for compact edition of multiple components +bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= SliderScalar("", data_type, v, v_min, v_max, format, flags); + PopID(); + PopItemWidth(); + v = (void*)((char*)v + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags) +{ + if (format == NULL) + format = "%.0f deg"; + float v_deg = (*v_rad) * 360.0f / (2 * IM_PI); + bool value_changed = SliderFloat(label, &v_deg, v_degrees_min, v_degrees_max, format, flags); + *v_rad = v_deg * (2 * IM_PI) / 360.0f; + return value_changed; +} + +bool ImGui::SliderInt(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalar(label, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 2, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 3, &v_min, &v_max, format, flags); +} + +bool ImGui::SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return SliderScalarN(label, ImGuiDataType_S32, v, 4, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderScalar(const char* label, const ImVec2& menu_size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + menu_size); + const ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + + ItemSize(bb, style.FramePadding.y); + if (!ItemAdd(frame_bb, id)) + return false; + + // Default format string when passing NULL + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) + format = PatchFormatStringFloatToInt(format); + + const bool hovered = ItemHoverable(frame_bb, id); + if ((hovered && g.IO.MouseClicked[0]) || g.NavActivateId == id || g.NavInputId == id) + { + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + } + + // Draw frame + const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : g.HoveredId == id ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); + + // Slider behavior + ImRect grab_bb; + const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags | ImGuiSliderFlags_Vertical, &grab_bb); + if (value_changed) + MarkItemEdited(id); + + // Render grab + if (grab_bb.Max.y > grab_bb.Min.y) + window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); + + // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. + // For the vertical slider we allow centered text to overlap the frame padding + char value_buf[64]; + const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.0f)); + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + return value_changed; +} + +bool ImGui::VSliderFloat(const char* label, const ImVec2& menu_size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, menu_size, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); +} + +bool ImGui::VSliderInt(const char* label, const ImVec2& menu_size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) +{ + return VSliderScalar(label, menu_size, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +// Obsolete versions with power parameter. See https://github.com/ocornut/imgui/issues/3361 for details. +bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power) +{ + ImGuiSliderFlags slider_flags = ImGuiSliderFlags_None; + if (power != 1.0f) + { + IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); + slider_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths + } + return SliderScalar(label, data_type, p_data, p_min, p_max, format, slider_flags); +} + +bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, float power) +{ + ImGuiSliderFlags slider_flags = ImGuiSliderFlags_None; + if (power != 1.0f) + { + IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); + slider_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths + } + return SliderScalarN(label, data_type, v, components, v_min, v_max, format, slider_flags); +} + +#endif // IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. +//------------------------------------------------------------------------- +// - ImParseFormatFindStart() [Internal] +// - ImParseFormatFindEnd() [Internal] +// - ImParseFormatTrimDecorations() [Internal] +// - ImParseFormatPrecision() [Internal] +// - TempInputTextScalar() [Internal] +// - InputScalar() +// - InputScalarN() +// - InputFloat() +// - InputFloat2() +// - InputFloat3() +// - InputFloat4() +// - InputInt() +// - InputInt2() +// - InputInt3() +// - InputInt4() +// - InputDouble() +//------------------------------------------------------------------------- + +// We don't use strchr() because our strings are usually very short and often start with '%' +const char* ImParseFormatFindStart(const char* fmt) +{ + while (char c = fmt[0]) + { + if (c == '%' && fmt[1] != '%') + return fmt; + else if (c == '%') + fmt++; + fmt++; + } + return fmt; +} + +const char* ImParseFormatFindEnd(const char* fmt) +{ + // Printf/scanf types modifiers: I/L/h/j/l/t/w/z. Other uppercase letters qualify as types aka end of the format. + if (fmt[0] != '%') + return fmt; + const unsigned int ignored_uppercase_mask = (1 << ('I'-'A')) | (1 << ('L'-'A')); + const unsigned int ignored_lowercase_mask = (1 << ('h'-'a')) | (1 << ('j'-'a')) | (1 << ('l'-'a')) | (1 << ('t'-'a')) | (1 << ('w'-'a')) | (1 << ('z'-'a')); + for (char c; (c = *fmt) != 0; fmt++) + { + if (c >= 'A' && c <= 'Z' && ((1 << (c - 'A')) & ignored_uppercase_mask) == 0) + return fmt + 1; + if (c >= 'a' && c <= 'z' && ((1 << (c - 'a')) & ignored_lowercase_mask) == 0) + return fmt + 1; + } + return fmt; +} + +// Extract the format out of a format string with leading or trailing decorations +// fmt = "blah blah" -> return fmt +// fmt = "%.3f" -> return fmt +// fmt = "hello %.3f" -> return fmt + 6 +// fmt = "%.3f hello" -> return buf written with "%.3f" +const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_size) +{ + const char* fmt_start = ImParseFormatFindStart(fmt); + if (fmt_start[0] != '%') + return fmt; + const char* fmt_end = ImParseFormatFindEnd(fmt_start); + if (fmt_end[0] == 0) // If we only have leading decoration, we don't need to copy the data. + return fmt_start; + ImStrncpy(buf, fmt_start, ImMin((size_t)(fmt_end - fmt_start) + 1, buf_size)); + return buf; +} + +// Parse display precision back from the display format string +// FIXME: This is still used by some navigation code path to infer a minimum tweak step, but we should aim to rework widgets so it isn't needed. +int ImParseFormatPrecision(const char* fmt, int default_precision) +{ + fmt = ImParseFormatFindStart(fmt); + if (fmt[0] != '%') + return default_precision; + fmt++; + while (*fmt >= '0' && *fmt <= '9') + fmt++; + int precision = INT_MAX; + if (*fmt == '.') + { + fmt = ImAtoi(fmt + 1, &precision); + if (precision < 0 || precision > 99) + precision = default_precision; + } + if (*fmt == 'e' || *fmt == 'E') // Maximum precision with scientific notation + precision = -1; + if ((*fmt == 'g' || *fmt == 'G') && precision == INT_MAX) + precision = -1; + return (precision == INT_MAX) ? default_precision : precision; +} + +// Create text input in place of another active widget (e.g. used when doing a CTRL+Click on drag/slider widgets) +// FIXME: Facilitate using this in variety of other situations. +bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags) +{ + // On the first frame, g.TempInputTextId == 0, then on subsequent frames it becomes == id. + // We clear ActiveID on the first frame to allow the InputText() taking it back. + ImGuiContext& g = *GImGui; + const bool init = (g.TempInputId != id); + if (init) + ClearActiveID(); + + g.CurrentWindow->DC.CursorPos = bb.Min; + bool value_changed = InputTextEx(label, NULL, buf, buf_size, bb.GetSize(), flags); + if (init) + { + // First frame we started displaying the InputText widget, we expect it to take the active id. + IM_ASSERT(g.ActiveId == id); + g.TempInputId = g.ActiveId; + } + return value_changed; +} + +// Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set! +// This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility. +// However this may not be ideal for all uses, as some user code may break on out of bound values. +bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max) +{ + ImGuiContext& g = *GImGui; + + char fmt_buf[32]; + char data_buf[32]; + format = ImParseFormatTrimDecorations(format, fmt_buf, IM_ARRAYSIZE(fmt_buf)); + DataTypeFormatString(data_buf, IM_ARRAYSIZE(data_buf), data_type, p_data, format); + ImStrTrimBlanks(data_buf); + + ImGuiInputTextFlags flags = ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; + flags |= ((data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) ? ImGuiInputTextFlags_CharsScientific : ImGuiInputTextFlags_CharsDecimal); + bool value_changed = false; + if (TempInputText(bb, id, label, data_buf, IM_ARRAYSIZE(data_buf), flags)) + { + // Backup old value + size_t data_type_size = DataTypeGetInfo(data_type)->Size; + ImGuiDataTypeTempStorage data_backup; + memcpy(&data_backup, p_data, data_type_size); + + // Apply new value (or operations) then clamp + DataTypeApplyOpFromText(data_buf, g.InputTextState.InitialTextA.Data, data_type, p_data, NULL); + if (p_clamp_min || p_clamp_max) + { + if (DataTypeCompare(data_type, p_clamp_min, p_clamp_max) > 0) + ImSwap(p_clamp_min, p_clamp_max); + DataTypeClamp(data_type, p_data, p_clamp_min, p_clamp_max); + } + + // Only mark as edited if new value is different + value_changed = memcmp(&data_backup, p_data, data_type_size) != 0; + if (value_changed) + MarkItemEdited(id); + } + return value_changed; +} + +// Note: p_data, p_step, p_step_fast are _pointers_ to a memory address holding the data. For an Input widget, p_step and p_step_fast are optional. +// Read code of e.g. InputFloat(), InputInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. +bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + + if (format == NULL) + format = DataTypeGetInfo(data_type)->PrintFmt; + + char buf[64]; + DataTypeFormatString(buf, IM_ARRAYSIZE(buf), data_type, p_data, format); + + bool value_changed = false; + if ((flags & (ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) + flags |= ImGuiInputTextFlags_CharsDecimal; + flags |= ImGuiInputTextFlags_AutoSelectAll; + flags |= ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. + + if (p_step != NULL) + { + const float button_size = GetFrameHeight(); + + BeginGroup(); // The only purpose of the group here is to allow the caller to query item data e.g. IsItemActive() + PushID(label); + SetNextItemWidth(ImMax(1.0f, CalcItemWidth() - (button_size + style.ItemInnerSpacing.x) * 2)); + if (InputText("", buf, IM_ARRAYSIZE(buf), flags)) // PushId(label) + "" gives us the expected ID from outside point of view + value_changed = DataTypeApplyOpFromText(buf, g.InputTextState.InitialTextA.Data, data_type, p_data, format); + + // Step buttons + const ImVec2 backup_frame_padding = style.FramePadding; + style.FramePadding.x = style.FramePadding.y; + ImGuiButtonFlags button_flags = ImGuiButtonFlags_Repeat | ImGuiButtonFlags_DontClosePopups; + if (flags & ImGuiInputTextFlags_ReadOnly) + button_flags |= ImGuiButtonFlags_Disabled; + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("-", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '-', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + SameLine(0, style.ItemInnerSpacing.x); + if (ButtonEx("+", ImVec2(button_size, button_size), button_flags)) + { + DataTypeApplyOp(data_type, '+', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); + value_changed = true; + } + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + style.FramePadding = backup_frame_padding; + + PopID(); + EndGroup(); + } + else + { + if (InputText(label, buf, IM_ARRAYSIZE(buf), flags)) + value_changed = DataTypeApplyOpFromText(buf, g.InputTextState.InitialTextA.Data, data_type, p_data, format); + } + if (value_changed) + MarkItemEdited(window->DC.LastItemId); + + return value_changed; +} + +bool ImGui::InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + bool value_changed = false; + BeginGroup(); + PushID(label); + PushMultiItemsWidths(components, CalcItemWidth()); + size_t type_size = GDataTypeInfo[data_type].Size; + for (int i = 0; i < components; i++) + { + PushID(i); + if (i > 0) + SameLine(0, g.Style.ItemInnerSpacing.x); + value_changed |= InputScalar("", data_type, p_data, p_step, p_step_fast, format, flags); + PopID(); + PopItemWidth(); + p_data = (void*)((char*)p_data + type_size); + } + PopID(); + + const char* label_end = FindRenderedTextEnd(label); + if (label != label_end) + { + SameLine(0.0f, g.Style.ItemInnerSpacing.x); + TextEx(label, label_end); + } + + EndGroup(); + return value_changed; +} + +bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Float, (void*)v, (void*)(step > 0.0f ? &step : NULL), (void*)(step_fast > 0.0f ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputFloat2(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 2, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat3(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 3, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat4(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_Float, v, 4, NULL, NULL, format, flags); +} + +// Prefer using "const char* format" directly, which is more flexible and consistent with other API. +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, int decimal_precision, ImGuiInputTextFlags flags) +{ + char format[16] = "%f"; + if (decimal_precision >= 0) + ImFormatString(format, IM_ARRAYSIZE(format), "%%.%df", decimal_precision); + return InputFloat(label, v, step, step_fast, format, flags); +} + +bool ImGui::InputFloat2(const char* label, float v[2], int decimal_precision, ImGuiInputTextFlags flags) +{ + char format[16] = "%f"; + if (decimal_precision >= 0) + ImFormatString(format, IM_ARRAYSIZE(format), "%%.%df", decimal_precision); + return InputScalarN(label, ImGuiDataType_Float, v, 2, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat3(const char* label, float v[3], int decimal_precision, ImGuiInputTextFlags flags) +{ + char format[16] = "%f"; + if (decimal_precision >= 0) + ImFormatString(format, IM_ARRAYSIZE(format), "%%.%df", decimal_precision); + return InputScalarN(label, ImGuiDataType_Float, v, 3, NULL, NULL, format, flags); +} + +bool ImGui::InputFloat4(const char* label, float v[4], int decimal_precision, ImGuiInputTextFlags flags) +{ + char format[16] = "%f"; + if (decimal_precision >= 0) + ImFormatString(format, IM_ARRAYSIZE(format), "%%.%df", decimal_precision); + return InputScalarN(label, ImGuiDataType_Float, v, 4, NULL, NULL, format, flags); +} +#endif // IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +bool ImGui::InputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags) +{ + // Hexadecimal input provided as a convenience but the flag name is awkward. Typically you'd use InputText() to parse your own data, if you want to handle prefixes. + const char* format = (flags & ImGuiInputTextFlags_CharsHexadecimal) ? "%08X" : "%d"; + return InputScalar(label, ImGuiDataType_S32, (void*)v, (void*)(step > 0 ? &step : NULL), (void*)(step_fast > 0 ? &step_fast : NULL), format, flags); +} + +bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 2, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 3, NULL, NULL, "%d", flags); +} + +bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags) +{ + return InputScalarN(label, ImGuiDataType_S32, v, 4, NULL, NULL, "%d", flags); +} + +bool ImGui::InputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags) +{ + flags |= ImGuiInputTextFlags_CharsScientific; + return InputScalar(label, ImGuiDataType_Double, (void*)v, (void*)(step > 0.0 ? &step : NULL), (void*)(step_fast > 0.0 ? &step_fast : NULL), format, flags); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: InputText, InputTextMultiline, InputTextWithHint +//------------------------------------------------------------------------- +// - InputText() +// - InputTextWithHint() +// - InputTextMultiline() +// - InputTextEx() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() + return InputTextEx(label, NULL, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& menu_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + return InputTextEx(label, NULL, buf, (int)buf_size, menu_size, flags | ImGuiInputTextFlags_Multiline, callback, user_data); +} + +bool ImGui::InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() + return InputTextEx(label, hint, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); +} + +static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end) +{ + int line_count = 0; + const char* s = text_begin; + while (char c = *s++) // We are only matching for \n so we can ignore UTF-8 decoding + if (c == '\n') + line_count++; + s--; + if (s[0] != '\n' && s[0] != '\r') + line_count++; + *out_text_end = s; + return line_count; +} + +static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining, ImVec2* out_offset, bool stop_on_new_line) +{ + ImGuiContext& g = *GImGui; + ImFont* font = g.Font; + const float line_height = g.FontSize; + const float scale = line_height / font->FontSize; + + ImVec2 text_size = ImVec2(0, 0); + float line_width = 0.0f; + + const ImWchar* s = text_begin; + while (s < text_end) + { + unsigned int c = (unsigned int)(*s++); + if (c == '\n') + { + text_size.x = ImMax(text_size.x, line_width); + text_size.y += line_height; + line_width = 0.0f; + if (stop_on_new_line) + break; + continue; + } + if (c == '\r') + continue; + + const float char_width = font->GetCharAdvance((ImWchar)c) * scale; + line_width += char_width; + } + + if (text_size.x < line_width) + text_size.x = line_width; + + if (out_offset) + *out_offset = ImVec2(line_width, text_size.y + line_height); // offset allow for the possibility of sitting after a trailing \n + + if (line_width > 0 || text_size.y == 0.0f) // whereas size.y will ignore the trailing \n + text_size.y += line_height; + + if (remaining) + *remaining = s; + + return text_size; +} + +// Wrapper for stb_textedit.h to edit text (our wrapper is for: statically sized buffer, single-line, wchar characters. InputText converts between UTF-8 and wchar) +namespace ImStb +{ + +static int STB_TEXTEDIT_STRINGLEN(const STB_TEXTEDIT_STRING* obj) { return obj->CurLenW; } +static ImWchar STB_TEXTEDIT_GETCHAR(const STB_TEXTEDIT_STRING* obj, int idx) { return obj->TextW[idx]; } +static float STB_TEXTEDIT_GETWIDTH(STB_TEXTEDIT_STRING* obj, int line_start_idx, int char_idx) { ImWchar c = obj->TextW[line_start_idx + char_idx]; if (c == '\n') return STB_TEXTEDIT_GETWIDTH_NEWLINE; ImGuiContext& g = *GImGui; return g.Font->GetCharAdvance(c) * (g.FontSize / g.Font->FontSize); } +static int STB_TEXTEDIT_KEYTOTEXT(int key) { return key >= 0x200000 ? 0 : key; } +static ImWchar STB_TEXTEDIT_NEWLINE = '\n'; +static void STB_TEXTEDIT_LAYOUTROW(StbTexteditRow* r, STB_TEXTEDIT_STRING* obj, int line_start_idx) +{ + const ImWchar* text = obj->TextW.Data; + const ImWchar* text_remaining = NULL; + const ImVec2 menu_size = InputTextCalcTextSizeW(text + line_start_idx, text + obj->CurLenW, &text_remaining, NULL, true); + r->x0 = 0.0f; + r->x1 = menu_size.x; + r->baseline_y_delta = menu_size.y; + r->ymin = 0.0f; + r->ymax = menu_size.y; + r->num_chars = (int)(text_remaining - (text + line_start_idx)); +} + +static bool is_separator(unsigned int c) { return ImCharIsBlankW(c) || c==',' || c==';' || c=='(' || c==')' || c=='{' || c=='}' || c=='[' || c==']' || c=='|'; } +static int is_word_boundary_from_right(STB_TEXTEDIT_STRING* obj, int idx) { return idx > 0 ? (is_separator(obj->TextW[idx - 1]) && !is_separator(obj->TextW[idx]) ) : 1; } +static int STB_TEXTEDIT_MOVEWORDLEFT_IMPL(STB_TEXTEDIT_STRING* obj, int idx) { idx--; while (idx >= 0 && !is_word_boundary_from_right(obj, idx)) idx--; return idx < 0 ? 0 : idx; } +#ifdef __APPLE__ // FIXME: Move setting to IO structure +static int is_word_boundary_from_left(STB_TEXTEDIT_STRING* obj, int idx) { return idx > 0 ? (!is_separator(obj->TextW[idx - 1]) && is_separator(obj->TextW[idx]) ) : 1; } +static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(STB_TEXTEDIT_STRING* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_left(obj, idx)) idx++; return idx > len ? len : idx; } +#else +static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(STB_TEXTEDIT_STRING* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_right(obj, idx)) idx++; return idx > len ? len : idx; } +#endif +#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h +#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_IMPL + +static void STB_TEXTEDIT_DELETECHARS(STB_TEXTEDIT_STRING* obj, int pos, int n) +{ + ImWchar* dst = obj->TextW.Data + pos; + + // We maintain our buffer length in both UTF-8 and wchar formats + obj->Edited = true; + obj->CurLenA -= ImTextCountUtf8BytesFromStr(dst, dst + n); + obj->CurLenW -= n; + + // Offset remaining text (FIXME-OPT: Use memmove) + const ImWchar* src = obj->TextW.Data + pos + n; + while (ImWchar c = *src++) + *dst++ = c; + *dst = '\0'; +} + +static bool STB_TEXTEDIT_INSERTCHARS(STB_TEXTEDIT_STRING* obj, int pos, const ImWchar* new_text, int new_text_len) +{ + const bool is_resizable = (obj->UserFlags & ImGuiInputTextFlags_CallbackResize) != 0; + const int text_len = obj->CurLenW; + IM_ASSERT(pos <= text_len); + + const int new_text_len_utf8 = ImTextCountUtf8BytesFromStr(new_text, new_text + new_text_len); + if (!is_resizable && (new_text_len_utf8 + obj->CurLenA + 1 > obj->BufCapacityA)) + return false; + + // Grow internal buffer if needed + if (new_text_len + text_len + 1 > obj->TextW.Size) + { + if (!is_resizable) + return false; + IM_ASSERT(text_len < obj->TextW.Size); + obj->TextW.resize(text_len + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1); + } + + ImWchar* text = obj->TextW.Data; + if (pos != text_len) + memmove(text + pos + new_text_len, text + pos, (size_t)(text_len - pos) * sizeof(ImWchar)); + memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar)); + + obj->Edited = true; + obj->CurLenW += new_text_len; + obj->CurLenA += new_text_len_utf8; + obj->TextW[obj->CurLenW] = '\0'; + + return true; +} + +// We don't use an enum so we can build even with conflicting symbols (if another user of stb_textedit.h leak their STB_TEXTEDIT_K_* symbols) +#define STB_TEXTEDIT_K_LEFT 0x200000 // keyboard input to move cursor left +#define STB_TEXTEDIT_K_RIGHT 0x200001 // keyboard input to move cursor right +#define STB_TEXTEDIT_K_UP 0x200002 // keyboard input to move cursor up +#define STB_TEXTEDIT_K_DOWN 0x200003 // keyboard input to move cursor down +#define STB_TEXTEDIT_K_LINESTART 0x200004 // keyboard input to move cursor to start of line +#define STB_TEXTEDIT_K_LINEEND 0x200005 // keyboard input to move cursor to end of line +#define STB_TEXTEDIT_K_TEXTSTART 0x200006 // keyboard input to move cursor to start of text +#define STB_TEXTEDIT_K_TEXTEND 0x200007 // keyboard input to move cursor to end of text +#define STB_TEXTEDIT_K_DELETE 0x200008 // keyboard input to delete selection or character under cursor +#define STB_TEXTEDIT_K_BACKSPACE 0x200009 // keyboard input to delete selection or character left of cursor +#define STB_TEXTEDIT_K_UNDO 0x20000A // keyboard input to perform undo +#define STB_TEXTEDIT_K_REDO 0x20000B // keyboard input to perform redo +#define STB_TEXTEDIT_K_WORDLEFT 0x20000C // keyboard input to move cursor left one word +#define STB_TEXTEDIT_K_WORDRIGHT 0x20000D // keyboard input to move cursor right one word +#define STB_TEXTEDIT_K_PGUP 0x20000E // keyboard input to move cursor up a page +#define STB_TEXTEDIT_K_PGDOWN 0x20000F // keyboard input to move cursor down a page +#define STB_TEXTEDIT_K_SHIFT 0x400000 + +#define STB_TEXTEDIT_IMPLEMENTATION +#include "imstb_textedit.h" + +// stb_textedit internally allows for a single undo record to do addition and deletion, but somehow, calling +// the stb_textedit_paste() function creates two separate records, so we perform it manually. (FIXME: Report to nothings/stb?) +static void stb_textedit_replace(STB_TEXTEDIT_STRING* str, STB_TexteditState* state, const STB_TEXTEDIT_CHARTYPE* text, int text_len) +{ + stb_text_makeundo_replace(str, state, 0, str->CurLenW, text_len); + ImStb::STB_TEXTEDIT_DELETECHARS(str, 0, str->CurLenW); + if (text_len <= 0) + return; + if (ImStb::STB_TEXTEDIT_INSERTCHARS(str, 0, text, text_len)) + { + state->cursor = text_len; + state->has_preferred_x = 0; + return; + } + IM_ASSERT(0); // Failed to insert character, normally shouldn't happen because of how we currently use stb_textedit_replace() +} + +} // namespace ImStb + +void ImGuiInputTextState::OnKeyPressed(int key) +{ + stb_textedit_key(this, &Stb, key); + CursorFollow = true; + CursorAnimReset(); +} + +ImGuiInputTextCallbackData::ImGuiInputTextCallbackData() +{ + memset(this, 0, sizeof(*this)); +} + +// Public API to manipulate UTF-8 text +// We expose UTF-8 to the user (unlike the STB_TEXTEDIT_* functions which are manipulating wchar) +// FIXME: The existence of this rarely exercised code path is a bit of a nuisance. +void ImGuiInputTextCallbackData::DeleteChars(int pos, int bytes_count) +{ + IM_ASSERT(pos + bytes_count <= BufTextLen); + char* dst = Buf + pos; + const char* src = Buf + pos + bytes_count; + while (char c = *src++) + *dst++ = c; + *dst = '\0'; + + if (CursorPos >= pos + bytes_count) + CursorPos -= bytes_count; + else if (CursorPos >= pos) + CursorPos = pos; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen -= bytes_count; +} + +void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_end) +{ + const bool is_resizable = (Flags & ImGuiInputTextFlags_CallbackResize) != 0; + const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text); + if (new_text_len + BufTextLen >= BufSize) + { + if (!is_resizable) + return; + + // Contrary to STB_TEXTEDIT_INSERTCHARS() this is working in the UTF8 buffer, hence the mildly similar code (until we remove the U16 buffer altogether!) + ImGuiContext& g = *GImGui; + ImGuiInputTextState* edit_state = &g.InputTextState; + IM_ASSERT(edit_state->ID != 0 && g.ActiveId == edit_state->ID); + IM_ASSERT(Buf == edit_state->TextA.Data); + int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; + edit_state->TextA.reserve(new_buf_size + 1); + Buf = edit_state->TextA.Data; + BufSize = edit_state->BufCapacityA = new_buf_size; + } + + if (BufTextLen != pos) + memmove(Buf + pos + new_text_len, Buf + pos, (size_t)(BufTextLen - pos)); + memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char)); + Buf[BufTextLen + new_text_len] = '\0'; + + if (CursorPos >= pos) + CursorPos += new_text_len; + SelectionStart = SelectionEnd = CursorPos; + BufDirty = true; + BufTextLen += new_text_len; +} + +// Return false to discard a character. +static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) +{ + unsigned int c = *p_char; + + // Filter non-printable (NB: isprint is unreliable! see #2467) + if (c < 0x20) + { + bool pass = false; + pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); + pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput)); + if (!pass) + return false; + } + + // We ignore Ascii representation of delete (emitted from Backspace on OSX, see #2578, #2817) + if (c == 127) + return false; + + // Filter private Unicode range. GLFW on OSX seems to send private characters for special keys like arrow keys (FIXME) + if (c >= 0xE000 && c <= 0xF8FF) + return false; + + // Filter Unicode ranges we are not handling in this build. + if (c > IM_UNICODE_CODEPOINT_MAX) + return false; + + // Generic named filters + if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase | ImGuiInputTextFlags_CharsNoBlank | ImGuiInputTextFlags_CharsScientific)) + { + // The libc allows overriding locale, with e.g. 'setlocale(LC_NUMERIC, "de_DE.UTF-8");' which affect the output/input of printf/scanf. + // The standard mandate that programs starts in the "C" locale where the decimal point is '.'. + // We don't really intend to provide widespread support for it, but out of empathy for people stuck with using odd API, we support the bare minimum aka overriding the decimal point. + // Change the default decimal_point with: + // ImGui::GetCurrentContext()->PlatformLocaleDecimalPoint = *localeconv()->decimal_point; + ImGuiContext& g = *GImGui; + const unsigned c_decimal_point = (unsigned int)g.PlatformLocaleDecimalPoint; + + // Allow 0-9 . - + * / + if (flags & ImGuiInputTextFlags_CharsDecimal) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/')) + return false; + + // Allow 0-9 . - + * / e E + if (flags & ImGuiInputTextFlags_CharsScientific) + if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/') && (c != 'e') && (c != 'E')) + return false; + + // Allow 0-9 a-F A-F + if (flags & ImGuiInputTextFlags_CharsHexadecimal) + if (!(c >= '0' && c <= '9') && !(c >= 'a' && c <= 'f') && !(c >= 'A' && c <= 'F')) + return false; + + // Turn a-z into A-Z + if (flags & ImGuiInputTextFlags_CharsUppercase) + if (c >= 'a' && c <= 'z') + *p_char = (c += (unsigned int)('A' - 'a')); + + if (flags & ImGuiInputTextFlags_CharsNoBlank) + if (ImCharIsBlankW(c)) + return false; + } + + // Custom callback filter + if (flags & ImGuiInputTextFlags_CallbackCharFilter) + { + ImGuiInputTextCallbackData callback_data; + memset(&callback_data, 0, sizeof(ImGuiInputTextCallbackData)); + callback_data.EventFlag = ImGuiInputTextFlags_CallbackCharFilter; + callback_data.EventChar = (ImWchar)c; + callback_data.Flags = flags; + callback_data.UserData = user_data; + if (callback(&callback_data) != 0) + return false; + *p_char = callback_data.EventChar; + if (!callback_data.EventChar) + return false; + } + + return true; +} + +// Edit a string of text +// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". +// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match +// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator. +// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect. +// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h +// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are +// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188) +bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* callback_user_data) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + IM_ASSERT(buf != NULL && buf_size >= 0); + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackHistory) && (flags & ImGuiInputTextFlags_Multiline))); // Can't use both together (they both use up/down keys) + IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackCompletion) && (flags & ImGuiInputTextFlags_AllowTabInput))); // Can't use both together (they both use tab key) + + ImGuiContext& g = *GImGui; + ImGuiIO& io = g.IO; + const ImGuiStyle& style = g.Style; + + const bool RENDER_SELECTION_WHEN_INACTIVE = false; + const bool is_multiline = (flags & ImGuiInputTextFlags_Multiline) != 0; + const bool is_readonly = (flags & ImGuiInputTextFlags_ReadOnly) != 0; + const bool is_password = (flags & ImGuiInputTextFlags_Password) != 0; + const bool is_undoable = (flags & ImGuiInputTextFlags_NoUndoRedo) == 0; + const bool is_resizable = (flags & ImGuiInputTextFlags_CallbackResize) != 0; + if (is_resizable) + IM_ASSERT(callback != NULL); // Must provide a callback if you set the ImGuiInputTextFlags_CallbackResize flag! + + if (is_multiline) // Open group before calling GetID() because groups tracks id created within their scope, + BeginGroup(); + const ImGuiID id = window->GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + const ImVec2 frame_size = CalcItemSize(size_arg, CalcItemWidth(), (is_multiline ? g.FontSize * 8.0f : label_size.y) + style.FramePadding.y * 2.0f); // Arbitrary default of 8 lines high for multi-line + const ImVec2 total_size = ImVec2(frame_size.x + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), frame_size.y); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect total_bb(frame_bb.Min, frame_bb.Min + total_size); + + ImGuiWindow* draw_window = window; + ImVec2 inner_size = frame_size; + if (is_multiline) + { + if (!ItemAdd(total_bb, id, &frame_bb)) + { + ItemSize(total_bb, style.FramePadding.y); + EndGroup(); + return false; + } + + // We reproduce the contents of BeginChildFrame() in order to provide 'label' so our window internal data are easier to read/debug. + PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); + PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); + PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); + PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding); + bool child_visible = BeginChildEx(label, id, frame_bb.GetSize(), true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysUseWindowPadding); + PopStyleVar(3); + PopStyleColor(); + if (!child_visible) + { + EndChild(); + EndGroup(); + return false; + } + draw_window = g.CurrentWindow; // Child window + draw_window->DC.NavLayerActiveMaskNext |= (1 << draw_window->DC.NavLayerCurrent); // This is to ensure that EndChild() will display a navigation highlight so we can "enter" into it. + inner_size.x -= draw_window->ScrollbarSizes.x; + } + else + { + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, id, &frame_bb)) + return false; + } + const bool hovered = ItemHoverable(frame_bb, id); + if (hovered) + g.MouseCursor = ImGuiMouseCursor_TextInput; + + // We are only allowed to access the state if we are already the active widget. + ImGuiInputTextState* state = GetInputTextState(id); + + const bool focus_requested = FocusableItemRegister(window, id); + const bool focus_requested_by_code = focus_requested && (g.FocusRequestCurrWindow == window && g.FocusRequestCurrCounterRegular == window->DC.FocusCounterRegular); + const bool focus_requested_by_tab = focus_requested && !focus_requested_by_code; + + const bool user_clicked = hovered && io.MouseClicked[0]; + const bool user_nav_input_start = (g.ActiveId != id) && ((g.NavInputId == id) || (g.NavActivateId == id && g.NavInputSource == ImGuiInputSource_NavKeyboard)); + const bool user_scroll_finish = is_multiline && state != NULL && g.ActiveId == 0 && g.ActiveIdPreviousFrame == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + const bool user_scroll_active = is_multiline && state != NULL && g.ActiveId == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); + + bool clear_active_id = false; + bool select_all = (g.ActiveId != id) && ((flags & ImGuiInputTextFlags_AutoSelectAll) != 0 || user_nav_input_start) && (!is_multiline); + + float scroll_y = is_multiline ? draw_window->Scroll.y : FLT_MAX; + + const bool init_make_active = (focus_requested || user_clicked || user_scroll_finish || user_nav_input_start); + const bool init_state = (init_make_active || user_scroll_active); + if (init_state && g.ActiveId != id) + { + // Access state even if we don't own it yet. + state = &g.InputTextState; + state->CursorAnimReset(); + + // Take a copy of the initial buffer value (both in original UTF-8 format and converted to wchar) + // From the moment we focused we are ignoring the content of 'buf' (unless we are in read-only mode) + const int buf_len = (int)strlen(buf); + state->InitialTextA.resize(buf_len + 1); // UTF-8. we use +1 to make sure that .Data is always pointing to at least an empty string. + memcpy(state->InitialTextA.Data, buf, buf_len + 1); + + // Start edition + const char* buf_end = NULL; + state->TextW.resize(buf_size + 1); // wchar count <= UTF-8 count. we use +1 to make sure that .Data is always pointing to at least an empty string. + state->TextA.resize(0); + state->TextAIsValid = false; // TextA is not valid yet (we will display buf until then) + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, buf_size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); // We can't get the result from ImStrncpy() above because it is not UTF-8 aware. Here we'll cut off malformed UTF-8. + + // Preserve cursor position and undo/redo stack if we come back to same widget + // FIXME: For non-readonly widgets we might be able to require that TextAIsValid && TextA == buf ? (untested) and discard undo stack if user buffer has changed. + const bool recycle_state = (state->ID == id); + if (recycle_state) + { + // Recycle existing cursor/selection/undo stack but clamp position + // Note a single mouse click will override the cursor/position immediately by calling stb_textedit_click handler. + state->CursorClamp(); + } + else + { + state->ID = id; + state->ScrollX = 0.0f; + stb_textedit_initialize_state(&state->Stb, !is_multiline); + if (!is_multiline && focus_requested_by_code) + select_all = true; + } + if (flags & ImGuiInputTextFlags_AlwaysInsertMode) + state->Stb.insert_mode = 1; + if (!is_multiline && (focus_requested_by_tab || (user_clicked && io.KeyCtrl))) + select_all = true; + } + + if (g.ActiveId != id && init_make_active) + { + IM_ASSERT(state && state->ID == id); + SetActiveID(id, window); + SetFocusID(id, window); + FocusWindow(window); + + // Declare our inputs + IM_ASSERT(ImGuiNavInput_COUNT < 32); + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); + if (is_multiline || (flags & ImGuiInputTextFlags_CallbackHistory)) + g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); + g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); + g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_Home) | ((ImU64)1 << ImGuiKey_End); + if (is_multiline) + g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_PageUp) | ((ImU64)1 << ImGuiKey_PageDown); + if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. + g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_Tab); + } + + // We have an edge case if ActiveId was set through another widget (e.g. widget being swapped), clear id immediately (don't wait until the end of the function) + if (g.ActiveId == id && state == NULL) + ClearActiveID(); + + // Release focus when we click outside + if (g.ActiveId == id && io.MouseClicked[0] && !init_state && !init_make_active) //-V560 + clear_active_id = true; + + // Lock the decision of whether we are going to take the path displaying the cursor or selection + const bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); + bool render_selection = state && state->HasSelection() && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + bool value_changed = false; + bool enter_pressed = false; + + // When read-only we always use the live data passed to the function + // FIXME-OPT: Because our selection/cursor code currently needs the wide text we need to convert it when active, which is not ideal :( + if (is_readonly && state != NULL && (render_cursor || render_selection)) + { + const char* buf_end = NULL; + state->TextW.resize(buf_size + 1); + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, buf, NULL, &buf_end); + state->CurLenA = (int)(buf_end - buf); + state->CursorClamp(); + render_selection &= state->HasSelection(); + } + + // Select the buffer to render. + const bool buf_display_from_state = (render_cursor || render_selection || g.ActiveId == id) && !is_readonly && state && state->TextAIsValid; + const bool is_displaying_hint = (hint != NULL && (buf_display_from_state ? state->TextA.Data : buf)[0] == 0); + + // Password pushes a temporary font with only a fallback glyph + if (is_password && !is_displaying_hint) + { + const ImFontGlyph* glyph = g.Font->FindGlyph('*'); + ImFont* password_font = &g.InputTextPasswordFont; + password_font->FontSize = g.Font->FontSize; + password_font->Scale = g.Font->Scale; + password_font->Ascent = g.Font->Ascent; + password_font->Descent = g.Font->Descent; + password_font->ContainerAtlas = g.Font->ContainerAtlas; + password_font->FallbackGlyph = glyph; + password_font->FallbackAdvanceX = glyph->AdvanceX; + IM_ASSERT(password_font->Glyphs.empty() && password_font->IndexAdvanceX.empty() && password_font->IndexLookup.empty()); + PushFont(password_font); + } + + // Process mouse inputs and character inputs + int backup_current_text_length = 0; + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + backup_current_text_length = state->CurLenA; + state->Edited = false; + state->BufCapacityA = buf_size; + state->UserFlags = flags; + state->UserCallback = callback; + state->UserCallbackData = callback_user_data; + + // Although we are active we don't prevent mouse from hovering other elements unless we are interacting right now with the widget. + // Down the line we should have a cleaner library-wide concept of Selected vs Active. + g.ActiveIdAllowOverlap = !io.MouseDown[0]; + g.WantTextInputNextFrame = 1; + + // Edit in progress + const float mouse_x = (io.MousePos.x - frame_bb.Min.x - style.FramePadding.x) + state->ScrollX; + const float mouse_y = (is_multiline ? (io.MousePos.y - draw_window->DC.CursorPos.y - style.FramePadding.y) : (g.FontSize * 0.5f)); + + const bool is_osx = io.ConfigMacOSXBehaviors; + if (select_all || (hovered && !is_osx && io.MouseDoubleClicked[0])) + { + state->SelectAll(); + state->SelectedAllMouseLock = true; + } + else if (hovered && is_osx && io.MouseDoubleClicked[0]) + { + // Double-click select a word only, OS X style (by simulating keystrokes) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT); + state->OnKeyPressed(STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT); + } + else if (io.MouseClicked[0] && !state->SelectedAllMouseLock) + { + if (hovered) + { + stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + } + } + else if (io.MouseDown[0] && !state->SelectedAllMouseLock && (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f)) + { + stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); + state->CursorAnimReset(); + state->CursorFollow = true; + } + if (state->SelectedAllMouseLock && !io.MouseDown[0]) + state->SelectedAllMouseLock = false; + + // It is ill-defined whether the back-end needs to send a \t character when pressing the TAB keys. + // Win32 and GLFW naturally do it but not SDL. + const bool ignore_char_inputs = (io.KeyCtrl && !io.KeyAlt) || (is_osx && io.KeySuper); + if ((flags & ImGuiInputTextFlags_AllowTabInput) && IsKeyPressedMap(ImGuiKey_Tab) && !ignore_char_inputs && !io.KeyShift && !is_readonly) + if (!io.InputQueueCharacters.contains('\t')) + { + unsigned int c = '\t'; // Insert TAB + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data)) + state->OnKeyPressed((int)c); + } + + // Process regular text input (before we check for Return because using some IME will effectively send a Return?) + // We ignore CTRL inputs, but need to allow ALT+CTRL as some keyboards (e.g. German) use AltGR (which _is_ Alt+Ctrl) to input certain characters. + if (io.InputQueueCharacters.Size > 0) + { + if (!ignore_char_inputs && !is_readonly && !user_nav_input_start) + for (int n = 0; n < io.InputQueueCharacters.Size; n++) + { + // Insert character if they pass filtering + unsigned int c = (unsigned int)io.InputQueueCharacters[n]; + if (c == '\t' && io.KeyShift) + continue; + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data)) + state->OnKeyPressed((int)c); + } + + // Consume characters + io.InputQueueCharacters.resize(0); + } + } + + // Process other shortcuts/key-presses + bool cancel_edit = false; + if (g.ActiveId == id && !g.ActiveIdIsJustActivated && !clear_active_id) + { + IM_ASSERT(state != NULL); + IM_ASSERT(io.KeyMods == GetMergedKeyModFlags() && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); // We rarely do this check, but if anything let's do it here. + + const int row_count_per_page = ImMax((int)((inner_size.y - style.FramePadding.y) / g.FontSize), 1); + state->Stb.row_count_per_page = row_count_per_page; + + const int k_mask = (io.KeyShift ? STB_TEXTEDIT_K_SHIFT : 0); + const bool is_osx = io.ConfigMacOSXBehaviors; + const bool is_osx_shift_shortcut = is_osx && (io.KeyMods == (ImGuiKeyModFlags_Super | ImGuiKeyModFlags_Shift)); + const bool is_wordmove_key_down = is_osx ? io.KeyAlt : io.KeyCtrl; // OS X style: Text editing cursor movement using Alt instead of Ctrl + const bool is_startend_key_down = is_osx && io.KeySuper && !io.KeyCtrl && !io.KeyAlt; // OS X style: Line/Text Start and End using Cmd+Arrows instead of Home/End + const bool is_ctrl_key_only = (io.KeyMods == ImGuiKeyModFlags_Ctrl); + const bool is_shift_key_only = (io.KeyMods == ImGuiKeyModFlags_Shift); + const bool is_shortcut_key = g.IO.ConfigMacOSXBehaviors ? (io.KeyMods == ImGuiKeyModFlags_Super) : (io.KeyMods == ImGuiKeyModFlags_Ctrl); + + const bool is_cut = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_X)) || (is_shift_key_only && IsKeyPressedMap(ImGuiKey_Delete))) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); + const bool is_copy = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_C)) || (is_ctrl_key_only && IsKeyPressedMap(ImGuiKey_Insert))) && !is_password && (!is_multiline || state->HasSelection()); + const bool is_paste = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_V)) || (is_shift_key_only && IsKeyPressedMap(ImGuiKey_Insert))) && !is_readonly; + const bool is_undo = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_Z)) && !is_readonly && is_undoable); + const bool is_redo = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_Y)) || (is_osx_shift_shortcut && IsKeyPressedMap(ImGuiKey_Z))) && !is_readonly && is_undoable; + + if (IsKeyPressedMap(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } + else if (IsKeyPressedMap(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } + else if (IsKeyPressedMap(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } + else if (IsKeyPressedMap(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } + else if (IsKeyPressedMap(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } + else if (IsKeyPressedMap(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } + else if (IsKeyPressedMap(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } + else if (IsKeyPressedMap(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } + else if (IsKeyPressedMap(ImGuiKey_Delete) && !is_readonly) { state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); } + else if (IsKeyPressedMap(ImGuiKey_Backspace) && !is_readonly) + { + if (!state->HasSelection()) + { + if (is_wordmove_key_down) + state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT); + else if (is_osx && io.KeySuper && !io.KeyAlt && !io.KeyCtrl) + state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT); + } + state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE | k_mask); + } + else if (IsKeyPressedMap(ImGuiKey_Enter) || IsKeyPressedMap(ImGuiKey_KeyPadEnter)) + { + bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0; + if (!is_multiline || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) + { + enter_pressed = clear_active_id = true; + } + else if (!is_readonly) + { + unsigned int c = '\n'; // Insert new line + if (InputTextFilterCharacter(&c, flags, callback, callback_user_data)) + state->OnKeyPressed((int)c); + } + } + else if (IsKeyPressedMap(ImGuiKey_Escape)) + { + clear_active_id = cancel_edit = true; + } + else if (is_undo || is_redo) + { + state->OnKeyPressed(is_undo ? STB_TEXTEDIT_K_UNDO : STB_TEXTEDIT_K_REDO); + state->ClearSelection(); + } + else if (is_shortcut_key && IsKeyPressedMap(ImGuiKey_A)) + { + state->SelectAll(); + state->CursorFollow = true; + } + else if (is_cut || is_copy) + { + // Cut, Copy + if (io.SetClipboardTextFn) + { + const int ib = state->HasSelection() ? ImMin(state->Stb.select_start, state->Stb.select_end) : 0; + const int ie = state->HasSelection() ? ImMax(state->Stb.select_start, state->Stb.select_end) : state->CurLenW; + const int clipboard_data_len = ImTextCountUtf8BytesFromStr(state->TextW.Data + ib, state->TextW.Data + ie) + 1; + char* clipboard_data = (char*)IM_ALLOC(clipboard_data_len * sizeof(char)); + ImTextStrToUtf8(clipboard_data, clipboard_data_len, state->TextW.Data + ib, state->TextW.Data + ie); + SetClipboardText(clipboard_data); + MemFree(clipboard_data); + } + if (is_cut) + { + if (!state->HasSelection()) + state->SelectAll(); + state->CursorFollow = true; + stb_textedit_cut(state, &state->Stb); + } + } + else if (is_paste) + { + if (const char* clipboard = GetClipboardText()) + { + // Filter pasted buffer + const int clipboard_len = (int)strlen(clipboard); + ImWchar* clipboard_filtered = (ImWchar*)IM_ALLOC((clipboard_len + 1) * sizeof(ImWchar)); + int clipboard_filtered_len = 0; + for (const char* s = clipboard; *s; ) + { + unsigned int c; + s += ImTextCharFromUtf8(&c, s, NULL); + if (c == 0) + break; + if (!InputTextFilterCharacter(&c, flags, callback, callback_user_data)) + continue; + clipboard_filtered[clipboard_filtered_len++] = (ImWchar)c; + } + clipboard_filtered[clipboard_filtered_len] = 0; + if (clipboard_filtered_len > 0) // If everything was filtered, ignore the pasting operation + { + stb_textedit_paste(state, &state->Stb, clipboard_filtered, clipboard_filtered_len); + state->CursorFollow = true; + } + MemFree(clipboard_filtered); + } + } + + // Update render selection flag after events have been handled, so selection highlight can be displayed during the same frame. + render_selection |= state->HasSelection() && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); + } + + // Process callbacks and apply result back to user's buffer. + if (g.ActiveId == id) + { + IM_ASSERT(state != NULL); + const char* apply_new_text = NULL; + int apply_new_text_length = 0; + if (cancel_edit) + { + // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. + if (!is_readonly && strcmp(buf, state->InitialTextA.Data) != 0) + { + // Push records into the undo stack so we can CTRL+Z the revert operation itself + apply_new_text = state->InitialTextA.Data; + apply_new_text_length = state->InitialTextA.Size - 1; + ImVector w_text; + if (apply_new_text_length > 0) + { + w_text.resize(ImTextCountCharsFromUtf8(apply_new_text, apply_new_text + apply_new_text_length) + 1); + ImTextStrFromUtf8(w_text.Data, w_text.Size, apply_new_text, apply_new_text + apply_new_text_length); + } + stb_textedit_replace(state, &state->Stb, w_text.Data, (apply_new_text_length > 0) ? (w_text.Size - 1) : 0); + } + } + + // When using 'ImGuiInputTextFlags_EnterReturnsTrue' as a special case we reapply the live buffer back to the input buffer before clearing ActiveId, even though strictly speaking it wasn't modified on this frame. + // If we didn't do that, code like InputInt() with ImGuiInputTextFlags_EnterReturnsTrue would fail. + // This also allows the user to use InputText() with ImGuiInputTextFlags_EnterReturnsTrue without maintaining any user-side storage (please note that if you use this property along ImGuiInputTextFlags_CallbackResize you can end up with your temporary string object unnecessarily allocating once a frame, either store your string data, either if you don't then don't use ImGuiInputTextFlags_CallbackResize). + bool apply_edit_back_to_user_buffer = !cancel_edit || (enter_pressed && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); + if (apply_edit_back_to_user_buffer) + { + // Apply new value immediately - copy modified buffer back + // Note that as soon as the input box is active, the in-widget value gets priority over any underlying modification of the input buffer + // FIXME: We actually always render 'buf' when calling DrawList->AddText, making the comment above incorrect. + // FIXME-OPT: CPU waste to do this every time the widget is active, should mark dirty state from the stb_textedit callbacks. + if (!is_readonly) + { + state->TextAIsValid = true; + state->TextA.resize(state->TextW.Size * 4 + 1); + ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); + } + + // User callback + if ((flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackEdit | ImGuiInputTextFlags_CallbackAlways)) != 0) + { + IM_ASSERT(callback != NULL); + + // The reason we specify the usage semantic (Completion/History) is that Completion needs to disable keyboard TABBING at the moment. + ImGuiInputTextFlags event_flag = 0; + ImGuiKey event_key = ImGuiKey_COUNT; + if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && IsKeyPressedMap(ImGuiKey_Tab)) + { + event_flag = ImGuiInputTextFlags_CallbackCompletion; + event_key = ImGuiKey_Tab; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressedMap(ImGuiKey_UpArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_UpArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressedMap(ImGuiKey_DownArrow)) + { + event_flag = ImGuiInputTextFlags_CallbackHistory; + event_key = ImGuiKey_DownArrow; + } + else if ((flags & ImGuiInputTextFlags_CallbackEdit) && state->Edited) + { + event_flag = ImGuiInputTextFlags_CallbackEdit; + } + else if (flags & ImGuiInputTextFlags_CallbackAlways) + { + event_flag = ImGuiInputTextFlags_CallbackAlways; + } + + if (event_flag) + { + ImGuiInputTextCallbackData callback_data; + memset(&callback_data, 0, sizeof(ImGuiInputTextCallbackData)); + callback_data.EventFlag = event_flag; + callback_data.Flags = flags; + callback_data.UserData = callback_user_data; + + callback_data.EventKey = event_key; + callback_data.Buf = state->TextA.Data; + callback_data.BufTextLen = state->CurLenA; + callback_data.BufSize = state->BufCapacityA; + callback_data.BufDirty = false; + + // We have to convert from wchar-positions to UTF-8-positions, which can be pretty slow (an incentive to ditch the ImWchar buffer, see https://github.com/nothings/stb/issues/188) + ImWchar* text = state->TextW.Data; + const int utf8_cursor_pos = callback_data.CursorPos = ImTextCountUtf8BytesFromStr(text, text + state->Stb.cursor); + const int utf8_selection_start = callback_data.SelectionStart = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_start); + const int utf8_selection_end = callback_data.SelectionEnd = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_end); + + // Call user code + callback(&callback_data); + + // Read back what user may have modified + IM_ASSERT(callback_data.Buf == state->TextA.Data); // Invalid to modify those fields + IM_ASSERT(callback_data.BufSize == state->BufCapacityA); + IM_ASSERT(callback_data.Flags == flags); + if (callback_data.CursorPos != utf8_cursor_pos) { state->Stb.cursor = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.CursorPos); state->CursorFollow = true; } + if (callback_data.SelectionStart != utf8_selection_start) { state->Stb.select_start = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionStart); } + if (callback_data.SelectionEnd != utf8_selection_end) { state->Stb.select_end = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); } + if (callback_data.BufDirty) + { + IM_ASSERT(callback_data.BufTextLen == (int)strlen(callback_data.Buf)); // You need to maintain BufTextLen if you change the text! + if (callback_data.BufTextLen > backup_current_text_length && is_resizable) + state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); + state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, callback_data.Buf, NULL); + state->CurLenA = callback_data.BufTextLen; // Assume correct length and valid UTF-8 from user, saves us an extra strlen() + state->CursorAnimReset(); + } + } + } + + // Will copy result string if modified + if (!is_readonly && strcmp(state->TextA.Data, buf) != 0) + { + apply_new_text = state->TextA.Data; + apply_new_text_length = state->CurLenA; + } + } + + // Copy result to user buffer + if (apply_new_text) + { + // We cannot test for 'backup_current_text_length != apply_new_text_length' here because we have no guarantee that the size + // of our owned buffer matches the size of the string object held by the user, and by design we allow InputText() to be used + // without any storage on user's side. + IM_ASSERT(apply_new_text_length >= 0); + if (is_resizable) + { + ImGuiInputTextCallbackData callback_data; + callback_data.EventFlag = ImGuiInputTextFlags_CallbackResize; + callback_data.Flags = flags; + callback_data.Buf = buf; + callback_data.BufTextLen = apply_new_text_length; + callback_data.BufSize = ImMax(buf_size, apply_new_text_length + 1); + callback_data.UserData = callback_user_data; + callback(&callback_data); + buf = callback_data.Buf; + buf_size = callback_data.BufSize; + apply_new_text_length = ImMin(callback_data.BufTextLen, buf_size - 1); + IM_ASSERT(apply_new_text_length <= buf_size); + } + //IMGUI_DEBUG_LOG("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); + + // If the underlying buffer resize was denied or not carried to the next frame, apply_new_text_length+1 may be >= buf_size. + ImStrncpy(buf, apply_new_text, ImMin(apply_new_text_length + 1, buf_size)); + value_changed = true; + } + + // Clear temporary user storage + state->UserFlags = 0; + state->UserCallback = NULL; + state->UserCallbackData = NULL; + } + + // Release active ID at the end of the function (so e.g. pressing Return still does a final application of the value) + if (clear_active_id && g.ActiveId == id) + ClearActiveID(); + + // Render frame + if (!is_multiline) + { + RenderNavHighlight(frame_bb, id); + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + } + + const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + inner_size.x, frame_bb.Min.y + inner_size.y); // Not using frame_bb.Max because we have adjusted size + ImVec2 draw_pos = is_multiline ? draw_window->DC.CursorPos : frame_bb.Min + style.FramePadding; + ImVec2 text_size(0.0f, 0.0f); + + // Set upper limit of single-line InputTextEx() at 2 million characters strings. The current pathological worst case is a long line + // without any carriage return, which would makes ImFont::RenderText() reserve too many vertices and probably crash. Avoid it altogether. + // Note that we only use this limit on single-line InputText(), so a pathologically large line on a InputTextMultiline() would still crash. + const int buf_display_max_length = 2 * 1024 * 1024; + const char* buf_display = buf_display_from_state ? state->TextA.Data : buf; //-V595 + const char* buf_display_end = NULL; // We have specialized paths below for setting the length + if (is_displaying_hint) + { + buf_display = hint; + buf_display_end = hint + strlen(hint); + } + + // Render text. We currently only render selection when the widget is active or while scrolling. + // FIXME: We could remove the '&& render_cursor' to keep rendering selection when inactive. + if (render_cursor || render_selection) + { + IM_ASSERT(state != NULL); + if (!is_displaying_hint) + buf_display_end = buf_display + state->CurLenA; + + // Render text (with cursor and selection) + // This is going to be messy. We need to: + // - Display the text (this alone can be more easily clipped) + // - Handle scrolling, highlight selection, display cursor (those all requires some form of 1d->2d cursor position calculation) + // - Measure text height (for scrollbar) + // We are attempting to do most of that in **one main pass** to minimize the computation cost (non-negligible for large amount of text) + 2nd pass for selection rendering (we could merge them by an extra refactoring effort) + // FIXME: This should occur on buf_display but we'd need to maintain cursor/select_start/select_end for UTF-8. + const ImWchar* text_begin = state->TextW.Data; + ImVec2 cursor_offset, select_start_offset; + + { + // Find lines numbers straddling 'cursor' (slot 0) and 'select_start' (slot 1) positions. + const ImWchar* searches_input_ptr[2] = { NULL, NULL }; + int searches_result_line_no[2] = { -1000, -1000 }; + int searches_remaining = 0; + if (render_cursor) + { + searches_input_ptr[0] = text_begin + state->Stb.cursor; + searches_result_line_no[0] = -1; + searches_remaining++; + } + if (render_selection) + { + searches_input_ptr[1] = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + searches_result_line_no[1] = -1; + searches_remaining++; + } + + // Iterate all lines to find our line numbers + // In multi-line mode, we never exit the loop until all lines are counted, so add one extra to the searches_remaining counter. + searches_remaining += is_multiline ? 1 : 0; + int line_count = 0; + //for (const ImWchar* s = text_begin; (s = (const ImWchar*)wcschr((const wchar_t*)s, (wchar_t)'\n')) != NULL; s++) // FIXME-OPT: Could use this when wchar_t are 16-bit + for (const ImWchar* s = text_begin; *s != 0; s++) + if (*s == '\n') + { + line_count++; + if (searches_result_line_no[0] == -1 && s >= searches_input_ptr[0]) { searches_result_line_no[0] = line_count; if (--searches_remaining <= 0) break; } + if (searches_result_line_no[1] == -1 && s >= searches_input_ptr[1]) { searches_result_line_no[1] = line_count; if (--searches_remaining <= 0) break; } + } + line_count++; + if (searches_result_line_no[0] == -1) + searches_result_line_no[0] = line_count; + if (searches_result_line_no[1] == -1) + searches_result_line_no[1] = line_count; + + // Calculate 2d position by finding the beginning of the line and measuring distance + cursor_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[0], text_begin), searches_input_ptr[0]).x; + cursor_offset.y = searches_result_line_no[0] * g.FontSize; + if (searches_result_line_no[1] >= 0) + { + select_start_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[1], text_begin), searches_input_ptr[1]).x; + select_start_offset.y = searches_result_line_no[1] * g.FontSize; + } + + // Store text height (note that we haven't calculated text width at all, see GitHub issues #383, #1224) + if (is_multiline) + text_size = ImVec2(inner_size.x, line_count * g.FontSize); + } + + // Scroll + if (render_cursor && state->CursorFollow) + { + // Horizontal scroll in chunks of quarter width + if (!(flags & ImGuiInputTextFlags_NoHorizontalScroll)) + { + const float scroll_increment_x = inner_size.x * 0.25f; + if (cursor_offset.x < state->ScrollX) + state->ScrollX = IM_FLOOR(ImMax(0.0f, cursor_offset.x - scroll_increment_x)); + else if (cursor_offset.x - inner_size.x >= state->ScrollX) + state->ScrollX = IM_FLOOR(cursor_offset.x - inner_size.x + scroll_increment_x); + } + else + { + state->ScrollX = 0.0f; + } + + // Vertical scroll + if (is_multiline) + { + // Test if cursor is vertically visible + if (cursor_offset.y - g.FontSize < scroll_y) + scroll_y = ImMax(0.0f, cursor_offset.y - g.FontSize); + else if (cursor_offset.y - inner_size.y >= scroll_y) + scroll_y = cursor_offset.y - inner_size.y + style.FramePadding.y * 2.0f; + const float scroll_max_y = ImMax((text_size.y + style.FramePadding.y * 2.0f) - inner_size.y, 0.0f); + scroll_y = ImClamp(scroll_y, 0.0f, scroll_max_y); + draw_pos.y += (draw_window->Scroll.y - scroll_y); // Manipulate cursor pos immediately avoid a frame of lag + draw_window->Scroll.y = scroll_y; + } + + state->CursorFollow = false; + } + + // Draw selection + const ImVec2 draw_scroll = ImVec2(state->ScrollX, 0.0f); + if (render_selection) + { + const ImWchar* text_selected_begin = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); + const ImWchar* text_selected_end = text_begin + ImMax(state->Stb.select_start, state->Stb.select_end); + + ImU32 bg_color = GetColorU32(ImGuiCol_TextSelectedBg, render_cursor ? 1.0f : 0.6f); // FIXME: current code flow mandate that render_cursor is always true here, we are leaving the transparent one for tests. + float bg_offy_up = is_multiline ? 0.0f : -1.0f; // FIXME: those offsets should be part of the style? they don't play so well with multi-line selection. + float bg_offy_dn = is_multiline ? 0.0f : 2.0f; + ImVec2 rect_pos = draw_pos + select_start_offset - draw_scroll; + for (const ImWchar* p = text_selected_begin; p < text_selected_end; ) + { + if (rect_pos.y > clip_rect.w + g.FontSize) + break; + if (rect_pos.y < clip_rect.y) + { + //p = (const ImWchar*)wmemchr((const wchar_t*)p, '\n', text_selected_end - p); // FIXME-OPT: Could use this when wchar_t are 16-bit + //p = p ? p + 1 : text_selected_end; + while (p < text_selected_end) + if (*p++ == '\n') + break; + } + else + { + ImVec2 rect_size = InputTextCalcTextSizeW(p, text_selected_end, &p, NULL, true); + if (rect_size.x <= 0.0f) rect_size.x = IM_FLOOR(g.Font->GetCharAdvance((ImWchar)' ') * 0.50f); // So we can see selected empty lines + ImRect rect(rect_pos + ImVec2(0.0f, bg_offy_up - g.FontSize), rect_pos + ImVec2(rect_size.x, bg_offy_dn)); + rect.ClipWith(clip_rect); + if (rect.Overlaps(clip_rect)) + draw_window->DrawList->AddRectFilled(rect.Min, rect.Max, bg_color); + } + rect_pos.x = draw_pos.x - draw_scroll.x; + rect_pos.y += g.FontSize; + } + } + + // We test for 'buf_display_max_length' as a way to avoid some pathological cases (e.g. single-line 1 MB string) which would make ImDrawList crash. + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos - draw_scroll, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + + // Draw blinking cursor + if (render_cursor) + { + state->CursorAnim += io.DeltaTime; + bool cursor_is_visible = (!g.IO.ConfigInputTextCursorBlink) || (state->CursorAnim <= 0.0f) || ImFmod(state->CursorAnim, 1.20f) <= 0.80f; + ImVec2 cursor_screen_pos = draw_pos + cursor_offset - draw_scroll; + ImRect cursor_screen_rect(cursor_screen_pos.x, cursor_screen_pos.y - g.FontSize + 0.5f, cursor_screen_pos.x + 1.0f, cursor_screen_pos.y - 1.5f); + if (cursor_is_visible && cursor_screen_rect.Overlaps(clip_rect)) + draw_window->DrawList->AddLine(cursor_screen_rect.Min, cursor_screen_rect.GetBL(), GetColorU32(ImGuiCol_Text)); + + // Notify OS of text input position for advanced IME (-1 x offset so that Windows IME can cover our cursor. Bit of an extra nicety.) + if (!is_readonly) + g.PlatformImePos = ImVec2(cursor_screen_pos.x - 1.0f, cursor_screen_pos.y - g.FontSize); + } + } + else + { + // Render text only (no selection, no cursor) + if (is_multiline) + text_size = ImVec2(inner_size.x, InputTextCalcTextLenAndLineCount(buf_display, &buf_display_end) * g.FontSize); // We don't need width + else if (!is_displaying_hint && g.ActiveId == id) + buf_display_end = buf_display + state->CurLenA; + else if (!is_displaying_hint) + buf_display_end = buf_display + strlen(buf_display); + + if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) + { + ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); + draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); + } + } + + if (is_password && !is_displaying_hint) + PopFont(); + + if (is_multiline) + { + Dummy(text_size); + EndChild(); + EndGroup(); + } + + // Log as text + if (g.LogEnabled && (!is_password || is_displaying_hint)) + LogRenderedText(&draw_pos, buf_display, buf_display_end); + + if (label_size.x > 0) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + if (value_changed && !(flags & ImGuiInputTextFlags_NoMarkEdited)) + MarkItemEdited(id); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); + if ((flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0) + return enter_pressed; + else + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. +//------------------------------------------------------------------------- +// - ColorEdit3() +// - ColorEdit4() +// - ColorPicker3() +// - RenderColorRectWithAlphaCheckerboard() [Internal] +// - ColorPicker4() +// - ColorButton() +// - SetColorEditOptions() +// - ColorTooltip() [Internal] +// - ColorEditOptionsPopup() [Internal] +// - ColorPickerOptionsPopup() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + return ColorEdit4(label, col, flags | ImGuiColorEditFlags_NoAlpha); +} + +// Edit colors components (each component in 0.0f..1.0f range). +// See enum ImGuiColorEditFlags_ for available options. e.g. Only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// With typical options: Left-click on colored square to open color picker. Right-click to open option menu. CTRL-Click over input fields to edit them and TAB to go to next item. +bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const float square_sz = GetFrameHeight(); + const float w_full = CalcItemWidth(); + const float w_button = (flags & ImGuiColorEditFlags_NoSmallPreview) ? 0.0f : (square_sz + style.ItemInnerSpacing.x); + const float w_inputs = w_full - w_button; + const char* label_display_end = FindRenderedTextEnd(label); + g.NextItemData.ClearFlags(); + + BeginGroup(); + PushID(label); + + // If we're not showing any slider there's no point in doing any HSV conversions + const ImGuiColorEditFlags flags_untouched = flags; + if (flags & ImGuiColorEditFlags_NoInputs) + flags = (flags & (~ImGuiColorEditFlags__DisplayMask)) | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_NoOptions; + + // Context menu: display and modify options (before defaults are applied) + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorEditOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags__DisplayMask)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags__DisplayMask); + if (!(flags & ImGuiColorEditFlags__DataTypeMask)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags__DataTypeMask); + if (!(flags & ImGuiColorEditFlags__PickerMask)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags__PickerMask); + if (!(flags & ImGuiColorEditFlags__InputMask)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags__InputMask); + flags |= (g.ColorEditOptions & ~(ImGuiColorEditFlags__DisplayMask | ImGuiColorEditFlags__DataTypeMask | ImGuiColorEditFlags__PickerMask | ImGuiColorEditFlags__InputMask)); + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__DisplayMask)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__InputMask)); // Check that only 1 is selected + + const bool alpha = (flags & ImGuiColorEditFlags_NoAlpha) == 0; + const bool hdr = (flags & ImGuiColorEditFlags_HDR) != 0; + const int components = alpha ? 4 : 3; + + // Convert to the formats we need + float f[4] = { col[0], col[1], col[2], alpha ? col[3] : 1.0f }; + if ((flags & ImGuiColorEditFlags_InputHSV) && (flags & ImGuiColorEditFlags_DisplayRGB)) + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + else if ((flags & ImGuiColorEditFlags_InputRGB) && (flags & ImGuiColorEditFlags_DisplayHSV)) + { + // Hue is lost when converting from greyscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + if (memcmp(g.ColorEditLastColor, col, sizeof(float) * 3) == 0) + { + if (f[1] == 0) + f[0] = g.ColorEditLastHue; + if (f[2] == 0) + f[1] = g.ColorEditLastSat; + } + } + int i[4] = { IM_F32_TO_INT8_UNBOUND(f[0]), IM_F32_TO_INT8_UNBOUND(f[1]), IM_F32_TO_INT8_UNBOUND(f[2]), IM_F32_TO_INT8_UNBOUND(f[3]) }; + + bool value_changed = false; + bool value_changed_as_float = false; + + const ImVec2 pos = window->DC.CursorPos; + const float inputs_offset_x = (style.ColorButtonPosition == ImGuiDir_Left) ? w_button : 0.0f; + window->DC.CursorPos.x = pos.x + inputs_offset_x; + + if ((flags & (ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV)) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB/HSV 0..255 Sliders + const float w_item_one = ImMax(1.0f, IM_FLOOR((w_inputs - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); + const float w_item_last = ImMax(1.0f, IM_FLOOR(w_inputs - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); + + const bool hide_prefix = (w_item_one <= CalcTextSize((flags & ImGuiColorEditFlags_Float) ? "M:0.000" : "M:000").x); + static const char* ids[4] = { "##X", "##Y", "##Z", "##W" }; + static const char* fmt_table_int[3][4] = + { + { "%3d", "%3d", "%3d", "%3d" }, // Short display + { "R:%3d", "G:%3d", "B:%3d", "A:%3d" }, // Long display for RGBA + { "H:%3d", "S:%3d", "V:%3d", "A:%3d" } // Long display for HSVA + }; + static const char* fmt_table_float[3][4] = + { + { "%0.3f", "%0.3f", "%0.3f", "%0.3f" }, // Short display + { "R:%0.3f", "G:%0.3f", "B:%0.3f", "A:%0.3f" }, // Long display for RGBA + { "H:%0.3f", "S:%0.3f", "V:%0.3f", "A:%0.3f" } // Long display for HSVA + }; + const int fmt_idx = hide_prefix ? 0 : (flags & ImGuiColorEditFlags_DisplayHSV) ? 2 : 1; + + for (int n = 0; n < components; n++) + { + if (n > 0) + SameLine(0, style.ItemInnerSpacing.x); + SetNextItemWidth((n + 1 < components) ? w_item_one : w_item_last); + + // FIXME: When ImGuiColorEditFlags_HDR flag is passed HS values snap in weird ways when SV values go below 0. + if (flags & ImGuiColorEditFlags_Float) + { + value_changed |= DragFloat(ids[n], &f[n], 1.0f / 255.0f, 0.0f, hdr ? 0.0f : 1.0f, fmt_table_float[fmt_idx][n]); + value_changed_as_float |= value_changed; + } + else + { + value_changed |= DragInt(ids[n], &i[n], 1.0f, 0, hdr ? 0 : 255, fmt_table_int[fmt_idx][n]); + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context"); + } + } + else if ((flags & ImGuiColorEditFlags_DisplayHex) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) + { + // RGB Hexadecimal Input + char buf[64]; + if (alpha) + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255), ImClamp(i[3], 0, 255)); + else + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255)); + SetNextItemWidth(w_inputs); + if (InputText("##Text", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase)) + { + value_changed = true; + char* p = buf; + while (*p == '#' || ImCharIsBlankA(*p)) + p++; + i[0] = i[1] = i[2] = i[3] = 0; + if (alpha) + sscanf(p, "%02X%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2], (unsigned int*)&i[3]); // Treat at unsigned (%X is unsigned) + else + sscanf(p, "%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2]); + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context"); + } + + ImGuiWindow* picker_active_window = NULL; + if (!(flags & ImGuiColorEditFlags_NoSmallPreview)) + { + const float button_offset_x = ((flags & ImGuiColorEditFlags_NoInputs) || (style.ColorButtonPosition == ImGuiDir_Left)) ? 0.0f : w_inputs + style.ItemInnerSpacing.x; + window->DC.CursorPos = ImVec2(pos.x + button_offset_x, pos.y); + + const ImVec4 col_v4(col[0], col[1], col[2], alpha ? col[3] : 1.0f); + if (ColorButton("##ColorButton", col_v4, flags)) + { + if (!(flags & ImGuiColorEditFlags_NoPicker)) + { + // Store current color and open a picker + g.ColorPickerRef = col_v4; + OpenPopup("picker"); + SetNextWindowPos(window->DC.LastItemRect.GetBL() + ImVec2(-1, style.ItemSpacing.y)); + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context"); + + if (BeginPopup("picker")) + { + picker_active_window = g.CurrentWindow; + if (label != label_display_end) + { + TextEx(label, label_display_end); + Spacing(); + } + ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags__DataTypeMask | ImGuiColorEditFlags__PickerMask | ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; + ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags__DisplayMask | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; + SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? + value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); + EndPopup(); + } + } + + if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) + { + const float text_offset_x = (flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x; + window->DC.CursorPos = ImVec2(pos.x + text_offset_x, pos.y + style.FramePadding.y); + TextEx(label, label_display_end); + } + + // Convert back + if (value_changed && picker_active_window == NULL) + { + if (!value_changed_as_float) + for (int n = 0; n < 4; n++) + f[n] = i[n] / 255.0f; + if ((flags & ImGuiColorEditFlags_DisplayHSV) && (flags & ImGuiColorEditFlags_InputRGB)) + { + g.ColorEditLastHue = f[0]; + g.ColorEditLastSat = f[1]; + ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); + memcpy(g.ColorEditLastColor, f, sizeof(float) * 3); + } + if ((flags & ImGuiColorEditFlags_DisplayRGB) && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); + + col[0] = f[0]; + col[1] = f[1]; + col[2] = f[2]; + if (alpha) + col[3] = f[3]; + } + + PopID(); + EndGroup(); + + // Drag and Drop Target + // NB: The flag test is merely an optional micro-optimization, BeginDragDropTarget() does the same test. + if ((window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HoveredRect) && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropTarget()) + { + bool accepted_drag_drop = false; + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 + value_changed = accepted_drag_drop = true; + } + if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) + { + memcpy((float*)col, payload->Data, sizeof(float) * components); + value_changed = accepted_drag_drop = true; + } + + // Drag-drop payloads are always RGB + if (accepted_drag_drop && (flags & ImGuiColorEditFlags_InputHSV)) + ColorConvertRGBtoHSV(col[0], col[1], col[2], col[0], col[1], col[2]); + EndDragDropTarget(); + } + + // When picker is being actively used, use its active id so IsItemActive() will function on ColorEdit4(). + if (picker_active_window && g.ActiveId != 0 && g.ActiveIdWindow == picker_active_window) + window->DC.LastItemId = g.ActiveId; + + if (value_changed) + MarkItemEdited(window->DC.LastItemId); + + return value_changed; +} + +bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags) +{ + float col4[4] = { col[0], col[1], col[2], 1.0f }; + if (!ColorPicker4(label, col4, flags | ImGuiColorEditFlags_NoAlpha)) + return false; + col[0] = col4[0]; col[1] = col4[1]; col[2] = col4[2]; + return true; +} + +// Helper for ColorPicker4() +static void RenderArrowsForVerticalBar(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, float bar_w, float alpha) +{ + ImU32 alpha8 = IM_F32_TO_INT8_SAT(alpha); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x + 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Right, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x, pos.y), half_sz, ImGuiDir_Right, IM_COL32(255,255,255,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x - 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Left, IM_COL32(0,0,0,alpha8)); + ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x, pos.y), half_sz, ImGuiDir_Left, IM_COL32(255,255,255,alpha8)); +} + +// Note: ColorPicker4() only accesses 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +// (In C++ the 'float col[4]' notation for a function argument is equivalent to 'float* col', we only specify a size to facilitate understanding of the code.) +// FIXME: we adjust the big color square height based on item width, which may cause a flickering feedback loop (if automatic height makes a vertical scrollbar appears, affecting automatic width..) +// FIXME: this is trying to be aware of style.Alpha but not fully correct. Also, the color wheel will have overlapping glitches with (style.Alpha < 1.0) +bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImDrawList* draw_list = window->DrawList; + ImGuiStyle& style = g.Style; + ImGuiIO& io = g.IO; + + const float width = CalcItemWidth(); + g.NextItemData.ClearFlags(); + + PushID(label); + BeginGroup(); + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + flags |= ImGuiColorEditFlags_NoSmallPreview; + + // Context menu: display and store options. + if (!(flags & ImGuiColorEditFlags_NoOptions)) + ColorPickerOptionsPopup(col, flags); + + // Read stored options + if (!(flags & ImGuiColorEditFlags__PickerMask)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags__PickerMask) ? g.ColorEditOptions : ImGuiColorEditFlags__OptionsDefault) & ImGuiColorEditFlags__PickerMask; + if (!(flags & ImGuiColorEditFlags__InputMask)) + flags |= ((g.ColorEditOptions & ImGuiColorEditFlags__InputMask) ? g.ColorEditOptions : ImGuiColorEditFlags__OptionsDefault) & ImGuiColorEditFlags__InputMask; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__PickerMask)); // Check that only 1 is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__InputMask)); // Check that only 1 is selected + if (!(flags & ImGuiColorEditFlags_NoOptions)) + flags |= (g.ColorEditOptions & ImGuiColorEditFlags_AlphaBar); + + // Setup + int components = (flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4; + bool alpha_bar = (flags & ImGuiColorEditFlags_AlphaBar) && !(flags & ImGuiColorEditFlags_NoAlpha); + ImVec2 picker_pos = window->DC.CursorPos; + float square_sz = GetFrameHeight(); + float bars_width = square_sz; // Arbitrary smallish width of Hue/Alpha picking bars + float sv_picker_size = ImMax(bars_width * 1, width - (alpha_bar ? 2 : 1) * (bars_width + style.ItemInnerSpacing.x)); // Saturation/Value picking box + float bar0_pos_x = picker_pos.x + sv_picker_size + style.ItemInnerSpacing.x; + float bar1_pos_x = bar0_pos_x + bars_width + style.ItemInnerSpacing.x; + float bars_triangles_half_sz = IM_FLOOR(bars_width * 0.20f); + + float backup_initial_col[4]; + memcpy(backup_initial_col, col, components * sizeof(float)); + + float wheel_thickness = sv_picker_size * 0.08f; + float wheel_r_outer = sv_picker_size * 0.50f; + float wheel_r_inner = wheel_r_outer - wheel_thickness; + ImVec2 wheel_center(picker_pos.x + (sv_picker_size + bars_width)*0.5f, picker_pos.y + sv_picker_size * 0.5f); + + // Note: the triangle is displayed rotated with triangle_pa pointing to Hue, but most coordinates stays unrotated for logic. + float triangle_r = wheel_r_inner - (int)(sv_picker_size * 0.027f); + ImVec2 triangle_pa = ImVec2(triangle_r, 0.0f); // Hue point. + ImVec2 triangle_pb = ImVec2(triangle_r * -0.5f, triangle_r * -0.866025f); // Black point. + ImVec2 triangle_pc = ImVec2(triangle_r * -0.5f, triangle_r * +0.866025f); // White point. + + float H = col[0], S = col[1], V = col[2]; + float R = col[0], G = col[1], B = col[2]; + if (flags & ImGuiColorEditFlags_InputRGB) + { + // Hue is lost when converting from greyscale rgb (saturation=0). Restore it. + ColorConvertRGBtoHSV(R, G, B, H, S, V); + if (memcmp(g.ColorEditLastColor, col, sizeof(float) * 3) == 0) + { + if (S == 0) + H = g.ColorEditLastHue; + if (V == 0) + S = g.ColorEditLastSat; + } + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + + bool value_changed = false, value_changed_h = false, value_changed_sv = false; + + PushItemFlag(ImGuiItemFlags_NoNav, true); + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Hue wheel + SV triangle logic + InvisibleButton("hsv", ImVec2(sv_picker_size + style.ItemInnerSpacing.x + bars_width, sv_picker_size)); + if (IsItemActive()) + { + ImVec2 initial_off = g.IO.MouseClickedPos[0] - wheel_center; + ImVec2 current_off = g.IO.MousePos - wheel_center; + float initial_dist2 = ImLengthSqr(initial_off); + if (initial_dist2 >= (wheel_r_inner - 1) * (wheel_r_inner - 1) && initial_dist2 <= (wheel_r_outer + 1) * (wheel_r_outer + 1)) + { + // Interactive with Hue wheel + H = ImAtan2(current_off.y, current_off.x) / IM_PI * 0.5f; + if (H < 0.0f) + H += 1.0f; + value_changed = value_changed_h = true; + } + float cos_hue_angle = ImCos(-H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(-H * 2.0f * IM_PI); + if (ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, ImRotate(initial_off, cos_hue_angle, sin_hue_angle))) + { + // Interacting with SV triangle + ImVec2 current_off_unrotated = ImRotate(current_off, cos_hue_angle, sin_hue_angle); + if (!ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated)) + current_off_unrotated = ImTriangleClosestPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated); + float uu, vv, ww; + ImTriangleBarycentricCoords(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated, uu, vv, ww); + V = ImClamp(1.0f - vv, 0.0001f, 1.0f); + S = ImClamp(uu / V, 0.0001f, 1.0f); + value_changed = value_changed_sv = true; + } + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context"); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // SV rectangle logic + InvisibleButton("sv", ImVec2(sv_picker_size, sv_picker_size)); + if (IsItemActive()) + { + S = ImSaturate((io.MousePos.x - picker_pos.x) / (sv_picker_size - 1)); + V = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = value_changed_sv = true; + } + if (!(flags & ImGuiColorEditFlags_NoOptions)) + OpenPopupOnItemClick("context"); + + // Hue bar logic + SetCursorScreenPos(ImVec2(bar0_pos_x, picker_pos.y)); + InvisibleButton("hue", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + H = ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = value_changed_h = true; + } + } + + // Alpha bar logic + if (alpha_bar) + { + SetCursorScreenPos(ImVec2(bar1_pos_x, picker_pos.y)); + InvisibleButton("alpha", ImVec2(bars_width, sv_picker_size)); + if (IsItemActive()) + { + col[3] = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); + value_changed = true; + } + } + PopItemFlag(); // ImGuiItemFlags_NoNav + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + SameLine(0, style.ItemInnerSpacing.x); + BeginGroup(); + } + + if (!(flags & ImGuiColorEditFlags_NoLabel)) + { + const char* label_display_end = FindRenderedTextEnd(label); + if (label != label_display_end) + { + if ((flags & ImGuiColorEditFlags_NoSidePreview)) + SameLine(0, style.ItemInnerSpacing.x); + TextEx(label, label_display_end); + } + } + + if (!(flags & ImGuiColorEditFlags_NoSidePreview)) + { + PushItemFlag(ImGuiItemFlags_NoNavDefaultFocus, true); + ImVec4 col_v4(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if ((flags & ImGuiColorEditFlags_NoLabel)) + Text("Current"); + + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_NoTooltip; + ColorButton("##current", col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2)); + if (ref_col != NULL) + { + Text("Original"); + ImVec4 ref_col_v4(ref_col[0], ref_col[1], ref_col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : ref_col[3]); + if (ColorButton("##original", ref_col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2))) + { + memcpy(col, ref_col, components * sizeof(float)); + value_changed = true; + } + } + PopItemFlag(); + EndGroup(); + } + + // Convert back color to RGB + if (value_changed_h || value_changed_sv) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + ColorConvertHSVtoRGB(H >= 1.0f ? H - 10 * 1e-6f : H, S > 0.0f ? S : 10 * 1e-6f, V > 0.0f ? V : 1e-6f, col[0], col[1], col[2]); + g.ColorEditLastHue = H; + g.ColorEditLastSat = S; + memcpy(g.ColorEditLastColor, col, sizeof(float) * 3); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + col[0] = H; + col[1] = S; + col[2] = V; + } + } + + // R,G,B and H,S,V slider color editor + bool value_changed_fix_hue_wrap = false; + if ((flags & ImGuiColorEditFlags_NoInputs) == 0) + { + PushItemWidth((alpha_bar ? bar1_pos_x : bar0_pos_x) + bars_width - picker_pos.x); + ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags__DataTypeMask | ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoSmallPreview | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf; + ImGuiColorEditFlags sub_flags = (flags & sub_flags_to_forward) | ImGuiColorEditFlags_NoPicker; + if (flags & ImGuiColorEditFlags_DisplayRGB || (flags & ImGuiColorEditFlags__DisplayMask) == 0) + if (ColorEdit4("##rgb", col, sub_flags | ImGuiColorEditFlags_DisplayRGB)) + { + // FIXME: Hackily differentiating using the DragInt (ActiveId != 0 && !ActiveIdAllowOverlap) vs. using the InputText or DropTarget. + // For the later we don't want to run the hue-wrap canceling code. If you are well versed in HSV picker please provide your input! (See #2050) + value_changed_fix_hue_wrap = (g.ActiveId != 0 && !g.ActiveIdAllowOverlap); + value_changed = true; + } + if (flags & ImGuiColorEditFlags_DisplayHSV || (flags & ImGuiColorEditFlags__DisplayMask) == 0) + value_changed |= ColorEdit4("##hsv", col, sub_flags | ImGuiColorEditFlags_DisplayHSV); + if (flags & ImGuiColorEditFlags_DisplayHex || (flags & ImGuiColorEditFlags__DisplayMask) == 0) + value_changed |= ColorEdit4("##hex", col, sub_flags | ImGuiColorEditFlags_DisplayHex); + PopItemWidth(); + } + + // Try to cancel hue wrap (after ColorEdit4 call), if any + if (value_changed_fix_hue_wrap && (flags & ImGuiColorEditFlags_InputRGB)) + { + float new_H, new_S, new_V; + ColorConvertRGBtoHSV(col[0], col[1], col[2], new_H, new_S, new_V); + if (new_H <= 0 && H > 0) + { + if (new_V <= 0 && V != new_V) + ColorConvertHSVtoRGB(H, S, new_V <= 0 ? V * 0.5f : new_V, col[0], col[1], col[2]); + else if (new_S <= 0) + ColorConvertHSVtoRGB(H, new_S <= 0 ? S * 0.5f : new_S, new_V, col[0], col[1], col[2]); + } + } + + if (value_changed) + { + if (flags & ImGuiColorEditFlags_InputRGB) + { + R = col[0]; + G = col[1]; + B = col[2]; + ColorConvertRGBtoHSV(R, G, B, H, S, V); + if (memcmp(g.ColorEditLastColor, col, sizeof(float) * 3) == 0) // Fix local Hue as display below will use it immediately. + { + if (S == 0) + H = g.ColorEditLastHue; + if (V == 0) + S = g.ColorEditLastSat; + } + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + H = col[0]; + S = col[1]; + V = col[2]; + ColorConvertHSVtoRGB(H, S, V, R, G, B); + } + } + + const int style_alpha8 = IM_F32_TO_INT8_SAT(style.Alpha); + const ImU32 col_black = IM_COL32(0,0,0,style_alpha8); + const ImU32 col_white = IM_COL32(255,255,255,style_alpha8); + const ImU32 col_midgrey = IM_COL32(128,128,128,style_alpha8); + const ImU32 col_hues[6 + 1] = { IM_COL32(255,0,0,style_alpha8), IM_COL32(255,255,0,style_alpha8), IM_COL32(0,255,0,style_alpha8), IM_COL32(0,255,255,style_alpha8), IM_COL32(0,0,255,style_alpha8), IM_COL32(255,0,255,style_alpha8), IM_COL32(255,0,0,style_alpha8) }; + + ImVec4 hue_color_f(1, 1, 1, style.Alpha); ColorConvertHSVtoRGB(H, 1, 1, hue_color_f.x, hue_color_f.y, hue_color_f.z); + ImU32 hue_color32 = ColorConvertFloat4ToU32(hue_color_f); + ImU32 user_col32_striped_of_alpha = ColorConvertFloat4ToU32(ImVec4(R, G, B, style.Alpha)); // Important: this is still including the main rendering/style alpha!! + + ImVec2 sv_cursor_pos; + + if (flags & ImGuiColorEditFlags_PickerHueWheel) + { + // Render Hue Wheel + const float aeps = 0.5f / wheel_r_outer; // Half a pixel arc length in radians (2pi cancels out). + const int segment_per_arc = ImMax(4, (int)wheel_r_outer / 12); + for (int n = 0; n < 6; n++) + { + const float a0 = (n) /6.0f * 2.0f * IM_PI - aeps; + const float a1 = (n+1.0f)/6.0f * 2.0f * IM_PI + aeps; + const int vert_start_idx = draw_list->VtxBuffer.Size; + draw_list->PathArcTo(wheel_center, (wheel_r_inner + wheel_r_outer)*0.5f, a0, a1, segment_per_arc); + draw_list->PathStroke(col_white, false, wheel_thickness); + const int vert_end_idx = draw_list->VtxBuffer.Size; + + // Paint colors over existing vertices + ImVec2 gradient_p0(wheel_center.x + ImCos(a0) * wheel_r_inner, wheel_center.y + ImSin(a0) * wheel_r_inner); + ImVec2 gradient_p1(wheel_center.x + ImCos(a1) * wheel_r_inner, wheel_center.y + ImSin(a1) * wheel_r_inner); + ShadeVertsLinearColorGradientKeepAlpha(draw_list, vert_start_idx, vert_end_idx, gradient_p0, gradient_p1, col_hues[n], col_hues[n + 1]); + } + + // Render Cursor + preview on Hue Wheel + float cos_hue_angle = ImCos(H * 2.0f * IM_PI); + float sin_hue_angle = ImSin(H * 2.0f * IM_PI); + ImVec2 hue_cursor_pos(wheel_center.x + cos_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f, wheel_center.y + sin_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f); + float hue_cursor_rad = value_changed_h ? wheel_thickness * 0.65f : wheel_thickness * 0.55f; + int hue_cursor_segments = ImClamp((int)(hue_cursor_rad / 1.4f), 9, 32); + draw_list->AddCircleFilled(hue_cursor_pos, hue_cursor_rad, hue_color32, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad + 1, col_midgrey, hue_cursor_segments); + draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad, col_white, hue_cursor_segments); + + // Render SV triangle (rotated according to hue) + ImVec2 tra = wheel_center + ImRotate(triangle_pa, cos_hue_angle, sin_hue_angle); + ImVec2 trb = wheel_center + ImRotate(triangle_pb, cos_hue_angle, sin_hue_angle); + ImVec2 trc = wheel_center + ImRotate(triangle_pc, cos_hue_angle, sin_hue_angle); + ImVec2 uv_white = GetFontTexUvWhitePixel(); + draw_list->PrimReserve(6, 6); + draw_list->PrimVtx(tra, uv_white, hue_color32); + draw_list->PrimVtx(trb, uv_white, hue_color32); + draw_list->PrimVtx(trc, uv_white, col_white); + draw_list->PrimVtx(tra, uv_white, 0); + draw_list->PrimVtx(trb, uv_white, col_black); + draw_list->PrimVtx(trc, uv_white, 0); + draw_list->AddTriangle(tra, trb, trc, col_midgrey, 1.5f); + sv_cursor_pos = ImLerp(ImLerp(trc, tra, ImSaturate(S)), trb, ImSaturate(1 - V)); + } + else if (flags & ImGuiColorEditFlags_PickerHueBar) + { + // Render SV Square + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), col_white, hue_color32, hue_color32, col_white); + draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0, 0, col_black, col_black); + RenderFrameBorder(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0.0f); + sv_cursor_pos.x = ImClamp(IM_ROUND(picker_pos.x + ImSaturate(S) * sv_picker_size), picker_pos.x + 2, picker_pos.x + sv_picker_size - 2); // Sneakily prevent the circle to stick out too much + sv_cursor_pos.y = ImClamp(IM_ROUND(picker_pos.y + ImSaturate(1 - V) * sv_picker_size), picker_pos.y + 2, picker_pos.y + sv_picker_size - 2); + + // Render Hue Bar + for (int i = 0; i < 6; ++i) + draw_list->AddRectFilledMultiColor(ImVec2(bar0_pos_x, picker_pos.y + i * (sv_picker_size / 6)), ImVec2(bar0_pos_x + bars_width, picker_pos.y + (i + 1) * (sv_picker_size / 6)), col_hues[i], col_hues[i], col_hues[i + 1], col_hues[i + 1]); + float bar0_line_y = IM_ROUND(picker_pos.y + H * sv_picker_size); + RenderFrameBorder(ImVec2(bar0_pos_x, picker_pos.y), ImVec2(bar0_pos_x + bars_width, picker_pos.y + sv_picker_size), 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar0_pos_x - 1, bar0_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + // Render cursor/preview circle (clamp S/V within 0..1 range because floating points colors may lead HSV values to be out of range) + float sv_cursor_rad = value_changed_sv ? 10.0f : 6.0f; + draw_list->AddCircleFilled(sv_cursor_pos, sv_cursor_rad, user_col32_striped_of_alpha, 12); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad + 1, col_midgrey, 12); + draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad, col_white, 12); + + // Render alpha bar + if (alpha_bar) + { + float alpha = ImSaturate(col[3]); + ImRect bar1_bb(bar1_pos_x, picker_pos.y, bar1_pos_x + bars_width, picker_pos.y + sv_picker_size); + RenderColorRectWithAlphaCheckerboard(draw_list, bar1_bb.Min, bar1_bb.Max, 0, bar1_bb.GetWidth() / 2.0f, ImVec2(0.0f, 0.0f)); + draw_list->AddRectFilledMultiColor(bar1_bb.Min, bar1_bb.Max, user_col32_striped_of_alpha, user_col32_striped_of_alpha, user_col32_striped_of_alpha & ~IM_COL32_A_MASK, user_col32_striped_of_alpha & ~IM_COL32_A_MASK); + float bar1_line_y = IM_ROUND(picker_pos.y + (1.0f - alpha) * sv_picker_size); + RenderFrameBorder(bar1_bb.Min, bar1_bb.Max, 0.0f); + RenderArrowsForVerticalBar(draw_list, ImVec2(bar1_pos_x - 1, bar1_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); + } + + EndGroup(); + + if (value_changed && memcmp(backup_initial_col, col, components * sizeof(float)) == 0) + value_changed = false; + if (value_changed) + MarkItemEdited(window->DC.LastItemId); + + PopID(); + + return value_changed; +} + +// A little colored square. Return true when clicked. +// FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip. +// 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip. +// Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set. +bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, ImVec2 menu_size) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiID id = window->GetID(desc_id); + float default_size = GetFrameHeight(); + if (menu_size.x == 0.0f) + menu_size.x = default_size; + if (menu_size.y == 0.0f) + menu_size.y = default_size; + const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + menu_size); + ItemSize(bb, (menu_size.y >= default_size) ? g.Style.FramePadding.y : 0.0f); + if (!ItemAdd(bb, id)) + return false; + + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held); + + if (flags & ImGuiColorEditFlags_NoAlpha) + flags &= ~(ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf); + + ImVec4 col_rgb = col; + if (flags & ImGuiColorEditFlags_InputHSV) + ColorConvertHSVtoRGB(col_rgb.x, col_rgb.y, col_rgb.z, col_rgb.x, col_rgb.y, col_rgb.z); + + ImVec4 col_rgb_without_alpha(col_rgb.x, col_rgb.y, col_rgb.z, 1.0f); + float grid_step = ImMin(menu_size.x, menu_size.y) / 2.99f; + float rounding = ImMin(g.Style.FrameRounding, grid_step * 0.5f); + ImRect bb_inner = bb; + float off = 0.0f; + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + off = -0.75f; // The border (using Col_FrameBg) tends to look off when color is near-opaque and rounding is enabled. This offset seemed like a good middle ground to reduce those artifacts. + bb_inner.Expand(off); + } + if ((flags & ImGuiColorEditFlags_AlphaPreviewHalf) && col_rgb.w < 1.0f) + { + float mid_x = IM_ROUND((bb_inner.Min.x + bb_inner.Max.x) * 0.5f); + RenderColorRectWithAlphaCheckerboard(window->DrawList, ImVec2(bb_inner.Min.x + grid_step, bb_inner.Min.y), bb_inner.Max, GetColorU32(col_rgb), grid_step, ImVec2(-grid_step + off, off), rounding, ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight); + window->DrawList->AddRectFilled(bb_inner.Min, ImVec2(mid_x, bb_inner.Max.y), GetColorU32(col_rgb_without_alpha), rounding, ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft); + } + else + { + // Because GetColorU32() multiplies by the global style Alpha and we don't want to display a checkerboard if the source code had no alpha + ImVec4 col_source = (flags & ImGuiColorEditFlags_AlphaPreview) ? col_rgb : col_rgb_without_alpha; + if (col_source.w < 1.0f) + RenderColorRectWithAlphaCheckerboard(window->DrawList, bb_inner.Min, bb_inner.Max, GetColorU32(col_source), grid_step, ImVec2(off, off), rounding); + else + window->DrawList->AddRectFilled(bb_inner.Min, bb_inner.Max, GetColorU32(col_source), rounding, ImDrawCornerFlags_All); + } + RenderNavHighlight(bb, id); + if ((flags & ImGuiColorEditFlags_NoBorder) == 0) + { + if (g.Style.FrameBorderSize > 0.0f) + RenderFrameBorder(bb.Min, bb.Max, rounding); + else + window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), rounding); // Color button are often in need of some sort of border + } + + // Drag and Drop Source + // NB: The ActiveId test is merely an optional micro-optimization, BeginDragDropSource() does the same test. + if (g.ActiveId == id && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropSource()) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F, &col_rgb, sizeof(float) * 3, ImGuiCond_Once); + else + SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F, &col_rgb, sizeof(float) * 4, ImGuiCond_Once); + ColorButton(desc_id, col, flags); + SameLine(); + TextEx("Color"); + EndDragDropSource(); + } + + // Tooltip + if (!(flags & ImGuiColorEditFlags_NoTooltip) && hovered) + ColorTooltip(desc_id, &col.x, flags & (ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)); + + return pressed; +} + +// Initialize/override default color options +void ImGui::SetColorEditOptions(ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + if ((flags & ImGuiColorEditFlags__DisplayMask) == 0) + flags |= ImGuiColorEditFlags__OptionsDefault & ImGuiColorEditFlags__DisplayMask; + if ((flags & ImGuiColorEditFlags__DataTypeMask) == 0) + flags |= ImGuiColorEditFlags__OptionsDefault & ImGuiColorEditFlags__DataTypeMask; + if ((flags & ImGuiColorEditFlags__PickerMask) == 0) + flags |= ImGuiColorEditFlags__OptionsDefault & ImGuiColorEditFlags__PickerMask; + if ((flags & ImGuiColorEditFlags__InputMask) == 0) + flags |= ImGuiColorEditFlags__OptionsDefault & ImGuiColorEditFlags__InputMask; + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__DisplayMask)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__DataTypeMask)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__PickerMask)); // Check only 1 option is selected + IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__InputMask)); // Check only 1 option is selected + g.ColorEditOptions = flags; +} + +// Note: only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. +void ImGui::ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags) +{ + ImGuiContext& g = *GImGui; + + BeginTooltipEx(0, ImGuiTooltipFlags_OverridePreviousTooltip); + const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text; + if (text_end > text) + { + TextEx(text, text_end); + Separator(); + } + + ImVec2 sz(g.FontSize * 3 + g.Style.FramePadding.y * 2, g.FontSize * 3 + g.Style.FramePadding.y * 2); + ImVec4 cf(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + ColorButton("##preview", cf, (flags & (ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)) | ImGuiColorEditFlags_NoTooltip, sz); + SameLine(); + if ((flags & ImGuiColorEditFlags_InputRGB) || !(flags & ImGuiColorEditFlags__InputMask)) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("#%02X%02X%02X\nR: %d, G: %d, B: %d\n(%.3f, %.3f, %.3f)", cr, cg, cb, cr, cg, cb, col[0], col[1], col[2]); + else + Text("#%02X%02X%02X%02X\nR:%d, G:%d, B:%d, A:%d\n(%.3f, %.3f, %.3f, %.3f)", cr, cg, cb, ca, cr, cg, cb, ca, col[0], col[1], col[2], col[3]); + } + else if (flags & ImGuiColorEditFlags_InputHSV) + { + if (flags & ImGuiColorEditFlags_NoAlpha) + Text("H: %.3f, S: %.3f, V: %.3f", col[0], col[1], col[2]); + else + Text("H: %.3f, S: %.3f, V: %.3f, A: %.3f", col[0], col[1], col[2], col[3]); + } + EndTooltip(); +} + +void ImGui::ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags) +{ + bool allow_opt_inputs = !(flags & ImGuiColorEditFlags__DisplayMask); + bool allow_opt_datatype = !(flags & ImGuiColorEditFlags__DataTypeMask); + if ((!allow_opt_inputs && !allow_opt_datatype) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + ImGuiColorEditFlags opts = g.ColorEditOptions; + if (allow_opt_inputs) + { + if (RadioButton("RGB", (opts & ImGuiColorEditFlags_DisplayRGB) != 0)) opts = (opts & ~ImGuiColorEditFlags__DisplayMask) | ImGuiColorEditFlags_DisplayRGB; + if (RadioButton("HSV", (opts & ImGuiColorEditFlags_DisplayHSV) != 0)) opts = (opts & ~ImGuiColorEditFlags__DisplayMask) | ImGuiColorEditFlags_DisplayHSV; + if (RadioButton("Hex", (opts & ImGuiColorEditFlags_DisplayHex) != 0)) opts = (opts & ~ImGuiColorEditFlags__DisplayMask) | ImGuiColorEditFlags_DisplayHex; + } + if (allow_opt_datatype) + { + if (allow_opt_inputs) Separator(); + if (RadioButton("0..255", (opts & ImGuiColorEditFlags_Uint8) != 0)) opts = (opts & ~ImGuiColorEditFlags__DataTypeMask) | ImGuiColorEditFlags_Uint8; + if (RadioButton("0.00..1.00", (opts & ImGuiColorEditFlags_Float) != 0)) opts = (opts & ~ImGuiColorEditFlags__DataTypeMask) | ImGuiColorEditFlags_Float; + } + + if (allow_opt_inputs || allow_opt_datatype) + Separator(); + if (Button("Copy as..", ImVec2(-1, 0))) + OpenPopup("Copy"); + if (BeginPopup("Copy")) + { + int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); + char buf[64]; + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%.3ff, %.3ff, %.3ff, %.3ff)", col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "(%d,%d,%d,%d)", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", cr, cg, cb); + if (Selectable(buf)) + SetClipboardText(buf); + if (!(flags & ImGuiColorEditFlags_NoAlpha)) + { + ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", cr, cg, cb, ca); + if (Selectable(buf)) + SetClipboardText(buf); + } + EndPopup(); + } + + g.ColorEditOptions = opts; + EndPopup(); +} + +void ImGui::ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags) +{ + bool allow_opt_picker = !(flags & ImGuiColorEditFlags__PickerMask); + bool allow_opt_alpha_bar = !(flags & ImGuiColorEditFlags_NoAlpha) && !(flags & ImGuiColorEditFlags_AlphaBar); + if ((!allow_opt_picker && !allow_opt_alpha_bar) || !BeginPopup("context")) + return; + ImGuiContext& g = *GImGui; + if (allow_opt_picker) + { + ImVec2 picker_size(g.FontSize * 8, ImMax(g.FontSize * 8 - (GetFrameHeight() + g.Style.ItemInnerSpacing.x), 1.0f)); // FIXME: Picker size copied from main picker function + PushItemWidth(picker_size.x); + for (int picker_type = 0; picker_type < 2; picker_type++) + { + // Draw small/thumbnail version of each picker type (over an invisible button for selection) + if (picker_type > 0) Separator(); + PushID(picker_type); + ImGuiColorEditFlags picker_flags = ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_NoSidePreview | (flags & ImGuiColorEditFlags_NoAlpha); + if (picker_type == 0) picker_flags |= ImGuiColorEditFlags_PickerHueBar; + if (picker_type == 1) picker_flags |= ImGuiColorEditFlags_PickerHueWheel; + ImVec2 backup_pos = GetCursorScreenPos(); + if (Selectable("##selectable", false, 0, picker_size)) // By default, Selectable() is closing popup + g.ColorEditOptions = (g.ColorEditOptions & ~ImGuiColorEditFlags__PickerMask) | (picker_flags & ImGuiColorEditFlags__PickerMask); + SetCursorScreenPos(backup_pos); + ImVec4 previewing_ref_col; + memcpy(&previewing_ref_col, ref_col, sizeof(float) * ((picker_flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4)); + ColorPicker4("##previewing_picker", &previewing_ref_col.x, picker_flags); + PopID(); + } + PopItemWidth(); + } + if (allow_opt_alpha_bar) + { + if (allow_opt_picker) Separator(); + CheckboxFlags("Alpha Bar", (unsigned int*)&g.ColorEditOptions, ImGuiColorEditFlags_AlphaBar); + } + EndPopup(); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. +//------------------------------------------------------------------------- +// - TreeNode() +// - TreeNodeV() +// - TreeNodeEx() +// - TreeNodeExV() +// - TreeNodeBehavior() [Internal] +// - TreePush() +// - TreePop() +// - GetTreeNodeToLabelSpacing() +// - SetNextItemOpen() +// - CollapsingHeader() +//------------------------------------------------------------------------- + +bool ImGui::TreeNode(const char* str_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const void* ptr_id, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, 0, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNode(const char* label) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + return TreeNodeBehavior(window->GetID(label), 0, label, NULL); +} + +bool ImGui::TreeNodeV(const char* str_id, const char* fmt, va_list args) +{ + return TreeNodeExV(str_id, 0, fmt, args); +} + +bool ImGui::TreeNodeV(const void* ptr_id, const char* fmt, va_list args) +{ + return TreeNodeExV(ptr_id, 0, fmt, args); +} + +bool ImGui::TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags, label, NULL); +} + +bool ImGui::TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(str_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + bool is_open = TreeNodeExV(ptr_id, flags, fmt, args); + va_end(args); + return is_open; +} + +bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); + return TreeNodeBehavior(window->GetID(str_id), flags, g.TempBuffer, label_end); +} + +bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); + return TreeNodeBehavior(window->GetID(ptr_id), flags, g.TempBuffer, label_end); +} + +bool ImGui::TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags) +{ + if (flags & ImGuiTreeNodeFlags_Leaf) + return true; + + // We only write to the tree storage if the user clicks (or explicitly use the SetNextItemOpen function) + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiStorage* storage = window->DC.StateStorage; + + bool is_open; + if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasOpen) + { + if (g.NextItemData.OpenCond & ImGuiCond_Always) + { + is_open = g.NextItemData.OpenVal; + storage->SetInt(id, is_open); + } + else + { + // We treat ImGuiCond_Once and ImGuiCond_FirstUseEver the same because tree node state are not saved persistently. + const int stored_value = storage->GetInt(id, -1); + if (stored_value == -1) + { + is_open = g.NextItemData.OpenVal; + storage->SetInt(id, is_open); + } + else + { + is_open = stored_value != 0; + } + } + } + else + { + is_open = storage->GetInt(id, (flags & ImGuiTreeNodeFlags_DefaultOpen) ? 1 : 0) != 0; + } + + // When logging is enabled, we automatically expand tree nodes (but *NOT* collapsing headers.. seems like sensible behavior). + // NB- If we are above max depth we still allow manually opened nodes to be logged. + if (g.LogEnabled && !(flags & ImGuiTreeNodeFlags_NoAutoOpenOnLog) && (window->DC.TreeDepth - g.LogDepthRef) < g.LogDepthToExpand) + is_open = true; + + return is_open; +} + +bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const bool display_frame = (flags & ImGuiTreeNodeFlags_Framed) != 0; + const ImVec2 padding = (display_frame || (flags & ImGuiTreeNodeFlags_FramePadding)) ? style.FramePadding : ImVec2(style.FramePadding.x, ImMin(window->DC.CurrLineTextBaseOffset, style.FramePadding.y)); + + if (!label_end) + label_end = FindRenderedTextEnd(label); + const ImVec2 label_size = CalcTextSize(label, label_end, false); + + // We vertically grow up to current line height up the typical widget height. + const float frame_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), label_size.y + padding.y * 2); + ImRect frame_bb; + frame_bb.Min.x = (flags & ImGuiTreeNodeFlags_SpanFullWidth) ? window->WorkRect.Min.x : window->DC.CursorPos.x; + frame_bb.Min.y = window->DC.CursorPos.y; + frame_bb.Max.x = window->WorkRect.Max.x; + frame_bb.Max.y = window->DC.CursorPos.y + frame_height; + if (display_frame) + { + // Framed header expand a little outside the default padding, to the edge of InnerClipRect + // (FIXME: May remove this at some point and make InnerClipRect align with WindowPadding.x instead of WindowPadding.x*0.5f) + frame_bb.Min.x -= IM_FLOOR(window->WindowPadding.x * 0.5f - 1.0f); + frame_bb.Max.x += IM_FLOOR(window->WindowPadding.x * 0.5f); + } + + const float text_offset_x = g.FontSize + (display_frame ? padding.x * 3 : padding.x * 2); // Collapser arrow width + Spacing + const float text_offset_y = ImMax(padding.y, window->DC.CurrLineTextBaseOffset); // Latch before ItemSize changes it + const float text_width = g.FontSize + (label_size.x > 0.0f ? label_size.x + padding.x * 2 : 0.0f); // Include collapser + ImVec2 text_pos(window->DC.CursorPos.x + text_offset_x, window->DC.CursorPos.y + text_offset_y); + ItemSize(ImVec2(text_width, frame_height), padding.y); + + // For regular tree nodes, we arbitrary allow to click past 2 worth of ItemSpacing + ImRect interact_bb = frame_bb; + if (!display_frame && (flags & (ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth)) == 0) + interact_bb.Max.x = frame_bb.Min.x + text_width + style.ItemSpacing.x * 2.0f; + + // Store a flag for the current depth to tell if we will allow closing this node when navigating one of its child. + // For this purpose we essentially compare if g.NavIdIsAlive went from 0 to 1 between TreeNode() and TreePop(). + // This is currently only support 32 level deep and we are fine with (1 << Depth) overflowing into a zero. + const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0; + bool is_open = TreeNodeBehaviorIsOpen(id, flags); + if (is_open && !g.NavIdIsAlive && (flags & ImGuiTreeNodeFlags_NavLeftJumpsBackHere) && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + window->DC.TreeJumpToParentOnPopMask |= (1 << window->DC.TreeDepth); + + bool item_add = ItemAdd(interact_bb, id); + window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_HasDisplayRect; + window->DC.LastItemDisplayRect = frame_bb; + + if (!item_add) + { + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(window->DC.LastItemId, label, window->DC.ItemFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; + } + + ImGuiButtonFlags button_flags = ImGuiTreeNodeFlags_None; + if (flags & ImGuiTreeNodeFlags_AllowItemOverlap) + button_flags |= ImGuiButtonFlags_AllowItemOverlap; + if (!is_leaf) + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + + // We allow clicking on the arrow section with keyboard modifiers held, in order to easily + // allow browsing a tree while preserving selection with code implementing multi-selection patterns. + // When clicking on the rest of the tree node we always disallow keyboard modifiers. + const float arrow_hit_x1 = (text_pos.x - text_offset_x) - style.TouchExtraPadding.x; + const float arrow_hit_x2 = (text_pos.x - text_offset_x) + (g.FontSize + padding.x * 2.0f) + style.TouchExtraPadding.x; + const bool is_mouse_x_over_arrow = (g.IO.MousePos.x >= arrow_hit_x1 && g.IO.MousePos.x < arrow_hit_x2); + if (window != g.HoveredWindow || !is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_NoKeyModifiers; + + // Open behaviors can be altered with the _OpenOnArrow and _OnOnDoubleClick flags. + // Some alteration have subtle effects (e.g. toggle on MouseUp vs MouseDown events) due to requirements for multi-selection and drag and drop support. + // - Single-click on label = Toggle on MouseUp (default, when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=0) + // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=1) + // - Double-click on label = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1) + // - Double-click on arrow = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1 and _OpenOnArrow=0) + // It is rather standard that arrow click react on Down rather than Up. + // We set ImGuiButtonFlags_PressedOnClickRelease on OpenOnDoubleClick because we want the item to be active on the initial MouseDown in order for drag and drop to work. + if (is_mouse_x_over_arrow) + button_flags |= ImGuiButtonFlags_PressedOnClick; + else if (flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) + button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; + else + button_flags |= ImGuiButtonFlags_PressedOnClickRelease; + + bool selected = (flags & ImGuiTreeNodeFlags_Selected) != 0; + const bool was_selected = selected; + + bool hovered, held; + bool pressed = ButtonBehavior(interact_bb, id, &hovered, &held, button_flags); + bool toggled = false; + if (!is_leaf) + { + if (pressed && g.DragDropHoldJustPressedId != id) + { + if ((flags & (ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick)) == 0 || (g.NavActivateId == id)) + toggled = true; + if (flags & ImGuiTreeNodeFlags_OpenOnArrow) + toggled |= is_mouse_x_over_arrow && !g.NavDisableMouseHover; // Lightweight equivalent of IsMouseHoveringRect() since ButtonBehavior() already did the job + if ((flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) && g.IO.MouseDoubleClicked[0]) + toggled = true; + } + else if (pressed && g.DragDropHoldJustPressedId == id) + { + IM_ASSERT(button_flags & ImGuiButtonFlags_PressedOnDragDropHold); + if (!is_open) // When using Drag and Drop "hold to open" we keep the node highlighted after opening, but never close it again. + toggled = true; + } + + if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Left && is_open) + { + toggled = true; + NavMoveRequestCancel(); + } + if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Right && !is_open) // If there's something upcoming on the line we may want to give it the priority? + { + toggled = true; + NavMoveRequestCancel(); + } + + if (toggled) + { + is_open = !is_open; + window->DC.StateStorage->SetInt(id, is_open); + window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledOpen; + } + } + if (flags & ImGuiTreeNodeFlags_AllowItemOverlap) + SetItemAllowOverlap(); + + // In this branch, TreeNodeBehavior() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + const ImU32 text_col = GetColorU32(ImGuiCol_Text); + ImGuiNavHighlightFlags nav_highlight_flags = ImGuiNavHighlightFlags_TypeThin; + if (display_frame) + { + // Framed type + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, true, style.FrameRounding); + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.60f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 1.0f); + else // Leaf without bullet, left-adjusted text + text_pos.x -= text_offset_x; + if (flags & ImGuiTreeNodeFlags_ClipLabelForTrailingButton) + frame_bb.Max.x -= g.FontSize + style.FramePadding.x; + if (g.LogEnabled) + { + // NB: '##' is normally used to hide text (as a library-wide feature), so we need to specify the text range to make sure the ## aren't stripped out here. + const char log_prefix[] = "\n##"; + const char log_suffix[] = "##"; + LogRenderedText(&text_pos, log_prefix, log_prefix + 3); + RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size); + LogRenderedText(&text_pos, log_suffix, log_suffix + 2); + } + else + { + RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size); + } + } + else + { + // Unframed typed for tree nodes + if (hovered || selected) + { + const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false); + RenderNavHighlight(frame_bb, id, nav_highlight_flags); + } + if (flags & ImGuiTreeNodeFlags_Bullet) + RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.5f, text_pos.y + g.FontSize * 0.5f), text_col); + else if (!is_leaf) + RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y + g.FontSize * 0.15f), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 0.70f); + if (g.LogEnabled) + LogRenderedText(&text_pos, ">"); + RenderText(text_pos, label, label_end, false); + } + + if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) + TreePushOverrideID(id); + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); + return is_open; +} + +void ImGui::TreePush(const char* str_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(str_id ? str_id : "#TreePush"); +} + +void ImGui::TreePush(const void* ptr_id) +{ + ImGuiWindow* window = GetCurrentWindow(); + Indent(); + window->DC.TreeDepth++; + PushID(ptr_id ? ptr_id : (const void*)"#TreePush"); +} + +void ImGui::TreePushOverrideID(ImGuiID id) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Indent(); + window->DC.TreeDepth++; + window->IDStack.push_back(id); +} + +void ImGui::TreePop() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + Unindent(); + + window->DC.TreeDepth--; + ImU32 tree_depth_mask = (1 << window->DC.TreeDepth); + + // Handle Left arrow to move to parent tree node (when ImGuiTreeNodeFlags_NavLeftJumpsBackHere is enabled) + if (g.NavMoveDir == ImGuiDir_Left && g.NavWindow == window && NavMoveRequestButNoResultYet()) + if (g.NavIdIsAlive && (window->DC.TreeJumpToParentOnPopMask & tree_depth_mask)) + { + SetNavID(window->IDStack.back(), g.NavLayer, 0); + NavMoveRequestCancel(); + } + window->DC.TreeJumpToParentOnPopMask &= tree_depth_mask - 1; + + IM_ASSERT(window->IDStack.Size > 1); // There should always be 1 element in the IDStack (pushed during window creation). If this triggers you called TreePop/PopID too much. + PopID(); +} + +// Horizontal distance preceding label when using TreeNode() or Bullet() +float ImGui::GetTreeNodeToLabelSpacing() +{ + ImGuiContext& g = *GImGui; + return g.FontSize + (g.Style.FramePadding.x * 2.0f); +} + +// Set next TreeNode/CollapsingHeader open state. +void ImGui::SetNextItemOpen(bool is_open, ImGuiCond cond) +{ + ImGuiContext& g = *GImGui; + if (g.CurrentWindow->SkipItems) + return; + g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasOpen; + g.NextItemData.OpenVal = is_open; + g.NextItemData.OpenCond = cond ? cond : ImGuiCond_Always; +} + +// CollapsingHeader returns true when opened but do not indent nor push into the ID stack (because of the ImGuiTreeNodeFlags_NoTreePushOnOpen flag). +// This is basically the same as calling TreeNodeEx(label, ImGuiTreeNodeFlags_CollapsingHeader). You can remove the _NoTreePushOnOpen flag if you want behavior closer to normal TreeNode(). +bool ImGui::CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + return TreeNodeBehavior(window->GetID(label), flags | ImGuiTreeNodeFlags_CollapsingHeader, label); +} + +bool ImGui::CollapsingHeader(const char* label, bool* p_open, ImGuiTreeNodeFlags flags) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + if (p_open && !*p_open) + return false; + + ImGuiID id = window->GetID(label); + flags |= ImGuiTreeNodeFlags_CollapsingHeader; + if (p_open) + flags |= ImGuiTreeNodeFlags_AllowItemOverlap | ImGuiTreeNodeFlags_ClipLabelForTrailingButton; + bool is_open = TreeNodeBehavior(id, flags, label); + if (p_open != NULL) + { + // Create a small overlapping close button + // FIXME: We can evolve this into user accessible helpers to add extra buttons on title bars, headers, etc. + // FIXME: CloseButton can overlap into text, need find a way to clip the text somehow. + ImGuiContext& g = *GImGui; + ImGuiLastItemDataBackup last_item_backup; + float button_size = g.FontSize; + float button_x = ImMax(window->DC.LastItemRect.Min.x, window->DC.LastItemRect.Max.x - g.Style.FramePadding.x * 2.0f - button_size); + float button_y = window->DC.LastItemRect.Min.y; + ImGuiID close_button_id = GetIDWithSeed("#CLOSE", NULL, id); + if (CloseButton(close_button_id, ImVec2(button_x, button_y))) + *p_open = false; + last_item_backup.Restore(); + } + + return is_open; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Selectable +//------------------------------------------------------------------------- +// - Selectable() +//------------------------------------------------------------------------- + +// Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image. +// But you need to make sure the ID is unique, e.g. enclose calls in PushID/PopID or use ##unique_id. +// With this scheme, ImGuiSelectableFlags_SpanAllColumns and ImGuiSelectableFlags_AllowItemOverlap are also frequently used flags. +// FIXME: Selectable() with (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported. +bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + + const bool span_all_columns = (flags & ImGuiSelectableFlags_SpanAllColumns) != 0; + if (span_all_columns && window->DC.CurrentColumns) // FIXME-OPT: Avoid if vertically clipped. + PushColumnsBackground(); + + // Submit label or explicit size to ItemSize(), whereas ItemAdd() will submit a larger/spanning rectangle. + ImGuiID id = window->GetID(label); + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 menu_size(size_arg.x != 0.0f ? size_arg.x : label_size.x, size_arg.y != 0.0f ? size_arg.y : label_size.y); + ImVec2 pos = window->DC.CursorPos; + pos.y += window->DC.CurrLineTextBaseOffset; + ItemSize(menu_size, 0.0f); + + // Fill horizontal space + // We don't support (size < 0.0f) in Selectable() because the ItemSpacing extension would make explicitely right-aligned sizes not visibly match other widgets. + const float min_x = span_all_columns ? window->ParentWorkRect.Min.x : pos.x; + const float max_x = span_all_columns ? window->ParentWorkRect.Max.x : window->WorkRect.Max.x; + if (size_arg.x == 0.0f || (flags & ImGuiSelectableFlags_SpanAvailWidth)) + menu_size.x = ImMax(label_size.x, max_x - min_x); + + // Text stays at the submission position, but bounding box may be extended on both sides + const ImVec2 text_min = pos; + const ImVec2 text_max(min_x + menu_size.x, pos.y + menu_size.y); + + // Selectables are meant to be tightly packed together with no click-gap, so we extend their box to cover spacing between selectable. + ImRect bb(min_x, pos.y, text_max.x, text_max.y); + if ((flags & ImGuiSelectableFlags_NoPadWithHalfSpacing) == 0) + { + const float spacing_x = style.ItemSpacing.x; + const float spacing_y = style.ItemSpacing.y; + const float spacing_L = IM_FLOOR(spacing_x * 0.50f); + const float spacing_U = IM_FLOOR(spacing_y * 0.50f); + bb.Min.x -= spacing_L; + bb.Min.y -= spacing_U; + bb.Max.x += (spacing_x - spacing_L); + bb.Max.y += (spacing_y - spacing_U); + } + //if (g.IO.KeyCtrl) { GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(0, 255, 0, 255)); } + + bool item_add; + if (flags & ImGuiSelectableFlags_Disabled) + { + ImGuiItemFlags backup_item_flags = window->DC.ItemFlags; + window->DC.ItemFlags |= ImGuiItemFlags_Disabled | ImGuiItemFlags_NoNavDefaultFocus; + item_add = ItemAdd(bb, id); + window->DC.ItemFlags = backup_item_flags; + } + else + { + item_add = ItemAdd(bb, id); + } + if (!item_add) + { + if (span_all_columns && window->DC.CurrentColumns) + PopColumnsBackground(); + return false; + } + + // We use NoHoldingActiveID on menus so user can click and _hold_ on a menu then drag to browse child entries + ImGuiButtonFlags button_flags = 0; + if (flags & ImGuiSelectableFlags_NoHoldingActiveID) { button_flags |= ImGuiButtonFlags_NoHoldingActiveId; } + if (flags & ImGuiSelectableFlags_SelectOnClick) { button_flags |= ImGuiButtonFlags_PressedOnClick; } + if (flags & ImGuiSelectableFlags_SelectOnRelease) { button_flags |= ImGuiButtonFlags_PressedOnRelease; } + if (flags & ImGuiSelectableFlags_Disabled) { button_flags |= ImGuiButtonFlags_Disabled; } + if (flags & ImGuiSelectableFlags_AllowDoubleClick) { button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; } + if (flags & ImGuiSelectableFlags_AllowItemOverlap) { button_flags |= ImGuiButtonFlags_AllowItemOverlap; } + + if (flags & ImGuiSelectableFlags_Disabled) + selected = false; + + const bool was_selected = selected; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + + // Update NavId when clicking or when Hovering (this doesn't happen on most widgets), so navigation can be resumed with gamepad/keyboard + if (pressed || (hovered && (flags & ImGuiSelectableFlags_SetNavIdOnHover))) + { + if (!g.NavDisableMouseHover && g.NavWindow == window && g.NavLayer == window->DC.NavLayerCurrent) + { + g.NavDisableHighlight = true; + SetNavID(id, window->DC.NavLayerCurrent, window->DC.NavFocusScopeIdCurrent); + } + } + if (pressed) + MarkItemEdited(id); + + if (flags & ImGuiSelectableFlags_AllowItemOverlap) + SetItemAllowOverlap(); + + // In this branch, Selectable() cannot toggle the selection so this will never trigger. + if (selected != was_selected) //-V547 + window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledSelection; + + // Render + if (held && (flags & ImGuiSelectableFlags_DrawHoveredWhenHeld)) + hovered = true; + if (hovered || selected) + { + const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); + RenderFrame(bb.Min, bb.Max, col, false, 0.0f); + RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); + } + + if (span_all_columns && window->DC.CurrentColumns) + PopColumnsBackground(); + + if (flags & ImGuiSelectableFlags_Disabled) PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); + RenderTextClipped(text_min, text_max, label, NULL, &label_size, style.SelectableTextAlign, &bb); + if (flags & ImGuiSelectableFlags_Disabled) PopStyleColor(); + + // Automatically close popups + if (pressed && (window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiSelectableFlags_DontClosePopups) && !(window->DC.ItemFlags & ImGuiItemFlags_SelectableDontClosePopup)) + CloseCurrentPopup(); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); + return pressed; +} + +bool ImGui::Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) +{ + if (Selectable(label, *p_selected, flags, size_arg)) + { + *p_selected = !*p_selected; + return true; + } + return false; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: ListBox +//------------------------------------------------------------------------- +// - ListBox() +// - ListBoxHeader() +// - ListBoxFooter() +//------------------------------------------------------------------------- +// FIXME: This is an old API. We should redesign some of it, rename ListBoxHeader->BeginListBox, ListBoxFooter->EndListBox +// and promote using them over existing ListBox() functions, similarly to change with combo boxes. +//------------------------------------------------------------------------- + +// FIXME: In principle this function should be called BeginListBox(). We should rename it after re-evaluating if we want to keep the same signature. +// Helper to calculate the size of a listbox and display a label on the right. +// Tip: To have a list filling the entire window width, PushItemWidth(-1) and pass an non-visible label e.g. "##empty" +bool ImGui::ListBoxHeader(const char* label, const ImVec2& size_arg) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = GetID(label); + const ImVec2 label_size = CalcTextSize(label, NULL, true); + + // Size default to hold ~7 items. Fractional number of items helps seeing that we can scroll down/up without looking at scrollbar. + ImVec2 menu_size = CalcItemSize(size_arg, CalcItemWidth(), GetTextLineHeightWithSpacing() * 7.4f + style.ItemSpacing.y); + ImVec2 frame_size = ImVec2(menu_size.x, ImMax(menu_size.y, label_size.y)); + ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); + window->DC.LastItemRect = bb; // Forward storage for ListBoxFooter.. dodgy. + g.NextItemData.ClearFlags(); + + if (!IsRectVisible(bb.Min, bb.Max)) + { + ItemSize(bb.GetSize(), style.FramePadding.y); + ItemAdd(bb, 0, &frame_bb); + return false; + } + + BeginGroup(); + if (label_size.x > 0) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); + + BeginChildFrame(id, frame_bb.GetSize()); + return true; +} + +// FIXME: In principle this function should be called EndListBox(). We should rename it after re-evaluating if we want to keep the same signature. +bool ImGui::ListBoxHeader(const char* label, int items_count, int height_in_items) +{ + // Size default to hold ~7.25 items. + // We add +25% worth of item height to allow the user to see at a glance if there are more items up/down, without looking at the scrollbar. + // We don't add this extra bit if items_count <= height_in_items. It is slightly dodgy, because it means a dynamic list of items will make the widget resize occasionally when it crosses that size. + // I am expecting that someone will come and complain about this behavior in a remote future, then we can advise on a better solution. + if (height_in_items < 0) + height_in_items = ImMin(items_count, 7); + const ImGuiStyle& style = GetStyle(); + float height_in_items_f = (height_in_items < items_count) ? (height_in_items + 0.25f) : (height_in_items + 0.00f); + + // We include ItemSpacing.y so that a list sized for the exact number of items doesn't make a scrollbar appears. We could also enforce that by passing a flag to BeginChild(). + ImVec2 menu_size; + menu_size.x = 0.0f; + menu_size.y = ImFloor(GetTextLineHeightWithSpacing() * height_in_items_f + style.FramePadding.y * 2.0f); + return ListBoxHeader(label, menu_size); +} + +// FIXME: In principle this function should be called EndListBox(). We should rename it after re-evaluating if we want to keep the same signature. +void ImGui::ListBoxFooter() +{ + ImGuiWindow* parent_window = GetCurrentWindow()->ParentWindow; + const ImRect bb = parent_window->DC.LastItemRect; + const ImGuiStyle& style = GetStyle(); + + EndChildFrame(); + + // Redeclare item size so that it includes the label (we have stored the full size in LastItemRect) + // We call SameLine() to restore DC.CurrentLine* data + SameLine(); + parent_window->DC.CursorPos = bb.Min; + ItemSize(bb, style.FramePadding.y); + EndGroup(); +} + +bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items) +{ + const bool value_changed = ListBox(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_items); + return value_changed; +} + +bool ImGui::ListBox(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int height_in_items) +{ + if (!ListBoxHeader(label, items_count, height_in_items)) + return false; + + // Assume all items have even height (= 1 line of text). If you need items of different or variable sizes you can create a custom version of ListBox() in your code without using the clipper. + ImGuiContext& g = *GImGui; + bool value_changed = false; + ImGuiListClipper clipper; + clipper.Begin(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to. + while (clipper.Step()) + for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) + { + const bool item_selected = (i == *current_item); + const char* item_text; + if (!items_getter(data, i, &item_text)) + item_text = "*Unknown item*"; + + PushID(i); + if (Selectable(item_text, item_selected)) + { + *current_item = i; + value_changed = true; + } + if (item_selected) + SetItemDefaultFocus(); + PopID(); + } + ListBoxFooter(); + if (value_changed) + MarkItemEdited(g.CurrentWindow->DC.LastItemId); + + return value_changed; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: PlotLines, PlotHistogram +//------------------------------------------------------------------------- +// - PlotEx() [Internal] +// - PlotLines() +// - PlotHistogram() +//------------------------------------------------------------------------- + +int ImGui::PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 frame_size) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return -1; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + + const ImVec2 label_size = CalcTextSize(label, NULL, true); + if (frame_size.x == 0.0f) + frame_size.x = CalcItemWidth(); + if (frame_size.y == 0.0f) + frame_size.y = label_size.y + (style.FramePadding.y * 2); + + const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); + const ImRect inner_bb(frame_bb.Min + style.FramePadding, frame_bb.Max - style.FramePadding); + const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0)); + ItemSize(total_bb, style.FramePadding.y); + if (!ItemAdd(total_bb, 0, &frame_bb)) + return -1; + const bool hovered = ItemHoverable(frame_bb, id); + + // Determine scale from values if not specified + if (scale_min == FLT_MAX || scale_max == FLT_MAX) + { + float v_min = FLT_MAX; + float v_max = -FLT_MAX; + for (int i = 0; i < values_count; i++) + { + const float v = values_getter(data, i); + if (v != v) // Ignore NaN values + continue; + v_min = ImMin(v_min, v); + v_max = ImMax(v_max, v); + } + if (scale_min == FLT_MAX) + scale_min = v_min; + if (scale_max == FLT_MAX) + scale_max = v_max; + } + + RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); + + const int values_count_min = (plot_type == ImGuiPlotType_Lines) ? 2 : 1; + int idx_hovered = -1; + if (values_count >= values_count_min) + { + int res_w = ImMin((int)frame_size.x, values_count) + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + int item_count = values_count + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); + + // Tooltip on hover + if (hovered && inner_bb.Contains(g.IO.MousePos)) + { + const float t = ImClamp((g.IO.MousePos.x - inner_bb.Min.x) / (inner_bb.Max.x - inner_bb.Min.x), 0.0f, 0.9999f); + const int v_idx = (int)(t * item_count); + IM_ASSERT(v_idx >= 0 && v_idx < values_count); + + const float v0 = values_getter(data, (v_idx + values_offset) % values_count); + const float v1 = values_getter(data, (v_idx + 1 + values_offset) % values_count); + if (plot_type == ImGuiPlotType_Lines) + SetTooltip("%d: %8.4g\n%d: %8.4g", v_idx, v0, v_idx + 1, v1); + else if (plot_type == ImGuiPlotType_Histogram) + SetTooltip("%d: %8.4g", v_idx, v0); + idx_hovered = v_idx; + } + + const float t_step = 1.0f / (float)res_w; + const float inv_scale = (scale_min == scale_max) ? 0.0f : (1.0f / (scale_max - scale_min)); + + float v0 = values_getter(data, (0 + values_offset) % values_count); + float t0 = 0.0f; + ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) ); // Point in the normalized space of our target rectangle + float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (-scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f); // Where does the zero line stands + + const ImU32 col_base = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLines : ImGuiCol_PlotHistogram); + const ImU32 col_hovered = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLinesHovered : ImGuiCol_PlotHistogramHovered); + + for (int n = 0; n < res_w; n++) + { + const float t1 = t0 + t_step; + const int v1_idx = (int)(t0 * item_count + 0.5f); + IM_ASSERT(v1_idx >= 0 && v1_idx < values_count); + const float v1 = values_getter(data, (v1_idx + values_offset + 1) % values_count); + const ImVec2 tp1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) * inv_scale) ); + + // NB: Draw calls are merged together by the DrawList system. Still, we should render our batch are lower level to save a bit of CPU. + ImVec2 pos0 = ImLerp(inner_bb.Min, inner_bb.Max, tp0); + ImVec2 pos1 = ImLerp(inner_bb.Min, inner_bb.Max, (plot_type == ImGuiPlotType_Lines) ? tp1 : ImVec2(tp1.x, histogram_zero_line_t)); + if (plot_type == ImGuiPlotType_Lines) + { + window->DrawList->AddLine(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + else if (plot_type == ImGuiPlotType_Histogram) + { + if (pos1.x >= pos0.x + 2.0f) + pos1.x -= 1.0f; + window->DrawList->AddRectFilled(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); + } + + t0 = t1; + tp0 = tp1; + } + } + + // Text overlay + if (overlay_text) + RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, overlay_text, NULL, NULL, ImVec2(0.5f, 0.0f)); + + if (label_size.x > 0.0f) + RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, inner_bb.Min.y), label); + + // Return hovered index or -1 if none are hovered. + // This is currently not exposed in the public API because we need a larger redesign of the whole thing, but in the short-term we are making it available in PlotEx(). + return idx_hovered; +} + +struct ImGuiPlotArrayGetterData +{ + const float* Values; + int Stride; + + ImGuiPlotArrayGetterData(const float* values, int stride) { Values = values; Stride = stride; } +}; + +static float Plot_ArrayGetter(void* data, int idx) +{ + ImGuiPlotArrayGetterData* plot_data = (ImGuiPlotArrayGetterData*)data; + const float v = *(const float*)(const void*)((const unsigned char*)plot_data->Values + (size_t)idx * plot_data->Stride); + return v; +} + +void ImGui::PlotLines(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Lines, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotLines(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size) +{ + PlotEx(ImGuiPlotType_Lines, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride) +{ + ImGuiPlotArrayGetterData data(values, stride); + PlotEx(ImGuiPlotType_Histogram, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +void ImGui::PlotHistogram(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size) +{ + PlotEx(ImGuiPlotType_Histogram, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Value helpers +// Those is not very useful, legacy API. +//------------------------------------------------------------------------- +// - Value() +//------------------------------------------------------------------------- + +void ImGui::Value(const char* prefix, bool b) +{ + Text("%s: %s", prefix, (b ? "true" : "false")); +} + +void ImGui::Value(const char* prefix, int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, unsigned int v) +{ + Text("%s: %d", prefix, v); +} + +void ImGui::Value(const char* prefix, float v, const char* float_format) +{ + if (float_format) + { + char fmt[64]; + ImFormatString(fmt, IM_ARRAYSIZE(fmt), "%%s: %s", float_format); + Text(fmt, prefix, v); + } + else + { + Text("%s: %.3f", prefix, v); + } +} + +//------------------------------------------------------------------------- +// [SECTION] MenuItem, BeginMenu, EndMenu, etc. +//------------------------------------------------------------------------- +// - ImGuiMenuColumns [Internal] +// - BeginMenuBar() +// - EndMenuBar() +// - BeginMainMenuBar() +// - EndMainMenuBar() +// - BeginMenu() +// - EndMenu() +// - MenuItem() +//------------------------------------------------------------------------- + +// Helpers for internal use +ImGuiMenuColumns::ImGuiMenuColumns() +{ + Spacing = Width = NextWidth = 0.0f; + memset(Pos, 0, sizeof(Pos)); + memset(NextWidths, 0, sizeof(NextWidths)); +} + +void ImGuiMenuColumns::Update(int count, float spacing, bool clear) +{ + IM_ASSERT(count == IM_ARRAYSIZE(Pos)); + IM_UNUSED(count); + Width = NextWidth = 0.0f; + Spacing = spacing; + if (clear) + memset(NextWidths, 0, sizeof(NextWidths)); + for (int i = 0; i < IM_ARRAYSIZE(Pos); i++) + { + if (i > 0 && NextWidths[i] > 0.0f) + Width += Spacing; + Pos[i] = IM_FLOOR(Width); + Width += NextWidths[i]; + NextWidths[i] = 0.0f; + } +} + +float ImGuiMenuColumns::DeclColumns(float w0, float w1, float w2) // not using va_arg because they promote float to double +{ + NextWidth = 0.0f; + NextWidths[0] = ImMax(NextWidths[0], w0); + NextWidths[1] = ImMax(NextWidths[1], w1); + NextWidths[2] = ImMax(NextWidths[2], w2); + for (int i = 0; i < IM_ARRAYSIZE(Pos); i++) + NextWidth += NextWidths[i] + ((i > 0 && NextWidths[i] > 0.0f) ? Spacing : 0.0f); + return ImMax(Width, NextWidth); +} + +float ImGuiMenuColumns::CalcExtraSpace(float avail_w) const +{ + return ImMax(0.0f, avail_w - Width); +} + +// FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere.. +// Currently the main responsibility of this function being to setup clip-rect + horizontal layout + menu navigation layer. +// Ideally we also want this to be responsible for claiming space out of the main window scrolling rectangle, in which case ImGuiWindowFlags_MenuBar will become unnecessary. +// Then later the same system could be used for multiple menu-bars, scrollbars, side-bars. +bool ImGui::BeginMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + if (!(window->Flags & ImGuiWindowFlags_MenuBar)) + return false; + + IM_ASSERT(!window->DC.MenuBarAppending); + BeginGroup(); // Backup position on layer 0 // FIXME: Misleading to use a group for that backup/restore + PushID("##menubar"); + + // We don't clip with current window clipping rectangle as it is already set to the area below. However we clip with window full rect. + // We remove 1 worth of rounding to Max.x to that text in long menus and small windows don't tend to display over the lower-right rounded area, which looks particularly glitchy. + ImRect bar_rect = window->MenuBarRect(); + ImRect clip_rect(IM_ROUND(bar_rect.Min.x + window->WindowBorderSize), IM_ROUND(bar_rect.Min.y + window->WindowBorderSize), IM_ROUND(ImMax(bar_rect.Min.x, bar_rect.Max.x - ImMax(window->WindowRounding, window->WindowBorderSize))), IM_ROUND(bar_rect.Max.y)); + clip_rect.ClipWith(window->OuterRectClipped); + PushClipRect(clip_rect.Min, clip_rect.Max, false); + + // We overwrite CursorMaxPos because BeginGroup sets it to CursorPos (essentially the .EmitItem hack in EndMenuBar() would need something analoguous here, maybe a BeginGroupEx() with flags). + window->DC.CursorPos = window->DC.CursorMaxPos = ImVec2(bar_rect.Min.x + window->DC.MenuBarOffset.x, bar_rect.Min.y + window->DC.MenuBarOffset.y); + window->DC.LayoutType = ImGuiLayoutType_Horizontal; + window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; + window->DC.MenuBarAppending = true; + AlignTextToFramePadding(); + return true; +} + +void ImGui::EndMenuBar() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return; + ImGuiContext& g = *GImGui; + + // Nav: When a move request within one of our child menu failed, capture the request to navigate among our siblings. + if (NavMoveRequestButNoResultYet() && (g.NavMoveDir == ImGuiDir_Left || g.NavMoveDir == ImGuiDir_Right) && (g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) + { + ImGuiWindow* nav_earliest_child = g.NavWindow; + while (nav_earliest_child->ParentWindow && (nav_earliest_child->ParentWindow->Flags & ImGuiWindowFlags_ChildMenu)) + nav_earliest_child = nav_earliest_child->ParentWindow; + if (nav_earliest_child->ParentWindow == window && nav_earliest_child->DC.ParentLayoutType == ImGuiLayoutType_Horizontal && g.NavMoveRequestForward == ImGuiNavForward_None) + { + // To do so we claim focus back, restore NavId and then process the movement request for yet another frame. + // This involve a one-frame delay which isn't very problematic in this situation. We could remove it by scoring in advance for multiple window (probably not worth the hassle/cost) + const ImGuiNavLayer layer = ImGuiNavLayer_Menu; + IM_ASSERT(window->DC.NavLayerActiveMaskNext & (1 << layer)); // Sanity check + FocusWindow(window); + SetNavIDWithRectRel(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); + g.NavLayer = layer; + g.NavDisableHighlight = true; // Hide highlight for the current frame so we don't see the intermediary selection. + g.NavMoveRequestForward = ImGuiNavForward_ForwardQueued; + NavMoveRequestCancel(); + } + } + + IM_ASSERT(window->Flags & ImGuiWindowFlags_MenuBar); + IM_ASSERT(window->DC.MenuBarAppending); + PopClipRect(); + PopID(); + window->DC.MenuBarOffset.x = window->DC.CursorPos.x - window->MenuBarRect().Min.x; // Save horizontal position so next append can reuse it. This is kinda equivalent to a per-layer CursorPos. + window->DC.GroupStack.back().EmitItem = false; + EndGroup(); // Restore position on layer 0 + window->DC.LayoutType = ImGuiLayoutType_Vertical; + window->DC.NavLayerCurrent = ImGuiNavLayer_Main; + window->DC.MenuBarAppending = false; +} + +// For the main menu bar, which cannot be moved, we honor g.Style.DisplaySafeAreaPadding to ensure text can be visible on a TV set. +bool ImGui::BeginMainMenuBar() +{ + ImGuiContext& g = *GImGui; + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(g.Style.DisplaySafeAreaPadding.x, ImMax(g.Style.DisplaySafeAreaPadding.y - g.Style.FramePadding.y, 0.0f)); + SetNextWindowPos(ImVec2(0.0f, 0.0f)); + SetNextWindowSize(ImVec2(g.IO.DisplaySize.x, g.NextWindowData.MenuBarOffsetMinVal.y + g.FontBaseSize + g.Style.FramePadding.y)); + PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); + PushStyleVar(ImGuiStyleVar_WindowMinSize, ImVec2(0, 0)); + ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_MenuBar; + bool is_open = Begin("##MainMenuBar", NULL, window_flags) && BeginMenuBar(); + PopStyleVar(2); + g.NextWindowData.MenuBarOffsetMinVal = ImVec2(0.0f, 0.0f); + if (!is_open) + { + End(); + return false; + } + return true; //-V1020 +} + +void ImGui::EndMainMenuBar() +{ + EndMenuBar(); + + // When the user has left the menu layer (typically: closed menus through activation of an item), we restore focus to the previous window + // FIXME: With this strategy we won't be able to restore a NULL focus. + ImGuiContext& g = *GImGui; + if (g.CurrentWindow == g.NavWindow && g.NavLayer == ImGuiNavLayer_Main && !g.NavAnyRequest) + FocusTopMostWindowUnderOne(g.NavWindow, NULL); + + End(); +} + +bool ImGui::BeginMenu(const char* label, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + const ImGuiStyle& style = g.Style; + const ImGuiID id = window->GetID(label); + bool menu_is_open = IsPopupOpen(id, ImGuiPopupFlags_None); + + // Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu) + ImGuiWindowFlags flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; + if (window->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) + flags |= ImGuiWindowFlags_ChildWindow; + + // If a menu with same the ID was already submitted, we will append to it, matching the behavior of Begin(). + // We are relying on a O(N) search - so O(N log N) over the frame - which seems like the most efficient for the expected small amount of BeginMenu() calls per frame. + // If somehow this is ever becoming a problem we can switch to use e.g. a ImGuiStorager mapping key to last frame used. + if (g.MenusIdSubmittedThisFrame.contains(id)) + { + if (menu_is_open) + menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + else + g.NextWindowData.ClearFlags(); // we behave like Begin() and need to consume those values + return menu_is_open; + } + + // Tag menu as used. Next time BeginMenu() with same ID is called it will append to existing menu + g.MenusIdSubmittedThisFrame.push_back(id); + + ImVec2 label_size = CalcTextSize(label, NULL, true); + bool pressed; + bool menuset_is_open = !(window->Flags & ImGuiWindowFlags_Popup) && (g.OpenPopupStack.Size > g.BeginPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].OpenParentId == window->IDStack.back()); + ImGuiWindow* backed_nav_window = g.NavWindow; + if (menuset_is_open) + g.NavWindow = window; // Odd hack to allow hovering across menus of a same menu-set (otherwise we wouldn't be able to hover parent) + + // The reference position stored in popup_pos will be used by Begin() to find a suitable position for the child menu, + // However the final position is going to be different! It is chosen by FindBestWindowPosForPopup(). + // e.g. Menus tend to overlap each other horizontally to amplify relative Z-ordering. + ImVec2 popup_pos, pos = window->DC.CursorPos; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Menu inside an horizontal menu bar + // Selectable extend their highlight by half ItemSpacing in each direction. + // For ChildMenu, the popup position will be overwritten by the call to FindBestWindowPosForPopup() in Begin() + popup_pos = ImVec2(pos.x - 1.0f - IM_FLOOR(style.ItemSpacing.x * 0.5f), pos.y - style.FramePadding.y + window->MenuBarHeight()); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + float w = label_size.x; + pressed = Selectable(label, menu_is_open, ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups | (!enabled ? ImGuiSelectableFlags_Disabled : 0), ImVec2(w, 0.0f)); + PopStyleVar(); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu inside a menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + popup_pos = ImVec2(pos.x, pos.y - style.WindowPadding.y); + float min_w = window->DC.MenuColumns.DeclColumns(label_size.x, 0.0f, IM_FLOOR(g.FontSize * 1.20f)); // Feedback to next frame + float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + pressed = Selectable(label, menu_is_open, ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups | ImGuiSelectableFlags_SpanAvailWidth | (!enabled ? ImGuiSelectableFlags_Disabled : 0), ImVec2(min_w, 0.0f)); + ImU32 text_col = GetColorU32(enabled ? ImGuiCol_Text : ImGuiCol_TextDisabled); + RenderArrow(window->DrawList, pos + ImVec2(window->DC.MenuColumns.Pos[2] + extra_w + g.FontSize * 0.30f, 0.0f), text_col, ImGuiDir_Right); + } + + const bool hovered = enabled && ItemHoverable(window->DC.LastItemRect, id); + if (menuset_is_open) + g.NavWindow = backed_nav_window; + + bool want_open = false; + bool want_close = false; + if (window->DC.LayoutType == ImGuiLayoutType_Vertical) // (window->Flags & (ImGuiWindowFlags_Popup|ImGuiWindowFlags_ChildMenu)) + { + // Close menu when not hovering it anymore unless we are moving roughly in the direction of the menu + // Implement http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown to avoid using timers, so menus feels more reactive. + bool moving_toward_other_child_menu = false; + + ImGuiWindow* child_menu_window = (g.BeginPopupStack.Size < g.OpenPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].SourceWindow == window) ? g.OpenPopupStack[g.BeginPopupStack.Size].Window : NULL; + if (g.HoveredWindow == window && child_menu_window != NULL && !(window->Flags & ImGuiWindowFlags_MenuBar)) + { + // FIXME-DPI: Values should be derived from a master "scale" factor. + ImRect next_window_rect = child_menu_window->Rect(); + ImVec2 ta = g.IO.MousePos - g.IO.MouseDelta; + ImVec2 tb = (window->Pos.x < child_menu_window->Pos.x) ? next_window_rect.GetTL() : next_window_rect.GetTR(); + ImVec2 tc = (window->Pos.x < child_menu_window->Pos.x) ? next_window_rect.GetBL() : next_window_rect.GetBR(); + float extra = ImClamp(ImFabs(ta.x - tb.x) * 0.30f, 5.0f, 30.0f); // add a bit of extra slack. + ta.x += (window->Pos.x < child_menu_window->Pos.x) ? -0.5f : +0.5f; // to avoid numerical issues + tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -100.0f); // triangle is maximum 200 high to limit the slope and the bias toward large sub-menus // FIXME: Multiply by fb_scale? + tc.y = ta.y + ImMin((tc.y + extra) - ta.y, +100.0f); + moving_toward_other_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); + //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_within_opened_triangle ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] + } + if (menu_is_open && !hovered && g.HoveredWindow == window && g.HoveredIdPreviousFrame != 0 && g.HoveredIdPreviousFrame != id && !moving_toward_other_child_menu) + want_close = true; + + if (!menu_is_open && hovered && pressed) // Click to open + want_open = true; + else if (!menu_is_open && hovered && !moving_toward_other_child_menu) // Hover to open + want_open = true; + + if (g.NavActivateId == id) + { + want_close = menu_is_open; + want_open = !menu_is_open; + } + if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Right) // Nav-Right to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + else + { + // Menu bar + if (menu_is_open && pressed && menuset_is_open) // Click an open menu again to close it + { + want_close = true; + want_open = menu_is_open = false; + } + else if (pressed || (hovered && menuset_is_open && !menu_is_open)) // First click to open, then hover to open others + { + want_open = true; + } + else if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Down) // Nav-Down to open + { + want_open = true; + NavMoveRequestCancel(); + } + } + + if (!enabled) // explicitly close if an open menu becomes disabled, facilitate users code a lot in pattern such as 'if (BeginMenu("options", has_object)) { ..use object.. }' + want_close = true; + if (want_close && IsPopupOpen(id, ImGuiPopupFlags_None)) + ClosePopupToLevel(g.BeginPopupStack.Size, true); + + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags | ImGuiItemStatusFlags_Openable | (menu_is_open ? ImGuiItemStatusFlags_Opened : 0)); + + if (!menu_is_open && want_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) + { + // Don't recycle same menu level in the same frame, first close the other menu and yield for a frame. + OpenPopup(label); + return false; + } + + menu_is_open |= want_open; + if (want_open) + OpenPopup(label); + + if (menu_is_open) + { + SetNextWindowPos(popup_pos, ImGuiCond_Always); + menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) + } + else + { + g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values + } + + return menu_is_open; +} + +void ImGui::EndMenu() +{ + // Nav: When a left move request _within our child menu_ failed, close ourselves (the _parent_ menu). + // A menu doesn't close itself because EndMenuBar() wants the catch the last Left<>Right inputs. + // However, it means that with the current code, a BeginMenu() from outside another menu or a menu-bar won't be closable with the Left direction. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (g.NavWindow && g.NavWindow->ParentWindow == window && g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet() && window->DC.LayoutType == ImGuiLayoutType_Vertical) + { + ClosePopupToLevel(g.BeginPopupStack.Size, true); + NavMoveRequestCancel(); + } + + EndPopup(); +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled) +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems) + return false; + + ImGuiContext& g = *GImGui; + ImGuiStyle& style = g.Style; + ImVec2 pos = window->DC.CursorPos; + ImVec2 label_size = CalcTextSize(label, NULL, true); + + // We've been using the equivalent of ImGuiSelectableFlags_SetNavIdOnHover on all Selectable() since early Nav system days (commit 43ee5d73), + // but I am unsure whether this should be kept at all. For now moved it to be an opt-in feature used by menus only. + ImGuiSelectableFlags flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_SetNavIdOnHover | (enabled ? 0 : ImGuiSelectableFlags_Disabled); + bool pressed; + if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) + { + // Mimic the exact layout spacing of BeginMenu() to allow MenuItem() inside a menu bar, which is a little misleading but may be useful + // Note that in this situation we render neither the shortcut neither the selected tick mark + float w = label_size.x; + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); + PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); + pressed = Selectable(label, false, flags, ImVec2(w, 0.0f)); + PopStyleVar(); + window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). + } + else + { + // Menu item inside a vertical menu + // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. + // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. + float shortcut_w = shortcut ? CalcTextSize(shortcut, NULL).x : 0.0f; + float min_w = window->DC.MenuColumns.DeclColumns(label_size.x, shortcut_w, IM_FLOOR(g.FontSize * 1.20f)); // Feedback for next frame + float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); + pressed = Selectable(label, false, flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); + if (shortcut_w > 0.0f) + { + PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]); + RenderText(pos + ImVec2(window->DC.MenuColumns.Pos[1] + extra_w, 0.0f), shortcut, NULL, false); + PopStyleColor(); + } + if (selected) + RenderCheckMark(window->DrawList, pos + ImVec2(window->DC.MenuColumns.Pos[2] + extra_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(enabled ? ImGuiCol_Text : ImGuiCol_TextDisabled), g.FontSize * 0.866f); + } + + IMGUI_TEST_ENGINE_ITEM_INFO(window->DC.LastItemId, label, window->DC.ItemFlags | ImGuiItemStatusFlags_Checkable | (selected ? ImGuiItemStatusFlags_Checked : 0)); + return pressed; +} + +bool ImGui::MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled) +{ + if (MenuItem(label, shortcut, p_selected ? *p_selected : false, enabled)) + { + if (p_selected) + *p_selected = !*p_selected; + return true; + } + return false; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. +//------------------------------------------------------------------------- +// - BeginTabBar() +// - BeginTabBarEx() [Internal] +// - EndTabBar() +// - TabBarLayout() [Internal] +// - TabBarCalcTabID() [Internal] +// - TabBarCalcMaxTabWidth() [Internal] +// - TabBarFindTabById() [Internal] +// - TabBarRemoveTab() [Internal] +// - TabBarCloseTab() [Internal] +// - TabBarScrollClamp() [Internal] +// - TabBarScrollToTab() [Internal] +// - TabBarQueueChangeTabOrder() [Internal] +// - TabBarScrollingButtons() [Internal] +// - TabBarTabListPopupButton() [Internal] +//------------------------------------------------------------------------- + +struct ImGuiTabBarSection +{ + int TabCount; // Number of tabs in this section. + float Width; // Sum of width of tabs in this section (after shrinking down) + float Spacing; // Horizontal spacing at the end of the section. + + ImGuiTabBarSection() { memset(this, 0, sizeof(*this)); } +}; + +namespace ImGui +{ + static void TabBarLayout(ImGuiTabBar* tab_bar); + static ImU32 TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label); + static float TabBarCalcMaxTabWidth(); + static float TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling); + static void TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, ImGuiTabBarSection* sections); + static ImGuiTabItem* TabBarScrollingButtons(ImGuiTabBar* tab_bar); + static ImGuiTabItem* TabBarTabListPopupButton(ImGuiTabBar* tab_bar); +} + +ImGuiTabBar::ImGuiTabBar() +{ + ID = 0; + SelectedTabId = NextSelectedTabId = VisibleTabId = 0; + CurrFrameVisible = PrevFrameVisible = -1; + LastTabContentHeight = 0.0f; + WidthAllTabs = WidthAllTabsIdeal = 0.0f; + ScrollingAnim = ScrollingTarget = ScrollingTargetDistToVisibility = ScrollingSpeed = 0.0f; + ScrollingRectMinX = ScrollingRectMaxX = 0.0f; + Flags = ImGuiTabBarFlags_None; + ReorderRequestTabId = 0; + ReorderRequestDir = 0; + TabsActiveCount = 0; + WantLayout = VisibleTabWasSubmitted = TabsAddedNew = false; + LastTabItemIdx = -1; +} + +static int IMGUI_CDECL TabItemComparerBySection(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + const int a_section = (a->Flags & ImGuiTabItemFlags_Leading) ? 0 : (a->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; + const int b_section = (b->Flags & ImGuiTabItemFlags_Leading) ? 0 : (b->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; + if (a_section != b_section) + return a_section - b_section; + return (int)(a->IndexDuringLayout - b->IndexDuringLayout); +} + +static int IMGUI_CDECL TabItemComparerByBeginOrder(const void* lhs, const void* rhs) +{ + const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; + const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; + return (int)(a->BeginOrder - b->BeginOrder); +} + +static ImGuiTabBar* GetTabBarFromTabBarRef(const ImGuiPtrOrIndex& ref) +{ + ImGuiContext& g = *GImGui; + return ref.Ptr ? (ImGuiTabBar*)ref.Ptr : g.TabBars.GetByIndex(ref.Index); +} + +static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + if (g.TabBars.Contains(tab_bar)) + return ImGuiPtrOrIndex(g.TabBars.GetIndex(tab_bar)); + return ImGuiPtrOrIndex(tab_bar); +} + +bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiID id = window->GetID(str_id); + ImGuiTabBar* tab_bar = g.TabBars.GetOrAddByKey(id); + ImRect tab_bar_bb = ImRect(window->DC.CursorPos.x, window->DC.CursorPos.y, window->WorkRect.Max.x, window->DC.CursorPos.y + g.FontSize + g.Style.FramePadding.y * 2); + tab_bar->ID = id; + return BeginTabBarEx(tab_bar, tab_bar_bb, flags | ImGuiTabBarFlags_IsFocused); +} + +bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + if ((flags & ImGuiTabBarFlags_DockNode) == 0) + PushOverrideID(tab_bar->ID); + + // Add to stack + g.CurrentTabBarStack.push_back(GetTabBarRefFromTabBar(tab_bar)); + g.CurrentTabBar = tab_bar; + + if (tab_bar->CurrFrameVisible == g.FrameCount) + { + //IMGUI_DEBUG_LOG("BeginTabBarEx already called this frame\n", g.FrameCount); + IM_ASSERT(0); + return true; + } + + // Ensure correct ordering when toggling ImGuiTabBarFlags_Reorderable flag, or when a new tab was added while being not reorderable + if ((flags & ImGuiTabBarFlags_Reorderable) != (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) || (tab_bar->TabsAddedNew && !(flags & ImGuiTabBarFlags_Reorderable))) + if (tab_bar->Tabs.Size > 1) + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerByBeginOrder); + tab_bar->TabsAddedNew = false; + + // Flags + if ((flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) + flags |= ImGuiTabBarFlags_FittingPolicyDefault_; + + tab_bar->Flags = flags; + tab_bar->BarRect = tab_bar_bb; + tab_bar->WantLayout = true; // Layout will be done on the first call to ItemTab() + tab_bar->PrevFrameVisible = tab_bar->CurrFrameVisible; + tab_bar->CurrFrameVisible = g.FrameCount; + tab_bar->FramePadding = g.Style.FramePadding; + tab_bar->TabsActiveCount = 0; + + // Set cursor pos in a way which only be used in the off-chance the user erroneously submits item before BeginTabItem(): items will overlap + window->DC.CursorPos.x = tab_bar->BarRect.Min.x; + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + g.Style.ItemSpacing.y; + + // Draw separator + const ImU32 col = GetColorU32((flags & ImGuiTabBarFlags_IsFocused) ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive); + const float y = tab_bar->BarRect.Max.y - 1.0f; + { + const float separator_min_x = tab_bar->BarRect.Min.x - IM_FLOOR(window->WindowPadding.x * 0.5f); + const float separator_max_x = tab_bar->BarRect.Max.x + IM_FLOOR(window->WindowPadding.x * 0.5f); + window->DrawList->AddLine(ImVec2(separator_min_x, y), ImVec2(separator_max_x, y), col, 1.0f); + } + return true; +} + +void ImGui::EndTabBar() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Mismatched BeginTabBar()/EndTabBar()!"); + return; + } + if (tab_bar->WantLayout) // Fallback in case no TabItem have been submitted + TabBarLayout(tab_bar); + + // Restore the last visible height if no tab is visible, this reduce vertical flicker/movement when a tabs gets removed without calling SetTabItemClosed(). + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + if (tab_bar->VisibleTabWasSubmitted || tab_bar->VisibleTabId == 0 || tab_bar_appearing) + tab_bar->LastTabContentHeight = ImMax(window->DC.CursorPos.y - tab_bar->BarRect.Max.y, 0.0f); + else + window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->LastTabContentHeight; + + if ((tab_bar->Flags & ImGuiTabBarFlags_DockNode) == 0) + PopID(); + + g.CurrentTabBarStack.pop_back(); + g.CurrentTabBar = g.CurrentTabBarStack.empty() ? NULL : GetTabBarFromTabBarRef(g.CurrentTabBarStack.back()); +} + +// This is called only once a frame before by the first call to ItemTab() +// The reason we're not calling it in BeginTabBar() is to leave a chance to the user to call the SetTabItemClosed() functions. +static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + tab_bar->WantLayout = false; + + // Garbage collect by compacting list + // Detect if we need to sort out tab list (e.g. in rare case where a tab changed section) + int tab_dst_n = 0; + bool need_sort_by_section = false; + ImGuiTabBarSection sections[3]; // Layout sections: Leading, Central, Trailing + for (int tab_src_n = 0; tab_src_n < tab_bar->Tabs.Size; tab_src_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_src_n]; + if (tab->LastFrameVisible < tab_bar->PrevFrameVisible || tab->WantClose) + { + // Remove tab + if (tab_bar->VisibleTabId == tab->ID) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab->ID) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab->ID) { tab_bar->NextSelectedTabId = 0; } + continue; + } + if (tab_dst_n != tab_src_n) + tab_bar->Tabs[tab_dst_n] = tab_bar->Tabs[tab_src_n]; + + tab = &tab_bar->Tabs[tab_dst_n]; + tab->IndexDuringLayout = (ImS8)tab_dst_n; + + // We will need sorting if tabs have changed section (e.g. moved from one of Leading/Central/Trailing to another) + int curr_tab_section_n = (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; + if (tab_dst_n > 0) + { + ImGuiTabItem* prev_tab = &tab_bar->Tabs[tab_dst_n - 1]; + int prev_tab_section_n = (prev_tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (prev_tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; + if (curr_tab_section_n == 0 && prev_tab_section_n != 0) + need_sort_by_section = true; + if (prev_tab_section_n == 2 && curr_tab_section_n != 2) + need_sort_by_section = true; + } + + sections[curr_tab_section_n].TabCount++; + tab_dst_n++; + } + if (tab_bar->Tabs.Size != tab_dst_n) + tab_bar->Tabs.resize(tab_dst_n); + + if (need_sort_by_section) + ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerBySection); + + // Calculate spacing between sections + sections[0].Spacing = sections[0].TabCount > 0 && (sections[1].TabCount + sections[2].TabCount) > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + sections[1].Spacing = sections[1].TabCount > 0 && sections[2].TabCount > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; + + // Setup next selected tab + ImGuiID scroll_track_selected_tab_id = 0; + if (tab_bar->NextSelectedTabId) + { + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId; + tab_bar->NextSelectedTabId = 0; + scroll_track_selected_tab_id = tab_bar->SelectedTabId; + } + + // Process order change request (we could probably process it when requested but it's just saner to do it in a single spot). + if (tab_bar->ReorderRequestTabId != 0) + { + if (TabBarProcessReorder(tab_bar)) + if (tab_bar->ReorderRequestTabId == tab_bar->SelectedTabId) + scroll_track_selected_tab_id = tab_bar->ReorderRequestTabId; + tab_bar->ReorderRequestTabId = 0; + } + + // Tab List Popup (will alter tab_bar->BarRect and therefore the available width!) + const bool tab_list_popup_button = (tab_bar->Flags & ImGuiTabBarFlags_TabListPopupButton) != 0; + if (tab_list_popup_button) + if (ImGuiTabItem* tab_to_select = TabBarTabListPopupButton(tab_bar)) // NB: Will alter BarRect.Min.x! + scroll_track_selected_tab_id = tab_bar->SelectedTabId = tab_to_select->ID; + + // Leading/Trailing tabs will be shrink only if central one aren't visible anymore, so layout the shrink data as: leading, trailing, central + // (whereas our tabs are stored as: leading, central, trailing) + int shrink_buffer_indexes[3] = { 0, sections[0].TabCount + sections[2].TabCount, sections[0].TabCount }; + g.ShrinkWidthBuffer.resize(tab_bar->Tabs.Size); + + // Compute ideal tabs widths + store them into shrink buffer + ImGuiTabItem* most_recently_selected_tab = NULL; + int curr_section_n = -1; + bool found_selected_tab_id = false; + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + IM_ASSERT(tab->LastFrameVisible >= tab_bar->PrevFrameVisible); + + if ((most_recently_selected_tab == NULL || most_recently_selected_tab->LastFrameSelected < tab->LastFrameSelected) && !(tab->Flags & ImGuiTabItemFlags_Button)) + most_recently_selected_tab = tab; + if (tab->ID == tab_bar->SelectedTabId) + found_selected_tab_id = true; + if (scroll_track_selected_tab_id == 0 && g.NavJustMovedToId == tab->ID) + scroll_track_selected_tab_id = tab->ID; + + // Refresh tab width immediately, otherwise changes of style e.g. style.FramePadding.x would noticeably lag in the tab bar. + // Additionally, when using TabBarAddTab() to manipulate tab bar order we occasionally insert new tabs that don't have a width yet, + // and we cannot wait for the next BeginTabItem() call. We cannot compute this width within TabBarAddTab() because font size depends on the active window. + const char* tab_name = tab_bar->GetTabName(tab); + const bool has_close_button = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) ? false : true; + tab->ContentWidth = TabItemCalcSize(tab_name, has_close_button).x; + + int section_n = (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; + ImGuiTabBarSection* section = §ions[section_n]; + section->Width += tab->ContentWidth + (section_n == curr_section_n ? g.Style.ItemInnerSpacing.x : 0.0f); + curr_section_n = section_n; + + // Store data so we can build an array sorted by width if we need to shrink tabs down + int shrink_buffer_index = shrink_buffer_indexes[section_n]++; + g.ShrinkWidthBuffer[shrink_buffer_index].Index = tab_n; + g.ShrinkWidthBuffer[shrink_buffer_index].Width = tab->ContentWidth; + + IM_ASSERT(tab->ContentWidth > 0.0f); + tab->Width = tab->ContentWidth; + } + + // Compute total ideal width (used for e.g. auto-resizing a window) + tab_bar->WidthAllTabsIdeal = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + tab_bar->WidthAllTabsIdeal += sections[section_n].Width + sections[section_n].Spacing; + + // Horizontal scrolling buttons + // (note that TabBarScrollButtons() will alter BarRect.Max.x) + if ((tab_bar->WidthAllTabsIdeal > tab_bar->BarRect.GetWidth() && tab_bar->Tabs.Size > 1) && !(tab_bar->Flags & ImGuiTabBarFlags_NoTabListScrollingButtons) && (tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyScroll)) + if (ImGuiTabItem* scroll_track_selected_tab = TabBarScrollingButtons(tab_bar)) + { + scroll_track_selected_tab_id = scroll_track_selected_tab->ID; + if (!(scroll_track_selected_tab->Flags & ImGuiTabItemFlags_Button)) + tab_bar->SelectedTabId = scroll_track_selected_tab_id; + } + + // Shrink widths if full tabs don't fit in their allocated space + float section_0_w = sections[0].Width + sections[0].Spacing; + float section_1_w = sections[1].Width + sections[1].Spacing; + float section_2_w = sections[2].Width + sections[2].Spacing; + bool central_section_is_visible = (section_0_w + section_2_w) < tab_bar->BarRect.GetWidth(); + float width_excess; + if (central_section_is_visible) + width_excess = ImMax(section_1_w - (tab_bar->BarRect.GetWidth() - section_0_w - section_2_w), 0.0f); // Excess used to shrink central section + else + width_excess = (section_0_w + section_2_w) - tab_bar->BarRect.GetWidth(); // Excess used to shrink leading/trailing section + + // With ImGuiTabBarFlags_FittingPolicyScroll policy, we will only shrink leading/trailing if the central section is not visible anymore + if (width_excess > 0.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) + { + int shrink_data_count = (central_section_is_visible ? sections[1].TabCount : sections[0].TabCount + sections[2].TabCount); + int shrink_data_offset = (central_section_is_visible ? sections[0].TabCount + sections[2].TabCount : 0); + ShrinkWidths(g.ShrinkWidthBuffer.Data + shrink_data_offset, shrink_data_count, width_excess); + + // Apply shrunk values into tabs and sections + for (int tab_n = shrink_data_offset; tab_n < shrink_data_offset + shrink_data_count; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[g.ShrinkWidthBuffer[tab_n].Index]; + float shrinked_width = IM_FLOOR(g.ShrinkWidthBuffer[tab_n].Width); + if (shrinked_width < 0.0f) + continue; + + int section_n = (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; + sections[section_n].Width -= (tab->Width - shrinked_width); + tab->Width = shrinked_width; + } + } + + // Layout all active tabs + int section_tab_index = 0; + float tab_offset = 0.0f; + tab_bar->WidthAllTabs = 0.0f; + for (int section_n = 0; section_n < 3; section_n++) + { + ImGuiTabBarSection* section = §ions[section_n]; + if (section_n == 2) + tab_offset = ImMin(ImMax(0.0f, tab_bar->BarRect.GetWidth() - section->Width), tab_offset); + + for (int tab_n = 0; tab_n < section->TabCount; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[section_tab_index + tab_n]; + tab->Offset = tab_offset; + tab_offset += tab->Width + (tab_n < section->TabCount - 1 ? g.Style.ItemInnerSpacing.x : 0.0f); + } + tab_bar->WidthAllTabs += ImMax(section->Width + section->Spacing, 0.0f); + tab_offset += section->Spacing; + section_tab_index += section->TabCount; + } + + // If we have lost the selected tab, select the next most recently active one + if (found_selected_tab_id == false) + tab_bar->SelectedTabId = 0; + if (tab_bar->SelectedTabId == 0 && tab_bar->NextSelectedTabId == 0 && most_recently_selected_tab != NULL) + scroll_track_selected_tab_id = tab_bar->SelectedTabId = most_recently_selected_tab->ID; + + // Lock in visible tab + tab_bar->VisibleTabId = tab_bar->SelectedTabId; + tab_bar->VisibleTabWasSubmitted = false; + + // Update scrolling + if (scroll_track_selected_tab_id) + if (ImGuiTabItem* scroll_track_selected_tab = TabBarFindTabByID(tab_bar, scroll_track_selected_tab_id)) + TabBarScrollToTab(tab_bar, scroll_track_selected_tab, sections); + tab_bar->ScrollingAnim = TabBarScrollClamp(tab_bar, tab_bar->ScrollingAnim); + tab_bar->ScrollingTarget = TabBarScrollClamp(tab_bar, tab_bar->ScrollingTarget); + if (tab_bar->ScrollingAnim != tab_bar->ScrollingTarget) + { + // Scrolling speed adjust itself so we can always reach our target in 1/3 seconds. + // Teleport if we are aiming far off the visible line + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, 70.0f * g.FontSize); + tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, ImFabs(tab_bar->ScrollingTarget - tab_bar->ScrollingAnim) / 0.3f); + const bool teleport = (tab_bar->PrevFrameVisible + 1 < g.FrameCount) || (tab_bar->ScrollingTargetDistToVisibility > 10.0f * g.FontSize); + tab_bar->ScrollingAnim = teleport ? tab_bar->ScrollingTarget : ImLinearSweep(tab_bar->ScrollingAnim, tab_bar->ScrollingTarget, g.IO.DeltaTime * tab_bar->ScrollingSpeed); + } + else + { + tab_bar->ScrollingSpeed = 0.0f; + } + tab_bar->ScrollingRectMinX = tab_bar->BarRect.Min.x + sections[0].Width + sections[0].Spacing; + tab_bar->ScrollingRectMaxX = tab_bar->BarRect.Max.x - sections[2].Width - sections[1].Spacing; + + // Clear name buffers + if ((tab_bar->Flags & ImGuiTabBarFlags_DockNode) == 0) + tab_bar->TabsNames.Buf.resize(0); + + // Actual layout in host window (we don't do it in BeginTabBar() so as not to waste an extra frame) + ImGuiWindow* window = g.CurrentWindow; + window->DC.CursorPos = tab_bar->BarRect.Min; + ItemSize(ImVec2(tab_bar->WidthAllTabsIdeal, tab_bar->BarRect.GetHeight()), tab_bar->FramePadding.y); +} + +// Dockables uses Name/ID in the global namespace. Non-dockable items use the ID stack. +static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label) +{ + if (tab_bar->Flags & ImGuiTabBarFlags_DockNode) + { + ImGuiID id = ImHashStr(label); + KeepAliveID(id); + return id; + } + else + { + ImGuiWindow* window = GImGui->CurrentWindow; + return window->GetID(label); + } +} + +static float ImGui::TabBarCalcMaxTabWidth() +{ + ImGuiContext& g = *GImGui; + return g.FontSize * 20.0f; +} + +ImGuiTabItem* ImGui::TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (tab_id != 0) + for (int n = 0; n < tab_bar->Tabs.Size; n++) + if (tab_bar->Tabs[n].ID == tab_id) + return &tab_bar->Tabs[n]; + return NULL; +} + +// The *TabId fields be already set by the docking system _before_ the actual TabItem was created, so we clear them regardless. +void ImGui::TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id) +{ + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab_bar->Tabs.erase(tab); + if (tab_bar->VisibleTabId == tab_id) { tab_bar->VisibleTabId = 0; } + if (tab_bar->SelectedTabId == tab_id) { tab_bar->SelectedTabId = 0; } + if (tab_bar->NextSelectedTabId == tab_id) { tab_bar->NextSelectedTabId = 0; } +} + +// Called on manual closure attempt +void ImGui::TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) +{ + IM_ASSERT(!(tab->Flags & ImGuiTabItemFlags_Button)); + if (!(tab->Flags & ImGuiTabItemFlags_UnsavedDocument)) + { + // This will remove a frame of lag for selecting another tab on closure. + // However we don't run it in the case where the 'Unsaved' flag is set, so user gets a chance to fully undo the closure + tab->WantClose = true; + if (tab_bar->VisibleTabId == tab->ID) + { + tab->LastFrameVisible = -1; + tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = 0; + } + } + else + { + // Actually select before expecting closure attempt (on an UnsavedDocument tab user is expect to e.g. show a popup) + if (tab_bar->VisibleTabId != tab->ID) + tab_bar->NextSelectedTabId = tab->ID; + } +} + +static float ImGui::TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling) +{ + scrolling = ImMin(scrolling, tab_bar->WidthAllTabs - tab_bar->BarRect.GetWidth()); + return ImMax(scrolling, 0.0f); +} + +static void ImGui::TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, ImGuiTabBarSection* sections) +{ + if (tab->Flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) + return; + + ImGuiContext& g = *GImGui; + float margin = g.FontSize * 1.0f; // When to scroll to make Tab N+1 visible always make a bit of N visible to suggest more scrolling area (since we don't have a scrollbar) + int order = tab_bar->GetTabOrder(tab); + + // Scrolling happens only in the central section (leading/trailing sections are not scrolling) + // FIXME: This is all confusing. + float scrollable_width = tab_bar->BarRect.GetWidth() - sections[0].Width - sections[2].Width - sections[1].Spacing; + + // We make all tabs positions all relative Sections[0].Width to make code simpler + float tab_x1 = tab->Offset - sections[0].Width + (order > sections[0].TabCount - 1 ? -margin : 0.0f); + float tab_x2 = tab->Offset - sections[0].Width + tab->Width + (order + 1 < tab_bar->Tabs.Size - sections[2].TabCount ? margin : 1.0f); + tab_bar->ScrollingTargetDistToVisibility = 0.0f; + if (tab_bar->ScrollingTarget > tab_x1 || (tab_x2 - tab_x1 >= scrollable_width)) + { + // Scroll to the left + tab_bar->ScrollingTargetDistToVisibility = ImMax(tab_bar->ScrollingAnim - tab_x2, 0.0f); + tab_bar->ScrollingTarget = tab_x1; + } + else if (tab_bar->ScrollingTarget < tab_x2 - scrollable_width) + { + // Scroll to the right + tab_bar->ScrollingTargetDistToVisibility = ImMax((tab_x1 - scrollable_width) - tab_bar->ScrollingAnim, 0.0f); + tab_bar->ScrollingTarget = tab_x2 - scrollable_width; + } +} + +void ImGui::TabBarQueueReorder(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int dir) +{ + IM_ASSERT(dir == -1 || dir == +1); + IM_ASSERT(tab_bar->ReorderRequestTabId == 0); + tab_bar->ReorderRequestTabId = tab->ID; + tab_bar->ReorderRequestDir = (ImS8)dir; +} + +bool ImGui::TabBarProcessReorder(ImGuiTabBar* tab_bar) +{ + ImGuiTabItem* tab1 = TabBarFindTabByID(tab_bar, tab_bar->ReorderRequestTabId); + if (tab1 == NULL || (tab1->Flags & ImGuiTabItemFlags_NoReorder)) + return false; + + //IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_Reorderable); // <- this may happen when using debug tools + int tab2_order = tab_bar->GetTabOrder(tab1) + tab_bar->ReorderRequestDir; + if (tab2_order < 0 || tab2_order >= tab_bar->Tabs.Size) + return false; + + // Reordered TabItem must share the same position flags than target + ImGuiTabItem* tab2 = &tab_bar->Tabs[tab2_order]; + if (tab2->Flags & ImGuiTabItemFlags_NoReorder) + return false; + if ((tab1->Flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) != (tab2->Flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing))) + return false; + + ImGuiTabItem item_tmp = *tab1; + *tab1 = *tab2; + *tab2 = item_tmp; + + if (tab_bar->Flags & ImGuiTabBarFlags_SaveSettings) + MarkIniSettingsDirty(); + return true; +} + +static ImGuiTabItem* ImGui::TabBarScrollingButtons(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + const ImVec2 arrow_button_size(g.FontSize - 2.0f, g.FontSize + g.Style.FramePadding.y * 2.0f); + const float scrolling_buttons_width = arrow_button_size.x * 2.0f; + + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + //window->DrawList->AddRect(ImVec2(tab_bar->BarRect.Max.x - scrolling_buttons_width, tab_bar->BarRect.Min.y), ImVec2(tab_bar->BarRect.Max.x, tab_bar->BarRect.Max.y), IM_COL32(255,0,0,255)); + + int select_dir = 0; + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + const float backup_repeat_delay = g.IO.KeyRepeatDelay; + const float backup_repeat_rate = g.IO.KeyRepeatRate; + g.IO.KeyRepeatDelay = 0.250f; + g.IO.KeyRepeatRate = 0.200f; + float x = ImMax(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.x - scrolling_buttons_width); + window->DC.CursorPos = ImVec2(x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##<", ImGuiDir_Left, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = -1; + window->DC.CursorPos = ImVec2(x + arrow_button_size.x, tab_bar->BarRect.Min.y); + if (ArrowButtonEx("##>", ImGuiDir_Right, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) + select_dir = +1; + PopStyleColor(2); + g.IO.KeyRepeatRate = backup_repeat_rate; + g.IO.KeyRepeatDelay = backup_repeat_delay; + + ImGuiTabItem* tab_to_scroll_to = NULL; + if (select_dir != 0) + if (ImGuiTabItem* tab_item = TabBarFindTabByID(tab_bar, tab_bar->SelectedTabId)) + { + int selected_order = tab_bar->GetTabOrder(tab_item); + int target_order = selected_order + select_dir; + + // Skip tab item buttons until another tab item is found or end is reached + while (tab_to_scroll_to == NULL) + { + // If we are at the end of the list, still scroll to make our tab visible + tab_to_scroll_to = &tab_bar->Tabs[(target_order >= 0 && target_order < tab_bar->Tabs.Size) ? target_order : selected_order]; + + // Cross through buttons + // (even if first/last item is a button, return it so we can update the scroll) + if (tab_to_scroll_to->Flags & ImGuiTabItemFlags_Button) + { + target_order += select_dir; + selected_order += select_dir; + tab_to_scroll_to = (target_order <= 0 || target_order >= tab_bar->Tabs.Size) ? tab_to_scroll_to : NULL; + } + } + } + window->DC.CursorPos = backup_cursor_pos; + tab_bar->BarRect.Max.x -= scrolling_buttons_width + 1.0f; + + return tab_to_scroll_to; +} + +static ImGuiTabItem* ImGui::TabBarTabListPopupButton(ImGuiTabBar* tab_bar) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + + // We use g.Style.FramePadding.y to match the square ArrowButton size + const float tab_list_popup_button_width = g.FontSize + g.Style.FramePadding.y; + const ImVec2 backup_cursor_pos = window->DC.CursorPos; + window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x - g.Style.FramePadding.y, tab_bar->BarRect.Min.y); + tab_bar->BarRect.Min.x += tab_list_popup_button_width; + + ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; + arrow_col.w *= 0.5f; + PushStyleColor(ImGuiCol_Text, arrow_col); + PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); + bool open = BeginCombo("##v", NULL, ImGuiComboFlags_NoPreview | ImGuiComboFlags_HeightLargest); + PopStyleColor(2); + + ImGuiTabItem* tab_to_select = NULL; + if (open) + { + for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; + if (tab->Flags & ImGuiTabItemFlags_Button) + continue; + + const char* tab_name = tab_bar->GetTabName(tab); + if (Selectable(tab_name, tab_bar->SelectedTabId == tab->ID)) + tab_to_select = tab; + } + EndCombo(); + } + + window->DC.CursorPos = backup_cursor_pos; + return tab_to_select; +} + +//------------------------------------------------------------------------- +// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. +//------------------------------------------------------------------------- +// - BeginTabItem() +// - EndTabItem() +// - TabItemButton() +// - TabItemEx() [Internal] +// - SetTabItemClosed() +// - TabItemCalcSize() [Internal] +// - TabItemBackground() [Internal] +// - TabItemLabelAndCloseButton() [Internal] +//------------------------------------------------------------------------- + +bool ImGui::BeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + IM_ASSERT(!(flags & ImGuiTabItemFlags_Button)); // BeginTabItem() Can't be used with button flags, use TabItemButton() instead! + + bool ret = TabItemEx(tab_bar, label, p_open, flags); + if (ret && !(flags & ImGuiTabItemFlags_NoPushId)) + { + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + PushOverrideID(tab->ID); // We already hashed 'label' so push into the ID stack directly instead of doing another hash through PushID(label) + } + return ret; +} + +void ImGui::EndTabItem() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return; + } + IM_ASSERT(tab_bar->LastTabItemIdx >= 0); + ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; + if (!(tab->Flags & ImGuiTabItemFlags_NoPushId)) + window->IDStack.pop_back(); +} + +bool ImGui::TabItemButton(const char* label, ImGuiTabItemFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + ImGuiTabBar* tab_bar = g.CurrentTabBar; + if (tab_bar == NULL) + { + IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); + return false; + } + return TabItemEx(tab_bar, label, NULL, flags | ImGuiTabItemFlags_Button | ImGuiTabItemFlags_NoReorder); +} + +bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags) +{ + // Layout whole tab bar if not already done + if (tab_bar->WantLayout) + TabBarLayout(tab_bar); + + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + if (window->SkipItems) + return false; + + const ImGuiStyle& style = g.Style; + const ImGuiID id = TabBarCalcTabID(tab_bar, label); + + // If the user called us with *p_open == false, we early out and don't render. + // We make a call to ItemAdd() so that attempts to use a contextual popup menu with an implicit ID won't use an older ID. + IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.LastItemStatusFlags); + if (p_open && !*p_open) + { + PushItemFlag(ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus, true); + ItemAdd(ImRect(), id); + PopItemFlag(); + return false; + } + + IM_ASSERT(!p_open || !(flags & ImGuiTabItemFlags_Button)); + IM_ASSERT((flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) != (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)); // Can't use both Leading and Trailing + + // Store into ImGuiTabItemFlags_NoCloseButton, also honor ImGuiTabItemFlags_NoCloseButton passed by user (although not documented) + if (flags & ImGuiTabItemFlags_NoCloseButton) + p_open = NULL; + else if (p_open == NULL) + flags |= ImGuiTabItemFlags_NoCloseButton; + + // Calculate tab contents size + ImVec2 menu_size = TabItemCalcSize(label, p_open != NULL); + + // Acquire tab data + ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, id); + bool tab_is_new = false; + if (tab == NULL) + { + tab_bar->Tabs.push_back(ImGuiTabItem()); + tab = &tab_bar->Tabs.back(); + tab->ID = id; + tab->Width = menu_size.x; + tab_bar->TabsAddedNew = true; + tab_is_new = true; + } + tab_bar->LastTabItemIdx = (short)tab_bar->Tabs.index_from_ptr(tab); + tab->ContentWidth = menu_size.x; + tab->BeginOrder = tab_bar->TabsActiveCount++; + + const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); + const bool tab_bar_focused = (tab_bar->Flags & ImGuiTabBarFlags_IsFocused) != 0; + const bool tab_appearing = (tab->LastFrameVisible + 1 < g.FrameCount); + const bool is_tab_button = (flags & ImGuiTabItemFlags_Button) != 0; + tab->LastFrameVisible = g.FrameCount; + tab->Flags = flags; + + // Append name with zero-terminator + tab->NameOffset = (ImS16)tab_bar->TabsNames.menu_size(); + tab_bar->TabsNames.append(label, label + strlen(label) + 1); + + // Update selected tab + if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) + if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) + if (!is_tab_button) + tab_bar->NextSelectedTabId = id; // New tabs gets activated + if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // SetSelected can only be passed on explicit tab bar + if (!is_tab_button) + tab_bar->NextSelectedTabId = id; + + // Lock visibility + // (Note: tab_contents_visible != tab_selected... because CTRL+TAB operations may preview some tabs without selecting them!) + bool tab_contents_visible = (tab_bar->VisibleTabId == id); + if (tab_contents_visible) + tab_bar->VisibleTabWasSubmitted = true; + + // On the very first frame of a tab bar we let first tab contents be visible to minimize appearing glitches + if (!tab_contents_visible && tab_bar->SelectedTabId == 0 && tab_bar_appearing) + if (tab_bar->Tabs.Size == 1 && !(tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs)) + tab_contents_visible = true; + + // Note that tab_is_new is not necessarily the same as tab_appearing! When a tab bar stops being submitted + // and then gets submitted again, the tabs will have 'tab_appearing=true' but 'tab_is_new=false'. + if (tab_appearing && (!tab_bar_appearing || tab_is_new)) + { + PushItemFlag(ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus, true); + ItemAdd(ImRect(), id); + PopItemFlag(); + if (is_tab_button) + return false; + return tab_contents_visible; + } + + if (tab_bar->SelectedTabId == id) + tab->LastFrameSelected = g.FrameCount; + + // Backup current layout position + const ImVec2 backup_main_cursor_pos = window->DC.CursorPos; + + // Layout + const bool is_central_section = (tab->Flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) == 0; + menu_size.x = tab->Width; + if (is_central_section) + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(IM_FLOOR(tab->Offset - tab_bar->ScrollingAnim), 0.0f); + else + window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(tab->Offset, 0.0f); + ImVec2 pos = window->DC.CursorPos; + ImRect bb(pos, pos + menu_size); + + // We don't have CPU clipping primitives to clip the CloseButton (until it becomes a texture), so need to add an extra draw call (temporary in the case of vertical animation) + const bool want_clip_rect = is_central_section && (bb.Min.x < tab_bar->ScrollingRectMinX || bb.Max.x > tab_bar->ScrollingRectMaxX); + if (want_clip_rect) + PushClipRect(ImVec2(ImMax(bb.Min.x, tab_bar->ScrollingRectMinX), bb.Min.y - 1), ImVec2(tab_bar->ScrollingRectMaxX, bb.Max.y), true); + + ImVec2 backup_cursor_max_pos = window->DC.CursorMaxPos; + ItemSize(bb.GetSize(), style.FramePadding.y); + window->DC.CursorMaxPos = backup_cursor_max_pos; + + if (!ItemAdd(bb, id)) + { + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + return tab_contents_visible; + } + + // Click to Select a tab + ImGuiButtonFlags button_flags = ((is_tab_button ? ImGuiButtonFlags_PressedOnClickRelease : ImGuiButtonFlags_PressedOnClick) | ImGuiButtonFlags_AllowItemOverlap); + if (g.DragDropActive) + button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; + bool hovered, held; + bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); + if (pressed && !is_tab_button) + tab_bar->NextSelectedTabId = id; + hovered |= (g.HoveredId == id); + + // Allow the close button to overlap unless we are dragging (in which case we don't want any overlapping tabs to be hovered) + if (!held) + SetItemAllowOverlap(); + + // Drag and drop: re-order tabs + if (held && !tab_appearing && IsMouseDragging(0)) + { + if (!g.DragDropActive && (tab_bar->Flags & ImGuiTabBarFlags_Reorderable)) + { + // While moving a tab it will jump on the other side of the mouse, so we also test for MouseDelta.x + if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < bb.Min.x) + { + if (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) + TabBarQueueReorder(tab_bar, tab, -1); + } + else if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > bb.Max.x) + { + if (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) + TabBarQueueReorder(tab_bar, tab, +1); + } + } + } + +#if 0 + if (hovered && g.HoveredIdNotActiveTimer > 0.50f && bb.GetWidth() < tab->ContentWidth) + { + // Enlarge tab display when hovering + bb.Max.x = bb.Min.x + IM_FLOOR(ImLerp(bb.GetWidth(), tab->ContentWidth, ImSaturate((g.HoveredIdNotActiveTimer - 0.40f) * 6.0f))); + display_draw_list = GetForegroundDrawList(window); + TabItemBackground(display_draw_list, bb, flags, GetColorU32(ImGuiCol_TitleBgActive)); + } +#endif + + // Render tab shape + ImDrawList* display_draw_list = window->DrawList; + const ImU32 tab_col = GetColorU32((held || hovered) ? ImGuiCol_TabHovered : tab_contents_visible ? (tab_bar_focused ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive) : (tab_bar_focused ? ImGuiCol_Tab : ImGuiCol_TabUnfocused)); + TabItemBackground(display_draw_list, bb, flags, tab_col); + RenderNavHighlight(bb, id); + + // Select with right mouse button. This is so the common idiom for context menu automatically highlight the current widget. + const bool hovered_unblocked = IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup); + if (hovered_unblocked && (IsMouseClicked(1) || IsMouseReleased(1))) + if (!is_tab_button) + tab_bar->NextSelectedTabId = id; + + if (tab_bar->Flags & ImGuiTabBarFlags_NoCloseWithMiddleMouseButton) + flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; + + // Render tab label, process close button + const ImGuiID close_button_id = p_open ? GetIDWithSeed("#CLOSE", NULL, id) : 0; + bool just_closed = TabItemLabelAndCloseButton(display_draw_list, bb, flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible); + if (just_closed && p_open != NULL) + { + *p_open = false; + TabBarCloseTab(tab_bar, tab); + } + + // Restore main window position so user can draw there + if (want_clip_rect) + PopClipRect(); + window->DC.CursorPos = backup_main_cursor_pos; + + // Tooltip (FIXME: Won't work over the close button because ItemOverlap systems messes up with HoveredIdTimer) + // We test IsItemHovered() to discard e.g. when another item is active or drag and drop over the tab bar (which g.HoveredId ignores) + if (g.HoveredId == id && !held && g.HoveredIdNotActiveTimer > 0.50f && IsItemHovered()) + if (!(tab_bar->Flags & ImGuiTabBarFlags_NoTooltip) && !(tab->Flags & ImGuiTabItemFlags_NoTooltip)) + SetTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); + + IM_ASSERT(!is_tab_button || !(tab_bar->SelectedTabId == tab->ID && is_tab_button)); // TabItemButton should not be selected + if (is_tab_button) + return pressed; + return tab_contents_visible; +} + +// [Public] This is call is 100% optional but it allows to remove some one-frame glitches when a tab has been unexpectedly removed. +// To use it to need to call the function SetTabItemClosed() between BeginTabBar() and EndTabBar(). +// Tabs closed by the close button will automatically be flagged to avoid this issue. +void ImGui::SetTabItemClosed(const char* label) +{ + ImGuiContext& g = *GImGui; + bool is_within_manual_tab_bar = g.CurrentTabBar && !(g.CurrentTabBar->Flags & ImGuiTabBarFlags_DockNode); + if (is_within_manual_tab_bar) + { + ImGuiTabBar* tab_bar = g.CurrentTabBar; + ImGuiID tab_id = TabBarCalcTabID(tab_bar, label); + if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) + tab->WantClose = true; // Will be processed by next call to TabBarLayout() + } +} + +ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + ImVec2 menu_size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f); + if (has_close_button) + menu_size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle. + else + menu_size.x += g.Style.FramePadding.x + 1.0f; + return ImVec2(ImMin(menu_size.x, TabBarCalcMaxTabWidth()), menu_size.y); +} + +void ImGui::TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col) +{ + // While rendering tabs, we trim 1 pixel off the top of our bounding box so they can fit within a regular frame height while looking "detached" from it. + ImGuiContext& g = *GImGui; + const float width = bb.GetWidth(); + IM_UNUSED(flags); + IM_ASSERT(width > 0.0f); + const float rounding = ImMax(0.0f, ImMin((flags & ImGuiTabItemFlags_Button) ? g.Style.FrameRounding : g.Style.TabRounding, width * 0.5f - 1.0f)); + const float y1 = bb.Min.y + 1.0f; + const float y2 = bb.Max.y - 1.0f; + draw_list->PathLineTo(ImVec2(bb.Min.x, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding, y1 + rounding), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding, y1 + rounding), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x, y2)); + draw_list->PathFillConvex(col); + if (g.Style.TabBorderSize > 0.0f) + { + draw_list->PathLineTo(ImVec2(bb.Min.x + 0.5f, y2)); + draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding + 0.5f, y1 + rounding + 0.5f), rounding, 6, 9); + draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding - 0.5f, y1 + rounding + 0.5f), rounding, 9, 12); + draw_list->PathLineTo(ImVec2(bb.Max.x - 0.5f, y2)); + draw_list->PathStroke(GetColorU32(ImGuiCol_Border), false, g.Style.TabBorderSize); + } +} + +// Render text label (with custom clipping) + Unsaved Document marker + Close Button logic +// We tend to lock style.FramePadding for a given tab-bar, hence the 'frame_padding' parameter. +bool ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible) +{ + ImGuiContext& g = *GImGui; + ImVec2 label_size = CalcTextSize(label, NULL, true); + if (bb.GetWidth() <= 1.0f) + return false; + + // In Style V2 we'll have full override of all colors per state (e.g. focused, selected) + // But right now if you want to alter text color of tabs this is what you need to do. +#if 0 + const float backup_alpha = g.Style.Alpha; + if (!is_contents_visible) + g.Style.Alpha *= 0.7f; +#endif + + // Render text label (with clipping + alpha gradient) + unsaved marker + const char* TAB_UNSAVED_MARKER = "*"; + ImRect text_pixel_clip_bb(bb.Min.x + frame_padding.x, bb.Min.y + frame_padding.y, bb.Max.x - frame_padding.x, bb.Max.y); + if (flags & ImGuiTabItemFlags_UnsavedDocument) + { + text_pixel_clip_bb.Max.x -= CalcTextSize(TAB_UNSAVED_MARKER, NULL, false).x; + ImVec2 unsaved_marker_pos(ImMin(bb.Min.x + frame_padding.x + label_size.x + 2, text_pixel_clip_bb.Max.x), bb.Min.y + frame_padding.y + IM_FLOOR(-g.FontSize * 0.25f)); + RenderTextClippedEx(draw_list, unsaved_marker_pos, bb.Max - frame_padding, TAB_UNSAVED_MARKER, NULL, NULL); + } + ImRect text_ellipsis_clip_bb = text_pixel_clip_bb; + + // Close Button + // We are relying on a subtle and confusing distinction between 'hovered' and 'g.HoveredId' which happens because we are using ImGuiButtonFlags_AllowOverlapMode + SetItemAllowOverlap() + // 'hovered' will be true when hovering the Tab but NOT when hovering the close button + // 'g.HoveredId==id' will be true when hovering the Tab including when hovering the close button + // 'g.ActiveId==close_button_id' will be true when we are holding on the close button, in which case both hovered booleans are false + bool close_button_pressed = false; + bool close_button_visible = false; + if (close_button_id != 0) + if (is_contents_visible || bb.GetWidth() >= g.Style.TabMinWidthForCloseButton) + if (g.HoveredId == tab_id || g.HoveredId == close_button_id || g.ActiveId == tab_id || g.ActiveId == close_button_id) + close_button_visible = true; + if (close_button_visible) + { + ImGuiLastItemDataBackup last_item_backup; + const float close_button_sz = g.FontSize; + PushStyleVar(ImGuiStyleVar_FramePadding, frame_padding); + if (CloseButton(close_button_id, ImVec2(bb.Max.x - frame_padding.x * 2.0f - close_button_sz, bb.Min.y))) + close_button_pressed = true; + PopStyleVar(); + last_item_backup.Restore(); + + // Close with middle mouse button + if (!(flags & ImGuiTabItemFlags_NoCloseWithMiddleMouseButton) && IsMouseClicked(2)) + close_button_pressed = true; + + text_pixel_clip_bb.Max.x -= close_button_sz; + } + + // FIXME: if FramePadding is noticeably large, ellipsis_max_x will be wrong here (e.g. #3497), maybe for consistency that parameter of RenderTextEllipsis() shouldn't exist.. + float ellipsis_max_x = close_button_visible ? text_pixel_clip_bb.Max.x : bb.Max.x - 1.0f; + RenderTextEllipsis(draw_list, text_ellipsis_clip_bb.Min, text_ellipsis_clip_bb.Max, text_pixel_clip_bb.Max.x, ellipsis_max_x, label, NULL, &label_size); + +#if 0 + if (!is_contents_visible) + g.Style.Alpha = backup_alpha; +#endif + + return close_button_pressed; +} + + +//------------------------------------------------------------------------- +// [SECTION] Widgets: Columns, BeginColumns, EndColumns, etc. +// In the current version, Columns are very weak. Needs to be replaced with a more full-featured system. +//------------------------------------------------------------------------- +// - SetWindowClipRectBeforeSetChannel() [Internal] +// - GetColumnIndex() +// - GetColumnCount() +// - GetColumnOffset() +// - GetColumnWidth() +// - SetColumnOffset() +// - SetColumnWidth() +// - PushColumnClipRect() [Internal] +// - PushColumnsBackground() [Internal] +// - PopColumnsBackground() [Internal] +// - FindOrCreateColumns() [Internal] +// - GetColumnsID() [Internal] +// - BeginColumns() +// - NextColumn() +// - EndColumns() +// - Columns() +//------------------------------------------------------------------------- + +// [Internal] Small optimization to avoid calls to PopClipRect/SetCurrentChannel/PushClipRect in sequences, +// they would meddle many times with the underlying ImDrawCmd. +// Instead, we do a preemptive overwrite of clipping rectangle _without_ altering the command-buffer and let +// the subsequent single call to SetCurrentChannel() does it things once. +void ImGui::SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect) +{ + ImVec4 clip_rect_vec4 = clip_rect.ToVec4(); + window->ClipRect = clip_rect; + window->DrawList->_CmdHeader.ClipRect = clip_rect_vec4; + window->DrawList->_ClipRectStack.Data[window->DrawList->_ClipRectStack.Size - 1] = clip_rect_vec4; +} + +int ImGui::GetColumnIndex() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Current : 0; +} + +int ImGui::GetColumnsCount() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + return window->DC.CurrentColumns ? window->DC.CurrentColumns->Count : 1; +} + +float ImGui::GetColumnOffsetFromNorm(const ImGuiColumns* columns, float offset_norm) +{ + return offset_norm * (columns->OffMaxX - columns->OffMinX); +} + +float ImGui::GetColumnNormFromOffset(const ImGuiColumns* columns, float offset) +{ + return offset / (columns->OffMaxX - columns->OffMinX); +} + +static const float COLUMNS_HIT_RECT_HALF_WIDTH = 4.0f; + +static float GetDraggedColumnOffset(ImGuiColumns* columns, int column_index) +{ + // Active (dragged) column always follow mouse. The reason we need this is that dragging a column to the right edge of an auto-resizing + // window creates a feedback loop because we store normalized positions. So while dragging we enforce absolute positioning. + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + IM_ASSERT(column_index > 0); // We are not supposed to drag column 0. + IM_ASSERT(g.ActiveId == columns->ID + ImGuiID(column_index)); + + float x = g.IO.MousePos.x - g.ActiveIdClickOffset.x + COLUMNS_HIT_RECT_HALF_WIDTH - window->Pos.x; + x = ImMax(x, ImGui::GetColumnOffset(column_index - 1) + g.Style.ColumnsMinSpacing); + if ((columns->Flags & ImGuiColumnsFlags_NoPreserveWidths)) + x = ImMin(x, ImGui::GetColumnOffset(column_index + 1) - g.Style.ColumnsMinSpacing); + + return x; +} + +float ImGui::GetColumnOffset(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return 0.0f; + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const float t = columns->Columns[column_index].OffsetNorm; + const float x_offset = ImLerp(columns->OffMinX, columns->OffMaxX, t); + return x_offset; +} + +static float GetColumnWidthEx(ImGuiColumns* columns, int column_index, bool before_resize = false) +{ + if (column_index < 0) + column_index = columns->Current; + + float offset_norm; + if (before_resize) + offset_norm = columns->Columns[column_index + 1].OffsetNormBeforeResize - columns->Columns[column_index].OffsetNormBeforeResize; + else + offset_norm = columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm; + return ImGui::GetColumnOffsetFromNorm(columns, offset_norm); +} + +float ImGui::GetColumnWidth(int column_index) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiColumns* columns = window->DC.CurrentColumns; + if (columns == NULL) + return GetContentRegionAvail().x; + + if (column_index < 0) + column_index = columns->Current; + return GetColumnOffsetFromNorm(columns, columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm); +} + +void ImGui::SetColumnOffset(int column_index, float offset) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = g.CurrentWindow; + ImGuiColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + IM_ASSERT(column_index < columns->Columns.Size); + + const bool preserve_width = !(columns->Flags & ImGuiColumnsFlags_NoPreserveWidths) && (column_index < columns->Count - 1); + const float width = preserve_width ? GetColumnWidthEx(columns, column_index, columns->IsBeingResized) : 0.0f; + + if (!(columns->Flags & ImGuiColumnsFlags_NoForceWithinWindow)) + offset = ImMin(offset, columns->OffMaxX - g.Style.ColumnsMinSpacing * (columns->Count - column_index)); + columns->Columns[column_index].OffsetNorm = GetColumnNormFromOffset(columns, offset - columns->OffMinX); + + if (preserve_width) + SetColumnOffset(column_index + 1, offset + ImMax(g.Style.ColumnsMinSpacing, width)); +} + +void ImGui::SetColumnWidth(int column_index, float width) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + if (column_index < 0) + column_index = columns->Current; + SetColumnOffset(column_index + 1, GetColumnOffset(column_index) + width); +} + +void ImGui::PushColumnClipRect(int column_index) +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiColumns* columns = window->DC.CurrentColumns; + if (column_index < 0) + column_index = columns->Current; + + ImGuiColumnData* column = &columns->Columns[column_index]; + PushClipRect(column->ClipRect.Min, column->ClipRect.Max, false); +} + +// Get into the columns background draw command (which is generally the same draw command as before we called BeginColumns) +void ImGui::PushColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid SetCurrentChannel() + PushClipRect() + columns->HostBackupClipRect = window->ClipRect; + SetWindowClipRectBeforeSetChannel(window, columns->HostInitialClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, 0); +} + +void ImGui::PopColumnsBackground() +{ + ImGuiWindow* window = GetCurrentWindowRead(); + ImGuiColumns* columns = window->DC.CurrentColumns; + if (columns->Count == 1) + return; + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + SetWindowClipRectBeforeSetChannel(window, columns->HostBackupClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); +} + +ImGuiColumns* ImGui::FindOrCreateColumns(ImGuiWindow* window, ImGuiID id) +{ + // We have few columns per window so for now we don't need bother much with turning this into a faster lookup. + for (int n = 0; n < window->ColumnsStorage.Size; n++) + if (window->ColumnsStorage[n].ID == id) + return &window->ColumnsStorage[n]; + + window->ColumnsStorage.push_back(ImGuiColumns()); + ImGuiColumns* columns = &window->ColumnsStorage.back(); + columns->ID = id; + return columns; +} + +ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count) +{ + ImGuiWindow* window = GetCurrentWindow(); + + // Differentiate column ID with an arbitrary prefix for cases where users name their columns set the same as another widget. + // In addition, when an identifier isn't explicitly provided we include the number of columns in the hash to make it uniquer. + PushID(0x11223347 + (str_id ? 0 : columns_count)); + ImGuiID id = window->GetID(str_id ? str_id : "columns"); + PopID(); + + return id; +} + +void ImGui::BeginColumns(const char* str_id, int columns_count, ImGuiColumnsFlags flags) +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + + IM_ASSERT(columns_count >= 1); + IM_ASSERT(window->DC.CurrentColumns == NULL); // Nested columns are currently not supported + + // Acquire storage for the columns set + ImGuiID id = GetColumnsID(str_id, columns_count); + ImGuiColumns* columns = FindOrCreateColumns(window, id); + IM_ASSERT(columns->ID == id); + columns->Current = 0; + columns->Count = columns_count; + columns->Flags = flags; + window->DC.CurrentColumns = columns; + + columns->HostCursorPosY = window->DC.CursorPos.y; + columns->HostCursorMaxPosX = window->DC.CursorMaxPos.x; + columns->HostInitialClipRect = window->ClipRect; + columns->HostBackupParentWorkRect = window->ParentWorkRect; + window->ParentWorkRect = window->WorkRect; + + // Set state for first column + // We aim so that the right-most column will have the same clipping width as other after being clipped by parent ClipRect + const float column_padding = g.Style.ItemSpacing.x; + const float half_clip_extend_x = ImFloor(ImMax(window->WindowPadding.x * 0.5f, window->WindowBorderSize)); + const float max_1 = window->WorkRect.Max.x + column_padding - ImMax(column_padding - window->WindowPadding.x, 0.0f); + const float max_2 = window->WorkRect.Max.x + half_clip_extend_x; + columns->OffMinX = window->DC.Indent.x - column_padding + ImMax(column_padding - window->WindowPadding.x, 0.0f); + columns->OffMaxX = ImMax(ImMin(max_1, max_2) - window->Pos.x, columns->OffMinX + 1.0f); + columns->LineMinY = columns->LineMaxY = window->DC.CursorPos.y; + + // Clear data if columns count changed + if (columns->Columns.Size != 0 && columns->Columns.Size != columns_count + 1) + columns->Columns.resize(0); + + // Initialize default widths + columns->IsFirstFrame = (columns->Columns.Size == 0); + if (columns->Columns.Size == 0) + { + columns->Columns.reserve(columns_count + 1); + for (int n = 0; n < columns_count + 1; n++) + { + ImGuiColumnData column; + column.OffsetNorm = n / (float)columns_count; + columns->Columns.push_back(column); + } + } + + for (int n = 0; n < columns_count; n++) + { + // Compute clipping rectangle + ImGuiColumnData* column = &columns->Columns[n]; + float clip_x1 = IM_ROUND(window->Pos.x + GetColumnOffset(n)); + float clip_x2 = IM_ROUND(window->Pos.x + GetColumnOffset(n + 1) - 1.0f); + column->ClipRect = ImRect(clip_x1, -FLT_MAX, clip_x2, +FLT_MAX); + column->ClipRect.ClipWithFull(window->ClipRect); + } + + if (columns->Count > 1) + { + columns->Splitter.Split(window->DrawList, 1 + columns->Count); + columns->Splitter.SetCurrentChannel(window->DrawList, 1); + PushColumnClipRect(0); + } + + // We don't generally store Indent.x inside ColumnsOffset because it may be manipulated by the user. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; +} + +void ImGui::NextColumn() +{ + ImGuiWindow* window = GetCurrentWindow(); + if (window->SkipItems || window->DC.CurrentColumns == NULL) + return; + + ImGuiContext& g = *GImGui; + ImGuiColumns* columns = window->DC.CurrentColumns; + + if (columns->Count == 1) + { + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + IM_ASSERT(columns->Current == 0); + return; + } + + // Next column + if (++columns->Current == columns->Count) + columns->Current = 0; + + PopItemWidth(); + + // Optimization: avoid PopClipRect() + SetCurrentChannel() + PushClipRect() + // (which would needlessly attempt to update commands in the wrong channel, then pop or overwrite them), + ImGuiColumnData* column = &columns->Columns[columns->Current]; + SetWindowClipRectBeforeSetChannel(window, column->ClipRect); + columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); + + const float column_padding = g.Style.ItemSpacing.x; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + if (columns->Current > 0) + { + // Columns 1+ ignore IndentX (by canceling it out) + // FIXME-COLUMNS: Unnecessary, could be locked? + window->DC.ColumnsOffset.x = GetColumnOffset(columns->Current) - window->DC.Indent.x + column_padding; + } + else + { + // New row/line: column 0 honor IndentX. + window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); + columns->LineMinY = columns->LineMaxY; + } + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); + window->DC.CursorPos.y = columns->LineMinY; + window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); + window->DC.CurrLineTextBaseOffset = 0.0f; + + // FIXME-COLUMNS: Share code with BeginColumns() - move code on columns setup. + float offset_0 = GetColumnOffset(columns->Current); + float offset_1 = GetColumnOffset(columns->Current + 1); + float width = offset_1 - offset_0; + PushItemWidth(width * 0.65f); + window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; +} + +void ImGui::EndColumns() +{ + ImGuiContext& g = *GImGui; + ImGuiWindow* window = GetCurrentWindow(); + ImGuiColumns* columns = window->DC.CurrentColumns; + IM_ASSERT(columns != NULL); + + PopItemWidth(); + if (columns->Count > 1) + { + PopClipRect(); + columns->Splitter.Merge(window->DrawList); + } + + const ImGuiColumnsFlags flags = columns->Flags; + columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); + window->DC.CursorPos.y = columns->LineMaxY; + if (!(flags & ImGuiColumnsFlags_GrowParentContentsSize)) + window->DC.CursorMaxPos.x = columns->HostCursorMaxPosX; // Restore cursor max pos, as columns don't grow parent + + // Draw columns borders and handle resize + // The IsBeingResized flag ensure we preserve pre-resize columns width so back-and-forth are not lossy + bool is_being_resized = false; + if (!(flags & ImGuiColumnsFlags_NoBorder) && !window->SkipItems) + { + // We clip Y boundaries CPU side because very long triangles are mishandled by some GPU drivers. + const float y1 = ImMax(columns->HostCursorPosY, window->ClipRect.Min.y); + const float y2 = ImMin(window->DC.CursorPos.y, window->ClipRect.Max.y); + int dragging_column = -1; + for (int n = 1; n < columns->Count; n++) + { + ImGuiColumnData* column = &columns->Columns[n]; + float x = window->Pos.x + GetColumnOffset(n); + const ImGuiID column_id = columns->ID + ImGuiID(n); + const float column_hit_hw = COLUMNS_HIT_RECT_HALF_WIDTH; + const ImRect column_hit_rect(ImVec2(x - column_hit_hw, y1), ImVec2(x + column_hit_hw, y2)); + KeepAliveID(column_id); + if (IsClippedEx(column_hit_rect, column_id, false)) + continue; + + bool hovered = false, held = false; + if (!(flags & ImGuiColumnsFlags_NoResize)) + { + ButtonBehavior(column_hit_rect, column_id, &hovered, &held); + if (hovered || held) + g.MouseCursor = ImGuiMouseCursor_ResizeEW; + if (held && !(column->Flags & ImGuiColumnsFlags_NoResize)) + dragging_column = n; + } + + // Draw column + const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : hovered ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); + const float xi = IM_FLOOR(x); + window->DrawList->AddLine(ImVec2(xi, y1 + 1.0f), ImVec2(xi, y2), col); + } + + // Apply dragging after drawing the column lines, so our rendered lines are in sync with how items were displayed during the frame. + if (dragging_column != -1) + { + if (!columns->IsBeingResized) + for (int n = 0; n < columns->Count + 1; n++) + columns->Columns[n].OffsetNormBeforeResize = columns->Columns[n].OffsetNorm; + columns->IsBeingResized = is_being_resized = true; + float x = GetDraggedColumnOffset(columns, dragging_column); + SetColumnOffset(dragging_column, x); + } + } + columns->IsBeingResized = is_being_resized; + + window->WorkRect = window->ParentWorkRect; + window->ParentWorkRect = columns->HostBackupParentWorkRect; + window->DC.CurrentColumns = NULL; + window->DC.ColumnsOffset.x = 0.0f; + window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); +} + +// [2018-03: This is currently the only public API, while we are working on making BeginColumns/EndColumns user-facing] +void ImGui::Columns(int columns_count, const char* id, bool border) +{ + ImGuiWindow* window = GetCurrentWindow(); + IM_ASSERT(columns_count >= 1); + + ImGuiColumnsFlags flags = (border ? 0 : ImGuiColumnsFlags_NoBorder); + //flags |= ImGuiColumnsFlags_NoPreserveWidths; // NB: Legacy behavior + ImGuiColumns* columns = window->DC.CurrentColumns; + if (columns != NULL && columns->Count == columns_count && columns->Flags == flags) + return; + + if (columns != NULL) + EndColumns(); + + if (columns_count != 1) + BeginColumns(id, columns_count, flags); +} + +//------------------------------------------------------------------------- + +#endif // #ifndef IMGUI_DISABLE diff --git a/CheatMenu/external/imgui/imstb_rectpack.h b/CheatMenu/external/imgui/imstb_rectpack.h new file mode 100644 index 0000000..315e061 --- /dev/null +++ b/CheatMenu/external/imgui/imstb_rectpack.h @@ -0,0 +1,639 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_rect_pack.h 1.00. +// Those changes would need to be pushed into nothings/stb: +// - Added STBRP__CDECL +// Grep for [DEAR IMGUI] to find the changes. + +// stb_rect_pack.h - v1.00 - public domain - rectangle packing +// Sean Barrett 2014 +// +// Useful for e.g. packing rectangular textures into an atlas. +// Does not do rotation. +// +// Not necessarily the awesomest packing method, but better than +// the totally naive one in stb_truetype (which is primarily what +// this is meant to replace). +// +// Has only had a few tests run, may have issues. +// +// More docs to come. +// +// No memory allocations; uses qsort() and assert() from stdlib. +// Can override those by defining STBRP_SORT and STBRP_ASSERT. +// +// This library currently uses the Skyline Bottom-Left algorithm. +// +// Please note: better rectangle packers are welcome! Please +// implement them to the same API, but with a different init +// function. +// +// Credits +// +// Library +// Sean Barrett +// Minor features +// Martins Mozeiko +// github:IntellectualKitty +// +// Bugfixes / warning fixes +// Jeremy Jaussaud +// Fabian Giesen +// +// Version history: +// +// 1.00 (2019-02-25) avoid small space waste; gracefully fail too-wide rectangles +// 0.99 (2019-02-07) warning fixes +// 0.11 (2017-03-03) return packing success/fail result +// 0.10 (2016-10-25) remove cast-away-const to avoid warnings +// 0.09 (2016-08-27) fix compiler warnings +// 0.08 (2015-09-13) really fix bug with empty rects (w=0 or h=0) +// 0.07 (2015-09-13) fix bug with empty rects (w=0 or h=0) +// 0.06 (2015-04-15) added STBRP_SORT to allow replacing qsort +// 0.05: added STBRP_ASSERT to allow replacing assert +// 0.04: fixed minor bug in STBRP_LARGE_RECTS support +// 0.01: initial release +// +// LICENSE +// +// See end of file for license information. + +////////////////////////////////////////////////////////////////////////////// +// +// INCLUDE SECTION +// + +#ifndef STB_INCLUDE_STB_RECT_PACK_H +#define STB_INCLUDE_STB_RECT_PACK_H + +#define STB_RECT_PACK_VERSION 1 + +#ifdef STBRP_STATIC +#define STBRP_DEF static +#else +#define STBRP_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct stbrp_context stbrp_context; +typedef struct stbrp_node stbrp_node; +typedef struct stbrp_rect stbrp_rect; + +#ifdef STBRP_LARGE_RECTS +typedef int stbrp_coord; +#else +typedef unsigned short stbrp_coord; +#endif + +STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); +// Assign packed locations to rectangles. The rectangles are of type +// 'stbrp_rect' defined below, stored in the array 'rects', and there +// are 'num_rects' many of them. +// +// Rectangles which are successfully packed have the 'was_packed' flag +// set to a non-zero value and 'x' and 'y' store the minimum location +// on each axis (i.e. bottom-left in cartesian coordinates, top-left +// if you imagine y increasing downwards). Rectangles which do not fit +// have the 'was_packed' flag set to 0. +// +// You should not try to access the 'rects' array from another thread +// while this function is running, as the function temporarily reorders +// the array while it executes. +// +// To pack into another rectangle, you need to call stbrp_init_target +// again. To continue packing into the same rectangle, you can call +// this function again. Calling this multiple times with multiple rect +// arrays will probably produce worse packing results than calling it +// a single time with the full rectangle array, but the option is +// available. +// +// The function returns 1 if all of the rectangles were successfully +// packed and 0 otherwise. + +struct stbrp_rect +{ + // reserved for your use: + int id; + + // input: + stbrp_coord w, h; + + // output: + stbrp_coord x, y; + int was_packed; // non-zero if valid packing + +}; // 16 bytes, nominally + + +STBRP_DEF void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *veh_nodes, int num_nodes); +// Initialize a rectangle packer to: +// pack a rectangle that is 'width' by 'height' in dimensions +// using temporary storage provided by the array 'nodes', which is 'num_nodes' long +// +// You must call this function every time you start packing into a new target. +// +// There is no "shutdown" function. The 'nodes' memory must stay valid for +// the following stbrp_pack_rects() call (or calls), but can be freed after +// the call (or calls) finish. +// +// Note: to guarantee best results, either: +// 1. make sure 'num_nodes' >= 'width' +// or 2. call stbrp_allow_out_of_mem() defined below with 'allow_out_of_mem = 1' +// +// If you don't do either of the above things, widths will be quantized to multiples +// of small integers to guarantee the algorithm doesn't run out of temporary storage. +// +// If you do #2, then the non-quantized algorithm will be used, but the algorithm +// may run out of temporary storage and be unable to pack some rectangles. + +STBRP_DEF void stbrp_setup_allow_out_of_mem (stbrp_context *context, int allow_out_of_mem); +// Optionally call this function after init but before doing any packing to +// change the handling of the out-of-temp-memory scenario, described above. +// If you call init again, this will be reset to the default (false). + + +STBRP_DEF void stbrp_setup_heuristic (stbrp_context *context, int heuristic); +// Optionally select which packing heuristic the library should use. Different +// heuristics will produce better/worse results for different data sets. +// If you call init again, this will be reset to the default. + +enum +{ + STBRP_HEURISTIC_Skyline_default=0, + STBRP_HEURISTIC_Skyline_BL_sortHeight = STBRP_HEURISTIC_Skyline_default, + STBRP_HEURISTIC_Skyline_BF_sortHeight +}; + + +////////////////////////////////////////////////////////////////////////////// +// +// the details of the following structures don't matter to you, but they must +// be visible so you can handle the memory allocations for them + +struct stbrp_node +{ + stbrp_coord x,y; + stbrp_node *next; +}; + +struct stbrp_context +{ + int width; + int height; + int align; + int init_mode; + int heuristic; + int num_nodes; + stbrp_node *active_head; + stbrp_node *free_head; + stbrp_node extra[2]; // we allocate two extra nodes so optimal user-node-count is 'width' not 'width+2' +}; + +#ifdef __cplusplus +} +#endif + +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// IMPLEMENTATION SECTION +// + +#ifdef STB_RECT_PACK_IMPLEMENTATION +#ifndef STBRP_SORT +#include +#define STBRP_SORT qsort +#endif + +#ifndef STBRP_ASSERT +#include +#define STBRP_ASSERT assert +#endif + +// [DEAR IMGUI] Added STBRP__CDECL +#ifdef _MSC_VER +#define STBRP__NOTUSED(v) (void)(v) +#define STBRP__CDECL __cdecl +#else +#define STBRP__NOTUSED(v) (void)sizeof(v) +#define STBRP__CDECL +#endif + +enum +{ + STBRP__INIT_skyline = 1 +}; + +STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic) +{ + switch (context->init_mode) { + case STBRP__INIT_skyline: + STBRP_ASSERT(heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight || heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight); + context->heuristic = heuristic; + break; + default: + STBRP_ASSERT(0); + } +} + +STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem) +{ + if (allow_out_of_mem) + // if it's ok to run out of memory, then don't bother aligning them; + // this gives better packing, but may fail due to OOM (even though + // the rectangles easily fit). @TODO a smarter approach would be to only + // quantize once we've hit OOM, then we could get rid of this parameter. + context->align = 1; + else { + // if it's not ok to run out of memory, then quantize the widths + // so that num_nodes is always enough nodes. + // + // I.e. num_nodes * align >= width + // align >= width / num_nodes + // align = ceil(width/num_nodes) + + context->align = (context->width + context->num_nodes-1) / context->num_nodes; + } +} + +STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *veh_nodes, int num_nodes) +{ + int i; +#ifndef STBRP_LARGE_RECTS + STBRP_ASSERT(width <= 0xffff && height <= 0xffff); +#endif + + for (i=0; i < num_nodes-1; ++i) + veh_nodes[i].next = &veh_nodes[i+1]; + veh_nodes[i].next = NULL; + context->init_mode = STBRP__INIT_skyline; + context->heuristic = STBRP_HEURISTIC_Skyline_default; + context->free_head = &veh_nodes[0]; + context->active_head = &context->extra[0]; + context->width = width; + context->height = height; + context->num_nodes = num_nodes; + stbrp_setup_allow_out_of_mem(context, 0); + + // node 0 is the full width, node 1 is the sentinel (lets us not store width explicitly) + context->extra[0].x = 0; + context->extra[0].y = 0; + context->extra[0].next = &context->extra[1]; + context->extra[1].x = (stbrp_coord) width; +#ifdef STBRP_LARGE_RECTS + context->extra[1].y = (1<<30); +#else + context->extra[1].y = 65535; +#endif + context->extra[1].next = NULL; +} + +// find minimum y position if it starts at x1 +static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste) +{ + stbrp_node *node = first; + int x1 = x0 + width; + int min_y, visited_width, waste_area; + + STBRP__NOTUSED(c); + + STBRP_ASSERT(first->x <= x0); + + #if 0 + // skip in case we're past the node + while (node->next->x <= x0) + ++node; + #else + STBRP_ASSERT(node->next->x > x0); // we ended up handling this in the caller for efficiency + #endif + + STBRP_ASSERT(node->x <= x0); + + min_y = 0; + waste_area = 0; + visited_width = 0; + while (node->x < x1) { + if (node->y > min_y) { + // raise min_y higher. + // we've accounted for all waste up to min_y, + // but we'll now add more waste for everything we've visted + waste_area += visited_width * (node->y - min_y); + min_y = node->y; + // the first time through, visited_width might be reduced + if (node->x < x0) + visited_width += node->next->x - x0; + else + visited_width += node->next->x - node->x; + } else { + // add waste area + int under_width = node->next->x - node->x; + if (under_width + visited_width > width) + under_width = width - visited_width; + waste_area += under_width * (min_y - node->y); + visited_width += under_width; + } + node = node->next; + } + + *pwaste = waste_area; + return min_y; +} + +typedef struct +{ + int x,y; + stbrp_node **prev_link; +} stbrp__findresult; + +static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height) +{ + int best_waste = (1<<30), best_x, best_y = (1 << 30); + stbrp__findresult fr; + stbrp_node **prev, *node, *tail, **best = NULL; + + // align to multiple of c->align + width = (width + c->align - 1); + width -= width % c->align; + STBRP_ASSERT(width % c->align == 0); + + // if it can't possibly fit, bail immediately + if (width > c->width || height > c->height) { + fr.prev_link = NULL; + fr.x = fr.y = 0; + return fr; + } + + node = c->active_head; + prev = &c->active_head; + while (node->x + width <= c->width) { + int y,waste; + y = stbrp__skyline_find_min_y(c, node, node->x, width, &waste); + if (c->heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight) { // actually just want to test BL + // bottom left + if (y < best_y) { + best_y = y; + best = prev; + } + } else { + // best-fit + if (y + height <= c->height) { + // can only use it if it first vertically + if (y < best_y || (y == best_y && waste < best_waste)) { + best_y = y; + best_waste = waste; + best = prev; + } + } + } + prev = &node->next; + node = node->next; + } + + best_x = (best == NULL) ? 0 : (*best)->x; + + // if doing best-fit (BF), we also have to try aligning right edge to each node position + // + // e.g, if fitting + // + // ____________________ + // |____________________| + // + // into + // + // | | + // | ____________| + // |____________| + // + // then right-aligned reduces waste, but bottom-left BL is always chooses left-aligned + // + // This makes BF take about 2x the time + + if (c->heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight) { + tail = c->active_head; + node = c->active_head; + prev = &c->active_head; + // find first node that's admissible + while (tail->x < width) + tail = tail->next; + while (tail) { + int xpos = tail->x - width; + int y,waste; + STBRP_ASSERT(xpos >= 0); + // find the left position that matches this + while (node->next->x <= xpos) { + prev = &node->next; + node = node->next; + } + STBRP_ASSERT(node->next->x > xpos && node->x <= xpos); + y = stbrp__skyline_find_min_y(c, node, xpos, width, &waste); + if (y + height <= c->height) { + if (y <= best_y) { + if (y < best_y || waste < best_waste || (waste==best_waste && xpos < best_x)) { + best_x = xpos; + STBRP_ASSERT(y <= best_y); + best_y = y; + best_waste = waste; + best = prev; + } + } + } + tail = tail->next; + } + } + + fr.prev_link = best; + fr.x = best_x; + fr.y = best_y; + return fr; +} + +static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height) +{ + // find best position according to heuristic + stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height); + stbrp_node *node, *cur; + + // bail if: + // 1. it failed + // 2. the best node doesn't fit (we don't always check this) + // 3. we're out of memory + if (res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) { + res.prev_link = NULL; + return res; + } + + // on success, create new node + node = context->free_head; + node->x = (stbrp_coord) res.x; + node->y = (stbrp_coord) (res.y + height); + + context->free_head = node->next; + + // insert the new node into the right starting point, and + // let 'cur' point to the remaining nodes needing to be + // stiched back in + + cur = *res.prev_link; + if (cur->x < res.x) { + // preserve the existing one, so start testing with the next one + stbrp_node *next = cur->next; + cur->next = node; + cur = next; + } else { + *res.prev_link = node; + } + + // from here, traverse cur and free the nodes, until we get to one + // that shouldn't be freed + while (cur->next && cur->next->x <= res.x + width) { + stbrp_node *next = cur->next; + // move the current node to the free list + cur->next = context->free_head; + context->free_head = cur; + cur = next; + } + + // stitch the list back in + node->next = cur; + + if (cur->x < res.x + width) + cur->x = (stbrp_coord) (res.x + width); + +#ifdef _DEBUG + cur = context->active_head; + while (cur->x < context->width) { + STBRP_ASSERT(cur->x < cur->next->x); + cur = cur->next; + } + STBRP_ASSERT(cur->next == NULL); + + { + int count=0; + cur = context->active_head; + while (cur) { + cur = cur->next; + ++count; + } + cur = context->free_head; + while (cur) { + cur = cur->next; + ++count; + } + STBRP_ASSERT(count == context->num_nodes+2); + } +#endif + + return res; +} + +// [DEAR IMGUI] Added STBRP__CDECL +static int STBRP__CDECL rect_height_compare(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + if (p->h > q->h) + return -1; + if (p->h < q->h) + return 1; + return (p->w > q->w) ? -1 : (p->w < q->w); +} + +// [DEAR IMGUI] Added STBRP__CDECL +static int STBRP__CDECL rect_original_order(const void *a, const void *b) +{ + const stbrp_rect *p = (const stbrp_rect *) a; + const stbrp_rect *q = (const stbrp_rect *) b; + return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); +} + +#ifdef STBRP_LARGE_RECTS +#define STBRP__MAXVAL 0xffffffff +#else +#define STBRP__MAXVAL 0xffff +#endif + +STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) +{ + int i, all_rects_packed = 1; + + // we use the 'was_packed' field internally to allow sorting/unsorting + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = i; + } + + // sort according to heuristic + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); + + for (i=0; i < num_rects; ++i) { + if (rects[i].w == 0 || rects[i].h == 0) { + rects[i].x = rects[i].y = 0; // empty rect needs no space + } else { + stbrp__findresult fr = stbrp__skyline_pack_rectangle(context, rects[i].w, rects[i].h); + if (fr.prev_link) { + rects[i].x = (stbrp_coord) fr.x; + rects[i].y = (stbrp_coord) fr.y; + } else { + rects[i].x = rects[i].y = STBRP__MAXVAL; + } + } + } + + // unsort + STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_original_order); + + // set was_packed flags and all_rects_packed status + for (i=0; i < num_rects; ++i) { + rects[i].was_packed = !(rects[i].x == STBRP__MAXVAL && rects[i].y == STBRP__MAXVAL); + if (!rects[i].was_packed) + all_rects_packed = 0; + } + + // return the all_rects_packed status + return all_rects_packed; +} +#endif + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/CheatMenu/external/imgui/imstb_textedit.h b/CheatMenu/external/imgui/imstb_textedit.h new file mode 100644 index 0000000..7644670 --- /dev/null +++ b/CheatMenu/external/imgui/imstb_textedit.h @@ -0,0 +1,1447 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_textedit.h 1.13. +// Those changes would need to be pushed into nothings/stb: +// - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321) +// Grep for [DEAR IMGUI] to find the changes. + +// stb_textedit.h - v1.13 - public domain - Sean Barrett +// Development of this library was sponsored by RAD Game Tools +// +// This C header file implements the guts of a multi-line text-editing +// widget; you implement display, word-wrapping, and low-level string +// insertion/deletion, and stb_textedit will map user inputs into +// insertions & deletions, plus updates to the cursor position, +// selection state, and undo state. +// +// It is intended for use in games and other systems that need to build +// their own custom widgets and which do not have heavy text-editing +// requirements (this library is not recommended for use for editing large +// texts, as its performance does not scale and it has limited undo). +// +// Non-trivial behaviors are modelled after Windows text controls. +// +// +// LICENSE +// +// See end of file for license information. +// +// +// DEPENDENCIES +// +// Uses the C runtime function 'memmove', which you can override +// by defining STB_TEXTEDIT_memmove before the implementation. +// Uses no other functions. Performs no runtime allocations. +// +// +// VERSION HISTORY +// +// 1.13 (2019-02-07) fix bug in undo size management +// 1.12 (2018-01-29) user can change STB_TEXTEDIT_KEYTYPE, fix redo to avoid crash +// 1.11 (2017-03-03) fix HOME on last line, dragging off single-line textfield +// 1.10 (2016-10-25) supress warnings about casting away const with -Wcast-qual +// 1.9 (2016-08-27) customizable move-by-word +// 1.8 (2016-04-02) better keyboard handling when mouse button is down +// 1.7 (2015-09-13) change y range handling in case baseline is non-0 +// 1.6 (2015-04-15) allow STB_TEXTEDIT_memmove +// 1.5 (2014-09-10) add support for secondary keys for OS X +// 1.4 (2014-08-17) fix signed/unsigned warnings +// 1.3 (2014-06-19) fix mouse clicking to round to nearest char boundary +// 1.2 (2014-05-27) fix some RAD types that had crept into the new code +// 1.1 (2013-12-15) move-by-word (requires STB_TEXTEDIT_IS_SPACE ) +// 1.0 (2012-07-26) improve documentation, initial public release +// 0.3 (2012-02-24) bugfixes, single-line mode; insert mode +// 0.2 (2011-11-28) fixes to undo/redo +// 0.1 (2010-07-08) initial version +// +// ADDITIONAL CONTRIBUTORS +// +// Ulf Winklemann: move-by-word in 1.1 +// Fabian Giesen: secondary key inputs in 1.5 +// Martins Mozeiko: STB_TEXTEDIT_memmove in 1.6 +// +// Bugfixes: +// Scott Graham +// Daniel Keller +// Omar Cornut +// Dan Thompson +// +// USAGE +// +// This file behaves differently depending on what symbols you define +// before including it. +// +// +// Header-file mode: +// +// If you do not define STB_TEXTEDIT_IMPLEMENTATION before including this, +// it will operate in "header file" mode. In this mode, it declares a +// single public symbol, STB_TexteditState, which encapsulates the current +// state of a text widget (except for the string, which you will store +// separately). +// +// To compile in this mode, you must define STB_TEXTEDIT_CHARTYPE to a +// primitive type that defines a single character (e.g. char, wchar_t, etc). +// +// To save space or increase undo-ability, you can optionally define the +// following things that are used by the undo system: +// +// STB_TEXTEDIT_POSITIONTYPE small int type encoding a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// If you don't define these, they are set to permissive types and +// moderate sizes. The undo system does no memory allocations, so +// it grows STB_TexteditState by the worst-case storage which is (in bytes): +// +// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATE_COUNT +// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHAR_COUNT +// +// +// Implementation mode: +// +// If you define STB_TEXTEDIT_IMPLEMENTATION before including this, it +// will compile the implementation of the text edit widget, depending +// on a large number of symbols which must be defined before the include. +// +// The implementation is defined only as static functions. You will then +// need to provide your own APIs in the same file which will access the +// static functions. +// +// The basic concept is that you provide a "string" object which +// behaves like an array of characters. stb_textedit uses indices to +// refer to positions in the string, implicitly representing positions +// in the displayed textedit. This is true for both plain text and +// rich text; even with rich text stb_truetype interacts with your +// code as if there was an array of all the displayed characters. +// +// Symbols that must be the same in header-file and implementation mode: +// +// STB_TEXTEDIT_CHARTYPE the character type +// STB_TEXTEDIT_POSITIONTYPE small type that is a valid cursor position +// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow +// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer +// +// Symbols you must define for implementation mode: +// +// STB_TEXTEDIT_STRING the type of object representing a string being edited, +// typically this is a wrapper object with other data you need +// +// STB_TEXTEDIT_STRINGLEN(obj) the length of the string (ideally O(1)) +// STB_TEXTEDIT_LAYOUTROW(&r,obj,n) returns the results of laying out a line of characters +// starting from character #n (see discussion below) +// STB_TEXTEDIT_GETWIDTH(obj,n,i) returns the pixel delta from the xpos of the i'th character +// to the xpos of the i+1'th char for a line of characters +// starting at character #n (i.e. accounts for kerning +// with previous char) +// STB_TEXTEDIT_KEYTOTEXT(k) maps a keyboard input to an insertable character +// (return type is int, -1 means not valid to insert) +// STB_TEXTEDIT_GETCHAR(obj,i) returns the i'th character of obj, 0-based +// STB_TEXTEDIT_NEWLINE the character returned by _GETCHAR() we recognize +// as manually wordwrapping for end-of-line positioning +// +// STB_TEXTEDIT_DELETECHARS(obj,i,n) delete n characters starting at i +// STB_TEXTEDIT_INSERTCHARS(obj,i,c*,n) insert n characters at i (pointed to by STB_TEXTEDIT_CHARTYPE*) +// +// STB_TEXTEDIT_K_SHIFT a power of two that is or'd in to a keyboard input to represent the shift key +// +// STB_TEXTEDIT_K_LEFT keyboard input to move cursor left +// STB_TEXTEDIT_K_RIGHT keyboard input to move cursor right +// STB_TEXTEDIT_K_UP keyboard input to move cursor up +// STB_TEXTEDIT_K_DOWN keyboard input to move cursor down +// STB_TEXTEDIT_K_PGUP keyboard input to move cursor up a page +// STB_TEXTEDIT_K_PGDOWN keyboard input to move cursor down a page +// STB_TEXTEDIT_K_LINESTART keyboard input to move cursor to start of line // e.g. HOME +// STB_TEXTEDIT_K_LINEEND keyboard input to move cursor to end of line // e.g. END +// STB_TEXTEDIT_K_TEXTSTART keyboard input to move cursor to start of text // e.g. ctrl-HOME +// STB_TEXTEDIT_K_TEXTEND keyboard input to move cursor to end of text // e.g. ctrl-END +// STB_TEXTEDIT_K_DELETE keyboard input to delete selection or character under cursor +// STB_TEXTEDIT_K_BACKSPACE keyboard input to delete selection or character left of cursor +// STB_TEXTEDIT_K_UNDO keyboard input to perform undo +// STB_TEXTEDIT_K_REDO keyboard input to perform redo +// +// Optional: +// STB_TEXTEDIT_K_INSERT keyboard input to toggle insert mode +// STB_TEXTEDIT_IS_SPACE(ch) true if character is whitespace (e.g. 'isspace'), +// required for default WORDLEFT/WORDRIGHT handlers +// STB_TEXTEDIT_MOVEWORDLEFT(obj,i) custom handler for WORDLEFT, returns index to move cursor to +// STB_TEXTEDIT_MOVEWORDRIGHT(obj,i) custom handler for WORDRIGHT, returns index to move cursor to +// STB_TEXTEDIT_K_WORDLEFT keyboard input to move cursor left one word // e.g. ctrl-LEFT +// STB_TEXTEDIT_K_WORDRIGHT keyboard input to move cursor right one word // e.g. ctrl-RIGHT +// STB_TEXTEDIT_K_LINESTART2 secondary keyboard input to move cursor to start of line +// STB_TEXTEDIT_K_LINEEND2 secondary keyboard input to move cursor to end of line +// STB_TEXTEDIT_K_TEXTSTART2 secondary keyboard input to move cursor to start of text +// STB_TEXTEDIT_K_TEXTEND2 secondary keyboard input to move cursor to end of text +// +// Keyboard input must be encoded as a single integer value; e.g. a character code +// and some bitflags that represent shift states. to simplify the interface, SHIFT must +// be a bitflag, so we can test the shifted state of cursor movements to allow selection, +// i.e. (STB_TEXTEDIT_K_RIGHT|STB_TEXTEDIT_K_SHIFT) should be shifted right-arrow. +// +// You can encode other things, such as CONTROL or ALT, in additional bits, and +// then test for their presence in e.g. STB_TEXTEDIT_K_WORDLEFT. For example, +// my Windows implementations add an additional CONTROL bit, and an additional KEYDOWN +// bit. Then all of the STB_TEXTEDIT_K_ values bitwise-or in the KEYDOWN bit, +// and I pass both WM_KEYDOWN and WM_CHAR events to the "key" function in the +// API below. The control keys will only match WM_KEYDOWN events because of the +// keydown bit I add, and STB_TEXTEDIT_KEYTOTEXT only tests for the KEYDOWN +// bit so it only decodes WM_CHAR events. +// +// STB_TEXTEDIT_LAYOUTROW returns information about the shape of one displayed +// row of characters assuming they start on the i'th character--the width and +// the height and the number of characters consumed. This allows this library +// to traverse the entire layout incrementally. You need to compute word-wrapping +// here. +// +// Each textfield keeps its own insert mode state, which is not how normal +// applications work. To keep an app-wide insert mode, update/copy the +// "insert_mode" field of STB_TexteditState before/after calling API functions. +// +// API +// +// void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +// +// void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +// int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +// int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +// void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXEDIT_KEYTYPE key) +// +// Each of these functions potentially updates the string and updates the +// state. +// +// initialize_state: +// set the textedit state to a known good default state when initially +// constructing the textedit. +// +// click: +// call this with the mouse x,y on a mouse down; it will update the cursor +// and reset the selection start/end to the cursor point. the x,y must +// be relative to the text widget, with (0,0) being the top left. +// +// drag: +// call this with the mouse x,y on a mouse drag/up; it will update the +// cursor and the selection end point +// +// cut: +// call this to delete the current selection; returns true if there was +// one. you should FIRST copy the current selection to the system paste buffer. +// (To copy, just copy the current selection out of the string yourself.) +// +// paste: +// call this to paste text at the current cursor point or over the current +// selection if there is one. +// +// key: +// call this for keyboard inputs sent to the textfield. you can use it +// for "key down" events or for "translated" key events. if you need to +// do both (as in Win32), or distinguish Unicode characters from control +// inputs, set a high bit to distinguish the two; then you can define the +// various definitions like STB_TEXTEDIT_K_LEFT have the is-key-event bit +// set, and make STB_TEXTEDIT_KEYTOCHAR check that the is-key-event bit is +// clear. STB_TEXTEDIT_KEYTYPE defaults to int, but you can #define it to +// anything other type you wante before including. +// +// +// When rendering, you can read the cursor position and selection state from +// the STB_TexteditState. +// +// +// Notes: +// +// This is designed to be usable in IMGUI, so it allows for the possibility of +// running in an IMGUI that has NOT cached the multi-line layout. For this +// reason, it provides an interface that is compatible with computing the +// layout incrementally--we try to make sure we make as few passes through +// as possible. (For example, to locate the mouse pointer in the text, we +// could define functions that return the X and Y positions of characters +// and binary search Y and then X, but if we're doing dynamic layout this +// will run the layout algorithm many times, so instead we manually search +// forward in one pass. Similar logic applies to e.g. up-arrow and +// down-arrow movement.) +// +// If it's run in a widget that *has* cached the layout, then this is less +// efficient, but it's not horrible on modern computers. But you wouldn't +// want to edit million-line files with it. + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Header-file mode +//// +//// + +#ifndef INCLUDE_STB_TEXTEDIT_H +#define INCLUDE_STB_TEXTEDIT_H + +//////////////////////////////////////////////////////////////////////// +// +// STB_TexteditState +// +// Definition of STB_TexteditState which you should store +// per-textfield; it includes cursor position, selection state, +// and undo state. +// + +#ifndef STB_TEXTEDIT_UNDOSTATECOUNT +#define STB_TEXTEDIT_UNDOSTATECOUNT 99 +#endif +#ifndef STB_TEXTEDIT_UNDOCHARCOUNT +#define STB_TEXTEDIT_UNDOCHARCOUNT 999 +#endif +#ifndef STB_TEXTEDIT_CHARTYPE +#define STB_TEXTEDIT_CHARTYPE int +#endif +#ifndef STB_TEXTEDIT_POSITIONTYPE +#define STB_TEXTEDIT_POSITIONTYPE int +#endif + +typedef struct +{ + // private data + STB_TEXTEDIT_POSITIONTYPE where; + STB_TEXTEDIT_POSITIONTYPE insert_length; + STB_TEXTEDIT_POSITIONTYPE delete_length; + int char_storage; +} StbUndoRecord; + +typedef struct +{ + // private data + StbUndoRecord undo_rec [STB_TEXTEDIT_UNDOSTATECOUNT]; + STB_TEXTEDIT_CHARTYPE undo_char[STB_TEXTEDIT_UNDOCHARCOUNT]; + short undo_point, redo_point; + int undo_char_point, redo_char_point; +} StbUndoState; + +typedef struct +{ + ///////////////////// + // + // public data + // + + int cursor; + // position of the text cursor within the string + + int select_start; // selection start point + int select_end; + // selection start and end point in characters; if equal, no selection. + // note that start may be less than or greater than end (e.g. when + // dragging the mouse, start is where the initial click was, and you + // can drag in either direction) + + unsigned char insert_mode; + // each textfield keeps its own insert mode state. to keep an app-wide + // insert mode, copy this value in/out of the app state + + int row_count_per_page; + // page size in number of row. + // this value MUST be set to >0 for pageup or pagedown in multilines documents. + + ///////////////////// + // + // private data + // + unsigned char cursor_at_end_of_line; // not implemented yet + unsigned char initialized; + unsigned char has_preferred_x; + unsigned char single_line; + unsigned char padding1, padding2, padding3; + float preferred_x; // this determines where the cursor up/down tries to seek to along x + StbUndoState undostate; +} STB_TexteditState; + + +//////////////////////////////////////////////////////////////////////// +// +// StbTexteditRow +// +// Result of layout query, used by stb_textedit to determine where +// the text in each row is. + +// result of layout query +typedef struct +{ + float x0,x1; // starting x location, end x location (allows for align=right, etc) + float baseline_y_delta; // position of baseline relative to previous row's baseline + float ymin,ymax; // height of row above and below baseline + int num_chars; +} StbTexteditRow; +#endif //INCLUDE_STB_TEXTEDIT_H + + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +//// +//// Implementation mode +//// +//// + + +// implementation isn't include-guarded, since it might have indirectly +// included just the "header" portion +#ifdef STB_TEXTEDIT_IMPLEMENTATION + +#ifndef STB_TEXTEDIT_memmove +#include +#define STB_TEXTEDIT_memmove memmove +#endif + + +///////////////////////////////////////////////////////////////////////////// +// +// Mouse input handling +// + +// traverse the layout to locate the nearest character to a display position +static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y) +{ + StbTexteditRow r; + int n = STB_TEXTEDIT_STRINGLEN(str); + float base_y = 0, prev_x; + int i=0, k; + + r.x0 = r.x1 = 0; + r.ymin = r.ymax = 0; + r.num_chars = 0; + + // search rows to find one that straddles 'y' + while (i < n) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (r.num_chars <= 0) + return n; + + if (i==0 && y < base_y + r.ymin) + return 0; + + if (y < base_y + r.ymax) + break; + + i += r.num_chars; + base_y += r.baseline_y_delta; + } + + // below all text, return 'after' last character + if (i >= n) + return n; + + // check if it's before the beginning of the line + if (x < r.x0) + return i; + + // check if it's before the end of the line + if (x < r.x1) { + // search characters in row for one that straddles 'x' + prev_x = r.x0; + for (k=0; k < r.num_chars; ++k) { + float w = STB_TEXTEDIT_GETWIDTH(str, i, k); + if (x < prev_x+w) { + if (x < prev_x+w/2) + return k+i; + else + return k+i+1; + } + prev_x += w; + } + // shouldn't happen, but if it does, fall through to end-of-line case + } + + // if the last character is a newline, return that. otherwise return 'after' the last character + if (STB_TEXTEDIT_GETCHAR(str, i+r.num_chars-1) == STB_TEXTEDIT_NEWLINE) + return i+r.num_chars-1; + else + return i+r.num_chars; +} + +// API click: on mouse down, move the cursor to the clicked location, and reset the selection +static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + state->cursor = stb_text_locate_coord(str, x, y); + state->select_start = state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; +} + +// API drag: on mouse drag, move the cursor and selection endpoint to the clicked location +static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) +{ + int p = 0; + + // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse + // goes off the top or bottom of the text + if( state->single_line ) + { + StbTexteditRow r; + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + y = r.ymin; + } + + if (state->select_start == state->select_end) + state->select_start = state->cursor; + + p = stb_text_locate_coord(str, x, y); + state->cursor = state->select_end = p; +} + +///////////////////////////////////////////////////////////////////////////// +// +// Keyboard input handling +// + +// forward declarations +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length); +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length); + +typedef struct +{ + float x,y; // position of n'th character + float height; // height of line + int first_char, length; // first char of row, and length + int prev_first; // first char of previous row +} StbFindState; + +// find the x/y location of a character, and remember info about the previous row in +// case we get a move-up event (for page up, we'll have to rescan) +static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line) +{ + StbTexteditRow r; + int prev_start = 0; + int z = STB_TEXTEDIT_STRINGLEN(str); + int i=0, first; + + if (n == z) { + // if it's at the end, then find the last line -- simpler than trying to + // explicitly handle this case in the regular code + if (single_line) { + STB_TEXTEDIT_LAYOUTROW(&r, str, 0); + find->y = 0; + find->first_char = 0; + find->length = z; + find->height = r.ymax - r.ymin; + find->x = r.x1; + } else { + find->y = 0; + find->x = 0; + find->height = 1; + while (i < z) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + prev_start = i; + i += r.num_chars; + } + find->first_char = i; + find->length = 0; + find->prev_first = prev_start; + } + return; + } + + // search rows to find the one that straddles character n + find->y = 0; + + for(;;) { + STB_TEXTEDIT_LAYOUTROW(&r, str, i); + if (n < i + r.num_chars) + break; + prev_start = i; + i += r.num_chars; + find->y += r.baseline_y_delta; + } + + find->first_char = first = i; + find->length = r.num_chars; + find->height = r.ymax - r.ymin; + find->prev_first = prev_start; + + // now scan to find xpos + find->x = r.x0; + for (i=0; first+i < n; ++i) + find->x += STB_TEXTEDIT_GETWIDTH(str, first, i); +} + +#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end) + +// make the selection/cursor state valid if client altered the string +static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + int n = STB_TEXTEDIT_STRINGLEN(str); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start > n) state->select_start = n; + if (state->select_end > n) state->select_end = n; + // if clamping forced them to be equal, move the cursor to match + if (state->select_start == state->select_end) + state->cursor = state->select_start; + } + if (state->cursor > n) state->cursor = n; +} + +// delete characters while updating undo +static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len) +{ + stb_text_makeundo_delete(str, state, where, len); + STB_TEXTEDIT_DELETECHARS(str, where, len); + state->has_preferred_x = 0; +} + +// delete the section +static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + stb_textedit_clamp(str, state); + if (STB_TEXT_HAS_SELECTION(state)) { + if (state->select_start < state->select_end) { + stb_textedit_delete(str, state, state->select_start, state->select_end - state->select_start); + state->select_end = state->cursor = state->select_start; + } else { + stb_textedit_delete(str, state, state->select_end, state->select_start - state->select_end); + state->select_start = state->cursor = state->select_end; + } + state->has_preferred_x = 0; + } +} + +// canoncialize the selection so start <= end +static void stb_textedit_sortselection(STB_TexteditState *state) +{ + if (state->select_end < state->select_start) { + int temp = state->select_end; + state->select_end = state->select_start; + state->select_start = temp; + } +} + +// move cursor to first character of selection +static void stb_textedit_move_to_first(STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + state->cursor = state->select_start; + state->select_end = state->select_start; + state->has_preferred_x = 0; + } +} + +// move cursor to last character of selection +static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_sortselection(state); + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->select_start = state->select_end; + state->has_preferred_x = 0; + } +} + +#ifdef STB_TEXTEDIT_IS_SPACE +static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx ) +{ + return idx > 0 ? (STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str,idx-1) ) && !STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str, idx) ) ) : 1; +} + +#ifndef STB_TEXTEDIT_MOVEWORDLEFT +static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c ) +{ + --c; // always move at least one character + while( c >= 0 && !is_word_boundary( str, c ) ) + --c; + + if( c < 0 ) + c = 0; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDLEFT stb_textedit_move_to_word_previous +#endif + +#ifndef STB_TEXTEDIT_MOVEWORDRIGHT +static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c ) +{ + const int len = STB_TEXTEDIT_STRINGLEN(str); + ++c; // always move at least one character + while( c < len && !is_word_boundary( str, c ) ) + ++c; + + if( c > len ) + c = len; + + return c; +} +#define STB_TEXTEDIT_MOVEWORDRIGHT stb_textedit_move_to_word_next +#endif + +#endif + +// update selection and cursor to match each other +static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state) +{ + if (!STB_TEXT_HAS_SELECTION(state)) + state->select_start = state->select_end = state->cursor; + else + state->cursor = state->select_end; +} + +// API cut: delete selection +static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + if (STB_TEXT_HAS_SELECTION(state)) { + stb_textedit_delete_selection(str,state); // implicitly clamps + state->has_preferred_x = 0; + return 1; + } + return 0; +} + +// API paste: replace existing selection with passed-in text +static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) +{ + // if there's a selection, the paste should delete it + stb_textedit_clamp(str, state); + stb_textedit_delete_selection(str,state); + // try to insert the characters + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, text, len)) { + stb_text_makeundo_insert(state, state->cursor, len); + state->cursor += len; + state->has_preferred_x = 0; + return 1; + } + // remove the undo since we didn't actually insert the characters + if (state->undostate.undo_point) + --state->undostate.undo_point; + return 0; +} + +#ifndef STB_TEXTEDIT_KEYTYPE +#define STB_TEXTEDIT_KEYTYPE int +#endif + +// API key: process a keyboard input +static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key) +{ +retry: + switch (key) { + default: { + int c = STB_TEXTEDIT_KEYTOTEXT(key); + if (c > 0) { + STB_TEXTEDIT_CHARTYPE ch = (STB_TEXTEDIT_CHARTYPE) c; + + // can't add newline in single-line mode + if (c == '\n' && state->single_line) + break; + + if (state->insert_mode && !STB_TEXT_HAS_SELECTION(state) && state->cursor < STB_TEXTEDIT_STRINGLEN(str)) { + stb_text_makeundo_replace(str, state, state->cursor, 1, 1); + STB_TEXTEDIT_DELETECHARS(str, state->cursor, 1); + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + ++state->cursor; + state->has_preferred_x = 0; + } + } else { + stb_textedit_delete_selection(str,state); // implicitly clamps + if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { + stb_text_makeundo_insert(state, state->cursor, 1); + ++state->cursor; + state->has_preferred_x = 0; + } + } + } + break; + } + +#ifdef STB_TEXTEDIT_K_INSERT + case STB_TEXTEDIT_K_INSERT: + state->insert_mode = !state->insert_mode; + break; +#endif + + case STB_TEXTEDIT_K_UNDO: + stb_text_undo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_REDO: + stb_text_redo(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT: + // if currently there's a selection, move cursor to start of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else + if (state->cursor > 0) + --state->cursor; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_RIGHT: + // if currently there's a selection, move cursor to end of selection + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else + ++state->cursor; + stb_textedit_clamp(str, state); + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_LEFT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + // move selection left + if (state->select_end > 0) + --state->select_end; + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_MOVEWORDLEFT + case STB_TEXTEDIT_K_WORDLEFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + +#ifdef STB_TEXTEDIT_MOVEWORDRIGHT + case STB_TEXTEDIT_K_WORDRIGHT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + else { + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + stb_textedit_clamp( str, state ); + } + break; + + case STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT: + if( !STB_TEXT_HAS_SELECTION( state ) ) + stb_textedit_prep_selection_at_cursor(state); + + state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); + state->select_end = state->cursor; + + stb_textedit_clamp( str, state ); + break; +#endif + + case STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + // move selection right + ++state->select_end; + stb_textedit_clamp(str, state); + state->cursor = state->select_end; + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_DOWN: + case STB_TEXTEDIT_K_DOWN | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGDOWN: + case STB_TEXTEDIT_K_PGDOWN | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGDOWN; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down in single-line behave like left&right + key = STB_TEXTEDIT_K_RIGHT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_last(str, state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + int start = find.first_char + find.length; + + if (find.length == 0) + break; + + // [DEAR IMGUI] + // going down while being on the last line shouldn't bring us to that line end + if (STB_TEXTEDIT_GETCHAR(str, find.first_char + find.length - 1) != STB_TEXTEDIT_NEWLINE) + break; + + // now find character position down a row + state->cursor = start; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, start, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to next line + find.first_char = find.first_char + find.length; + find.length = row.num_chars; + } + break; + } + + case STB_TEXTEDIT_K_UP: + case STB_TEXTEDIT_K_UP | STB_TEXTEDIT_K_SHIFT: + case STB_TEXTEDIT_K_PGUP: + case STB_TEXTEDIT_K_PGUP | STB_TEXTEDIT_K_SHIFT: { + StbFindState find; + StbTexteditRow row; + int i, j, prev_scan, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; + int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGUP; + int row_count = is_page ? state->row_count_per_page : 1; + + if (!is_page && state->single_line) { + // on windows, up&down become left&right + key = STB_TEXTEDIT_K_LEFT | (key & STB_TEXTEDIT_K_SHIFT); + goto retry; + } + + if (sel) + stb_textedit_prep_selection_at_cursor(state); + else if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_move_to_first(state); + + // compute current position of cursor point + stb_textedit_clamp(str, state); + stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); + + for (j = 0; j < row_count; ++j) { + float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; + + // can only go up if there's a previous row + if (find.prev_first == find.first_char) + break; + + // now find character position up a row + state->cursor = find.prev_first; + STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); + x = row.x0; + for (i=0; i < row.num_chars; ++i) { + float dx = STB_TEXTEDIT_GETWIDTH(str, find.prev_first, i); + #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE + if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) + break; + #endif + x += dx; + if (x > goal_x) + break; + ++state->cursor; + } + stb_textedit_clamp(str, state); + + state->has_preferred_x = 1; + state->preferred_x = goal_x; + + if (sel) + state->select_end = state->cursor; + + // go to previous line + // (we need to scan previous line the hard way. maybe we could expose this as a new API function?) + prev_scan = find.prev_first > 0 ? find.prev_first - 1 : 0; + while (prev_scan > 0 && STB_TEXTEDIT_GETCHAR(str, prev_scan - 1) != STB_TEXTEDIT_NEWLINE) + --prev_scan; + find.first_char = find.prev_first; + find.prev_first = prev_scan; + } + break; + } + + case STB_TEXTEDIT_K_DELETE: + case STB_TEXTEDIT_K_DELETE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + int n = STB_TEXTEDIT_STRINGLEN(str); + if (state->cursor < n) + stb_textedit_delete(str, state, state->cursor, 1); + } + state->has_preferred_x = 0; + break; + + case STB_TEXTEDIT_K_BACKSPACE: + case STB_TEXTEDIT_K_BACKSPACE | STB_TEXTEDIT_K_SHIFT: + if (STB_TEXT_HAS_SELECTION(state)) + stb_textedit_delete_selection(str, state); + else { + stb_textedit_clamp(str, state); + if (state->cursor > 0) { + stb_textedit_delete(str, state, state->cursor-1, 1); + --state->cursor; + } + } + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2: +#endif + case STB_TEXTEDIT_K_TEXTSTART: + state->cursor = state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2: +#endif + case STB_TEXTEDIT_K_TEXTEND: + state->cursor = STB_TEXTEDIT_STRINGLEN(str); + state->select_start = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTSTART2 + case STB_TEXTEDIT_K_TEXTSTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTSTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = 0; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_TEXTEND2 + case STB_TEXTEDIT_K_TEXTEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_TEXTEND | STB_TEXTEDIT_K_SHIFT: + stb_textedit_prep_selection_at_cursor(state); + state->cursor = state->select_end = STB_TEXTEDIT_STRINGLEN(str); + state->has_preferred_x = 0; + break; + + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2: +#endif + case STB_TEXTEDIT_K_LINESTART: + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2: +#endif + case STB_TEXTEDIT_K_LINEEND: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_move_to_first(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->has_preferred_x = 0; + break; + } + +#ifdef STB_TEXTEDIT_K_LINESTART2 + case STB_TEXTEDIT_K_LINESTART2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT: + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = 0; + else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) + --state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + +#ifdef STB_TEXTEDIT_K_LINEEND2 + case STB_TEXTEDIT_K_LINEEND2 | STB_TEXTEDIT_K_SHIFT: +#endif + case STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT: { + int n = STB_TEXTEDIT_STRINGLEN(str); + stb_textedit_clamp(str, state); + stb_textedit_prep_selection_at_cursor(state); + if (state->single_line) + state->cursor = n; + else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) + ++state->cursor; + state->select_end = state->cursor; + state->has_preferred_x = 0; + break; + } + } +} + +///////////////////////////////////////////////////////////////////////////// +// +// Undo processing +// +// @OPTIMIZE: the undo/redo buffer should be circular + +static void stb_textedit_flush_redo(StbUndoState *state) +{ + state->redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; +} + +// discard the oldest entry in the undo list +static void stb_textedit_discard_undo(StbUndoState *state) +{ + if (state->undo_point > 0) { + // if the 0th undo state has characters, clean those up + if (state->undo_rec[0].char_storage >= 0) { + int n = state->undo_rec[0].insert_length, i; + // delete n characters from all other records + state->undo_char_point -= n; + STB_TEXTEDIT_memmove(state->undo_char, state->undo_char + n, (size_t) (state->undo_char_point*sizeof(STB_TEXTEDIT_CHARTYPE))); + for (i=0; i < state->undo_point; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage -= n; // @OPTIMIZE: get rid of char_storage and infer it + } + --state->undo_point; + STB_TEXTEDIT_memmove(state->undo_rec, state->undo_rec+1, (size_t) (state->undo_point*sizeof(state->undo_rec[0]))); + } +} + +// discard the oldest entry in the redo list--it's bad if this +// ever happens, but because undo & redo have to store the actual +// characters in different cases, the redo character buffer can +// fill up even though the undo buffer didn't +static void stb_textedit_discard_redo(StbUndoState *state) +{ + int k = STB_TEXTEDIT_UNDOSTATECOUNT-1; + + if (state->redo_point <= k) { + // if the k'th undo state has characters, clean those up + if (state->undo_rec[k].char_storage >= 0) { + int n = state->undo_rec[k].insert_length, i; + // move the remaining redo character data to the end of the buffer + state->redo_char_point += n; + STB_TEXTEDIT_memmove(state->undo_char + state->redo_char_point, state->undo_char + state->redo_char_point-n, (size_t) ((STB_TEXTEDIT_UNDOCHARCOUNT - state->redo_char_point)*sizeof(STB_TEXTEDIT_CHARTYPE))); + // adjust the position of all the other records to account for above memmove + for (i=state->redo_point; i < k; ++i) + if (state->undo_rec[i].char_storage >= 0) + state->undo_rec[i].char_storage += n; + } + // now move all the redo records towards the end of the buffer; the first one is at 'redo_point' + // [DEAR IMGUI] + size_t move_size = (size_t)((STB_TEXTEDIT_UNDOSTATECOUNT - state->redo_point - 1) * sizeof(state->undo_rec[0])); + const char* buf_begin = (char*)state->undo_rec; (void)buf_begin; + const char* buf_end = (char*)state->undo_rec + sizeof(state->undo_rec); (void)buf_end; + IM_ASSERT(((char*)(state->undo_rec + state->redo_point)) >= buf_begin); + IM_ASSERT(((char*)(state->undo_rec + state->redo_point + 1) + move_size) <= buf_end); + STB_TEXTEDIT_memmove(state->undo_rec + state->redo_point+1, state->undo_rec + state->redo_point, move_size); + + // now move redo_point to point to the new one + ++state->redo_point; + } +} + +static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars) +{ + // any time we create a new undo record, we discard redo + stb_textedit_flush_redo(state); + + // if we have no free records, we have to make room, by sliding the + // existing records down + if (state->undo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + stb_textedit_discard_undo(state); + + // if the characters to store won't possibly fit in the buffer, we can't undo + if (numchars > STB_TEXTEDIT_UNDOCHARCOUNT) { + state->undo_point = 0; + state->undo_char_point = 0; + return NULL; + } + + // if we don't have enough free characters in the buffer, we have to make room + while (state->undo_char_point + numchars > STB_TEXTEDIT_UNDOCHARCOUNT) + stb_textedit_discard_undo(state); + + return &state->undo_rec[state->undo_point++]; +} + +static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len) +{ + StbUndoRecord *r = stb_text_create_undo_record(state, insert_len); + if (r == NULL) + return NULL; + + r->where = pos; + r->insert_length = (STB_TEXTEDIT_POSITIONTYPE) insert_len; + r->delete_length = (STB_TEXTEDIT_POSITIONTYPE) delete_len; + + if (insert_len == 0) { + r->char_storage = -1; + return NULL; + } else { + r->char_storage = state->undo_char_point; + state->undo_char_point += insert_len; + return &state->undo_char[r->char_storage]; + } +} + +static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord u, *r; + if (s->undo_point == 0) + return; + + // we need to do two things: apply the undo record, and create a redo record + u = s->undo_rec[s->undo_point-1]; + r = &s->undo_rec[s->redo_point-1]; + r->char_storage = -1; + + r->insert_length = u.delete_length; + r->delete_length = u.insert_length; + r->where = u.where; + + if (u.delete_length) { + // if the undo record says to delete characters, then the redo record will + // need to re-insert the characters that get deleted, so we need to store + // them. + + // there are three cases: + // there's enough room to store the characters + // characters stored for *redoing* don't leave room for redo + // characters stored for *undoing* don't leave room for redo + // if the last is true, we have to bail + + if (s->undo_char_point + u.delete_length >= STB_TEXTEDIT_UNDOCHARCOUNT) { + // the undo records take up too much character space; there's no space to store the redo characters + r->insert_length = 0; + } else { + int i; + + // there's definitely room to store the characters eventually + while (s->undo_char_point + u.delete_length > s->redo_char_point) { + // should never happen: + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + // there's currently not enough room, so discard a redo record + stb_textedit_discard_redo(s); + } + r = &s->undo_rec[s->redo_point-1]; + + r->char_storage = s->redo_char_point - u.delete_length; + s->redo_char_point = s->redo_char_point - u.delete_length; + + // now save the characters + for (i=0; i < u.delete_length; ++i) + s->undo_char[r->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u.where + i); + } + + // now we can carry out the deletion + STB_TEXTEDIT_DELETECHARS(str, u.where, u.delete_length); + } + + // check type of recorded action: + if (u.insert_length) { + // easy case: was a deletion, so we need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, u.where, &s->undo_char[u.char_storage], u.insert_length); + s->undo_char_point -= u.insert_length; + } + + state->cursor = u.where + u.insert_length; + + s->undo_point--; + s->redo_point--; +} + +static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) +{ + StbUndoState *s = &state->undostate; + StbUndoRecord *u, r; + if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) + return; + + // we need to do two things: apply the redo record, and create an undo record + u = &s->undo_rec[s->undo_point]; + r = s->undo_rec[s->redo_point]; + + // we KNOW there must be room for the undo record, because the redo record + // was derived from an undo record + + u->delete_length = r.insert_length; + u->insert_length = r.delete_length; + u->where = r.where; + u->char_storage = -1; + + if (r.delete_length) { + // the redo record requires us to delete characters, so the undo record + // needs to store the characters + + if (s->undo_char_point + u->insert_length > s->redo_char_point) { + u->insert_length = 0; + u->delete_length = 0; + } else { + int i; + u->char_storage = s->undo_char_point; + s->undo_char_point = s->undo_char_point + u->insert_length; + + // now save the characters + for (i=0; i < u->insert_length; ++i) + s->undo_char[u->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u->where + i); + } + + STB_TEXTEDIT_DELETECHARS(str, r.where, r.delete_length); + } + + if (r.insert_length) { + // easy case: need to insert n characters + STB_TEXTEDIT_INSERTCHARS(str, r.where, &s->undo_char[r.char_storage], r.insert_length); + s->redo_char_point += r.insert_length; + } + + state->cursor = r.where + r.insert_length; + + s->undo_point++; + s->redo_point++; +} + +static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length) +{ + stb_text_createundo(&state->undostate, where, 0, length); +} + +static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, length, 0); + if (p) { + for (i=0; i < length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length) +{ + int i; + STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, old_length, new_length); + if (p) { + for (i=0; i < old_length; ++i) + p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); + } +} + +// reset the state to default +static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line) +{ + state->undostate.undo_point = 0; + state->undostate.undo_char_point = 0; + state->undostate.redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; + state->undostate.redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; + state->select_end = state->select_start = 0; + state->cursor = 0; + state->has_preferred_x = 0; + state->preferred_x = 0; + state->cursor_at_end_of_line = 0; + state->initialized = 1; + state->single_line = (unsigned char) is_single_line; + state->insert_mode = 0; + state->row_count_per_page = 0; +} + +// API initialize +static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) +{ + stb_textedit_clear_state(state, is_single_line); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len) +{ + return stb_textedit_paste_internal(str, state, (STB_TEXTEDIT_CHARTYPE *) ctext, len); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif//STB_TEXTEDIT_IMPLEMENTATION + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/CheatMenu/external/imgui/imstb_truetype.h b/CheatMenu/external/imgui/imstb_truetype.h new file mode 100644 index 0000000..e2b9d05 --- /dev/null +++ b/CheatMenu/external/imgui/imstb_truetype.h @@ -0,0 +1,4903 @@ +// [DEAR IMGUI] +// This is a slightly modified version of stb_truetype.h 1.20. +// Mostly fixing for compiler and static analyzer warnings. +// Grep for [DEAR IMGUI] to find the changes. + +// stb_truetype.h - v1.20 - public domain +// authored from 2009-2016 by Sean Barrett / RAD Game Tools +// +// This library processes TrueType files: +// parse files +// extract glyph metrics +// extract glyph shapes +// render glyphs to one-channel bitmaps with antialiasing (box filter) +// render glyphs to one-channel SDF bitmaps (signed-distance field/function) +// +// Todo: +// non-MS cmaps +// crashproof on bad data +// hinting? (no longer patented) +// cleartype-style AA? +// optimize: use simple memory allocator for intermediates +// optimize: build edge-list directly from curves +// optimize: rasterize directly from curves? +// +// ADDITIONAL CONTRIBUTORS +// +// Mikko Mononen: compound shape support, more cmap formats +// Tor Andersson: kerning, subpixel rendering +// Dougall Johnson: OpenType / Type 2 font handling +// Daniel Ribeiro Maciel: basic GPOS-based kerning +// +// Misc other: +// Ryan Gordon +// Simon Glass +// github:IntellectualKitty +// Imanol Celaya +// Daniel Ribeiro Maciel +// +// Bug/warning reports/fixes: +// "Zer" on mollyrocket Fabian "ryg" Giesen +// Cass Everitt Martins Mozeiko +// stoiko (Haemimont Games) Cap Petschulat +// Brian Hook Omar Cornut +// Walter van Niftrik github:aloucks +// David Gow Peter LaValle +// David Given Sergey Popov +// Ivan-Assen Ivanov Giumo X. Clanjor +// Anthony Pesch Higor Euripedes +// Johan Duparc Thomas Fields +// Hou Qiming Derek Vinyard +// Rob Loach Cort Stratton +// Kenney Phillis Jr. github:oyvindjam +// Brian Costabile github:vassvik +// +// VERSION HISTORY +// +// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() +// 1.19 (2018-02-11) GPOS kerning, STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) user-defined fabs(); rare memory leak; remove duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use allocation userdata properly +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// variant PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// +// Full history can be found at the end of this file. +// +// LICENSE +// +// See end of file for license information. +// +// USAGE +// +// Include this file in whatever places need to refer to it. In ONE C/C++ +// file, write: +// #define STB_TRUETYPE_IMPLEMENTATION +// before the #include of this file. This expands out the actual +// implementation into that C/C++ file. +// +// To make the implementation private to the file that generates the implementation, +// #define STBTT_STATIC +// +// Simple 3D API (don't ship this, but it's fine for tools and quick start) +// stbtt_BakeFontBitmap() -- bake a font to a bitmap for use as texture +// stbtt_GetBakedQuad() -- compute quad to draw for a given char +// +// Improved 3D API (more shippable): +// #include "stb_rect_pack.h" -- optional, but you really want it +// stbtt_PackBegin() +// stbtt_PackSetOversampling() -- for improved quality on small fonts +// stbtt_PackFontRanges() -- pack and renders +// stbtt_PackEnd() +// stbtt_GetPackedQuad() +// +// "Load" a font file from a memory buffer (you have to keep the buffer loaded) +// stbtt_InitFont() +// stbtt_GetFontOffsetForIndex() -- indexing for TTC font collections +// stbtt_GetNumberOfFonts() -- number of fonts for TTC font collections +// +// Render a unicode codepoint to a bitmap +// stbtt_GetCodepointBitmap() -- allocates and returns a bitmap +// stbtt_MakeCodepointBitmap() -- renders into bitmap you provide +// stbtt_GetCodepointBitmapBox() -- how big the bitmap must be +// +// Character advance/positioning +// stbtt_GetCodepointHMetrics() +// stbtt_GetFontVMetrics() +// stbtt_GetFontVMetricsOS2() +// stbtt_GetCodepointKernAdvance() +// +// Starting with version 1.06, the rasterizer was replaced with a new, +// faster and generally-more-precise rasterizer. The new rasterizer more +// accurately measures pixel coverage for anti-aliasing, except in the case +// where multiple shapes overlap, in which case it overestimates the AA pixel +// coverage. Thus, anti-aliasing of intersecting shapes may look wrong. If +// this turns out to be a problem, you can re-enable the old rasterizer with +// #define STBTT_RASTERIZER_VERSION 1 +// which will incur about a 15% speed hit. +// +// ADDITIONAL DOCUMENTATION +// +// Immediately after this block comment are a series of sample programs. +// +// After the sample programs is the "header file" section. This section +// includes documentation for each API function. +// +// Some important concepts to understand to use this library: +// +// Codepoint +// Characters are defined by unicode codepoints, e.g. 65 is +// uppercase A, 231 is lowercase c with a cedilla, 0x7e30 is +// the hiragana for "ma". +// +// Glyph +// A visual character shape (every codepoint is rendered as +// some glyph) +// +// Glyph index +// A font-specific integer ID representing a glyph +// +// Baseline +// Glyph shapes are defined relative to a baseline, which is the +// bottom of uppercase characters. Characters extend both above +// and below the baseline. +// +// Current Point +// As you draw text to the screen, you keep track of a "current point" +// which is the origin of each character. The current point's vertical +// position is the baseline. Even "baked fonts" use this model. +// +// Vertical Font Metrics +// The vertical qualities of the font, used to vertically position +// and space the characters. See docs for stbtt_GetFontVMetrics. +// +// Font Size in Pixels or Points +// The preferred interface for specifying font sizes in stb_truetype +// is to specify how tall the font's vertical extent should be in pixels. +// If that sounds good enough, skip the next paragraph. +// +// Most font APIs instead use "points", which are a common typographic +// measurement for describing font size, defined as 72 points per inch. +// stb_truetype provides a point API for compatibility. However, true +// "per inch" conventions don't make much sense on computer displays +// since different monitors have different number of pixels per +// inch. For example, Windows traditionally uses a convention that +// there are 96 pixels per inch, thus making 'inch' measurements have +// nothing to do with inches, and thus effectively defining a point to +// be 1.333 pixels. Additionally, the TrueType font data provides +// an explicit scale factor to scale a given font's glyphs to points, +// but the author has observed that this scale factor is often wrong +// for non-commercial fonts, thus making fonts scaled in points +// according to the TrueType spec incoherently sized in practice. +// +// DETAILED USAGE: +// +// Scale: +// Select how high you want the font to be, in points or pixels. +// Call ScaleForPixelHeight or ScaleForMappingEmToPixels to compute +// a scale factor SF that will be used by all other functions. +// +// Baseline: +// You need to select a y-coordinate that is the baseline of where +// your text will appear. Call GetFontBoundingBox to get the baseline-relative +// bounding box for all characters. SF*-y0 will be the distance in pixels +// that the worst-case character could extend above the baseline, so if +// you want the top edge of characters to appear at the top of the +// screen where y=0, then you would set the baseline to SF*-y0. +// +// Current point: +// Set the current point where the first character will appear. The +// first character could extend left of the current point; this is font +// dependent. You can either choose a current point that is the leftmost +// point and hope, or add some padding, or check the bounding box or +// left-side-bearing of the first character to be displayed and set +// the current point based on that. +// +// Displaying a character: +// Compute the bounding box of the character. It will contain signed values +// relative to . I.e. if it returns x0,y0,x1,y1, +// then the character should be displayed in the rectangle from +// to = 32 && *text < 128) { + stbtt_aligned_quad q; + stbtt_GetBakedQuad(cdata, 512,512, *text-32, &x,&y,&q,1);//1=opengl & d3d10+,0=d3d9 + glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y0); + glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y0); + glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y1); + glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y1); + } + ++text; + } + glEnd(); +} +#endif +// +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program (this compiles): get a single bitmap, print as ASCII art +// +#if 0 +#include +#define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation +#include "stb_truetype.h" + +char ttf_buffer[1<<25]; + +int main(int argc, char **argv) +{ + stbtt_fontinfo font; + unsigned char *bitmap; + int w,h,i,j,c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20); + + fread(ttf_buffer, 1, 1<<25, fopen(argc > 3 ? argv[3] : "c:/windows/fonts/arialbd.ttf", "rb")); + + stbtt_InitFont(&font, ttf_buffer, stbtt_GetFontOffsetForIndex(ttf_buffer,0)); + bitmap = stbtt_GetCodepointBitmap(&font, 0,stbtt_ScaleForPixelHeight(&font, s), c, &w, &h, 0,0); + + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) + putchar(" .:ioVM@"[bitmap[j*w+i]>>5]); + putchar('\n'); + } + return 0; +} +#endif +// +// Output: +// +// .ii. +// @@@@@@. +// V@Mio@@o +// :i. V@V +// :oM@@M +// :@@@MM@M +// @@o o@M +// :@@. M@M +// @@@o@@@@ +// :M@@V:@@. +// +////////////////////////////////////////////////////////////////////////////// +// +// Complete program: print "Hello World!" banner, with bugs +// +#if 0 +char buffer[24<<20]; +unsigned char screen[20][79]; + +int main(int arg, char **argv) +{ + stbtt_fontinfo font; + int i,j,ascent,baseline,ch=0; + float scale, xpos=2; // leave a little padding in case the character extends left + char *text = "Heljo World!"; // intentionally misspelled to show 'lj' brokenness + + fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb")); + stbtt_InitFont(&font, buffer, 0); + + scale = stbtt_ScaleForPixelHeight(&font, 15); + stbtt_GetFontVMetrics(&font, &ascent,0,0); + baseline = (int) (ascent*scale); + + while (text[ch]) { + int advance,lsb,x0,y0,x1,y1; + float x_shift = xpos - (float) floor(xpos); + stbtt_GetCodepointHMetrics(&font, text[ch], &advance, &lsb); + stbtt_GetCodepointBitmapBoxSubpixel(&font, text[ch], scale,scale,x_shift,0, &x0,&y0,&x1,&y1); + stbtt_MakeCodepointBitmapSubpixel(&font, &screen[baseline + y0][(int) xpos + x0], x1-x0,y1-y0, 79, scale,scale,x_shift,0, text[ch]); + // note that this stomps the old data, so where character boxes overlap (e.g. 'lj') it's wrong + // because this API is really for baking character bitmaps into textures. if you want to render + // a sequence of characters, you really need to render each bitmap to a temp buffer, then + // "alpha blend" that into the working buffer + xpos += (advance * scale); + if (text[ch+1]) + xpos += scale*stbtt_GetCodepointKernAdvance(&font, text[ch],text[ch+1]); + ++ch; + } + + for (j=0; j < 20; ++j) { + for (i=0; i < 78; ++i) + putchar(" .:ioVM@"[screen[j][i]>>5]); + putchar('\n'); + } + + return 0; +} +#endif + + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// +//// +//// INTEGRATION WITH YOUR CODEBASE +//// +//// The following sections allow you to supply alternate definitions +//// of C library functions used by stb_truetype, e.g. if you don't +//// link with the C runtime library. + +#ifdef STB_TRUETYPE_IMPLEMENTATION + // #define your own (u)stbtt_int8/16/32 before including to override this + #ifndef stbtt_uint8 + typedef unsigned char stbtt_uint8; + typedef signed char stbtt_int8; + typedef unsigned short stbtt_uint16; + typedef signed short stbtt_int16; + typedef unsigned int stbtt_uint32; + typedef signed int stbtt_int32; + #endif + + typedef char stbtt__check_size32[sizeof(stbtt_int32)==4 ? 1 : -1]; + typedef char stbtt__check_size16[sizeof(stbtt_int16)==2 ? 1 : -1]; + + // e.g. #define your own STBTT_ifloor/STBTT_iceil() to avoid math.h + #ifndef STBTT_ifloor + #include + #define STBTT_ifloor(x) ((int) floor(x)) + #define STBTT_iceil(x) ((int) ceil(x)) + #endif + + #ifndef STBTT_sqrt + #include + #define STBTT_sqrt(x) sqrt(x) + #define STBTT_pow(x,y) pow(x,y) + #endif + + #ifndef STBTT_fmod + #include + #define STBTT_fmod(x,y) fmod(x,y) + #endif + + #ifndef STBTT_cos + #include + #define STBTT_cos(x) cos(x) + #define STBTT_acos(x) acos(x) + #endif + + #ifndef STBTT_fabs + #include + #define STBTT_fabs(x) fabs(x) + #endif + + // #define your own functions "STBTT_malloc" / "STBTT_free" to avoid malloc.h + #ifndef STBTT_malloc + #include + #define STBTT_malloc(x,u) ((void)(u),malloc(x)) + #define STBTT_free(x,u) ((void)(u),free(x)) + #endif + + #ifndef STBTT_assert + #include + #define STBTT_assert(x) assert(x) + #endif + + #ifndef STBTT_strlen + #include + #define STBTT_strlen(x) strlen(x) + #endif + + #ifndef STBTT_memcpy + #include + #define STBTT_memcpy memcpy + #define STBTT_memset memset + #endif +#endif + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// INTERFACE +//// +//// + +#ifndef __STB_INCLUDE_STB_TRUETYPE_H__ +#define __STB_INCLUDE_STB_TRUETYPE_H__ + +#ifdef STBTT_STATIC +#define STBTT_DEF static +#else +#define STBTT_DEF extern +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +// private structure +typedef struct +{ + unsigned char *data; + int cursor; + int menu_size; +} stbtt__buf; + +////////////////////////////////////////////////////////////////////////////// +// +// TEXTURE BAKING API +// +// If you use this API, you only have to call two functions ever. +// + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; +} stbtt_bakedchar; + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata); // you allocate this, it's num_chars long +// if return is positive, the first unused row of the bitmap +// if return is negative, returns the negative of the number of characters that fit +// if return is 0, no characters fit and no rows were used +// This uses a very crappy packing. + +typedef struct +{ + float x0,y0,s0,t0; // top-left + float x1,y1,s1,t1; // bottom-right +} stbtt_aligned_quad; + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int opengl_fillrule); // true if opengl fill rule; false if DX9 or earlier +// Call GetBakedQuad with char_index = 'character - first_char', and it +// creates the quad you need to draw and advances the current position. +// +// The coordinate system used assumes y increases downwards. +// +// Characters will extend both above and below the current position; +// see discussion of "BASELINE" above. +// +// It's inefficient; you might want to c&p it and optimize it. + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float menu_size, float *ascent, float *descent, float *lineGap); +// Query the font vertical metrics without having to create a font first. + + +////////////////////////////////////////////////////////////////////////////// +// +// NEW TEXTURE BAKING API +// +// This provides options for packing multiple fonts into one atlas, not +// perfectly but better than nothing. + +typedef struct +{ + unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap + float xoff,yoff,xadvance; + float xoff2,yoff2; +} stbtt_packedchar; + +typedef struct stbtt_pack_context stbtt_pack_context; +typedef struct stbtt_fontinfo stbtt_fontinfo; +#ifndef STB_RECT_PACK_VERSION +typedef struct stbrp_rect stbrp_rect; +#endif + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context); +// Initializes a packing context stored in the passed-in stbtt_pack_context. +// Future calls using this context will pack characters into the bitmap passed +// in here: a 1-channel bitmap that is width * height. stride_in_bytes is +// the distance from one row to the next (or 0 to mean they are packed tightly +// together). "padding" is the amount of padding to leave between each +// character (normally you want '1' for bitmaps you'll use as textures with +// bilinear filtering). +// +// Returns 0 on failure, 1 on success. + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc); +// Cleans up the packing context and frees all memory. + +#define STBTT_POINT_SIZE(x) (-(x)) + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_char_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range); +// Creates character bitmaps from the font_index'th font found in fontdata (use +// font_index=0 if you don't know what that is). It creates num_chars_in_range +// bitmaps for characters with unicode values starting at first_unicode_char_in_range +// and increasing. Data for how to render them is stored in chardata_for_range; +// pass these to stbtt_GetPackedQuad to get back renderable quads. +// +// font_size is the full height of the character from ascender to descender, +// as computed by stbtt_ScaleForPixelHeight. To use a point size as computed +// by stbtt_ScaleForMappingEmToPixels, wrap the point size in STBTT_POINT_SIZE() +// and pass that result as 'font_size': +// ..., 20 , ... // font max minus min y is 20 pixels tall +// ..., STBTT_POINT_SIZE(20), ... // 'M' is 20 pixels tall + +typedef struct +{ + float font_size; + int first_unicode_codepoint_in_range; // if non-zero, then the chars are continuous, and this is the first codepoint + int *array_of_unicode_codepoints; // if non-zero, then this is an array of unicode codepoints + int num_chars; + stbtt_packedchar *chardata_for_range; // output + unsigned char h_oversample, v_oversample; // don't set these, they're used internally +} stbtt_pack_range; + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges); +// Creates character bitmaps from multiple ranges of characters stored in +// ranges. This will usually create a better-packed bitmap than multiple +// calls to stbtt_PackFontRange. Note that you can call this multiple +// times within a single PackBegin/PackEnd. + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample); +// Oversampling a font increases the quality by allowing higher-quality subpixel +// positioning, and is especially valuable at smaller text sizes. +// +// This function sets the amount of oversampling for all following calls to +// stbtt_PackFontRange(s) or stbtt_PackFontRangesGatherRects for a given +// pack context. The default (no oversampling) is achieved by h_oversample=1 +// and v_oversample=1. The total number of pixels required is +// h_oversample*v_oversample larger than the default; for example, 2x2 +// oversampling requires 4x the storage of 1x1. For best results, render +// oversampled textures with bilinear filtering. Look at the readme in +// stb/tests/oversample for information about oversampled fonts +// +// To use with PackFontRangesGather etc., you must set it before calls +// call to PackFontRangesGatherRects. + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip); +// If skip != 0, this tells stb_truetype to skip any codepoints for which +// there is no corresponding glyph. If skip=0, which is the default, then +// codepoints without a glyph recived the font's "missing character" glyph, +// typically an empty box by convention. + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, // same data as above + int char_index, // character to display + float *xpos, float *ypos, // pointers to current position in screen pixel space + stbtt_aligned_quad *q, // output: quad to draw + int align_to_integer); + +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects); +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); +// Calling these functions in sequence is roughly equivalent to calling +// stbtt_PackFontRanges(). If you more control over the packing of multiple +// fonts, or if you want to pack custom data into a font texture, take a look +// at the source to of stbtt_PackFontRanges() and create a custom version +// using these functions, e.g. call GatherRects multiple times, +// building up a single array of rects, then call PackRects once, +// then call RenderIntoRects repeatedly. This may result in a +// better packing than calling PackFontRanges multiple times +// (or it may not). + +// this is an opaque structure that you shouldn't mess with which holds +// all the context needed from PackBegin to PackEnd. +struct stbtt_pack_context { + void *user_allocator_context; + void *pack_info; + int width; + int height; + int stride_in_bytes; + int padding; + int skip_missing; + unsigned int h_oversample, v_oversample; + unsigned char *pixels; + void *veh_nodes; +}; + +////////////////////////////////////////////////////////////////////////////// +// +// FONT LOADING +// +// + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data); +// This function will determine the number of fonts in a font file. TrueType +// collection (.ttc) files may contain multiple fonts, while TrueType font +// (.ttf) files only contain one font. The number of fonts can be used for +// indexing with the previous function where the index is between zero and one +// less than the total fonts. If an error occurs, -1 is returned. + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index); +// Each .ttf/.ttc file may have more than one font. Each font has a sequential +// index number starting from 0. Call this function to get the font offset for +// a given index; it returns -1 if the index is out of range. A regular .ttf +// file will only define one font and it always be at offset 0, so it will +// return '0' for index 0, and -1 for all other indices. + +// The following structure is defined publicly so you can declare one on +// the stack or as a global or etc, but you should treat it as opaque. +struct stbtt_fontinfo +{ + void * userdata; + unsigned char * data; // pointer to .ttf file + int fontstart; // offset of start of font + + int numGlyphs; // number of glyphs, needed for range checking + + int loca,head,glyf,hhea,hmtx,kern,gpos; // table locations as offset from start of .ttf + int index_map; // a cmap mapping for our chosen character encoding + int indexToLocFormat; // format needed to map from glyph index to glyph + + stbtt__buf cff; // cff font data + stbtt__buf charstrings; // the charstring index + stbtt__buf gsubrs; // global charstring subroutines index + stbtt__buf subrs; // private charstring subroutines index + stbtt__buf fontdicts; // array of font dicts + stbtt__buf fdselect; // map from glyph to fontdict +}; + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset); +// Given an offset into the file that defines a font, this function builds +// the necessary cached info for the rest of the system. You must allocate +// the stbtt_fontinfo yourself, and stbtt_InitFont will fill it out. You don't +// need to do anything special to free it, because the contents are pure +// value data with no additional data structures. Returns 0 on failure. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER TO GLYPH-INDEX CONVERSIOn + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint); +// If you're going to perform multiple operations on the same character +// and you want a speed-up, call this function with the character you're +// going to process, then use glyph-based functions instead of the +// codepoint-based functions. +// Returns 0 if the character codepoint is not defined in the font. + + +////////////////////////////////////////////////////////////////////////////// +// +// CHARACTER PROPERTIES +// + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose "height" is 'pixels' tall. +// Height is measured as the distance from the highest ascender to the lowest +// descender; in other words, it's equivalent to calling stbtt_GetFontVMetrics +// and computing: +// scale = pixels / (ascent - descent) +// so if you prefer to measure height by the ascent only, use a similar calculation. + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels); +// computes a scale factor to produce a font whose EM size is mapped to +// 'pixels' tall. This is probably what traditional APIs compute, but +// I'm not positive. + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap); +// ascent is the coordinate above the baseline the font extends; descent +// is the coordinate below the baseline the font extends (i.e. it is typically negative) +// lineGap is the spacing between one row's descent and the next row's ascent... +// so you should advance the vertical position by "*ascent - *descent + *lineGap" +// these are expressed in unscaled coordinates, so you must multiply by +// the scale factor for a given size + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap); +// analogous to GetFontVMetrics, but returns the "typographic" values from the OS/2 +// table (specific to MS/Windows TTF files). +// +// Returns 1 on success (table present), 0 on failure. + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1); +// the bounding box around all possible characters + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing); +// leftSideBearing is the offset from the current horizontal position to the left edge of the character +// advanceWidth is the offset from the current horizontal position to the next horizontal position +// these are expressed in unscaled coordinates + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2); +// an additional amount to add to the 'advance' value between ch1 and ch2 + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1); +// Gets the bounding box of the visible part of the glyph, in unscaled coordinates + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing); +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2); +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); +// as above, but takes one or more glyph indices for greater efficiency + + +////////////////////////////////////////////////////////////////////////////// +// +// GLYPH SHAPES (you probably don't need these, but they have to go before +// the bitmaps for C declaration-order reasons) +// + +#ifndef STBTT_vmove // you can predefine these to use different values (but why?) + enum { + STBTT_vmove=1, + STBTT_vline, + STBTT_vcurve, + STBTT_vcubic + }; +#endif + +#ifndef stbtt_vertex // you can predefine this to use different values + // (we share this with other code at RAD) + #define stbtt_vertex_type short // can't use stbtt_int16 because that's not visible in the header file + typedef struct + { + stbtt_vertex_type x,y,cx,cy,cx1,cy1; + unsigned char type,padding; + } stbtt_vertex; +#endif + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index); +// returns non-zero if nothing is drawn for this glyph + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices); +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices); +// returns # of vertices and fills *vertices with the pointer to them +// these are expressed in "unscaled" coordinates +// +// The shape is a series of contours. Each one starts with +// a STBTT_moveto, then consists of a series of mixed +// STBTT_lineto and STBTT_curveto segments. A lineto +// draws a line from previous endpoint to its x,y; a curveto +// draws a quadratic bezier from previous endpoint to +// its x,y, using cx,cy as the bezier control point. + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices); +// frees the data allocated above + +////////////////////////////////////////////////////////////////////////////// +// +// BITMAP RENDERING +// + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata); +// frees the bitmap allocated below + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// allocates a large-enough single-channel 8bpp bitmap and renders the +// specified character/glyph at the specified scale into it, with +// antialiasing. 0 is no coverage (transparent), 255 is fully covered (opaque). +// *width & *height are filled out with the width & height of the bitmap, +// which is stored left-to-right, top-to-bottom. +// +// xoff/yoff are the offset it pixel space from the glyph origin to the top-left of the bitmap + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff); +// the same as stbtt_GetCodepoitnBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint); +// the same as stbtt_GetCodepointBitmap, but you pass in storage for the bitmap +// in the form of 'output', with row spacing of 'out_stride' bytes. the bitmap +// is clipped to out_w/out_h bytes. Call stbtt_GetCodepointBitmapBox to get the +// width and height and positioning info for it first. + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint); +// same as stbtt_MakeCodepointBitmap, but you can specify a subpixel +// shift for the character + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint); +// same as stbtt_MakeCodepointBitmapSubpixel, but prefiltering +// is performed (see stbtt_PackSetOversampling) + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +// get the bbox of the bitmap centered around the glyph origin; so the +// bitmap width is ix1-ix0, height is iy1-iy0, and location to place +// the bitmap top left is (leftSideBearing*scale,iy0). +// (Note that the bitmap uses y-increases-down, but the shape uses +// y-increases-up, so CodepointBitmapBox and CodepointBox are inverted.) + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); +// same as stbtt_GetCodepointBitmapBox, but you can specify a subpixel +// shift for the character + +// the following functions are equivalent to the above functions, but operate +// on glyph indices instead of Unicode codepoints (for efficiency) +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph); +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph); +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); + + +// @TODO: don't expose this structure +typedef struct +{ + int w,h,stride; + unsigned char *pixels; +} stbtt__bitmap; + +// rasterize a shape with quadratic beziers into a bitmap +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, // 1-channel bitmap to draw into + float flatness_in_pixels, // allowable error of curve in pixels + stbtt_vertex *vertices, // array of vertices defining shape + int num_verts, // number of vertices in above array + float scale_x, float scale_y, // scale applied to input vertices + float shift_x, float shift_y, // translation applied to input vertices + int x_off, int y_off, // another translation applied to input + int invert, // if non-zero, vertically flip shape + void *userdata); // context for to STBTT_MALLOC + +////////////////////////////////////////////////////////////////////////////// +// +// Signed Distance Function (or Field) rendering + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata); +// frees the SDF bitmap allocated below + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); +// These functions compute a discretized SDF field for a single character, suitable for storing +// in a single-channel texture, sampling with bilinear filtering, and testing against +// larger than some threshold to produce scalable fonts. +// info -- the font +// scale -- controls the size of the resulting SDF bitmap, same as it would be creating a regular bitmap +// glyph/codepoint -- the character to generate the SDF for +// padding -- extra "pixels" around the character which are filled with the distance to the character (not 0), +// which allows effects like bit outlines +// onedge_value -- value 0-255 to test the SDF against to reconstruct the character (i.e. the isocontour of the character) +// pixel_dist_scale -- what value the SDF should increase by when moving one SDF "pixel" away from the edge (on the 0..255 scale) +// if positive, > onedge_value is inside; if negative, < onedge_value is inside +// width,height -- output height & width of the SDF bitmap (including padding) +// xoff,yoff -- output origin of the character +// return value -- a 2D array of bytes 0..255, width*height in size +// +// pixel_dist_scale & onedge_value are a scale & bias that allows you to make +// optimal use of the limited 0..255 for your application, trading off precision +// and special effects. SDF values outside the range 0..255 are clamped to 0..255. +// +// Example: +// scale = stbtt_ScaleForPixelHeight(22) +// padding = 5 +// onedge_value = 180 +// pixel_dist_scale = 180/5.0 = 36.0 +// +// This will create an SDF bitmap in which the character is about 22 pixels +// high but the whole bitmap is about 22+5+5=32 pixels high. To produce a filled +// shape, sample the SDF at each pixel and fill the pixel if the SDF value +// is greater than or equal to 180/255. (You'll actually want to antialias, +// which is beyond the scope of this example.) Additionally, you can compute +// offset outlines (e.g. to stroke the character border inside & outside, +// or only outside). For example, to fill outside the character up to 3 SDF +// pixels, you would compare against (180-36.0*3)/255 = 72/255. The above +// choice of variables maps a range from 5 pixels outside the shape to +// 2 pixels inside the shape to 0..255; this is intended primarily for apply +// outside effects only (the interior range is needed to allow proper +// antialiasing of the font at *smaller* sizes) +// +// The function computes the SDF analytically at each SDF pixel, not by e.g. +// building a higher-res bitmap and approximating it. In theory the quality +// should be as high as possible for an SDF of this size & representation, but +// unclear if this is true in practice (perhaps building a higher-res bitmap +// and computing from that can allow drop-out prevention). +// +// The algorithm has not been optimized at all, so expect it to be slow +// if computing lots of characters or very large sizes. + + + +////////////////////////////////////////////////////////////////////////////// +// +// Finding the right font... +// +// You should really just solve this offline, keep your own tables +// of what font is what, and don't try to get it out of the .ttf file. +// That's because getting it out of the .ttf file is really hard, because +// the names in the file can appear in many possible encodings, in many +// possible languages, and e.g. if you need a case-insensitive comparison, +// the details of that depend on the encoding & language in a complex way +// (actually underspecified in truetype, but also gigantic). +// +// But you can use the provided functions in two possible ways: +// stbtt_FindMatchingFont() will use *case-sensitive* comparisons on +// unicode-encoded names to try to find the font you want; +// you can run this before calling stbtt_InitFont() +// +// stbtt_GetFontNameString() lets you get any of the various strings +// from the file yourself and do your own comparisons on them. +// You have to have called stbtt_InitFont() first. + + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags); +// returns the offset (not index) of the font that matches, or -1 if none +// if you use STBTT_MACSTYLE_DONTCARE, use a font name like "Arial Bold". +// if you use any other flag, use a font name like "Arial"; this checks +// the 'macStyle' header field; i don't know if fonts set this consistently +#define STBTT_MACSTYLE_DONTCARE 0 +#define STBTT_MACSTYLE_BOLD 1 +#define STBTT_MACSTYLE_ITALIC 2 +#define STBTT_MACSTYLE_UNDERSCORE 4 +#define STBTT_MACSTYLE_NONE 8 // <= not same as 0, this makes us check the bitfield is 0 + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2); +// returns 1/0 whether the first string interpreted as utf8 is identical to +// the second string interpreted as big-endian utf16... useful for strings from next func + +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID); +// returns the string (which may be big-endian double byte, e.g. for unicode) +// and puts the length in bytes in *length. +// +// some of the values for the IDs are below; for more see the truetype spec: +// http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6name.html +// http://www.microsoft.com/typography/otspec/name.htm + +enum { // platformID + STBTT_PLATFORM_ID_UNICODE =0, + STBTT_PLATFORM_ID_MAC =1, + STBTT_PLATFORM_ID_ISO =2, + STBTT_PLATFORM_ID_MICROSOFT =3 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_UNICODE + STBTT_UNICODE_EID_UNICODE_1_0 =0, + STBTT_UNICODE_EID_UNICODE_1_1 =1, + STBTT_UNICODE_EID_ISO_10646 =2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP=3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL=4 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MICROSOFT + STBTT_MS_EID_SYMBOL =0, + STBTT_MS_EID_UNICODE_BMP =1, + STBTT_MS_EID_SHIFTJIS =2, + STBTT_MS_EID_UNICODE_FULL =10 +}; + +enum { // encodingID for STBTT_PLATFORM_ID_MAC; same as Script Manager codes + STBTT_MAC_EID_ROMAN =0, STBTT_MAC_EID_ARABIC =4, + STBTT_MAC_EID_JAPANESE =1, STBTT_MAC_EID_HEBREW =5, + STBTT_MAC_EID_CHINESE_TRAD =2, STBTT_MAC_EID_GREEK =6, + STBTT_MAC_EID_KOREAN =3, STBTT_MAC_EID_RUSSIAN =7 +}; + +enum { // languageID for STBTT_PLATFORM_ID_MICROSOFT; same as LCID... + // problematic because there are e.g. 16 english LCIDs and 16 arabic LCIDs + STBTT_MS_LANG_ENGLISH =0x0409, STBTT_MS_LANG_ITALIAN =0x0410, + STBTT_MS_LANG_CHINESE =0x0804, STBTT_MS_LANG_JAPANESE =0x0411, + STBTT_MS_LANG_DUTCH =0x0413, STBTT_MS_LANG_KOREAN =0x0412, + STBTT_MS_LANG_FRENCH =0x040c, STBTT_MS_LANG_RUSSIAN =0x0419, + STBTT_MS_LANG_GERMAN =0x0407, STBTT_MS_LANG_SPANISH =0x0409, + STBTT_MS_LANG_HEBREW =0x040d, STBTT_MS_LANG_SWEDISH =0x041D +}; + +enum { // languageID for STBTT_PLATFORM_ID_MAC + STBTT_MAC_LANG_ENGLISH =0 , STBTT_MAC_LANG_JAPANESE =11, + STBTT_MAC_LANG_ARABIC =12, STBTT_MAC_LANG_KOREAN =23, + STBTT_MAC_LANG_DUTCH =4 , STBTT_MAC_LANG_RUSSIAN =32, + STBTT_MAC_LANG_FRENCH =1 , STBTT_MAC_LANG_SPANISH =6 , + STBTT_MAC_LANG_GERMAN =2 , STBTT_MAC_LANG_SWEDISH =5 , + STBTT_MAC_LANG_HEBREW =10, STBTT_MAC_LANG_CHINESE_SIMPLIFIED =33, + STBTT_MAC_LANG_ITALIAN =3 , STBTT_MAC_LANG_CHINESE_TRAD =19 +}; + +#ifdef __cplusplus +} +#endif + +#endif // __STB_INCLUDE_STB_TRUETYPE_H__ + +/////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +//// +//// IMPLEMENTATION +//// +//// + +#ifdef STB_TRUETYPE_IMPLEMENTATION + +#ifndef STBTT_MAX_OVERSAMPLE +#define STBTT_MAX_OVERSAMPLE 8 +#endif + +#if STBTT_MAX_OVERSAMPLE > 255 +#error "STBTT_MAX_OVERSAMPLE cannot be > 255" +#endif + +typedef int stbtt__test_oversample_pow2[(STBTT_MAX_OVERSAMPLE & (STBTT_MAX_OVERSAMPLE-1)) == 0 ? 1 : -1]; + +#ifndef STBTT_RASTERIZER_VERSION +#define STBTT_RASTERIZER_VERSION 2 +#endif + +#ifdef _MSC_VER +#define STBTT__NOTUSED(v) (void)(v) +#else +#define STBTT__NOTUSED(v) (void)sizeof(v) +#endif + +////////////////////////////////////////////////////////////////////////// +// +// stbtt__buf helpers to parse data from file +// + +static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b) +{ + if (b->cursor >= b->menu_size) + return 0; + return b->data[b->cursor++]; +} + +static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b) +{ + if (b->cursor >= b->menu_size) + return 0; + return b->data[b->cursor]; +} + +static void stbtt__buf_seek(stbtt__buf *b, int o) +{ + STBTT_assert(!(o > b->menu_size || o < 0)); + b->cursor = (o > b->menu_size || o < 0) ? b->menu_size : o; +} + +static void stbtt__buf_skip(stbtt__buf *b, int o) +{ + stbtt__buf_seek(b, b->cursor + o); +} + +static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n) +{ + stbtt_uint32 v = 0; + int i; + STBTT_assert(n >= 1 && n <= 4); + for (i = 0; i < n; i++) + v = (v << 8) | stbtt__buf_get8(b); + return v; +} + +static stbtt__buf stbtt__new_buf(const void *p, size_t menu_size) +{ + stbtt__buf r; + STBTT_assert(menu_size < 0x40000000); + r.data = (stbtt_uint8*) p; + r.menu_size = (int) menu_size; + r.cursor = 0; + return r; +} + +#define stbtt__buf_get16(b) stbtt__buf_get((b), 2) +#define stbtt__buf_get32(b) stbtt__buf_get((b), 4) + +static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s) +{ + stbtt__buf r = stbtt__new_buf(NULL, 0); + if (o < 0 || s < 0 || o > b->menu_size || s > b->menu_size - o) return r; + r.data = b->data + o; + r.menu_size = s; + return r; +} + +static stbtt__buf stbtt__cff_get_index(stbtt__buf *b) +{ + int count, start, offsize; + start = b->cursor; + count = stbtt__buf_get16(b); + if (count) { + offsize = stbtt__buf_get8(b); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(b, offsize * count); + stbtt__buf_skip(b, stbtt__buf_get(b, offsize) - 1); + } + return stbtt__buf_range(b, start, b->cursor - start); +} + +static stbtt_uint32 stbtt__cff_int(stbtt__buf *b) +{ + int b0 = stbtt__buf_get8(b); + if (b0 >= 32 && b0 <= 246) return b0 - 139; + else if (b0 >= 247 && b0 <= 250) return (b0 - 247)*256 + stbtt__buf_get8(b) + 108; + else if (b0 >= 251 && b0 <= 254) return -(b0 - 251)*256 - stbtt__buf_get8(b) - 108; + else if (b0 == 28) return stbtt__buf_get16(b); + else if (b0 == 29) return stbtt__buf_get32(b); + STBTT_assert(0); + return 0; +} + +static void stbtt__cff_skip_operand(stbtt__buf *b) { + int v, b0 = stbtt__buf_peek8(b); + STBTT_assert(b0 >= 28); + if (b0 == 30) { + stbtt__buf_skip(b, 1); + while (b->cursor < b->menu_size) { + v = stbtt__buf_get8(b); + if ((v & 0xF) == 0xF || (v >> 4) == 0xF) + break; + } + } else { + stbtt__cff_int(b); + } +} + +static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key) +{ + stbtt__buf_seek(b, 0); + while (b->cursor < b->menu_size) { + int start = b->cursor, end, op; + while (stbtt__buf_peek8(b) >= 28) + stbtt__cff_skip_operand(b); + end = b->cursor; + op = stbtt__buf_get8(b); + if (op == 12) op = stbtt__buf_get8(b) | 0x100; + if (op == key) return stbtt__buf_range(b, start, end-start); + } + return stbtt__buf_range(b, 0, 0); +} + +static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out) +{ + int i; + stbtt__buf operands = stbtt__dict_get(b, key); + for (i = 0; i < outcount && operands.cursor < operands.menu_size; i++) + out[i] = stbtt__cff_int(&operands); +} + +static int stbtt__cff_index_count(stbtt__buf *b) +{ + stbtt__buf_seek(b, 0); + return stbtt__buf_get16(b); +} + +static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i) +{ + int count, offsize, start, end; + stbtt__buf_seek(&b, 0); + count = stbtt__buf_get16(&b); + offsize = stbtt__buf_get8(&b); + STBTT_assert(i >= 0 && i < count); + STBTT_assert(offsize >= 1 && offsize <= 4); + stbtt__buf_skip(&b, i*offsize); + start = stbtt__buf_get(&b, offsize); + end = stbtt__buf_get(&b, offsize); + return stbtt__buf_range(&b, 2+(count+1)*offsize+start, end - start); +} + +////////////////////////////////////////////////////////////////////////// +// +// accessors to parse data from file +// + +// on platforms that don't allow misaligned reads, if we want to allow +// truetype fonts that aren't padded to alignment, define ALLOW_UNALIGNED_TRUETYPE + +#define ttBYTE(p) (* (stbtt_uint8 *) (p)) +#define ttCHAR(p) (* (stbtt_int8 *) (p)) +#define ttFixed(p) ttLONG(p) + +static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } +static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } +static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } + +#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3)) +#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3]) + +static int stbtt__isfont(stbtt_uint8 *font) +{ + // check the version number + if (stbtt_tag4(font, '1',0,0,0)) return 1; // TrueType 1 + if (stbtt_tag(font, "typ1")) return 1; // TrueType with type 1 font -- we don't support this! + if (stbtt_tag(font, "OTTO")) return 1; // OpenType with CFF + if (stbtt_tag4(font, 0,1,0,0)) return 1; // OpenType 1.0 + if (stbtt_tag(font, "true")) return 1; // Apple specification for TrueType fonts + return 0; +} + +// @OPTIMIZE: binary search +static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag) +{ + stbtt_int32 num_tables = ttUSHORT(data+fontstart+4); + stbtt_uint32 tabledir = fontstart + 12; + stbtt_int32 i; + for (i=0; i < num_tables; ++i) { + stbtt_uint32 loc = tabledir + 16*i; + if (stbtt_tag(data+loc+0, tag)) + return ttULONG(data+loc+8); + } + return 0; +} + +static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index) +{ + // if it's just a font, there's only one valid index + if (stbtt__isfont(font_collection)) + return index == 0 ? 0 : -1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + stbtt_int32 n = ttLONG(font_collection+8); + if (index >= n) + return -1; + return ttULONG(font_collection+12+index*4); + } + } + return -1; +} + +static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection) +{ + // if it's just a font, there's only one valid font + if (stbtt__isfont(font_collection)) + return 1; + + // check if it's a TTC + if (stbtt_tag(font_collection, "ttcf")) { + // version 1? + if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { + return ttLONG(font_collection+8); + } + } + return 0; +} + +static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict) +{ + stbtt_uint32 subrsoff = 0, private_loc[2] = { 0, 0 }; + stbtt__buf pdict; + stbtt__dict_get_ints(&fontdict, 18, 2, private_loc); + if (!private_loc[1] || !private_loc[0]) return stbtt__new_buf(NULL, 0); + pdict = stbtt__buf_range(&cff, private_loc[1], private_loc[0]); + stbtt__dict_get_ints(&pdict, 19, 1, &subrsoff); + if (!subrsoff) return stbtt__new_buf(NULL, 0); + stbtt__buf_seek(&cff, private_loc[1]+subrsoff); + return stbtt__cff_get_index(&cff); +} + +static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart) +{ + stbtt_uint32 cmap, t; + stbtt_int32 i,numTables; + + info->data = data; + info->fontstart = fontstart; + info->cff = stbtt__new_buf(NULL, 0); + + cmap = stbtt__find_table(data, fontstart, "cmap"); // required + info->loca = stbtt__find_table(data, fontstart, "loca"); // required + info->head = stbtt__find_table(data, fontstart, "head"); // required + info->glyf = stbtt__find_table(data, fontstart, "glyf"); // required + info->hhea = stbtt__find_table(data, fontstart, "hhea"); // required + info->hmtx = stbtt__find_table(data, fontstart, "hmtx"); // required + info->kern = stbtt__find_table(data, fontstart, "kern"); // not required + info->gpos = stbtt__find_table(data, fontstart, "GPOS"); // not required + + if (!cmap || !info->head || !info->hhea || !info->hmtx) + return 0; + if (info->glyf) { + // required for truetype + if (!info->loca) return 0; + } else { + // initialization for CFF / Type2 fonts (OTF) + stbtt__buf b, topdict, topdictidx; + stbtt_uint32 cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + stbtt_uint32 cff; + + cff = stbtt__find_table(data, fontstart, "CFF "); + if (!cff) return 0; + + info->fontdicts = stbtt__new_buf(NULL, 0); + info->fdselect = stbtt__new_buf(NULL, 0); + + // @TODO this should use size from table (not 512MB) + info->cff = stbtt__new_buf(data+cff, 512*1024*1024); + b = info->cff; + + // read the header + stbtt__buf_skip(&b, 2); + stbtt__buf_seek(&b, stbtt__buf_get8(&b)); // hdrsize + + // @TODO the name INDEX could list multiple fonts, + // but we just use the first one. + stbtt__cff_get_index(&b); // name INDEX + topdictidx = stbtt__cff_get_index(&b); + topdict = stbtt__cff_index_get(topdictidx, 0); + stbtt__cff_get_index(&b); // string INDEX + info->gsubrs = stbtt__cff_get_index(&b); + + stbtt__dict_get_ints(&topdict, 17, 1, &charstrings); + stbtt__dict_get_ints(&topdict, 0x100 | 6, 1, &cstype); + stbtt__dict_get_ints(&topdict, 0x100 | 36, 1, &fdarrayoff); + stbtt__dict_get_ints(&topdict, 0x100 | 37, 1, &fdselectoff); + info->subrs = stbtt__get_subrs(b, topdict); + + // we only support Type 2 charstrings + if (cstype != 2) return 0; + if (charstrings == 0) return 0; + + if (fdarrayoff) { + // looks like a CID font + if (!fdselectoff) return 0; + stbtt__buf_seek(&b, fdarrayoff); + info->fontdicts = stbtt__cff_get_index(&b); + info->fdselect = stbtt__buf_range(&b, fdselectoff, b.menu_size-fdselectoff); + } + + stbtt__buf_seek(&b, charstrings); + info->charstrings = stbtt__cff_get_index(&b); + } + + t = stbtt__find_table(data, fontstart, "maxp"); + if (t) + info->numGlyphs = ttUSHORT(data+t+4); + else + info->numGlyphs = 0xffff; + + // find a cmap encoding table we understand *now* to avoid searching + // later. (todo: could make this installable) + // the same regardless of glyph. + numTables = ttUSHORT(data + cmap + 2); + info->index_map = 0; + for (i=0; i < numTables; ++i) { + stbtt_uint32 encoding_record = cmap + 4 + 8 * i; + // find an encoding we understand: + switch(ttUSHORT(data+encoding_record)) { + case STBTT_PLATFORM_ID_MICROSOFT: + switch (ttUSHORT(data+encoding_record+2)) { + case STBTT_MS_EID_UNICODE_BMP: + case STBTT_MS_EID_UNICODE_FULL: + // MS/Unicode + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + break; + case STBTT_PLATFORM_ID_UNICODE: + // Mac/iOS has these + // all the encodingIDs are unicode, so we don't bother to check it + info->index_map = cmap + ttULONG(data+encoding_record+4); + break; + } + } + if (info->index_map == 0) + return 0; + + info->indexToLocFormat = ttUSHORT(data+info->head + 50); + return 1; +} + +STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint) +{ + stbtt_uint8 *data = info->data; + stbtt_uint32 index_map = info->index_map; + + stbtt_uint16 format = ttUSHORT(data + index_map + 0); + if (format == 0) { // apple byte encoding + stbtt_int32 bytes = ttUSHORT(data + index_map + 2); + if (unicode_codepoint < bytes-6) + return ttBYTE(data + index_map + 6 + unicode_codepoint); + return 0; + } else if (format == 6) { + stbtt_uint32 first = ttUSHORT(data + index_map + 6); + stbtt_uint32 count = ttUSHORT(data + index_map + 8); + if ((stbtt_uint32) unicode_codepoint >= first && (stbtt_uint32) unicode_codepoint < first+count) + return ttUSHORT(data + index_map + 10 + (unicode_codepoint - first)*2); + return 0; + } else if (format == 2) { + STBTT_assert(0); // @TODO: high-byte mapping for japanese/chinese/korean + return 0; + } else if (format == 4) { // standard mapping for windows fonts: binary search collection of ranges + stbtt_uint16 segcount = ttUSHORT(data+index_map+6) >> 1; + stbtt_uint16 searchRange = ttUSHORT(data+index_map+8) >> 1; + stbtt_uint16 entrySelector = ttUSHORT(data+index_map+10); + stbtt_uint16 rangeShift = ttUSHORT(data+index_map+12) >> 1; + + // do a binary search of the segments + stbtt_uint32 endCount = index_map + 14; + stbtt_uint32 search = endCount; + + if (unicode_codepoint > 0xffff) + return 0; + + // they lie from endCount .. endCount + segCount + // but searchRange is the nearest power of two, so... + if (unicode_codepoint >= ttUSHORT(data + search + rangeShift*2)) + search += rangeShift*2; + + // now decrement to bias correctly to find smallest + search -= 2; + while (entrySelector) { + stbtt_uint16 end; + searchRange >>= 1; + end = ttUSHORT(data + search + searchRange*2); + if (unicode_codepoint > end) + search += searchRange*2; + --entrySelector; + } + search += 2; + + { + stbtt_uint16 offset, start; + stbtt_uint16 item = (stbtt_uint16) ((search - endCount) >> 1); + + STBTT_assert(unicode_codepoint <= ttUSHORT(data + endCount + 2*item)); + start = ttUSHORT(data + index_map + 14 + segcount*2 + 2 + 2*item); + if (unicode_codepoint < start) + return 0; + + offset = ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item); + if (offset == 0) + return (stbtt_uint16) (unicode_codepoint + ttSHORT(data + index_map + 14 + segcount*4 + 2 + 2*item)); + + return ttUSHORT(data + offset + (unicode_codepoint-start)*2 + index_map + 14 + segcount*6 + 2 + 2*item); + } + } else if (format == 12 || format == 13) { + stbtt_uint32 ngroups = ttULONG(data+index_map+12); + stbtt_int32 low,high; + low = 0; high = (stbtt_int32)ngroups; + // Binary search the right group. + while (low < high) { + stbtt_int32 mid = low + ((high-low) >> 1); // rounds down, so low <= mid < high + stbtt_uint32 start_char = ttULONG(data+index_map+16+mid*12); + stbtt_uint32 end_char = ttULONG(data+index_map+16+mid*12+4); + if ((stbtt_uint32) unicode_codepoint < start_char) + high = mid; + else if ((stbtt_uint32) unicode_codepoint > end_char) + low = mid+1; + else { + stbtt_uint32 start_glyph = ttULONG(data+index_map+16+mid*12+8); + if (format == 12) + return start_glyph + unicode_codepoint-start_char; + else // format == 13 + return start_glyph; + } + } + return 0; // not found + } + // @TODO + STBTT_assert(0); + return 0; +} + +STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices) +{ + return stbtt_GetGlyphShape(info, stbtt_FindGlyphIndex(info, unicode_codepoint), vertices); +} + +static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy) +{ + v->type = type; + v->x = (stbtt_int16) x; + v->y = (stbtt_int16) y; + v->cx = (stbtt_int16) cx; + v->cy = (stbtt_int16) cy; +} + +static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index) +{ + int g1,g2; + + STBTT_assert(!info->cff.menu_size); + + if (glyph_index >= info->numGlyphs) return -1; // glyph index out of range + if (info->indexToLocFormat >= 2) return -1; // unknown index->glyph map format + + if (info->indexToLocFormat == 0) { + g1 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2) * 2; + g2 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2 + 2) * 2; + } else { + g1 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4); + g2 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4 + 4); + } + + return g1==g2 ? -1 : g1; // if length is 0, return -1 +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); + +STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + if (info->cff.menu_size) { + stbtt__GetGlyphInfoT2(info, glyph_index, x0, y0, x1, y1); + } else { + int g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 0; + + if (x0) *x0 = ttSHORT(info->data + g + 2); + if (y0) *y0 = ttSHORT(info->data + g + 4); + if (x1) *x1 = ttSHORT(info->data + g + 6); + if (y1) *y1 = ttSHORT(info->data + g + 8); + } + return 1; +} + +STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1) +{ + return stbtt_GetGlyphBox(info, stbtt_FindGlyphIndex(info,codepoint), x0,y0,x1,y1); +} + +STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt_int16 numberOfContours; + int g; + if (info->cff.menu_size) + return stbtt__GetGlyphInfoT2(info, glyph_index, NULL, NULL, NULL, NULL) == 0; + g = stbtt__GetGlyfOffset(info, glyph_index); + if (g < 0) return 1; + numberOfContours = ttSHORT(info->data + g); + return numberOfContours == 0; +} + +static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off, + stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy) +{ + if (start_off) { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+scx)>>1, (cy+scy)>>1, cx,cy); + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx,sy,scx,scy); + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve,sx,sy,cx,cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline,sx,sy,0,0); + } + return num_vertices; +} + +static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + stbtt_int16 numberOfContours; + stbtt_uint8 *endPtsOfContours; + stbtt_uint8 *data = info->data; + stbtt_vertex *vertices=0; + int num_vertices=0; + int g = stbtt__GetGlyfOffset(info, glyph_index); + + *pvertices = NULL; + + if (g < 0) return 0; + + numberOfContours = ttSHORT(data + g); + + if (numberOfContours > 0) { + stbtt_uint8 flags=0,flagcount; + stbtt_int32 ins, i,j=0,m,n, next_move, was_off=0, off, start_off=0; + stbtt_int32 x,y,cx,cy,sx,sy, scx,scy; + stbtt_uint8 *points; + endPtsOfContours = (data + g + 10); + ins = ttUSHORT(data + g + 10 + numberOfContours * 2); + points = data + g + 10 + numberOfContours * 2 + 2 + ins; + + n = 1+ttUSHORT(endPtsOfContours + numberOfContours*2-2); + + m = n + 2*numberOfContours; // a loose bound on how many vertices we might need + vertices = (stbtt_vertex *) STBTT_malloc(m * sizeof(vertices[0]), info->userdata); + if (vertices == 0) + return 0; + + next_move = 0; + flagcount=0; + + // in first pass, we load uninterpreted data into the allocated array + // above, shifted to the end of the array so we won't overwrite it when + // we create our final data starting from the front + + off = m - n; // starting offset for uninterpreted data, regardless of how m ends up being calculated + + // first load flags + + for (i=0; i < n; ++i) { + if (flagcount == 0) { + flags = *points++; + if (flags & 8) + flagcount = *points++; + } else + --flagcount; + vertices[off+i].type = flags; + } + + // now load x coordinates + x=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 2) { + stbtt_int16 dx = *points++; + x += (flags & 16) ? dx : -dx; // ??? + } else { + if (!(flags & 16)) { + x = x + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].x = (stbtt_int16) x; + } + + // now load y coordinates + y=0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + if (flags & 4) { + stbtt_int16 dy = *points++; + y += (flags & 32) ? dy : -dy; // ??? + } else { + if (!(flags & 32)) { + y = y + (stbtt_int16) (points[0]*256 + points[1]); + points += 2; + } + } + vertices[off+i].y = (stbtt_int16) y; + } + + // now convert them to our format + num_vertices=0; + sx = sy = cx = cy = scx = scy = 0; + for (i=0; i < n; ++i) { + flags = vertices[off+i].type; + x = (stbtt_int16) vertices[off+i].x; + y = (stbtt_int16) vertices[off+i].y; + + if (next_move == i) { + if (i != 0) + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + + // now start the new one + start_off = !(flags & 1); + if (start_off) { + // if we start off with an off-curve point, then when we need to find a point on the curve + // where we can start, and we need to save some state for when we wraparound. + scx = x; + scy = y; + if (!(vertices[off+i+1].type & 1)) { + // next point is also a curve point, so interpolate an on-point curve + sx = (x + (stbtt_int32) vertices[off+i+1].x) >> 1; + sy = (y + (stbtt_int32) vertices[off+i+1].y) >> 1; + } else { + // otherwise just use the next point as our start point + sx = (stbtt_int32) vertices[off+i+1].x; + sy = (stbtt_int32) vertices[off+i+1].y; + ++i; // we're using point i+1 as the starting point, so skip it + } + } else { + sx = x; + sy = y; + } + stbtt_setvertex(&vertices[num_vertices++], STBTT_vmove,sx,sy,0,0); + was_off = 0; + next_move = 1 + ttUSHORT(endPtsOfContours+j*2); + ++j; + } else { + if (!(flags & 1)) { // if it's a curve + if (was_off) // two off-curve control points in a row means interpolate an on-curve midpoint + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+x)>>1, (cy+y)>>1, cx, cy); + cx = x; + cy = y; + was_off = 1; + } else { + if (was_off) + stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, x,y, cx, cy); + else + stbtt_setvertex(&vertices[num_vertices++], STBTT_vline, x,y,0,0); + was_off = 0; + } + } + } + num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); + } else if (numberOfContours == -1) { + // Compound shapes. + int more = 1; + stbtt_uint8 *comp = data + g + 10; + num_vertices = 0; + vertices = 0; + while (more) { + stbtt_uint16 flags, gidx; + int comp_num_verts = 0, i; + stbtt_vertex *comp_verts = 0, *tmp = 0; + float mtx[6] = {1,0,0,1,0,0}, m, n; + + flags = ttSHORT(comp); comp+=2; + gidx = ttSHORT(comp); comp+=2; + + if (flags & 2) { // XY values + if (flags & 1) { // shorts + mtx[4] = ttSHORT(comp); comp+=2; + mtx[5] = ttSHORT(comp); comp+=2; + } else { + mtx[4] = ttCHAR(comp); comp+=1; + mtx[5] = ttCHAR(comp); comp+=1; + } + } + else { + // @TODO handle matching point + STBTT_assert(0); + } + if (flags & (1<<3)) { // WE_HAVE_A_SCALE + mtx[0] = mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + } else if (flags & (1<<6)) { // WE_HAVE_AN_X_AND_YSCALE + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = mtx[2] = 0; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } else if (flags & (1<<7)) { // WE_HAVE_A_TWO_BY_TWO + mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[1] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[2] = ttSHORT(comp)/16384.0f; comp+=2; + mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; + } + + // Find transformation scales. + m = (float) STBTT_sqrt(mtx[0]*mtx[0] + mtx[1]*mtx[1]); + n = (float) STBTT_sqrt(mtx[2]*mtx[2] + mtx[3]*mtx[3]); + + // Get indexed glyph. + comp_num_verts = stbtt_GetGlyphShape(info, gidx, &comp_verts); + if (comp_num_verts > 0) { + // Transform vertices. + for (i = 0; i < comp_num_verts; ++i) { + stbtt_vertex* v = &comp_verts[i]; + stbtt_vertex_type x,y; + x=v->x; y=v->y; + v->x = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->y = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + x=v->cx; y=v->cy; + v->cx = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); + v->cy = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); + } + // Append vertices. + tmp = (stbtt_vertex*)STBTT_malloc((num_vertices+comp_num_verts)*sizeof(stbtt_vertex), info->userdata); + if (!tmp) { + if (vertices) STBTT_free(vertices, info->userdata); + if (comp_verts) STBTT_free(comp_verts, info->userdata); + return 0; + } + if (num_vertices > 0) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); //-V595 + STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex)); + if (vertices) STBTT_free(vertices, info->userdata); + vertices = tmp; + STBTT_free(comp_verts, info->userdata); + num_vertices += comp_num_verts; + } + // More components ? + more = flags & (1<<5); + } + } else if (numberOfContours < 0) { + // @TODO other compound variations? + STBTT_assert(0); + } else { + // numberOfCounters == 0, do nothing + } + + *pvertices = vertices; + return num_vertices; +} + +typedef struct +{ + int bounds; + int started; + float first_x, first_y; + float x, y; + stbtt_int32 min_x, max_x, min_y, max_y; + + stbtt_vertex *pvertices; + int num_vertices; +} stbtt__csctx; + +#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0} + +static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y) +{ + if (x > c->max_x || !c->started) c->max_x = x; + if (y > c->max_y || !c->started) c->max_y = y; + if (x < c->min_x || !c->started) c->min_x = x; + if (y < c->min_y || !c->started) c->min_y = y; + c->started = 1; +} + +static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1) +{ + if (c->bounds) { + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + } else { + stbtt_setvertex(&c->pvertices[c->num_vertices], type, x, y, cx, cy); + c->pvertices[c->num_vertices].cx1 = (stbtt_int16) cx1; + c->pvertices[c->num_vertices].cy1 = (stbtt_int16) cy1; + } + c->num_vertices++; +} + +static void stbtt__csctx_close_shape(stbtt__csctx *ctx) +{ + if (ctx->first_x != ctx->x || ctx->first_y != ctx->y) + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->first_x, (int)ctx->first_y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy) +{ + stbtt__csctx_close_shape(ctx); + ctx->first_x = ctx->x = ctx->x + dx; + ctx->first_y = ctx->y = ctx->y + dy; + stbtt__csctx_v(ctx, STBTT_vmove, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy) +{ + ctx->x += dx; + ctx->y += dy; + stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); +} + +static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3) +{ + float cx1 = ctx->x + dx1; + float cy1 = ctx->y + dy1; + float cx2 = cx1 + dx2; + float cy2 = cy1 + dy2; + ctx->x = cx2 + dx3; + ctx->y = cy2 + dy3; + stbtt__csctx_v(ctx, STBTT_vcubic, (int)ctx->x, (int)ctx->y, (int)cx1, (int)cy1, (int)cx2, (int)cy2); +} + +static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n) +{ + int count = stbtt__cff_index_count(&idx); + int bias = 107; + if (count >= 33900) + bias = 32768; + else if (count >= 1240) + bias = 1131; + n += bias; + if (n < 0 || n >= count) + return stbtt__new_buf(NULL, 0); + return stbtt__cff_index_get(idx, n); +} + +static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index) +{ + stbtt__buf fdselect = info->fdselect; + int nranges, start, end, v, fmt, fdselector = -1, i; + + stbtt__buf_seek(&fdselect, 0); + fmt = stbtt__buf_get8(&fdselect); + if (fmt == 0) { + // untested + stbtt__buf_skip(&fdselect, glyph_index); + fdselector = stbtt__buf_get8(&fdselect); + } else if (fmt == 3) { + nranges = stbtt__buf_get16(&fdselect); + start = stbtt__buf_get16(&fdselect); + for (i = 0; i < nranges; i++) { + v = stbtt__buf_get8(&fdselect); + end = stbtt__buf_get16(&fdselect); + if (glyph_index >= start && glyph_index < end) { + fdselector = v; + break; + } + start = end; + } + } + if (fdselector == -1) stbtt__new_buf(NULL, 0); + return stbtt__get_subrs(info->cff, stbtt__cff_index_get(info->fontdicts, fdselector)); +} + +static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c) +{ + int in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0; + int has_subrs = 0, clear_stack; + float s[48]; + stbtt__buf subr_stack[10], subrs = info->subrs, b; + float f; + +#define STBTT__CSERR(s) (0) + + // this currently ignores the initial width value, which isn't needed if we have hmtx + b = stbtt__cff_index_get(info->charstrings, glyph_index); + while (b.cursor < b.menu_size) { + i = 0; + clear_stack = 1; + b0 = stbtt__buf_get8(&b); + switch (b0) { + // @TODO implement hinting + case 0x13: // hintmask + case 0x14: // cntrmask + if (in_header) + maskbits += (sp / 2); // implicit "vstem" + in_header = 0; + stbtt__buf_skip(&b, (maskbits + 7) / 8); + break; + + case 0x01: // hstem + case 0x03: // vstem + case 0x12: // hstemhm + case 0x17: // vstemhm + maskbits += (sp / 2); + break; + + case 0x15: // rmoveto + in_header = 0; + if (sp < 2) return STBTT__CSERR("rmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-2], s[sp-1]); + break; + case 0x04: // vmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("vmoveto stack"); + stbtt__csctx_rmove_to(c, 0, s[sp-1]); + break; + case 0x16: // hmoveto + in_header = 0; + if (sp < 1) return STBTT__CSERR("hmoveto stack"); + stbtt__csctx_rmove_to(c, s[sp-1], 0); + break; + + case 0x05: // rlineto + if (sp < 2) return STBTT__CSERR("rlineto stack"); + for (; i + 1 < sp; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + // hlineto/vlineto and vhcurveto/hvcurveto alternate horizontal and vertical + // starting from a different place. + + case 0x07: // vlineto + if (sp < 1) return STBTT__CSERR("vlineto stack"); + goto vlineto; + case 0x06: // hlineto + if (sp < 1) return STBTT__CSERR("hlineto stack"); + for (;;) { + if (i >= sp) break; + stbtt__csctx_rline_to(c, s[i], 0); + i++; + vlineto: + if (i >= sp) break; + stbtt__csctx_rline_to(c, 0, s[i]); + i++; + } + break; + + case 0x1F: // hvcurveto + if (sp < 4) return STBTT__CSERR("hvcurveto stack"); + goto hvcurveto; + case 0x1E: // vhcurveto + if (sp < 4) return STBTT__CSERR("vhcurveto stack"); + for (;;) { + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, 0, s[i], s[i+1], s[i+2], s[i+3], (sp - i == 5) ? s[i + 4] : 0.0f); + i += 4; + hvcurveto: + if (i + 3 >= sp) break; + stbtt__csctx_rccurve_to(c, s[i], 0, s[i+1], s[i+2], (sp - i == 5) ? s[i+4] : 0.0f, s[i+3]); + i += 4; + } + break; + + case 0x08: // rrcurveto + if (sp < 6) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x18: // rcurveline + if (sp < 8) return STBTT__CSERR("rcurveline stack"); + for (; i + 5 < sp - 2; i += 6) + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + if (i + 1 >= sp) return STBTT__CSERR("rcurveline stack"); + stbtt__csctx_rline_to(c, s[i], s[i+1]); + break; + + case 0x19: // rlinecurve + if (sp < 8) return STBTT__CSERR("rlinecurve stack"); + for (; i + 1 < sp - 6; i += 2) + stbtt__csctx_rline_to(c, s[i], s[i+1]); + if (i + 5 >= sp) return STBTT__CSERR("rlinecurve stack"); + stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); + break; + + case 0x1A: // vvcurveto + case 0x1B: // hhcurveto + if (sp < 4) return STBTT__CSERR("(vv|hh)curveto stack"); + f = 0.0; + if (sp & 1) { f = s[i]; i++; } + for (; i + 3 < sp; i += 4) { + if (b0 == 0x1B) + stbtt__csctx_rccurve_to(c, s[i], f, s[i+1], s[i+2], s[i+3], 0.0); + else + stbtt__csctx_rccurve_to(c, f, s[i], s[i+1], s[i+2], 0.0, s[i+3]); + f = 0.0; + } + break; + + case 0x0A: // callsubr + if (!has_subrs) { + if (info->fdselect.menu_size) + subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); + has_subrs = 1; + } + // fallthrough + case 0x1D: // callgsubr + if (sp < 1) return STBTT__CSERR("call(g|)subr stack"); + v = (int) s[--sp]; + if (subr_stack_height >= 10) return STBTT__CSERR("recursion limit"); + subr_stack[subr_stack_height++] = b; + b = stbtt__get_subr(b0 == 0x0A ? subrs : info->gsubrs, v); + if (b.menu_size == 0) return STBTT__CSERR("subr not found"); + b.cursor = 0; + clear_stack = 0; + break; + + case 0x0B: // return + if (subr_stack_height <= 0) return STBTT__CSERR("return outside subr"); + b = subr_stack[--subr_stack_height]; + clear_stack = 0; + break; + + case 0x0E: // endchar + stbtt__csctx_close_shape(c); + return 1; + + case 0x0C: { // two-byte escape + float dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6; + float dx, dy; + int b1 = stbtt__buf_get8(&b); + switch (b1) { + // @TODO These "flex" implementations ignore the flex-depth and resolution, + // and always draw beziers. + case 0x22: // hflex + if (sp < 7) return STBTT__CSERR("hflex stack"); + dx1 = s[0]; + dx2 = s[1]; + dy2 = s[2]; + dx3 = s[3]; + dx4 = s[4]; + dx5 = s[5]; + dx6 = s[6]; + stbtt__csctx_rccurve_to(c, dx1, 0, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, -dy2, dx6, 0); + break; + + case 0x23: // flex + if (sp < 13) return STBTT__CSERR("flex stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = s[10]; + dy6 = s[11]; + //fd is s[12] + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + case 0x24: // hflex1 + if (sp < 9) return STBTT__CSERR("hflex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dx4 = s[5]; + dx5 = s[6]; + dy5 = s[7]; + dx6 = s[8]; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, 0); + stbtt__csctx_rccurve_to(c, dx4, 0, dx5, dy5, dx6, -(dy1+dy2+dy5)); + break; + + case 0x25: // flex1 + if (sp < 11) return STBTT__CSERR("flex1 stack"); + dx1 = s[0]; + dy1 = s[1]; + dx2 = s[2]; + dy2 = s[3]; + dx3 = s[4]; + dy3 = s[5]; + dx4 = s[6]; + dy4 = s[7]; + dx5 = s[8]; + dy5 = s[9]; + dx6 = dy6 = s[10]; + dx = dx1+dx2+dx3+dx4+dx5; + dy = dy1+dy2+dy3+dy4+dy5; + if (STBTT_fabs(dx) > STBTT_fabs(dy)) + dy6 = -dy; + else + dx6 = -dx; + stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); + stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); + break; + + default: + return STBTT__CSERR("unimplemented"); + } + } break; + + default: + if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) //-V560 + return STBTT__CSERR("reserved operator"); + + // push immediate + if (b0 == 255) { + f = (float)(stbtt_int32)stbtt__buf_get32(&b) / 0x10000; + } else { + stbtt__buf_skip(&b, -1); + f = (float)(stbtt_int16)stbtt__cff_int(&b); + } + if (sp >= 48) return STBTT__CSERR("push stack overflow"); + s[sp++] = f; + clear_stack = 0; + break; + } + if (clear_stack) sp = 0; + } + return STBTT__CSERR("no endchar"); + +#undef STBTT__CSERR +} + +static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + // runs the charstring twice, once to count and once to output (to avoid realloc) + stbtt__csctx count_ctx = STBTT__CSCTX_INIT(1); + stbtt__csctx output_ctx = STBTT__CSCTX_INIT(0); + if (stbtt__run_charstring(info, glyph_index, &count_ctx)) { + *pvertices = (stbtt_vertex*)STBTT_malloc(count_ctx.num_vertices*sizeof(stbtt_vertex), info->userdata); + output_ctx.pvertices = *pvertices; + if (stbtt__run_charstring(info, glyph_index, &output_ctx)) { + STBTT_assert(output_ctx.num_vertices == count_ctx.num_vertices); + return output_ctx.num_vertices; + } + } + *pvertices = NULL; + return 0; +} + +static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) +{ + stbtt__csctx c = STBTT__CSCTX_INIT(1); + int r = stbtt__run_charstring(info, glyph_index, &c); + if (x0) *x0 = r ? c.min_x : 0; + if (y0) *y0 = r ? c.min_y : 0; + if (x1) *x1 = r ? c.max_x : 0; + if (y1) *y1 = r ? c.max_y : 0; + return r ? c.num_vertices : 0; +} + +STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) +{ + if (!info->cff.menu_size) + return stbtt__GetGlyphShapeTT(info, glyph_index, pvertices); + else + return stbtt__GetGlyphShapeT2(info, glyph_index, pvertices); +} + +STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing) +{ + stbtt_uint16 numOfLongHorMetrics = ttUSHORT(info->data+info->hhea + 34); + if (glyph_index < numOfLongHorMetrics) { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*glyph_index); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*glyph_index + 2); + } else { + if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*(numOfLongHorMetrics-1)); + if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics + 2*(glyph_index - numOfLongHorMetrics)); + } +} + +static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint8 *data = info->data + info->kern; + stbtt_uint32 needle, straw; + int l, r, m; + + // we only look at the first table. it must be 'horizontal' and format 0. + if (!info->kern) + return 0; + if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 + return 0; + if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format + return 0; + + l = 0; + r = ttUSHORT(data+10) - 1; + needle = glyph1 << 16 | glyph2; + while (l <= r) { + m = (l + r) >> 1; + straw = ttULONG(data+18+(m*6)); // note: unaligned read + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else + return ttSHORT(data+22+(m*6)); + } + return 0; +} + +static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) +{ + stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); + switch(coverageFormat) { + case 1: { + stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); + + // Binary search. + stbtt_int32 l=0, r=glyphCount-1, m; + int straw, needle=glyph; + while (l <= r) { + stbtt_uint8 *glyphArray = coverageTable + 4; + stbtt_uint16 glyphID; + m = (l + r) >> 1; + glyphID = ttUSHORT(glyphArray + 2 * m); + straw = glyphID; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + return m; + } + } + } break; + + case 2: { + stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); + stbtt_uint8 *rangeArray = coverageTable + 4; + + // Binary search. + stbtt_int32 l=0, r=rangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *rangeRecord; + m = (l + r) >> 1; + rangeRecord = rangeArray + 6 * m; + strawStart = ttUSHORT(rangeRecord); + strawEnd = ttUSHORT(rangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else { + stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); + return startCoverageIndex + glyph - strawStart; + } + } + } break; + + default: { + // There are no other cases. + STBTT_assert(0); + } break; + } + + return -1; +} + +static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph) +{ + stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); + switch(classDefFormat) + { + case 1: { + stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); + stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); + stbtt_uint8 *classDef1ValueArray = classDefTable + 6; + + if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) + return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); + + // [DEAR IMGUI] Commented to fix static analyzer warning + //classDefTable = classDef1ValueArray + 2 * glyphCount; + } break; + + case 2: { + stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); + stbtt_uint8 *classRangeRecords = classDefTable + 4; + + // Binary search. + stbtt_int32 l=0, r=classRangeCount-1, m; + int strawStart, strawEnd, needle=glyph; + while (l <= r) { + stbtt_uint8 *classRangeRecord; + m = (l + r) >> 1; + classRangeRecord = classRangeRecords + 6 * m; + strawStart = ttUSHORT(classRangeRecord); + strawEnd = ttUSHORT(classRangeRecord + 2); + if (needle < strawStart) + r = m - 1; + else if (needle > strawEnd) + l = m + 1; + else + return (stbtt_int32)ttUSHORT(classRangeRecord + 4); + } + + // [DEAR IMGUI] Commented to fix static analyzer warning + //classDefTable = classRangeRecords + 6 * classRangeCount; + } break; + + default: { + // There are no other cases. + STBTT_assert(0); + } break; + } + + return -1; +} + +// Define to STBTT_assert(x) if you want to break on unimplemented formats. +#define STBTT_GPOS_TODO_assert(x) + +static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) +{ + stbtt_uint16 lookupListOffset; + stbtt_uint8 *lookupList; + stbtt_uint16 lookupCount; + stbtt_uint8 *data; + stbtt_int32 i; + + if (!info->gpos) return 0; + + data = info->data + info->gpos; + + if (ttUSHORT(data+0) != 1) return 0; // Major version 1 + if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 + + lookupListOffset = ttUSHORT(data+8); + lookupList = data + lookupListOffset; + lookupCount = ttUSHORT(lookupList); + + for (i=0; i> 1; + pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; + secondGlyph = ttUSHORT(pairValue); + straw = secondGlyph; + if (needle < straw) + r = m - 1; + else if (needle > straw) + l = m + 1; + else { + stbtt_int16 xAdvance = ttSHORT(pairValue + 2); + return xAdvance; + } + } + } break; + + case 2: { + stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); + stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); + + stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); + stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); + int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); + int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); + + stbtt_uint16 class1Count = ttUSHORT(table + 12); + stbtt_uint16 class2Count = ttUSHORT(table + 14); + STBTT_assert(glyph1class < class1Count); + STBTT_assert(glyph2class < class2Count); + + // TODO: Support more formats. + STBTT_GPOS_TODO_assert(valueFormat1 == 4); + if (valueFormat1 != 4) return 0; + STBTT_GPOS_TODO_assert(valueFormat2 == 0); + if (valueFormat2 != 0) return 0; + + if (glyph1class >= 0 && glyph1class < class1Count && glyph2class >= 0 && glyph2class < class2Count) { + stbtt_uint8 *class1Records = table + 16; + stbtt_uint8 *class2Records = class1Records + 2 * (glyph1class * class2Count); + stbtt_int16 xAdvance = ttSHORT(class2Records + 2 * glyph2class); + return xAdvance; + } + } break; + + default: { + // There are no other cases. + STBTT_assert(0); + break; + } // [DEAR IMGUI] removed ; + } + } + break; + } // [DEAR IMGUI] removed ; + + default: + // TODO: Implement other stuff. + break; + } + } + + return 0; +} + +STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2) +{ + int xAdvance = 0; + + if (info->gpos) + xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2); + + if (info->kern) + xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2); + + return xAdvance; +} + +STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2) +{ + if (!info->kern && !info->gpos) // if no kerning table, don't waste time looking up both codepoint->glyphs + return 0; + return stbtt_GetGlyphKernAdvance(info, stbtt_FindGlyphIndex(info,ch1), stbtt_FindGlyphIndex(info,ch2)); +} + +STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing) +{ + stbtt_GetGlyphHMetrics(info, stbtt_FindGlyphIndex(info,codepoint), advanceWidth, leftSideBearing); +} + +STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap) +{ + if (ascent ) *ascent = ttSHORT(info->data+info->hhea + 4); + if (descent) *descent = ttSHORT(info->data+info->hhea + 6); + if (lineGap) *lineGap = ttSHORT(info->data+info->hhea + 8); +} + +STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap) +{ + int tab = stbtt__find_table(info->data, info->fontstart, "OS/2"); + if (!tab) + return 0; + if (typoAscent ) *typoAscent = ttSHORT(info->data+tab + 68); + if (typoDescent) *typoDescent = ttSHORT(info->data+tab + 70); + if (typoLineGap) *typoLineGap = ttSHORT(info->data+tab + 72); + return 1; +} + +STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1) +{ + *x0 = ttSHORT(info->data + info->head + 36); + *y0 = ttSHORT(info->data + info->head + 38); + *x1 = ttSHORT(info->data + info->head + 40); + *y1 = ttSHORT(info->data + info->head + 42); +} + +STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height) +{ + int fheight = ttSHORT(info->data + info->hhea + 4) - ttSHORT(info->data + info->hhea + 6); + return (float) height / fheight; +} + +STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels) +{ + int unitsPerEm = ttUSHORT(info->data + info->head + 18); + return pixels / unitsPerEm; +} + +STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v) +{ + STBTT_free(v, info->userdata); +} + +////////////////////////////////////////////////////////////////////////////// +// +// antialiasing software rasterizer +// + +STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + int x0=0,y0=0,x1,y1; // =0 suppresses compiler warning + if (!stbtt_GetGlyphBox(font, glyph, &x0,&y0,&x1,&y1)) { + // e.g. space character + if (ix0) *ix0 = 0; + if (iy0) *iy0 = 0; + if (ix1) *ix1 = 0; + if (iy1) *iy1 = 0; + } else { + // move to integral bboxes (treating pixels as little squares, what pixels get touched)? + if (ix0) *ix0 = STBTT_ifloor( x0 * scale_x + shift_x); + if (iy0) *iy0 = STBTT_ifloor(-y1 * scale_y + shift_y); + if (ix1) *ix1 = STBTT_iceil ( x1 * scale_x + shift_x); + if (iy1) *iy1 = STBTT_iceil (-y0 * scale_y + shift_y); + } +} + +STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y,0.0f,0.0f, ix0, iy0, ix1, iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font,codepoint), scale_x, scale_y,shift_x,shift_y, ix0,iy0,ix1,iy1); +} + +STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) +{ + stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y,0.0f,0.0f, ix0,iy0,ix1,iy1); +} + +////////////////////////////////////////////////////////////////////////////// +// +// Rasterizer + +typedef struct stbtt__hheap_chunk +{ + struct stbtt__hheap_chunk *next; +} stbtt__hheap_chunk; + +typedef struct stbtt__hheap +{ + struct stbtt__hheap_chunk *head; + void *first_free; + int num_remaining_in_head_chunk; +} stbtt__hheap; + +static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t menu_size, void *userdata) +{ + if (hh->first_free) { + void *p = hh->first_free; + hh->first_free = * (void **) p; + return p; + } else { + if (hh->num_remaining_in_head_chunk == 0) { + int count = (menu_size < 32 ? 2000 : menu_size < 128 ? 800 : 100); + stbtt__hheap_chunk *c = (stbtt__hheap_chunk *) STBTT_malloc(sizeof(stbtt__hheap_chunk) + menu_size * count, userdata); + if (c == NULL) + return NULL; + c->next = hh->head; + hh->head = c; + hh->num_remaining_in_head_chunk = count; + } + --hh->num_remaining_in_head_chunk; + return (char *) (hh->head) + sizeof(stbtt__hheap_chunk) + menu_size * hh->num_remaining_in_head_chunk; + } +} + +static void stbtt__hheap_free(stbtt__hheap *hh, void *p) +{ + *(void **) p = hh->first_free; + hh->first_free = p; +} + +static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata) +{ + stbtt__hheap_chunk *c = hh->head; + while (c) { + stbtt__hheap_chunk *n = c->next; + STBTT_free(c, userdata); + c = n; + } +} + +typedef struct stbtt__edge { + float x0,y0, x1,y1; + int invert; +} stbtt__edge; + + +typedef struct stbtt__active_edge +{ + struct stbtt__active_edge *next; + #if STBTT_RASTERIZER_VERSION==1 + int x,dx; + float ey; + int direction; + #elif STBTT_RASTERIZER_VERSION==2 + float fx,fdx,fdy; + float direction; + float sy; + float ey; + #else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" + #endif +} stbtt__active_edge; + +#if STBTT_RASTERIZER_VERSION == 1 +#define STBTT_FIXSHIFT 10 +#define STBTT_FIX (1 << STBTT_FIXSHIFT) +#define STBTT_FIXMASK (STBTT_FIX-1) + +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + if (!z) return z; + + // round dx down to avoid overshooting + if (dxdy < 0) + z->dx = -STBTT_ifloor(STBTT_FIX * -dxdy); + else + z->dx = STBTT_ifloor(STBTT_FIX * dxdy); + + z->x = STBTT_ifloor(STBTT_FIX * e->x0 + z->dx * (start_point - e->y0)); // use z->dx so when we offset later it's by the same amount + z->x -= off_x * STBTT_FIX; + + z->ey = e->y1; + z->next = 0; + z->direction = e->invert ? 1 : -1; + return z; +} +#elif STBTT_RASTERIZER_VERSION == 2 +static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) +{ + stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); + float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); + STBTT_assert(z != NULL); + //STBTT_assert(e->y0 <= start_point); + if (!z) return z; + z->fdx = dxdy; + z->fdy = dxdy != 0.0f ? (1.0f/dxdy) : 0.0f; + z->fx = e->x0 + dxdy * (start_point - e->y0); + z->fx -= off_x; + z->direction = e->invert ? 1.0f : -1.0f; + z->sy = e->y0; + z->ey = e->y1; + z->next = 0; + return z; +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#if STBTT_RASTERIZER_VERSION == 1 +// note: this routine clips fills that extend off the edges... ideally this +// wouldn't happen, but it could happen if the truetype glyph bounding boxes +// are wrong, or if the user supplies a too-small bitmap +static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight) +{ + // non-zero winding fill + int x0=0, w=0; + + while (e) { + if (w == 0) { + // if we're currently at zero, we need to record the edge start point + x0 = e->x; w += e->direction; + } else { + int x1 = e->x; w += e->direction; + // if we went to zero, we need to draw + if (w == 0) { + int i = x0 >> STBTT_FIXSHIFT; + int j = x1 >> STBTT_FIXSHIFT; + + if (i < len && j >= 0) { + if (i == j) { + // x0,x1 are the same pixel, so compute combined coverage + scanline[i] = scanline[i] + (stbtt_uint8) ((x1 - x0) * max_weight >> STBTT_FIXSHIFT); + } else { + if (i >= 0) // add antialiasing for x0 + scanline[i] = scanline[i] + (stbtt_uint8) (((STBTT_FIX - (x0 & STBTT_FIXMASK)) * max_weight) >> STBTT_FIXSHIFT); + else + i = -1; // clip + + if (j < len) // add antialiasing for x1 + scanline[j] = scanline[j] + (stbtt_uint8) (((x1 & STBTT_FIXMASK) * max_weight) >> STBTT_FIXSHIFT); + else + j = len; // clip + + for (++i; i < j; ++i) // fill pixels between x0 and x1 + scanline[i] = scanline[i] + (stbtt_uint8) max_weight; + } + } + } + } + + e = e->next; + } +} + +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0; + int max_weight = (255 / vsubsample); // weight per vertical scanline + int s; // vertical subsample index + unsigned char scanline_data[512], *scanline; + + if (result->w > 512) + scanline = (unsigned char *) STBTT_malloc(result->w, userdata); + else + scanline = scanline_data; + + y = off_y * vsubsample; + e[n].y0 = (off_y + result->h) * (float) vsubsample + 1; + + while (j < result->h) { + STBTT_memset(scanline, 0, result->w); + for (s=0; s < vsubsample; ++s) { + // find center of pixel for this scanline + float scan_y = y + 0.5f; + stbtt__active_edge **step = &active; + + // update all active edges; + // remove all active edges that terminate before the center of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + z->x += z->dx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + } + + // resort the list if needed + for(;;) { + int changed=0; + step = &active; + while (*step && (*step)->next) { + if ((*step)->x > (*step)->next->x) { + stbtt__active_edge *t = *step; + stbtt__active_edge *q = t->next; + + t->next = q->next; + q->next = t; + *step = q; + changed = 1; + } + step = &(*step)->next; + } + if (!changed) break; + } + + // insert all edges that start before the center of this scanline -- omit ones that also end on this scanline + while (e->y0 <= scan_y) { + if (e->y1 > scan_y) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y, userdata); + if (z != NULL) { + // find insertion point + if (active == NULL) + active = z; + else if (z->x < active->x) { + // insert at front + z->next = active; + active = z; + } else { + // find thing to insert AFTER + stbtt__active_edge *p = active; + while (p->next && p->next->x < z->x) + p = p->next; + // at this point, p->next->x is NOT < z->x + z->next = p->next; + p->next = z; + } + } + } + ++e; + } + + // now process all active edges in XOR fashion + if (active) + stbtt__fill_active_edges(scanline, result->w, active, max_weight); + + ++y; + } + STBTT_memcpy(result->pixels + j * result->stride, scanline, result->w); + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} + +#elif STBTT_RASTERIZER_VERSION == 2 + +// the edge passed in here does not cross the vertical line at x or the vertical line at x+1 +// (i.e. it has already been clipped to those) +static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1) +{ + if (y0 == y1) return; + STBTT_assert(y0 < y1); + STBTT_assert(e->sy <= e->ey); + if (y0 > e->ey) return; + if (y1 < e->sy) return; + if (y0 < e->sy) { + x0 += (x1-x0) * (e->sy - y0) / (y1-y0); + y0 = e->sy; + } + if (y1 > e->ey) { + x1 += (x1-x0) * (e->ey - y1) / (y1-y0); + y1 = e->ey; + } + + if (x0 == x) + STBTT_assert(x1 <= x+1); + else if (x0 == x+1) + STBTT_assert(x1 >= x); + else if (x0 <= x) + STBTT_assert(x1 <= x); + else if (x0 >= x+1) + STBTT_assert(x1 >= x+1); + else + STBTT_assert(x1 >= x && x1 <= x+1); + + if (x0 <= x && x1 <= x) + scanline[x] += e->direction * (y1-y0); + else if (x0 >= x+1 && x1 >= x+1) + ; + else { + STBTT_assert(x0 >= x && x0 <= x+1 && x1 >= x && x1 <= x+1); + scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); // coverage = 1 - average x position + } +} + +static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top) +{ + float y_bottom = y_top+1; + + while (e) { + // brute force every pixel + + // compute intersection points with top & bottom + STBTT_assert(e->ey >= y_top); + + if (e->fdx == 0) { + float x0 = e->fx; + if (x0 < len) { + if (x0 >= 0) { + stbtt__handle_clipped_edge(scanline,(int) x0,e, x0,y_top, x0,y_bottom); + stbtt__handle_clipped_edge(scanline_fill-1,(int) x0+1,e, x0,y_top, x0,y_bottom); + } else { + stbtt__handle_clipped_edge(scanline_fill-1,0,e, x0,y_top, x0,y_bottom); + } + } + } else { + float x0 = e->fx; + float dx = e->fdx; + float xb = x0 + dx; + float x_top, x_bottom; + float sy0,sy1; + float dy = e->fdy; + STBTT_assert(e->sy <= y_bottom && e->ey >= y_top); + + // compute endpoints of line segment clipped to this scanline (if the + // line segment starts on this scanline. x0 is the intersection of the + // line with y_top, but that may be off the line segment. + if (e->sy > y_top) { + x_top = x0 + dx * (e->sy - y_top); + sy0 = e->sy; + } else { + x_top = x0; + sy0 = y_top; + } + if (e->ey < y_bottom) { + x_bottom = x0 + dx * (e->ey - y_top); + sy1 = e->ey; + } else { + x_bottom = xb; + sy1 = y_bottom; + } + + if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { + // from here on, we don't have to range check x values + + if ((int) x_top == (int) x_bottom) { + float height; + // simple case, only spans one pixel + int x = (int) x_top; + height = sy1 - sy0; + STBTT_assert(x >= 0 && x < len); + scanline[x] += e->direction * (1-((x_top - x) + (x_bottom-x))/2) * height; + scanline_fill[x] += e->direction * height; // everything right of this pixel is filled + } else { + int x,x1,x2; + float y_crossing, step, sign, area; + // covers 2+ pixels + if (x_top > x_bottom) { + // flip scanline vertically; signed area is the same + float t; + sy0 = y_bottom - (sy0 - y_top); + sy1 = y_bottom - (sy1 - y_top); + t = sy0, sy0 = sy1, sy1 = t; + t = x_bottom, x_bottom = x_top, x_top = t; + dx = -dx; + dy = -dy; + t = x0, x0 = xb, xb = t; + // [DEAR IMGUI] Fix static analyzer warning + (void)dx; // [ImGui: fix static analyzer warning] + } + + x1 = (int) x_top; + x2 = (int) x_bottom; + // compute intersection with y axis at x1+1 + y_crossing = (x1+1 - x0) * dy + y_top; + + sign = e->direction; + // area of the rectangle covered from y0..y_crossing + area = sign * (y_crossing-sy0); + // area of the triangle (x_top,y0), (x+1,y0), (x+1,y_crossing) + scanline[x1] += area * (1-((x_top - x1)+(x1+1-x1))/2); + + step = sign * dy; + for (x = x1+1; x < x2; ++x) { + scanline[x] += area + step/2; + area += step; + } + y_crossing += dy * (x2 - (x1+1)); + + STBTT_assert(STBTT_fabs(area) <= 1.01f); + + scanline[x2] += area + sign * (1-((x2-x2)+(x_bottom-x2))/2) * (sy1-y_crossing); + + scanline_fill[x2] += sign * (sy1-sy0); + } + } else { + // if edge goes outside of box we're drawing, we require + // clipping logic. since this does not match the intended use + // of this library, we use a different, very slow brute + // force implementation + int x; + for (x=0; x < len; ++x) { + // cases: + // + // there can be up to two intersections with the pixel. any intersection + // with left or right edges can be handled by splitting into two (or three) + // regions. intersections with top & bottom do not necessitate case-wise logic. + // + // the old way of doing this found the intersections with the left & right edges, + // then used some simple logic to produce up to three segments in sorted order + // from top-to-bottom. however, this had a problem: if an x edge was epsilon + // across the x border, then the corresponding y position might not be distinct + // from the other y segment, and it might ignored as an empty segment. to avoid + // that, we need to explicitly produce segments based on x positions. + + // rename variables to clearly-defined pairs + float y0 = y_top; + float x1 = (float) (x); + float x2 = (float) (x+1); + float x3 = xb; + float y3 = y_bottom; + + // x = e->x + e->dx * (y-y_top) + // (y-y_top) = (x - e->x) / e->dx + // y = (x - e->x) / e->dx + y_top + float y1 = (x - x0) / dx + y_top; + float y2 = (x+1 - x0) / dx + y_top; + + if (x0 < x1 && x3 > x2) { // three segments descending down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x1 && x0 > x2) { // three segments descending down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x1 && x3 > x1) { // two segments across x, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x3 < x1 && x0 > x1) { // two segments across x, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); + stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); + } else if (x0 < x2 && x3 > x2) { // two segments across x+1, down-right + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else if (x3 < x2 && x0 > x2) { // two segments across x+1, down-left + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); + stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); + } else { // one segment + stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x3,y3); + } + } + } + } + e = e->next; + } +} + +// directly AA rasterize edges w/o supersampling +static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) +{ + stbtt__hheap hh = { 0, 0, 0 }; + stbtt__active_edge *active = NULL; + int y,j=0, i; + float scanline_data[129], *scanline, *scanline2; + + STBTT__NOTUSED(vsubsample); + + if (result->w > 64) + scanline = (float *) STBTT_malloc((result->w*2+1) * sizeof(float), userdata); + else + scanline = scanline_data; + + scanline2 = scanline + result->w; + + y = off_y; + e[n].y0 = (float) (off_y + result->h) + 1; + + while (j < result->h) { + // find center of pixel for this scanline + float scan_y_top = y + 0.0f; + float scan_y_bottom = y + 1.0f; + stbtt__active_edge **step = &active; + + STBTT_memset(scanline , 0, result->w*sizeof(scanline[0])); + STBTT_memset(scanline2, 0, (result->w+1)*sizeof(scanline[0])); + + // update all active edges; + // remove all active edges that terminate before the top of this scanline + while (*step) { + stbtt__active_edge * z = *step; + if (z->ey <= scan_y_top) { + *step = z->next; // delete from list + STBTT_assert(z->direction); + z->direction = 0; + stbtt__hheap_free(&hh, z); + } else { + step = &((*step)->next); // advance through list + } + } + + // insert all edges that start before the bottom of this scanline + while (e->y0 <= scan_y_bottom) { + if (e->y0 != e->y1) { + stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y_top, userdata); + if (z != NULL) { + if (j == 0 && off_y != 0) { + if (z->ey < scan_y_top) { + // this can happen due to subpixel positioning and some kind of fp rounding error i think + z->ey = scan_y_top; + } + } + STBTT_assert(z->ey >= scan_y_top); // if we get really unlucky a tiny bit of an edge can be out of bounds + // insert at front + z->next = active; + active = z; + } + } + ++e; + } + + // now process all active edges + if (active) + stbtt__fill_active_edges_new(scanline, scanline2+1, result->w, active, scan_y_top); + + { + float sum = 0; + for (i=0; i < result->w; ++i) { + float k; + int m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = (float) STBTT_fabs(k)*255 + 0.5f; + m = (int) k; + if (m > 255) m = 255; + result->pixels[j*result->stride + i] = (unsigned char) m; + } + } + // advance all the edges + step = &active; + while (*step) { + stbtt__active_edge *z = *step; + z->fx += z->fdx; // advance to position for current scanline + step = &((*step)->next); // advance through list + } + + ++y; + ++j; + } + + stbtt__hheap_cleanup(&hh, userdata); + + if (scanline != scanline_data) + STBTT_free(scanline, userdata); +} +#else +#error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + +#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0) + +static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n) +{ + int i,j; + for (i=1; i < n; ++i) { + stbtt__edge t = p[i], *a = &t; + j = i; + while (j > 0) { + stbtt__edge *b = &p[j-1]; + int c = STBTT__COMPARE(a,b); + if (!c) break; + p[j] = p[j-1]; + --j; + } + if (i != j) + p[j] = t; + } +} + +static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n) +{ + /* threshold for transitioning to insertion sort */ + while (n > 12) { + stbtt__edge t; + int c01,c12,c,m,i,j; + + /* compute median of three */ + m = n >> 1; + c01 = STBTT__COMPARE(&p[0],&p[m]); + c12 = STBTT__COMPARE(&p[m],&p[n-1]); + /* if 0 >= mid >= end, or 0 < mid < end, then use mid */ + if (c01 != c12) { + /* otherwise, we'll need to swap something else to middle */ + int z; + c = STBTT__COMPARE(&p[0],&p[n-1]); + /* 0>mid && midn => n; 0 0 */ + /* 0n: 0>n => 0; 0 n */ + z = (c == c12) ? 0 : n-1; + t = p[z]; + p[z] = p[m]; + p[m] = t; + } + /* now p[m] is the median-of-three */ + /* swap it to the beginning so it won't move around */ + t = p[0]; + p[0] = p[m]; + p[m] = t; + + /* partition loop */ + i=1; + j=n-1; + for(;;) { + /* handling of equality is crucial here */ + /* for sentinels & efficiency with duplicates */ + for (;;++i) { + if (!STBTT__COMPARE(&p[i], &p[0])) break; + } + for (;;--j) { + if (!STBTT__COMPARE(&p[0], &p[j])) break; + } + /* make sure we haven't crossed */ + if (i >= j) break; + t = p[i]; + p[i] = p[j]; + p[j] = t; + + ++i; + --j; + } + /* recurse on smaller side, iterate on larger */ + if (j < (n-i)) { + stbtt__sort_edges_quicksort(p,j); + p = p+i; + n = n-i; + } else { + stbtt__sort_edges_quicksort(p+i, n-i); + n = j; + } + } +} + +static void stbtt__sort_edges(stbtt__edge *p, int n) +{ + stbtt__sort_edges_quicksort(p, n); + stbtt__sort_edges_ins_sort(p, n); +} + +typedef struct +{ + float x,y; +} stbtt__point; + +static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata) +{ + float y_scale_inv = invert ? -scale_y : scale_y; + stbtt__edge *e; + int n,i,j,k,m; +#if STBTT_RASTERIZER_VERSION == 1 + int vsubsample = result->h < 8 ? 15 : 5; +#elif STBTT_RASTERIZER_VERSION == 2 + int vsubsample = 1; +#else + #error "Unrecognized value of STBTT_RASTERIZER_VERSION" +#endif + // vsubsample should divide 255 evenly; otherwise we won't reach full opacity + + // now we have to blow out the windings into explicit edge lists + n = 0; + for (i=0; i < windings; ++i) + n += wcount[i]; + + e = (stbtt__edge *) STBTT_malloc(sizeof(*e) * (n+1), userdata); // add an extra one as a sentinel + if (e == 0) return; + n = 0; + + m=0; + for (i=0; i < windings; ++i) { + stbtt__point *p = pts + m; + m += wcount[i]; + j = wcount[i]-1; + for (k=0; k < wcount[i]; j=k++) { + int a=k,b=j; + // skip the edge if horizontal + if (p[j].y == p[k].y) + continue; + // add edge from j to k to the list + e[n].invert = 0; + if (invert ? p[j].y > p[k].y : p[j].y < p[k].y) { + e[n].invert = 1; + a=j,b=k; + } + e[n].x0 = p[a].x * scale_x + shift_x; + e[n].y0 = (p[a].y * y_scale_inv + shift_y) * vsubsample; + e[n].x1 = p[b].x * scale_x + shift_x; + e[n].y1 = (p[b].y * y_scale_inv + shift_y) * vsubsample; + ++n; + } + } + + // now sort the edges by their highest point (should snap to integer, and then by x) + //STBTT_sort(e, n, sizeof(e[0]), stbtt__edge_compare); + stbtt__sort_edges(e, n); + + // now, traverse the scanlines and find the intersections on each scanline, use xor winding rule + stbtt__rasterize_sorted_edges(result, e, n, vsubsample, off_x, off_y, userdata); + + STBTT_free(e, userdata); +} + +static void stbtt__add_point(stbtt__point *points, int n, float x, float y) +{ + if (!points) return; // during first pass, it's unallocated + points[n].x = x; + points[n].y = y; +} + +// tessellate until threshold p is happy... @TODO warped to compensate for non-linear stretching +static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n) +{ + // midpoint + float mx = (x0 + 2*x1 + x2)/4; + float my = (y0 + 2*y1 + y2)/4; + // versus directly drawn line + float dx = (x0+x2)/2 - mx; + float dy = (y0+y2)/2 - my; + if (n > 16) // 65536 segments on one curve better be enough! + return 1; + if (dx*dx+dy*dy > objspace_flatness_squared) { // half-pixel error allowed... need to be smaller if AA + stbtt__tesselate_curve(points, num_points, x0,y0, (x0+x1)/2.0f,(y0+y1)/2.0f, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_curve(points, num_points, mx,my, (x1+x2)/2.0f,(y1+y2)/2.0f, x2,y2, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x2,y2); + *num_points = *num_points+1; + } + return 1; +} + +static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n) +{ + // @TODO this "flatness" calculation is just made-up nonsense that seems to work well enough + float dx0 = x1-x0; + float dy0 = y1-y0; + float dx1 = x2-x1; + float dy1 = y2-y1; + float dx2 = x3-x2; + float dy2 = y3-y2; + float dx = x3-x0; + float dy = y3-y0; + float longlen = (float) (STBTT_sqrt(dx0*dx0+dy0*dy0)+STBTT_sqrt(dx1*dx1+dy1*dy1)+STBTT_sqrt(dx2*dx2+dy2*dy2)); + float shortlen = (float) STBTT_sqrt(dx*dx+dy*dy); + float flatness_squared = longlen*longlen-shortlen*shortlen; + + if (n > 16) // 65536 segments on one curve better be enough! + return; + + if (flatness_squared > objspace_flatness_squared) { + float x01 = (x0+x1)/2; + float y01 = (y0+y1)/2; + float x12 = (x1+x2)/2; + float y12 = (y1+y2)/2; + float x23 = (x2+x3)/2; + float y23 = (y2+y3)/2; + + float xa = (x01+x12)/2; + float ya = (y01+y12)/2; + float xb = (x12+x23)/2; + float yb = (y12+y23)/2; + + float mx = (xa+xb)/2; + float my = (ya+yb)/2; + + stbtt__tesselate_cubic(points, num_points, x0,y0, x01,y01, xa,ya, mx,my, objspace_flatness_squared,n+1); + stbtt__tesselate_cubic(points, num_points, mx,my, xb,yb, x23,y23, x3,y3, objspace_flatness_squared,n+1); + } else { + stbtt__add_point(points, *num_points,x3,y3); + *num_points = *num_points+1; + } +} + +// returns number of contours +static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) +{ + stbtt__point *points=0; + int num_points=0; + + float objspace_flatness_squared = objspace_flatness * objspace_flatness; + int i,n=0,start=0, pass; + + // count how many "moves" there are to get the contour count + for (i=0; i < num_verts; ++i) + if (vertices[i].type == STBTT_vmove) + ++n; + + *num_contours = n; + if (n == 0) return 0; + + *contour_lengths = (int *) STBTT_malloc(sizeof(**contour_lengths) * n, userdata); + + if (*contour_lengths == 0) { + *num_contours = 0; + return 0; + } + + // make two passes through the points so we don't need to realloc + for (pass=0; pass < 2; ++pass) { + float x=0,y=0; + if (pass == 1) { + points = (stbtt__point *) STBTT_malloc(num_points * sizeof(points[0]), userdata); + if (points == NULL) goto error; + } + num_points = 0; + n= -1; + for (i=0; i < num_verts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + // start the next contour + if (n >= 0) + (*contour_lengths)[n] = num_points - start; + ++n; + start = num_points; + + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x,y); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + stbtt__add_point(points, num_points++, x, y); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, &num_points, x,y, + vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, + vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + (*contour_lengths)[n] = num_points - start; + } + + return points; +error: + STBTT_free(points, userdata); + STBTT_free(*contour_lengths, userdata); + *contour_lengths = 0; + *num_contours = 0; + return NULL; +} + +STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata) +{ + float scale = scale_x > scale_y ? scale_y : scale_x; + int winding_count = 0; + int *winding_lengths = NULL; + stbtt__point *windings = stbtt_FlattenCurves(vertices, num_verts, flatness_in_pixels / scale, &winding_lengths, &winding_count, userdata); + if (windings) { + stbtt__rasterize(result, windings, winding_lengths, winding_count, scale_x, scale_y, shift_x, shift_y, x_off, y_off, invert, userdata); + STBTT_free(winding_lengths, userdata); + STBTT_free(windings, userdata); + } +} + +STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + int ix0,iy0,ix1,iy1; + stbtt__bitmap gbm; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + + if (scale_x == 0) scale_x = scale_y; + if (scale_y == 0) { + if (scale_x == 0) { + STBTT_free(vertices, info->userdata); + return NULL; + } + scale_y = scale_x; + } + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,&ix1,&iy1); + + // now we get the size + gbm.w = (ix1 - ix0); + gbm.h = (iy1 - iy0); + gbm.pixels = NULL; // in case we error + + if (width ) *width = gbm.w; + if (height) *height = gbm.h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + if (gbm.w && gbm.h) { + gbm.pixels = (unsigned char *) STBTT_malloc(gbm.w * gbm.h, info->userdata); + if (gbm.pixels) { + gbm.stride = gbm.w; + + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0, iy0, 1, info->userdata); + } + } + STBTT_free(vertices, info->userdata); + return gbm.pixels; +} + +STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y, 0.0f, 0.0f, glyph, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph) +{ + int ix0,iy0; + stbtt_vertex *vertices; + int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); + stbtt__bitmap gbm; + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,0,0); + gbm.pixels = output; + gbm.w = out_w; + gbm.h = out_h; + gbm.stride = out_stride; + + if (gbm.w && gbm.h) + stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0,iy0, 1, info->userdata); + + STBTT_free(vertices, info->userdata); +} + +STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, glyph); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y,shift_x,shift_y, stbtt_FindGlyphIndex(info,codepoint), width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixelPrefilter(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, oversample_x, oversample_y, sub_x, sub_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint) +{ + stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info,codepoint)); +} + +STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetCodepointBitmapSubpixel(info, scale_x, scale_y, 0.0f,0.0f, codepoint, width,height,xoff,yoff); +} + +STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint) +{ + stbtt_MakeCodepointBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, codepoint); +} + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-CRAPPY packing to keep source code small + +static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) + float pixel_height, // height of font in pixels + unsigned char *pixels, int pw, int ph, // bitmap to be filled in + int first_char, int num_chars, // characters to bake + stbtt_bakedchar *chardata) +{ + float scale; + int x,y,bottom_y, i; + stbtt_fontinfo f; + f.userdata = NULL; + if (!stbtt_InitFont(&f, data, offset)) + return -1; + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + x=y=1; + bottom_y = 1; + + scale = stbtt_ScaleForPixelHeight(&f, pixel_height); + + for (i=0; i < num_chars; ++i) { + int advance, lsb, x0,y0,x1,y1,gw,gh; + int g = stbtt_FindGlyphIndex(&f, first_char + i); + stbtt_GetGlyphHMetrics(&f, g, &advance, &lsb); + stbtt_GetGlyphBitmapBox(&f, g, scale,scale, &x0,&y0,&x1,&y1); + gw = x1-x0; + gh = y1-y0; + if (x + gw + 1 >= pw) + y = bottom_y, x = 1; // advance to next row + if (y + gh + 1 >= ph) // check if it fits vertically AFTER potentially moving to next row + return -i; + STBTT_assert(x+gw < pw); + STBTT_assert(y+gh < ph); + stbtt_MakeGlyphBitmap(&f, pixels+x+y*pw, gw,gh,pw, scale,scale, g); + chardata[i].x0 = (stbtt_int16) x; + chardata[i].y0 = (stbtt_int16) y; + chardata[i].x1 = (stbtt_int16) (x + gw); + chardata[i].y1 = (stbtt_int16) (y + gh); + chardata[i].xadvance = scale * advance; + chardata[i].xoff = (float) x0; + chardata[i].yoff = (float) y0; + x = x + gw + 1; + if (y+gh+1 > bottom_y) + bottom_y = y+gh+1; + } + return bottom_y; +} + +STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule) +{ + float d3d_bias = opengl_fillrule ? 0 : -0.5f; + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_bakedchar *b = chardata + char_index; + int round_x = STBTT_ifloor((*xpos + b->xoff) + 0.5f); + int round_y = STBTT_ifloor((*ypos + b->yoff) + 0.5f); + + q->x0 = round_x + d3d_bias; + q->y0 = round_y + d3d_bias; + q->x1 = round_x + b->x1 - b->x0 + d3d_bias; + q->y1 = round_y + b->y1 - b->y0 + d3d_bias; + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// rectangle packing replacement routines if you don't have stb_rect_pack.h +// + +#ifndef STB_RECT_PACK_VERSION + +typedef int stbrp_coord; + +//////////////////////////////////////////////////////////////////////////////////// +// // +// // +// COMPILER WARNING ?!?!? // +// // +// // +// if you get a compile warning due to these symbols being defined more than // +// once, move #include "stb_rect_pack.h" before #include "stb_truetype.h" // +// // +//////////////////////////////////////////////////////////////////////////////////// + +typedef struct +{ + int width,height; + int x,y,bottom_y; +} stbrp_context; + +typedef struct +{ + unsigned char x; +} stbrp_node; + +struct stbrp_rect +{ + stbrp_coord x,y; + int id,w,h,was_packed; +}; + +static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes) +{ + con->width = pw; + con->height = ph; + con->x = 0; + con->y = 0; + con->bottom_y = 0; + STBTT__NOTUSED(nodes); + STBTT__NOTUSED(num_nodes); +} + +static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects) +{ + int i; + for (i=0; i < num_rects; ++i) { + if (con->x + rects[i].w > con->width) { + con->x = 0; + con->y = con->bottom_y; + } + if (con->y + rects[i].h > con->height) + break; + rects[i].x = con->x; + rects[i].y = con->y; + rects[i].was_packed = 1; + con->x += rects[i].w; + if (con->y + rects[i].h > con->bottom_y) + con->bottom_y = con->y + rects[i].h; + } + for ( ; i < num_rects; ++i) + rects[i].was_packed = 0; +} +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// bitmap baking +// +// This is SUPER-AWESOME (tm Ryan Gordon) packing using stb_rect_pack.h. If +// stb_rect_pack.h isn't available, it uses the BakeFontBitmap strategy. + +STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context) +{ + stbrp_context *context = (stbrp_context *) STBTT_malloc(sizeof(*context) ,alloc_context); + int num_nodes = pw - padding; + stbrp_node *veh_nodes = (stbrp_node *) STBTT_malloc(sizeof(*veh_nodes ) * num_nodes,alloc_context); + + if (context == NULL || veh_nodes == NULL) { + if (context != NULL) STBTT_free(context, alloc_context); + if (veh_nodes != NULL) STBTT_free(veh_nodes , alloc_context); + return 0; + } + + spc->user_allocator_context = alloc_context; + spc->width = pw; + spc->height = ph; + spc->pixels = pixels; + spc->pack_info = context; + spc->veh_nodes = veh_nodes; + spc->padding = padding; + spc->stride_in_bytes = stride_in_bytes != 0 ? stride_in_bytes : pw; + spc->h_oversample = 1; + spc->v_oversample = 1; + spc->skip_missing = 0; + + stbrp_init_target(context, pw-padding, ph-padding, veh_nodes, num_nodes); + + if (pixels) + STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels + + return 1; +} + +STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc) +{ + STBTT_free(spc->veh_nodes , spc->user_allocator_context); + STBTT_free(spc->pack_info, spc->user_allocator_context); +} + +STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample) +{ + STBTT_assert(h_oversample <= STBTT_MAX_OVERSAMPLE); + STBTT_assert(v_oversample <= STBTT_MAX_OVERSAMPLE); + if (h_oversample <= STBTT_MAX_OVERSAMPLE) + spc->h_oversample = h_oversample; + if (v_oversample <= STBTT_MAX_OVERSAMPLE) + spc->v_oversample = v_oversample; +} + +STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip) +{ + spc->skip_missing = skip; +} + +#define STBTT__OVER_MASK (STBTT_MAX_OVERSAMPLE-1) + +static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_w = w - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < h; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_w; ++i) { + total += pixels[i] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; + pixels[i] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < w; ++i) { + STBTT_assert(pixels[i] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i] = (unsigned char) (total / kernel_width); + } + + pixels += stride_in_bytes; + } +} + +static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) +{ + unsigned char buffer[STBTT_MAX_OVERSAMPLE]; + int safe_h = h - kernel_width; + int j; + STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze + for (j=0; j < w; ++j) { + int i; + unsigned int total; + STBTT_memset(buffer, 0, kernel_width); + + total = 0; + + // make kernel_width a constant in common cases so compiler can optimize out the divide + switch (kernel_width) { + case 2: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 2); + } + break; + case 3: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 3); + } + break; + case 4: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 4); + } + break; + case 5: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / 5); + } + break; + default: + for (i=0; i <= safe_h; ++i) { + total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; + buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + break; + } + + for (; i < h; ++i) { + STBTT_assert(pixels[i*stride_in_bytes] == 0); + total -= buffer[i & STBTT__OVER_MASK]; + pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); + } + + pixels += 1; + } +} + +static float stbtt__oversample_shift(int oversample) +{ + if (!oversample) + return 0.0f; + + // The prefilter is a box filter of width "oversample", + // which shifts phase by (oversample - 1)/2 pixels in + // oversampled space. We want to shift in the opposite + // direction to counter this. + return (float)-(oversample - 1) / (2.0f * (float)oversample); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k; + + k=0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + ranges[i].h_oversample = (unsigned char) spc->h_oversample; + ranges[i].v_oversample = (unsigned char) spc->v_oversample; + for (j=0; j < ranges[i].num_chars; ++j) { + int x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + if (glyph == 0 && spc->skip_missing) { + rects[k].w = rects[k].h = 0; + } else { + stbtt_GetGlyphBitmapBoxSubpixel(info,glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + &x0,&y0,&x1,&y1); + rects[k].w = (stbrp_coord) (x1-x0 + spc->padding + spc->h_oversample-1); + rects[k].h = (stbrp_coord) (y1-y0 + spc->padding + spc->v_oversample-1); + } + ++k; + } + } + + return k; +} + +STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph) +{ + stbtt_MakeGlyphBitmapSubpixel(info, + output, + out_w - (prefilter_x - 1), + out_h - (prefilter_y - 1), + out_stride, + scale_x, + scale_y, + shift_x, + shift_y, + glyph); + + if (prefilter_x > 1) + stbtt__h_prefilter(output, out_w, out_h, out_stride, prefilter_x); + + if (prefilter_y > 1) + stbtt__v_prefilter(output, out_w, out_h, out_stride, prefilter_y); + + *sub_x = stbtt__oversample_shift(prefilter_x); + *sub_y = stbtt__oversample_shift(prefilter_y); +} + +// rects array must be big enough to accommodate all characters in the given ranges +STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) +{ + int i,j,k, return_value = 1; + + // save current values + int old_h_over = spc->h_oversample; + int old_v_over = spc->v_oversample; + + k = 0; + for (i=0; i < num_ranges; ++i) { + float fh = ranges[i].font_size; + float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); + float recip_h,recip_v,sub_x,sub_y; + spc->h_oversample = ranges[i].h_oversample; + spc->v_oversample = ranges[i].v_oversample; + recip_h = 1.0f / spc->h_oversample; + recip_v = 1.0f / spc->v_oversample; + sub_x = stbtt__oversample_shift(spc->h_oversample); + sub_y = stbtt__oversample_shift(spc->v_oversample); + for (j=0; j < ranges[i].num_chars; ++j) { + stbrp_rect *r = &rects[k]; + if (r->was_packed && r->w != 0 && r->h != 0) { + stbtt_packedchar *bc = &ranges[i].chardata_for_range[j]; + int advance, lsb, x0,y0,x1,y1; + int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; + int glyph = stbtt_FindGlyphIndex(info, codepoint); + stbrp_coord pad = (stbrp_coord) spc->padding; + + // pad on left and top + r->x += pad; + r->y += pad; + r->w -= pad; + r->h -= pad; + stbtt_GetGlyphHMetrics(info, glyph, &advance, &lsb); + stbtt_GetGlyphBitmapBox(info, glyph, + scale * spc->h_oversample, + scale * spc->v_oversample, + &x0,&y0,&x1,&y1); + stbtt_MakeGlyphBitmapSubpixel(info, + spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w - spc->h_oversample+1, + r->h - spc->v_oversample+1, + spc->stride_in_bytes, + scale * spc->h_oversample, + scale * spc->v_oversample, + 0,0, + glyph); + + if (spc->h_oversample > 1) + stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->h_oversample); + + if (spc->v_oversample > 1) + stbtt__v_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, + r->w, r->h, spc->stride_in_bytes, + spc->v_oversample); + + bc->x0 = (stbtt_int16) r->x; + bc->y0 = (stbtt_int16) r->y; + bc->x1 = (stbtt_int16) (r->x + r->w); + bc->y1 = (stbtt_int16) (r->y + r->h); + bc->xadvance = scale * advance; + bc->xoff = (float) x0 * recip_h + sub_x; + bc->yoff = (float) y0 * recip_v + sub_y; + bc->xoff2 = (x0 + r->w) * recip_h + sub_x; + bc->yoff2 = (y0 + r->h) * recip_v + sub_y; + } else { + return_value = 0; // if any fail, report failure + } + + ++k; + } + } + + // restore original values + spc->h_oversample = old_h_over; + spc->v_oversample = old_v_over; + + return return_value; +} + +STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects) +{ + stbrp_pack_rects((stbrp_context *) spc->pack_info, rects, num_rects); +} + +STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) +{ + stbtt_fontinfo info; + int i,j,n, return_value; // [DEAR IMGUI] removed = 1 + //stbrp_context *context = (stbrp_context *) spc->pack_info; + stbrp_rect *rects; + + // flag all characters as NOT packed + for (i=0; i < num_ranges; ++i) + for (j=0; j < ranges[i].num_chars; ++j) + ranges[i].chardata_for_range[j].x0 = + ranges[i].chardata_for_range[j].y0 = + ranges[i].chardata_for_range[j].x1 = + ranges[i].chardata_for_range[j].y1 = 0; + + n = 0; + for (i=0; i < num_ranges; ++i) + n += ranges[i].num_chars; + + rects = (stbrp_rect *) STBTT_malloc(sizeof(*rects) * n, spc->user_allocator_context); + if (rects == NULL) + return 0; + + info.userdata = spc->user_allocator_context; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata,font_index)); + + n = stbtt_PackFontRangesGatherRects(spc, &info, ranges, num_ranges, rects); + + stbtt_PackFontRangesPackRects(spc, rects, n); + + return_value = stbtt_PackFontRangesRenderIntoRects(spc, &info, ranges, num_ranges, rects); + + STBTT_free(rects, spc->user_allocator_context); + return return_value; +} + +STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, + int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) +{ + stbtt_pack_range range; + range.first_unicode_codepoint_in_range = first_unicode_codepoint_in_range; + range.array_of_unicode_codepoints = NULL; + range.num_chars = num_chars_in_range; + range.chardata_for_range = chardata_for_range; + range.font_size = font_size; + return stbtt_PackFontRanges(spc, fontdata, font_index, &range, 1); +} + +STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float menu_size, float *ascent, float *descent, float *lineGap) +{ + int i_ascent, i_descent, i_lineGap; + float scale; + stbtt_fontinfo info; + stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata, index)); + scale = menu_size > 0 ? stbtt_ScaleForPixelHeight(&info, menu_size) : stbtt_ScaleForMappingEmToPixels(&info, -menu_size); + stbtt_GetFontVMetrics(&info, &i_ascent, &i_descent, &i_lineGap); + *ascent = (float) i_ascent * scale; + *descent = (float) i_descent * scale; + *lineGap = (float) i_lineGap * scale; +} + +STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer) +{ + float ipw = 1.0f / pw, iph = 1.0f / ph; + const stbtt_packedchar *b = chardata + char_index; + + if (align_to_integer) { + float x = (float) STBTT_ifloor((*xpos + b->xoff) + 0.5f); + float y = (float) STBTT_ifloor((*ypos + b->yoff) + 0.5f); + q->x0 = x; + q->y0 = y; + q->x1 = x + b->xoff2 - b->xoff; + q->y1 = y + b->yoff2 - b->yoff; + } else { + q->x0 = *xpos + b->xoff; + q->y0 = *ypos + b->yoff; + q->x1 = *xpos + b->xoff2; + q->y1 = *ypos + b->yoff2; + } + + q->s0 = b->x0 * ipw; + q->t0 = b->y0 * iph; + q->s1 = b->x1 * ipw; + q->t1 = b->y1 * iph; + + *xpos += b->xadvance; +} + +////////////////////////////////////////////////////////////////////////////// +// +// sdf computation +// + +#define STBTT_min(a,b) ((a) < (b) ? (a) : (b)) +#define STBTT_max(a,b) ((a) < (b) ? (b) : (a)) + +static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2]) +{ + float q0perp = q0[1]*ray[0] - q0[0]*ray[1]; + float q1perp = q1[1]*ray[0] - q1[0]*ray[1]; + float q2perp = q2[1]*ray[0] - q2[0]*ray[1]; + float roperp = orig[1]*ray[0] - orig[0]*ray[1]; + + float a = q0perp - 2*q1perp + q2perp; + float b = q1perp - q0perp; + float c = q0perp - roperp; + + float s0 = 0., s1 = 0.; + int num_s = 0; + + if (a != 0.0) { + float discr = b*b - a*c; + if (discr > 0.0) { + float rcpna = -1 / a; + float d = (float) STBTT_sqrt(discr); + s0 = (b+d) * rcpna; + s1 = (b-d) * rcpna; + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + if (d > 0.0 && s1 >= 0.0 && s1 <= 1.0) { + if (num_s == 0) s0 = s1; + ++num_s; + } + } + } else { + // 2*b*s + c = 0 + // s = -c / (2*b) + s0 = c / (-2 * b); + if (s0 >= 0.0 && s0 <= 1.0) + num_s = 1; + } + + if (num_s == 0) + return 0; + else { + float rcp_len2 = 1 / (ray[0]*ray[0] + ray[1]*ray[1]); + float rayn_x = ray[0] * rcp_len2, rayn_y = ray[1] * rcp_len2; + + float q0d = q0[0]*rayn_x + q0[1]*rayn_y; + float q1d = q1[0]*rayn_x + q1[1]*rayn_y; + float q2d = q2[0]*rayn_x + q2[1]*rayn_y; + float rod = orig[0]*rayn_x + orig[1]*rayn_y; + + float q10d = q1d - q0d; + float q20d = q2d - q0d; + float q0rd = q0d - rod; + + hits[0][0] = q0rd + s0*(2.0f - 2.0f*s0)*q10d + s0*s0*q20d; + hits[0][1] = a*s0+b; + + if (num_s > 1) { + hits[1][0] = q0rd + s1*(2.0f - 2.0f*s1)*q10d + s1*s1*q20d; + hits[1][1] = a*s1+b; + return 2; + } else { + return 1; + } + } +} + +static int equal(float *a, float *b) +{ + return (a[0] == b[0] && a[1] == b[1]); +} + +static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts) +{ + int i; + float orig[2], ray[2] = { 1, 0 }; + float y_frac; + int winding = 0; + + orig[0] = x; + //orig[1] = y; // [DEAR IMGUI] commmented double assignment + + // make sure y never passes through a vertex of the shape + y_frac = (float) STBTT_fmod(y, 1.0f); + if (y_frac < 0.01f) + y += 0.01f; + else if (y_frac > 0.99f) + y -= 0.01f; + orig[1] = y; + + // test a ray from (-infinity,y) to (x,y) + for (i=0; i < nverts; ++i) { + if (verts[i].type == STBTT_vline) { + int x0 = (int) verts[i-1].x, y0 = (int) verts[i-1].y; + int x1 = (int) verts[i ].x, y1 = (int) verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } + if (verts[i].type == STBTT_vcurve) { + int x0 = (int) verts[i-1].x , y0 = (int) verts[i-1].y ; + int x1 = (int) verts[i ].cx, y1 = (int) verts[i ].cy; + int x2 = (int) verts[i ].x , y2 = (int) verts[i ].y ; + int ax = STBTT_min(x0,STBTT_min(x1,x2)), ay = STBTT_min(y0,STBTT_min(y1,y2)); + int by = STBTT_max(y0,STBTT_max(y1,y2)); + if (y > ay && y < by && x > ax) { + float q0[2],q1[2],q2[2]; + float hits[2][2]; + q0[0] = (float)x0; + q0[1] = (float)y0; + q1[0] = (float)x1; + q1[1] = (float)y1; + q2[0] = (float)x2; + q2[1] = (float)y2; + if (equal(q0,q1) || equal(q1,q2)) { + x0 = (int)verts[i-1].x; + y0 = (int)verts[i-1].y; + x1 = (int)verts[i ].x; + y1 = (int)verts[i ].y; + if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { + float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; + if (x_inter < x) + winding += (y0 < y1) ? 1 : -1; + } + } else { + int num_hits = stbtt__ray_intersect_bezier(orig, ray, q0, q1, q2, hits); + if (num_hits >= 1) + if (hits[0][0] < 0) + winding += (hits[0][1] < 0 ? -1 : 1); + if (num_hits >= 2) + if (hits[1][0] < 0) + winding += (hits[1][1] < 0 ? -1 : 1); + } + } + } + } + return winding; +} + +static float stbtt__cuberoot( float x ) +{ + if (x<0) + return -(float) STBTT_pow(-x,1.0f/3.0f); + else + return (float) STBTT_pow( x,1.0f/3.0f); +} + +// x^3 + c*x^2 + b*x + a = 0 +static int stbtt__solve_cubic(float a, float b, float c, float* r) +{ + float s = -a / 3; + float p = b - a*a / 3; + float q = a * (2*a*a - 9*b) / 27 + c; + float p3 = p*p*p; + float d = q*q + 4*p3 / 27; + if (d >= 0) { + float z = (float) STBTT_sqrt(d); + float u = (-q + z) / 2; + float v = (-q - z) / 2; + u = stbtt__cuberoot(u); + v = stbtt__cuberoot(v); + r[0] = s + u + v; + return 1; + } else { + float u = (float) STBTT_sqrt(-p/3); + float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative + float m = (float) STBTT_cos(v); + float n = (float) STBTT_cos(v-3.141592/2)*1.732050808f; + r[0] = s + u * 2 * m; + r[1] = s - u * (m + n); + r[2] = s - u * (m - n); + + //STBTT_assert( STBTT_fabs(((r[0]+a)*r[0]+b)*r[0]+c) < 0.05f); // these asserts may not be safe at all scales, though they're in bezier t parameter units so maybe? + //STBTT_assert( STBTT_fabs(((r[1]+a)*r[1]+b)*r[1]+c) < 0.05f); + //STBTT_assert( STBTT_fabs(((r[2]+a)*r[2]+b)*r[2]+c) < 0.05f); + return 3; + } +} + +STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + float scale_x = scale, scale_y = scale; + int ix0,iy0,ix1,iy1; + int w,h; + unsigned char *data; + + // if one scale is 0, use same scale for both + if (scale_x == 0) scale_x = scale_y; + if (scale_y == 0) { + if (scale_x == 0) return NULL; // if both scales are 0, return NULL + scale_y = scale_x; + } + + stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale, scale, 0.0f,0.0f, &ix0,&iy0,&ix1,&iy1); + + // if empty, return NULL + if (ix0 == ix1 || iy0 == iy1) + return NULL; + + ix0 -= padding; + iy0 -= padding; + ix1 += padding; + iy1 += padding; + + w = (ix1 - ix0); + h = (iy1 - iy0); + + if (width ) *width = w; + if (height) *height = h; + if (xoff ) *xoff = ix0; + if (yoff ) *yoff = iy0; + + // invert for y-downwards bitmaps + scale_y = -scale_y; + + { + int x,y,i,j; + float *precompute; + stbtt_vertex *verts; + int num_verts = stbtt_GetGlyphShape(info, glyph, &verts); + data = (unsigned char *) STBTT_malloc(w * h, info->userdata); + precompute = (float *) STBTT_malloc(num_verts * sizeof(float), info->userdata); + + for (i=0,j=num_verts-1; i < num_verts; j=i++) { + if (verts[i].type == STBTT_vline) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + float x1 = verts[j].x*scale_x, y1 = verts[j].y*scale_y; + float dist = (float) STBTT_sqrt((x1-x0)*(x1-x0) + (y1-y0)*(y1-y0)); + precompute[i] = (dist == 0) ? 0.0f : 1.0f / dist; + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[j].x *scale_x, y2 = verts[j].y *scale_y; + float x1 = verts[i].cx*scale_x, y1 = verts[i].cy*scale_y; + float x0 = verts[i].x *scale_x, y0 = verts[i].y *scale_y; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float len2 = bx*bx + by*by; + if (len2 != 0.0f) + precompute[i] = 1.0f / (bx*bx + by*by); + else + precompute[i] = 0.0f; + } else + precompute[i] = 0.0f; + } + + for (y=iy0; y < iy1; ++y) { + for (x=ix0; x < ix1; ++x) { + float val; + float min_dist = 999999.0f; + float sx = (float) x + 0.5f; + float sy = (float) y + 0.5f; + float x_gspace = (sx / scale_x); + float y_gspace = (sy / scale_y); + + int winding = stbtt__compute_crossings_x(x_gspace, y_gspace, num_verts, verts); // @OPTIMIZE: this could just be a rasterization, but needs to be line vs. non-tesselated curves so a new path + + for (i=0; i < num_verts; ++i) { + float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; + + // check against every point here rather than inside line/curve primitives -- @TODO: wrong if multiple 'moves' in a row produce a garbage point, and given culling, probably more efficient to do within line/curve + float dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); + if (dist2 < min_dist*min_dist) + min_dist = (float) STBTT_sqrt(dist2); + + if (verts[i].type == STBTT_vline) { + float x1 = verts[i-1].x*scale_x, y1 = verts[i-1].y*scale_y; + + // coarse culling against bbox + //if (sx > STBTT_min(x0,x1)-min_dist && sx < STBTT_max(x0,x1)+min_dist && + // sy > STBTT_min(y0,y1)-min_dist && sy < STBTT_max(y0,y1)+min_dist) + float dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; + STBTT_assert(i != 0); + if (dist < min_dist) { + // check position along line + // x' = x0 + t*(x1-x0), y' = y0 + t*(y1-y0) + // minimize (x'-sx)*(x'-sx)+(y'-sy)*(y'-sy) + float dx = x1-x0, dy = y1-y0; + float px = x0-sx, py = y0-sy; + // minimize (px+t*dx)^2 + (py+t*dy)^2 = px*px + 2*px*dx*t + t^2*dx*dx + py*py + 2*py*dy*t + t^2*dy*dy + // derivative: 2*px*dx + 2*py*dy + (2*dx*dx+2*dy*dy)*t, set to 0 and solve + float t = -(px*dx + py*dy) / (dx*dx + dy*dy); + if (t >= 0.0f && t <= 1.0f) + min_dist = dist; + } + } else if (verts[i].type == STBTT_vcurve) { + float x2 = verts[i-1].x *scale_x, y2 = verts[i-1].y *scale_y; + float x1 = verts[i ].cx*scale_x, y1 = verts[i ].cy*scale_y; + float box_x0 = STBTT_min(STBTT_min(x0,x1),x2); + float box_y0 = STBTT_min(STBTT_min(y0,y1),y2); + float box_x1 = STBTT_max(STBTT_max(x0,x1),x2); + float box_y1 = STBTT_max(STBTT_max(y0,y1),y2); + // coarse culling against bbox to avoid computing cubic unnecessarily + if (sx > box_x0-min_dist && sx < box_x1+min_dist && sy > box_y0-min_dist && sy < box_y1+min_dist) { + int num=0; + float ax = x1-x0, ay = y1-y0; + float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; + float mx = x0 - sx, my = y0 - sy; + float res[3],px,py,t,it; + float a_inv = precompute[i]; + if (a_inv == 0.0) { // if a_inv is 0, it's 2nd degree so use quadratic formula + float a = 3*(ax*bx + ay*by); + float b = 2*(ax*ax + ay*ay) + (mx*bx+my*by); + float c = mx*ax+my*ay; + if (a == 0.0) { // if a is 0, it's linear + if (b != 0.0) { + res[num++] = -c/b; + } + } else { + float discriminant = b*b - 4*a*c; + if (discriminant < 0) + num = 0; + else { + float root = (float) STBTT_sqrt(discriminant); + res[0] = (-b - root)/(2*a); + res[1] = (-b + root)/(2*a); + num = 2; // don't bother distinguishing 1-solution case, as code below will still work + } + } + } else { + float b = 3*(ax*bx + ay*by) * a_inv; // could precompute this as it doesn't depend on sample point + float c = (2*(ax*ax + ay*ay) + (mx*bx+my*by)) * a_inv; + float d = (mx*ax+my*ay) * a_inv; + num = stbtt__solve_cubic(b, c, d, res); + } + if (num >= 1 && res[0] >= 0.0f && res[0] <= 1.0f) { + t = res[0], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 2 && res[1] >= 0.0f && res[1] <= 1.0f) { + t = res[1], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + if (num >= 3 && res[2] >= 0.0f && res[2] <= 1.0f) { + t = res[2], it = 1.0f - t; + px = it*it*x0 + 2*t*it*x1 + t*t*x2; + py = it*it*y0 + 2*t*it*y1 + t*t*y2; + dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); + if (dist2 < min_dist * min_dist) + min_dist = (float) STBTT_sqrt(dist2); + } + } + } + } + if (winding == 0) + min_dist = -min_dist; // if outside the shape, value is negative + val = onedge_value + pixel_dist_scale * min_dist; + if (val < 0) + val = 0; + else if (val > 255) + val = 255; + data[(y-iy0)*w+(x-ix0)] = (unsigned char) val; + } + } + STBTT_free(precompute, info->userdata); + STBTT_free(verts, info->userdata); + } + return data; +} + +STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) +{ + return stbtt_GetGlyphSDF(info, scale, stbtt_FindGlyphIndex(info, codepoint), padding, onedge_value, pixel_dist_scale, width, height, xoff, yoff); +} + +STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata) +{ + STBTT_free(bitmap, userdata); +} + +////////////////////////////////////////////////////////////////////////////// +// +// font name matching -- recommended not to use this +// + +// check if a utf8 string contains a prefix which is the utf16 string; if so return length of matching utf8 string +static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2) +{ + stbtt_int32 i=0; + + // convert utf16 to utf8 and compare the results while converting + while (len2) { + stbtt_uint16 ch = s2[0]*256 + s2[1]; + if (ch < 0x80) { + if (i >= len1) return -1; + if (s1[i++] != ch) return -1; + } else if (ch < 0x800) { + if (i+1 >= len1) return -1; + if (s1[i++] != 0xc0 + (ch >> 6)) return -1; + if (s1[i++] != 0x80 + (ch & 0x3f)) return -1; + } else if (ch >= 0xd800 && ch < 0xdc00) { + stbtt_uint32 c; + stbtt_uint16 ch2 = s2[2]*256 + s2[3]; + if (i+3 >= len1) return -1; + c = ((ch - 0xd800) << 10) + (ch2 - 0xdc00) + 0x10000; + if (s1[i++] != 0xf0 + (c >> 18)) return -1; + if (s1[i++] != 0x80 + ((c >> 12) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((c ) & 0x3f)) return -1; + s2 += 2; // plus another 2 below + len2 -= 2; + } else if (ch >= 0xdc00 && ch < 0xe000) { + return -1; + } else { + if (i+2 >= len1) return -1; + if (s1[i++] != 0xe0 + (ch >> 12)) return -1; + if (s1[i++] != 0x80 + ((ch >> 6) & 0x3f)) return -1; + if (s1[i++] != 0x80 + ((ch ) & 0x3f)) return -1; + } + s2 += 2; + len2 -= 2; + } + return i; +} + +static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2) +{ + return len1 == stbtt__CompareUTF8toUTF16_bigendian_prefix((stbtt_uint8*) s1, len1, (stbtt_uint8*) s2, len2); +} + +// returns results in whatever encoding you request... but note that 2-byte encodings +// will be BIG-ENDIAN... use stbtt_CompareUTF8toUTF16_bigendian() to compare +STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID) +{ + stbtt_int32 i,count,stringOffset; + stbtt_uint8 *fc = font->data; + stbtt_uint32 offset = font->fontstart; + stbtt_uint32 nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return NULL; + + count = ttUSHORT(fc+nm+2); + stringOffset = nm + ttUSHORT(fc+nm+4); + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + if (platformID == ttUSHORT(fc+loc+0) && encodingID == ttUSHORT(fc+loc+2) + && languageID == ttUSHORT(fc+loc+4) && nameID == ttUSHORT(fc+loc+6)) { + *length = ttUSHORT(fc+loc+8); + return (const char *) (fc+stringOffset+ttUSHORT(fc+loc+10)); + } + } + return NULL; +} + +static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id) +{ + stbtt_int32 i; + stbtt_int32 count = ttUSHORT(fc+nm+2); + stbtt_int32 stringOffset = nm + ttUSHORT(fc+nm+4); + + for (i=0; i < count; ++i) { + stbtt_uint32 loc = nm + 6 + 12 * i; + stbtt_int32 id = ttUSHORT(fc+loc+6); + if (id == target_id) { + // find the encoding + stbtt_int32 platform = ttUSHORT(fc+loc+0), encoding = ttUSHORT(fc+loc+2), language = ttUSHORT(fc+loc+4); + + // is this a Unicode encoding? + if (platform == 0 || (platform == 3 && encoding == 1) || (platform == 3 && encoding == 10)) { + stbtt_int32 slen = ttUSHORT(fc+loc+8); + stbtt_int32 off = ttUSHORT(fc+loc+10); + + // check if there's a prefix match + stbtt_int32 matchlen = stbtt__CompareUTF8toUTF16_bigendian_prefix(name, nlen, fc+stringOffset+off,slen); + if (matchlen >= 0) { + // check for target_id+1 immediately following, with same encoding & language + if (i+1 < count && ttUSHORT(fc+loc+12+6) == next_id && ttUSHORT(fc+loc+12) == platform && ttUSHORT(fc+loc+12+2) == encoding && ttUSHORT(fc+loc+12+4) == language) { + slen = ttUSHORT(fc+loc+12+8); + off = ttUSHORT(fc+loc+12+10); + if (slen == 0) { + if (matchlen == nlen) + return 1; + } else if (matchlen < nlen && name[matchlen] == ' ') { + ++matchlen; + if (stbtt_CompareUTF8toUTF16_bigendian_internal((char*) (name+matchlen), nlen-matchlen, (char*)(fc+stringOffset+off),slen)) + return 1; + } + } else { + // if nothing immediately following + if (matchlen == nlen) + return 1; + } + } + } + + // @TODO handle other encodings + } + } + return 0; +} + +static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags) +{ + stbtt_int32 nlen = (stbtt_int32) STBTT_strlen((char *) name); + stbtt_uint32 nm,hd; + if (!stbtt__isfont(fc+offset)) return 0; + + // check italics/bold/underline flags in macStyle... + if (flags) { + hd = stbtt__find_table(fc, offset, "head"); + if ((ttUSHORT(fc+hd+44) & 7) != (flags & 7)) return 0; + } + + nm = stbtt__find_table(fc, offset, "name"); + if (!nm) return 0; + + if (flags) { + // if we checked the macStyle flags, then just check the family and ignore the subfamily + if (stbtt__matchpair(fc, nm, name, nlen, 16, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, -1)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } else { + if (stbtt__matchpair(fc, nm, name, nlen, 16, 17)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 1, 2)) return 1; + if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; + } + + return 0; +} + +static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags) +{ + stbtt_int32 i; + for (i=0;;++i) { + stbtt_int32 off = stbtt_GetFontOffsetForIndex(font_collection, i); + if (off < 0) return off; + if (stbtt__matches((stbtt_uint8 *) font_collection, off, (stbtt_uint8*) name_utf8, flags)) + return off; + } +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wcast-qual" +#endif + +STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, + float pixel_height, unsigned char *pixels, int pw, int ph, + int first_char, int num_chars, stbtt_bakedchar *chardata) +{ + return stbtt_BakeFontBitmap_internal((unsigned char *) data, offset, pixel_height, pixels, pw, ph, first_char, num_chars, chardata); +} + +STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index) +{ + return stbtt_GetFontOffsetForIndex_internal((unsigned char *) data, index); +} + +STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data) +{ + return stbtt_GetNumberOfFonts_internal((unsigned char *) data); +} + +STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset) +{ + return stbtt_InitFont_internal(info, (unsigned char *) data, offset); +} + +STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags) +{ + return stbtt_FindMatchingFont_internal((unsigned char *) fontdata, (char *) name, flags); +} + +STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2) +{ + return stbtt_CompareUTF8toUTF16_bigendian_internal((char *) s1, len1, (char *) s2, len2); +} + +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif + +#endif // STB_TRUETYPE_IMPLEMENTATION + + +// FULL VERSION HISTORY +// +// 1.19 (2018-02-11) OpenType GPOS kerning (horizontal only), STBTT_fmod +// 1.18 (2018-01-29) add missing function +// 1.17 (2017-07-23) make more arguments const; doc fix +// 1.16 (2017-07-12) SDF support +// 1.15 (2017-03-03) make more arguments const +// 1.14 (2017-01-16) num-fonts-in-TTC function +// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts +// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual +// 1.11 (2016-04-02) fix unused-variable warning +// 1.10 (2016-04-02) allow user-defined fabs() replacement +// fix memory leak if fontsize=0.0 +// fix warning from duplicate typedef +// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use alloc userdata for PackFontRanges +// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges +// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; +// allow PackFontRanges to pack and render in separate phases; +// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); +// fixed an assert() bug in the new rasterizer +// replace assert() with STBTT_assert() in new rasterizer +// 1.06 (2015-07-14) performance improvements (~35% faster on x86 and x64 on test machine) +// also more precise AA rasterizer, except if shapes overlap +// remove need for STBTT_sort +// 1.05 (2015-04-15) fix misplaced definitions for STBTT_STATIC +// 1.04 (2015-04-15) typo in example +// 1.03 (2015-04-12) STBTT_STATIC, fix memory leak in new packing, various fixes +// 1.02 (2014-12-10) fix various warnings & compile issues w/ stb_rect_pack, C++ +// 1.01 (2014-12-08) fix subpixel position when oversampling to exactly match +// non-oversampled; STBTT_POINT_SIZE for packed case only +// 1.00 (2014-12-06) add new PackBegin etc. API, w/ support for oversampling +// 0.99 (2014-09-18) fix multiple bugs with subpixel rendering (ryg) +// 0.9 (2014-08-07) support certain mac/iOS fonts without an MS platformID +// 0.8b (2014-07-07) fix a warning +// 0.8 (2014-05-25) fix a few more warnings +// 0.7 (2013-09-25) bugfix: subpixel glyph bug fixed in 0.5 had come back +// 0.6c (2012-07-24) improve documentation +// 0.6b (2012-07-20) fix a few more warnings +// 0.6 (2012-07-17) fix warnings; added stbtt_ScaleForMappingEmToPixels, +// stbtt_GetFontBoundingBox, stbtt_IsGlyphEmpty +// 0.5 (2011-12-09) bugfixes: +// subpixel glyph renderer computed wrong bounding box +// first vertex of shape can be off-curve (FreeSans) +// 0.4b (2011-12-03) fixed an error in the font baking example +// 0.4 (2011-12-01) kerning, subpixel rendering (tor) +// bugfixes for: +// codepoint-to-glyph conversion using table fmt=12 +// codepoint-to-glyph conversion using table fmt=4 +// stbtt_GetBakedQuad with non-square texture (Zer) +// updated Hello World! sample to use kerning and subpixel +// fixed some warnings +// 0.3 (2009-06-24) cmap fmt=12, compound shapes (MM) +// userdata, malloc-from-userdata, non-zero fill (stb) +// 0.2 (2009-03-11) Fix unsigned/signed char warnings +// 0.1 (2009-03-09) First public release +// + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/CheatMenu/external/imgui/stb_image.h b/CheatMenu/external/imgui/stb_image.h new file mode 100644 index 0000000..6542ede --- /dev/null +++ b/CheatMenu/external/imgui/stb_image.h @@ -0,0 +1,7762 @@ +/* stb_image - v2.26 - public domain image loader - http://nothings.org/stb + no warranty implied; use at your own risk + + Do this: + #define STB_IMAGE_IMPLEMENTATION + before you include this file in *one* C or C++ file to create the implementation. + + // i.e. it should look like this: + #include ... + #include ... + #include ... + #define STB_IMAGE_IMPLEMENTATION + #include "stb_image.h" + + You can #define STBI_ASSERT(x) before the #include to avoid using assert.h. + And #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free + + + QUICK NOTES: + Primarily of interest to game developers and other people who can + avoid problematic images and only need the trivial interface + + JPEG baseline & progressive (12 bpc/arithmetic not supported, same as stock IJG lib) + PNG 1/2/4/8/16-bit-per-channel + + TGA (not sure what subset, if a subset) + BMP non-1bpp, non-RLE + PSD (composited view only, no extra channels, 8/16 bit-per-channel) + + GIF (*comp always reports as 4-channel) + HDR (radiance rgbE format) + PIC (Softimage PIC) + PNM (PPM and PGM binary only) + + Animated GIF still needs a proper API, but here's one way to do it: + http://gist.github.com/urraka/685d9a6340b26b830d49 + + - decode from memory or through FILE (define STBI_NO_STDIO to remove code) + - decode from arbitrary I/O callbacks + - SIMD acceleration on x86/x64 (SSE2) and ARM (NEON) + + Full documentation under "DOCUMENTATION" below. + + +LICENSE + + See end of file for license information. + +RECENT REVISION HISTORY: + + 2.26 (2020-07-13) many minor fixes + 2.25 (2020-02-02) fix warnings + 2.24 (2020-02-02) fix warnings; thread-local failure_reason and flip_vertically + 2.23 (2019-08-11) fix clang static analysis warning + 2.22 (2019-03-04) gif fixes, fix warnings + 2.21 (2019-02-25) fix typo in comment + 2.20 (2019-02-07) support utf8 filenames in Windows; fix warnings and platform ifdefs + 2.19 (2018-02-11) fix warning + 2.18 (2018-01-30) fix warnings + 2.17 (2018-01-29) bugfix, 1-bit BMP, 16-bitness query, fix warnings + 2.16 (2017-07-23) all functions have 16-bit variants; optimizations; bugfixes + 2.15 (2017-03-18) fix png-1,2,4; all Imagenet JPGs; no runtime SSE detection on GCC + 2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs + 2.13 (2016-12-04) experimental 16-bit API, only for PNG so far; fixes + 2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes + 2.11 (2016-04-02) 16-bit PNGS; enable SSE2 in non-gcc x64 + RGB-format JPEG; remove white matting in PSD; + allocate large structures on the stack; + correct channel count for PNG & BMP + 2.10 (2016-01-22) avoid warning introduced in 2.09 + 2.09 (2016-01-16) 16-bit TGA; comments in PNM files; STBI_REALLOC_SIZED + + See end of file for full revision history. + + + ============================ Contributors ========================= + + Image formats Extensions, features + Sean Barrett (jpeg, png, bmp) Jetro Lauha (stbi_info) + Nicolas Schulz (hdr, psd) Martin "SpartanJ" Golini (stbi_info) + Jonathan Dummer (tga) James "moose2000" Brown (iPhone PNG) + Jean-Marc Lienher (gif) Ben "Disch" Wenger (io callbacks) + Tom Seddon (pic) Omar Cornut (1/2/4-bit PNG) + Thatcher Ulrich (psd) Nicolas Guillemot (vertical flip) + Ken Miller (pgm, ppm) Richard Mitton (16-bit PSD) + github:urraka (animated gif) Junggon Kim (PNM comments) + Christopher Forseth (animated gif) Daniel Gibson (16-bit TGA) + socks-the-fox (16-bit PNG) + Jeremy Sawicki (handle all ImageNet JPGs) + Optimizations & bugfixes Mikhail Morozov (1-bit BMP) + Fabian "ryg" Giesen Anael Seghezzi (is-16-bit query) + Arseny Kapoulkine + John-Mark Allen + Carmelo J Fdez-Aguera + + Bug & warning fixes + Marc LeBlanc David Woo Guillaume George Martins Mozeiko + Christpher Lloyd Jerry Jansson Joseph Thomson Blazej Dariusz Roszkowski + Phil Jordan Dave Moore Roy Eltham + Hayaki Saito Nathan Reed Won Chun + Luke Graham Johan Duparc Nick Verigakis the Horde3D community + Thomas Ruf Ronny Chevalier github:rlyeh + Janez Zemva John Bartholomew Michal Cichon github:romigrou + Jonathan Blow Ken Hamada Tero Hanninen github:svdijk + Laurent Gomila Cort Stratton github:snagar + Aruelien Pocheville Sergio Gonzalez Thibault Reuille github:Zelex + Cass Everitt Ryamond Barbiero github:grim210 + Paul Du Bois Engin Manap Aldo Culquicondor github:sammyhw + Philipp Wiesemann Dale Weiler Oriol Ferrer Mesia github:phprus + Josh Tobin Matthew Gregan github:poppolopoppo + Julian Raschke Gregory Mullen Christian Floisand github:darealshinji + Baldur Karlsson Kevin Schmidt JR Smith github:Michaelangel007 + Brad Weinberger Matvey Cherevko [reserved] + Luca Sas Alexander Veselov Zack Middleton [reserved] + Ryan C. Gordon [reserved] [reserved] + DO NOT ADD YOUR NAME HERE + + To add your name to the credits, pick a random blank space in the middle and fill it. + 80% of merge conflicts on stb PRs are due to people adding their name at the end + of the credits. +*/ + +#ifndef STBI_INCLUDE_STB_IMAGE_H +#define STBI_INCLUDE_STB_IMAGE_H + +// DOCUMENTATION +// +// Limitations: +// - no 12-bit-per-channel JPEG +// - no JPEGs with arithmetic coding +// - GIF always returns *comp=4 +// +// Basic usage (see HDR discussion below for HDR usage): +// int x,y,n; +// unsigned char *data = stbi_load(filename, &x, &y, &n, 0); +// // ... process data if not NULL ... +// // ... x = width, y = height, n = # 8-bit components per pixel ... +// // ... replace '0' with '1'..'4' to force that many components per pixel +// // ... but 'n' will always be the number that it would have been if you said 0 +// stbi_image_free(data) +// +// Standard parameters: +// int *x -- outputs image width in pixels +// int *y -- outputs image height in pixels +// int *channels_in_file -- outputs # of image components in image file +// int desired_channels -- if non-zero, # of image components requested in result +// +// The return value from an image loader is an 'unsigned char *' which points +// to the pixel data, or NULL on an allocation failure or if the image is +// corrupt or invalid. The pixel data consists of *y scanlines of *x pixels, +// with each pixel consisting of N interleaved 8-bit components; the first +// pixel pointed to is top-left-most in the image. There is no padding between +// image scanlines or between pixels, regardless of format. The number of +// components N is 'desired_channels' if desired_channels is non-zero, or +// *channels_in_file otherwise. If desired_channels is non-zero, +// *channels_in_file has the number of components that _would_ have been +// output otherwise. E.g. if you set desired_channels to 4, you will always +// get RGBA output, but you can check *channels_in_file to see if it's trivially +// opaque because e.g. there were only 3 channels in the source image. +// +// An output image with N components has the following components interleaved +// in this order in each pixel: +// +// N=#comp components +// 1 grey +// 2 grey, alpha +// 3 red, green, blue +// 4 red, green, blue, alpha +// +// If image loading fails for any reason, the return value will be NULL, +// and *x, *y, *channels_in_file will be unchanged. The function +// stbi_failure_reason() can be queried for an extremely brief, end-user +// unfriendly explanation of why the load failed. Define STBI_NO_FAILURE_STRINGS +// to avoid compiling these strings at all, and STBI_FAILURE_USERMSG to get slightly +// more user-friendly ones. +// +// Paletted PNG, BMP, GIF, and PIC images are automatically depalettized. +// +// =========================================================================== +// +// UNICODE: +// +// If compiling for Windows and you wish to use Unicode filenames, compile +// with +// #define STBI_WINDOWS_UTF8 +// and pass utf8-encoded filenames. Call stbi_convert_wchar_to_utf8 to convert +// Windows wchar_t filenames to utf8. +// +// =========================================================================== +// +// Philosophy +// +// stb libraries are designed with the following priorities: +// +// 1. easy to use +// 2. easy to maintain +// 3. good performance +// +// Sometimes I let "good performance" creep up in priority over "easy to maintain", +// and for best performance I may provide less-easy-to-use APIs that give higher +// performance, in addition to the easy-to-use ones. Nevertheless, it's important +// to keep in mind that from the standpoint of you, a client of this library, +// all you care about is #1 and #3, and stb libraries DO NOT emphasize #3 above all. +// +// Some secondary priorities arise directly from the first two, some of which +// provide more explicit reasons why performance can't be emphasized. +// +// - Portable ("ease of use") +// - Small source code footprint ("easy to maintain") +// - No dependencies ("ease of use") +// +// =========================================================================== +// +// I/O callbacks +// +// I/O callbacks allow you to read from arbitrary sources, like packaged +// files or some other source. Data read from callbacks are processed +// through a small internal buffer (currently 128 bytes) to try to reduce +// overhead. +// +// The three functions you must define are "read" (reads some bytes of data), +// "skip" (skips some bytes of data), "eof" (reports if the stream is at the end). +// +// =========================================================================== +// +// SIMD support +// +// The JPEG decoder will try to automatically use SIMD kernels on x86 when +// supported by the compiler. For ARM Neon support, you must explicitly +// request it. +// +// (The old do-it-yourself SIMD API is no longer supported in the current +// code.) +// +// On x86, SSE2 will automatically be used when available based on a run-time +// test; if not, the generic C versions are used as a fall-back. On ARM targets, +// the typical path is to have separate builds for NEON and non-NEON devices +// (at least this is true for iOS and Android). Therefore, the NEON support is +// toggled by a build flag: define STBI_NEON to get NEON loops. +// +// If for some reason you do not want to use any of SIMD code, or if +// you have issues compiling it, you can disable it entirely by +// defining STBI_NO_SIMD. +// +// =========================================================================== +// +// HDR image support (disable by defining STBI_NO_HDR) +// +// stb_image supports loading HDR images in general, and currently the Radiance +// .HDR file format specifically. You can still load any file through the existing +// interface; if you attempt to load an HDR file, it will be automatically remapped +// to LDR, assuming gamma 2.2 and an arbitrary scale factor defaulting to 1; +// both of these constants can be reconfigured through this interface: +// +// stbi_hdr_to_ldr_gamma(2.2f); +// stbi_hdr_to_ldr_scale(1.0f); +// +// (note, do not use _inverse_ constants; stbi_image will invert them +// appropriately). +// +// Additionally, there is a new, parallel interface for loading files as +// (linear) floats to preserve the full dynamic range: +// +// float *data = stbi_loadf(filename, &x, &y, &n, 0); +// +// If you load LDR images through this interface, those images will +// be promoted to floating point values, run through the inverse of +// constants corresponding to the above: +// +// stbi_ldr_to_hdr_scale(1.0f); +// stbi_ldr_to_hdr_gamma(2.2f); +// +// Finally, given a filename (or an open file or memory block--see header +// file for details) containing image data, you can query for the "most +// appropriate" interface to use (that is, whether the image is HDR or +// not), using: +// +// stbi_is_hdr(char *filename); +// +// =========================================================================== +// +// iPhone PNG support: +// +// By default we convert iphone-formatted PNGs back to RGB, even though +// they are internally encoded differently. You can disable this conversion +// by calling stbi_convert_iphone_png_to_rgb(0), in which case +// you will always just get the native iphone "format" through (which +// is BGR stored in RGB). +// +// Call stbi_set_unpremultiply_on_load(1) as well to force a divide per +// pixel to remove any premultiplied alpha *only* if the image file explicitly +// says there's premultiplied data (currently only happens in iPhone images, +// and only if iPhone convert-to-rgb processing is on). +// +// =========================================================================== +// +// ADDITIONAL CONFIGURATION +// +// - You can suppress implementation of any of the decoders to reduce +// your code footprint by #defining one or more of the following +// symbols before creating the implementation. +// +// STBI_NO_JPEG +// STBI_NO_PNG +// STBI_NO_BMP +// STBI_NO_PSD +// STBI_NO_TGA +// STBI_NO_GIF +// STBI_NO_HDR +// STBI_NO_PIC +// STBI_NO_PNM (.ppm and .pgm) +// +// - You can request *only* certain decoders and suppress all other ones +// (this will be more forward-compatible, as addition of new decoders +// doesn't require you to disable them explicitly): +// +// STBI_ONLY_JPEG +// STBI_ONLY_PNG +// STBI_ONLY_BMP +// STBI_ONLY_PSD +// STBI_ONLY_TGA +// STBI_ONLY_GIF +// STBI_ONLY_HDR +// STBI_ONLY_PIC +// STBI_ONLY_PNM (.ppm and .pgm) +// +// - If you use STBI_NO_PNG (or _ONLY_ without PNG), and you still +// want the zlib decoder to be available, #define STBI_SUPPORT_ZLIB +// +// - If you define STBI_MAX_DIMENSIONS, stb_image will reject images greater +// than that size (in either width or height) without further processing. +// This is to let programs in the wild set an upper bound to prevent +// denial-of-service attacks on untrusted data, as one could generate a +// valid image of gigantic dimensions and force stb_image to allocate a +// huge block of memory and spend disproportionate time decoding it. By +// default this is set to (1 << 24), which is 16777216, but that's still +// very big. + +#ifndef STBI_NO_STDIO +#include +#endif // STBI_NO_STDIO + +#define STBI_VERSION 1 + +enum +{ + STBI_default = 0, // only used for desired_channels + + STBI_grey = 1, + STBI_grey_alpha = 2, + STBI_rgb = 3, + STBI_rgb_alpha = 4 +}; + +#include +typedef unsigned char stbi_uc; +typedef unsigned short stbi_us; + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef STBIDEF +#ifdef STB_IMAGE_STATIC +#define STBIDEF static +#else +#define STBIDEF extern +#endif +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// PRIMARY API - works on images of any type +// + +// +// load image by filename, open file, or memory buffer +// + +typedef struct +{ + int (*read) (void *user,char *data,int size); // fill 'data' with 'size' bytes. return number of bytes actually read + void (*skip) (void *user,int n); // skip the next 'n' bytes, or 'unget' the last -n bytes if negative + int (*eof) (void *user); // returns nonzero if we are at end of file/data +} stbi_io_callbacks; + +//////////////////////////////////// +// +// 8-bits-per-channel interface +// + +STBIDEF stbi_uc *stbi_load_from_memory (stbi_uc const *buffer, int len , int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk , void *user, int *x, int *y, int *channels_in_file, int desired_channels); + +#ifndef STBI_NO_STDIO +STBIDEF stbi_uc *stbi_load (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_uc *stbi_load_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels); +// for stbi_load_from_file, file pointer is left pointing immediately after image +#endif + +#ifndef STBI_NO_GIF +STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp); +#endif + +#ifdef STBI_WINDOWS_UTF8 +STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input); +#endif + +//////////////////////////////////// +// +// 16-bits-per-channel interface +// + +STBIDEF stbi_us *stbi_load_16_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels); + +#ifndef STBI_NO_STDIO +STBIDEF stbi_us *stbi_load_16 (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_us *stbi_load_from_file_16(FILE *f, int *x, int *y, int *channels_in_file, int desired_channels); +#endif + +//////////////////////////////////// +// +// float-per-channel interface +// +#ifndef STBI_NO_LINEAR + STBIDEF float *stbi_loadf_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels); + STBIDEF float *stbi_loadf_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels); + + #ifndef STBI_NO_STDIO + STBIDEF float *stbi_loadf (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels); + STBIDEF float *stbi_loadf_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels); + #endif +#endif + +#ifndef STBI_NO_HDR + STBIDEF void stbi_hdr_to_ldr_gamma(float gamma); + STBIDEF void stbi_hdr_to_ldr_scale(float scale); +#endif // STBI_NO_HDR + +#ifndef STBI_NO_LINEAR + STBIDEF void stbi_ldr_to_hdr_gamma(float gamma); + STBIDEF void stbi_ldr_to_hdr_scale(float scale); +#endif // STBI_NO_LINEAR + +// stbi_is_hdr is always defined, but always returns false if STBI_NO_HDR +STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user); +STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len); +#ifndef STBI_NO_STDIO +STBIDEF int stbi_is_hdr (char const *filename); +STBIDEF int stbi_is_hdr_from_file(FILE *f); +#endif // STBI_NO_STDIO + + +// get a VERY brief reason for failure +// on most compilers (and ALL modern mainstream compilers) this is threadsafe +STBIDEF const char *stbi_failure_reason (void); + +// free the loaded image -- this is just free() +STBIDEF void stbi_image_free (void *retval_from_stbi_load); + +// get image dimensions & components without fully decoding +STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp); +STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp); +STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len); +STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *clbk, void *user); + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_info (char const *filename, int *x, int *y, int *comp); +STBIDEF int stbi_info_from_file (FILE *f, int *x, int *y, int *comp); +STBIDEF int stbi_is_16_bit (char const *filename); +STBIDEF int stbi_is_16_bit_from_file(FILE *f); +#endif + + + +// for image formats that explicitly notate that they have premultiplied alpha, +// we just return the colors as stored in the file. set this flag to force +// unpremultiplication. results are undefined if the unpremultiply overflow. +STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply); + +// indicate whether we should process iphone images back to canonical format, +// or just pass them through "as-is" +STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert); + +// flip the image vertically, so the first pixel in the output array is the bottom left +STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip); + +// as above, but only applies to images loaded on the thread that calls the function +// this function is only available if your compiler supports thread-local variables; +// calling it will fail to link if your compiler doesn't +STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip); + +// ZLIB client - used by PNG, available for other purposes + +STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen); +STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header); +STBIDEF char *stbi_zlib_decode_malloc(const char *buffer, int len, int *outlen); +STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); + +STBIDEF char *stbi_zlib_decode_noheader_malloc(const char *buffer, int len, int *outlen); +STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); + + +#ifdef __cplusplus +} +#endif + +// +// +//// end header file ///////////////////////////////////////////////////// +#endif // STBI_INCLUDE_STB_IMAGE_H + +#ifdef STB_IMAGE_IMPLEMENTATION + +#if defined(STBI_ONLY_JPEG) || defined(STBI_ONLY_PNG) || defined(STBI_ONLY_BMP) \ + || defined(STBI_ONLY_TGA) || defined(STBI_ONLY_GIF) || defined(STBI_ONLY_PSD) \ + || defined(STBI_ONLY_HDR) || defined(STBI_ONLY_PIC) || defined(STBI_ONLY_PNM) \ + || defined(STBI_ONLY_ZLIB) + #ifndef STBI_ONLY_JPEG + #define STBI_NO_JPEG + #endif + #ifndef STBI_ONLY_PNG + #define STBI_NO_PNG + #endif + #ifndef STBI_ONLY_BMP + #define STBI_NO_BMP + #endif + #ifndef STBI_ONLY_PSD + #define STBI_NO_PSD + #endif + #ifndef STBI_ONLY_TGA + #define STBI_NO_TGA + #endif + #ifndef STBI_ONLY_GIF + #define STBI_NO_GIF + #endif + #ifndef STBI_ONLY_HDR + #define STBI_NO_HDR + #endif + #ifndef STBI_ONLY_PIC + #define STBI_NO_PIC + #endif + #ifndef STBI_ONLY_PNM + #define STBI_NO_PNM + #endif +#endif + +#if defined(STBI_NO_PNG) && !defined(STBI_SUPPORT_ZLIB) && !defined(STBI_NO_ZLIB) +#define STBI_NO_ZLIB +#endif + + +#include +#include // ptrdiff_t on osx +#include +#include +#include + +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) +#include // ldexp, pow +#endif + +#ifndef STBI_NO_STDIO +#include +#endif + +#ifndef STBI_ASSERT +#include +#define STBI_ASSERT(x) assert(x) +#endif + +#ifdef __cplusplus +#define STBI_EXTERN extern "C" +#else +#define STBI_EXTERN extern +#endif + + +#ifndef _MSC_VER + #ifdef __cplusplus + #define stbi_inline inline + #else + #define stbi_inline + #endif +#else + #define stbi_inline __forceinline +#endif + +#ifndef STBI_NO_THREAD_LOCALS + #if defined(__cplusplus) && __cplusplus >= 201103L + #define STBI_THREAD_LOCAL thread_local + #elif defined(__GNUC__) && __GNUC__ < 5 + #define STBI_THREAD_LOCAL __thread + #elif defined(_MSC_VER) + #define STBI_THREAD_LOCAL __declspec(thread) + #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__) + #define STBI_THREAD_LOCAL _Thread_local + #endif + + #ifndef STBI_THREAD_LOCAL + #if defined(__GNUC__) + #define STBI_THREAD_LOCAL __thread + #endif + #endif +#endif + +#ifdef _MSC_VER +typedef unsigned short stbi__uint16; +typedef signed short stbi__int16; +typedef unsigned int stbi__uint32; +typedef signed int stbi__int32; +#else +#include +typedef uint16_t stbi__uint16; +typedef int16_t stbi__int16; +typedef uint32_t stbi__uint32; +typedef int32_t stbi__int32; +#endif + +// should produce compiler error if size is wrong +typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1]; + +#ifdef _MSC_VER +#define STBI_NOTUSED(v) (void)(v) +#else +#define STBI_NOTUSED(v) (void)sizeof(v) +#endif + +#ifdef _MSC_VER +#define STBI_HAS_LROTL +#endif + +#ifdef STBI_HAS_LROTL + #define stbi_lrot(x,y) _lrotl(x,y) +#else + #define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (32 - (y)))) +#endif + +#if defined(STBI_MALLOC) && defined(STBI_FREE) && (defined(STBI_REALLOC) || defined(STBI_REALLOC_SIZED)) +// ok +#elif !defined(STBI_MALLOC) && !defined(STBI_FREE) && !defined(STBI_REALLOC) && !defined(STBI_REALLOC_SIZED) +// ok +#else +#error "Must define all or none of STBI_MALLOC, STBI_FREE, and STBI_REALLOC (or STBI_REALLOC_SIZED)." +#endif + +#ifndef STBI_MALLOC +#define STBI_MALLOC(sz) malloc(sz) +#define STBI_REALLOC(p,newsz) realloc(p,newsz) +#define STBI_FREE(p) free(p) +#endif + +#ifndef STBI_REALLOC_SIZED +#define STBI_REALLOC_SIZED(p,oldsz,newsz) STBI_REALLOC(p,newsz) +#endif + +// x86/x64 detection +#if defined(__x86_64__) || defined(_M_X64) +#define STBI__X64_TARGET +#elif defined(__i386) || defined(_M_IX86) +#define STBI__X86_TARGET +#endif + +#if defined(__GNUC__) && defined(STBI__X86_TARGET) && !defined(__SSE2__) && !defined(STBI_NO_SIMD) +// gcc doesn't support sse2 intrinsics unless you compile with -msse2, +// which in turn means it gets to use SSE2 everywhere. This is unfortunate, +// but previous attempts to provide the SSE2 functions with runtime +// detection caused numerous issues. The way architecture extensions are +// exposed in GCC/Clang is, sadly, not really suited for one-file libs. +// New behavior: if compiled with -msse2, we use SSE2 without any +// detection; if not, we don't use it at all. +#define STBI_NO_SIMD +#endif + +#if defined(__MINGW32__) && defined(STBI__X86_TARGET) && !defined(STBI_MINGW_ENABLE_SSE2) && !defined(STBI_NO_SIMD) +// Note that __MINGW32__ doesn't actually mean 32-bit, so we have to avoid STBI__X64_TARGET +// +// 32-bit MinGW wants ESP to be 16-byte aligned, but this is not in the +// Windows ABI and VC++ as well as Windows DLLs don't maintain that invariant. +// As a result, enabling SSE2 on 32-bit MinGW is dangerous when not +// simultaneously enabling "-mstackrealign". +// +// See https://github.com/nothings/stb/issues/81 for more information. +// +// So default to no SSE2 on 32-bit MinGW. If you've read this far and added +// -mstackrealign to your build settings, feel free to #define STBI_MINGW_ENABLE_SSE2. +#define STBI_NO_SIMD +#endif + +#if !defined(STBI_NO_SIMD) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET)) +#define STBI_SSE2 +#include + +#ifdef _MSC_VER + +#if _MSC_VER >= 1400 // not VC6 +#include // __cpuid +static int stbi__cpuid3(void) +{ + int info[4]; + __cpuid(info,1); + return info[3]; +} +#else +static int stbi__cpuid3(void) +{ + int res; + __asm { + mov eax,1 + cpuid + mov res,edx + } + return res; +} +#endif + +#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name + +#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2) +static int stbi__sse2_available(void) +{ + int info3 = stbi__cpuid3(); + return ((info3 >> 26) & 1) != 0; +} +#endif + +#else // assume GCC-style if not VC++ +#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16))) + +#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2) +static int stbi__sse2_available(void) +{ + // If we're even attempting to compile this on GCC/Clang, that means + // -msse2 is on, which means the compiler is allowed to use SSE2 + // instructions at will, and so are we. + return 1; +} +#endif + +#endif +#endif + +// ARM NEON +#if defined(STBI_NO_SIMD) && defined(STBI_NEON) +#undef STBI_NEON +#endif + +#ifdef STBI_NEON +#include +// assume GCC or Clang on ARM targets +#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16))) +#endif + +#ifndef STBI_SIMD_ALIGN +#define STBI_SIMD_ALIGN(type, name) type name +#endif + +#ifndef STBI_MAX_DIMENSIONS +#define STBI_MAX_DIMENSIONS (1 << 24) +#endif + +/////////////////////////////////////////////// +// +// stbi__context struct and start_xxx functions + +// stbi__context structure is our basic context used by all images, so it +// contains all the IO context, plus some basic image information +typedef struct +{ + stbi__uint32 img_x, img_y; + int img_n, img_out_n; + + stbi_io_callbacks io; + void *io_user_data; + + int read_from_callbacks; + int buflen; + stbi_uc buffer_start[128]; + int callback_already_read; + + stbi_uc *img_buffer, *img_buffer_end; + stbi_uc *img_buffer_original, *img_buffer_original_end; +} stbi__context; + + +static void stbi__refill_buffer(stbi__context *s); + +// initialize a memory-decode context +static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len) +{ + s->io.read = NULL; + s->read_from_callbacks = 0; + s->callback_already_read = 0; + s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer; + s->img_buffer_end = s->img_buffer_original_end = (stbi_uc *) buffer+len; +} + +// initialize a callback-based context +static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user) +{ + s->io = *c; + s->io_user_data = user; + s->buflen = sizeof(s->buffer_start); + s->read_from_callbacks = 1; + s->callback_already_read = 0; + s->img_buffer = s->img_buffer_original = s->buffer_start; + stbi__refill_buffer(s); + s->img_buffer_original_end = s->img_buffer_end; +} + +#ifndef STBI_NO_STDIO + +static int stbi__stdio_read(void *user, char *data, int size) +{ + return (int) fread(data,1,size,(FILE*) user); +} + +static void stbi__stdio_skip(void *user, int n) +{ + int ch; + fseek((FILE*) user, n, SEEK_CUR); + ch = fgetc((FILE*) user); /* have to read a byte to reset feof()'s flag */ + if (ch != EOF) { + ungetc(ch, (FILE *) user); /* push byte back onto stream if valid. */ + } +} + +static int stbi__stdio_eof(void *user) +{ + return feof((FILE*) user) || ferror((FILE *) user); +} + +static stbi_io_callbacks stbi__stdio_callbacks = +{ + stbi__stdio_read, + stbi__stdio_skip, + stbi__stdio_eof, +}; + +static void stbi__start_file(stbi__context *s, FILE *f) +{ + stbi__start_callbacks(s, &stbi__stdio_callbacks, (void *) f); +} + +//static void stop_file(stbi__context *s) { } + +#endif // !STBI_NO_STDIO + +static void stbi__rewind(stbi__context *s) +{ + // conceptually rewind SHOULD rewind to the beginning of the stream, + // but we just rewind to the beginning of the initial buffer, because + // we only use it after doing 'test', which only ever looks at at most 92 bytes + s->img_buffer = s->img_buffer_original; + s->img_buffer_end = s->img_buffer_original_end; +} + +enum +{ + STBI_ORDER_RGB, + STBI_ORDER_BGR +}; + +typedef struct +{ + int bits_per_channel; + int num_channels; + int channel_order; +} stbi__result_info; + +#ifndef STBI_NO_JPEG +static int stbi__jpeg_test(stbi__context *s); +static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PNG +static int stbi__png_test(stbi__context *s); +static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp); +static int stbi__png_is16(stbi__context *s); +#endif + +#ifndef STBI_NO_BMP +static int stbi__bmp_test(stbi__context *s); +static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_TGA +static int stbi__tga_test(stbi__context *s); +static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PSD +static int stbi__psd_test(stbi__context *s); +static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc); +static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp); +static int stbi__psd_is16(stbi__context *s); +#endif + +#ifndef STBI_NO_HDR +static int stbi__hdr_test(stbi__context *s); +static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PIC +static int stbi__pic_test(stbi__context *s); +static void *stbi__pic_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_GIF +static int stbi__gif_test(stbi__context *s); +static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp); +static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PNM +static int stbi__pnm_test(stbi__context *s); +static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +static +#ifdef STBI_THREAD_LOCAL +STBI_THREAD_LOCAL +#endif +const char *stbi__g_failure_reason; + +STBIDEF const char *stbi_failure_reason(void) +{ + return stbi__g_failure_reason; +} + +#ifndef STBI_NO_FAILURE_STRINGS +static int stbi__err(const char *str) +{ + stbi__g_failure_reason = str; + return 0; +} +#endif + +static void *stbi__malloc(size_t size) +{ + return STBI_MALLOC(size); +} + +// stb_image uses ints pervasively, including for offset calculations. +// therefore the largest decoded image size we can support with the +// current code, even on 64-bit targets, is INT_MAX. this is not a +// significant limitation for the intended use case. +// +// we do, however, need to make sure our size calculations don't +// overflow. hence a few helper functions for size calculations that +// multiply integers together, making sure that they're non-negative +// and no overflow occurs. + +// return 1 if the sum is valid, 0 on overflow. +// negative terms are considered invalid. +static int stbi__addsizes_valid(int a, int b) +{ + if (b < 0) return 0; + // now 0 <= b <= INT_MAX, hence also + // 0 <= INT_MAX - b <= INTMAX. + // And "a + b <= INT_MAX" (which might overflow) is the + // same as a <= INT_MAX - b (no overflow) + return a <= INT_MAX - b; +} + +// returns 1 if the product is valid, 0 on overflow. +// negative factors are considered invalid. +static int stbi__mul2sizes_valid(int a, int b) +{ + if (a < 0 || b < 0) return 0; + if (b == 0) return 1; // mul-by-0 is always safe + // portable way to check for no overflows in a*b + return a <= INT_MAX/b; +} + +#if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR) +// returns 1 if "a*b + add" has no negative terms/factors and doesn't overflow +static int stbi__mad2sizes_valid(int a, int b, int add) +{ + return stbi__mul2sizes_valid(a, b) && stbi__addsizes_valid(a*b, add); +} +#endif + +// returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow +static int stbi__mad3sizes_valid(int a, int b, int c, int add) +{ + return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) && + stbi__addsizes_valid(a*b*c, add); +} + +// returns 1 if "a*b*c*d + add" has no negative terms/factors and doesn't overflow +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) +static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add) +{ + return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) && + stbi__mul2sizes_valid(a*b*c, d) && stbi__addsizes_valid(a*b*c*d, add); +} +#endif + +#if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR) +// mallocs with size overflow checking +static void *stbi__malloc_mad2(int a, int b, int add) +{ + if (!stbi__mad2sizes_valid(a, b, add)) return NULL; + return stbi__malloc(a*b + add); +} +#endif + +static void *stbi__malloc_mad3(int a, int b, int c, int add) +{ + if (!stbi__mad3sizes_valid(a, b, c, add)) return NULL; + return stbi__malloc(a*b*c + add); +} + +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) +static void *stbi__malloc_mad4(int a, int b, int c, int d, int add) +{ + if (!stbi__mad4sizes_valid(a, b, c, d, add)) return NULL; + return stbi__malloc(a*b*c*d + add); +} +#endif + +// stbi__err - error +// stbi__errpf - error returning pointer to float +// stbi__errpuc - error returning pointer to unsigned char + +#ifdef STBI_NO_FAILURE_STRINGS + #define stbi__err(x,y) 0 +#elif defined(STBI_FAILURE_USERMSG) + #define stbi__err(x,y) stbi__err(y) +#else + #define stbi__err(x,y) stbi__err(x) +#endif + +#define stbi__errpf(x,y) ((float *)(size_t) (stbi__err(x,y)?NULL:NULL)) +#define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL)) + +STBIDEF void stbi_image_free(void *retval_from_stbi_load) +{ + STBI_FREE(retval_from_stbi_load); +} + +#ifndef STBI_NO_LINEAR +static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp); +#endif + +#ifndef STBI_NO_HDR +static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp); +#endif + +static int stbi__vertically_flip_on_load_global = 0; + +STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip) +{ + stbi__vertically_flip_on_load_global = flag_true_if_should_flip; +} + +#ifndef STBI_THREAD_LOCAL +#define stbi__vertically_flip_on_load stbi__vertically_flip_on_load_global +#else +static STBI_THREAD_LOCAL int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set; + +STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip) +{ + stbi__vertically_flip_on_load_local = flag_true_if_should_flip; + stbi__vertically_flip_on_load_set = 1; +} + +#define stbi__vertically_flip_on_load (stbi__vertically_flip_on_load_set \ + ? stbi__vertically_flip_on_load_local \ + : stbi__vertically_flip_on_load_global) +#endif // STBI_THREAD_LOCAL + +static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc) +{ + memset(ri, 0, sizeof(*ri)); // make sure it's initialized if we add new fields + ri->bits_per_channel = 8; // default is 8 so most paths don't have to be changed + ri->channel_order = STBI_ORDER_RGB; // all current input & output are this, but this is here so we can add BGR order + ri->num_channels = 0; + + #ifndef STBI_NO_JPEG + if (stbi__jpeg_test(s)) return stbi__jpeg_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_PNG + if (stbi__png_test(s)) return stbi__png_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_BMP + if (stbi__bmp_test(s)) return stbi__bmp_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_GIF + if (stbi__gif_test(s)) return stbi__gif_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_PSD + if (stbi__psd_test(s)) return stbi__psd_load(s,x,y,comp,req_comp, ri, bpc); + #else + STBI_NOTUSED(bpc); + #endif + #ifndef STBI_NO_PIC + if (stbi__pic_test(s)) return stbi__pic_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_PNM + if (stbi__pnm_test(s)) return stbi__pnm_load(s,x,y,comp,req_comp, ri); + #endif + + #ifndef STBI_NO_HDR + if (stbi__hdr_test(s)) { + float *hdr = stbi__hdr_load(s, x,y,comp,req_comp, ri); + return stbi__hdr_to_ldr(hdr, *x, *y, req_comp ? req_comp : *comp); + } + #endif + + #ifndef STBI_NO_TGA + // test tga last because it's a crappy test! + if (stbi__tga_test(s)) + return stbi__tga_load(s,x,y,comp,req_comp, ri); + #endif + + return stbi__errpuc("unknown image type", "Image not of any known type, or corrupt"); +} + +static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels) +{ + int i; + int img_len = w * h * channels; + stbi_uc *reduced; + + reduced = (stbi_uc *) stbi__malloc(img_len); + if (reduced == NULL) return stbi__errpuc("outofmem", "Out of memory"); + + for (i = 0; i < img_len; ++i) + reduced[i] = (stbi_uc)((orig[i] >> 8) & 0xFF); // top half of each byte is sufficient approx of 16->8 bit scaling + + STBI_FREE(orig); + return reduced; +} + +static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels) +{ + int i; + int img_len = w * h * channels; + stbi__uint16 *enlarged; + + enlarged = (stbi__uint16 *) stbi__malloc(img_len*2); + if (enlarged == NULL) return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory"); + + for (i = 0; i < img_len; ++i) + enlarged[i] = (stbi__uint16)((orig[i] << 8) + orig[i]); // replicate to high and low byte, maps 0->0, 255->0xffff + + STBI_FREE(orig); + return enlarged; +} + +static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel) +{ + int row; + size_t bytes_per_row = (size_t)w * bytes_per_pixel; + stbi_uc temp[2048]; + stbi_uc *bytes = (stbi_uc *)image; + + for (row = 0; row < (h>>1); row++) { + stbi_uc *row0 = bytes + row*bytes_per_row; + stbi_uc *row1 = bytes + (h - row - 1)*bytes_per_row; + // swap row0 with row1 + size_t bytes_left = bytes_per_row; + while (bytes_left) { + size_t bytes_copy = (bytes_left < sizeof(temp)) ? bytes_left : sizeof(temp); + memcpy(temp, row0, bytes_copy); + memcpy(row0, row1, bytes_copy); + memcpy(row1, temp, bytes_copy); + row0 += bytes_copy; + row1 += bytes_copy; + bytes_left -= bytes_copy; + } + } +} + +#ifndef STBI_NO_GIF +static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel) +{ + int slice; + int slice_size = w * h * bytes_per_pixel; + + stbi_uc *bytes = (stbi_uc *)image; + for (slice = 0; slice < z; ++slice) { + stbi__vertical_flip(bytes, w, h, bytes_per_pixel); + bytes += slice_size; + } +} +#endif + +static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi__result_info ri; + void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 8); + + if (result == NULL) + return NULL; + + // it is the responsibility of the loaders to make sure we get either 8 or 16 bit. + STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16); + + if (ri.bits_per_channel != 8) { + result = stbi__convert_16_to_8((stbi__uint16 *) result, *x, *y, req_comp == 0 ? *comp : req_comp); + ri.bits_per_channel = 8; + } + + // @TODO: move stbi__convert_format to here + + if (stbi__vertically_flip_on_load) { + int channels = req_comp ? req_comp : *comp; + stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi_uc)); + } + + return (unsigned char *) result; +} + +static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi__result_info ri; + void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 16); + + if (result == NULL) + return NULL; + + // it is the responsibility of the loaders to make sure we get either 8 or 16 bit. + STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16); + + if (ri.bits_per_channel != 16) { + result = stbi__convert_8_to_16((stbi_uc *) result, *x, *y, req_comp == 0 ? *comp : req_comp); + ri.bits_per_channel = 16; + } + + // @TODO: move stbi__convert_format16 to here + // @TODO: special case RGB-to-Y (and RGBA-to-YA) for 8-bit-to-16-bit case to keep more precision + + if (stbi__vertically_flip_on_load) { + int channels = req_comp ? req_comp : *comp; + stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi__uint16)); + } + + return (stbi__uint16 *) result; +} + +#if !defined(STBI_NO_HDR) && !defined(STBI_NO_LINEAR) +static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp) +{ + if (stbi__vertically_flip_on_load && result != NULL) { + int channels = req_comp ? req_comp : *comp; + stbi__vertical_flip(result, *x, *y, channels * sizeof(float)); + } +} +#endif + +#ifndef STBI_NO_STDIO + +#if defined(_MSC_VER) && defined(STBI_WINDOWS_UTF8) +STBI_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide); +STBI_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default); +#endif + +#if defined(_MSC_VER) && defined(STBI_WINDOWS_UTF8) +STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input) +{ + return WideCharToMultiByte(65001 /* UTF8 */, 0, input, -1, buffer, (int) bufferlen, NULL, NULL); +} +#endif + +static FILE *stbi__fopen(char const *filename, char const *mode) +{ + FILE *f; +#if defined(_MSC_VER) && defined(STBI_WINDOWS_UTF8) + wchar_t wMode[64]; + wchar_t wFilename[1024]; + if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, filename, -1, wFilename, sizeof(wFilename))) + return 0; + + if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, mode, -1, wMode, sizeof(wMode))) + return 0; + +#if _MSC_VER >= 1400 + if (0 != _wfopen_s(&f, wFilename, wMode)) + f = 0; +#else + f = _wfopen(wFilename, wMode); +#endif + +#elif defined(_MSC_VER) && _MSC_VER >= 1400 + if (0 != fopen_s(&f, filename, mode)) + f=0; +#else + f = fopen(filename, mode); +#endif + return f; +} + + +STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + unsigned char *result; + if (!f) return stbi__errpuc("can't fopen", "Unable to open file"); + result = stbi_load_from_file(f,x,y,comp,req_comp); + fclose(f); + return result; +} + +STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + unsigned char *result; + stbi__context s; + stbi__start_file(&s,f); + result = stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp); + if (result) { + // need to 'unget' all the characters in the IO buffer + fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR); + } + return result; +} + +STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + stbi__uint16 *result; + stbi__context s; + stbi__start_file(&s,f); + result = stbi__load_and_postprocess_16bit(&s,x,y,comp,req_comp); + if (result) { + // need to 'unget' all the characters in the IO buffer + fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR); + } + return result; +} + +STBIDEF stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + stbi__uint16 *result; + if (!f) return (stbi_us *) stbi__errpuc("can't fopen", "Unable to open file"); + result = stbi_load_from_file_16(f,x,y,comp,req_comp); + fclose(f); + return result; +} + + +#endif //!STBI_NO_STDIO + +STBIDEF stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__load_and_postprocess_16bit(&s,x,y,channels_in_file,desired_channels); +} + +STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *)clbk, user); + return stbi__load_and_postprocess_16bit(&s,x,y,channels_in_file,desired_channels); +} + +STBIDEF stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp); +} + +STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp); +} + +#ifndef STBI_NO_GIF +STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp) +{ + unsigned char *result; + stbi__context s; + stbi__start_mem(&s,buffer,len); + + result = (unsigned char*) stbi__load_gif_main(&s, delays, x, y, z, comp, req_comp); + if (stbi__vertically_flip_on_load) { + stbi__vertical_flip_slices( result, *x, *y, *z, *comp ); + } + + return result; +} +#endif + +#ifndef STBI_NO_LINEAR +static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + unsigned char *data; + #ifndef STBI_NO_HDR + if (stbi__hdr_test(s)) { + stbi__result_info ri; + float *hdr_data = stbi__hdr_load(s,x,y,comp,req_comp, &ri); + if (hdr_data) + stbi__float_postprocess(hdr_data,x,y,comp,req_comp); + return hdr_data; + } + #endif + data = stbi__load_and_postprocess_8bit(s, x, y, comp, req_comp); + if (data) + return stbi__ldr_to_hdr(data, *x, *y, req_comp ? req_comp : *comp); + return stbi__errpf("unknown image type", "Image not of any known type, or corrupt"); +} + +STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} + +STBIDEF float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} + +#ifndef STBI_NO_STDIO +STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + float *result; + FILE *f = stbi__fopen(filename, "rb"); + if (!f) return stbi__errpf("can't fopen", "Unable to open file"); + result = stbi_loadf_from_file(f,x,y,comp,req_comp); + fclose(f); + return result; +} + +STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_file(&s,f); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} +#endif // !STBI_NO_STDIO + +#endif // !STBI_NO_LINEAR + +// these is-hdr-or-not is defined independent of whether STBI_NO_LINEAR is +// defined, for API simplicity; if STBI_NO_LINEAR is defined, it always +// reports false! + +STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len) +{ + #ifndef STBI_NO_HDR + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__hdr_test(&s); + #else + STBI_NOTUSED(buffer); + STBI_NOTUSED(len); + return 0; + #endif +} + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_is_hdr (char const *filename) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result=0; + if (f) { + result = stbi_is_hdr_from_file(f); + fclose(f); + } + return result; +} + +STBIDEF int stbi_is_hdr_from_file(FILE *f) +{ + #ifndef STBI_NO_HDR + long pos = ftell(f); + int res; + stbi__context s; + stbi__start_file(&s,f); + res = stbi__hdr_test(&s); + fseek(f, pos, SEEK_SET); + return res; + #else + STBI_NOTUSED(f); + return 0; + #endif +} +#endif // !STBI_NO_STDIO + +STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user) +{ + #ifndef STBI_NO_HDR + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__hdr_test(&s); + #else + STBI_NOTUSED(clbk); + STBI_NOTUSED(user); + return 0; + #endif +} + +#ifndef STBI_NO_LINEAR +static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f; + +STBIDEF void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; } +STBIDEF void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; } +#endif + +static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f; + +STBIDEF void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; } +STBIDEF void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; } + + +////////////////////////////////////////////////////////////////////////////// +// +// Common code used by all image loaders +// + +enum +{ + STBI__SCAN_load=0, + STBI__SCAN_type, + STBI__SCAN_header +}; + +static void stbi__refill_buffer(stbi__context *s) +{ + int n = (s->io.read)(s->io_user_data,(char*)s->buffer_start,s->buflen); + s->callback_already_read += (int) (s->img_buffer - s->img_buffer_original); + if (n == 0) { + // at end of file, treat same as if from memory, but need to handle case + // where s->img_buffer isn't pointing to safe memory, e.g. 0-byte file + s->read_from_callbacks = 0; + s->img_buffer = s->buffer_start; + s->img_buffer_end = s->buffer_start+1; + *s->img_buffer = 0; + } else { + s->img_buffer = s->buffer_start; + s->img_buffer_end = s->buffer_start + n; + } +} + +stbi_inline static stbi_uc stbi__get8(stbi__context *s) +{ + if (s->img_buffer < s->img_buffer_end) + return *s->img_buffer++; + if (s->read_from_callbacks) { + stbi__refill_buffer(s); + return *s->img_buffer++; + } + return 0; +} + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_HDR) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM) +// nothing +#else +stbi_inline static int stbi__at_eof(stbi__context *s) +{ + if (s->io.read) { + if (!(s->io.eof)(s->io_user_data)) return 0; + // if feof() is true, check if buffer = end + // special case: we've only got the special 0 character at the end + if (s->read_from_callbacks == 0) return 1; + } + + return s->img_buffer >= s->img_buffer_end; +} +#endif + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) +// nothing +#else +static void stbi__skip(stbi__context *s, int n) +{ + if (n == 0) return; // already there! + if (n < 0) { + s->img_buffer = s->img_buffer_end; + return; + } + if (s->io.read) { + int blen = (int) (s->img_buffer_end - s->img_buffer); + if (blen < n) { + s->img_buffer = s->img_buffer_end; + (s->io.skip)(s->io_user_data, n - blen); + return; + } + } + s->img_buffer += n; +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_TGA) && defined(STBI_NO_HDR) && defined(STBI_NO_PNM) +// nothing +#else +static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n) +{ + if (s->io.read) { + int blen = (int) (s->img_buffer_end - s->img_buffer); + if (blen < n) { + int res, count; + + memcpy(buffer, s->img_buffer, blen); + + count = (s->io.read)(s->io_user_data, (char*) buffer + blen, n - blen); + res = (count == (n-blen)); + s->img_buffer = s->img_buffer_end; + return res; + } + } + + if (s->img_buffer+n <= s->img_buffer_end) { + memcpy(buffer, s->img_buffer, n); + s->img_buffer += n; + return 1; + } else + return 0; +} +#endif + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC) +// nothing +#else +static int stbi__get16be(stbi__context *s) +{ + int z = stbi__get8(s); + return (z << 8) + stbi__get8(s); +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC) +// nothing +#else +static stbi__uint32 stbi__get32be(stbi__context *s) +{ + stbi__uint32 z = stbi__get16be(s); + return (z << 16) + stbi__get16be(s); +} +#endif + +#if defined(STBI_NO_BMP) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) +// nothing +#else +static int stbi__get16le(stbi__context *s) +{ + int z = stbi__get8(s); + return z + (stbi__get8(s) << 8); +} +#endif + +#ifndef STBI_NO_BMP +static stbi__uint32 stbi__get32le(stbi__context *s) +{ + stbi__uint32 z = stbi__get16le(s); + return z + (stbi__get16le(s) << 16); +} +#endif + +#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM) +// nothing +#else +////////////////////////////////////////////////////////////////////////////// +// +// generic converter from built-in img_n to req_comp +// individual types do this automatically as much as possible (e.g. jpeg +// does all cases internally since it needs to colorspace convert anyway, +// and it never has alpha, so very few cases ). png can automatically +// interleave an alpha=255 channel, but falls back to this for other cases +// +// assume data buffer is malloced, so malloc a new one and free that one +// only failure mode is malloc failing + +static stbi_uc stbi__compute_y(int r, int g, int b) +{ + return (stbi_uc) (((r*77) + (g*150) + (29*b)) >> 8); +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM) +// nothing +#else +static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y) +{ + int i,j; + unsigned char *good; + + if (req_comp == img_n) return data; + STBI_ASSERT(req_comp >= 1 && req_comp <= 4); + + good = (unsigned char *) stbi__malloc_mad3(req_comp, x, y, 0); + if (good == NULL) { + STBI_FREE(data); + return stbi__errpuc("outofmem", "Out of memory"); + } + + for (j=0; j < (int) y; ++j) { + unsigned char *src = data + j * x * img_n ; + unsigned char *dest = good + j * x * req_comp; + + #define STBI__COMBO(a,b) ((a)*8+(b)) + #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) + // convert source image with img_n components to one with req_comp components; + // avoid switch per pixel, so use switch per scanline and massive macros + switch (STBI__COMBO(img_n, req_comp)) { + STBI__CASE(1,2) { dest[0]=src[0]; dest[1]=255; } break; + STBI__CASE(1,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(1,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=255; } break; + STBI__CASE(2,1) { dest[0]=src[0]; } break; + STBI__CASE(2,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(2,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=src[1]; } break; + STBI__CASE(3,4) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2];dest[3]=255; } break; + STBI__CASE(3,1) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); } break; + STBI__CASE(3,2) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); dest[1] = 255; } break; + STBI__CASE(4,1) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); } break; + STBI__CASE(4,2) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); dest[1] = src[3]; } break; + STBI__CASE(4,3) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2]; } break; + default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return stbi__errpuc("unsupported", "Unsupported format conversion"); + } + #undef STBI__CASE + } + + STBI_FREE(data); + return good; +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) +// nothing +#else +static stbi__uint16 stbi__compute_y_16(int r, int g, int b) +{ + return (stbi__uint16) (((r*77) + (g*150) + (29*b)) >> 8); +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) +// nothing +#else +static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y) +{ + int i,j; + stbi__uint16 *good; + + if (req_comp == img_n) return data; + STBI_ASSERT(req_comp >= 1 && req_comp <= 4); + + good = (stbi__uint16 *) stbi__malloc(req_comp * x * y * 2); + if (good == NULL) { + STBI_FREE(data); + return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory"); + } + + for (j=0; j < (int) y; ++j) { + stbi__uint16 *src = data + j * x * img_n ; + stbi__uint16 *dest = good + j * x * req_comp; + + #define STBI__COMBO(a,b) ((a)*8+(b)) + #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) + // convert source image with img_n components to one with req_comp components; + // avoid switch per pixel, so use switch per scanline and massive macros + switch (STBI__COMBO(img_n, req_comp)) { + STBI__CASE(1,2) { dest[0]=src[0]; dest[1]=0xffff; } break; + STBI__CASE(1,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(1,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=0xffff; } break; + STBI__CASE(2,1) { dest[0]=src[0]; } break; + STBI__CASE(2,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(2,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=src[1]; } break; + STBI__CASE(3,4) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2];dest[3]=0xffff; } break; + STBI__CASE(3,1) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); } break; + STBI__CASE(3,2) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); dest[1] = 0xffff; } break; + STBI__CASE(4,1) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); } break; + STBI__CASE(4,2) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); dest[1] = src[3]; } break; + STBI__CASE(4,3) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2]; } break; + default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return (stbi__uint16*) stbi__errpuc("unsupported", "Unsupported format conversion"); + } + #undef STBI__CASE + } + + STBI_FREE(data); + return good; +} +#endif + +#ifndef STBI_NO_LINEAR +static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp) +{ + int i,k,n; + float *output; + if (!data) return NULL; + output = (float *) stbi__malloc_mad4(x, y, comp, sizeof(float), 0); + if (output == NULL) { STBI_FREE(data); return stbi__errpf("outofmem", "Out of memory"); } + // compute number of non-alpha components + if (comp & 1) n = comp; else n = comp-1; + for (i=0; i < x*y; ++i) { + for (k=0; k < n; ++k) { + output[i*comp + k] = (float) (pow(data[i*comp+k]/255.0f, stbi__l2h_gamma) * stbi__l2h_scale); + } + } + if (n < comp) { + for (i=0; i < x*y; ++i) { + output[i*comp + n] = data[i*comp + n]/255.0f; + } + } + STBI_FREE(data); + return output; +} +#endif + +#ifndef STBI_NO_HDR +#define stbi__float2int(x) ((int) (x)) +static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp) +{ + int i,k,n; + stbi_uc *output; + if (!data) return NULL; + output = (stbi_uc *) stbi__malloc_mad3(x, y, comp, 0); + if (output == NULL) { STBI_FREE(data); return stbi__errpuc("outofmem", "Out of memory"); } + // compute number of non-alpha components + if (comp & 1) n = comp; else n = comp-1; + for (i=0; i < x*y; ++i) { + for (k=0; k < n; ++k) { + float z = (float) pow(data[i*comp+k]*stbi__h2l_scale_i, stbi__h2l_gamma_i) * 255 + 0.5f; + if (z < 0) z = 0; + if (z > 255) z = 255; + output[i*comp + k] = (stbi_uc) stbi__float2int(z); + } + if (k < comp) { + float z = data[i*comp+k] * 255 + 0.5f; + if (z < 0) z = 0; + if (z > 255) z = 255; + output[i*comp + k] = (stbi_uc) stbi__float2int(z); + } + } + STBI_FREE(data); + return output; +} +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// "baseline" JPEG/JFIF decoder +// +// simple implementation +// - doesn't support delayed output of y-dimension +// - simple interface (only one output format: 8-bit interleaved RGB) +// - doesn't try to recover corrupt jpegs +// - doesn't allow partial loading, loading multiple at once +// - still fast on x86 (copying globals into locals doesn't help x86) +// - allocates lots of intermediate memory (full size of all components) +// - non-interleaved case requires this anyway +// - allows good upsampling (see next) +// high-quality +// - upsampled channels are bilinearly interpolated, even across blocks +// - quality integer IDCT derived from IJG's 'slow' +// performance +// - fast huffman; reasonable integer IDCT +// - some SIMD kernels for common paths on targets with SSE2/NEON +// - uses a lot of intermediate memory, could cache poorly + +#ifndef STBI_NO_JPEG + +// huffman decoding acceleration +#define FAST_BITS 9 // larger handles more cases; smaller stomps less cache + +typedef struct +{ + stbi_uc fast[1 << FAST_BITS]; + // weirdly, repacking this into AoS is a 10% speed loss, instead of a win + stbi__uint16 code[256]; + stbi_uc values[256]; + stbi_uc size[257]; + unsigned int maxcode[18]; + int delta[17]; // old 'firstsymbol' - old 'firstcode' +} stbi__huffman; + +typedef struct +{ + stbi__context *s; + stbi__huffman huff_dc[4]; + stbi__huffman huff_ac[4]; + stbi__uint16 dequant[4][64]; + stbi__int16 fast_ac[4][1 << FAST_BITS]; + +// sizes for components, interleaved MCUs + int img_h_max, img_v_max; + int img_mcu_x, img_mcu_y; + int img_mcu_w, img_mcu_h; + +// definition of jpeg image component + struct + { + int id; + int h,v; + int tq; + int hd,ha; + int dc_pred; + + int x,y,w2,h2; + stbi_uc *data; + void *raw_data, *raw_coeff; + stbi_uc *linebuf; + short *coeff; // progressive only + int coeff_w, coeff_h; // number of 8x8 coefficient blocks + } img_comp[4]; + + stbi__uint32 code_buffer; // jpeg entropy-coded buffer + int code_bits; // number of valid bits + unsigned char marker; // marker seen while filling entropy buffer + int nomore; // flag if we saw a marker so must stop + + int progressive; + int spec_start; + int spec_end; + int succ_high; + int succ_low; + int eob_run; + int jfif; + int app14_color_transform; // Adobe APP14 tag + int rgb; + + int scan_n, order[4]; + int restart_interval, todo; + +// kernels + void (*idct_block_kernel)(stbi_uc *out, int out_stride, short data[64]); + void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step); + stbi_uc *(*resample_row_hv_2_kernel)(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs); +} stbi__jpeg; + +static int stbi__build_huffman(stbi__huffman *h, int *count) +{ + int i,j,k=0; + unsigned int code; + // build size list for each symbol (from JPEG spec) + for (i=0; i < 16; ++i) + for (j=0; j < count[i]; ++j) + h->size[k++] = (stbi_uc) (i+1); + h->size[k] = 0; + + // compute actual symbols (from jpeg spec) + code = 0; + k = 0; + for(j=1; j <= 16; ++j) { + // compute delta to add to code to compute symbol id + h->delta[j] = k - code; + if (h->size[k] == j) { + while (h->size[k] == j) + h->code[k++] = (stbi__uint16) (code++); + if (code-1 >= (1u << j)) return stbi__err("bad code lengths","Corrupt JPEG"); + } + // compute largest code + 1 for this size, preshifted as needed later + h->maxcode[j] = code << (16-j); + code <<= 1; + } + h->maxcode[j] = 0xffffffff; + + // build non-spec acceleration table; 255 is flag for not-accelerated + memset(h->fast, 255, 1 << FAST_BITS); + for (i=0; i < k; ++i) { + int s = h->size[i]; + if (s <= FAST_BITS) { + int c = h->code[i] << (FAST_BITS-s); + int m = 1 << (FAST_BITS-s); + for (j=0; j < m; ++j) { + h->fast[c+j] = (stbi_uc) i; + } + } + } + return 1; +} + +// build a table that decodes both magnitude and value of small ACs in +// one go. +static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h) +{ + int i; + for (i=0; i < (1 << FAST_BITS); ++i) { + stbi_uc fast = h->fast[i]; + fast_ac[i] = 0; + if (fast < 255) { + int rs = h->values[fast]; + int run = (rs >> 4) & 15; + int magbits = rs & 15; + int len = h->size[fast]; + + if (magbits && len + magbits <= FAST_BITS) { + // magnitude code followed by receive_extend code + int k = ((i << len) & ((1 << FAST_BITS) - 1)) >> (FAST_BITS - magbits); + int m = 1 << (magbits - 1); + if (k < m) k += (~0U << magbits) + 1; + // if the result is small enough, we can fit it in fast_ac table + if (k >= -128 && k <= 127) + fast_ac[i] = (stbi__int16) ((k * 256) + (run * 16) + (len + magbits)); + } + } + } +} + +static void stbi__grow_buffer_unsafe(stbi__jpeg *j) +{ + do { + unsigned int b = j->nomore ? 0 : stbi__get8(j->s); + if (b == 0xff) { + int c = stbi__get8(j->s); + while (c == 0xff) c = stbi__get8(j->s); // consume fill bytes + if (c != 0) { + j->marker = (unsigned char) c; + j->nomore = 1; + return; + } + } + j->code_buffer |= b << (24 - j->code_bits); + j->code_bits += 8; + } while (j->code_bits <= 24); +} + +// (1 << n) - 1 +static const stbi__uint32 stbi__bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535}; + +// decode a jpeg huffman value from the bitstream +stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h) +{ + unsigned int temp; + int c,k; + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + + // look at the top FAST_BITS and determine what symbol ID it is, + // if the code is <= FAST_BITS + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + k = h->fast[c]; + if (k < 255) { + int s = h->size[k]; + if (s > j->code_bits) + return -1; + j->code_buffer <<= s; + j->code_bits -= s; + return h->values[k]; + } + + // naive test is to shift the code_buffer down so k bits are + // valid, then test against maxcode. To speed this up, we've + // preshifted maxcode left so that it has (16-k) 0s at the + // end; in other words, regardless of the number of bits, it + // wants to be compared against something shifted to have 16; + // that way we don't need to shift inside the loop. + temp = j->code_buffer >> 16; + for (k=FAST_BITS+1 ; ; ++k) + if (temp < h->maxcode[k]) + break; + if (k == 17) { + // error! code not found + j->code_bits -= 16; + return -1; + } + + if (k > j->code_bits) + return -1; + + // convert the huffman code to the symbol id + c = ((j->code_buffer >> (32 - k)) & stbi__bmask[k]) + h->delta[k]; + STBI_ASSERT((((j->code_buffer) >> (32 - h->size[c])) & stbi__bmask[h->size[c]]) == h->code[c]); + + // convert the id to a symbol + j->code_bits -= k; + j->code_buffer <<= k; + return h->values[c]; +} + +// bias[n] = (-1<code_bits < n) stbi__grow_buffer_unsafe(j); + + sgn = (stbi__int32)j->code_buffer >> 31; // sign bit is always in MSB + k = stbi_lrot(j->code_buffer, n); + if (n < 0 || n >= (int) (sizeof(stbi__bmask)/sizeof(*stbi__bmask))) return 0; + j->code_buffer = k & ~stbi__bmask[n]; + k &= stbi__bmask[n]; + j->code_bits -= n; + return k + (stbi__jbias[n] & ~sgn); +} + +// get some unsigned bits +stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n) +{ + unsigned int k; + if (j->code_bits < n) stbi__grow_buffer_unsafe(j); + k = stbi_lrot(j->code_buffer, n); + j->code_buffer = k & ~stbi__bmask[n]; + k &= stbi__bmask[n]; + j->code_bits -= n; + return k; +} + +stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j) +{ + unsigned int k; + if (j->code_bits < 1) stbi__grow_buffer_unsafe(j); + k = j->code_buffer; + j->code_buffer <<= 1; + --j->code_bits; + return k & 0x80000000; +} + +// given a value that's at position X in the zigzag stream, +// where does it appear in the 8x8 matrix coded as row-major? +static const stbi_uc stbi__jpeg_dezigzag[64+15] = +{ + 0, 1, 8, 16, 9, 2, 3, 10, + 17, 24, 32, 25, 18, 11, 4, 5, + 12, 19, 26, 33, 40, 48, 41, 34, + 27, 20, 13, 6, 7, 14, 21, 28, + 35, 42, 49, 56, 57, 50, 43, 36, + 29, 22, 15, 23, 30, 37, 44, 51, + 58, 59, 52, 45, 38, 31, 39, 46, + 53, 60, 61, 54, 47, 55, 62, 63, + // let corrupt input sample past end + 63, 63, 63, 63, 63, 63, 63, 63, + 63, 63, 63, 63, 63, 63, 63 +}; + +// decode one 64-entry block-- +static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant) +{ + int diff,dc,k; + int t; + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + t = stbi__jpeg_huff_decode(j, hdc); + if (t < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + + // 0 all the ac values now so we can do it 32-bits at a time + memset(data,0,64*sizeof(data[0])); + + diff = t ? stbi__extend_receive(j, t) : 0; + dc = j->img_comp[b].dc_pred + diff; + j->img_comp[b].dc_pred = dc; + data[0] = (short) (dc * dequant[0]); + + // decode AC components, see JPEG spec + k = 1; + do { + unsigned int zig; + int c,r,s; + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + r = fac[c]; + if (r) { // fast-AC path + k += (r >> 4) & 15; // run + s = r & 15; // combined length + j->code_buffer <<= s; + j->code_bits -= s; + // decode into unzigzag'd location + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) ((r >> 8) * dequant[zig]); + } else { + int rs = stbi__jpeg_huff_decode(j, hac); + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (rs != 0xf0) break; // end block + k += 16; + } else { + k += r; + // decode into unzigzag'd location + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) (stbi__extend_receive(j,s) * dequant[zig]); + } + } + } while (k < 64); + return 1; +} + +static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b) +{ + int diff,dc; + int t; + if (j->spec_end != 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + + if (j->succ_high == 0) { + // first scan for DC coefficient, must be first + memset(data,0,64*sizeof(data[0])); // 0 all the ac values now + t = stbi__jpeg_huff_decode(j, hdc); + if (t == -1) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + diff = t ? stbi__extend_receive(j, t) : 0; + + dc = j->img_comp[b].dc_pred + diff; + j->img_comp[b].dc_pred = dc; + data[0] = (short) (dc << j->succ_low); + } else { + // refinement scan for DC coefficient + if (stbi__jpeg_get_bit(j)) + data[0] += (short) (1 << j->succ_low); + } + return 1; +} + +// @OPTIMIZE: store non-zigzagged during the decode passes, +// and only de-zigzag when dequantizing +static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac) +{ + int k; + if (j->spec_start == 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + + if (j->succ_high == 0) { + int shift = j->succ_low; + + if (j->eob_run) { + --j->eob_run; + return 1; + } + + k = j->spec_start; + do { + unsigned int zig; + int c,r,s; + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + r = fac[c]; + if (r) { // fast-AC path + k += (r >> 4) & 15; // run + s = r & 15; // combined length + j->code_buffer <<= s; + j->code_bits -= s; + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) ((r >> 8) << shift); + } else { + int rs = stbi__jpeg_huff_decode(j, hac); + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (r < 15) { + j->eob_run = (1 << r); + if (r) + j->eob_run += stbi__jpeg_get_bits(j, r); + --j->eob_run; + break; + } + k += 16; + } else { + k += r; + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) (stbi__extend_receive(j,s) << shift); + } + } + } while (k <= j->spec_end); + } else { + // refinement scan for these AC coefficients + + short bit = (short) (1 << j->succ_low); + + if (j->eob_run) { + --j->eob_run; + for (k = j->spec_start; k <= j->spec_end; ++k) { + short *p = &data[stbi__jpeg_dezigzag[k]]; + if (*p != 0) + if (stbi__jpeg_get_bit(j)) + if ((*p & bit)==0) { + if (*p > 0) + *p += bit; + else + *p -= bit; + } + } + } else { + k = j->spec_start; + do { + int r,s; + int rs = stbi__jpeg_huff_decode(j, hac); // @OPTIMIZE see if we can use the fast path here, advance-by-r is so slow, eh + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (r < 15) { + j->eob_run = (1 << r) - 1; + if (r) + j->eob_run += stbi__jpeg_get_bits(j, r); + r = 64; // force end of block + } else { + // r=15 s=0 should write 16 0s, so we just do + // a run of 15 0s and then write s (which is 0), + // so we don't have to do anything special here + } + } else { + if (s != 1) return stbi__err("bad huffman code", "Corrupt JPEG"); + // sign bit + if (stbi__jpeg_get_bit(j)) + s = bit; + else + s = -bit; + } + + // advance by r + while (k <= j->spec_end) { + short *p = &data[stbi__jpeg_dezigzag[k++]]; + if (*p != 0) { + if (stbi__jpeg_get_bit(j)) + if ((*p & bit)==0) { + if (*p > 0) + *p += bit; + else + *p -= bit; + } + } else { + if (r == 0) { + *p = (short) s; + break; + } + --r; + } + } + } while (k <= j->spec_end); + } + } + return 1; +} + +// take a -128..127 value and stbi__clamp it and convert to 0..255 +stbi_inline static stbi_uc stbi__clamp(int x) +{ + // trick to use a single test to catch both cases + if ((unsigned int) x > 255) { + if (x < 0) return 0; + if (x > 255) return 255; + } + return (stbi_uc) x; +} + +#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5))) +#define stbi__fsh(x) ((x) * 4096) + +// derived from jidctint -- DCT_ISLOW +#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \ + int t0,t1,t2,t3,p1,p2,p3,p4,p5,x0,x1,x2,x3; \ + p2 = s2; \ + p3 = s6; \ + p1 = (p2+p3) * stbi__f2f(0.5411961f); \ + t2 = p1 + p3*stbi__f2f(-1.847759065f); \ + t3 = p1 + p2*stbi__f2f( 0.765366865f); \ + p2 = s0; \ + p3 = s4; \ + t0 = stbi__fsh(p2+p3); \ + t1 = stbi__fsh(p2-p3); \ + x0 = t0+t3; \ + x3 = t0-t3; \ + x1 = t1+t2; \ + x2 = t1-t2; \ + t0 = s7; \ + t1 = s5; \ + t2 = s3; \ + t3 = s1; \ + p3 = t0+t2; \ + p4 = t1+t3; \ + p1 = t0+t3; \ + p2 = t1+t2; \ + p5 = (p3+p4)*stbi__f2f( 1.175875602f); \ + t0 = t0*stbi__f2f( 0.298631336f); \ + t1 = t1*stbi__f2f( 2.053119869f); \ + t2 = t2*stbi__f2f( 3.072711026f); \ + t3 = t3*stbi__f2f( 1.501321110f); \ + p1 = p5 + p1*stbi__f2f(-0.899976223f); \ + p2 = p5 + p2*stbi__f2f(-2.562915447f); \ + p3 = p3*stbi__f2f(-1.961570560f); \ + p4 = p4*stbi__f2f(-0.390180644f); \ + t3 += p1+p4; \ + t2 += p2+p3; \ + t1 += p2+p4; \ + t0 += p1+p3; + +static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64]) +{ + int i,val[64],*v=val; + stbi_uc *o; + short *d = data; + + // columns + for (i=0; i < 8; ++i,++d, ++v) { + // if all zeroes, shortcut -- this avoids dequantizing 0s and IDCTing + if (d[ 8]==0 && d[16]==0 && d[24]==0 && d[32]==0 + && d[40]==0 && d[48]==0 && d[56]==0) { + // no shortcut 0 seconds + // (1|2|3|4|5|6|7)==0 0 seconds + // all separate -0.047 seconds + // 1 && 2|3 && 4|5 && 6|7: -0.047 seconds + int dcterm = d[0]*4; + v[0] = v[8] = v[16] = v[24] = v[32] = v[40] = v[48] = v[56] = dcterm; + } else { + STBI__IDCT_1D(d[ 0],d[ 8],d[16],d[24],d[32],d[40],d[48],d[56]) + // constants scaled things up by 1<<12; let's bring them back + // down, but keep 2 extra bits of precision + x0 += 512; x1 += 512; x2 += 512; x3 += 512; + v[ 0] = (x0+t3) >> 10; + v[56] = (x0-t3) >> 10; + v[ 8] = (x1+t2) >> 10; + v[48] = (x1-t2) >> 10; + v[16] = (x2+t1) >> 10; + v[40] = (x2-t1) >> 10; + v[24] = (x3+t0) >> 10; + v[32] = (x3-t0) >> 10; + } + } + + for (i=0, v=val, o=out; i < 8; ++i,v+=8,o+=out_stride) { + // no fast case since the first 1D IDCT spread components out + STBI__IDCT_1D(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7]) + // constants scaled things up by 1<<12, plus we had 1<<2 from first + // loop, plus horizontal and vertical each scale by sqrt(8) so together + // we've got an extra 1<<3, so 1<<17 total we need to remove. + // so we want to round that, which means adding 0.5 * 1<<17, + // aka 65536. Also, we'll end up with -128 to 127 that we want + // to encode as 0..255 by adding 128, so we'll add that before the shift + x0 += 65536 + (128<<17); + x1 += 65536 + (128<<17); + x2 += 65536 + (128<<17); + x3 += 65536 + (128<<17); + // tried computing the shifts into temps, or'ing the temps to see + // if any were out of range, but that was slower + o[0] = stbi__clamp((x0+t3) >> 17); + o[7] = stbi__clamp((x0-t3) >> 17); + o[1] = stbi__clamp((x1+t2) >> 17); + o[6] = stbi__clamp((x1-t2) >> 17); + o[2] = stbi__clamp((x2+t1) >> 17); + o[5] = stbi__clamp((x2-t1) >> 17); + o[3] = stbi__clamp((x3+t0) >> 17); + o[4] = stbi__clamp((x3-t0) >> 17); + } +} + +#ifdef STBI_SSE2 +// sse2 integer IDCT. not the fastest possible implementation but it +// produces bit-identical results to the generic C version so it's +// fully "transparent". +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) +{ + // This is constructed to match our regular (generic) integer IDCT exactly. + __m128i row0, row1, row2, row3, row4, row5, row6, row7; + __m128i tmp; + + // dot product constant: even elems=x, odd elems=y + #define dct_const(x,y) _mm_setr_epi16((x),(y),(x),(y),(x),(y),(x),(y)) + + // out(0) = c0[even]*x + c0[odd]*y (c0, x, y 16-bit, out 32-bit) + // out(1) = c1[even]*x + c1[odd]*y + #define dct_rot(out0,out1, x,y,c0,c1) \ + __m128i c0##lo = _mm_unpacklo_epi16((x),(y)); \ + __m128i c0##hi = _mm_unpackhi_epi16((x),(y)); \ + __m128i out0##_l = _mm_madd_epi16(c0##lo, c0); \ + __m128i out0##_h = _mm_madd_epi16(c0##hi, c0); \ + __m128i out1##_l = _mm_madd_epi16(c0##lo, c1); \ + __m128i out1##_h = _mm_madd_epi16(c0##hi, c1) + + // out = in << 12 (in 16-bit, out 32-bit) + #define dct_widen(out, in) \ + __m128i out##_l = _mm_srai_epi32(_mm_unpacklo_epi16(_mm_setzero_si128(), (in)), 4); \ + __m128i out##_h = _mm_srai_epi32(_mm_unpackhi_epi16(_mm_setzero_si128(), (in)), 4) + + // wide add + #define dct_wadd(out, a, b) \ + __m128i out##_l = _mm_add_epi32(a##_l, b##_l); \ + __m128i out##_h = _mm_add_epi32(a##_h, b##_h) + + // wide sub + #define dct_wsub(out, a, b) \ + __m128i out##_l = _mm_sub_epi32(a##_l, b##_l); \ + __m128i out##_h = _mm_sub_epi32(a##_h, b##_h) + + // butterfly a/b, add bias, then shift by "s" and pack + #define dct_bfly32o(out0, out1, a,b,bias,s) \ + { \ + __m128i abiased_l = _mm_add_epi32(a##_l, bias); \ + __m128i abiased_h = _mm_add_epi32(a##_h, bias); \ + dct_wadd(sum, abiased, b); \ + dct_wsub(dif, abiased, b); \ + out0 = _mm_packs_epi32(_mm_srai_epi32(sum_l, s), _mm_srai_epi32(sum_h, s)); \ + out1 = _mm_packs_epi32(_mm_srai_epi32(dif_l, s), _mm_srai_epi32(dif_h, s)); \ + } + + // 8-bit interleave step (for transposes) + #define dct_interleave8(a, b) \ + tmp = a; \ + a = _mm_unpacklo_epi8(a, b); \ + b = _mm_unpackhi_epi8(tmp, b) + + // 16-bit interleave step (for transposes) + #define dct_interleave16(a, b) \ + tmp = a; \ + a = _mm_unpacklo_epi16(a, b); \ + b = _mm_unpackhi_epi16(tmp, b) + + #define dct_pass(bias,shift) \ + { \ + /* even part */ \ + dct_rot(t2e,t3e, row2,row6, rot0_0,rot0_1); \ + __m128i sum04 = _mm_add_epi16(row0, row4); \ + __m128i dif04 = _mm_sub_epi16(row0, row4); \ + dct_widen(t0e, sum04); \ + dct_widen(t1e, dif04); \ + dct_wadd(x0, t0e, t3e); \ + dct_wsub(x3, t0e, t3e); \ + dct_wadd(x1, t1e, t2e); \ + dct_wsub(x2, t1e, t2e); \ + /* odd part */ \ + dct_rot(y0o,y2o, row7,row3, rot2_0,rot2_1); \ + dct_rot(y1o,y3o, row5,row1, rot3_0,rot3_1); \ + __m128i sum17 = _mm_add_epi16(row1, row7); \ + __m128i sum35 = _mm_add_epi16(row3, row5); \ + dct_rot(y4o,y5o, sum17,sum35, rot1_0,rot1_1); \ + dct_wadd(x4, y0o, y4o); \ + dct_wadd(x5, y1o, y5o); \ + dct_wadd(x6, y2o, y5o); \ + dct_wadd(x7, y3o, y4o); \ + dct_bfly32o(row0,row7, x0,x7,bias,shift); \ + dct_bfly32o(row1,row6, x1,x6,bias,shift); \ + dct_bfly32o(row2,row5, x2,x5,bias,shift); \ + dct_bfly32o(row3,row4, x3,x4,bias,shift); \ + } + + __m128i rot0_0 = dct_const(stbi__f2f(0.5411961f), stbi__f2f(0.5411961f) + stbi__f2f(-1.847759065f)); + __m128i rot0_1 = dct_const(stbi__f2f(0.5411961f) + stbi__f2f( 0.765366865f), stbi__f2f(0.5411961f)); + __m128i rot1_0 = dct_const(stbi__f2f(1.175875602f) + stbi__f2f(-0.899976223f), stbi__f2f(1.175875602f)); + __m128i rot1_1 = dct_const(stbi__f2f(1.175875602f), stbi__f2f(1.175875602f) + stbi__f2f(-2.562915447f)); + __m128i rot2_0 = dct_const(stbi__f2f(-1.961570560f) + stbi__f2f( 0.298631336f), stbi__f2f(-1.961570560f)); + __m128i rot2_1 = dct_const(stbi__f2f(-1.961570560f), stbi__f2f(-1.961570560f) + stbi__f2f( 3.072711026f)); + __m128i rot3_0 = dct_const(stbi__f2f(-0.390180644f) + stbi__f2f( 2.053119869f), stbi__f2f(-0.390180644f)); + __m128i rot3_1 = dct_const(stbi__f2f(-0.390180644f), stbi__f2f(-0.390180644f) + stbi__f2f( 1.501321110f)); + + // rounding biases in column/row passes, see stbi__idct_block for explanation. + __m128i bias_0 = _mm_set1_epi32(512); + __m128i bias_1 = _mm_set1_epi32(65536 + (128<<17)); + + // load + row0 = _mm_load_si128((const __m128i *) (data + 0*8)); + row1 = _mm_load_si128((const __m128i *) (data + 1*8)); + row2 = _mm_load_si128((const __m128i *) (data + 2*8)); + row3 = _mm_load_si128((const __m128i *) (data + 3*8)); + row4 = _mm_load_si128((const __m128i *) (data + 4*8)); + row5 = _mm_load_si128((const __m128i *) (data + 5*8)); + row6 = _mm_load_si128((const __m128i *) (data + 6*8)); + row7 = _mm_load_si128((const __m128i *) (data + 7*8)); + + // column pass + dct_pass(bias_0, 10); + + { + // 16bit 8x8 transpose pass 1 + dct_interleave16(row0, row4); + dct_interleave16(row1, row5); + dct_interleave16(row2, row6); + dct_interleave16(row3, row7); + + // transpose pass 2 + dct_interleave16(row0, row2); + dct_interleave16(row1, row3); + dct_interleave16(row4, row6); + dct_interleave16(row5, row7); + + // transpose pass 3 + dct_interleave16(row0, row1); + dct_interleave16(row2, row3); + dct_interleave16(row4, row5); + dct_interleave16(row6, row7); + } + + // row pass + dct_pass(bias_1, 17); + + { + // pack + __m128i p0 = _mm_packus_epi16(row0, row1); // a0a1a2a3...a7b0b1b2b3...b7 + __m128i p1 = _mm_packus_epi16(row2, row3); + __m128i p2 = _mm_packus_epi16(row4, row5); + __m128i p3 = _mm_packus_epi16(row6, row7); + + // 8bit 8x8 transpose pass 1 + dct_interleave8(p0, p2); // a0e0a1e1... + dct_interleave8(p1, p3); // c0g0c1g1... + + // transpose pass 2 + dct_interleave8(p0, p1); // a0c0e0g0... + dct_interleave8(p2, p3); // b0d0f0h0... + + // transpose pass 3 + dct_interleave8(p0, p2); // a0b0c0d0... + dct_interleave8(p1, p3); // a4b4c4d4... + + // store + _mm_storel_epi64((__m128i *) out, p0); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p0, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p2); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p2, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p1); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p1, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p3); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p3, 0x4e)); + } + +#undef dct_const +#undef dct_rot +#undef dct_widen +#undef dct_wadd +#undef dct_wsub +#undef dct_bfly32o +#undef dct_interleave8 +#undef dct_interleave16 +#undef dct_pass +} + +#endif // STBI_SSE2 + +#ifdef STBI_NEON + +// NEON integer IDCT. should produce bit-identical +// results to the generic C version. +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) +{ + int16x8_t row0, row1, row2, row3, row4, row5, row6, row7; + + int16x4_t rot0_0 = vdup_n_s16(stbi__f2f(0.5411961f)); + int16x4_t rot0_1 = vdup_n_s16(stbi__f2f(-1.847759065f)); + int16x4_t rot0_2 = vdup_n_s16(stbi__f2f( 0.765366865f)); + int16x4_t rot1_0 = vdup_n_s16(stbi__f2f( 1.175875602f)); + int16x4_t rot1_1 = vdup_n_s16(stbi__f2f(-0.899976223f)); + int16x4_t rot1_2 = vdup_n_s16(stbi__f2f(-2.562915447f)); + int16x4_t rot2_0 = vdup_n_s16(stbi__f2f(-1.961570560f)); + int16x4_t rot2_1 = vdup_n_s16(stbi__f2f(-0.390180644f)); + int16x4_t rot3_0 = vdup_n_s16(stbi__f2f( 0.298631336f)); + int16x4_t rot3_1 = vdup_n_s16(stbi__f2f( 2.053119869f)); + int16x4_t rot3_2 = vdup_n_s16(stbi__f2f( 3.072711026f)); + int16x4_t rot3_3 = vdup_n_s16(stbi__f2f( 1.501321110f)); + +#define dct_long_mul(out, inq, coeff) \ + int32x4_t out##_l = vmull_s16(vget_low_s16(inq), coeff); \ + int32x4_t out##_h = vmull_s16(vget_high_s16(inq), coeff) + +#define dct_long_mac(out, acc, inq, coeff) \ + int32x4_t out##_l = vmlal_s16(acc##_l, vget_low_s16(inq), coeff); \ + int32x4_t out##_h = vmlal_s16(acc##_h, vget_high_s16(inq), coeff) + +#define dct_widen(out, inq) \ + int32x4_t out##_l = vshll_n_s16(vget_low_s16(inq), 12); \ + int32x4_t out##_h = vshll_n_s16(vget_high_s16(inq), 12) + +// wide add +#define dct_wadd(out, a, b) \ + int32x4_t out##_l = vaddq_s32(a##_l, b##_l); \ + int32x4_t out##_h = vaddq_s32(a##_h, b##_h) + +// wide sub +#define dct_wsub(out, a, b) \ + int32x4_t out##_l = vsubq_s32(a##_l, b##_l); \ + int32x4_t out##_h = vsubq_s32(a##_h, b##_h) + +// butterfly a/b, then shift using "shiftop" by "s" and pack +#define dct_bfly32o(out0,out1, a,b,shiftop,s) \ + { \ + dct_wadd(sum, a, b); \ + dct_wsub(dif, a, b); \ + out0 = vcombine_s16(shiftop(sum_l, s), shiftop(sum_h, s)); \ + out1 = vcombine_s16(shiftop(dif_l, s), shiftop(dif_h, s)); \ + } + +#define dct_pass(shiftop, shift) \ + { \ + /* even part */ \ + int16x8_t sum26 = vaddq_s16(row2, row6); \ + dct_long_mul(p1e, sum26, rot0_0); \ + dct_long_mac(t2e, p1e, row6, rot0_1); \ + dct_long_mac(t3e, p1e, row2, rot0_2); \ + int16x8_t sum04 = vaddq_s16(row0, row4); \ + int16x8_t dif04 = vsubq_s16(row0, row4); \ + dct_widen(t0e, sum04); \ + dct_widen(t1e, dif04); \ + dct_wadd(x0, t0e, t3e); \ + dct_wsub(x3, t0e, t3e); \ + dct_wadd(x1, t1e, t2e); \ + dct_wsub(x2, t1e, t2e); \ + /* odd part */ \ + int16x8_t sum15 = vaddq_s16(row1, row5); \ + int16x8_t sum17 = vaddq_s16(row1, row7); \ + int16x8_t sum35 = vaddq_s16(row3, row5); \ + int16x8_t sum37 = vaddq_s16(row3, row7); \ + int16x8_t sumodd = vaddq_s16(sum17, sum35); \ + dct_long_mul(p5o, sumodd, rot1_0); \ + dct_long_mac(p1o, p5o, sum17, rot1_1); \ + dct_long_mac(p2o, p5o, sum35, rot1_2); \ + dct_long_mul(p3o, sum37, rot2_0); \ + dct_long_mul(p4o, sum15, rot2_1); \ + dct_wadd(sump13o, p1o, p3o); \ + dct_wadd(sump24o, p2o, p4o); \ + dct_wadd(sump23o, p2o, p3o); \ + dct_wadd(sump14o, p1o, p4o); \ + dct_long_mac(x4, sump13o, row7, rot3_0); \ + dct_long_mac(x5, sump24o, row5, rot3_1); \ + dct_long_mac(x6, sump23o, row3, rot3_2); \ + dct_long_mac(x7, sump14o, row1, rot3_3); \ + dct_bfly32o(row0,row7, x0,x7,shiftop,shift); \ + dct_bfly32o(row1,row6, x1,x6,shiftop,shift); \ + dct_bfly32o(row2,row5, x2,x5,shiftop,shift); \ + dct_bfly32o(row3,row4, x3,x4,shiftop,shift); \ + } + + // load + row0 = vld1q_s16(data + 0*8); + row1 = vld1q_s16(data + 1*8); + row2 = vld1q_s16(data + 2*8); + row3 = vld1q_s16(data + 3*8); + row4 = vld1q_s16(data + 4*8); + row5 = vld1q_s16(data + 5*8); + row6 = vld1q_s16(data + 6*8); + row7 = vld1q_s16(data + 7*8); + + // add DC bias + row0 = vaddq_s16(row0, vsetq_lane_s16(1024, vdupq_n_s16(0), 0)); + + // column pass + dct_pass(vrshrn_n_s32, 10); + + // 16bit 8x8 transpose + { +// these three map to a single VTRN.16, VTRN.32, and VSWP, respectively. +// whether compilers actually get this is another story, sadly. +#define dct_trn16(x, y) { int16x8x2_t t = vtrnq_s16(x, y); x = t.val[0]; y = t.val[1]; } +#define dct_trn32(x, y) { int32x4x2_t t = vtrnq_s32(vreinterpretq_s32_s16(x), vreinterpretq_s32_s16(y)); x = vreinterpretq_s16_s32(t.val[0]); y = vreinterpretq_s16_s32(t.val[1]); } +#define dct_trn64(x, y) { int16x8_t x0 = x; int16x8_t y0 = y; x = vcombine_s16(vget_low_s16(x0), vget_low_s16(y0)); y = vcombine_s16(vget_high_s16(x0), vget_high_s16(y0)); } + + // pass 1 + dct_trn16(row0, row1); // a0b0a2b2a4b4a6b6 + dct_trn16(row2, row3); + dct_trn16(row4, row5); + dct_trn16(row6, row7); + + // pass 2 + dct_trn32(row0, row2); // a0b0c0d0a4b4c4d4 + dct_trn32(row1, row3); + dct_trn32(row4, row6); + dct_trn32(row5, row7); + + // pass 3 + dct_trn64(row0, row4); // a0b0c0d0e0f0g0h0 + dct_trn64(row1, row5); + dct_trn64(row2, row6); + dct_trn64(row3, row7); + +#undef dct_trn16 +#undef dct_trn32 +#undef dct_trn64 + } + + // row pass + // vrshrn_n_s32 only supports shifts up to 16, we need + // 17. so do a non-rounding shift of 16 first then follow + // up with a rounding shift by 1. + dct_pass(vshrn_n_s32, 16); + + { + // pack and round + uint8x8_t p0 = vqrshrun_n_s16(row0, 1); + uint8x8_t p1 = vqrshrun_n_s16(row1, 1); + uint8x8_t p2 = vqrshrun_n_s16(row2, 1); + uint8x8_t p3 = vqrshrun_n_s16(row3, 1); + uint8x8_t p4 = vqrshrun_n_s16(row4, 1); + uint8x8_t p5 = vqrshrun_n_s16(row5, 1); + uint8x8_t p6 = vqrshrun_n_s16(row6, 1); + uint8x8_t p7 = vqrshrun_n_s16(row7, 1); + + // again, these can translate into one instruction, but often don't. +#define dct_trn8_8(x, y) { uint8x8x2_t t = vtrn_u8(x, y); x = t.val[0]; y = t.val[1]; } +#define dct_trn8_16(x, y) { uint16x4x2_t t = vtrn_u16(vreinterpret_u16_u8(x), vreinterpret_u16_u8(y)); x = vreinterpret_u8_u16(t.val[0]); y = vreinterpret_u8_u16(t.val[1]); } +#define dct_trn8_32(x, y) { uint32x2x2_t t = vtrn_u32(vreinterpret_u32_u8(x), vreinterpret_u32_u8(y)); x = vreinterpret_u8_u32(t.val[0]); y = vreinterpret_u8_u32(t.val[1]); } + + // sadly can't use interleaved stores here since we only write + // 8 bytes to each scan line! + + // 8x8 8-bit transpose pass 1 + dct_trn8_8(p0, p1); + dct_trn8_8(p2, p3); + dct_trn8_8(p4, p5); + dct_trn8_8(p6, p7); + + // pass 2 + dct_trn8_16(p0, p2); + dct_trn8_16(p1, p3); + dct_trn8_16(p4, p6); + dct_trn8_16(p5, p7); + + // pass 3 + dct_trn8_32(p0, p4); + dct_trn8_32(p1, p5); + dct_trn8_32(p2, p6); + dct_trn8_32(p3, p7); + + // store + vst1_u8(out, p0); out += out_stride; + vst1_u8(out, p1); out += out_stride; + vst1_u8(out, p2); out += out_stride; + vst1_u8(out, p3); out += out_stride; + vst1_u8(out, p4); out += out_stride; + vst1_u8(out, p5); out += out_stride; + vst1_u8(out, p6); out += out_stride; + vst1_u8(out, p7); + +#undef dct_trn8_8 +#undef dct_trn8_16 +#undef dct_trn8_32 + } + +#undef dct_long_mul +#undef dct_long_mac +#undef dct_widen +#undef dct_wadd +#undef dct_wsub +#undef dct_bfly32o +#undef dct_pass +} + +#endif // STBI_NEON + +#define STBI__MARKER_none 0xff +// if there's a pending marker from the entropy stream, return that +// otherwise, fetch from the stream and get a marker. if there's no +// marker, return 0xff, which is never a valid marker value +static stbi_uc stbi__get_marker(stbi__jpeg *j) +{ + stbi_uc x; + if (j->marker != STBI__MARKER_none) { x = j->marker; j->marker = STBI__MARKER_none; return x; } + x = stbi__get8(j->s); + if (x != 0xff) return STBI__MARKER_none; + while (x == 0xff) + x = stbi__get8(j->s); // consume repeated 0xff fill bytes + return x; +} + +// in each scan, we'll have scan_n components, and the order +// of the components is specified by order[] +#define STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7) + +// after a restart interval, stbi__jpeg_reset the entropy decoder and +// the dc prediction +static void stbi__jpeg_reset(stbi__jpeg *j) +{ + j->code_bits = 0; + j->code_buffer = 0; + j->nomore = 0; + j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = j->img_comp[3].dc_pred = 0; + j->marker = STBI__MARKER_none; + j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff; + j->eob_run = 0; + // no more than 1<<31 MCUs if no restart_interal? that's plenty safe, + // since we don't even allow 1<<30 pixels +} + +static int stbi__parse_entropy_coded_data(stbi__jpeg *z) +{ + stbi__jpeg_reset(z); + if (!z->progressive) { + if (z->scan_n == 1) { + int i,j; + STBI_SIMD_ALIGN(short, data[64]); + int n = z->order[0]; + // non-interleaved data, we just need to process one block at a time, + // in trivial scanline order + // number of blocks to do just depends on how many actual "pixels" this + // component has, independent of interleaved MCU blocking and such + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0; + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); + // every data block is an MCU, so countdown the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + // if it's NOT a restart, then just bail, so we get corrupt data + // rather than no data + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } else { // interleaved + int i,j,k,x,y; + STBI_SIMD_ALIGN(short, data[64]); + for (j=0; j < z->img_mcu_y; ++j) { + for (i=0; i < z->img_mcu_x; ++i) { + // scan an interleaved mcu... process scan_n components in order + for (k=0; k < z->scan_n; ++k) { + int n = z->order[k]; + // scan out an mcu's worth of this component; that's just determined + // by the basic H and V specified for the component + for (y=0; y < z->img_comp[n].v; ++y) { + for (x=0; x < z->img_comp[n].h; ++x) { + int x2 = (i*z->img_comp[n].h + x)*8; + int y2 = (j*z->img_comp[n].v + y)*8; + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0; + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*y2+x2, z->img_comp[n].w2, data); + } + } + } + // after all interleaved components, that's an interleaved MCU, + // so now count down the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } + } else { + if (z->scan_n == 1) { + int i,j; + int n = z->order[0]; + // non-interleaved data, we just need to process one block at a time, + // in trivial scanline order + // number of blocks to do just depends on how many actual "pixels" this + // component has, independent of interleaved MCU blocking and such + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); + if (z->spec_start == 0) { + if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) + return 0; + } else { + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block_prog_ac(z, data, &z->huff_ac[ha], z->fast_ac[ha])) + return 0; + } + // every data block is an MCU, so countdown the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } else { // interleaved + int i,j,k,x,y; + for (j=0; j < z->img_mcu_y; ++j) { + for (i=0; i < z->img_mcu_x; ++i) { + // scan an interleaved mcu... process scan_n components in order + for (k=0; k < z->scan_n; ++k) { + int n = z->order[k]; + // scan out an mcu's worth of this component; that's just determined + // by the basic H and V specified for the component + for (y=0; y < z->img_comp[n].v; ++y) { + for (x=0; x < z->img_comp[n].h; ++x) { + int x2 = (i*z->img_comp[n].h + x); + int y2 = (j*z->img_comp[n].v + y); + short *data = z->img_comp[n].coeff + 64 * (x2 + y2 * z->img_comp[n].coeff_w); + if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) + return 0; + } + } + } + // after all interleaved components, that's an interleaved MCU, + // so now count down the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } + } +} + +static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant) +{ + int i; + for (i=0; i < 64; ++i) + data[i] *= dequant[i]; +} + +static void stbi__jpeg_finish(stbi__jpeg *z) +{ + if (z->progressive) { + // dequantize and idct the data + int i,j,n; + for (n=0; n < z->s->img_n; ++n) { + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); + stbi__jpeg_dequantize(data, z->dequant[z->img_comp[n].tq]); + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); + } + } + } + } +} + +static int stbi__process_marker(stbi__jpeg *z, int m) +{ + int L; + switch (m) { + case STBI__MARKER_none: // no marker found + return stbi__err("expected marker","Corrupt JPEG"); + + case 0xDD: // DRI - specify restart interval + if (stbi__get16be(z->s) != 4) return stbi__err("bad DRI len","Corrupt JPEG"); + z->restart_interval = stbi__get16be(z->s); + return 1; + + case 0xDB: // DQT - define quantization table + L = stbi__get16be(z->s)-2; + while (L > 0) { + int q = stbi__get8(z->s); + int p = q >> 4, sixteen = (p != 0); + int t = q & 15,i; + if (p != 0 && p != 1) return stbi__err("bad DQT type","Corrupt JPEG"); + if (t > 3) return stbi__err("bad DQT table","Corrupt JPEG"); + + for (i=0; i < 64; ++i) + z->dequant[t][stbi__jpeg_dezigzag[i]] = (stbi__uint16)(sixteen ? stbi__get16be(z->s) : stbi__get8(z->s)); + L -= (sixteen ? 129 : 65); + } + return L==0; + + case 0xC4: // DHT - define huffman table + L = stbi__get16be(z->s)-2; + while (L > 0) { + stbi_uc *v; + int sizes[16],i,n=0; + int q = stbi__get8(z->s); + int tc = q >> 4; + int th = q & 15; + if (tc > 1 || th > 3) return stbi__err("bad DHT header","Corrupt JPEG"); + for (i=0; i < 16; ++i) { + sizes[i] = stbi__get8(z->s); + n += sizes[i]; + } + L -= 17; + if (tc == 0) { + if (!stbi__build_huffman(z->huff_dc+th, sizes)) return 0; + v = z->huff_dc[th].values; + } else { + if (!stbi__build_huffman(z->huff_ac+th, sizes)) return 0; + v = z->huff_ac[th].values; + } + for (i=0; i < n; ++i) + v[i] = stbi__get8(z->s); + if (tc != 0) + stbi__build_fast_ac(z->fast_ac[th], z->huff_ac + th); + L -= n; + } + return L==0; + } + + // check for comment block or APP blocks + if ((m >= 0xE0 && m <= 0xEF) || m == 0xFE) { + L = stbi__get16be(z->s); + if (L < 2) { + if (m == 0xFE) + return stbi__err("bad COM len","Corrupt JPEG"); + else + return stbi__err("bad APP len","Corrupt JPEG"); + } + L -= 2; + + if (m == 0xE0 && L >= 5) { // JFIF APP0 segment + static const unsigned char tag[5] = {'J','F','I','F','\0'}; + int ok = 1; + int i; + for (i=0; i < 5; ++i) + if (stbi__get8(z->s) != tag[i]) + ok = 0; + L -= 5; + if (ok) + z->jfif = 1; + } else if (m == 0xEE && L >= 12) { // Adobe APP14 segment + static const unsigned char tag[6] = {'A','d','o','b','e','\0'}; + int ok = 1; + int i; + for (i=0; i < 6; ++i) + if (stbi__get8(z->s) != tag[i]) + ok = 0; + L -= 6; + if (ok) { + stbi__get8(z->s); // version + stbi__get16be(z->s); // flags0 + stbi__get16be(z->s); // flags1 + z->app14_color_transform = stbi__get8(z->s); // color transform + L -= 6; + } + } + + stbi__skip(z->s, L); + return 1; + } + + return stbi__err("unknown marker","Corrupt JPEG"); +} + +// after we see SOS +static int stbi__process_scan_header(stbi__jpeg *z) +{ + int i; + int Ls = stbi__get16be(z->s); + z->scan_n = stbi__get8(z->s); + if (z->scan_n < 1 || z->scan_n > 4 || z->scan_n > (int) z->s->img_n) return stbi__err("bad SOS component count","Corrupt JPEG"); + if (Ls != 6+2*z->scan_n) return stbi__err("bad SOS len","Corrupt JPEG"); + for (i=0; i < z->scan_n; ++i) { + int id = stbi__get8(z->s), which; + int q = stbi__get8(z->s); + for (which = 0; which < z->s->img_n; ++which) + if (z->img_comp[which].id == id) + break; + if (which == z->s->img_n) return 0; // no match + z->img_comp[which].hd = q >> 4; if (z->img_comp[which].hd > 3) return stbi__err("bad DC huff","Corrupt JPEG"); + z->img_comp[which].ha = q & 15; if (z->img_comp[which].ha > 3) return stbi__err("bad AC huff","Corrupt JPEG"); + z->order[i] = which; + } + + { + int aa; + z->spec_start = stbi__get8(z->s); + z->spec_end = stbi__get8(z->s); // should be 63, but might be 0 + aa = stbi__get8(z->s); + z->succ_high = (aa >> 4); + z->succ_low = (aa & 15); + if (z->progressive) { + if (z->spec_start > 63 || z->spec_end > 63 || z->spec_start > z->spec_end || z->succ_high > 13 || z->succ_low > 13) + return stbi__err("bad SOS", "Corrupt JPEG"); + } else { + if (z->spec_start != 0) return stbi__err("bad SOS","Corrupt JPEG"); + if (z->succ_high != 0 || z->succ_low != 0) return stbi__err("bad SOS","Corrupt JPEG"); + z->spec_end = 63; + } + } + + return 1; +} + +static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why) +{ + int i; + for (i=0; i < ncomp; ++i) { + if (z->img_comp[i].raw_data) { + STBI_FREE(z->img_comp[i].raw_data); + z->img_comp[i].raw_data = NULL; + z->img_comp[i].data = NULL; + } + if (z->img_comp[i].raw_coeff) { + STBI_FREE(z->img_comp[i].raw_coeff); + z->img_comp[i].raw_coeff = 0; + z->img_comp[i].coeff = 0; + } + if (z->img_comp[i].linebuf) { + STBI_FREE(z->img_comp[i].linebuf); + z->img_comp[i].linebuf = NULL; + } + } + return why; +} + +static int stbi__process_frame_header(stbi__jpeg *z, int scan) +{ + stbi__context *s = z->s; + int Lf,p,i,q, h_max=1,v_max=1,c; + Lf = stbi__get16be(s); if (Lf < 11) return stbi__err("bad SOF len","Corrupt JPEG"); // JPEG + p = stbi__get8(s); if (p != 8) return stbi__err("only 8-bit","JPEG format not supported: 8-bit only"); // JPEG baseline + s->img_y = stbi__get16be(s); if (s->img_y == 0) return stbi__err("no header height", "JPEG format not supported: delayed height"); // Legal, but we don't handle it--but neither does IJG + s->img_x = stbi__get16be(s); if (s->img_x == 0) return stbi__err("0 width","Corrupt JPEG"); // JPEG requires + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + c = stbi__get8(s); + if (c != 3 && c != 1 && c != 4) return stbi__err("bad component count","Corrupt JPEG"); + s->img_n = c; + for (i=0; i < c; ++i) { + z->img_comp[i].data = NULL; + z->img_comp[i].linebuf = NULL; + } + + if (Lf != 8+3*s->img_n) return stbi__err("bad SOF len","Corrupt JPEG"); + + z->rgb = 0; + for (i=0; i < s->img_n; ++i) { + static const unsigned char rgb[3] = { 'R', 'G', 'B' }; + z->img_comp[i].id = stbi__get8(s); + if (s->img_n == 3 && z->img_comp[i].id == rgb[i]) + ++z->rgb; + q = stbi__get8(s); + z->img_comp[i].h = (q >> 4); if (!z->img_comp[i].h || z->img_comp[i].h > 4) return stbi__err("bad H","Corrupt JPEG"); + z->img_comp[i].v = q & 15; if (!z->img_comp[i].v || z->img_comp[i].v > 4) return stbi__err("bad V","Corrupt JPEG"); + z->img_comp[i].tq = stbi__get8(s); if (z->img_comp[i].tq > 3) return stbi__err("bad TQ","Corrupt JPEG"); + } + + if (scan != STBI__SCAN_load) return 1; + + if (!stbi__mad3sizes_valid(s->img_x, s->img_y, s->img_n, 0)) return stbi__err("too large", "Image too large to decode"); + + for (i=0; i < s->img_n; ++i) { + if (z->img_comp[i].h > h_max) h_max = z->img_comp[i].h; + if (z->img_comp[i].v > v_max) v_max = z->img_comp[i].v; + } + + // compute interleaved mcu info + z->img_h_max = h_max; + z->img_v_max = v_max; + z->img_mcu_w = h_max * 8; + z->img_mcu_h = v_max * 8; + // these sizes can't be more than 17 bits + z->img_mcu_x = (s->img_x + z->img_mcu_w-1) / z->img_mcu_w; + z->img_mcu_y = (s->img_y + z->img_mcu_h-1) / z->img_mcu_h; + + for (i=0; i < s->img_n; ++i) { + // number of effective pixels (e.g. for non-interleaved MCU) + z->img_comp[i].x = (s->img_x * z->img_comp[i].h + h_max-1) / h_max; + z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max; + // to simplify generation, we'll allocate enough memory to decode + // the bogus oversized data from using interleaved MCUs and their + // big blocks (e.g. a 16x16 iMCU on an image of width 33); we won't + // discard the extra data until colorspace conversion + // + // img_mcu_x, img_mcu_y: <=17 bits; comp[i].h and .v are <=4 (checked earlier) + // so these muls can't overflow with 32-bit ints (which we require) + z->img_comp[i].w2 = z->img_mcu_x * z->img_comp[i].h * 8; + z->img_comp[i].h2 = z->img_mcu_y * z->img_comp[i].v * 8; + z->img_comp[i].coeff = 0; + z->img_comp[i].raw_coeff = 0; + z->img_comp[i].linebuf = NULL; + z->img_comp[i].raw_data = stbi__malloc_mad2(z->img_comp[i].w2, z->img_comp[i].h2, 15); + if (z->img_comp[i].raw_data == NULL) + return stbi__free_jpeg_components(z, i+1, stbi__err("outofmem", "Out of memory")); + // align blocks for idct using mmx/sse + z->img_comp[i].data = (stbi_uc*) (((size_t) z->img_comp[i].raw_data + 15) & ~15); + if (z->progressive) { + // w2, h2 are multiples of 8 (see above) + z->img_comp[i].coeff_w = z->img_comp[i].w2 / 8; + z->img_comp[i].coeff_h = z->img_comp[i].h2 / 8; + z->img_comp[i].raw_coeff = stbi__malloc_mad3(z->img_comp[i].w2, z->img_comp[i].h2, sizeof(short), 15); + if (z->img_comp[i].raw_coeff == NULL) + return stbi__free_jpeg_components(z, i+1, stbi__err("outofmem", "Out of memory")); + z->img_comp[i].coeff = (short*) (((size_t) z->img_comp[i].raw_coeff + 15) & ~15); + } + } + + return 1; +} + +// use comparisons since in some cases we handle more than one case (e.g. SOF) +#define stbi__DNL(x) ((x) == 0xdc) +#define stbi__SOI(x) ((x) == 0xd8) +#define stbi__EOI(x) ((x) == 0xd9) +#define stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2) +#define stbi__SOS(x) ((x) == 0xda) + +#define stbi__SOF_progressive(x) ((x) == 0xc2) + +static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan) +{ + int m; + z->jfif = 0; + z->app14_color_transform = -1; // valid values are 0,1,2 + z->marker = STBI__MARKER_none; // initialize cached marker to empty + m = stbi__get_marker(z); + if (!stbi__SOI(m)) return stbi__err("no SOI","Corrupt JPEG"); + if (scan == STBI__SCAN_type) return 1; + m = stbi__get_marker(z); + while (!stbi__SOF(m)) { + if (!stbi__process_marker(z,m)) return 0; + m = stbi__get_marker(z); + while (m == STBI__MARKER_none) { + // some files have extra padding after their blocks, so ok, we'll scan + if (stbi__at_eof(z->s)) return stbi__err("no SOF", "Corrupt JPEG"); + m = stbi__get_marker(z); + } + } + z->progressive = stbi__SOF_progressive(m); + if (!stbi__process_frame_header(z, scan)) return 0; + return 1; +} + +// decode image to YCbCr format +static int stbi__decode_jpeg_image(stbi__jpeg *j) +{ + int m; + for (m = 0; m < 4; m++) { + j->img_comp[m].raw_data = NULL; + j->img_comp[m].raw_coeff = NULL; + } + j->restart_interval = 0; + if (!stbi__decode_jpeg_header(j, STBI__SCAN_load)) return 0; + m = stbi__get_marker(j); + while (!stbi__EOI(m)) { + if (stbi__SOS(m)) { + if (!stbi__process_scan_header(j)) return 0; + if (!stbi__parse_entropy_coded_data(j)) return 0; + if (j->marker == STBI__MARKER_none ) { + // handle 0s at the end of image data from IP Kamera 9060 + while (!stbi__at_eof(j->s)) { + int x = stbi__get8(j->s); + if (x == 255) { + j->marker = stbi__get8(j->s); + break; + } + } + // if we reach eof without hitting a marker, stbi__get_marker() below will fail and we'll eventually return 0 + } + } else if (stbi__DNL(m)) { + int Ld = stbi__get16be(j->s); + stbi__uint32 NL = stbi__get16be(j->s); + if (Ld != 4) return stbi__err("bad DNL len", "Corrupt JPEG"); + if (NL != j->s->img_y) return stbi__err("bad DNL height", "Corrupt JPEG"); + } else { + if (!stbi__process_marker(j, m)) return 0; + } + m = stbi__get_marker(j); + } + if (j->progressive) + stbi__jpeg_finish(j); + return 1; +} + +// static jfif-centered resampling (across block boundaries) + +typedef stbi_uc *(*resample_row_func)(stbi_uc *out, stbi_uc *in0, stbi_uc *in1, + int w, int hs); + +#define stbi__div4(x) ((stbi_uc) ((x) >> 2)) + +static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + STBI_NOTUSED(out); + STBI_NOTUSED(in_far); + STBI_NOTUSED(w); + STBI_NOTUSED(hs); + return in_near; +} + +static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate two samples vertically for every one in input + int i; + STBI_NOTUSED(hs); + for (i=0; i < w; ++i) + out[i] = stbi__div4(3*in_near[i] + in_far[i] + 2); + return out; +} + +static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate two samples horizontally for every one in input + int i; + stbi_uc *input = in_near; + + if (w == 1) { + // if only one sample, can't do any interpolation + out[0] = out[1] = input[0]; + return out; + } + + out[0] = input[0]; + out[1] = stbi__div4(input[0]*3 + input[1] + 2); + for (i=1; i < w-1; ++i) { + int n = 3*input[i]+2; + out[i*2+0] = stbi__div4(n+input[i-1]); + out[i*2+1] = stbi__div4(n+input[i+1]); + } + out[i*2+0] = stbi__div4(input[w-2]*3 + input[w-1] + 2); + out[i*2+1] = input[w-1]; + + STBI_NOTUSED(in_far); + STBI_NOTUSED(hs); + + return out; +} + +#define stbi__div16(x) ((stbi_uc) ((x) >> 4)) + +static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate 2x2 samples for every one in input + int i,t0,t1; + if (w == 1) { + out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2); + return out; + } + + t1 = 3*in_near[0] + in_far[0]; + out[0] = stbi__div4(t1+2); + for (i=1; i < w; ++i) { + t0 = t1; + t1 = 3*in_near[i]+in_far[i]; + out[i*2-1] = stbi__div16(3*t0 + t1 + 8); + out[i*2 ] = stbi__div16(3*t1 + t0 + 8); + } + out[w*2-1] = stbi__div4(t1+2); + + STBI_NOTUSED(hs); + + return out; +} + +#if defined(STBI_SSE2) || defined(STBI_NEON) +static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate 2x2 samples for every one in input + int i=0,t0,t1; + + if (w == 1) { + out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2); + return out; + } + + t1 = 3*in_near[0] + in_far[0]; + // process groups of 8 pixels for as long as we can. + // note we can't handle the last pixel in a row in this loop + // because we need to handle the filter boundary conditions. + for (; i < ((w-1) & ~7); i += 8) { +#if defined(STBI_SSE2) + // load and perform the vertical filtering pass + // this uses 3*x + y = 4*x + (y - x) + __m128i zero = _mm_setzero_si128(); + __m128i farb = _mm_loadl_epi64((__m128i *) (in_far + i)); + __m128i nearb = _mm_loadl_epi64((__m128i *) (in_near + i)); + __m128i farw = _mm_unpacklo_epi8(farb, zero); + __m128i nearw = _mm_unpacklo_epi8(nearb, zero); + __m128i diff = _mm_sub_epi16(farw, nearw); + __m128i nears = _mm_slli_epi16(nearw, 2); + __m128i curr = _mm_add_epi16(nears, diff); // current row + + // horizontal filter works the same based on shifted vers of current + // row. "prev" is current row shifted right by 1 pixel; we need to + // insert the previous pixel value (from t1). + // "next" is current row shifted left by 1 pixel, with first pixel + // of next block of 8 pixels added in. + __m128i prv0 = _mm_slli_si128(curr, 2); + __m128i nxt0 = _mm_srli_si128(curr, 2); + __m128i prev = _mm_insert_epi16(prv0, t1, 0); + __m128i next = _mm_insert_epi16(nxt0, 3*in_near[i+8] + in_far[i+8], 7); + + // horizontal filter, polyphase implementation since it's convenient: + // even pixels = 3*cur + prev = cur*4 + (prev - cur) + // odd pixels = 3*cur + next = cur*4 + (next - cur) + // note the shared term. + __m128i bias = _mm_set1_epi16(8); + __m128i curs = _mm_slli_epi16(curr, 2); + __m128i prvd = _mm_sub_epi16(prev, curr); + __m128i nxtd = _mm_sub_epi16(next, curr); + __m128i curb = _mm_add_epi16(curs, bias); + __m128i even = _mm_add_epi16(prvd, curb); + __m128i odd = _mm_add_epi16(nxtd, curb); + + // interleave even and odd pixels, then undo scaling. + __m128i int0 = _mm_unpacklo_epi16(even, odd); + __m128i int1 = _mm_unpackhi_epi16(even, odd); + __m128i de0 = _mm_srli_epi16(int0, 4); + __m128i de1 = _mm_srli_epi16(int1, 4); + + // pack and write output + __m128i outv = _mm_packus_epi16(de0, de1); + _mm_storeu_si128((__m128i *) (out + i*2), outv); +#elif defined(STBI_NEON) + // load and perform the vertical filtering pass + // this uses 3*x + y = 4*x + (y - x) + uint8x8_t farb = vld1_u8(in_far + i); + uint8x8_t nearb = vld1_u8(in_near + i); + int16x8_t diff = vreinterpretq_s16_u16(vsubl_u8(farb, nearb)); + int16x8_t nears = vreinterpretq_s16_u16(vshll_n_u8(nearb, 2)); + int16x8_t curr = vaddq_s16(nears, diff); // current row + + // horizontal filter works the same based on shifted vers of current + // row. "prev" is current row shifted right by 1 pixel; we need to + // insert the previous pixel value (from t1). + // "next" is current row shifted left by 1 pixel, with first pixel + // of next block of 8 pixels added in. + int16x8_t prv0 = vextq_s16(curr, curr, 7); + int16x8_t nxt0 = vextq_s16(curr, curr, 1); + int16x8_t prev = vsetq_lane_s16(t1, prv0, 0); + int16x8_t next = vsetq_lane_s16(3*in_near[i+8] + in_far[i+8], nxt0, 7); + + // horizontal filter, polyphase implementation since it's convenient: + // even pixels = 3*cur + prev = cur*4 + (prev - cur) + // odd pixels = 3*cur + next = cur*4 + (next - cur) + // note the shared term. + int16x8_t curs = vshlq_n_s16(curr, 2); + int16x8_t prvd = vsubq_s16(prev, curr); + int16x8_t nxtd = vsubq_s16(next, curr); + int16x8_t even = vaddq_s16(curs, prvd); + int16x8_t odd = vaddq_s16(curs, nxtd); + + // undo scaling and round, then store with even/odd phases interleaved + uint8x8x2_t o; + o.val[0] = vqrshrun_n_s16(even, 4); + o.val[1] = vqrshrun_n_s16(odd, 4); + vst2_u8(out + i*2, o); +#endif + + // "previous" value for next iter + t1 = 3*in_near[i+7] + in_far[i+7]; + } + + t0 = t1; + t1 = 3*in_near[i] + in_far[i]; + out[i*2] = stbi__div16(3*t1 + t0 + 8); + + for (++i; i < w; ++i) { + t0 = t1; + t1 = 3*in_near[i]+in_far[i]; + out[i*2-1] = stbi__div16(3*t0 + t1 + 8); + out[i*2 ] = stbi__div16(3*t1 + t0 + 8); + } + out[w*2-1] = stbi__div4(t1+2); + + STBI_NOTUSED(hs); + + return out; +} +#endif + +static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // resample with nearest-neighbor + int i,j; + STBI_NOTUSED(in_far); + for (i=0; i < w; ++i) + for (j=0; j < hs; ++j) + out[i*hs+j] = in_near[i]; + return out; +} + +// this is a reduced-precision calculation of YCbCr-to-RGB introduced +// to make sure the code produces the same results in both SIMD and scalar +#define stbi__float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8) +static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step) +{ + int i; + for (i=0; i < count; ++i) { + int y_fixed = (y[i] << 20) + (1<<19); // rounding + int r,g,b; + int cr = pcr[i] - 128; + int cb = pcb[i] - 128; + r = y_fixed + cr* stbi__float2fixed(1.40200f); + g = y_fixed + (cr*-stbi__float2fixed(0.71414f)) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000); + b = y_fixed + cb* stbi__float2fixed(1.77200f); + r >>= 20; + g >>= 20; + b >>= 20; + if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } + if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } + if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } + out[0] = (stbi_uc)r; + out[1] = (stbi_uc)g; + out[2] = (stbi_uc)b; + out[3] = 255; + out += step; + } +} + +#if defined(STBI_SSE2) || defined(STBI_NEON) +static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step) +{ + int i = 0; + +#ifdef STBI_SSE2 + // step == 3 is pretty ugly on the final interleave, and i'm not convinced + // it's useful in practice (you wouldn't use it for textures, for example). + // so just accelerate step == 4 case. + if (step == 4) { + // this is a fairly straightforward implementation and not super-optimized. + __m128i signflip = _mm_set1_epi8(-0x80); + __m128i cr_const0 = _mm_set1_epi16( (short) ( 1.40200f*4096.0f+0.5f)); + __m128i cr_const1 = _mm_set1_epi16( - (short) ( 0.71414f*4096.0f+0.5f)); + __m128i cb_const0 = _mm_set1_epi16( - (short) ( 0.34414f*4096.0f+0.5f)); + __m128i cb_const1 = _mm_set1_epi16( (short) ( 1.77200f*4096.0f+0.5f)); + __m128i y_bias = _mm_set1_epi8((char) (unsigned char) 128); + __m128i xw = _mm_set1_epi16(255); // alpha channel + + for (; i+7 < count; i += 8) { + // load + __m128i y_bytes = _mm_loadl_epi64((__m128i *) (y+i)); + __m128i cr_bytes = _mm_loadl_epi64((__m128i *) (pcr+i)); + __m128i cb_bytes = _mm_loadl_epi64((__m128i *) (pcb+i)); + __m128i cr_biased = _mm_xor_si128(cr_bytes, signflip); // -128 + __m128i cb_biased = _mm_xor_si128(cb_bytes, signflip); // -128 + + // unpack to short (and left-shift cr, cb by 8) + __m128i yw = _mm_unpacklo_epi8(y_bias, y_bytes); + __m128i crw = _mm_unpacklo_epi8(_mm_setzero_si128(), cr_biased); + __m128i cbw = _mm_unpacklo_epi8(_mm_setzero_si128(), cb_biased); + + // color transform + __m128i yws = _mm_srli_epi16(yw, 4); + __m128i cr0 = _mm_mulhi_epi16(cr_const0, crw); + __m128i cb0 = _mm_mulhi_epi16(cb_const0, cbw); + __m128i cb1 = _mm_mulhi_epi16(cbw, cb_const1); + __m128i cr1 = _mm_mulhi_epi16(crw, cr_const1); + __m128i rws = _mm_add_epi16(cr0, yws); + __m128i gwt = _mm_add_epi16(cb0, yws); + __m128i bws = _mm_add_epi16(yws, cb1); + __m128i gws = _mm_add_epi16(gwt, cr1); + + // descale + __m128i rw = _mm_srai_epi16(rws, 4); + __m128i bw = _mm_srai_epi16(bws, 4); + __m128i gw = _mm_srai_epi16(gws, 4); + + // back to byte, set up for transpose + __m128i brb = _mm_packus_epi16(rw, bw); + __m128i gxb = _mm_packus_epi16(gw, xw); + + // transpose to interleave channels + __m128i t0 = _mm_unpacklo_epi8(brb, gxb); + __m128i t1 = _mm_unpackhi_epi8(brb, gxb); + __m128i o0 = _mm_unpacklo_epi16(t0, t1); + __m128i o1 = _mm_unpackhi_epi16(t0, t1); + + // store + _mm_storeu_si128((__m128i *) (out + 0), o0); + _mm_storeu_si128((__m128i *) (out + 16), o1); + out += 32; + } + } +#endif + +#ifdef STBI_NEON + // in this version, step=3 support would be easy to add. but is there demand? + if (step == 4) { + // this is a fairly straightforward implementation and not super-optimized. + uint8x8_t signflip = vdup_n_u8(0x80); + int16x8_t cr_const0 = vdupq_n_s16( (short) ( 1.40200f*4096.0f+0.5f)); + int16x8_t cr_const1 = vdupq_n_s16( - (short) ( 0.71414f*4096.0f+0.5f)); + int16x8_t cb_const0 = vdupq_n_s16( - (short) ( 0.34414f*4096.0f+0.5f)); + int16x8_t cb_const1 = vdupq_n_s16( (short) ( 1.77200f*4096.0f+0.5f)); + + for (; i+7 < count; i += 8) { + // load + uint8x8_t y_bytes = vld1_u8(y + i); + uint8x8_t cr_bytes = vld1_u8(pcr + i); + uint8x8_t cb_bytes = vld1_u8(pcb + i); + int8x8_t cr_biased = vreinterpret_s8_u8(vsub_u8(cr_bytes, signflip)); + int8x8_t cb_biased = vreinterpret_s8_u8(vsub_u8(cb_bytes, signflip)); + + // expand to s16 + int16x8_t yws = vreinterpretq_s16_u16(vshll_n_u8(y_bytes, 4)); + int16x8_t crw = vshll_n_s8(cr_biased, 7); + int16x8_t cbw = vshll_n_s8(cb_biased, 7); + + // color transform + int16x8_t cr0 = vqdmulhq_s16(crw, cr_const0); + int16x8_t cb0 = vqdmulhq_s16(cbw, cb_const0); + int16x8_t cr1 = vqdmulhq_s16(crw, cr_const1); + int16x8_t cb1 = vqdmulhq_s16(cbw, cb_const1); + int16x8_t rws = vaddq_s16(yws, cr0); + int16x8_t gws = vaddq_s16(vaddq_s16(yws, cb0), cr1); + int16x8_t bws = vaddq_s16(yws, cb1); + + // undo scaling, round, convert to byte + uint8x8x4_t o; + o.val[0] = vqrshrun_n_s16(rws, 4); + o.val[1] = vqrshrun_n_s16(gws, 4); + o.val[2] = vqrshrun_n_s16(bws, 4); + o.val[3] = vdup_n_u8(255); + + // store, interleaving r/g/b/a + vst4_u8(out, o); + out += 8*4; + } + } +#endif + + for (; i < count; ++i) { + int y_fixed = (y[i] << 20) + (1<<19); // rounding + int r,g,b; + int cr = pcr[i] - 128; + int cb = pcb[i] - 128; + r = y_fixed + cr* stbi__float2fixed(1.40200f); + g = y_fixed + cr*-stbi__float2fixed(0.71414f) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000); + b = y_fixed + cb* stbi__float2fixed(1.77200f); + r >>= 20; + g >>= 20; + b >>= 20; + if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } + if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } + if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } + out[0] = (stbi_uc)r; + out[1] = (stbi_uc)g; + out[2] = (stbi_uc)b; + out[3] = 255; + out += step; + } +} +#endif + +// set up the kernels +static void stbi__setup_jpeg(stbi__jpeg *j) +{ + j->idct_block_kernel = stbi__idct_block; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_row; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2; + +#ifdef STBI_SSE2 + if (stbi__sse2_available()) { + j->idct_block_kernel = stbi__idct_simd; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; + } +#endif + +#ifdef STBI_NEON + j->idct_block_kernel = stbi__idct_simd; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; +#endif +} + +// clean up the temporary component buffers +static void stbi__cleanup_jpeg(stbi__jpeg *j) +{ + stbi__free_jpeg_components(j, j->s->img_n, 0); +} + +typedef struct +{ + resample_row_func resample; + stbi_uc *line0,*line1; + int hs,vs; // expansion factor in each axis + int w_lores; // horizontal pixels pre-expansion + int ystep; // how far through vertical expansion we are + int ypos; // which pre-expansion row we're on +} stbi__resample; + +// fast 0..255 * 0..255 => 0..255 rounded multiplication +static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y) +{ + unsigned int t = x*y + 128; + return (stbi_uc) ((t + (t >>8)) >> 8); +} + +static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp) +{ + int n, decode_n, is_rgb; + z->s->img_n = 0; // make stbi__cleanup_jpeg safe + + // validate req_comp + if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); + + // load a jpeg image from whichever source, but leave in YCbCr format + if (!stbi__decode_jpeg_image(z)) { stbi__cleanup_jpeg(z); return NULL; } + + // determine actual number of components to generate + n = req_comp ? req_comp : z->s->img_n >= 3 ? 3 : 1; + + is_rgb = z->s->img_n == 3 && (z->rgb == 3 || (z->app14_color_transform == 0 && !z->jfif)); + + if (z->s->img_n == 3 && n < 3 && !is_rgb) + decode_n = 1; + else + decode_n = z->s->img_n; + + // resample and color-convert + { + int k; + unsigned int i,j; + stbi_uc *output; + stbi_uc *coutput[4] = { NULL, NULL, NULL, NULL }; + + stbi__resample res_comp[4]; + + for (k=0; k < decode_n; ++k) { + stbi__resample *r = &res_comp[k]; + + // allocate line buffer big enough for upsampling off the edges + // with upsample factor of 4 + z->img_comp[k].linebuf = (stbi_uc *) stbi__malloc(z->s->img_x + 3); + if (!z->img_comp[k].linebuf) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); } + + r->hs = z->img_h_max / z->img_comp[k].h; + r->vs = z->img_v_max / z->img_comp[k].v; + r->ystep = r->vs >> 1; + r->w_lores = (z->s->img_x + r->hs-1) / r->hs; + r->ypos = 0; + r->line0 = r->line1 = z->img_comp[k].data; + + if (r->hs == 1 && r->vs == 1) r->resample = resample_row_1; + else if (r->hs == 1 && r->vs == 2) r->resample = stbi__resample_row_v_2; + else if (r->hs == 2 && r->vs == 1) r->resample = stbi__resample_row_h_2; + else if (r->hs == 2 && r->vs == 2) r->resample = z->resample_row_hv_2_kernel; + else r->resample = stbi__resample_row_generic; + } + + // can't error after this so, this is safe + output = (stbi_uc *) stbi__malloc_mad3(n, z->s->img_x, z->s->img_y, 1); + if (!output) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); } + + // now go ahead and resample + for (j=0; j < z->s->img_y; ++j) { + stbi_uc *out = output + n * z->s->img_x * j; + for (k=0; k < decode_n; ++k) { + stbi__resample *r = &res_comp[k]; + int y_bot = r->ystep >= (r->vs >> 1); + coutput[k] = r->resample(z->img_comp[k].linebuf, + y_bot ? r->line1 : r->line0, + y_bot ? r->line0 : r->line1, + r->w_lores, r->hs); + if (++r->ystep >= r->vs) { + r->ystep = 0; + r->line0 = r->line1; + if (++r->ypos < z->img_comp[k].y) + r->line1 += z->img_comp[k].w2; + } + } + if (n >= 3) { + stbi_uc *y = coutput[0]; + if (z->s->img_n == 3) { + if (is_rgb) { + for (i=0; i < z->s->img_x; ++i) { + out[0] = y[i]; + out[1] = coutput[1][i]; + out[2] = coutput[2][i]; + out[3] = 255; + out += n; + } + } else { + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + } + } else if (z->s->img_n == 4) { + if (z->app14_color_transform == 0) { // CMYK + for (i=0; i < z->s->img_x; ++i) { + stbi_uc m = coutput[3][i]; + out[0] = stbi__blinn_8x8(coutput[0][i], m); + out[1] = stbi__blinn_8x8(coutput[1][i], m); + out[2] = stbi__blinn_8x8(coutput[2][i], m); + out[3] = 255; + out += n; + } + } else if (z->app14_color_transform == 2) { // YCCK + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + for (i=0; i < z->s->img_x; ++i) { + stbi_uc m = coutput[3][i]; + out[0] = stbi__blinn_8x8(255 - out[0], m); + out[1] = stbi__blinn_8x8(255 - out[1], m); + out[2] = stbi__blinn_8x8(255 - out[2], m); + out += n; + } + } else { // YCbCr + alpha? Ignore the fourth channel for now + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + } + } else + for (i=0; i < z->s->img_x; ++i) { + out[0] = out[1] = out[2] = y[i]; + out[3] = 255; // not used if n==3 + out += n; + } + } else { + if (is_rgb) { + if (n == 1) + for (i=0; i < z->s->img_x; ++i) + *out++ = stbi__compute_y(coutput[0][i], coutput[1][i], coutput[2][i]); + else { + for (i=0; i < z->s->img_x; ++i, out += 2) { + out[0] = stbi__compute_y(coutput[0][i], coutput[1][i], coutput[2][i]); + out[1] = 255; + } + } + } else if (z->s->img_n == 4 && z->app14_color_transform == 0) { + for (i=0; i < z->s->img_x; ++i) { + stbi_uc m = coutput[3][i]; + stbi_uc r = stbi__blinn_8x8(coutput[0][i], m); + stbi_uc g = stbi__blinn_8x8(coutput[1][i], m); + stbi_uc b = stbi__blinn_8x8(coutput[2][i], m); + out[0] = stbi__compute_y(r, g, b); + out[1] = 255; + out += n; + } + } else if (z->s->img_n == 4 && z->app14_color_transform == 2) { + for (i=0; i < z->s->img_x; ++i) { + out[0] = stbi__blinn_8x8(255 - coutput[0][i], coutput[3][i]); + out[1] = 255; + out += n; + } + } else { + stbi_uc *y = coutput[0]; + if (n == 1) + for (i=0; i < z->s->img_x; ++i) out[i] = y[i]; + else + for (i=0; i < z->s->img_x; ++i) { *out++ = y[i]; *out++ = 255; } + } + } + } + stbi__cleanup_jpeg(z); + *out_x = z->s->img_x; + *out_y = z->s->img_y; + if (comp) *comp = z->s->img_n >= 3 ? 3 : 1; // report original components, not output + return output; + } +} + +static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + unsigned char* result; + stbi__jpeg* j = (stbi__jpeg*) stbi__malloc(sizeof(stbi__jpeg)); + STBI_NOTUSED(ri); + j->s = s; + stbi__setup_jpeg(j); + result = load_jpeg_image(j, x,y,comp,req_comp); + STBI_FREE(j); + return result; +} + +static int stbi__jpeg_test(stbi__context *s) +{ + int r; + stbi__jpeg* j = (stbi__jpeg*)stbi__malloc(sizeof(stbi__jpeg)); + j->s = s; + stbi__setup_jpeg(j); + r = stbi__decode_jpeg_header(j, STBI__SCAN_type); + stbi__rewind(s); + STBI_FREE(j); + return r; +} + +static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp) +{ + if (!stbi__decode_jpeg_header(j, STBI__SCAN_header)) { + stbi__rewind( j->s ); + return 0; + } + if (x) *x = j->s->img_x; + if (y) *y = j->s->img_y; + if (comp) *comp = j->s->img_n >= 3 ? 3 : 1; + return 1; +} + +static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp) +{ + int result; + stbi__jpeg* j = (stbi__jpeg*) (stbi__malloc(sizeof(stbi__jpeg))); + j->s = s; + result = stbi__jpeg_info_raw(j, x, y, comp); + STBI_FREE(j); + return result; +} +#endif + +// public domain zlib decode v0.2 Sean Barrett 2006-11-18 +// simple implementation +// - all input must be provided in an upfront buffer +// - all output is written to a single output buffer (can malloc/realloc) +// performance +// - fast huffman + +#ifndef STBI_NO_ZLIB + +// fast-way is faster to check than jpeg huffman, but slow way is slower +#define STBI__ZFAST_BITS 9 // accelerate all cases in default tables +#define STBI__ZFAST_MASK ((1 << STBI__ZFAST_BITS) - 1) + +// zlib-style huffman encoding +// (jpegs packs from left, zlib from right, so can't share code) +typedef struct +{ + stbi__uint16 fast[1 << STBI__ZFAST_BITS]; + stbi__uint16 firstcode[16]; + int maxcode[17]; + stbi__uint16 firstsymbol[16]; + stbi_uc size[288]; + stbi__uint16 value[288]; +} stbi__zhuffman; + +stbi_inline static int stbi__bitreverse16(int n) +{ + n = ((n & 0xAAAA) >> 1) | ((n & 0x5555) << 1); + n = ((n & 0xCCCC) >> 2) | ((n & 0x3333) << 2); + n = ((n & 0xF0F0) >> 4) | ((n & 0x0F0F) << 4); + n = ((n & 0xFF00) >> 8) | ((n & 0x00FF) << 8); + return n; +} + +stbi_inline static int stbi__bit_reverse(int v, int bits) +{ + STBI_ASSERT(bits <= 16); + // to bit reverse n bits, reverse 16 and shift + // e.g. 11 bits, bit reverse and shift away 5 + return stbi__bitreverse16(v) >> (16-bits); +} + +static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num) +{ + int i,k=0; + int code, next_code[16], sizes[17]; + + // DEFLATE spec for generating codes + memset(sizes, 0, sizeof(sizes)); + memset(z->fast, 0, sizeof(z->fast)); + for (i=0; i < num; ++i) + ++sizes[sizelist[i]]; + sizes[0] = 0; + for (i=1; i < 16; ++i) + if (sizes[i] > (1 << i)) + return stbi__err("bad sizes", "Corrupt PNG"); + code = 0; + for (i=1; i < 16; ++i) { + next_code[i] = code; + z->firstcode[i] = (stbi__uint16) code; + z->firstsymbol[i] = (stbi__uint16) k; + code = (code + sizes[i]); + if (sizes[i]) + if (code-1 >= (1 << i)) return stbi__err("bad codelengths","Corrupt PNG"); + z->maxcode[i] = code << (16-i); // preshift for inner loop + code <<= 1; + k += sizes[i]; + } + z->maxcode[16] = 0x10000; // sentinel + for (i=0; i < num; ++i) { + int s = sizelist[i]; + if (s) { + int c = next_code[s] - z->firstcode[s] + z->firstsymbol[s]; + stbi__uint16 fastv = (stbi__uint16) ((s << 9) | i); + z->size [c] = (stbi_uc ) s; + z->value[c] = (stbi__uint16) i; + if (s <= STBI__ZFAST_BITS) { + int j = stbi__bit_reverse(next_code[s],s); + while (j < (1 << STBI__ZFAST_BITS)) { + z->fast[j] = fastv; + j += (1 << s); + } + } + ++next_code[s]; + } + } + return 1; +} + +// zlib-from-memory implementation for PNG reading +// because PNG allows splitting the zlib stream arbitrarily, +// and it's annoying structurally to have PNG call ZLIB call PNG, +// we require PNG read all the IDATs and combine them into a single +// memory buffer + +typedef struct +{ + stbi_uc *zbuffer, *zbuffer_end; + int num_bits; + stbi__uint32 code_buffer; + + char *zout; + char *zout_start; + char *zout_end; + int z_expandable; + + stbi__zhuffman z_length, z_distance; +} stbi__zbuf; + +stbi_inline static int stbi__zeof(stbi__zbuf *z) +{ + return (z->zbuffer >= z->zbuffer_end); +} + +stbi_inline static stbi_uc stbi__zget8(stbi__zbuf *z) +{ + return stbi__zeof(z) ? 0 : *z->zbuffer++; +} + +static void stbi__fill_bits(stbi__zbuf *z) +{ + do { + if (z->code_buffer >= (1U << z->num_bits)) { + z->zbuffer = z->zbuffer_end; /* treat this as EOF so we fail. */ + return; + } + z->code_buffer |= (unsigned int) stbi__zget8(z) << z->num_bits; + z->num_bits += 8; + } while (z->num_bits <= 24); +} + +stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n) +{ + unsigned int k; + if (z->num_bits < n) stbi__fill_bits(z); + k = z->code_buffer & ((1 << n) - 1); + z->code_buffer >>= n; + z->num_bits -= n; + return k; +} + +static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z) +{ + int b,s,k; + // not resolved by fast table, so compute it the slow way + // use jpeg approach, which requires MSbits at top + k = stbi__bit_reverse(a->code_buffer, 16); + for (s=STBI__ZFAST_BITS+1; ; ++s) + if (k < z->maxcode[s]) + break; + if (s >= 16) return -1; // invalid code! + // code size is s, so: + b = (k >> (16-s)) - z->firstcode[s] + z->firstsymbol[s]; + if (b >= sizeof (z->size)) return -1; // some data was corrupt somewhere! + if (z->size[b] != s) return -1; // was originally an assert, but report failure instead. + a->code_buffer >>= s; + a->num_bits -= s; + return z->value[b]; +} + +stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z) +{ + int b,s; + if (a->num_bits < 16) { + if (stbi__zeof(a)) { + return -1; /* report error for unexpected end of data. */ + } + stbi__fill_bits(a); + } + b = z->fast[a->code_buffer & STBI__ZFAST_MASK]; + if (b) { + s = b >> 9; + a->code_buffer >>= s; + a->num_bits -= s; + return b & 511; + } + return stbi__zhuffman_decode_slowpath(a, z); +} + +static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes +{ + char *q; + unsigned int cur, limit, old_limit; + z->zout = zout; + if (!z->z_expandable) return stbi__err("output buffer limit","Corrupt PNG"); + cur = (unsigned int) (z->zout - z->zout_start); + limit = old_limit = (unsigned) (z->zout_end - z->zout_start); + if (UINT_MAX - cur < (unsigned) n) return stbi__err("outofmem", "Out of memory"); + while (cur + n > limit) { + if(limit > UINT_MAX / 2) return stbi__err("outofmem", "Out of memory"); + limit *= 2; + } + q = (char *) STBI_REALLOC_SIZED(z->zout_start, old_limit, limit); + STBI_NOTUSED(old_limit); + if (q == NULL) return stbi__err("outofmem", "Out of memory"); + z->zout_start = q; + z->zout = q + cur; + z->zout_end = q + limit; + return 1; +} + +static const int stbi__zlength_base[31] = { + 3,4,5,6,7,8,9,10,11,13, + 15,17,19,23,27,31,35,43,51,59, + 67,83,99,115,131,163,195,227,258,0,0 }; + +static const int stbi__zlength_extra[31]= +{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 }; + +static const int stbi__zdist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193, +257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0}; + +static const int stbi__zdist_extra[32] = +{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}; + +static int stbi__parse_huffman_block(stbi__zbuf *a) +{ + char *zout = a->zout; + for(;;) { + int z = stbi__zhuffman_decode(a, &a->z_length); + if (z < 256) { + if (z < 0) return stbi__err("bad huffman code","Corrupt PNG"); // error in huffman codes + if (zout >= a->zout_end) { + if (!stbi__zexpand(a, zout, 1)) return 0; + zout = a->zout; + } + *zout++ = (char) z; + } else { + stbi_uc *p; + int len,dist; + if (z == 256) { + a->zout = zout; + return 1; + } + z -= 257; + len = stbi__zlength_base[z]; + if (stbi__zlength_extra[z]) len += stbi__zreceive(a, stbi__zlength_extra[z]); + z = stbi__zhuffman_decode(a, &a->z_distance); + if (z < 0) return stbi__err("bad huffman code","Corrupt PNG"); + dist = stbi__zdist_base[z]; + if (stbi__zdist_extra[z]) dist += stbi__zreceive(a, stbi__zdist_extra[z]); + if (zout - a->zout_start < dist) return stbi__err("bad dist","Corrupt PNG"); + if (zout + len > a->zout_end) { + if (!stbi__zexpand(a, zout, len)) return 0; + zout = a->zout; + } + p = (stbi_uc *) (zout - dist); + if (dist == 1) { // run of one byte; common in images. + stbi_uc v = *p; + if (len) { do *zout++ = v; while (--len); } + } else { + if (len) { do *zout++ = *p++; while (--len); } + } + } + } +} + +static int stbi__compute_huffman_codes(stbi__zbuf *a) +{ + static const stbi_uc length_dezigzag[19] = { 16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15 }; + stbi__zhuffman z_codelength; + stbi_uc lencodes[286+32+137];//padding for maximum single op + stbi_uc codelength_sizes[19]; + int i,n; + + int hlit = stbi__zreceive(a,5) + 257; + int hdist = stbi__zreceive(a,5) + 1; + int hclen = stbi__zreceive(a,4) + 4; + int ntot = hlit + hdist; + + memset(codelength_sizes, 0, sizeof(codelength_sizes)); + for (i=0; i < hclen; ++i) { + int s = stbi__zreceive(a,3); + codelength_sizes[length_dezigzag[i]] = (stbi_uc) s; + } + if (!stbi__zbuild_huffman(&z_codelength, codelength_sizes, 19)) return 0; + + n = 0; + while (n < ntot) { + int c = stbi__zhuffman_decode(a, &z_codelength); + if (c < 0 || c >= 19) return stbi__err("bad codelengths", "Corrupt PNG"); + if (c < 16) + lencodes[n++] = (stbi_uc) c; + else { + stbi_uc fill = 0; + if (c == 16) { + c = stbi__zreceive(a,2)+3; + if (n == 0) return stbi__err("bad codelengths", "Corrupt PNG"); + fill = lencodes[n-1]; + } else if (c == 17) { + c = stbi__zreceive(a,3)+3; + } else if (c == 18) { + c = stbi__zreceive(a,7)+11; + } else { + return stbi__err("bad codelengths", "Corrupt PNG"); + } + if (ntot - n < c) return stbi__err("bad codelengths", "Corrupt PNG"); + memset(lencodes+n, fill, c); + n += c; + } + } + if (n != ntot) return stbi__err("bad codelengths","Corrupt PNG"); + if (!stbi__zbuild_huffman(&a->z_length, lencodes, hlit)) return 0; + if (!stbi__zbuild_huffman(&a->z_distance, lencodes+hlit, hdist)) return 0; + return 1; +} + +static int stbi__parse_uncompressed_block(stbi__zbuf *a) +{ + stbi_uc header[4]; + int len,nlen,k; + if (a->num_bits & 7) + stbi__zreceive(a, a->num_bits & 7); // discard + // drain the bit-packed data into header + k = 0; + while (a->num_bits > 0) { + header[k++] = (stbi_uc) (a->code_buffer & 255); // suppress MSVC run-time check + a->code_buffer >>= 8; + a->num_bits -= 8; + } + if (a->num_bits < 0) return stbi__err("zlib corrupt","Corrupt PNG"); + // now fill header the normal way + while (k < 4) + header[k++] = stbi__zget8(a); + len = header[1] * 256 + header[0]; + nlen = header[3] * 256 + header[2]; + if (nlen != (len ^ 0xffff)) return stbi__err("zlib corrupt","Corrupt PNG"); + if (a->zbuffer + len > a->zbuffer_end) return stbi__err("read past buffer","Corrupt PNG"); + if (a->zout + len > a->zout_end) + if (!stbi__zexpand(a, a->zout, len)) return 0; + memcpy(a->zout, a->zbuffer, len); + a->zbuffer += len; + a->zout += len; + return 1; +} + +static int stbi__parse_zlib_header(stbi__zbuf *a) +{ + int cmf = stbi__zget8(a); + int cm = cmf & 15; + /* int cinfo = cmf >> 4; */ + int flg = stbi__zget8(a); + if (stbi__zeof(a)) return stbi__err("bad zlib header","Corrupt PNG"); // zlib spec + if ((cmf*256+flg) % 31 != 0) return stbi__err("bad zlib header","Corrupt PNG"); // zlib spec + if (flg & 32) return stbi__err("no preset dict","Corrupt PNG"); // preset dictionary not allowed in png + if (cm != 8) return stbi__err("bad compression","Corrupt PNG"); // DEFLATE required for png + // window = 1 << (8 + cinfo)... but who cares, we fully buffer output + return 1; +} + +static const stbi_uc stbi__zdefault_length[288] = +{ + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8 +}; +static const stbi_uc stbi__zdefault_distance[32] = +{ + 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 +}; +/* +Init algorithm: +{ + int i; // use <= to match clearly with spec + for (i=0; i <= 143; ++i) stbi__zdefault_length[i] = 8; + for ( ; i <= 255; ++i) stbi__zdefault_length[i] = 9; + for ( ; i <= 279; ++i) stbi__zdefault_length[i] = 7; + for ( ; i <= 287; ++i) stbi__zdefault_length[i] = 8; + + for (i=0; i <= 31; ++i) stbi__zdefault_distance[i] = 5; +} +*/ + +static int stbi__parse_zlib(stbi__zbuf *a, int parse_header) +{ + int final, type; + if (parse_header) + if (!stbi__parse_zlib_header(a)) return 0; + a->num_bits = 0; + a->code_buffer = 0; + do { + final = stbi__zreceive(a,1); + type = stbi__zreceive(a,2); + if (type == 0) { + if (!stbi__parse_uncompressed_block(a)) return 0; + } else if (type == 3) { + return 0; + } else { + if (type == 1) { + // use fixed code lengths + if (!stbi__zbuild_huffman(&a->z_length , stbi__zdefault_length , 288)) return 0; + if (!stbi__zbuild_huffman(&a->z_distance, stbi__zdefault_distance, 32)) return 0; + } else { + if (!stbi__compute_huffman_codes(a)) return 0; + } + if (!stbi__parse_huffman_block(a)) return 0; + } + } while (!final); + return 1; +} + +static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header) +{ + a->zout_start = obuf; + a->zout = obuf; + a->zout_end = obuf + olen; + a->z_expandable = exp; + + return stbi__parse_zlib(a, parse_header); +} + +STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(initial_size); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer + len; + if (stbi__do_zlib(&a, p, initial_size, 1, 1)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen) +{ + return stbi_zlib_decode_malloc_guesssize(buffer, len, 16384, outlen); +} + +STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(initial_size); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer + len; + if (stbi__do_zlib(&a, p, initial_size, 1, parse_header)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen) +{ + stbi__zbuf a; + a.zbuffer = (stbi_uc *) ibuffer; + a.zbuffer_end = (stbi_uc *) ibuffer + ilen; + if (stbi__do_zlib(&a, obuffer, olen, 0, 1)) + return (int) (a.zout - a.zout_start); + else + return -1; +} + +STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(16384); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer+len; + if (stbi__do_zlib(&a, p, 16384, 1, 0)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen) +{ + stbi__zbuf a; + a.zbuffer = (stbi_uc *) ibuffer; + a.zbuffer_end = (stbi_uc *) ibuffer + ilen; + if (stbi__do_zlib(&a, obuffer, olen, 0, 0)) + return (int) (a.zout - a.zout_start); + else + return -1; +} +#endif + +// public domain "baseline" PNG decoder v0.10 Sean Barrett 2006-11-18 +// simple implementation +// - only 8-bit samples +// - no CRC checking +// - allocates lots of intermediate memory +// - avoids problem of streaming data between subsystems +// - avoids explicit window management +// performance +// - uses stb_zlib, a PD zlib implementation with fast huffman decoding + +#ifndef STBI_NO_PNG +typedef struct +{ + stbi__uint32 length; + stbi__uint32 type; +} stbi__pngchunk; + +static stbi__pngchunk stbi__get_chunk_header(stbi__context *s) +{ + stbi__pngchunk c; + c.length = stbi__get32be(s); + c.type = stbi__get32be(s); + return c; +} + +static int stbi__check_png_header(stbi__context *s) +{ + static const stbi_uc png_sig[8] = { 137,80,78,71,13,10,26,10 }; + int i; + for (i=0; i < 8; ++i) + if (stbi__get8(s) != png_sig[i]) return stbi__err("bad png sig","Not a PNG"); + return 1; +} + +typedef struct +{ + stbi__context *s; + stbi_uc *idata, *expanded, *out; + int depth; +} stbi__png; + + +enum { + STBI__F_none=0, + STBI__F_sub=1, + STBI__F_up=2, + STBI__F_avg=3, + STBI__F_paeth=4, + // synthetic filters used for first scanline to avoid needing a dummy row of 0s + STBI__F_avg_first, + STBI__F_paeth_first +}; + +static stbi_uc first_row_filter[5] = +{ + STBI__F_none, + STBI__F_sub, + STBI__F_none, + STBI__F_avg_first, + STBI__F_paeth_first +}; + +static int stbi__paeth(int a, int b, int c) +{ + int p = a + b - c; + int pa = abs(p-a); + int pb = abs(p-b); + int pc = abs(p-c); + if (pa <= pb && pa <= pc) return a; + if (pb <= pc) return b; + return c; +} + +static const stbi_uc stbi__depth_scale_table[9] = { 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 }; + +// create the png data from post-deflated data +static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color) +{ + int bytes = (depth == 16? 2 : 1); + stbi__context *s = a->s; + stbi__uint32 i,j,stride = x*out_n*bytes; + stbi__uint32 img_len, img_width_bytes; + int k; + int img_n = s->img_n; // copy it into a local for later + + int output_bytes = out_n*bytes; + int filter_bytes = img_n*bytes; + int width = x; + + STBI_ASSERT(out_n == s->img_n || out_n == s->img_n+1); + a->out = (stbi_uc *) stbi__malloc_mad3(x, y, output_bytes, 0); // extra bytes to write off the end into + if (!a->out) return stbi__err("outofmem", "Out of memory"); + + if (!stbi__mad3sizes_valid(img_n, x, depth, 7)) return stbi__err("too large", "Corrupt PNG"); + img_width_bytes = (((img_n * x * depth) + 7) >> 3); + img_len = (img_width_bytes + 1) * y; + + // we used to check for exact match between raw_len and img_len on non-interlaced PNGs, + // but issue #276 reported a PNG in the wild that had extra data at the end (all zeros), + // so just check for raw_len < img_len always. + if (raw_len < img_len) return stbi__err("not enough pixels","Corrupt PNG"); + + for (j=0; j < y; ++j) { + stbi_uc *cur = a->out + stride*j; + stbi_uc *prior; + int filter = *raw++; + + if (filter > 4) + return stbi__err("invalid filter","Corrupt PNG"); + + if (depth < 8) { + if (img_width_bytes > x) return stbi__err("invalid width","Corrupt PNG"); + cur += x*out_n - img_width_bytes; // store output to the rightmost img_len bytes, so we can decode in place + filter_bytes = 1; + width = img_width_bytes; + } + prior = cur - stride; // bugfix: need to compute this after 'cur +=' computation above + + // if first row, use special filter that doesn't sample previous row + if (j == 0) filter = first_row_filter[filter]; + + // handle first byte explicitly + for (k=0; k < filter_bytes; ++k) { + switch (filter) { + case STBI__F_none : cur[k] = raw[k]; break; + case STBI__F_sub : cur[k] = raw[k]; break; + case STBI__F_up : cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break; + case STBI__F_avg : cur[k] = STBI__BYTECAST(raw[k] + (prior[k]>>1)); break; + case STBI__F_paeth : cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(0,prior[k],0)); break; + case STBI__F_avg_first : cur[k] = raw[k]; break; + case STBI__F_paeth_first: cur[k] = raw[k]; break; + } + } + + if (depth == 8) { + if (img_n != out_n) + cur[img_n] = 255; // first pixel + raw += img_n; + cur += out_n; + prior += out_n; + } else if (depth == 16) { + if (img_n != out_n) { + cur[filter_bytes] = 255; // first pixel top byte + cur[filter_bytes+1] = 255; // first pixel bottom byte + } + raw += filter_bytes; + cur += output_bytes; + prior += output_bytes; + } else { + raw += 1; + cur += 1; + prior += 1; + } + + // this is a little gross, so that we don't switch per-pixel or per-component + if (depth < 8 || img_n == out_n) { + int nk = (width - 1)*filter_bytes; + #define STBI__CASE(f) \ + case f: \ + for (k=0; k < nk; ++k) + switch (filter) { + // "none" filter turns into a memcpy here; make that explicit. + case STBI__F_none: memcpy(cur, raw, nk); break; + STBI__CASE(STBI__F_sub) { cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); } break; + STBI__CASE(STBI__F_up) { cur[k] = STBI__BYTECAST(raw[k] + prior[k]); } break; + STBI__CASE(STBI__F_avg) { cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); } break; + STBI__CASE(STBI__F_paeth) { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],prior[k],prior[k-filter_bytes])); } break; + STBI__CASE(STBI__F_avg_first) { cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); } break; + STBI__CASE(STBI__F_paeth_first) { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],0,0)); } break; + } + #undef STBI__CASE + raw += nk; + } else { + STBI_ASSERT(img_n+1 == out_n); + #define STBI__CASE(f) \ + case f: \ + for (i=x-1; i >= 1; --i, cur[filter_bytes]=255,raw+=filter_bytes,cur+=output_bytes,prior+=output_bytes) \ + for (k=0; k < filter_bytes; ++k) + switch (filter) { + STBI__CASE(STBI__F_none) { cur[k] = raw[k]; } break; + STBI__CASE(STBI__F_sub) { cur[k] = STBI__BYTECAST(raw[k] + cur[k- output_bytes]); } break; + STBI__CASE(STBI__F_up) { cur[k] = STBI__BYTECAST(raw[k] + prior[k]); } break; + STBI__CASE(STBI__F_avg) { cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k- output_bytes])>>1)); } break; + STBI__CASE(STBI__F_paeth) { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k- output_bytes],prior[k],prior[k- output_bytes])); } break; + STBI__CASE(STBI__F_avg_first) { cur[k] = STBI__BYTECAST(raw[k] + (cur[k- output_bytes] >> 1)); } break; + STBI__CASE(STBI__F_paeth_first) { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k- output_bytes],0,0)); } break; + } + #undef STBI__CASE + + // the loop above sets the high byte of the pixels' alpha, but for + // 16 bit png files we also need the low byte set. we'll do that here. + if (depth == 16) { + cur = a->out + stride*j; // start at the beginning of the row again + for (i=0; i < x; ++i,cur+=output_bytes) { + cur[filter_bytes+1] = 255; + } + } + } + } + + // we make a separate pass to expand bits to pixels; for performance, + // this could run two scanlines behind the above code, so it won't + // intefere with filtering but will still be in the cache. + if (depth < 8) { + for (j=0; j < y; ++j) { + stbi_uc *cur = a->out + stride*j; + stbi_uc *in = a->out + stride*j + x*out_n - img_width_bytes; + // unpack 1/2/4-bit into a 8-bit buffer. allows us to keep the common 8-bit path optimal at minimal cost for 1/2/4-bit + // png guarante byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that will be skipped in the later loop + stbi_uc scale = (color == 0) ? stbi__depth_scale_table[depth] : 1; // scale grayscale values to 0..255 range + + // note that the final byte might overshoot and write more data than desired. + // we can allocate enough data that this never writes out of memory, but it + // could also overwrite the next scanline. can it overwrite non-empty data + // on the next scanline? yes, consider 1-pixel-wide scanlines with 1-bit-per-pixel. + // so we need to explicitly clamp the final ones + + if (depth == 4) { + for (k=x*img_n; k >= 2; k-=2, ++in) { + *cur++ = scale * ((*in >> 4) ); + *cur++ = scale * ((*in ) & 0x0f); + } + if (k > 0) *cur++ = scale * ((*in >> 4) ); + } else if (depth == 2) { + for (k=x*img_n; k >= 4; k-=4, ++in) { + *cur++ = scale * ((*in >> 6) ); + *cur++ = scale * ((*in >> 4) & 0x03); + *cur++ = scale * ((*in >> 2) & 0x03); + *cur++ = scale * ((*in ) & 0x03); + } + if (k > 0) *cur++ = scale * ((*in >> 6) ); + if (k > 1) *cur++ = scale * ((*in >> 4) & 0x03); + if (k > 2) *cur++ = scale * ((*in >> 2) & 0x03); + } else if (depth == 1) { + for (k=x*img_n; k >= 8; k-=8, ++in) { + *cur++ = scale * ((*in >> 7) ); + *cur++ = scale * ((*in >> 6) & 0x01); + *cur++ = scale * ((*in >> 5) & 0x01); + *cur++ = scale * ((*in >> 4) & 0x01); + *cur++ = scale * ((*in >> 3) & 0x01); + *cur++ = scale * ((*in >> 2) & 0x01); + *cur++ = scale * ((*in >> 1) & 0x01); + *cur++ = scale * ((*in ) & 0x01); + } + if (k > 0) *cur++ = scale * ((*in >> 7) ); + if (k > 1) *cur++ = scale * ((*in >> 6) & 0x01); + if (k > 2) *cur++ = scale * ((*in >> 5) & 0x01); + if (k > 3) *cur++ = scale * ((*in >> 4) & 0x01); + if (k > 4) *cur++ = scale * ((*in >> 3) & 0x01); + if (k > 5) *cur++ = scale * ((*in >> 2) & 0x01); + if (k > 6) *cur++ = scale * ((*in >> 1) & 0x01); + } + if (img_n != out_n) { + int q; + // insert alpha = 255 + cur = a->out + stride*j; + if (img_n == 1) { + for (q=x-1; q >= 0; --q) { + cur[q*2+1] = 255; + cur[q*2+0] = cur[q]; + } + } else { + STBI_ASSERT(img_n == 3); + for (q=x-1; q >= 0; --q) { + cur[q*4+3] = 255; + cur[q*4+2] = cur[q*3+2]; + cur[q*4+1] = cur[q*3+1]; + cur[q*4+0] = cur[q*3+0]; + } + } + } + } + } else if (depth == 16) { + // force the image data from big-endian to platform-native. + // this is done in a separate pass due to the decoding relying + // on the data being untouched, but could probably be done + // per-line during decode if care is taken. + stbi_uc *cur = a->out; + stbi__uint16 *cur16 = (stbi__uint16*)cur; + + for(i=0; i < x*y*out_n; ++i,cur16++,cur+=2) { + *cur16 = (cur[0] << 8) | cur[1]; + } + } + + return 1; +} + +static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced) +{ + int bytes = (depth == 16 ? 2 : 1); + int out_bytes = out_n * bytes; + stbi_uc *final; + int p; + if (!interlaced) + return stbi__create_png_image_raw(a, image_data, image_data_len, out_n, a->s->img_x, a->s->img_y, depth, color); + + // de-interlacing + final = (stbi_uc *) stbi__malloc_mad3(a->s->img_x, a->s->img_y, out_bytes, 0); + for (p=0; p < 7; ++p) { + int xorig[] = { 0,4,0,2,0,1,0 }; + int yorig[] = { 0,0,4,0,2,0,1 }; + int xspc[] = { 8,8,4,4,2,2,1 }; + int yspc[] = { 8,8,8,4,4,2,2 }; + int i,j,x,y; + // pass1_x[4] = 0, pass1_x[5] = 1, pass1_x[12] = 1 + x = (a->s->img_x - xorig[p] + xspc[p]-1) / xspc[p]; + y = (a->s->img_y - yorig[p] + yspc[p]-1) / yspc[p]; + if (x && y) { + stbi__uint32 img_len = ((((a->s->img_n * x * depth) + 7) >> 3) + 1) * y; + if (!stbi__create_png_image_raw(a, image_data, image_data_len, out_n, x, y, depth, color)) { + STBI_FREE(final); + return 0; + } + for (j=0; j < y; ++j) { + for (i=0; i < x; ++i) { + int out_y = j*yspc[p]+yorig[p]; + int out_x = i*xspc[p]+xorig[p]; + memcpy(final + out_y*a->s->img_x*out_bytes + out_x*out_bytes, + a->out + (j*x+i)*out_bytes, out_bytes); + } + } + STBI_FREE(a->out); + image_data += img_len; + image_data_len -= img_len; + } + } + a->out = final; + + return 1; +} + +static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi_uc *p = z->out; + + // compute color-based transparency, assuming we've + // already got 255 as the alpha value in the output + STBI_ASSERT(out_n == 2 || out_n == 4); + + if (out_n == 2) { + for (i=0; i < pixel_count; ++i) { + p[1] = (p[0] == tc[0] ? 0 : 255); + p += 2; + } + } else { + for (i=0; i < pixel_count; ++i) { + if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2]) + p[3] = 0; + p += 4; + } + } + return 1; +} + +static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi__uint16 *p = (stbi__uint16*) z->out; + + // compute color-based transparency, assuming we've + // already got 65535 as the alpha value in the output + STBI_ASSERT(out_n == 2 || out_n == 4); + + if (out_n == 2) { + for (i = 0; i < pixel_count; ++i) { + p[1] = (p[0] == tc[0] ? 0 : 65535); + p += 2; + } + } else { + for (i = 0; i < pixel_count; ++i) { + if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2]) + p[3] = 0; + p += 4; + } + } + return 1; +} + +static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n) +{ + stbi__uint32 i, pixel_count = a->s->img_x * a->s->img_y; + stbi_uc *p, *temp_out, *orig = a->out; + + p = (stbi_uc *) stbi__malloc_mad2(pixel_count, pal_img_n, 0); + if (p == NULL) return stbi__err("outofmem", "Out of memory"); + + // between here and free(out) below, exitting would leak + temp_out = p; + + if (pal_img_n == 3) { + for (i=0; i < pixel_count; ++i) { + int n = orig[i]*4; + p[0] = palette[n ]; + p[1] = palette[n+1]; + p[2] = palette[n+2]; + p += 3; + } + } else { + for (i=0; i < pixel_count; ++i) { + int n = orig[i]*4; + p[0] = palette[n ]; + p[1] = palette[n+1]; + p[2] = palette[n+2]; + p[3] = palette[n+3]; + p += 4; + } + } + STBI_FREE(a->out); + a->out = temp_out; + + STBI_NOTUSED(len); + + return 1; +} + +static int stbi__unpremultiply_on_load = 0; +static int stbi__de_iphone_flag = 0; + +STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply) +{ + stbi__unpremultiply_on_load = flag_true_if_should_unpremultiply; +} + +STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert) +{ + stbi__de_iphone_flag = flag_true_if_should_convert; +} + +static void stbi__de_iphone(stbi__png *z) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi_uc *p = z->out; + + if (s->img_out_n == 3) { // convert bgr to rgb + for (i=0; i < pixel_count; ++i) { + stbi_uc t = p[0]; + p[0] = p[2]; + p[2] = t; + p += 3; + } + } else { + STBI_ASSERT(s->img_out_n == 4); + if (stbi__unpremultiply_on_load) { + // convert bgr to rgb and unpremultiply + for (i=0; i < pixel_count; ++i) { + stbi_uc a = p[3]; + stbi_uc t = p[0]; + if (a) { + stbi_uc half = a / 2; + p[0] = (p[2] * 255 + half) / a; + p[1] = (p[1] * 255 + half) / a; + p[2] = ( t * 255 + half) / a; + } else { + p[0] = p[2]; + p[2] = t; + } + p += 4; + } + } else { + // convert bgr to rgb + for (i=0; i < pixel_count; ++i) { + stbi_uc t = p[0]; + p[0] = p[2]; + p[2] = t; + p += 4; + } + } + } +} + +#define STBI__PNG_TYPE(a,b,c,d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d)) + +static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp) +{ + stbi_uc palette[1024], pal_img_n=0; + stbi_uc has_trans=0, tc[3]={0}; + stbi__uint16 tc16[3]; + stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0; + int first=1,k,interlace=0, color=0, is_iphone=0; + stbi__context *s = z->s; + + z->expanded = NULL; + z->idata = NULL; + z->out = NULL; + + if (!stbi__check_png_header(s)) return 0; + + if (scan == STBI__SCAN_type) return 1; + + for (;;) { + stbi__pngchunk c = stbi__get_chunk_header(s); + switch (c.type) { + case STBI__PNG_TYPE('C','g','B','I'): + is_iphone = 1; + stbi__skip(s, c.length); + break; + case STBI__PNG_TYPE('I','H','D','R'): { + int comp,filter; + if (!first) return stbi__err("multiple IHDR","Corrupt PNG"); + first = 0; + if (c.length != 13) return stbi__err("bad IHDR len","Corrupt PNG"); + s->img_x = stbi__get32be(s); + s->img_y = stbi__get32be(s); + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + z->depth = stbi__get8(s); if (z->depth != 1 && z->depth != 2 && z->depth != 4 && z->depth != 8 && z->depth != 16) return stbi__err("1/2/4/8/16-bit only","PNG not supported: 1/2/4/8/16-bit only"); + color = stbi__get8(s); if (color > 6) return stbi__err("bad ctype","Corrupt PNG"); + if (color == 3 && z->depth == 16) return stbi__err("bad ctype","Corrupt PNG"); + if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG"); + comp = stbi__get8(s); if (comp) return stbi__err("bad comp method","Corrupt PNG"); + filter= stbi__get8(s); if (filter) return stbi__err("bad filter method","Corrupt PNG"); + interlace = stbi__get8(s); if (interlace>1) return stbi__err("bad interlace method","Corrupt PNG"); + if (!s->img_x || !s->img_y) return stbi__err("0-pixel image","Corrupt PNG"); + if (!pal_img_n) { + s->img_n = (color & 2 ? 3 : 1) + (color & 4 ? 1 : 0); + if ((1 << 30) / s->img_x / s->img_n < s->img_y) return stbi__err("too large", "Image too large to decode"); + if (scan == STBI__SCAN_header) return 1; + } else { + // if paletted, then pal_n is our final components, and + // img_n is # components to decompress/filter. + s->img_n = 1; + if ((1 << 30) / s->img_x / 4 < s->img_y) return stbi__err("too large","Corrupt PNG"); + // if SCAN_header, have to scan to see if we have a tRNS + } + break; + } + + case STBI__PNG_TYPE('P','L','T','E'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (c.length > 256*3) return stbi__err("invalid PLTE","Corrupt PNG"); + pal_len = c.length / 3; + if (pal_len * 3 != c.length) return stbi__err("invalid PLTE","Corrupt PNG"); + for (i=0; i < pal_len; ++i) { + palette[i*4+0] = stbi__get8(s); + palette[i*4+1] = stbi__get8(s); + palette[i*4+2] = stbi__get8(s); + palette[i*4+3] = 255; + } + break; + } + + case STBI__PNG_TYPE('t','R','N','S'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (z->idata) return stbi__err("tRNS after IDAT","Corrupt PNG"); + if (pal_img_n) { + if (scan == STBI__SCAN_header) { s->img_n = 4; return 1; } + if (pal_len == 0) return stbi__err("tRNS before PLTE","Corrupt PNG"); + if (c.length > pal_len) return stbi__err("bad tRNS len","Corrupt PNG"); + pal_img_n = 4; + for (i=0; i < c.length; ++i) + palette[i*4+3] = stbi__get8(s); + } else { + if (!(s->img_n & 1)) return stbi__err("tRNS with alpha","Corrupt PNG"); + if (c.length != (stbi__uint32) s->img_n*2) return stbi__err("bad tRNS len","Corrupt PNG"); + has_trans = 1; + if (z->depth == 16) { + for (k = 0; k < s->img_n; ++k) tc16[k] = (stbi__uint16)stbi__get16be(s); // copy the values as-is + } else { + for (k = 0; k < s->img_n; ++k) tc[k] = (stbi_uc)(stbi__get16be(s) & 255) * stbi__depth_scale_table[z->depth]; // non 8-bit images will be larger + } + } + break; + } + + case STBI__PNG_TYPE('I','D','A','T'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG"); + if (scan == STBI__SCAN_header) { s->img_n = pal_img_n; return 1; } + if ((int)(ioff + c.length) < (int)ioff) return 0; + if (ioff + c.length > idata_limit) { + stbi__uint32 idata_limit_old = idata_limit; + stbi_uc *p; + if (idata_limit == 0) idata_limit = c.length > 4096 ? c.length : 4096; + while (ioff + c.length > idata_limit) + idata_limit *= 2; + STBI_NOTUSED(idata_limit_old); + p = (stbi_uc *) STBI_REALLOC_SIZED(z->idata, idata_limit_old, idata_limit); if (p == NULL) return stbi__err("outofmem", "Out of memory"); + z->idata = p; + } + if (!stbi__getn(s, z->idata+ioff,c.length)) return stbi__err("outofdata","Corrupt PNG"); + ioff += c.length; + break; + } + + case STBI__PNG_TYPE('I','E','N','D'): { + stbi__uint32 raw_len, bpl; + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (scan != STBI__SCAN_load) return 1; + if (z->idata == NULL) return stbi__err("no IDAT","Corrupt PNG"); + // initial guess for decoded data size to avoid unnecessary reallocs + bpl = (s->img_x * z->depth + 7) / 8; // bytes per line, per component + raw_len = bpl * s->img_y * s->img_n /* pixels */ + s->img_y /* filter mode per row */; + z->expanded = (stbi_uc *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, raw_len, (int *) &raw_len, !is_iphone); + if (z->expanded == NULL) return 0; // zlib should set error + STBI_FREE(z->idata); z->idata = NULL; + if ((req_comp == s->img_n+1 && req_comp != 3 && !pal_img_n) || has_trans) + s->img_out_n = s->img_n+1; + else + s->img_out_n = s->img_n; + if (!stbi__create_png_image(z, z->expanded, raw_len, s->img_out_n, z->depth, color, interlace)) return 0; + if (has_trans) { + if (z->depth == 16) { + if (!stbi__compute_transparency16(z, tc16, s->img_out_n)) return 0; + } else { + if (!stbi__compute_transparency(z, tc, s->img_out_n)) return 0; + } + } + if (is_iphone && stbi__de_iphone_flag && s->img_out_n > 2) + stbi__de_iphone(z); + if (pal_img_n) { + // pal_img_n == 3 or 4 + s->img_n = pal_img_n; // record the actual colors we had + s->img_out_n = pal_img_n; + if (req_comp >= 3) s->img_out_n = req_comp; + if (!stbi__expand_png_palette(z, palette, pal_len, s->img_out_n)) + return 0; + } else if (has_trans) { + // non-paletted image with tRNS -> source image has (constant) alpha + ++s->img_n; + } + STBI_FREE(z->expanded); z->expanded = NULL; + // end of PNG chunk, read and skip CRC + stbi__get32be(s); + return 1; + } + + default: + // if critical, fail + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if ((c.type & (1 << 29)) == 0) { + #ifndef STBI_NO_FAILURE_STRINGS + // not threadsafe + static char invalid_chunk[] = "XXXX PNG chunk not known"; + invalid_chunk[0] = STBI__BYTECAST(c.type >> 24); + invalid_chunk[1] = STBI__BYTECAST(c.type >> 16); + invalid_chunk[2] = STBI__BYTECAST(c.type >> 8); + invalid_chunk[3] = STBI__BYTECAST(c.type >> 0); + #endif + return stbi__err(invalid_chunk, "PNG not supported: unknown PNG chunk type"); + } + stbi__skip(s, c.length); + break; + } + // end of PNG chunk, read and skip CRC + stbi__get32be(s); + } +} + +static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri) +{ + void *result=NULL; + if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); + if (stbi__parse_png_file(p, STBI__SCAN_load, req_comp)) { + if (p->depth <= 8) + ri->bits_per_channel = 8; + else if (p->depth == 16) + ri->bits_per_channel = 16; + else + return stbi__errpuc("bad bits_per_channel", "PNG not supported: unsupported color depth"); + result = p->out; + p->out = NULL; + if (req_comp && req_comp != p->s->img_out_n) { + if (ri->bits_per_channel == 8) + result = stbi__convert_format((unsigned char *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y); + else + result = stbi__convert_format16((stbi__uint16 *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y); + p->s->img_out_n = req_comp; + if (result == NULL) return result; + } + *x = p->s->img_x; + *y = p->s->img_y; + if (n) *n = p->s->img_n; + } + STBI_FREE(p->out); p->out = NULL; + STBI_FREE(p->expanded); p->expanded = NULL; + STBI_FREE(p->idata); p->idata = NULL; + + return result; +} + +static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi__png p; + p.s = s; + return stbi__do_png(&p, x,y,comp,req_comp, ri); +} + +static int stbi__png_test(stbi__context *s) +{ + int r; + r = stbi__check_png_header(s); + stbi__rewind(s); + return r; +} + +static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp) +{ + if (!stbi__parse_png_file(p, STBI__SCAN_header, 0)) { + stbi__rewind( p->s ); + return 0; + } + if (x) *x = p->s->img_x; + if (y) *y = p->s->img_y; + if (comp) *comp = p->s->img_n; + return 1; +} + +static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp) +{ + stbi__png p; + p.s = s; + return stbi__png_info_raw(&p, x, y, comp); +} + +static int stbi__png_is16(stbi__context *s) +{ + stbi__png p; + p.s = s; + if (!stbi__png_info_raw(&p, NULL, NULL, NULL)) + return 0; + if (p.depth != 16) { + stbi__rewind(p.s); + return 0; + } + return 1; +} +#endif + +// Microsoft/Windows BMP image + +#ifndef STBI_NO_BMP +static int stbi__bmp_test_raw(stbi__context *s) +{ + int r; + int sz; + if (stbi__get8(s) != 'B') return 0; + if (stbi__get8(s) != 'M') return 0; + stbi__get32le(s); // discard filesize + stbi__get16le(s); // discard reserved + stbi__get16le(s); // discard reserved + stbi__get32le(s); // discard data offset + sz = stbi__get32le(s); + r = (sz == 12 || sz == 40 || sz == 56 || sz == 108 || sz == 124); + return r; +} + +static int stbi__bmp_test(stbi__context *s) +{ + int r = stbi__bmp_test_raw(s); + stbi__rewind(s); + return r; +} + + +// returns 0..31 for the highest set bit +static int stbi__high_bit(unsigned int z) +{ + int n=0; + if (z == 0) return -1; + if (z >= 0x10000) { n += 16; z >>= 16; } + if (z >= 0x00100) { n += 8; z >>= 8; } + if (z >= 0x00010) { n += 4; z >>= 4; } + if (z >= 0x00004) { n += 2; z >>= 2; } + if (z >= 0x00002) { n += 1;/* >>= 1;*/ } + return n; +} + +static int stbi__bitcount(unsigned int a) +{ + a = (a & 0x55555555) + ((a >> 1) & 0x55555555); // max 2 + a = (a & 0x33333333) + ((a >> 2) & 0x33333333); // max 4 + a = (a + (a >> 4)) & 0x0f0f0f0f; // max 8 per 4, now 8 bits + a = (a + (a >> 8)); // max 16 per 8 bits + a = (a + (a >> 16)); // max 32 per 8 bits + return a & 0xff; +} + +// extract an arbitrarily-aligned N-bit value (N=bits) +// from v, and then make it 8-bits long and fractionally +// extend it to full full range. +static int stbi__shiftsigned(unsigned int v, int shift, int bits) +{ + static unsigned int mul_table[9] = { + 0, + 0xff/*0b11111111*/, 0x55/*0b01010101*/, 0x49/*0b01001001*/, 0x11/*0b00010001*/, + 0x21/*0b00100001*/, 0x41/*0b01000001*/, 0x81/*0b10000001*/, 0x01/*0b00000001*/, + }; + static unsigned int shift_table[9] = { + 0, 0,0,1,0,2,4,6,0, + }; + if (shift < 0) + v <<= -shift; + else + v >>= shift; + STBI_ASSERT(v < 256); + v >>= (8-bits); + STBI_ASSERT(bits >= 0 && bits <= 8); + return (int) ((unsigned) v * mul_table[bits]) >> shift_table[bits]; +} + +typedef struct +{ + int bpp, offset, hsz; + unsigned int mr,mg,mb,ma, all_a; + int extra_read; +} stbi__bmp_data; + +static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info) +{ + int hsz; + if (stbi__get8(s) != 'B' || stbi__get8(s) != 'M') return stbi__errpuc("not BMP", "Corrupt BMP"); + stbi__get32le(s); // discard filesize + stbi__get16le(s); // discard reserved + stbi__get16le(s); // discard reserved + info->offset = stbi__get32le(s); + info->hsz = hsz = stbi__get32le(s); + info->mr = info->mg = info->mb = info->ma = 0; + info->extra_read = 14; + + if (info->offset < 0) return stbi__errpuc("bad BMP", "bad BMP"); + + if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108 && hsz != 124) return stbi__errpuc("unknown BMP", "BMP type not supported: unknown"); + if (hsz == 12) { + s->img_x = stbi__get16le(s); + s->img_y = stbi__get16le(s); + } else { + s->img_x = stbi__get32le(s); + s->img_y = stbi__get32le(s); + } + if (stbi__get16le(s) != 1) return stbi__errpuc("bad BMP", "bad BMP"); + info->bpp = stbi__get16le(s); + if (hsz != 12) { + int compress = stbi__get32le(s); + if (compress == 1 || compress == 2) return stbi__errpuc("BMP RLE", "BMP type not supported: RLE"); + stbi__get32le(s); // discard sizeof + stbi__get32le(s); // discard hres + stbi__get32le(s); // discard vres + stbi__get32le(s); // discard colorsused + stbi__get32le(s); // discard max important + if (hsz == 40 || hsz == 56) { + if (hsz == 56) { + stbi__get32le(s); + stbi__get32le(s); + stbi__get32le(s); + stbi__get32le(s); + } + if (info->bpp == 16 || info->bpp == 32) { + if (compress == 0) { + if (info->bpp == 32) { + info->mr = 0xffu << 16; + info->mg = 0xffu << 8; + info->mb = 0xffu << 0; + info->ma = 0xffu << 24; + info->all_a = 0; // if all_a is 0 at end, then we loaded alpha channel but it was all 0 + } else { + info->mr = 31u << 10; + info->mg = 31u << 5; + info->mb = 31u << 0; + } + } else if (compress == 3) { + info->mr = stbi__get32le(s); + info->mg = stbi__get32le(s); + info->mb = stbi__get32le(s); + info->extra_read += 12; + // not documented, but generated by photoshop and handled by mspaint + if (info->mr == info->mg && info->mg == info->mb) { + // ?!?!? + return stbi__errpuc("bad BMP", "bad BMP"); + } + } else + return stbi__errpuc("bad BMP", "bad BMP"); + } + } else { + int i; + if (hsz != 108 && hsz != 124) + return stbi__errpuc("bad BMP", "bad BMP"); + info->mr = stbi__get32le(s); + info->mg = stbi__get32le(s); + info->mb = stbi__get32le(s); + info->ma = stbi__get32le(s); + stbi__get32le(s); // discard color space + for (i=0; i < 12; ++i) + stbi__get32le(s); // discard color space parameters + if (hsz == 124) { + stbi__get32le(s); // discard rendering intent + stbi__get32le(s); // discard offset of profile data + stbi__get32le(s); // discard size of profile data + stbi__get32le(s); // discard reserved + } + } + } + return (void *) 1; +} + + +static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi_uc *out; + unsigned int mr=0,mg=0,mb=0,ma=0, all_a; + stbi_uc pal[256][4]; + int psize=0,i,j,width; + int flip_vertically, pad, target; + stbi__bmp_data info; + STBI_NOTUSED(ri); + + info.all_a = 255; + if (stbi__bmp_parse_header(s, &info) == NULL) + return NULL; // error code already set + + flip_vertically = ((int) s->img_y) > 0; + s->img_y = abs((int) s->img_y); + + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + mr = info.mr; + mg = info.mg; + mb = info.mb; + ma = info.ma; + all_a = info.all_a; + + if (info.hsz == 12) { + if (info.bpp < 24) + psize = (info.offset - info.extra_read - 24) / 3; + } else { + if (info.bpp < 16) + psize = (info.offset - info.extra_read - info.hsz) >> 2; + } + if (psize == 0) { + STBI_ASSERT(info.offset == s->callback_already_read + (int) (s->img_buffer - s->img_buffer_original)); + if (info.offset != s->callback_already_read + (s->img_buffer - s->buffer_start)) { + return stbi__errpuc("bad offset", "Corrupt BMP"); + } + } + + if (info.bpp == 24 && ma == 0xff000000) + s->img_n = 3; + else + s->img_n = ma ? 4 : 3; + if (req_comp && req_comp >= 3) // we can directly decode 3 or 4 + target = req_comp; + else + target = s->img_n; // if they want monochrome, we'll post-convert + + // sanity-check size + if (!stbi__mad3sizes_valid(target, s->img_x, s->img_y, 0)) + return stbi__errpuc("too large", "Corrupt BMP"); + + out = (stbi_uc *) stbi__malloc_mad3(target, s->img_x, s->img_y, 0); + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + if (info.bpp < 16) { + int z=0; + if (psize == 0 || psize > 256) { STBI_FREE(out); return stbi__errpuc("invalid", "Corrupt BMP"); } + for (i=0; i < psize; ++i) { + pal[i][2] = stbi__get8(s); + pal[i][1] = stbi__get8(s); + pal[i][0] = stbi__get8(s); + if (info.hsz != 12) stbi__get8(s); + pal[i][3] = 255; + } + stbi__skip(s, info.offset - info.extra_read - info.hsz - psize * (info.hsz == 12 ? 3 : 4)); + if (info.bpp == 1) width = (s->img_x + 7) >> 3; + else if (info.bpp == 4) width = (s->img_x + 1) >> 1; + else if (info.bpp == 8) width = s->img_x; + else { STBI_FREE(out); return stbi__errpuc("bad bpp", "Corrupt BMP"); } + pad = (-width)&3; + if (info.bpp == 1) { + for (j=0; j < (int) s->img_y; ++j) { + int bit_offset = 7, v = stbi__get8(s); + for (i=0; i < (int) s->img_x; ++i) { + int color = (v>>bit_offset)&0x1; + out[z++] = pal[color][0]; + out[z++] = pal[color][1]; + out[z++] = pal[color][2]; + if (target == 4) out[z++] = 255; + if (i+1 == (int) s->img_x) break; + if((--bit_offset) < 0) { + bit_offset = 7; + v = stbi__get8(s); + } + } + stbi__skip(s, pad); + } + } else { + for (j=0; j < (int) s->img_y; ++j) { + for (i=0; i < (int) s->img_x; i += 2) { + int v=stbi__get8(s),v2=0; + if (info.bpp == 4) { + v2 = v & 15; + v >>= 4; + } + out[z++] = pal[v][0]; + out[z++] = pal[v][1]; + out[z++] = pal[v][2]; + if (target == 4) out[z++] = 255; + if (i+1 == (int) s->img_x) break; + v = (info.bpp == 8) ? stbi__get8(s) : v2; + out[z++] = pal[v][0]; + out[z++] = pal[v][1]; + out[z++] = pal[v][2]; + if (target == 4) out[z++] = 255; + } + stbi__skip(s, pad); + } + } + } else { + int rshift=0,gshift=0,bshift=0,ashift=0,rcount=0,gcount=0,bcount=0,acount=0; + int z = 0; + int easy=0; + stbi__skip(s, info.offset - info.extra_read - info.hsz); + if (info.bpp == 24) width = 3 * s->img_x; + else if (info.bpp == 16) width = 2*s->img_x; + else /* bpp = 32 and pad = 0 */ width=0; + pad = (-width) & 3; + if (info.bpp == 24) { + easy = 1; + } else if (info.bpp == 32) { + if (mb == 0xff && mg == 0xff00 && mr == 0x00ff0000 && ma == 0xff000000) + easy = 2; + } + if (!easy) { + if (!mr || !mg || !mb) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); } + // right shift amt to put high bit in position #7 + rshift = stbi__high_bit(mr)-7; rcount = stbi__bitcount(mr); + gshift = stbi__high_bit(mg)-7; gcount = stbi__bitcount(mg); + bshift = stbi__high_bit(mb)-7; bcount = stbi__bitcount(mb); + ashift = stbi__high_bit(ma)-7; acount = stbi__bitcount(ma); + if (rcount > 8 || gcount > 8 || bcount > 8 || acount > 8) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); } + } + for (j=0; j < (int) s->img_y; ++j) { + if (easy) { + for (i=0; i < (int) s->img_x; ++i) { + unsigned char a; + out[z+2] = stbi__get8(s); + out[z+1] = stbi__get8(s); + out[z+0] = stbi__get8(s); + z += 3; + a = (easy == 2 ? stbi__get8(s) : 255); + all_a |= a; + if (target == 4) out[z++] = a; + } + } else { + int bpp = info.bpp; + for (i=0; i < (int) s->img_x; ++i) { + stbi__uint32 v = (bpp == 16 ? (stbi__uint32) stbi__get16le(s) : stbi__get32le(s)); + unsigned int a; + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mr, rshift, rcount)); + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mg, gshift, gcount)); + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mb, bshift, bcount)); + a = (ma ? stbi__shiftsigned(v & ma, ashift, acount) : 255); + all_a |= a; + if (target == 4) out[z++] = STBI__BYTECAST(a); + } + } + stbi__skip(s, pad); + } + } + + // if alpha channel is all 0s, replace with all 255s + if (target == 4 && all_a == 0) + for (i=4*s->img_x*s->img_y-1; i >= 0; i -= 4) + out[i] = 255; + + if (flip_vertically) { + stbi_uc t; + for (j=0; j < (int) s->img_y>>1; ++j) { + stbi_uc *p1 = out + j *s->img_x*target; + stbi_uc *p2 = out + (s->img_y-1-j)*s->img_x*target; + for (i=0; i < (int) s->img_x*target; ++i) { + t = p1[i]; p1[i] = p2[i]; p2[i] = t; + } + } + } + + if (req_comp && req_comp != target) { + out = stbi__convert_format(out, target, req_comp, s->img_x, s->img_y); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + + *x = s->img_x; + *y = s->img_y; + if (comp) *comp = s->img_n; + return out; +} +#endif + +// Targa Truevision - TGA +// by Jonathan Dummer +#ifndef STBI_NO_TGA +// returns STBI_rgb or whatever, 0 on error +static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16) +{ + // only RGB or RGBA (incl. 16bit) or grey allowed + if (is_rgb16) *is_rgb16 = 0; + switch(bits_per_pixel) { + case 8: return STBI_grey; + case 16: if(is_grey) return STBI_grey_alpha; + // fallthrough + case 15: if(is_rgb16) *is_rgb16 = 1; + return STBI_rgb; + case 24: // fallthrough + case 32: return bits_per_pixel/8; + default: return 0; + } +} + +static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp) +{ + int tga_w, tga_h, tga_comp, tga_image_type, tga_bits_per_pixel, tga_colormap_bpp; + int sz, tga_colormap_type; + stbi__get8(s); // discard Offset + tga_colormap_type = stbi__get8(s); // colormap type + if( tga_colormap_type > 1 ) { + stbi__rewind(s); + return 0; // only RGB or indexed allowed + } + tga_image_type = stbi__get8(s); // image type + if ( tga_colormap_type == 1 ) { // colormapped (paletted) image + if (tga_image_type != 1 && tga_image_type != 9) { + stbi__rewind(s); + return 0; + } + stbi__skip(s,4); // skip index of first colormap entry and number of entries + sz = stbi__get8(s); // check bits per palette color entry + if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) { + stbi__rewind(s); + return 0; + } + stbi__skip(s,4); // skip image x and y origin + tga_colormap_bpp = sz; + } else { // "normal" image w/o colormap - only RGB or grey allowed, +/- RLE + if ( (tga_image_type != 2) && (tga_image_type != 3) && (tga_image_type != 10) && (tga_image_type != 11) ) { + stbi__rewind(s); + return 0; // only RGB or grey allowed, +/- RLE + } + stbi__skip(s,9); // skip colormap specification and image x/y origin + tga_colormap_bpp = 0; + } + tga_w = stbi__get16le(s); + if( tga_w < 1 ) { + stbi__rewind(s); + return 0; // test width + } + tga_h = stbi__get16le(s); + if( tga_h < 1 ) { + stbi__rewind(s); + return 0; // test height + } + tga_bits_per_pixel = stbi__get8(s); // bits per pixel + stbi__get8(s); // ignore alpha bits + if (tga_colormap_bpp != 0) { + if((tga_bits_per_pixel != 8) && (tga_bits_per_pixel != 16)) { + // when using a colormap, tga_bits_per_pixel is the size of the indexes + // I don't think anything but 8 or 16bit indexes makes sense + stbi__rewind(s); + return 0; + } + tga_comp = stbi__tga_get_comp(tga_colormap_bpp, 0, NULL); + } else { + tga_comp = stbi__tga_get_comp(tga_bits_per_pixel, (tga_image_type == 3) || (tga_image_type == 11), NULL); + } + if(!tga_comp) { + stbi__rewind(s); + return 0; + } + if (x) *x = tga_w; + if (y) *y = tga_h; + if (comp) *comp = tga_comp; + return 1; // seems to have passed everything +} + +static int stbi__tga_test(stbi__context *s) +{ + int res = 0; + int sz, tga_color_type; + stbi__get8(s); // discard Offset + tga_color_type = stbi__get8(s); // color type + if ( tga_color_type > 1 ) goto errorEnd; // only RGB or indexed allowed + sz = stbi__get8(s); // image type + if ( tga_color_type == 1 ) { // colormapped (paletted) image + if (sz != 1 && sz != 9) goto errorEnd; // colortype 1 demands image type 1 or 9 + stbi__skip(s,4); // skip index of first colormap entry and number of entries + sz = stbi__get8(s); // check bits per palette color entry + if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd; + stbi__skip(s,4); // skip image x and y origin + } else { // "normal" image w/o colormap + if ( (sz != 2) && (sz != 3) && (sz != 10) && (sz != 11) ) goto errorEnd; // only RGB or grey allowed, +/- RLE + stbi__skip(s,9); // skip colormap specification and image x/y origin + } + if ( stbi__get16le(s) < 1 ) goto errorEnd; // test width + if ( stbi__get16le(s) < 1 ) goto errorEnd; // test height + sz = stbi__get8(s); // bits per pixel + if ( (tga_color_type == 1) && (sz != 8) && (sz != 16) ) goto errorEnd; // for colormapped images, bpp is size of an index + if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd; + + res = 1; // if we got this far, everything's good and we can return 1 instead of 0 + +errorEnd: + stbi__rewind(s); + return res; +} + +// read 16bit value and convert to 24bit RGB +static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out) +{ + stbi__uint16 px = (stbi__uint16)stbi__get16le(s); + stbi__uint16 fiveBitMask = 31; + // we have 3 channels with 5bits each + int r = (px >> 10) & fiveBitMask; + int g = (px >> 5) & fiveBitMask; + int b = px & fiveBitMask; + // Note that this saves the data in RGB(A) order, so it doesn't need to be swapped later + out[0] = (stbi_uc)((r * 255)/31); + out[1] = (stbi_uc)((g * 255)/31); + out[2] = (stbi_uc)((b * 255)/31); + + // some people claim that the most significant bit might be used for alpha + // (possibly if an alpha-bit is set in the "image descriptor byte") + // but that only made 16bit test images completely translucent.. + // so let's treat all 15 and 16bit TGAs as RGB with no alpha. +} + +static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + // read in the TGA header stuff + int tga_offset = stbi__get8(s); + int tga_indexed = stbi__get8(s); + int tga_image_type = stbi__get8(s); + int tga_is_RLE = 0; + int tga_palette_start = stbi__get16le(s); + int tga_palette_len = stbi__get16le(s); + int tga_palette_bits = stbi__get8(s); + int tga_x_origin = stbi__get16le(s); + int tga_y_origin = stbi__get16le(s); + int tga_width = stbi__get16le(s); + int tga_height = stbi__get16le(s); + int tga_bits_per_pixel = stbi__get8(s); + int tga_comp, tga_rgb16=0; + int tga_inverted = stbi__get8(s); + // int tga_alpha_bits = tga_inverted & 15; // the 4 lowest bits - unused (useless?) + // image data + unsigned char *tga_data; + unsigned char *tga_palette = NULL; + int i, j; + unsigned char raw_data[4] = {0}; + int RLE_count = 0; + int RLE_repeating = 0; + int read_next_pixel = 1; + STBI_NOTUSED(ri); + STBI_NOTUSED(tga_x_origin); // @TODO + STBI_NOTUSED(tga_y_origin); // @TODO + + if (tga_height > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (tga_width > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + // do a tiny bit of precessing + if ( tga_image_type >= 8 ) + { + tga_image_type -= 8; + tga_is_RLE = 1; + } + tga_inverted = 1 - ((tga_inverted >> 5) & 1); + + // If I'm paletted, then I'll use the number of bits from the palette + if ( tga_indexed ) tga_comp = stbi__tga_get_comp(tga_palette_bits, 0, &tga_rgb16); + else tga_comp = stbi__tga_get_comp(tga_bits_per_pixel, (tga_image_type == 3), &tga_rgb16); + + if(!tga_comp) // shouldn't really happen, stbi__tga_test() should have ensured basic consistency + return stbi__errpuc("bad format", "Can't find out TGA pixelformat"); + + // tga info + *x = tga_width; + *y = tga_height; + if (comp) *comp = tga_comp; + + if (!stbi__mad3sizes_valid(tga_width, tga_height, tga_comp, 0)) + return stbi__errpuc("too large", "Corrupt TGA"); + + tga_data = (unsigned char*)stbi__malloc_mad3(tga_width, tga_height, tga_comp, 0); + if (!tga_data) return stbi__errpuc("outofmem", "Out of memory"); + + // skip to the data's starting position (offset usually = 0) + stbi__skip(s, tga_offset ); + + if ( !tga_indexed && !tga_is_RLE && !tga_rgb16 ) { + for (i=0; i < tga_height; ++i) { + int row = tga_inverted ? tga_height -i - 1 : i; + stbi_uc *tga_row = tga_data + row*tga_width*tga_comp; + stbi__getn(s, tga_row, tga_width * tga_comp); + } + } else { + // do I need to load a palette? + if ( tga_indexed) + { + if (tga_palette_len == 0) { /* you have to have at least one entry! */ + STBI_FREE(tga_data); + return stbi__errpuc("bad palette", "Corrupt TGA"); + } + + // any data to skip? (offset usually = 0) + stbi__skip(s, tga_palette_start ); + // load the palette + tga_palette = (unsigned char*)stbi__malloc_mad2(tga_palette_len, tga_comp, 0); + if (!tga_palette) { + STBI_FREE(tga_data); + return stbi__errpuc("outofmem", "Out of memory"); + } + if (tga_rgb16) { + stbi_uc *pal_entry = tga_palette; + STBI_ASSERT(tga_comp == STBI_rgb); + for (i=0; i < tga_palette_len; ++i) { + stbi__tga_read_rgb16(s, pal_entry); + pal_entry += tga_comp; + } + } else if (!stbi__getn(s, tga_palette, tga_palette_len * tga_comp)) { + STBI_FREE(tga_data); + STBI_FREE(tga_palette); + return stbi__errpuc("bad palette", "Corrupt TGA"); + } + } + // load the data + for (i=0; i < tga_width * tga_height; ++i) + { + // if I'm in RLE mode, do I need to get a RLE stbi__pngchunk? + if ( tga_is_RLE ) + { + if ( RLE_count == 0 ) + { + // yep, get the next byte as a RLE command + int RLE_cmd = stbi__get8(s); + RLE_count = 1 + (RLE_cmd & 127); + RLE_repeating = RLE_cmd >> 7; + read_next_pixel = 1; + } else if ( !RLE_repeating ) + { + read_next_pixel = 1; + } + } else + { + read_next_pixel = 1; + } + // OK, if I need to read a pixel, do it now + if ( read_next_pixel ) + { + // load however much data we did have + if ( tga_indexed ) + { + // read in index, then perform the lookup + int pal_idx = (tga_bits_per_pixel == 8) ? stbi__get8(s) : stbi__get16le(s); + if ( pal_idx >= tga_palette_len ) { + // invalid index + pal_idx = 0; + } + pal_idx *= tga_comp; + for (j = 0; j < tga_comp; ++j) { + raw_data[j] = tga_palette[pal_idx+j]; + } + } else if(tga_rgb16) { + STBI_ASSERT(tga_comp == STBI_rgb); + stbi__tga_read_rgb16(s, raw_data); + } else { + // read in the data raw + for (j = 0; j < tga_comp; ++j) { + raw_data[j] = stbi__get8(s); + } + } + // clear the reading flag for the next pixel + read_next_pixel = 0; + } // end of reading a pixel + + // copy data + for (j = 0; j < tga_comp; ++j) + tga_data[i*tga_comp+j] = raw_data[j]; + + // in case we're in RLE mode, keep counting down + --RLE_count; + } + // do I need to invert the image? + if ( tga_inverted ) + { + for (j = 0; j*2 < tga_height; ++j) + { + int index1 = j * tga_width * tga_comp; + int index2 = (tga_height - 1 - j) * tga_width * tga_comp; + for (i = tga_width * tga_comp; i > 0; --i) + { + unsigned char temp = tga_data[index1]; + tga_data[index1] = tga_data[index2]; + tga_data[index2] = temp; + ++index1; + ++index2; + } + } + } + // clear my palette, if I had one + if ( tga_palette != NULL ) + { + STBI_FREE( tga_palette ); + } + } + + // swap RGB - if the source data was RGB16, it already is in the right order + if (tga_comp >= 3 && !tga_rgb16) + { + unsigned char* tga_pixel = tga_data; + for (i=0; i < tga_width * tga_height; ++i) + { + unsigned char temp = tga_pixel[0]; + tga_pixel[0] = tga_pixel[2]; + tga_pixel[2] = temp; + tga_pixel += tga_comp; + } + } + + // convert to target component count + if (req_comp && req_comp != tga_comp) + tga_data = stbi__convert_format(tga_data, tga_comp, req_comp, tga_width, tga_height); + + // the things I do to get rid of an error message, and yet keep + // Microsoft's C compilers happy... [8^( + tga_palette_start = tga_palette_len = tga_palette_bits = + tga_x_origin = tga_y_origin = 0; + STBI_NOTUSED(tga_palette_start); + // OK, done + return tga_data; +} +#endif + +// ************************************************************************************************* +// Photoshop PSD loader -- PD by Thatcher Ulrich, integration by Nicolas Schulz, tweaked by STB + +#ifndef STBI_NO_PSD +static int stbi__psd_test(stbi__context *s) +{ + int r = (stbi__get32be(s) == 0x38425053); + stbi__rewind(s); + return r; +} + +static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount) +{ + int count, nleft, len; + + count = 0; + while ((nleft = pixelCount - count) > 0) { + len = stbi__get8(s); + if (len == 128) { + // No-op. + } else if (len < 128) { + // Copy next len+1 bytes literally. + len++; + if (len > nleft) return 0; // corrupt data + count += len; + while (len) { + *p = stbi__get8(s); + p += 4; + len--; + } + } else if (len > 128) { + stbi_uc val; + // Next -len+1 bytes in the dest are replicated from next source byte. + // (Interpret len as a negative 8-bit int.) + len = 257 - len; + if (len > nleft) return 0; // corrupt data + val = stbi__get8(s); + count += len; + while (len) { + *p = val; + p += 4; + len--; + } + } + } + + return 1; +} + +static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc) +{ + int pixelCount; + int channelCount, compression; + int channel, i; + int bitdepth; + int w,h; + stbi_uc *out; + STBI_NOTUSED(ri); + + // Check identifier + if (stbi__get32be(s) != 0x38425053) // "8BPS" + return stbi__errpuc("not PSD", "Corrupt PSD image"); + + // Check file type version. + if (stbi__get16be(s) != 1) + return stbi__errpuc("wrong version", "Unsupported version of PSD image"); + + // Skip 6 reserved bytes. + stbi__skip(s, 6 ); + + // Read the number of channels (R, G, B, A, etc). + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) + return stbi__errpuc("wrong channel count", "Unsupported number of channels in PSD image"); + + // Read the rows and columns of the image. + h = stbi__get32be(s); + w = stbi__get32be(s); + + if (h > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (w > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + // Make sure the depth is 8 bits. + bitdepth = stbi__get16be(s); + if (bitdepth != 8 && bitdepth != 16) + return stbi__errpuc("unsupported bit depth", "PSD bit depth is not 8 or 16 bit"); + + // Make sure the color mode is RGB. + // Valid options are: + // 0: Bitmap + // 1: Grayscale + // 2: Indexed color + // 3: RGB color + // 4: CMYK color + // 7: Multichannel + // 8: Duotone + // 9: Lab color + if (stbi__get16be(s) != 3) + return stbi__errpuc("wrong color format", "PSD is not in RGB color format"); + + // Skip the Mode Data. (It's the palette for indexed color; other info for other modes.) + stbi__skip(s,stbi__get32be(s) ); + + // Skip the image resources. (resolution, pen tool paths, etc) + stbi__skip(s, stbi__get32be(s) ); + + // Skip the reserved data. + stbi__skip(s, stbi__get32be(s) ); + + // Find out if the data is compressed. + // Known values: + // 0: no compression + // 1: RLE compressed + compression = stbi__get16be(s); + if (compression > 1) + return stbi__errpuc("bad compression", "PSD has an unknown compression format"); + + // Check size + if (!stbi__mad3sizes_valid(4, w, h, 0)) + return stbi__errpuc("too large", "Corrupt PSD"); + + // Create the destination image. + + if (!compression && bitdepth == 16 && bpc == 16) { + out = (stbi_uc *) stbi__malloc_mad3(8, w, h, 0); + ri->bits_per_channel = 16; + } else + out = (stbi_uc *) stbi__malloc(4 * w*h); + + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + pixelCount = w*h; + + // Initialize the data to zero. + //memset( out, 0, pixelCount * 4 ); + + // Finally, the image data. + if (compression) { + // RLE as used by .PSD and .TIFF + // Loop until you get the number of unpacked bytes you are expecting: + // Read the next source byte into n. + // If n is between 0 and 127 inclusive, copy the next n+1 bytes literally. + // Else if n is between -127 and -1 inclusive, copy the next byte -n+1 times. + // Else if n is 128, noop. + // Endloop + + // The RLE-compressed data is preceded by a 2-byte data count for each row in the data, + // which we're going to just skip. + stbi__skip(s, h * channelCount * 2 ); + + // Read the RLE data by channel. + for (channel = 0; channel < 4; channel++) { + stbi_uc *p; + + p = out+channel; + if (channel >= channelCount) { + // Fill this channel with default data. + for (i = 0; i < pixelCount; i++, p += 4) + *p = (channel == 3 ? 255 : 0); + } else { + // Read the RLE data. + if (!stbi__psd_decode_rle(s, p, pixelCount)) { + STBI_FREE(out); + return stbi__errpuc("corrupt", "bad RLE data"); + } + } + } + + } else { + // We're at the raw image data. It's each channel in order (Red, Green, Blue, Alpha, ...) + // where each channel consists of an 8-bit (or 16-bit) value for each pixel in the image. + + // Read the data by channel. + for (channel = 0; channel < 4; channel++) { + if (channel >= channelCount) { + // Fill this channel with default data. + if (bitdepth == 16 && bpc == 16) { + stbi__uint16 *q = ((stbi__uint16 *) out) + channel; + stbi__uint16 val = channel == 3 ? 65535 : 0; + for (i = 0; i < pixelCount; i++, q += 4) + *q = val; + } else { + stbi_uc *p = out+channel; + stbi_uc val = channel == 3 ? 255 : 0; + for (i = 0; i < pixelCount; i++, p += 4) + *p = val; + } + } else { + if (ri->bits_per_channel == 16) { // output bpc + stbi__uint16 *q = ((stbi__uint16 *) out) + channel; + for (i = 0; i < pixelCount; i++, q += 4) + *q = (stbi__uint16) stbi__get16be(s); + } else { + stbi_uc *p = out+channel; + if (bitdepth == 16) { // input bpc + for (i = 0; i < pixelCount; i++, p += 4) + *p = (stbi_uc) (stbi__get16be(s) >> 8); + } else { + for (i = 0; i < pixelCount; i++, p += 4) + *p = stbi__get8(s); + } + } + } + } + } + + // remove weird white matte from PSD + if (channelCount >= 4) { + if (ri->bits_per_channel == 16) { + for (i=0; i < w*h; ++i) { + stbi__uint16 *pixel = (stbi__uint16 *) out + 4*i; + if (pixel[3] != 0 && pixel[3] != 65535) { + float a = pixel[3] / 65535.0f; + float ra = 1.0f / a; + float inv_a = 65535.0f * (1 - ra); + pixel[0] = (stbi__uint16) (pixel[0]*ra + inv_a); + pixel[1] = (stbi__uint16) (pixel[1]*ra + inv_a); + pixel[2] = (stbi__uint16) (pixel[2]*ra + inv_a); + } + } + } else { + for (i=0; i < w*h; ++i) { + unsigned char *pixel = out + 4*i; + if (pixel[3] != 0 && pixel[3] != 255) { + float a = pixel[3] / 255.0f; + float ra = 1.0f / a; + float inv_a = 255.0f * (1 - ra); + pixel[0] = (unsigned char) (pixel[0]*ra + inv_a); + pixel[1] = (unsigned char) (pixel[1]*ra + inv_a); + pixel[2] = (unsigned char) (pixel[2]*ra + inv_a); + } + } + } + } + + // convert to desired output format + if (req_comp && req_comp != 4) { + if (ri->bits_per_channel == 16) + out = (stbi_uc *) stbi__convert_format16((stbi__uint16 *) out, 4, req_comp, w, h); + else + out = stbi__convert_format(out, 4, req_comp, w, h); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + + if (comp) *comp = 4; + *y = h; + *x = w; + + return out; +} +#endif + +// ************************************************************************************************* +// Softimage PIC loader +// by Tom Seddon +// +// See http://softimage.wiki.softimage.com/index.php/INFO:_PIC_file_format +// See http://ozviz.wasp.uwa.edu.au/~pbourke/dataformats/softimagepic/ + +#ifndef STBI_NO_PIC +static int stbi__pic_is4(stbi__context *s,const char *str) +{ + int i; + for (i=0; i<4; ++i) + if (stbi__get8(s) != (stbi_uc)str[i]) + return 0; + + return 1; +} + +static int stbi__pic_test_core(stbi__context *s) +{ + int i; + + if (!stbi__pic_is4(s,"\x53\x80\xF6\x34")) + return 0; + + for(i=0;i<84;++i) + stbi__get8(s); + + if (!stbi__pic_is4(s,"PICT")) + return 0; + + return 1; +} + +typedef struct +{ + stbi_uc size,type,channel; +} stbi__pic_packet; + +static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest) +{ + int mask=0x80, i; + + for (i=0; i<4; ++i, mask>>=1) { + if (channel & mask) { + if (stbi__at_eof(s)) return stbi__errpuc("bad file","PIC file too short"); + dest[i]=stbi__get8(s); + } + } + + return dest; +} + +static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src) +{ + int mask=0x80,i; + + for (i=0;i<4; ++i, mask>>=1) + if (channel&mask) + dest[i]=src[i]; +} + +static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result) +{ + int act_comp=0,num_packets=0,y,chained; + stbi__pic_packet packets[10]; + + // this will (should...) cater for even some bizarre stuff like having data + // for the same channel in multiple packets. + do { + stbi__pic_packet *packet; + + if (num_packets==sizeof(packets)/sizeof(packets[0])) + return stbi__errpuc("bad format","too many packets"); + + packet = &packets[num_packets++]; + + chained = stbi__get8(s); + packet->size = stbi__get8(s); + packet->type = stbi__get8(s); + packet->channel = stbi__get8(s); + + act_comp |= packet->channel; + + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (reading packets)"); + if (packet->size != 8) return stbi__errpuc("bad format","packet isn't 8bpp"); + } while (chained); + + *comp = (act_comp & 0x10 ? 4 : 3); // has alpha channel? + + for(y=0; ytype) { + default: + return stbi__errpuc("bad format","packet has bad compression type"); + + case 0: {//uncompressed + int x; + + for(x=0;xchannel,dest)) + return 0; + break; + } + + case 1://Pure RLE + { + int left=width, i; + + while (left>0) { + stbi_uc count,value[4]; + + count=stbi__get8(s); + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pure read count)"); + + if (count > left) + count = (stbi_uc) left; + + if (!stbi__readval(s,packet->channel,value)) return 0; + + for(i=0; ichannel,dest,value); + left -= count; + } + } + break; + + case 2: {//Mixed RLE + int left=width; + while (left>0) { + int count = stbi__get8(s), i; + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (mixed read count)"); + + if (count >= 128) { // Repeated + stbi_uc value[4]; + + if (count==128) + count = stbi__get16be(s); + else + count -= 127; + if (count > left) + return stbi__errpuc("bad file","scanline overrun"); + + if (!stbi__readval(s,packet->channel,value)) + return 0; + + for(i=0;ichannel,dest,value); + } else { // Raw + ++count; + if (count>left) return stbi__errpuc("bad file","scanline overrun"); + + for(i=0;ichannel,dest)) + return 0; + } + left-=count; + } + break; + } + } + } + } + + return result; +} + +static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri) +{ + stbi_uc *result; + int i, x,y, internal_comp; + STBI_NOTUSED(ri); + + if (!comp) comp = &internal_comp; + + for (i=0; i<92; ++i) + stbi__get8(s); + + x = stbi__get16be(s); + y = stbi__get16be(s); + + if (y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pic header)"); + if (!stbi__mad3sizes_valid(x, y, 4, 0)) return stbi__errpuc("too large", "PIC image too large to decode"); + + stbi__get32be(s); //skip `ratio' + stbi__get16be(s); //skip `fields' + stbi__get16be(s); //skip `pad' + + // intermediate buffer is RGBA + result = (stbi_uc *) stbi__malloc_mad3(x, y, 4, 0); + memset(result, 0xff, x*y*4); + + if (!stbi__pic_load_core(s,x,y,comp, result)) { + STBI_FREE(result); + result=0; + } + *px = x; + *py = y; + if (req_comp == 0) req_comp = *comp; + result=stbi__convert_format(result,4,req_comp,x,y); + + return result; +} + +static int stbi__pic_test(stbi__context *s) +{ + int r = stbi__pic_test_core(s); + stbi__rewind(s); + return r; +} +#endif + +// ************************************************************************************************* +// GIF loader -- public domain by Jean-Marc Lienher -- simplified/shrunk by stb + +#ifndef STBI_NO_GIF +typedef struct +{ + stbi__int16 prefix; + stbi_uc first; + stbi_uc suffix; +} stbi__gif_lzw; + +typedef struct +{ + int w,h; + stbi_uc *out; // output buffer (always 4 components) + stbi_uc *background; // The current "background" as far as a gif is concerned + stbi_uc *history; + int flags, bgindex, ratio, transparent, eflags; + stbi_uc pal[256][4]; + stbi_uc lpal[256][4]; + stbi__gif_lzw codes[8192]; + stbi_uc *color_table; + int parse, step; + int lflags; + int start_x, start_y; + int max_x, max_y; + int cur_x, cur_y; + int line_size; + int delay; +} stbi__gif; + +static int stbi__gif_test_raw(stbi__context *s) +{ + int sz; + if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') return 0; + sz = stbi__get8(s); + if (sz != '9' && sz != '7') return 0; + if (stbi__get8(s) != 'a') return 0; + return 1; +} + +static int stbi__gif_test(stbi__context *s) +{ + int r = stbi__gif_test_raw(s); + stbi__rewind(s); + return r; +} + +static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp) +{ + int i; + for (i=0; i < num_entries; ++i) { + pal[i][2] = stbi__get8(s); + pal[i][1] = stbi__get8(s); + pal[i][0] = stbi__get8(s); + pal[i][3] = transp == i ? 0 : 255; + } +} + +static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info) +{ + stbi_uc version; + if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') + return stbi__err("not GIF", "Corrupt GIF"); + + version = stbi__get8(s); + if (version != '7' && version != '9') return stbi__err("not GIF", "Corrupt GIF"); + if (stbi__get8(s) != 'a') return stbi__err("not GIF", "Corrupt GIF"); + + stbi__g_failure_reason = ""; + g->w = stbi__get16le(s); + g->h = stbi__get16le(s); + g->flags = stbi__get8(s); + g->bgindex = stbi__get8(s); + g->ratio = stbi__get8(s); + g->transparent = -1; + + if (g->w > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + if (g->h > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + + if (comp != 0) *comp = 4; // can't actually tell whether it's 3 or 4 until we parse the comments + + if (is_info) return 1; + + if (g->flags & 0x80) + stbi__gif_parse_colortable(s,g->pal, 2 << (g->flags & 7), -1); + + return 1; +} + +static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp) +{ + stbi__gif* g = (stbi__gif*) stbi__malloc(sizeof(stbi__gif)); + if (!stbi__gif_header(s, g, comp, 1)) { + STBI_FREE(g); + stbi__rewind( s ); + return 0; + } + if (x) *x = g->w; + if (y) *y = g->h; + STBI_FREE(g); + return 1; +} + +static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code) +{ + stbi_uc *p, *c; + int idx; + + // recurse to decode the prefixes, since the linked-list is backwards, + // and working backwards through an interleaved image would be nasty + if (g->codes[code].prefix >= 0) + stbi__out_gif_code(g, g->codes[code].prefix); + + if (g->cur_y >= g->max_y) return; + + idx = g->cur_x + g->cur_y; + p = &g->out[idx]; + g->history[idx / 4] = 1; + + c = &g->color_table[g->codes[code].suffix * 4]; + if (c[3] > 128) { // don't render transparent pixels; + p[0] = c[2]; + p[1] = c[1]; + p[2] = c[0]; + p[3] = c[3]; + } + g->cur_x += 4; + + if (g->cur_x >= g->max_x) { + g->cur_x = g->start_x; + g->cur_y += g->step; + + while (g->cur_y >= g->max_y && g->parse > 0) { + g->step = (1 << g->parse) * g->line_size; + g->cur_y = g->start_y + (g->step >> 1); + --g->parse; + } + } +} + +static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g) +{ + stbi_uc lzw_cs; + stbi__int32 len, init_code; + stbi__uint32 first; + stbi__int32 codesize, codemask, avail, oldcode, bits, valid_bits, clear; + stbi__gif_lzw *p; + + lzw_cs = stbi__get8(s); + if (lzw_cs > 12) return NULL; + clear = 1 << lzw_cs; + first = 1; + codesize = lzw_cs + 1; + codemask = (1 << codesize) - 1; + bits = 0; + valid_bits = 0; + for (init_code = 0; init_code < clear; init_code++) { + g->codes[init_code].prefix = -1; + g->codes[init_code].first = (stbi_uc) init_code; + g->codes[init_code].suffix = (stbi_uc) init_code; + } + + // support no starting clear code + avail = clear+2; + oldcode = -1; + + len = 0; + for(;;) { + if (valid_bits < codesize) { + if (len == 0) { + len = stbi__get8(s); // start new block + if (len == 0) + return g->out; + } + --len; + bits |= (stbi__int32) stbi__get8(s) << valid_bits; + valid_bits += 8; + } else { + stbi__int32 code = bits & codemask; + bits >>= codesize; + valid_bits -= codesize; + // @OPTIMIZE: is there some way we can accelerate the non-clear path? + if (code == clear) { // clear code + codesize = lzw_cs + 1; + codemask = (1 << codesize) - 1; + avail = clear + 2; + oldcode = -1; + first = 0; + } else if (code == clear + 1) { // end of stream code + stbi__skip(s, len); + while ((len = stbi__get8(s)) > 0) + stbi__skip(s,len); + return g->out; + } else if (code <= avail) { + if (first) { + return stbi__errpuc("no clear code", "Corrupt GIF"); + } + + if (oldcode >= 0) { + p = &g->codes[avail++]; + if (avail > 8192) { + return stbi__errpuc("too many codes", "Corrupt GIF"); + } + + p->prefix = (stbi__int16) oldcode; + p->first = g->codes[oldcode].first; + p->suffix = (code == avail) ? p->first : g->codes[code].first; + } else if (code == avail) + return stbi__errpuc("illegal code in raster", "Corrupt GIF"); + + stbi__out_gif_code(g, (stbi__uint16) code); + + if ((avail & codemask) == 0 && avail <= 0x0FFF) { + codesize++; + codemask = (1 << codesize) - 1; + } + + oldcode = code; + } else { + return stbi__errpuc("illegal code in raster", "Corrupt GIF"); + } + } + } +} + +// this function is designed to support animated gifs, although stb_image doesn't support it +// two back is the image from two frames ago, used for a very specific disposal format +static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back) +{ + int dispose; + int first_frame; + int pi; + int pcount; + STBI_NOTUSED(req_comp); + + // on first frame, any non-written pixels get the background colour (non-transparent) + first_frame = 0; + if (g->out == 0) { + if (!stbi__gif_header(s, g, comp,0)) return 0; // stbi__g_failure_reason set by stbi__gif_header + if (!stbi__mad3sizes_valid(4, g->w, g->h, 0)) + return stbi__errpuc("too large", "GIF image is too large"); + pcount = g->w * g->h; + g->out = (stbi_uc *) stbi__malloc(4 * pcount); + g->background = (stbi_uc *) stbi__malloc(4 * pcount); + g->history = (stbi_uc *) stbi__malloc(pcount); + if (!g->out || !g->background || !g->history) + return stbi__errpuc("outofmem", "Out of memory"); + + // image is treated as "transparent" at the start - ie, nothing overwrites the current background; + // background colour is only used for pixels that are not rendered first frame, after that "background" + // color refers to the color that was there the previous frame. + memset(g->out, 0x00, 4 * pcount); + memset(g->background, 0x00, 4 * pcount); // state of the background (starts transparent) + memset(g->history, 0x00, pcount); // pixels that were affected previous frame + first_frame = 1; + } else { + // second frame - how do we dispose of the previous one? + dispose = (g->eflags & 0x1C) >> 2; + pcount = g->w * g->h; + + if ((dispose == 3) && (two_back == 0)) { + dispose = 2; // if I don't have an image to revert back to, default to the old background + } + + if (dispose == 3) { // use previous graphic + for (pi = 0; pi < pcount; ++pi) { + if (g->history[pi]) { + memcpy( &g->out[pi * 4], &two_back[pi * 4], 4 ); + } + } + } else if (dispose == 2) { + // restore what was changed last frame to background before that frame; + for (pi = 0; pi < pcount; ++pi) { + if (g->history[pi]) { + memcpy( &g->out[pi * 4], &g->background[pi * 4], 4 ); + } + } + } else { + // This is a non-disposal case eithe way, so just + // leave the pixels as is, and they will become the new background + // 1: do not dispose + // 0: not specified. + } + + // background is what out is after the undoing of the previou frame; + memcpy( g->background, g->out, 4 * g->w * g->h ); + } + + // clear my history; + memset( g->history, 0x00, g->w * g->h ); // pixels that were affected previous frame + + for (;;) { + int tag = stbi__get8(s); + switch (tag) { + case 0x2C: /* Image Descriptor */ + { + stbi__int32 x, y, w, h; + stbi_uc *o; + + x = stbi__get16le(s); + y = stbi__get16le(s); + w = stbi__get16le(s); + h = stbi__get16le(s); + if (((x + w) > (g->w)) || ((y + h) > (g->h))) + return stbi__errpuc("bad Image Descriptor", "Corrupt GIF"); + + g->line_size = g->w * 4; + g->start_x = x * 4; + g->start_y = y * g->line_size; + g->max_x = g->start_x + w * 4; + g->max_y = g->start_y + h * g->line_size; + g->cur_x = g->start_x; + g->cur_y = g->start_y; + + // if the width of the specified rectangle is 0, that means + // we may not see *any* pixels or the image is malformed; + // to make sure this is caught, move the current y down to + // max_y (which is what out_gif_code checks). + if (w == 0) + g->cur_y = g->max_y; + + g->lflags = stbi__get8(s); + + if (g->lflags & 0x40) { + g->step = 8 * g->line_size; // first interlaced spacing + g->parse = 3; + } else { + g->step = g->line_size; + g->parse = 0; + } + + if (g->lflags & 0x80) { + stbi__gif_parse_colortable(s,g->lpal, 2 << (g->lflags & 7), g->eflags & 0x01 ? g->transparent : -1); + g->color_table = (stbi_uc *) g->lpal; + } else if (g->flags & 0x80) { + g->color_table = (stbi_uc *) g->pal; + } else + return stbi__errpuc("missing color table", "Corrupt GIF"); + + o = stbi__process_gif_raster(s, g); + if (!o) return NULL; + + // if this was the first frame, + pcount = g->w * g->h; + if (first_frame && (g->bgindex > 0)) { + // if first frame, any pixel not drawn to gets the background color + for (pi = 0; pi < pcount; ++pi) { + if (g->history[pi] == 0) { + g->pal[g->bgindex][3] = 255; // just in case it was made transparent, undo that; It will be reset next frame if need be; + memcpy( &g->out[pi * 4], &g->pal[g->bgindex], 4 ); + } + } + } + + return o; + } + + case 0x21: // Comment Extension. + { + int len; + int ext = stbi__get8(s); + if (ext == 0xF9) { // Graphic Control Extension. + len = stbi__get8(s); + if (len == 4) { + g->eflags = stbi__get8(s); + g->delay = 10 * stbi__get16le(s); // delay - 1/100th of a second, saving as 1/1000ths. + + // unset old transparent + if (g->transparent >= 0) { + g->pal[g->transparent][3] = 255; + } + if (g->eflags & 0x01) { + g->transparent = stbi__get8(s); + if (g->transparent >= 0) { + g->pal[g->transparent][3] = 0; + } + } else { + // don't need transparent + stbi__skip(s, 1); + g->transparent = -1; + } + } else { + stbi__skip(s, len); + break; + } + } + while ((len = stbi__get8(s)) != 0) { + stbi__skip(s, len); + } + break; + } + + case 0x3B: // gif stream termination code + return (stbi_uc *) s; // using '1' causes warning on some compilers + + default: + return stbi__errpuc("unknown code", "Corrupt GIF"); + } + } +} + +static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp) +{ + if (stbi__gif_test(s)) { + int layers = 0; + stbi_uc *u = 0; + stbi_uc *out = 0; + stbi_uc *two_back = 0; + stbi__gif g; + int stride; + int out_size = 0; + int delays_size = 0; + memset(&g, 0, sizeof(g)); + if (delays) { + *delays = 0; + } + + do { + u = stbi__gif_load_next(s, &g, comp, req_comp, two_back); + if (u == (stbi_uc *) s) u = 0; // end of animated gif marker + + if (u) { + *x = g.w; + *y = g.h; + ++layers; + stride = g.w * g.h * 4; + + if (out) { + void *tmp = (stbi_uc*) STBI_REALLOC_SIZED( out, out_size, layers * stride ); + if (NULL == tmp) { + STBI_FREE(g.out); + STBI_FREE(g.history); + STBI_FREE(g.background); + return stbi__errpuc("outofmem", "Out of memory"); + } + else { + out = (stbi_uc*) tmp; + out_size = layers * stride; + } + + if (delays) { + *delays = (int*) STBI_REALLOC_SIZED( *delays, delays_size, sizeof(int) * layers ); + delays_size = layers * sizeof(int); + } + } else { + out = (stbi_uc*)stbi__malloc( layers * stride ); + out_size = layers * stride; + if (delays) { + *delays = (int*) stbi__malloc( layers * sizeof(int) ); + delays_size = layers * sizeof(int); + } + } + memcpy( out + ((layers - 1) * stride), u, stride ); + if (layers >= 2) { + two_back = out - 2 * stride; + } + + if (delays) { + (*delays)[layers - 1U] = g.delay; + } + } + } while (u != 0); + + // free temp buffer; + STBI_FREE(g.out); + STBI_FREE(g.history); + STBI_FREE(g.background); + + // do the final conversion after loading everything; + if (req_comp && req_comp != 4) + out = stbi__convert_format(out, 4, req_comp, layers * g.w, g.h); + + *z = layers; + return out; + } else { + return stbi__errpuc("not GIF", "Image was not as a gif type."); + } +} + +static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi_uc *u = 0; + stbi__gif g; + memset(&g, 0, sizeof(g)); + STBI_NOTUSED(ri); + + u = stbi__gif_load_next(s, &g, comp, req_comp, 0); + if (u == (stbi_uc *) s) u = 0; // end of animated gif marker + if (u) { + *x = g.w; + *y = g.h; + + // moved conversion to after successful load so that the same + // can be done for multiple frames. + if (req_comp && req_comp != 4) + u = stbi__convert_format(u, 4, req_comp, g.w, g.h); + } else if (g.out) { + // if there was an error and we allocated an image buffer, free it! + STBI_FREE(g.out); + } + + // free buffers needed for multiple frame loading; + STBI_FREE(g.history); + STBI_FREE(g.background); + + return u; +} + +static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp) +{ + return stbi__gif_info_raw(s,x,y,comp); +} +#endif + +// ************************************************************************************************* +// Radiance RGBE HDR loader +// originally by Nicolas Schulz +#ifndef STBI_NO_HDR +static int stbi__hdr_test_core(stbi__context *s, const char *signature) +{ + int i; + for (i=0; signature[i]; ++i) + if (stbi__get8(s) != signature[i]) + return 0; + stbi__rewind(s); + return 1; +} + +static int stbi__hdr_test(stbi__context* s) +{ + int r = stbi__hdr_test_core(s, "#?RADIANCE\n"); + stbi__rewind(s); + if(!r) { + r = stbi__hdr_test_core(s, "#?RGBE\n"); + stbi__rewind(s); + } + return r; +} + +#define STBI__HDR_BUFLEN 1024 +static char *stbi__hdr_gettoken(stbi__context *z, char *buffer) +{ + int len=0; + char c = '\0'; + + c = (char) stbi__get8(z); + + while (!stbi__at_eof(z) && c != '\n') { + buffer[len++] = c; + if (len == STBI__HDR_BUFLEN-1) { + // flush to end of line + while (!stbi__at_eof(z) && stbi__get8(z) != '\n') + ; + break; + } + c = (char) stbi__get8(z); + } + + buffer[len] = 0; + return buffer; +} + +static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp) +{ + if ( input[3] != 0 ) { + float f1; + // Exponent + f1 = (float) ldexp(1.0f, input[3] - (int)(128 + 8)); + if (req_comp <= 2) + output[0] = (input[0] + input[1] + input[2]) * f1 / 3; + else { + output[0] = input[0] * f1; + output[1] = input[1] * f1; + output[2] = input[2] * f1; + } + if (req_comp == 2) output[1] = 1; + if (req_comp == 4) output[3] = 1; + } else { + switch (req_comp) { + case 4: output[3] = 1; /* fallthrough */ + case 3: output[0] = output[1] = output[2] = 0; + break; + case 2: output[1] = 1; /* fallthrough */ + case 1: output[0] = 0; + break; + } + } +} + +static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + char buffer[STBI__HDR_BUFLEN]; + char *token; + int valid = 0; + int width, height; + stbi_uc *scanline; + float *hdr_data; + int len; + unsigned char count, value; + int i, j, k, c1,c2, z; + const char *headerToken; + STBI_NOTUSED(ri); + + // Check identifier + headerToken = stbi__hdr_gettoken(s,buffer); + if (strcmp(headerToken, "#?RADIANCE") != 0 && strcmp(headerToken, "#?RGBE") != 0) + return stbi__errpf("not HDR", "Corrupt HDR image"); + + // Parse header + for(;;) { + token = stbi__hdr_gettoken(s,buffer); + if (token[0] == 0) break; + if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; + } + + if (!valid) return stbi__errpf("unsupported format", "Unsupported HDR format"); + + // Parse width and height + // can't use sscanf() if we're not using stdio! + token = stbi__hdr_gettoken(s,buffer); + if (strncmp(token, "-Y ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format"); + token += 3; + height = (int) strtol(token, &token, 10); + while (*token == ' ') ++token; + if (strncmp(token, "+X ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format"); + token += 3; + width = (int) strtol(token, NULL, 10); + + if (height > STBI_MAX_DIMENSIONS) return stbi__errpf("too large","Very large image (corrupt?)"); + if (width > STBI_MAX_DIMENSIONS) return stbi__errpf("too large","Very large image (corrupt?)"); + + *x = width; + *y = height; + + if (comp) *comp = 3; + if (req_comp == 0) req_comp = 3; + + if (!stbi__mad4sizes_valid(width, height, req_comp, sizeof(float), 0)) + return stbi__errpf("too large", "HDR image is too large"); + + // Read data + hdr_data = (float *) stbi__malloc_mad4(width, height, req_comp, sizeof(float), 0); + if (!hdr_data) + return stbi__errpf("outofmem", "Out of memory"); + + // Load image data + // image data is stored as some number of sca + if ( width < 8 || width >= 32768) { + // Read flat data + for (j=0; j < height; ++j) { + for (i=0; i < width; ++i) { + stbi_uc rgbe[4]; + main_decode_loop: + stbi__getn(s, rgbe, 4); + stbi__hdr_convert(hdr_data + j * width * req_comp + i * req_comp, rgbe, req_comp); + } + } + } else { + // Read RLE-encoded data + scanline = NULL; + + for (j = 0; j < height; ++j) { + c1 = stbi__get8(s); + c2 = stbi__get8(s); + len = stbi__get8(s); + if (c1 != 2 || c2 != 2 || (len & 0x80)) { + // not run-length encoded, so we have to actually use THIS data as a decoded + // pixel (note this can't be a valid pixel--one of RGB must be >= 128) + stbi_uc rgbe[4]; + rgbe[0] = (stbi_uc) c1; + rgbe[1] = (stbi_uc) c2; + rgbe[2] = (stbi_uc) len; + rgbe[3] = (stbi_uc) stbi__get8(s); + stbi__hdr_convert(hdr_data, rgbe, req_comp); + i = 1; + j = 0; + STBI_FREE(scanline); + goto main_decode_loop; // yes, this makes no sense + } + len <<= 8; + len |= stbi__get8(s); + if (len != width) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("invalid decoded scanline length", "corrupt HDR"); } + if (scanline == NULL) { + scanline = (stbi_uc *) stbi__malloc_mad2(width, 4, 0); + if (!scanline) { + STBI_FREE(hdr_data); + return stbi__errpf("outofmem", "Out of memory"); + } + } + + for (k = 0; k < 4; ++k) { + int nleft; + i = 0; + while ((nleft = width - i) > 0) { + count = stbi__get8(s); + if (count > 128) { + // Run + value = stbi__get8(s); + count -= 128; + if (count > nleft) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); } + for (z = 0; z < count; ++z) + scanline[i++ * 4 + k] = value; + } else { + // Dump + if (count > nleft) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); } + for (z = 0; z < count; ++z) + scanline[i++ * 4 + k] = stbi__get8(s); + } + } + } + for (i=0; i < width; ++i) + stbi__hdr_convert(hdr_data+(j*width + i)*req_comp, scanline + i*4, req_comp); + } + if (scanline) + STBI_FREE(scanline); + } + + return hdr_data; +} + +static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp) +{ + char buffer[STBI__HDR_BUFLEN]; + char *token; + int valid = 0; + int dummy; + + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + + if (stbi__hdr_test(s) == 0) { + stbi__rewind( s ); + return 0; + } + + for(;;) { + token = stbi__hdr_gettoken(s,buffer); + if (token[0] == 0) break; + if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; + } + + if (!valid) { + stbi__rewind( s ); + return 0; + } + token = stbi__hdr_gettoken(s,buffer); + if (strncmp(token, "-Y ", 3)) { + stbi__rewind( s ); + return 0; + } + token += 3; + *y = (int) strtol(token, &token, 10); + while (*token == ' ') ++token; + if (strncmp(token, "+X ", 3)) { + stbi__rewind( s ); + return 0; + } + token += 3; + *x = (int) strtol(token, NULL, 10); + *comp = 3; + return 1; +} +#endif // STBI_NO_HDR + +#ifndef STBI_NO_BMP +static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp) +{ + void *p; + stbi__bmp_data info; + + info.all_a = 255; + p = stbi__bmp_parse_header(s, &info); + stbi__rewind( s ); + if (p == NULL) + return 0; + if (x) *x = s->img_x; + if (y) *y = s->img_y; + if (comp) { + if (info.bpp == 24 && info.ma == 0xff000000) + *comp = 3; + else + *comp = info.ma ? 4 : 3; + } + return 1; +} +#endif + +#ifndef STBI_NO_PSD +static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp) +{ + int channelCount, dummy, depth; + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + if (stbi__get32be(s) != 0x38425053) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 1) { + stbi__rewind( s ); + return 0; + } + stbi__skip(s, 6); + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) { + stbi__rewind( s ); + return 0; + } + *y = stbi__get32be(s); + *x = stbi__get32be(s); + depth = stbi__get16be(s); + if (depth != 8 && depth != 16) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 3) { + stbi__rewind( s ); + return 0; + } + *comp = 4; + return 1; +} + +static int stbi__psd_is16(stbi__context *s) +{ + int channelCount, depth; + if (stbi__get32be(s) != 0x38425053) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 1) { + stbi__rewind( s ); + return 0; + } + stbi__skip(s, 6); + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) { + stbi__rewind( s ); + return 0; + } + (void) stbi__get32be(s); + (void) stbi__get32be(s); + depth = stbi__get16be(s); + if (depth != 16) { + stbi__rewind( s ); + return 0; + } + return 1; +} +#endif + +#ifndef STBI_NO_PIC +static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp) +{ + int act_comp=0,num_packets=0,chained,dummy; + stbi__pic_packet packets[10]; + + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + + if (!stbi__pic_is4(s,"\x53\x80\xF6\x34")) { + stbi__rewind(s); + return 0; + } + + stbi__skip(s, 88); + + *x = stbi__get16be(s); + *y = stbi__get16be(s); + if (stbi__at_eof(s)) { + stbi__rewind( s); + return 0; + } + if ( (*x) != 0 && (1 << 28) / (*x) < (*y)) { + stbi__rewind( s ); + return 0; + } + + stbi__skip(s, 8); + + do { + stbi__pic_packet *packet; + + if (num_packets==sizeof(packets)/sizeof(packets[0])) + return 0; + + packet = &packets[num_packets++]; + chained = stbi__get8(s); + packet->size = stbi__get8(s); + packet->type = stbi__get8(s); + packet->channel = stbi__get8(s); + act_comp |= packet->channel; + + if (stbi__at_eof(s)) { + stbi__rewind( s ); + return 0; + } + if (packet->size != 8) { + stbi__rewind( s ); + return 0; + } + } while (chained); + + *comp = (act_comp & 0x10 ? 4 : 3); + + return 1; +} +#endif + +// ************************************************************************************************* +// Portable Gray Map and Portable Pixel Map loader +// by Ken Miller +// +// PGM: http://netpbm.sourceforge.net/doc/pgm.html +// PPM: http://netpbm.sourceforge.net/doc/ppm.html +// +// Known limitations: +// Does not support comments in the header section +// Does not support ASCII image data (formats P2 and P3) +// Does not support 16-bit-per-channel + +#ifndef STBI_NO_PNM + +static int stbi__pnm_test(stbi__context *s) +{ + char p, t; + p = (char) stbi__get8(s); + t = (char) stbi__get8(s); + if (p != 'P' || (t != '5' && t != '6')) { + stbi__rewind( s ); + return 0; + } + return 1; +} + +static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi_uc *out; + STBI_NOTUSED(ri); + + if (!stbi__pnm_info(s, (int *)&s->img_x, (int *)&s->img_y, (int *)&s->img_n)) + return 0; + + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + *x = s->img_x; + *y = s->img_y; + if (comp) *comp = s->img_n; + + if (!stbi__mad3sizes_valid(s->img_n, s->img_x, s->img_y, 0)) + return stbi__errpuc("too large", "PNM too large"); + + out = (stbi_uc *) stbi__malloc_mad3(s->img_n, s->img_x, s->img_y, 0); + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + stbi__getn(s, out, s->img_n * s->img_x * s->img_y); + + if (req_comp && req_comp != s->img_n) { + out = stbi__convert_format(out, s->img_n, req_comp, s->img_x, s->img_y); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + return out; +} + +static int stbi__pnm_isspace(char c) +{ + return c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r'; +} + +static void stbi__pnm_skip_whitespace(stbi__context *s, char *c) +{ + for (;;) { + while (!stbi__at_eof(s) && stbi__pnm_isspace(*c)) + *c = (char) stbi__get8(s); + + if (stbi__at_eof(s) || *c != '#') + break; + + while (!stbi__at_eof(s) && *c != '\n' && *c != '\r' ) + *c = (char) stbi__get8(s); + } +} + +static int stbi__pnm_isdigit(char c) +{ + return c >= '0' && c <= '9'; +} + +static int stbi__pnm_getinteger(stbi__context *s, char *c) +{ + int value = 0; + + while (!stbi__at_eof(s) && stbi__pnm_isdigit(*c)) { + value = value*10 + (*c - '0'); + *c = (char) stbi__get8(s); + } + + return value; +} + +static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp) +{ + int maxv, dummy; + char c, p, t; + + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + + stbi__rewind(s); + + // Get identifier + p = (char) stbi__get8(s); + t = (char) stbi__get8(s); + if (p != 'P' || (t != '5' && t != '6')) { + stbi__rewind(s); + return 0; + } + + *comp = (t == '6') ? 3 : 1; // '5' is 1-component .pgm; '6' is 3-component .ppm + + c = (char) stbi__get8(s); + stbi__pnm_skip_whitespace(s, &c); + + *x = stbi__pnm_getinteger(s, &c); // read width + stbi__pnm_skip_whitespace(s, &c); + + *y = stbi__pnm_getinteger(s, &c); // read height + stbi__pnm_skip_whitespace(s, &c); + + maxv = stbi__pnm_getinteger(s, &c); // read max value + + if (maxv > 255) + return stbi__err("max value > 255", "PPM image not 8-bit"); + else + return 1; +} +#endif + +static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp) +{ + #ifndef STBI_NO_JPEG + if (stbi__jpeg_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PNG + if (stbi__png_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_GIF + if (stbi__gif_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_BMP + if (stbi__bmp_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PSD + if (stbi__psd_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PIC + if (stbi__pic_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PNM + if (stbi__pnm_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_HDR + if (stbi__hdr_info(s, x, y, comp)) return 1; + #endif + + // test tga last because it's a crappy test! + #ifndef STBI_NO_TGA + if (stbi__tga_info(s, x, y, comp)) + return 1; + #endif + return stbi__err("unknown image type", "Image not of any known type, or corrupt"); +} + +static int stbi__is_16_main(stbi__context *s) +{ + #ifndef STBI_NO_PNG + if (stbi__png_is16(s)) return 1; + #endif + + #ifndef STBI_NO_PSD + if (stbi__psd_is16(s)) return 1; + #endif + + return 0; +} + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result; + if (!f) return stbi__err("can't fopen", "Unable to open file"); + result = stbi_info_from_file(f, x, y, comp); + fclose(f); + return result; +} + +STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp) +{ + int r; + stbi__context s; + long pos = ftell(f); + stbi__start_file(&s, f); + r = stbi__info_main(&s,x,y,comp); + fseek(f,pos,SEEK_SET); + return r; +} + +STBIDEF int stbi_is_16_bit(char const *filename) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result; + if (!f) return stbi__err("can't fopen", "Unable to open file"); + result = stbi_is_16_bit_from_file(f); + fclose(f); + return result; +} + +STBIDEF int stbi_is_16_bit_from_file(FILE *f) +{ + int r; + stbi__context s; + long pos = ftell(f); + stbi__start_file(&s, f); + r = stbi__is_16_main(&s); + fseek(f,pos,SEEK_SET); + return r; +} +#endif // !STBI_NO_STDIO + +STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__info_main(&s,x,y,comp); +} + +STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) c, user); + return stbi__info_main(&s,x,y,comp); +} + +STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__is_16_main(&s); +} + +STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) c, user); + return stbi__is_16_main(&s); +} + +#endif // STB_IMAGE_IMPLEMENTATION + +/* + revision history: + 2.20 (2019-02-07) support utf8 filenames in Windows; fix warnings and platform ifdefs + 2.19 (2018-02-11) fix warning + 2.18 (2018-01-30) fix warnings + 2.17 (2018-01-29) change sbti__shiftsigned to avoid clang -O2 bug + 1-bit BMP + *_is_16_bit api + avoid warnings + 2.16 (2017-07-23) all functions have 16-bit variants; + STBI_NO_STDIO works again; + compilation fixes; + fix rounding in unpremultiply; + optimize vertical flip; + disable raw_len validation; + documentation fixes + 2.15 (2017-03-18) fix png-1,2,4 bug; now all Imagenet JPGs decode; + warning fixes; disable run-time SSE detection on gcc; + uniform handling of optional "return" values; + thread-safe initialization of zlib tables + 2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs + 2.13 (2016-11-29) add 16-bit API, only supported for PNG right now + 2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes + 2.11 (2016-04-02) allocate large structures on the stack + remove white matting for transparent PSD + fix reported channel count for PNG & BMP + re-enable SSE2 in non-gcc 64-bit + support RGB-formatted JPEG + read 16-bit PNGs (only as 8-bit) + 2.10 (2016-01-22) avoid warning introduced in 2.09 by STBI_REALLOC_SIZED + 2.09 (2016-01-16) allow comments in PNM files + 16-bit-per-pixel TGA (not bit-per-component) + info() for TGA could break due to .hdr handling + info() for BMP to shares code instead of sloppy parse + can use STBI_REALLOC_SIZED if allocator doesn't support realloc + code cleanup + 2.08 (2015-09-13) fix to 2.07 cleanup, reading RGB PSD as RGBA + 2.07 (2015-09-13) fix compiler warnings + partial animated GIF support + limited 16-bpc PSD support + #ifdef unused functions + bug with < 92 byte PIC,PNM,HDR,TGA + 2.06 (2015-04-19) fix bug where PSD returns wrong '*comp' value + 2.05 (2015-04-19) fix bug in progressive JPEG handling, fix warning + 2.04 (2015-04-15) try to re-enable SIMD on MinGW 64-bit + 2.03 (2015-04-12) extra corruption checking (mmozeiko) + stbi_set_flip_vertically_on_load (nguillemot) + fix NEON support; fix mingw support + 2.02 (2015-01-19) fix incorrect assert, fix warning + 2.01 (2015-01-17) fix various warnings; suppress SIMD on gcc 32-bit without -msse2 + 2.00b (2014-12-25) fix STBI_MALLOC in progressive JPEG + 2.00 (2014-12-25) optimize JPG, including x86 SSE2 & NEON SIMD (ryg) + progressive JPEG (stb) + PGM/PPM support (Ken Miller) + STBI_MALLOC,STBI_REALLOC,STBI_FREE + GIF bugfix -- seemingly never worked + STBI_NO_*, STBI_ONLY_* + 1.48 (2014-12-14) fix incorrectly-named assert() + 1.47 (2014-12-14) 1/2/4-bit PNG support, both direct and paletted (Omar Cornut & stb) + optimize PNG (ryg) + fix bug in interlaced PNG with user-specified channel count (stb) + 1.46 (2014-08-26) + fix broken tRNS chunk (colorkey-style transparency) in non-paletted PNG + 1.45 (2014-08-16) + fix MSVC-ARM internal compiler error by wrapping malloc + 1.44 (2014-08-07) + various warning fixes from Ronny Chevalier + 1.43 (2014-07-15) + fix MSVC-only compiler problem in code changed in 1.42 + 1.42 (2014-07-09) + don't define _CRT_SECURE_NO_WARNINGS (affects user code) + fixes to stbi__cleanup_jpeg path + added STBI_ASSERT to avoid requiring assert.h + 1.41 (2014-06-25) + fix search&replace from 1.36 that messed up comments/error messages + 1.40 (2014-06-22) + fix gcc struct-initialization warning + 1.39 (2014-06-15) + fix to TGA optimization when req_comp != number of components in TGA; + fix to GIF loading because BMP wasn't rewinding (whoops, no GIFs in my test suite) + add support for BMP version 5 (more ignored fields) + 1.38 (2014-06-06) + suppress MSVC warnings on integer casts truncating values + fix accidental rename of 'skip' field of I/O + 1.37 (2014-06-04) + remove duplicate typedef + 1.36 (2014-06-03) + convert to header file single-file library + if de-iphone isn't set, load iphone images color-swapped instead of returning NULL + 1.35 (2014-05-27) + various warnings + fix broken STBI_SIMD path + fix bug where stbi_load_from_file no longer left file pointer in correct place + fix broken non-easy path for 32-bit BMP (possibly never used) + TGA optimization by Arseny Kapoulkine + 1.34 (unknown) + use STBI_NOTUSED in stbi__resample_row_generic(), fix one more leak in tga failure case + 1.33 (2011-07-14) + make stbi_is_hdr work in STBI_NO_HDR (as specified), minor compiler-friendly improvements + 1.32 (2011-07-13) + support for "info" function for all supported filetypes (SpartanJ) + 1.31 (2011-06-20) + a few more leak fixes, bug in PNG handling (SpartanJ) + 1.30 (2011-06-11) + added ability to load files via callbacks to accomidate custom input streams (Ben Wenger) + removed deprecated format-specific test/load functions + removed support for installable file formats (stbi_loader) -- would have been broken for IO callbacks anyway + error cases in bmp and tga give messages and don't leak (Raymond Barbiero, grisha) + fix inefficiency in decoding 32-bit BMP (David Woo) + 1.29 (2010-08-16) + various warning fixes from Aurelien Pocheville + 1.28 (2010-08-01) + fix bug in GIF palette transparency (SpartanJ) + 1.27 (2010-08-01) + cast-to-stbi_uc to fix warnings + 1.26 (2010-07-24) + fix bug in file buffering for PNG reported by SpartanJ + 1.25 (2010-07-17) + refix trans_data warning (Won Chun) + 1.24 (2010-07-12) + perf improvements reading from files on platforms with lock-heavy fgetc() + minor perf improvements for jpeg + deprecated type-specific functions so we'll get feedback if they're needed + attempt to fix trans_data warning (Won Chun) + 1.23 fixed bug in iPhone support + 1.22 (2010-07-10) + removed image *writing* support + stbi_info support from Jetro Lauha + GIF support from Jean-Marc Lienher + iPhone PNG-extensions from James Brown + warning-fixes from Nicolas Schulz and Janez Zemva (i.stbi__err. Janez (U+017D)emva) + 1.21 fix use of 'stbi_uc' in header (reported by jon blow) + 1.20 added support for Softimage PIC, by Tom Seddon + 1.19 bug in interlaced PNG corruption check (found by ryg) + 1.18 (2008-08-02) + fix a threading bug (local mutable static) + 1.17 support interlaced PNG + 1.16 major bugfix - stbi__convert_format converted one too many pixels + 1.15 initialize some fields for thread safety + 1.14 fix threadsafe conversion bug + header-file-only version (#define STBI_HEADER_FILE_ONLY before including) + 1.13 threadsafe + 1.12 const qualifiers in the API + 1.11 Support installable IDCT, colorspace conversion routines + 1.10 Fixes for 64-bit (don't use "unsigned long") + optimized upsampling by Fabian "ryg" Giesen + 1.09 Fix format-conversion for PSD code (bad global variables!) + 1.08 Thatcher Ulrich's PSD code integrated by Nicolas Schulz + 1.07 attempt to fix C++ warning/errors again + 1.06 attempt to fix C++ warning/errors again + 1.05 fix TGA loading to return correct *comp and use good luminance calc + 1.04 default float alpha is 1, not 255; use 'void *' for stbi_image_free + 1.03 bugfixes to STBI_NO_STDIO, STBI_NO_HDR + 1.02 support for (subset of) HDR files, float interface for preferred access to them + 1.01 fix bug: possible bug in handling right-side up bmps... not sure + fix bug: the stbi__bmp_load() and stbi__tga_load() functions didn't work at all + 1.00 interface to zlib that skips zlib header + 0.99 correct handling of alpha in palette + 0.98 TGA loader by lonesock; dynamically add loaders (untested) + 0.97 jpeg errors on too large a file; also catch another malloc failure + 0.96 fix detection of invalid v value - particleman@mollyrocket forum + 0.95 during header scan, seek to markers in case of padding + 0.94 STBI_NO_STDIO to disable stdio usage; rename all #defines the same + 0.93 handle jpegtran output; verbose errors + 0.92 read 4,8,16,24,32-bit BMP files of several formats + 0.91 output 24-bit Windows 3.0 BMP files + 0.90 fix a few more warnings; bump version number to approach 1.0 + 0.61 bugfixes due to Marc LeBlanc, Christopher Lloyd + 0.60 fix compiling as c++ + 0.59 fix warnings: merge Dave Moore's -Wall fixes + 0.58 fix bug: zlib uncompressed mode len/nlen was wrong endian + 0.57 fix bug: jpg last huffman symbol before marker was >9 bits but less than 16 available + 0.56 fix bug: zlib uncompressed mode len vs. nlen + 0.55 fix bug: restart_interval not initialized to 0 + 0.54 allow NULL for 'int *comp' + 0.53 fix bug in png 3->4; speedup png decoding + 0.52 png handles req_comp=3,4 directly; minor cleanup; jpeg comments + 0.51 obey req_comp requests, 1-component jpegs return as 1-component, + on 'test' only check type, not whether we support this variant + 0.50 (2006-11-19) + first released version +*/ + + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ \ No newline at end of file diff --git a/CheatMenu/external/json.hpp b/CheatMenu/external/json.hpp new file mode 100644 index 0000000..242f034 --- /dev/null +++ b/CheatMenu/external/json.hpp @@ -0,0 +1,25447 @@ +/* + __ _____ _____ _____ + __| | __| | | | JSON for Modern C++ +| | |__ | | | | | | version 3.9.1 +|_____|_____|_____|_|___| https://github.com/nlohmann/json + +Licensed under the MIT License . +SPDX-License-Identifier: MIT +Copyright (c) 2013-2019 Niels Lohmann . + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +#ifndef INCLUDE_NLOHMANN_JSON_HPP_ +#define INCLUDE_NLOHMANN_JSON_HPP_ + +#define NLOHMANN_JSON_VERSION_MAJOR 3 +#define NLOHMANN_JSON_VERSION_MINOR 9 +#define NLOHMANN_JSON_VERSION_PATCH 1 + +#include // all_of, find, for_each +#include // nullptr_t, ptrdiff_t, size_t +#include // hash, less +#include // initializer_list +#include // istream, ostream +#include // random_access_iterator_tag +#include // unique_ptr +#include // accumulate +#include // string, stoi, to_string +#include // declval, forward, move, pair, swap +#include // vector + +// #include + + +#include + +// #include + + +#include // transform +#include // array +#include // forward_list +#include // inserter, front_inserter, end +#include // map +#include // string +#include // tuple, make_tuple +#include // is_arithmetic, is_same, is_enum, underlying_type, is_convertible +#include // unordered_map +#include // pair, declval +#include // valarray + +// #include + + +#include // exception +#include // runtime_error +#include // to_string + +// #include + + +#include // size_t + +namespace nlohmann +{ +namespace detail +{ +/// struct to capture the start position of the current token +struct position_t +{ + /// the total number of characters read + std::size_t chars_read_total = 0; + /// the number of characters read in the current line + std::size_t chars_read_current_line = 0; + /// the number of lines read + std::size_t lines_read = 0; + + /// conversion to size_t to preserve SAX interface + constexpr operator size_t() const + { + return chars_read_total; + } +}; + +} // namespace detail +} // namespace nlohmann + +// #include + + +#include // pair +// #include +/* Hedley - https://nemequ.github.io/hedley + * Created by Evan Nemerson + * + * To the extent possible under law, the author(s) have dedicated all + * copyright and related and neighboring rights to this software to + * the public domain worldwide. This software is distributed without + * any warranty. + * + * For details, see . + * SPDX-License-Identifier: CC0-1.0 + */ + +#if !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < 13) +#if defined(JSON_HEDLEY_VERSION) + #undef JSON_HEDLEY_VERSION +#endif +#define JSON_HEDLEY_VERSION 13 + +#if defined(JSON_HEDLEY_STRINGIFY_EX) + #undef JSON_HEDLEY_STRINGIFY_EX +#endif +#define JSON_HEDLEY_STRINGIFY_EX(x) #x + +#if defined(JSON_HEDLEY_STRINGIFY) + #undef JSON_HEDLEY_STRINGIFY +#endif +#define JSON_HEDLEY_STRINGIFY(x) JSON_HEDLEY_STRINGIFY_EX(x) + +#if defined(JSON_HEDLEY_CONCAT_EX) + #undef JSON_HEDLEY_CONCAT_EX +#endif +#define JSON_HEDLEY_CONCAT_EX(a,b) a##b + +#if defined(JSON_HEDLEY_CONCAT) + #undef JSON_HEDLEY_CONCAT +#endif +#define JSON_HEDLEY_CONCAT(a,b) JSON_HEDLEY_CONCAT_EX(a,b) + +#if defined(JSON_HEDLEY_CONCAT3_EX) + #undef JSON_HEDLEY_CONCAT3_EX +#endif +#define JSON_HEDLEY_CONCAT3_EX(a,b,c) a##b##c + +#if defined(JSON_HEDLEY_CONCAT3) + #undef JSON_HEDLEY_CONCAT3 +#endif +#define JSON_HEDLEY_CONCAT3(a,b,c) JSON_HEDLEY_CONCAT3_EX(a,b,c) + +#if defined(JSON_HEDLEY_VERSION_ENCODE) + #undef JSON_HEDLEY_VERSION_ENCODE +#endif +#define JSON_HEDLEY_VERSION_ENCODE(major,minor,revision) (((major) * 1000000) + ((minor) * 1000) + (revision)) + +#if defined(JSON_HEDLEY_VERSION_DECODE_MAJOR) + #undef JSON_HEDLEY_VERSION_DECODE_MAJOR +#endif +#define JSON_HEDLEY_VERSION_DECODE_MAJOR(version) ((version) / 1000000) + +#if defined(JSON_HEDLEY_VERSION_DECODE_MINOR) + #undef JSON_HEDLEY_VERSION_DECODE_MINOR +#endif +#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000) + +#if defined(JSON_HEDLEY_VERSION_DECODE_REVISION) + #undef JSON_HEDLEY_VERSION_DECODE_REVISION +#endif +#define JSON_HEDLEY_VERSION_DECODE_REVISION(version) ((version) % 1000) + +#if defined(JSON_HEDLEY_GNUC_VERSION) + #undef JSON_HEDLEY_GNUC_VERSION +#endif +#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__) + #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) +#elif defined(__GNUC__) + #define JSON_HEDLEY_GNUC_VERSION JSON_HEDLEY_VERSION_ENCODE(__GNUC__, __GNUC_MINOR__, 0) +#endif + +#if defined(JSON_HEDLEY_GNUC_VERSION_CHECK) + #undef JSON_HEDLEY_GNUC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_GNUC_VERSION) + #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_MSVC_VERSION) + #undef JSON_HEDLEY_MSVC_VERSION +#endif +#if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 140000000) + #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 10000000, (_MSC_FULL_VER % 10000000) / 100000, (_MSC_FULL_VER % 100000) / 100) +#elif defined(_MSC_FULL_VER) + #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_FULL_VER / 1000000, (_MSC_FULL_VER % 1000000) / 10000, (_MSC_FULL_VER % 10000) / 10) +#elif defined(_MSC_VER) + #define JSON_HEDLEY_MSVC_VERSION JSON_HEDLEY_VERSION_ENCODE(_MSC_VER / 100, _MSC_VER % 100, 0) +#endif + +#if defined(JSON_HEDLEY_MSVC_VERSION_CHECK) + #undef JSON_HEDLEY_MSVC_VERSION_CHECK +#endif +#if !defined(_MSC_VER) + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0) +#elif defined(_MSC_VER) && (_MSC_VER >= 1400) + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 10000000) + (minor * 100000) + (patch))) +#elif defined(_MSC_VER) && (_MSC_VER >= 1200) + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_FULL_VER >= ((major * 1000000) + (minor * 10000) + (patch))) +#else + #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (_MSC_VER >= ((major * 100) + (minor))) +#endif + +#if defined(JSON_HEDLEY_INTEL_VERSION) + #undef JSON_HEDLEY_INTEL_VERSION +#endif +#if defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE) + #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, __INTEL_COMPILER_UPDATE) +#elif defined(__INTEL_COMPILER) + #define JSON_HEDLEY_INTEL_VERSION JSON_HEDLEY_VERSION_ENCODE(__INTEL_COMPILER / 100, __INTEL_COMPILER % 100, 0) +#endif + +#if defined(JSON_HEDLEY_INTEL_VERSION_CHECK) + #undef JSON_HEDLEY_INTEL_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_INTEL_VERSION) + #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_INTEL_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_PGI_VERSION) + #undef JSON_HEDLEY_PGI_VERSION +#endif +#if defined(__PGI) && defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__) + #define JSON_HEDLEY_PGI_VERSION JSON_HEDLEY_VERSION_ENCODE(__PGIC__, __PGIC_MINOR__, __PGIC_PATCHLEVEL__) +#endif + +#if defined(JSON_HEDLEY_PGI_VERSION_CHECK) + #undef JSON_HEDLEY_PGI_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_PGI_VERSION) + #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PGI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_PGI_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_SUNPRO_VERSION) + #undef JSON_HEDLEY_SUNPRO_VERSION +#endif +#if defined(__SUNPRO_C) && (__SUNPRO_C > 0x1000) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_C >> 16) & 0xf) * 10) + ((__SUNPRO_C >> 12) & 0xf), (((__SUNPRO_C >> 8) & 0xf) * 10) + ((__SUNPRO_C >> 4) & 0xf), (__SUNPRO_C & 0xf) * 10) +#elif defined(__SUNPRO_C) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C) & 0xf) +#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((((__SUNPRO_CC >> 16) & 0xf) * 10) + ((__SUNPRO_CC >> 12) & 0xf), (((__SUNPRO_CC >> 8) & 0xf) * 10) + ((__SUNPRO_CC >> 4) & 0xf), (__SUNPRO_CC & 0xf) * 10) +#elif defined(__SUNPRO_CC) + #define JSON_HEDLEY_SUNPRO_VERSION JSON_HEDLEY_VERSION_ENCODE((__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC) & 0xf) +#endif + +#if defined(JSON_HEDLEY_SUNPRO_VERSION_CHECK) + #undef JSON_HEDLEY_SUNPRO_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_SUNPRO_VERSION) + #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_SUNPRO_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION) + #undef JSON_HEDLEY_EMSCRIPTEN_VERSION +#endif +#if defined(__EMSCRIPTEN__) + #define JSON_HEDLEY_EMSCRIPTEN_VERSION JSON_HEDLEY_VERSION_ENCODE(__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__) +#endif + +#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK) + #undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_EMSCRIPTEN_VERSION) + #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_EMSCRIPTEN_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_ARM_VERSION) + #undef JSON_HEDLEY_ARM_VERSION +#endif +#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION) + #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCOMPILER_VERSION / 1000000, (__ARMCOMPILER_VERSION % 1000000) / 10000, (__ARMCOMPILER_VERSION % 10000) / 100) +#elif defined(__CC_ARM) && defined(__ARMCC_VERSION) + #define JSON_HEDLEY_ARM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ARMCC_VERSION / 1000000, (__ARMCC_VERSION % 1000000) / 10000, (__ARMCC_VERSION % 10000) / 100) +#endif + +#if defined(JSON_HEDLEY_ARM_VERSION_CHECK) + #undef JSON_HEDLEY_ARM_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_ARM_VERSION) + #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_ARM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_ARM_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_IBM_VERSION) + #undef JSON_HEDLEY_IBM_VERSION +#endif +#if defined(__ibmxl__) + #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__ibmxl_version__, __ibmxl_release__, __ibmxl_modification__) +#elif defined(__xlC__) && defined(__xlC_ver__) + #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, (__xlC_ver__ >> 8) & 0xff) +#elif defined(__xlC__) + #define JSON_HEDLEY_IBM_VERSION JSON_HEDLEY_VERSION_ENCODE(__xlC__ >> 8, __xlC__ & 0xff, 0) +#endif + +#if defined(JSON_HEDLEY_IBM_VERSION_CHECK) + #undef JSON_HEDLEY_IBM_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_IBM_VERSION) + #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IBM_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_IBM_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_VERSION) + #undef JSON_HEDLEY_TI_VERSION +#endif +#if \ + defined(__TI_COMPILER_VERSION__) && \ + ( \ + defined(__TMS470__) || defined(__TI_ARM__) || \ + defined(__MSP430__) || \ + defined(__TMS320C2000__) \ + ) +#if (__TI_COMPILER_VERSION__ >= 16000000) + #define JSON_HEDLEY_TI_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif +#endif + +#if defined(JSON_HEDLEY_TI_VERSION_CHECK) + #undef JSON_HEDLEY_TI_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_VERSION) + #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CL2000_VERSION) + #undef JSON_HEDLEY_TI_CL2000_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C2000__) + #define JSON_HEDLEY_TI_CL2000_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CL2000_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CL2000_VERSION) + #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL2000_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CL2000_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CL430_VERSION) + #undef JSON_HEDLEY_TI_CL430_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__MSP430__) + #define JSON_HEDLEY_TI_CL430_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CL430_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CL430_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CL430_VERSION) + #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL430_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CL430_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_ARMCL_VERSION) + #undef JSON_HEDLEY_TI_ARMCL_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && (defined(__TMS470__) || defined(__TI_ARM__)) + #define JSON_HEDLEY_TI_ARMCL_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_ARMCL_VERSION_CHECK) + #undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_ARMCL_VERSION) + #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_ARMCL_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CL6X_VERSION) + #undef JSON_HEDLEY_TI_CL6X_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__TMS320C6X__) + #define JSON_HEDLEY_TI_CL6X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CL6X_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CL6X_VERSION) + #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL6X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CL7X_VERSION) + #undef JSON_HEDLEY_TI_CL7X_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__C7000__) + #define JSON_HEDLEY_TI_CL7X_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CL7X_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CL7X_VERSION) + #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL7X_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CL7X_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TI_CLPRU_VERSION) + #undef JSON_HEDLEY_TI_CLPRU_VERSION +#endif +#if defined(__TI_COMPILER_VERSION__) && defined(__PRU__) + #define JSON_HEDLEY_TI_CLPRU_VERSION JSON_HEDLEY_VERSION_ENCODE(__TI_COMPILER_VERSION__ / 1000000, (__TI_COMPILER_VERSION__ % 1000000) / 1000, (__TI_COMPILER_VERSION__ % 1000)) +#endif + +#if defined(JSON_HEDLEY_TI_CLPRU_VERSION_CHECK) + #undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TI_CLPRU_VERSION) + #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CLPRU_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_CRAY_VERSION) + #undef JSON_HEDLEY_CRAY_VERSION +#endif +#if defined(_CRAYC) + #if defined(_RELEASE_PATCHLEVEL) + #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL) + #else + #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, 0) + #endif +#endif + +#if defined(JSON_HEDLEY_CRAY_VERSION_CHECK) + #undef JSON_HEDLEY_CRAY_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_CRAY_VERSION) + #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_CRAY_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_CRAY_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_IAR_VERSION) + #undef JSON_HEDLEY_IAR_VERSION +#endif +#if defined(__IAR_SYSTEMS_ICC__) + #if __VER__ > 1000 + #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VER__ % 1000)) + #else + #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE(VER / 100, __VER__ % 100, 0) + #endif +#endif + +#if defined(JSON_HEDLEY_IAR_VERSION_CHECK) + #undef JSON_HEDLEY_IAR_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_IAR_VERSION) + #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_IAR_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_IAR_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_TINYC_VERSION) + #undef JSON_HEDLEY_TINYC_VERSION +#endif +#if defined(__TINYC__) + #define JSON_HEDLEY_TINYC_VERSION JSON_HEDLEY_VERSION_ENCODE(__TINYC__ / 1000, (__TINYC__ / 100) % 10, __TINYC__ % 100) +#endif + +#if defined(JSON_HEDLEY_TINYC_VERSION_CHECK) + #undef JSON_HEDLEY_TINYC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_TINYC_VERSION) + #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TINYC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_TINYC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_DMC_VERSION) + #undef JSON_HEDLEY_DMC_VERSION +#endif +#if defined(__DMC__) + #define JSON_HEDLEY_DMC_VERSION JSON_HEDLEY_VERSION_ENCODE(__DMC__ >> 8, (__DMC__ >> 4) & 0xf, __DMC__ & 0xf) +#endif + +#if defined(JSON_HEDLEY_DMC_VERSION_CHECK) + #undef JSON_HEDLEY_DMC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_DMC_VERSION) + #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_DMC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_DMC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_COMPCERT_VERSION) + #undef JSON_HEDLEY_COMPCERT_VERSION +#endif +#if defined(__COMPCERT_VERSION__) + #define JSON_HEDLEY_COMPCERT_VERSION JSON_HEDLEY_VERSION_ENCODE(__COMPCERT_VERSION__ / 10000, (__COMPCERT_VERSION__ / 100) % 100, __COMPCERT_VERSION__ % 100) +#endif + +#if defined(JSON_HEDLEY_COMPCERT_VERSION_CHECK) + #undef JSON_HEDLEY_COMPCERT_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_COMPCERT_VERSION) + #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_COMPCERT_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_PELLES_VERSION) + #undef JSON_HEDLEY_PELLES_VERSION +#endif +#if defined(__POCC__) + #define JSON_HEDLEY_PELLES_VERSION JSON_HEDLEY_VERSION_ENCODE(__POCC__ / 100, __POCC__ % 100, 0) +#endif + +#if defined(JSON_HEDLEY_PELLES_VERSION_CHECK) + #undef JSON_HEDLEY_PELLES_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_PELLES_VERSION) + #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_PELLES_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_PELLES_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_GCC_VERSION) + #undef JSON_HEDLEY_GCC_VERSION +#endif +#if \ + defined(JSON_HEDLEY_GNUC_VERSION) && \ + !defined(__clang__) && \ + !defined(JSON_HEDLEY_INTEL_VERSION) && \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_ARM_VERSION) && \ + !defined(JSON_HEDLEY_TI_VERSION) && \ + !defined(JSON_HEDLEY_TI_ARMCL_VERSION) && \ + !defined(JSON_HEDLEY_TI_CL430_VERSION) && \ + !defined(JSON_HEDLEY_TI_CL2000_VERSION) && \ + !defined(JSON_HEDLEY_TI_CL6X_VERSION) && \ + !defined(JSON_HEDLEY_TI_CL7X_VERSION) && \ + !defined(JSON_HEDLEY_TI_CLPRU_VERSION) && \ + !defined(__COMPCERT__) + #define JSON_HEDLEY_GCC_VERSION JSON_HEDLEY_GNUC_VERSION +#endif + +#if defined(JSON_HEDLEY_GCC_VERSION_CHECK) + #undef JSON_HEDLEY_GCC_VERSION_CHECK +#endif +#if defined(JSON_HEDLEY_GCC_VERSION) + #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GCC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(major, minor, patch)) +#else + #define JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) (0) +#endif + +#if defined(JSON_HEDLEY_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_HAS_ATTRIBUTE +#endif +#if defined(__has_attribute) + #define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) __has_attribute(attribute) +#else + #define JSON_HEDLEY_HAS_ATTRIBUTE(attribute) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE +#endif +#if defined(__has_attribute) + #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) __has_attribute(attribute) +#else + #define JSON_HEDLEY_GNUC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE +#endif +#if defined(__has_attribute) + #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) __has_attribute(attribute) +#else + #define JSON_HEDLEY_GCC_HAS_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE +#endif +#if \ + defined(__has_cpp_attribute) && \ + defined(__cplusplus) && \ + (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) __has_cpp_attribute(attribute) +#else + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) (0) +#endif + +#if defined(JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS) + #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS +#endif +#if !defined(__cplusplus) || !defined(__has_cpp_attribute) + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0) +#elif \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_IAR_VERSION) && \ + (!defined(JSON_HEDLEY_SUNPRO_VERSION) || JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0)) && \ + (!defined(JSON_HEDLEY_MSVC_VERSION) || JSON_HEDLEY_MSVC_VERSION_CHECK(19,20,0)) + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(ns::attribute) +#else + #define JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(ns,attribute) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE +#endif +#if defined(__has_cpp_attribute) && defined(__cplusplus) + #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute) +#else + #define JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE +#endif +#if defined(__has_cpp_attribute) && defined(__cplusplus) + #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) __has_cpp_attribute(attribute) +#else + #define JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_BUILTIN) + #undef JSON_HEDLEY_HAS_BUILTIN +#endif +#if defined(__has_builtin) + #define JSON_HEDLEY_HAS_BUILTIN(builtin) __has_builtin(builtin) +#else + #define JSON_HEDLEY_HAS_BUILTIN(builtin) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_BUILTIN) + #undef JSON_HEDLEY_GNUC_HAS_BUILTIN +#endif +#if defined(__has_builtin) + #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin) +#else + #define JSON_HEDLEY_GNUC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_BUILTIN) + #undef JSON_HEDLEY_GCC_HAS_BUILTIN +#endif +#if defined(__has_builtin) + #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) __has_builtin(builtin) +#else + #define JSON_HEDLEY_GCC_HAS_BUILTIN(builtin,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_FEATURE) + #undef JSON_HEDLEY_HAS_FEATURE +#endif +#if defined(__has_feature) + #define JSON_HEDLEY_HAS_FEATURE(feature) __has_feature(feature) +#else + #define JSON_HEDLEY_HAS_FEATURE(feature) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_FEATURE) + #undef JSON_HEDLEY_GNUC_HAS_FEATURE +#endif +#if defined(__has_feature) + #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature) +#else + #define JSON_HEDLEY_GNUC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_FEATURE) + #undef JSON_HEDLEY_GCC_HAS_FEATURE +#endif +#if defined(__has_feature) + #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) __has_feature(feature) +#else + #define JSON_HEDLEY_GCC_HAS_FEATURE(feature,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_EXTENSION) + #undef JSON_HEDLEY_HAS_EXTENSION +#endif +#if defined(__has_extension) + #define JSON_HEDLEY_HAS_EXTENSION(extension) __has_extension(extension) +#else + #define JSON_HEDLEY_HAS_EXTENSION(extension) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_EXTENSION) + #undef JSON_HEDLEY_GNUC_HAS_EXTENSION +#endif +#if defined(__has_extension) + #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension) +#else + #define JSON_HEDLEY_GNUC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_EXTENSION) + #undef JSON_HEDLEY_GCC_HAS_EXTENSION +#endif +#if defined(__has_extension) + #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension) +#else + #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE +#endif +#if defined(__has_declspec_attribute) + #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) __has_declspec_attribute(attribute) +#else + #define JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE +#endif +#if defined(__has_declspec_attribute) + #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute) +#else + #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE +#endif +#if defined(__has_declspec_attribute) + #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) __has_declspec_attribute(attribute) +#else + #define JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_HAS_WARNING) + #undef JSON_HEDLEY_HAS_WARNING +#endif +#if defined(__has_warning) + #define JSON_HEDLEY_HAS_WARNING(warning) __has_warning(warning) +#else + #define JSON_HEDLEY_HAS_WARNING(warning) (0) +#endif + +#if defined(JSON_HEDLEY_GNUC_HAS_WARNING) + #undef JSON_HEDLEY_GNUC_HAS_WARNING +#endif +#if defined(__has_warning) + #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning) +#else + #define JSON_HEDLEY_GNUC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_GCC_HAS_WARNING) + #undef JSON_HEDLEY_GCC_HAS_WARNING +#endif +#if defined(__has_warning) + #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) __has_warning(warning) +#else + #define JSON_HEDLEY_GCC_HAS_WARNING(warning,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +/* JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ is for + HEDLEY INTERNAL USE ONLY. API subject to change without notice. */ +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ +#endif +#if defined(__cplusplus) +# if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat") +# if JSON_HEDLEY_HAS_WARNING("-Wc++17-extensions") +# define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \ + _Pragma("clang diagnostic ignored \"-Wc++17-extensions\"") \ + xpr \ + JSON_HEDLEY_DIAGNOSTIC_POP +# else +# define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(xpr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wc++98-compat\"") \ + xpr \ + JSON_HEDLEY_DIAGNOSTIC_POP +# endif +# endif +#endif +#if !defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(x) x +#endif + +#if defined(JSON_HEDLEY_CONST_CAST) + #undef JSON_HEDLEY_CONST_CAST +#endif +#if defined(__cplusplus) +# define JSON_HEDLEY_CONST_CAST(T, expr) (const_cast(expr)) +#elif \ + JSON_HEDLEY_HAS_WARNING("-Wcast-qual") || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) +# define JSON_HEDLEY_CONST_CAST(T, expr) (__extension__ ({ \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL \ + ((T) (expr)); \ + JSON_HEDLEY_DIAGNOSTIC_POP \ + })) +#else +# define JSON_HEDLEY_CONST_CAST(T, expr) ((T) (expr)) +#endif + +#if defined(JSON_HEDLEY_REINTERPRET_CAST) + #undef JSON_HEDLEY_REINTERPRET_CAST +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) (reinterpret_cast(expr)) +#else + #define JSON_HEDLEY_REINTERPRET_CAST(T, expr) ((T) (expr)) +#endif + +#if defined(JSON_HEDLEY_STATIC_CAST) + #undef JSON_HEDLEY_STATIC_CAST +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_STATIC_CAST(T, expr) (static_cast(expr)) +#else + #define JSON_HEDLEY_STATIC_CAST(T, expr) ((T) (expr)) +#endif + +#if defined(JSON_HEDLEY_CPP_CAST) + #undef JSON_HEDLEY_CPP_CAST +#endif +#if defined(__cplusplus) +# if JSON_HEDLEY_HAS_WARNING("-Wold-style-cast") +# define JSON_HEDLEY_CPP_CAST(T, expr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wold-style-cast\"") \ + ((T) (expr)) \ + JSON_HEDLEY_DIAGNOSTIC_POP +# elif JSON_HEDLEY_IAR_VERSION_CHECK(8,3,0) +# define JSON_HEDLEY_CPP_CAST(T, expr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("diag_suppress=Pe137") \ + JSON_HEDLEY_DIAGNOSTIC_POP \ +# else +# define JSON_HEDLEY_CPP_CAST(T, expr) ((T) (expr)) +# endif +#else +# define JSON_HEDLEY_CPP_CAST(T, expr) (expr) +#endif + +#if \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \ + defined(__clang__) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,0,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,17) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(8,0,0) || \ + (JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) && defined(__C99_PRAGMA_OPERATOR)) + #define JSON_HEDLEY_PRAGMA(value) _Pragma(#value) +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_PRAGMA(value) __pragma(value) +#else + #define JSON_HEDLEY_PRAGMA(value) +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_PUSH) + #undef JSON_HEDLEY_DIAGNOSTIC_PUSH +#endif +#if defined(JSON_HEDLEY_DIAGNOSTIC_POP) + #undef JSON_HEDLEY_DIAGNOSTIC_POP +#endif +#if defined(__clang__) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("clang diagnostic push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("clang diagnostic pop") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("GCC diagnostic push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("GCC diagnostic pop") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH __pragma(warning(push)) + #define JSON_HEDLEY_DIAGNOSTIC_POP __pragma(warning(pop)) +#elif JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("pop") +#elif \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,4,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("diag_push") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("diag_pop") +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0) + #define JSON_HEDLEY_DIAGNOSTIC_PUSH _Pragma("warning(push)") + #define JSON_HEDLEY_DIAGNOSTIC_POP _Pragma("warning(pop)") +#else + #define JSON_HEDLEY_DIAGNOSTIC_PUSH + #define JSON_HEDLEY_DIAGNOSTIC_POP +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wdeprecated-declarations") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warning(disable:1478 1786)") +#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1215,1444") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED __pragma(warning(disable:4996)) +#elif \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress 1291,1718") +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && !defined(__cplusplus) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,E_DEPRECATED_ATT,E_DEPRECATED_ATT_MESS)") +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) && defined(__cplusplus) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("error_messages(off,symdeprecated,symdeprecated2)") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("diag_suppress=Pe1444,Pe1215") +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,90,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED _Pragma("warn(disable:2241)") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("warning(disable:161)") +#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 1675") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("GCC diagnostic ignored \"-Wunknown-pragmas\"") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS __pragma(warning(disable:4068)) +#elif \ + JSON_HEDLEY_TI_VERSION_CHECK(16,9,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163") +#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress 163") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS _Pragma("diag_suppress=Pe161") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-attributes") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("clang diagnostic ignored \"-Wunknown-attributes\"") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(4,6,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("warning(disable:1292)") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES __pragma(warning(disable:5030)) +#elif JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1097") +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("error_messages(off,attrskipunsup)") +#elif \ + JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress 1173") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES _Pragma("diag_suppress=Pe1097") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES +#endif + +#if defined(JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL) + #undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wcast-qual") + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("clang diagnostic ignored \"-Wcast-qual\"") +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("warning(disable:2203 2331)") +#elif JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL _Pragma("GCC diagnostic ignored \"-Wcast-qual\"") +#else + #define JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL +#endif + +#if defined(JSON_HEDLEY_DEPRECATED) + #undef JSON_HEDLEY_DEPRECATED +#endif +#if defined(JSON_HEDLEY_DEPRECATED_FOR) + #undef JSON_HEDLEY_DEPRECATED_FOR +#endif +#if JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) + #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated("Since " # since)) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated("Since " #since "; use " #replacement)) +#elif defined(__cplusplus) && (__cplusplus >= 201402L) + #define JSON_HEDLEY_DEPRECATED(since) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since)]]) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[deprecated("Since " #since "; use " #replacement)]]) +#elif \ + JSON_HEDLEY_HAS_EXTENSION(attribute_deprecated_with_message) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,13,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(18,1,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(18,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,3,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,3,0) + #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__("Since " #since))) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__("Since " #since "; use " #replacement))) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(deprecated) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_DEPRECATED(since) __attribute__((__deprecated__)) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __attribute__((__deprecated__)) +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \ + JSON_HEDLEY_PELLES_VERSION_CHECK(6,50,0) + #define JSON_HEDLEY_DEPRECATED(since) __declspec(deprecated) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) __declspec(deprecated) +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_DEPRECATED(since) _Pragma("deprecated") + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) _Pragma("deprecated") +#else + #define JSON_HEDLEY_DEPRECATED(since) + #define JSON_HEDLEY_DEPRECATED_FOR(since, replacement) +#endif + +#if defined(JSON_HEDLEY_UNAVAILABLE) + #undef JSON_HEDLEY_UNAVAILABLE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(warning) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,3,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_UNAVAILABLE(available_since) __attribute__((__warning__("Not available until " #available_since))) +#else + #define JSON_HEDLEY_UNAVAILABLE(available_since) +#endif + +#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT) + #undef JSON_HEDLEY_WARN_UNUSED_RESULT +#endif +#if defined(JSON_HEDLEY_WARN_UNUSED_RESULT_MSG) + #undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG +#endif +#if (JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard) >= 201907L) + #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]]) + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard(msg)]]) +#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(nodiscard) + #define JSON_HEDLEY_WARN_UNUSED_RESULT JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]]) + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[nodiscard]]) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(warn_unused_result) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) __attribute__((__warn_unused_result__)) +#elif defined(_Check_return_) /* SAL */ + #define JSON_HEDLEY_WARN_UNUSED_RESULT _Check_return_ + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) _Check_return_ +#else + #define JSON_HEDLEY_WARN_UNUSED_RESULT + #define JSON_HEDLEY_WARN_UNUSED_RESULT_MSG(msg) +#endif + +#if defined(JSON_HEDLEY_SENTINEL) + #undef JSON_HEDLEY_SENTINEL +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(sentinel) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) + #define JSON_HEDLEY_SENTINEL(position) __attribute__((__sentinel__(position))) +#else + #define JSON_HEDLEY_SENTINEL(position) +#endif + +#if defined(JSON_HEDLEY_NO_RETURN) + #undef JSON_HEDLEY_NO_RETURN +#endif +#if JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_NO_RETURN __noreturn +#elif JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__)) +#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L + #define JSON_HEDLEY_NO_RETURN _Noreturn +#elif defined(__cplusplus) && (__cplusplus >= 201103L) + #define JSON_HEDLEY_NO_RETURN JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[noreturn]]) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(noreturn) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,2,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_NO_RETURN __attribute__((__noreturn__)) +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_NO_RETURN _Pragma("does_not_return") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) + #define JSON_HEDLEY_NO_RETURN __declspec(noreturn) +#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus) + #define JSON_HEDLEY_NO_RETURN _Pragma("FUNC_NEVER_RETURNS;") +#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0) + #define JSON_HEDLEY_NO_RETURN __attribute((noreturn)) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0) + #define JSON_HEDLEY_NO_RETURN __declspec(noreturn) +#else + #define JSON_HEDLEY_NO_RETURN +#endif + +#if defined(JSON_HEDLEY_NO_ESCAPE) + #undef JSON_HEDLEY_NO_ESCAPE +#endif +#if JSON_HEDLEY_HAS_ATTRIBUTE(noescape) + #define JSON_HEDLEY_NO_ESCAPE __attribute__((__noescape__)) +#else + #define JSON_HEDLEY_NO_ESCAPE +#endif + +#if defined(JSON_HEDLEY_UNREACHABLE) + #undef JSON_HEDLEY_UNREACHABLE +#endif +#if defined(JSON_HEDLEY_UNREACHABLE_RETURN) + #undef JSON_HEDLEY_UNREACHABLE_RETURN +#endif +#if defined(JSON_HEDLEY_ASSUME) + #undef JSON_HEDLEY_ASSUME +#endif +#if \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_ASSUME(expr) __assume(expr) +#elif JSON_HEDLEY_HAS_BUILTIN(__builtin_assume) + #define JSON_HEDLEY_ASSUME(expr) __builtin_assume(expr) +#elif \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) + #if defined(__cplusplus) + #define JSON_HEDLEY_ASSUME(expr) std::_nassert(expr) + #else + #define JSON_HEDLEY_ASSUME(expr) _nassert(expr) + #endif +#endif +#if \ + (JSON_HEDLEY_HAS_BUILTIN(__builtin_unreachable) && (!defined(JSON_HEDLEY_ARM_VERSION))) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,5,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(18,10,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,5) + #define JSON_HEDLEY_UNREACHABLE() __builtin_unreachable() +#elif defined(JSON_HEDLEY_ASSUME) + #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0) +#endif +#if !defined(JSON_HEDLEY_ASSUME) + #if defined(JSON_HEDLEY_UNREACHABLE) + #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, ((expr) ? 1 : (JSON_HEDLEY_UNREACHABLE(), 1))) + #else + #define JSON_HEDLEY_ASSUME(expr) JSON_HEDLEY_STATIC_CAST(void, expr) + #endif +#endif +#if defined(JSON_HEDLEY_UNREACHABLE) + #if \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) + #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (JSON_HEDLEY_STATIC_CAST(void, JSON_HEDLEY_ASSUME(0)), (value)) + #else + #define JSON_HEDLEY_UNREACHABLE_RETURN(value) JSON_HEDLEY_UNREACHABLE() + #endif +#else + #define JSON_HEDLEY_UNREACHABLE_RETURN(value) return (value) +#endif +#if !defined(JSON_HEDLEY_UNREACHABLE) + #define JSON_HEDLEY_UNREACHABLE() JSON_HEDLEY_ASSUME(0) +#endif + +JSON_HEDLEY_DIAGNOSTIC_PUSH +#if JSON_HEDLEY_HAS_WARNING("-Wpedantic") + #pragma clang diagnostic ignored "-Wpedantic" +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wc++98-compat-pedantic") && defined(__cplusplus) + #pragma clang diagnostic ignored "-Wc++98-compat-pedantic" +#endif +#if JSON_HEDLEY_GCC_HAS_WARNING("-Wvariadic-macros",4,0,0) + #if defined(__clang__) + #pragma clang diagnostic ignored "-Wvariadic-macros" + #elif defined(JSON_HEDLEY_GCC_VERSION) + #pragma GCC diagnostic ignored "-Wvariadic-macros" + #endif +#endif +#if defined(JSON_HEDLEY_NON_NULL) + #undef JSON_HEDLEY_NON_NULL +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(nonnull) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) + #define JSON_HEDLEY_NON_NULL(...) __attribute__((__nonnull__(__VA_ARGS__))) +#else + #define JSON_HEDLEY_NON_NULL(...) +#endif +JSON_HEDLEY_DIAGNOSTIC_POP + +#if defined(JSON_HEDLEY_PRINTF_FORMAT) + #undef JSON_HEDLEY_PRINTF_FORMAT +#endif +#if defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && !defined(__USE_MINGW_ANSI_STDIO) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(ms_printf, string_idx, first_to_check))) +#elif defined(__MINGW32__) && JSON_HEDLEY_GCC_HAS_ATTRIBUTE(format,4,4,0) && defined(__USE_MINGW_ANSI_STDIO) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(gnu_printf, string_idx, first_to_check))) +#elif \ + JSON_HEDLEY_HAS_ATTRIBUTE(format) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,6,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __attribute__((__format__(__printf__, string_idx, first_to_check))) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(6,0,0) + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check)) +#else + #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) +#endif + +#if defined(JSON_HEDLEY_CONSTEXPR) + #undef JSON_HEDLEY_CONSTEXPR +#endif +#if defined(__cplusplus) + #if __cplusplus >= 201103L + #define JSON_HEDLEY_CONSTEXPR JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(constexpr) + #endif +#endif +#if !defined(JSON_HEDLEY_CONSTEXPR) + #define JSON_HEDLEY_CONSTEXPR +#endif + +#if defined(JSON_HEDLEY_PREDICT) + #undef JSON_HEDLEY_PREDICT +#endif +#if defined(JSON_HEDLEY_LIKELY) + #undef JSON_HEDLEY_LIKELY +#endif +#if defined(JSON_HEDLEY_UNLIKELY) + #undef JSON_HEDLEY_UNLIKELY +#endif +#if defined(JSON_HEDLEY_UNPREDICTABLE) + #undef JSON_HEDLEY_UNPREDICTABLE +#endif +#if JSON_HEDLEY_HAS_BUILTIN(__builtin_unpredictable) + #define JSON_HEDLEY_UNPREDICTABLE(expr) __builtin_unpredictable((expr)) +#endif +#if \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_expect_with_probability) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(9,0,0) +# define JSON_HEDLEY_PREDICT(expr, value, probability) __builtin_expect_with_probability( (expr), (value), (probability)) +# define JSON_HEDLEY_PREDICT_TRUE(expr, probability) __builtin_expect_with_probability(!!(expr), 1 , (probability)) +# define JSON_HEDLEY_PREDICT_FALSE(expr, probability) __builtin_expect_with_probability(!!(expr), 0 , (probability)) +# define JSON_HEDLEY_LIKELY(expr) __builtin_expect (!!(expr), 1 ) +# define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 ) +#elif \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_expect) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,15,0) && defined(__cplusplus)) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,7,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,27) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) +# define JSON_HEDLEY_PREDICT(expr, expected, probability) \ + (((probability) >= 0.9) ? __builtin_expect((expr), (expected)) : (JSON_HEDLEY_STATIC_CAST(void, expected), (expr))) +# define JSON_HEDLEY_PREDICT_TRUE(expr, probability) \ + (__extension__ ({ \ + double hedley_probability_ = (probability); \ + ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 1) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 0) : !!(expr))); \ + })) +# define JSON_HEDLEY_PREDICT_FALSE(expr, probability) \ + (__extension__ ({ \ + double hedley_probability_ = (probability); \ + ((hedley_probability_ >= 0.9) ? __builtin_expect(!!(expr), 0) : ((hedley_probability_ <= 0.1) ? __builtin_expect(!!(expr), 1) : !!(expr))); \ + })) +# define JSON_HEDLEY_LIKELY(expr) __builtin_expect(!!(expr), 1) +# define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect(!!(expr), 0) +#else +# define JSON_HEDLEY_PREDICT(expr, expected, probability) (JSON_HEDLEY_STATIC_CAST(void, expected), (expr)) +# define JSON_HEDLEY_PREDICT_TRUE(expr, probability) (!!(expr)) +# define JSON_HEDLEY_PREDICT_FALSE(expr, probability) (!!(expr)) +# define JSON_HEDLEY_LIKELY(expr) (!!(expr)) +# define JSON_HEDLEY_UNLIKELY(expr) (!!(expr)) +#endif +#if !defined(JSON_HEDLEY_UNPREDICTABLE) + #define JSON_HEDLEY_UNPREDICTABLE(expr) JSON_HEDLEY_PREDICT(expr, 1, 0.5) +#endif + +#if defined(JSON_HEDLEY_MALLOC) + #undef JSON_HEDLEY_MALLOC +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(malloc) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_MALLOC __attribute__((__malloc__)) +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_MALLOC _Pragma("returns_new_memory") +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(14, 0, 0) + #define JSON_HEDLEY_MALLOC __declspec(restrict) +#else + #define JSON_HEDLEY_MALLOC +#endif + +#if defined(JSON_HEDLEY_PURE) + #undef JSON_HEDLEY_PURE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(pure) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(2,96,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) +# define JSON_HEDLEY_PURE __attribute__((__pure__)) +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) +# define JSON_HEDLEY_PURE _Pragma("does_not_write_global_data") +#elif defined(__cplusplus) && \ + ( \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(2,0,1) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) \ + ) +# define JSON_HEDLEY_PURE _Pragma("FUNC_IS_PURE;") +#else +# define JSON_HEDLEY_PURE +#endif + +#if defined(JSON_HEDLEY_CONST) + #undef JSON_HEDLEY_CONST +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(const) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(2,5,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) + #define JSON_HEDLEY_CONST __attribute__((__const__)) +#elif \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) + #define JSON_HEDLEY_CONST _Pragma("no_side_effect") +#else + #define JSON_HEDLEY_CONST JSON_HEDLEY_PURE +#endif + +#if defined(JSON_HEDLEY_RESTRICT) + #undef JSON_HEDLEY_RESTRICT +#endif +#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && !defined(__cplusplus) + #define JSON_HEDLEY_RESTRICT restrict +#elif \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_MSVC_VERSION_CHECK(14,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(17,10,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,4) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,1,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,14,0) && defined(__cplusplus)) || \ + JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) || \ + defined(__clang__) + #define JSON_HEDLEY_RESTRICT __restrict +#elif JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,3,0) && !defined(__cplusplus) + #define JSON_HEDLEY_RESTRICT _Restrict +#else + #define JSON_HEDLEY_RESTRICT +#endif + +#if defined(JSON_HEDLEY_INLINE) + #undef JSON_HEDLEY_INLINE +#endif +#if \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \ + (defined(__cplusplus) && (__cplusplus >= 199711L)) + #define JSON_HEDLEY_INLINE inline +#elif \ + defined(JSON_HEDLEY_GCC_VERSION) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(6,2,0) + #define JSON_HEDLEY_INLINE __inline__ +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,1,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(3,1,0) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,2,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(8,0,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_INLINE __inline +#else + #define JSON_HEDLEY_INLINE +#endif + +#if defined(JSON_HEDLEY_ALWAYS_INLINE) + #undef JSON_HEDLEY_ALWAYS_INLINE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(always_inline) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) +# define JSON_HEDLEY_ALWAYS_INLINE __attribute__((__always_inline__)) JSON_HEDLEY_INLINE +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(12,0,0) +# define JSON_HEDLEY_ALWAYS_INLINE __forceinline +#elif defined(__cplusplus) && \ + ( \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) \ + ) +# define JSON_HEDLEY_ALWAYS_INLINE _Pragma("FUNC_ALWAYS_INLINE;") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) +# define JSON_HEDLEY_ALWAYS_INLINE _Pragma("inline=forced") +#else +# define JSON_HEDLEY_ALWAYS_INLINE JSON_HEDLEY_INLINE +#endif + +#if defined(JSON_HEDLEY_NEVER_INLINE) + #undef JSON_HEDLEY_NEVER_INLINE +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(noinline) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(10,1,0) || \ + JSON_HEDLEY_TI_VERSION_CHECK(15,12,0) || \ + (JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(4,8,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_ARMCL_VERSION_CHECK(5,2,0) || \ + (JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL2000_VERSION_CHECK(6,4,0) || \ + (JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,0,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(4,3,0) || \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) || \ + JSON_HEDLEY_TI_CL7X_VERSION_CHECK(1,2,0) || \ + JSON_HEDLEY_TI_CLPRU_VERSION_CHECK(2,1,0) + #define JSON_HEDLEY_NEVER_INLINE __attribute__((__noinline__)) +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(13,10,0) + #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline) +#elif JSON_HEDLEY_PGI_VERSION_CHECK(10,2,0) + #define JSON_HEDLEY_NEVER_INLINE _Pragma("noinline") +#elif JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,0,0) && defined(__cplusplus) + #define JSON_HEDLEY_NEVER_INLINE _Pragma("FUNC_CANNOT_INLINE;") +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) + #define JSON_HEDLEY_NEVER_INLINE _Pragma("inline=never") +#elif JSON_HEDLEY_COMPCERT_VERSION_CHECK(3,2,0) + #define JSON_HEDLEY_NEVER_INLINE __attribute((noinline)) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(9,0,0) + #define JSON_HEDLEY_NEVER_INLINE __declspec(noinline) +#else + #define JSON_HEDLEY_NEVER_INLINE +#endif + +#if defined(JSON_HEDLEY_PRIVATE) + #undef JSON_HEDLEY_PRIVATE +#endif +#if defined(JSON_HEDLEY_PUBLIC) + #undef JSON_HEDLEY_PUBLIC +#endif +#if defined(JSON_HEDLEY_IMPORT) + #undef JSON_HEDLEY_IMPORT +#endif +#if defined(_WIN32) || defined(__CYGWIN__) +# define JSON_HEDLEY_PRIVATE +# define JSON_HEDLEY_PUBLIC __declspec(dllexport) +# define JSON_HEDLEY_IMPORT __declspec(dllimport) +#else +# if \ + JSON_HEDLEY_HAS_ATTRIBUTE(visibility) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \ + JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,11,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \ + ( \ + defined(__TI_EABI__) && \ + ( \ + (JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,2,0) && defined(__TI_GNU_ATTRIBUTE_SUPPORT__)) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(7,5,0) \ + ) \ + ) +# define JSON_HEDLEY_PRIVATE __attribute__((__visibility__("hidden"))) +# define JSON_HEDLEY_PUBLIC __attribute__((__visibility__("default"))) +# else +# define JSON_HEDLEY_PRIVATE +# define JSON_HEDLEY_PUBLIC +# endif +# define JSON_HEDLEY_IMPORT extern +#endif + +#if defined(JSON_HEDLEY_NO_THROW) + #undef JSON_HEDLEY_NO_THROW +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(nothrow) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,3,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) + #define JSON_HEDLEY_NO_THROW __attribute__((__nothrow__)) +#elif \ + JSON_HEDLEY_MSVC_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) + #define JSON_HEDLEY_NO_THROW __declspec(nothrow) +#else + #define JSON_HEDLEY_NO_THROW +#endif + +#if defined(JSON_HEDLEY_FALL_THROUGH) + #undef JSON_HEDLEY_FALL_THROUGH +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(fallthrough) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(7,0,0) + #define JSON_HEDLEY_FALL_THROUGH __attribute__((__fallthrough__)) +#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS(clang,fallthrough) + #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[clang::fallthrough]]) +#elif JSON_HEDLEY_HAS_CPP_ATTRIBUTE(fallthrough) + #define JSON_HEDLEY_FALL_THROUGH JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_([[fallthrough]]) +#elif defined(__fallthrough) /* SAL */ + #define JSON_HEDLEY_FALL_THROUGH __fallthrough +#else + #define JSON_HEDLEY_FALL_THROUGH +#endif + +#if defined(JSON_HEDLEY_RETURNS_NON_NULL) + #undef JSON_HEDLEY_RETURNS_NON_NULL +#endif +#if \ + JSON_HEDLEY_HAS_ATTRIBUTE(returns_nonnull) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) + #define JSON_HEDLEY_RETURNS_NON_NULL __attribute__((__returns_nonnull__)) +#elif defined(_Ret_notnull_) /* SAL */ + #define JSON_HEDLEY_RETURNS_NON_NULL _Ret_notnull_ +#else + #define JSON_HEDLEY_RETURNS_NON_NULL +#endif + +#if defined(JSON_HEDLEY_ARRAY_PARAM) + #undef JSON_HEDLEY_ARRAY_PARAM +#endif +#if \ + defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \ + !defined(__STDC_NO_VLA__) && \ + !defined(__cplusplus) && \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_TINYC_VERSION) + #define JSON_HEDLEY_ARRAY_PARAM(name) (name) +#else + #define JSON_HEDLEY_ARRAY_PARAM(name) +#endif + +#if defined(JSON_HEDLEY_IS_CONSTANT) + #undef JSON_HEDLEY_IS_CONSTANT +#endif +#if defined(JSON_HEDLEY_REQUIRE_CONSTEXPR) + #undef JSON_HEDLEY_REQUIRE_CONSTEXPR +#endif +/* JSON_HEDLEY_IS_CONSTEXPR_ is for + HEDLEY INTERNAL USE ONLY. API subject to change without notice. */ +#if defined(JSON_HEDLEY_IS_CONSTEXPR_) + #undef JSON_HEDLEY_IS_CONSTEXPR_ +#endif +#if \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_constant_p) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,19) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(4,1,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_TI_CL6X_VERSION_CHECK(6,1,0) || \ + (JSON_HEDLEY_SUNPRO_VERSION_CHECK(5,10,0) && !defined(__cplusplus)) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) + #define JSON_HEDLEY_IS_CONSTANT(expr) __builtin_constant_p(expr) +#endif +#if !defined(__cplusplus) +# if \ + JSON_HEDLEY_HAS_BUILTIN(__builtin_types_compatible_p) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(3,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(13,1,0) || \ + JSON_HEDLEY_CRAY_VERSION_CHECK(8,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,4,0) || \ + JSON_HEDLEY_TINYC_VERSION_CHECK(0,9,24) +#if defined(__INTPTR_TYPE__) + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0)), int*) +#else + #include + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) __builtin_types_compatible_p(__typeof__((1 ? (void*) ((intptr_t) ((expr) * 0)) : (int*) 0)), int*) +#endif +# elif \ + ( \ + defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \ + !defined(JSON_HEDLEY_SUNPRO_VERSION) && \ + !defined(JSON_HEDLEY_PGI_VERSION) && \ + !defined(JSON_HEDLEY_IAR_VERSION)) || \ + JSON_HEDLEY_HAS_EXTENSION(c_generic_selections) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,9,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(17,0,0) || \ + JSON_HEDLEY_IBM_VERSION_CHECK(12,1,0) || \ + JSON_HEDLEY_ARM_VERSION_CHECK(5,3,0) +#if defined(__INTPTR_TYPE__) + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((__INTPTR_TYPE__) ((expr) * 0)) : (int*) 0), int*: 1, void*: 0) +#else + #include + #define JSON_HEDLEY_IS_CONSTEXPR_(expr) _Generic((1 ? (void*) ((intptr_t) * 0) : (int*) 0), int*: 1, void*: 0) +#endif +# elif \ + defined(JSON_HEDLEY_GCC_VERSION) || \ + defined(JSON_HEDLEY_INTEL_VERSION) || \ + defined(JSON_HEDLEY_TINYC_VERSION) || \ + defined(JSON_HEDLEY_TI_ARMCL_VERSION) || \ + JSON_HEDLEY_TI_CL430_VERSION_CHECK(18,12,0) || \ + defined(JSON_HEDLEY_TI_CL2000_VERSION) || \ + defined(JSON_HEDLEY_TI_CL6X_VERSION) || \ + defined(JSON_HEDLEY_TI_CL7X_VERSION) || \ + defined(JSON_HEDLEY_TI_CLPRU_VERSION) || \ + defined(__clang__) +# define JSON_HEDLEY_IS_CONSTEXPR_(expr) ( \ + sizeof(void) != \ + sizeof(*( \ + 1 ? \ + ((void*) ((expr) * 0L) ) : \ +((struct { char v[sizeof(void) * 2]; } *) 1) \ + ) \ + ) \ + ) +# endif +#endif +#if defined(JSON_HEDLEY_IS_CONSTEXPR_) + #if !defined(JSON_HEDLEY_IS_CONSTANT) + #define JSON_HEDLEY_IS_CONSTANT(expr) JSON_HEDLEY_IS_CONSTEXPR_(expr) + #endif + #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (JSON_HEDLEY_IS_CONSTEXPR_(expr) ? (expr) : (-1)) +#else + #if !defined(JSON_HEDLEY_IS_CONSTANT) + #define JSON_HEDLEY_IS_CONSTANT(expr) (0) + #endif + #define JSON_HEDLEY_REQUIRE_CONSTEXPR(expr) (expr) +#endif + +#if defined(JSON_HEDLEY_BEGIN_C_DECLS) + #undef JSON_HEDLEY_BEGIN_C_DECLS +#endif +#if defined(JSON_HEDLEY_END_C_DECLS) + #undef JSON_HEDLEY_END_C_DECLS +#endif +#if defined(JSON_HEDLEY_C_DECL) + #undef JSON_HEDLEY_C_DECL +#endif +#if defined(__cplusplus) + #define JSON_HEDLEY_BEGIN_C_DECLS extern "C" { + #define JSON_HEDLEY_END_C_DECLS } + #define JSON_HEDLEY_C_DECL extern "C" +#else + #define JSON_HEDLEY_BEGIN_C_DECLS + #define JSON_HEDLEY_END_C_DECLS + #define JSON_HEDLEY_C_DECL +#endif + +#if defined(JSON_HEDLEY_STATIC_ASSERT) + #undef JSON_HEDLEY_STATIC_ASSERT +#endif +#if \ + !defined(__cplusplus) && ( \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \ + JSON_HEDLEY_HAS_FEATURE(c_static_assert) || \ + JSON_HEDLEY_GCC_VERSION_CHECK(6,0,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) || \ + defined(_Static_assert) \ + ) +# define JSON_HEDLEY_STATIC_ASSERT(expr, message) _Static_assert(expr, message) +#elif \ + (defined(__cplusplus) && (__cplusplus >= 201103L)) || \ + JSON_HEDLEY_MSVC_VERSION_CHECK(16,0,0) +# define JSON_HEDLEY_STATIC_ASSERT(expr, message) JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(static_assert(expr, message)) +#else +# define JSON_HEDLEY_STATIC_ASSERT(expr, message) +#endif + +#if defined(JSON_HEDLEY_NULL) + #undef JSON_HEDLEY_NULL +#endif +#if defined(__cplusplus) + #if __cplusplus >= 201103L + #define JSON_HEDLEY_NULL JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_(nullptr) + #elif defined(NULL) + #define JSON_HEDLEY_NULL NULL + #else + #define JSON_HEDLEY_NULL JSON_HEDLEY_STATIC_CAST(void*, 0) + #endif +#elif defined(NULL) + #define JSON_HEDLEY_NULL NULL +#else + #define JSON_HEDLEY_NULL ((void*) 0) +#endif + +#if defined(JSON_HEDLEY_MESSAGE) + #undef JSON_HEDLEY_MESSAGE +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas") +# define JSON_HEDLEY_MESSAGE(msg) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \ + JSON_HEDLEY_PRAGMA(message msg) \ + JSON_HEDLEY_DIAGNOSTIC_POP +#elif \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message msg) +#elif JSON_HEDLEY_CRAY_VERSION_CHECK(5,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(_CRI message msg) +#elif JSON_HEDLEY_IAR_VERSION_CHECK(8,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg)) +#elif JSON_HEDLEY_PELLES_VERSION_CHECK(2,0,0) +# define JSON_HEDLEY_MESSAGE(msg) JSON_HEDLEY_PRAGMA(message(msg)) +#else +# define JSON_HEDLEY_MESSAGE(msg) +#endif + +#if defined(JSON_HEDLEY_WARNING) + #undef JSON_HEDLEY_WARNING +#endif +#if JSON_HEDLEY_HAS_WARNING("-Wunknown-pragmas") +# define JSON_HEDLEY_WARNING(msg) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS \ + JSON_HEDLEY_PRAGMA(clang warning msg) \ + JSON_HEDLEY_DIAGNOSTIC_POP +#elif \ + JSON_HEDLEY_GCC_VERSION_CHECK(4,8,0) || \ + JSON_HEDLEY_PGI_VERSION_CHECK(18,4,0) || \ + JSON_HEDLEY_INTEL_VERSION_CHECK(13,0,0) +# define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(GCC warning msg) +#elif JSON_HEDLEY_MSVC_VERSION_CHECK(15,0,0) +# define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_PRAGMA(message(msg)) +#else +# define JSON_HEDLEY_WARNING(msg) JSON_HEDLEY_MESSAGE(msg) +#endif + +#if defined(JSON_HEDLEY_REQUIRE) + #undef JSON_HEDLEY_REQUIRE +#endif +#if defined(JSON_HEDLEY_REQUIRE_MSG) + #undef JSON_HEDLEY_REQUIRE_MSG +#endif +#if JSON_HEDLEY_HAS_ATTRIBUTE(diagnose_if) +# if JSON_HEDLEY_HAS_WARNING("-Wgcc-compat") +# define JSON_HEDLEY_REQUIRE(expr) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \ + __attribute__((diagnose_if(!(expr), #expr, "error"))) \ + JSON_HEDLEY_DIAGNOSTIC_POP +# define JSON_HEDLEY_REQUIRE_MSG(expr,msg) \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("clang diagnostic ignored \"-Wgcc-compat\"") \ + __attribute__((diagnose_if(!(expr), msg, "error"))) \ + JSON_HEDLEY_DIAGNOSTIC_POP +# else +# define JSON_HEDLEY_REQUIRE(expr) __attribute__((diagnose_if(!(expr), #expr, "error"))) +# define JSON_HEDLEY_REQUIRE_MSG(expr,msg) __attribute__((diagnose_if(!(expr), msg, "error"))) +# endif +#else +# define JSON_HEDLEY_REQUIRE(expr) +# define JSON_HEDLEY_REQUIRE_MSG(expr,msg) +#endif + +#if defined(JSON_HEDLEY_FLAGS) + #undef JSON_HEDLEY_FLAGS +#endif +#if JSON_HEDLEY_HAS_ATTRIBUTE(flag_enum) + #define JSON_HEDLEY_FLAGS __attribute__((__flag_enum__)) +#endif + +#if defined(JSON_HEDLEY_FLAGS_CAST) + #undef JSON_HEDLEY_FLAGS_CAST +#endif +#if JSON_HEDLEY_INTEL_VERSION_CHECK(19,0,0) +# define JSON_HEDLEY_FLAGS_CAST(T, expr) (__extension__ ({ \ + JSON_HEDLEY_DIAGNOSTIC_PUSH \ + _Pragma("warning(disable:188)") \ + ((T) (expr)); \ + JSON_HEDLEY_DIAGNOSTIC_POP \ + })) +#else +# define JSON_HEDLEY_FLAGS_CAST(T, expr) JSON_HEDLEY_STATIC_CAST(T, expr) +#endif + +#if defined(JSON_HEDLEY_EMPTY_BASES) + #undef JSON_HEDLEY_EMPTY_BASES +#endif +#if JSON_HEDLEY_MSVC_VERSION_CHECK(19,0,23918) && !JSON_HEDLEY_MSVC_VERSION_CHECK(20,0,0) + #define JSON_HEDLEY_EMPTY_BASES __declspec(empty_bases) +#else + #define JSON_HEDLEY_EMPTY_BASES +#endif + +/* Remaining macros are deprecated. */ + +#if defined(JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK) + #undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK +#endif +#if defined(__clang__) + #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) (0) +#else + #define JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK(major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch) +#endif + +#if defined(JSON_HEDLEY_CLANG_HAS_ATTRIBUTE) + #undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE +#endif +#define JSON_HEDLEY_CLANG_HAS_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_ATTRIBUTE(attribute) + +#if defined(JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE) + #undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE +#endif +#define JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_CPP_ATTRIBUTE(attribute) + +#if defined(JSON_HEDLEY_CLANG_HAS_BUILTIN) + #undef JSON_HEDLEY_CLANG_HAS_BUILTIN +#endif +#define JSON_HEDLEY_CLANG_HAS_BUILTIN(builtin) JSON_HEDLEY_HAS_BUILTIN(builtin) + +#if defined(JSON_HEDLEY_CLANG_HAS_FEATURE) + #undef JSON_HEDLEY_CLANG_HAS_FEATURE +#endif +#define JSON_HEDLEY_CLANG_HAS_FEATURE(feature) JSON_HEDLEY_HAS_FEATURE(feature) + +#if defined(JSON_HEDLEY_CLANG_HAS_EXTENSION) + #undef JSON_HEDLEY_CLANG_HAS_EXTENSION +#endif +#define JSON_HEDLEY_CLANG_HAS_EXTENSION(extension) JSON_HEDLEY_HAS_EXTENSION(extension) + +#if defined(JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE) + #undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE +#endif +#define JSON_HEDLEY_CLANG_HAS_DECLSPEC_ATTRIBUTE(attribute) JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE(attribute) + +#if defined(JSON_HEDLEY_CLANG_HAS_WARNING) + #undef JSON_HEDLEY_CLANG_HAS_WARNING +#endif +#define JSON_HEDLEY_CLANG_HAS_WARNING(warning) JSON_HEDLEY_HAS_WARNING(warning) + +#endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */ + + +// This file contains all internal macro definitions +// You MUST include macro_unscope.hpp at the end of json.hpp to undef all of them + +// exclude unsupported compilers +#if !defined(JSON_SKIP_UNSUPPORTED_COMPILER_CHECK) + #if defined(__clang__) + #if (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) < 30400 + #error "unsupported Clang version - see https://github.com/nlohmann/json#supported-compilers" + #endif + #elif defined(__GNUC__) && !(defined(__ICC) || defined(__INTEL_COMPILER)) + #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800 + #error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers" + #endif + #endif +#endif + +// C++ language standard detection +#if (defined(__cplusplus) && __cplusplus >= 202002L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L) + #define JSON_HAS_CPP_20 + #define JSON_HAS_CPP_17 + #define JSON_HAS_CPP_14 +#elif (defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464 + #define JSON_HAS_CPP_17 + #define JSON_HAS_CPP_14 +#elif (defined(__cplusplus) && __cplusplus >= 201402L) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1) + #define JSON_HAS_CPP_14 +#endif + +// disable float-equal warnings on GCC/clang +#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wfloat-equal" +#endif + +// disable documentation warnings on clang +#if defined(__clang__) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wdocumentation" +#endif + +// allow to disable exceptions +#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(JSON_NOEXCEPTION) + #define JSON_THROW(exception) throw exception + #define JSON_TRY try + #define JSON_CATCH(exception) catch(exception) + #define JSON_INTERNAL_CATCH(exception) catch(exception) +#else + #include + #define JSON_THROW(exception) std::abort() + #define JSON_TRY if(true) + #define JSON_CATCH(exception) if(false) + #define JSON_INTERNAL_CATCH(exception) if(false) +#endif + +// override exception macros +#if defined(JSON_THROW_USER) + #undef JSON_THROW + #define JSON_THROW JSON_THROW_USER +#endif +#if defined(JSON_TRY_USER) + #undef JSON_TRY + #define JSON_TRY JSON_TRY_USER +#endif +#if defined(JSON_CATCH_USER) + #undef JSON_CATCH + #define JSON_CATCH JSON_CATCH_USER + #undef JSON_INTERNAL_CATCH + #define JSON_INTERNAL_CATCH JSON_CATCH_USER +#endif +#if defined(JSON_INTERNAL_CATCH_USER) + #undef JSON_INTERNAL_CATCH + #define JSON_INTERNAL_CATCH JSON_INTERNAL_CATCH_USER +#endif + +// allow to override assert +#if !defined(JSON_ASSERT) + #include // assert + #define JSON_ASSERT(x) assert(x) +#endif + +/*! +@brief macro to briefly define a mapping between an enum and JSON +@def NLOHMANN_JSON_SERIALIZE_ENUM +@since version 3.4.0 +*/ +#define NLOHMANN_JSON_SERIALIZE_ENUM(ENUM_TYPE, ...) \ + template \ + inline void to_json(BasicJsonType& j, const ENUM_TYPE& e) \ + { \ + static_assert(std::is_enum::value, #ENUM_TYPE " must be an enum!"); \ + static const std::pair m[] = __VA_ARGS__; \ + auto it = std::find_if(std::begin(m), std::end(m), \ + [e](const std::pair& ej_pair) -> bool \ + { \ + return ej_pair.first == e; \ + }); \ + j = ((it != std::end(m)) ? it : std::begin(m))->second; \ + } \ + template \ + inline void from_json(const BasicJsonType& j, ENUM_TYPE& e) \ + { \ + static_assert(std::is_enum::value, #ENUM_TYPE " must be an enum!"); \ + static const std::pair m[] = __VA_ARGS__; \ + auto it = std::find_if(std::begin(m), std::end(m), \ + [&j](const std::pair& ej_pair) -> bool \ + { \ + return ej_pair.second == j; \ + }); \ + e = ((it != std::end(m)) ? it : std::begin(m))->first; \ + } + +// Ugly macros to avoid uglier copy-paste when specializing basic_json. They +// may be removed in the future once the class is split. + +#define NLOHMANN_BASIC_JSON_TPL_DECLARATION \ + template class ObjectType, \ + template class ArrayType, \ + class StringType, class BooleanType, class NumberIntegerType, \ + class NumberUnsignedType, class NumberFloatType, \ + template class AllocatorType, \ + template class JSONSerializer, \ + class BinaryType> + +#define NLOHMANN_BASIC_JSON_TPL \ + basic_json + +// Macros to simplify conversion from/to types + +#define NLOHMANN_JSON_EXPAND( x ) x +#define NLOHMANN_JSON_GET_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, NAME,...) NAME +#define NLOHMANN_JSON_PASTE(...) NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_GET_MACRO(__VA_ARGS__, \ + NLOHMANN_JSON_PASTE64, \ + NLOHMANN_JSON_PASTE63, \ + NLOHMANN_JSON_PASTE62, \ + NLOHMANN_JSON_PASTE61, \ + NLOHMANN_JSON_PASTE60, \ + NLOHMANN_JSON_PASTE59, \ + NLOHMANN_JSON_PASTE58, \ + NLOHMANN_JSON_PASTE57, \ + NLOHMANN_JSON_PASTE56, \ + NLOHMANN_JSON_PASTE55, \ + NLOHMANN_JSON_PASTE54, \ + NLOHMANN_JSON_PASTE53, \ + NLOHMANN_JSON_PASTE52, \ + NLOHMANN_JSON_PASTE51, \ + NLOHMANN_JSON_PASTE50, \ + NLOHMANN_JSON_PASTE49, \ + NLOHMANN_JSON_PASTE48, \ + NLOHMANN_JSON_PASTE47, \ + NLOHMANN_JSON_PASTE46, \ + NLOHMANN_JSON_PASTE45, \ + NLOHMANN_JSON_PASTE44, \ + NLOHMANN_JSON_PASTE43, \ + NLOHMANN_JSON_PASTE42, \ + NLOHMANN_JSON_PASTE41, \ + NLOHMANN_JSON_PASTE40, \ + NLOHMANN_JSON_PASTE39, \ + NLOHMANN_JSON_PASTE38, \ + NLOHMANN_JSON_PASTE37, \ + NLOHMANN_JSON_PASTE36, \ + NLOHMANN_JSON_PASTE35, \ + NLOHMANN_JSON_PASTE34, \ + NLOHMANN_JSON_PASTE33, \ + NLOHMANN_JSON_PASTE32, \ + NLOHMANN_JSON_PASTE31, \ + NLOHMANN_JSON_PASTE30, \ + NLOHMANN_JSON_PASTE29, \ + NLOHMANN_JSON_PASTE28, \ + NLOHMANN_JSON_PASTE27, \ + NLOHMANN_JSON_PASTE26, \ + NLOHMANN_JSON_PASTE25, \ + NLOHMANN_JSON_PASTE24, \ + NLOHMANN_JSON_PASTE23, \ + NLOHMANN_JSON_PASTE22, \ + NLOHMANN_JSON_PASTE21, \ + NLOHMANN_JSON_PASTE20, \ + NLOHMANN_JSON_PASTE19, \ + NLOHMANN_JSON_PASTE18, \ + NLOHMANN_JSON_PASTE17, \ + NLOHMANN_JSON_PASTE16, \ + NLOHMANN_JSON_PASTE15, \ + NLOHMANN_JSON_PASTE14, \ + NLOHMANN_JSON_PASTE13, \ + NLOHMANN_JSON_PASTE12, \ + NLOHMANN_JSON_PASTE11, \ + NLOHMANN_JSON_PASTE10, \ + NLOHMANN_JSON_PASTE9, \ + NLOHMANN_JSON_PASTE8, \ + NLOHMANN_JSON_PASTE7, \ + NLOHMANN_JSON_PASTE6, \ + NLOHMANN_JSON_PASTE5, \ + NLOHMANN_JSON_PASTE4, \ + NLOHMANN_JSON_PASTE3, \ + NLOHMANN_JSON_PASTE2, \ + NLOHMANN_JSON_PASTE1)(__VA_ARGS__)) +#define NLOHMANN_JSON_PASTE2(func, v1) func(v1) +#define NLOHMANN_JSON_PASTE3(func, v1, v2) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE2(func, v2) +#define NLOHMANN_JSON_PASTE4(func, v1, v2, v3) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE3(func, v2, v3) +#define NLOHMANN_JSON_PASTE5(func, v1, v2, v3, v4) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE4(func, v2, v3, v4) +#define NLOHMANN_JSON_PASTE6(func, v1, v2, v3, v4, v5) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE5(func, v2, v3, v4, v5) +#define NLOHMANN_JSON_PASTE7(func, v1, v2, v3, v4, v5, v6) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE6(func, v2, v3, v4, v5, v6) +#define NLOHMANN_JSON_PASTE8(func, v1, v2, v3, v4, v5, v6, v7) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE7(func, v2, v3, v4, v5, v6, v7) +#define NLOHMANN_JSON_PASTE9(func, v1, v2, v3, v4, v5, v6, v7, v8) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE8(func, v2, v3, v4, v5, v6, v7, v8) +#define NLOHMANN_JSON_PASTE10(func, v1, v2, v3, v4, v5, v6, v7, v8, v9) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE9(func, v2, v3, v4, v5, v6, v7, v8, v9) +#define NLOHMANN_JSON_PASTE11(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE10(func, v2, v3, v4, v5, v6, v7, v8, v9, v10) +#define NLOHMANN_JSON_PASTE12(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE11(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) +#define NLOHMANN_JSON_PASTE13(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE12(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) +#define NLOHMANN_JSON_PASTE14(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE13(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) +#define NLOHMANN_JSON_PASTE15(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE14(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) +#define NLOHMANN_JSON_PASTE16(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE15(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) +#define NLOHMANN_JSON_PASTE17(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE16(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) +#define NLOHMANN_JSON_PASTE18(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE17(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17) +#define NLOHMANN_JSON_PASTE19(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE18(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18) +#define NLOHMANN_JSON_PASTE20(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE19(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19) +#define NLOHMANN_JSON_PASTE21(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE20(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20) +#define NLOHMANN_JSON_PASTE22(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE21(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) +#define NLOHMANN_JSON_PASTE23(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE22(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) +#define NLOHMANN_JSON_PASTE24(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE23(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) +#define NLOHMANN_JSON_PASTE25(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE24(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) +#define NLOHMANN_JSON_PASTE26(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE25(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25) +#define NLOHMANN_JSON_PASTE27(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE26(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26) +#define NLOHMANN_JSON_PASTE28(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE27(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27) +#define NLOHMANN_JSON_PASTE29(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE28(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28) +#define NLOHMANN_JSON_PASTE30(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE29(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29) +#define NLOHMANN_JSON_PASTE31(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE30(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30) +#define NLOHMANN_JSON_PASTE32(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE31(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) +#define NLOHMANN_JSON_PASTE33(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE32(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32) +#define NLOHMANN_JSON_PASTE34(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE33(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33) +#define NLOHMANN_JSON_PASTE35(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE34(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34) +#define NLOHMANN_JSON_PASTE36(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE35(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35) +#define NLOHMANN_JSON_PASTE37(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE36(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36) +#define NLOHMANN_JSON_PASTE38(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE37(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37) +#define NLOHMANN_JSON_PASTE39(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE38(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38) +#define NLOHMANN_JSON_PASTE40(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE39(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39) +#define NLOHMANN_JSON_PASTE41(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE40(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40) +#define NLOHMANN_JSON_PASTE42(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE41(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41) +#define NLOHMANN_JSON_PASTE43(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE42(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42) +#define NLOHMANN_JSON_PASTE44(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE43(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43) +#define NLOHMANN_JSON_PASTE45(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE44(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44) +#define NLOHMANN_JSON_PASTE46(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE45(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45) +#define NLOHMANN_JSON_PASTE47(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE46(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46) +#define NLOHMANN_JSON_PASTE48(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE47(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47) +#define NLOHMANN_JSON_PASTE49(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE48(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48) +#define NLOHMANN_JSON_PASTE50(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE49(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49) +#define NLOHMANN_JSON_PASTE51(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE50(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50) +#define NLOHMANN_JSON_PASTE52(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE51(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51) +#define NLOHMANN_JSON_PASTE53(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE52(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52) +#define NLOHMANN_JSON_PASTE54(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE53(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53) +#define NLOHMANN_JSON_PASTE55(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE54(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54) +#define NLOHMANN_JSON_PASTE56(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE55(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55) +#define NLOHMANN_JSON_PASTE57(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE56(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56) +#define NLOHMANN_JSON_PASTE58(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE57(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57) +#define NLOHMANN_JSON_PASTE59(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE58(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) +#define NLOHMANN_JSON_PASTE60(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE59(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59) +#define NLOHMANN_JSON_PASTE61(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE60(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) +#define NLOHMANN_JSON_PASTE62(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE61(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61) +#define NLOHMANN_JSON_PASTE63(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE62(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62) +#define NLOHMANN_JSON_PASTE64(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63) NLOHMANN_JSON_PASTE2(func, v1) NLOHMANN_JSON_PASTE63(func, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63) + +#define NLOHMANN_JSON_TO(v1) nlohmann_json_j[#v1] = nlohmann_json_t.v1; +#define NLOHMANN_JSON_FROM(v1) nlohmann_json_j.at(#v1).get_to(nlohmann_json_t.v1); + +/*! +@brief macro +@def NLOHMANN_DEFINE_TYPE_INTRUSIVE +@since version 3.9.0 +*/ +#define NLOHMANN_DEFINE_TYPE_INTRUSIVE(Type, ...) \ + friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } + +/*! +@brief macro +@def NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE +@since version 3.9.0 +*/ +#define NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Type, ...) \ + inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \ + inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } + +#ifndef JSON_USE_IMPLICIT_CONVERSIONS + #define JSON_USE_IMPLICIT_CONVERSIONS 1 +#endif + +#if JSON_USE_IMPLICIT_CONVERSIONS + #define JSON_EXPLICIT +#else + #define JSON_EXPLICIT explicit +#endif + + +namespace nlohmann +{ +namespace detail +{ +//////////////// +// exceptions // +//////////////// + +/*! +@brief general exception of the @ref basic_json class + +This class is an extension of `std::exception` objects with a member @a id for +exception ids. It is used as the base class for all exceptions thrown by the +@ref basic_json class. This class can hence be used as "wildcard" to catch +exceptions. + +Subclasses: +- @ref parse_error for exceptions indicating a parse error +- @ref invalid_iterator for exceptions indicating errors with iterators +- @ref type_error for exceptions indicating executing a member function with + a wrong type +- @ref out_of_range for exceptions indicating access out of the defined range +- @ref other_error for exceptions indicating other library errors + +@internal +@note To have nothrow-copy-constructible exceptions, we internally use + `std::runtime_error` which can cope with arbitrary-length error messages. + Intermediate strings are built with static functions and then passed to + the actual constructor. +@endinternal + +@liveexample{The following code shows how arbitrary library exceptions can be +caught.,exception} + +@since version 3.0.0 +*/ +class exception : public std::exception +{ + public: + /// returns the explanatory string + JSON_HEDLEY_RETURNS_NON_NULL + const char* what() const noexcept override + { + return m.what(); + } + + /// the id of the exception + const int id; + + protected: + JSON_HEDLEY_NON_NULL(3) + exception(int id_, const char* what_arg) : id(id_), m(what_arg) {} + + static std::string name(const std::string& ename, int id_) + { + return "[json.exception." + ename + "." + std::to_string(id_) + "] "; + } + + private: + /// an exception object as storage for error messages + std::runtime_error m; +}; + +/*! +@brief exception indicating a parse error + +This exception is thrown by the library when a parse error occurs. Parse errors +can occur during the deserialization of JSON text, CBOR, MessagePack, as well +as when using JSON Patch. + +Member @a byte holds the byte index of the last read character in the input +file. + +Exceptions have ids 1xx. + +name / id | example message | description +------------------------------ | --------------- | ------------------------- +json.exception.parse_error.101 | parse error at 2: unexpected end of input; expected string literal | This error indicates a syntax error while deserializing a JSON text. The error message describes that an unexpected token (character) was encountered, and the member @a byte indicates the error position. +json.exception.parse_error.102 | parse error at 14: missing or wrong low surrogate | JSON uses the `\uxxxx` format to describe Unicode characters. Code points above above 0xFFFF are split into two `\uxxxx` entries ("surrogate pairs"). This error indicates that the surrogate pair is incomplete or contains an invalid code point. +json.exception.parse_error.103 | parse error: code points above 0x10FFFF are invalid | Unicode supports code points up to 0x10FFFF. Code points above 0x10FFFF are invalid. +json.exception.parse_error.104 | parse error: JSON patch must be an array of objects | [RFC 6902](https://tools.ietf.org/html/rfc6902) requires a JSON Patch document to be a JSON document that represents an array of objects. +json.exception.parse_error.105 | parse error: operation must have string member 'op' | An operation of a JSON Patch document must contain exactly one "op" member, whose value indicates the operation to perform. Its value must be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors. +json.exception.parse_error.106 | parse error: array index '01' must not begin with '0' | An array index in a JSON Pointer ([RFC 6901](https://tools.ietf.org/html/rfc6901)) may be `0` or any number without a leading `0`. +json.exception.parse_error.107 | parse error: JSON pointer must be empty or begin with '/' - was: 'foo' | A JSON Pointer must be a Unicode string containing a sequence of zero or more reference tokens, each prefixed by a `/` character. +json.exception.parse_error.108 | parse error: escape character '~' must be followed with '0' or '1' | In a JSON Pointer, only `~0` and `~1` are valid escape sequences. +json.exception.parse_error.109 | parse error: array index 'one' is not a number | A JSON Pointer array index must be a number. +json.exception.parse_error.110 | parse error at 1: cannot read 2 bytes from vector | When parsing CBOR or MessagePack, the byte vector ends before the complete value has been read. +json.exception.parse_error.112 | parse error at 1: error reading CBOR; last byte: 0xF8 | Not all types of CBOR or MessagePack are supported. This exception occurs if an unsupported byte was read. +json.exception.parse_error.113 | parse error at 2: expected a CBOR string; last byte: 0x98 | While parsing a map key, a value that is not a string has been read. +json.exception.parse_error.114 | parse error: Unsupported BSON record type 0x0F | The parsing of the corresponding BSON record type is not implemented (yet). +json.exception.parse_error.115 | parse error at byte 5: syntax error while parsing UBJSON high-precision number: invalid number text: 1A | A UBJSON high-precision number could not be parsed. + +@note For an input with n bytes, 1 is the index of the first character and n+1 + is the index of the terminating null byte or the end of file. This also + holds true when reading a byte vector (CBOR or MessagePack). + +@liveexample{The following code shows how a `parse_error` exception can be +caught.,parse_error} + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref invalid_iterator for exceptions indicating errors with iterators +@sa - @ref type_error for exceptions indicating executing a member function with + a wrong type +@sa - @ref out_of_range for exceptions indicating access out of the defined range +@sa - @ref other_error for exceptions indicating other library errors + +@since version 3.0.0 +*/ +class parse_error : public exception +{ + public: + /*! + @brief create a parse error exception + @param[in] id_ the id of the exception + @param[in] pos the position where the error occurred (or with + chars_read_total=0 if the position cannot be + determined) + @param[in] what_arg the explanatory string + @return parse_error object + */ + static parse_error create(int id_, const position_t& pos, const std::string& what_arg) + { + std::string w = exception::name("parse_error", id_) + "parse error" + + position_string(pos) + ": " + what_arg; + return parse_error(id_, pos.chars_read_total, w.c_str()); + } + + static parse_error create(int id_, std::size_t byte_, const std::string& what_arg) + { + std::string w = exception::name("parse_error", id_) + "parse error" + + (byte_ != 0 ? (" at byte " + std::to_string(byte_)) : "") + + ": " + what_arg; + return parse_error(id_, byte_, w.c_str()); + } + + /*! + @brief byte index of the parse error + + The byte index of the last read character in the input file. + + @note For an input with n bytes, 1 is the index of the first character and + n+1 is the index of the terminating null byte or the end of file. + This also holds true when reading a byte vector (CBOR or MessagePack). + */ + const std::size_t byte; + + private: + parse_error(int id_, std::size_t byte_, const char* what_arg) + : exception(id_, what_arg), byte(byte_) {} + + static std::string position_string(const position_t& pos) + { + return " at line " + std::to_string(pos.lines_read + 1) + + ", column " + std::to_string(pos.chars_read_current_line); + } +}; + +/*! +@brief exception indicating errors with iterators + +This exception is thrown if iterators passed to a library function do not match +the expected semantics. + +Exceptions have ids 2xx. + +name / id | example message | description +----------------------------------- | --------------- | ------------------------- +json.exception.invalid_iterator.201 | iterators are not compatible | The iterators passed to constructor @ref basic_json(InputIT first, InputIT last) are not compatible, meaning they do not belong to the same container. Therefore, the range (@a first, @a last) is invalid. +json.exception.invalid_iterator.202 | iterator does not fit current value | In an erase or insert function, the passed iterator @a pos does not belong to the JSON value for which the function was called. It hence does not define a valid position for the deletion/insertion. +json.exception.invalid_iterator.203 | iterators do not fit current value | Either iterator passed to function @ref erase(IteratorType first, IteratorType last) does not belong to the JSON value from which values shall be erased. It hence does not define a valid range to delete values from. +json.exception.invalid_iterator.204 | iterators out of range | When an iterator range for a primitive type (number, boolean, or string) is passed to a constructor or an erase function, this range has to be exactly (@ref begin(), @ref end()), because this is the only way the single stored value is expressed. All other ranges are invalid. +json.exception.invalid_iterator.205 | iterator out of range | When an iterator for a primitive type (number, boolean, or string) is passed to an erase function, the iterator has to be the @ref begin() iterator, because it is the only way to address the stored value. All other iterators are invalid. +json.exception.invalid_iterator.206 | cannot construct with iterators from null | The iterators passed to constructor @ref basic_json(InputIT first, InputIT last) belong to a JSON null value and hence to not define a valid range. +json.exception.invalid_iterator.207 | cannot use key() for non-object iterators | The key() member function can only be used on iterators belonging to a JSON object, because other types do not have a concept of a key. +json.exception.invalid_iterator.208 | cannot use operator[] for object iterators | The operator[] to specify a concrete offset cannot be used on iterators belonging to a JSON object, because JSON objects are unordered. +json.exception.invalid_iterator.209 | cannot use offsets with object iterators | The offset operators (+, -, +=, -=) cannot be used on iterators belonging to a JSON object, because JSON objects are unordered. +json.exception.invalid_iterator.210 | iterators do not fit | The iterator range passed to the insert function are not compatible, meaning they do not belong to the same container. Therefore, the range (@a first, @a last) is invalid. +json.exception.invalid_iterator.211 | passed iterators may not belong to container | The iterator range passed to the insert function must not be a subrange of the container to insert to. +json.exception.invalid_iterator.212 | cannot compare iterators of different containers | When two iterators are compared, they must belong to the same container. +json.exception.invalid_iterator.213 | cannot compare order of object iterators | The order of object iterators cannot be compared, because JSON objects are unordered. +json.exception.invalid_iterator.214 | cannot get value | Cannot get value for iterator: Either the iterator belongs to a null value or it is an iterator to a primitive type (number, boolean, or string), but the iterator is different to @ref begin(). + +@liveexample{The following code shows how an `invalid_iterator` exception can be +caught.,invalid_iterator} + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref parse_error for exceptions indicating a parse error +@sa - @ref type_error for exceptions indicating executing a member function with + a wrong type +@sa - @ref out_of_range for exceptions indicating access out of the defined range +@sa - @ref other_error for exceptions indicating other library errors + +@since version 3.0.0 +*/ +class invalid_iterator : public exception +{ + public: + static invalid_iterator create(int id_, const std::string& what_arg) + { + std::string w = exception::name("invalid_iterator", id_) + what_arg; + return invalid_iterator(id_, w.c_str()); + } + + private: + JSON_HEDLEY_NON_NULL(3) + invalid_iterator(int id_, const char* what_arg) + : exception(id_, what_arg) {} +}; + +/*! +@brief exception indicating executing a member function with a wrong type + +This exception is thrown in case of a type error; that is, a library function is +executed on a JSON value whose type does not match the expected semantics. + +Exceptions have ids 3xx. + +name / id | example message | description +----------------------------- | --------------- | ------------------------- +json.exception.type_error.301 | cannot create object from initializer list | To create an object from an initializer list, the initializer list must consist only of a list of pairs whose first element is a string. When this constraint is violated, an array is created instead. +json.exception.type_error.302 | type must be object, but is array | During implicit or explicit value conversion, the JSON type must be compatible to the target type. For instance, a JSON string can only be converted into string types, but not into numbers or boolean types. +json.exception.type_error.303 | incompatible ReferenceType for get_ref, actual type is object | To retrieve a reference to a value stored in a @ref basic_json object with @ref get_ref, the type of the reference must match the value type. For instance, for a JSON array, the @a ReferenceType must be @ref array_t &. +json.exception.type_error.304 | cannot use at() with string | The @ref at() member functions can only be executed for certain JSON types. +json.exception.type_error.305 | cannot use operator[] with string | The @ref operator[] member functions can only be executed for certain JSON types. +json.exception.type_error.306 | cannot use value() with string | The @ref value() member functions can only be executed for certain JSON types. +json.exception.type_error.307 | cannot use erase() with string | The @ref erase() member functions can only be executed for certain JSON types. +json.exception.type_error.308 | cannot use push_back() with string | The @ref push_back() and @ref operator+= member functions can only be executed for certain JSON types. +json.exception.type_error.309 | cannot use insert() with | The @ref insert() member functions can only be executed for certain JSON types. +json.exception.type_error.310 | cannot use swap() with number | The @ref swap() member functions can only be executed for certain JSON types. +json.exception.type_error.311 | cannot use emplace_back() with string | The @ref emplace_back() member function can only be executed for certain JSON types. +json.exception.type_error.312 | cannot use update() with string | The @ref update() member functions can only be executed for certain JSON types. +json.exception.type_error.313 | invalid value to unflatten | The @ref unflatten function converts an object whose keys are JSON Pointers back into an arbitrary nested JSON value. The JSON Pointers must not overlap, because then the resulting value would not be well defined. +json.exception.type_error.314 | only objects can be unflattened | The @ref unflatten function only works for an object whose keys are JSON Pointers. +json.exception.type_error.315 | values in object must be primitive | The @ref unflatten function only works for an object whose keys are JSON Pointers and whose values are primitive. +json.exception.type_error.316 | invalid UTF-8 byte at index 10: 0x7E | The @ref dump function only works with UTF-8 encoded strings; that is, if you assign a `std::string` to a JSON value, make sure it is UTF-8 encoded. | +json.exception.type_error.317 | JSON value cannot be serialized to requested format | The dynamic type of the object cannot be represented in the requested serialization format (e.g. a raw `true` or `null` JSON object cannot be serialized to BSON) | + +@liveexample{The following code shows how a `type_error` exception can be +caught.,type_error} + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref parse_error for exceptions indicating a parse error +@sa - @ref invalid_iterator for exceptions indicating errors with iterators +@sa - @ref out_of_range for exceptions indicating access out of the defined range +@sa - @ref other_error for exceptions indicating other library errors + +@since version 3.0.0 +*/ +class type_error : public exception +{ + public: + static type_error create(int id_, const std::string& what_arg) + { + std::string w = exception::name("type_error", id_) + what_arg; + return type_error(id_, w.c_str()); + } + + private: + JSON_HEDLEY_NON_NULL(3) + type_error(int id_, const char* what_arg) : exception(id_, what_arg) {} +}; + +/*! +@brief exception indicating access out of the defined range + +This exception is thrown in case a library function is called on an input +parameter that exceeds the expected range, for instance in case of array +indices or nonexisting object keys. + +Exceptions have ids 4xx. + +name / id | example message | description +------------------------------- | --------------- | ------------------------- +json.exception.out_of_range.401 | array index 3 is out of range | The provided array index @a i is larger than @a size-1. +json.exception.out_of_range.402 | array index '-' (3) is out of range | The special array index `-` in a JSON Pointer never describes a valid element of the array, but the index past the end. That is, it can only be used to add elements at this position, but not to read it. +json.exception.out_of_range.403 | key 'foo' not found | The provided key was not found in the JSON object. +json.exception.out_of_range.404 | unresolved reference token 'foo' | A reference token in a JSON Pointer could not be resolved. +json.exception.out_of_range.405 | JSON pointer has no parent | The JSON Patch operations 'remove' and 'add' can not be applied to the root element of the JSON value. +json.exception.out_of_range.406 | number overflow parsing '10E1000' | A parsed number could not be stored as without changing it to NaN or INF. +json.exception.out_of_range.407 | number overflow serializing '9223372036854775808' | UBJSON and BSON only support integer numbers up to 9223372036854775807. (until version 3.8.0) | +json.exception.out_of_range.408 | excessive array size: 8658170730974374167 | The size (following `#`) of an UBJSON array or object exceeds the maximal capacity. | +json.exception.out_of_range.409 | BSON key cannot contain code point U+0000 (at byte 2) | Key identifiers to be serialized to BSON cannot contain code point U+0000, since the key is stored as zero-terminated c-string | + +@liveexample{The following code shows how an `out_of_range` exception can be +caught.,out_of_range} + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref parse_error for exceptions indicating a parse error +@sa - @ref invalid_iterator for exceptions indicating errors with iterators +@sa - @ref type_error for exceptions indicating executing a member function with + a wrong type +@sa - @ref other_error for exceptions indicating other library errors + +@since version 3.0.0 +*/ +class out_of_range : public exception +{ + public: + static out_of_range create(int id_, const std::string& what_arg) + { + std::string w = exception::name("out_of_range", id_) + what_arg; + return out_of_range(id_, w.c_str()); + } + + private: + JSON_HEDLEY_NON_NULL(3) + out_of_range(int id_, const char* what_arg) : exception(id_, what_arg) {} +}; + +/*! +@brief exception indicating other library errors + +This exception is thrown in case of errors that cannot be classified with the +other exception types. + +Exceptions have ids 5xx. + +name / id | example message | description +------------------------------ | --------------- | ------------------------- +json.exception.other_error.501 | unsuccessful: {"op":"test","path":"/baz", "value":"bar"} | A JSON Patch operation 'test' failed. The unsuccessful operation is also printed. + +@sa - @ref exception for the base class of the library exceptions +@sa - @ref parse_error for exceptions indicating a parse error +@sa - @ref invalid_iterator for exceptions indicating errors with iterators +@sa - @ref type_error for exceptions indicating executing a member function with + a wrong type +@sa - @ref out_of_range for exceptions indicating access out of the defined range + +@liveexample{The following code shows how an `other_error` exception can be +caught.,other_error} + +@since version 3.0.0 +*/ +class other_error : public exception +{ + public: + static other_error create(int id_, const std::string& what_arg) + { + std::string w = exception::name("other_error", id_) + what_arg; + return other_error(id_, w.c_str()); + } + + private: + JSON_HEDLEY_NON_NULL(3) + other_error(int id_, const char* what_arg) : exception(id_, what_arg) {} +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + + +#include // size_t +#include // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type + +namespace nlohmann +{ +namespace detail +{ +// alias templates to reduce boilerplate +template +using enable_if_t = typename std::enable_if::type; + +template +using uncvref_t = typename std::remove_cv::type>::type; + +// implementation of C++14 index_sequence and affiliates +// source: https://stackoverflow.com/a/32223343 +template +struct index_sequence +{ + using type = index_sequence; + using value_type = std::size_t; + static constexpr std::size_t size() noexcept + { + return sizeof...(Ints); + } +}; + +template +struct merge_and_renumber; + +template +struct merge_and_renumber, index_sequence> + : index_sequence < I1..., (sizeof...(I1) + I2)... > {}; + +template +struct make_index_sequence + : merge_and_renumber < typename make_index_sequence < N / 2 >::type, + typename make_index_sequence < N - N / 2 >::type > {}; + +template<> struct make_index_sequence<0> : index_sequence<> {}; +template<> struct make_index_sequence<1> : index_sequence<0> {}; + +template +using index_sequence_for = make_index_sequence; + +// dispatch utility (taken from ranges-v3) +template struct priority_tag : priority_tag < N - 1 > {}; +template<> struct priority_tag<0> {}; + +// taken from ranges-v3 +template +struct static_const +{ + static constexpr T value{}; +}; + +template +constexpr T static_const::value; +} // namespace detail +} // namespace nlohmann + +// #include + + +#include // numeric_limits +#include // false_type, is_constructible, is_integral, is_same, true_type +#include // declval + +// #include + + +#include // random_access_iterator_tag + +// #include + + +namespace nlohmann +{ +namespace detail +{ +template struct make_void +{ + using type = void; +}; +template using void_t = typename make_void::type; +} // namespace detail +} // namespace nlohmann + +// #include + + +namespace nlohmann +{ +namespace detail +{ +template +struct iterator_types {}; + +template +struct iterator_types < + It, + void_t> +{ + using difference_type = typename It::difference_type; + using value_type = typename It::value_type; + using pointer = typename It::pointer; + using reference = typename It::reference; + using iterator_category = typename It::iterator_category; +}; + +// This is required as some compilers implement std::iterator_traits in a way that +// doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341. +template +struct iterator_traits +{ +}; + +template +struct iterator_traits < T, enable_if_t < !std::is_pointer::value >> + : iterator_types +{ +}; + +template +struct iterator_traits::value>> +{ + using iterator_category = std::random_access_iterator_tag; + using value_type = T; + using difference_type = ptrdiff_t; + using pointer = T*; + using reference = T&; +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + +// #include + + +#include + +// #include + + +// https://en.cppreference.com/w/cpp/experimental/is_detected +namespace nlohmann +{ +namespace detail +{ +struct nonesuch +{ + nonesuch() = delete; + ~nonesuch() = delete; + nonesuch(nonesuch const&) = delete; + nonesuch(nonesuch const&&) = delete; + void operator=(nonesuch const&) = delete; + void operator=(nonesuch&&) = delete; +}; + +template class Op, + class... Args> +struct detector +{ + using value_t = std::false_type; + using type = Default; +}; + +template class Op, class... Args> +struct detector>, Op, Args...> +{ + using value_t = std::true_type; + using type = Op; +}; + +template class Op, class... Args> +using is_detected = typename detector::value_t; + +template class Op, class... Args> +using detected_t = typename detector::type; + +template class Op, class... Args> +using detected_or = detector; + +template class Op, class... Args> +using detected_or_t = typename detected_or::type; + +template class Op, class... Args> +using is_detected_exact = std::is_same>; + +template class Op, class... Args> +using is_detected_convertible = + std::is_convertible, To>; +} // namespace detail +} // namespace nlohmann + +// #include +#ifndef INCLUDE_NLOHMANN_JSON_FWD_HPP_ +#define INCLUDE_NLOHMANN_JSON_FWD_HPP_ + +#include // int64_t, uint64_t +#include // map +#include // allocator +#include // string +#include // vector + +/*! +@brief namespace for Niels Lohmann +@see https://github.com/nlohmann +@since version 1.0.0 +*/ +namespace nlohmann +{ +/*! +@brief default JSONSerializer template argument + +This serializer ignores the template arguments and uses ADL +([argument-dependent lookup](https://en.cppreference.com/w/cpp/language/adl)) +for serialization. +*/ +template +struct adl_serializer; + +template class ObjectType = + std::map, + template class ArrayType = std::vector, + class StringType = std::string, class BooleanType = bool, + class NumberIntegerType = std::int64_t, + class NumberUnsignedType = std::uint64_t, + class NumberFloatType = double, + template class AllocatorType = std::allocator, + template class JSONSerializer = + adl_serializer, + class BinaryType = std::vector> +class basic_json; + +/*! +@brief JSON Pointer + +A JSON pointer defines a string syntax for identifying a specific value +within a JSON document. It can be used with functions `at` and +`operator[]`. Furthermore, JSON pointers are the base for JSON patches. + +@sa [RFC 6901](https://tools.ietf.org/html/rfc6901) + +@since version 2.0.0 +*/ +template +class json_pointer; + +/*! +@brief default JSON class + +This type is the default specialization of the @ref basic_json class which +uses the standard template types. + +@since version 1.0.0 +*/ +using json = basic_json<>; + +template +struct ordered_map; + +/*! +@brief ordered JSON class + +This type preserves the insertion order of object keys. + +@since version 3.9.0 +*/ +using ordered_json = basic_json; + +} // namespace nlohmann + +#endif // INCLUDE_NLOHMANN_JSON_FWD_HPP_ + + +namespace nlohmann +{ +/*! +@brief detail namespace with internal helper functions + +This namespace collects functions that should not be exposed, +implementations of some @ref basic_json methods, and meta-programming helpers. + +@since version 2.1.0 +*/ +namespace detail +{ +///////////// +// helpers // +///////////// + +// Note to maintainers: +// +// Every trait in this file expects a non CV-qualified type. +// The only exceptions are in the 'aliases for detected' section +// (i.e. those of the form: decltype(T::member_function(std::declval()))) +// +// In this case, T has to be properly CV-qualified to constraint the function arguments +// (e.g. to_json(BasicJsonType&, const T&)) + +template struct is_basic_json : std::false_type {}; + +NLOHMANN_BASIC_JSON_TPL_DECLARATION +struct is_basic_json : std::true_type {}; + +////////////////////// +// json_ref helpers // +////////////////////// + +template +class json_ref; + +template +struct is_json_ref : std::false_type {}; + +template +struct is_json_ref> : std::true_type {}; + +////////////////////////// +// aliases for detected // +////////////////////////// + +template +using mapped_type_t = typename T::mapped_type; + +template +using key_type_t = typename T::key_type; + +template +using value_type_t = typename T::value_type; + +template +using difference_type_t = typename T::difference_type; + +template +using pointer_t = typename T::pointer; + +template +using reference_t = typename T::reference; + +template +using iterator_category_t = typename T::iterator_category; + +template +using iterator_t = typename T::iterator; + +template +using to_json_function = decltype(T::to_json(std::declval()...)); + +template +using from_json_function = decltype(T::from_json(std::declval()...)); + +template +using get_template_function = decltype(std::declval().template get()); + +// trait checking if JSONSerializer::from_json(json const&, udt&) exists +template +struct has_from_json : std::false_type {}; + +// trait checking if j.get is valid +// use this trait instead of std::is_constructible or std::is_convertible, +// both rely on, or make use of implicit conversions, and thus fail when T +// has several constructors/operator= (see https://github.com/nlohmann/json/issues/958) +template +struct is_getable +{ + static constexpr bool value = is_detected::value; +}; + +template +struct has_from_json < BasicJsonType, T, + enable_if_t < !is_basic_json::value >> +{ + using serializer = typename BasicJsonType::template json_serializer; + + static constexpr bool value = + is_detected_exact::value; +}; + +// This trait checks if JSONSerializer::from_json(json const&) exists +// this overload is used for non-default-constructible user-defined-types +template +struct has_non_default_from_json : std::false_type {}; + +template +struct has_non_default_from_json < BasicJsonType, T, enable_if_t < !is_basic_json::value >> +{ + using serializer = typename BasicJsonType::template json_serializer; + + static constexpr bool value = + is_detected_exact::value; +}; + +// This trait checks if BasicJsonType::json_serializer::to_json exists +// Do not evaluate the trait when T is a basic_json type, to avoid template instantiation infinite recursion. +template +struct has_to_json : std::false_type {}; + +template +struct has_to_json < BasicJsonType, T, enable_if_t < !is_basic_json::value >> +{ + using serializer = typename BasicJsonType::template json_serializer; + + static constexpr bool value = + is_detected_exact::value; +}; + + +/////////////////// +// is_ functions // +/////////////////// + +template +struct is_iterator_traits : std::false_type {}; + +template +struct is_iterator_traits> +{ + private: + using traits = iterator_traits; + + public: + static constexpr auto value = + is_detected::value && + is_detected::value && + is_detected::value && + is_detected::value && + is_detected::value; +}; + +// source: https://stackoverflow.com/a/37193089/4116453 + +template +struct is_complete_type : std::false_type {}; + +template +struct is_complete_type : std::true_type {}; + +template +struct is_compatible_object_type_impl : std::false_type {}; + +template +struct is_compatible_object_type_impl < + BasicJsonType, CompatibleObjectType, + enable_if_t < is_detected::value&& + is_detected::value >> +{ + + using object_t = typename BasicJsonType::object_t; + + // macOS's is_constructible does not play well with nonesuch... + static constexpr bool value = + std::is_constructible::value && + std::is_constructible::value; +}; + +template +struct is_compatible_object_type + : is_compatible_object_type_impl {}; + +template +struct is_constructible_object_type_impl : std::false_type {}; + +template +struct is_constructible_object_type_impl < + BasicJsonType, ConstructibleObjectType, + enable_if_t < is_detected::value&& + is_detected::value >> +{ + using object_t = typename BasicJsonType::object_t; + + static constexpr bool value = + (std::is_default_constructible::value && + (std::is_move_assignable::value || + std::is_copy_assignable::value) && + (std::is_constructible::value && + std::is_same < + typename object_t::mapped_type, + typename ConstructibleObjectType::mapped_type >::value)) || + (has_from_json::value || + has_non_default_from_json < + BasicJsonType, + typename ConstructibleObjectType::mapped_type >::value); +}; + +template +struct is_constructible_object_type + : is_constructible_object_type_impl {}; + +template +struct is_compatible_string_type_impl : std::false_type {}; + +template +struct is_compatible_string_type_impl < + BasicJsonType, CompatibleStringType, + enable_if_t::value >> +{ + static constexpr auto value = + std::is_constructible::value; +}; + +template +struct is_compatible_string_type + : is_compatible_string_type_impl {}; + +template +struct is_constructible_string_type_impl : std::false_type {}; + +template +struct is_constructible_string_type_impl < + BasicJsonType, ConstructibleStringType, + enable_if_t::value >> +{ + static constexpr auto value = + std::is_constructible::value; +}; + +template +struct is_constructible_string_type + : is_constructible_string_type_impl {}; + +template +struct is_compatible_array_type_impl : std::false_type {}; + +template +struct is_compatible_array_type_impl < + BasicJsonType, CompatibleArrayType, + enable_if_t < is_detected::value&& + is_detected::value&& +// This is needed because json_reverse_iterator has a ::iterator type... +// Therefore it is detected as a CompatibleArrayType. +// The real fix would be to have an Iterable concept. + !is_iterator_traits < + iterator_traits>::value >> +{ + static constexpr bool value = + std::is_constructible::value; +}; + +template +struct is_compatible_array_type + : is_compatible_array_type_impl {}; + +template +struct is_constructible_array_type_impl : std::false_type {}; + +template +struct is_constructible_array_type_impl < + BasicJsonType, ConstructibleArrayType, + enable_if_t::value >> + : std::true_type {}; + +template +struct is_constructible_array_type_impl < + BasicJsonType, ConstructibleArrayType, + enable_if_t < !std::is_same::value&& + std::is_default_constructible::value&& +(std::is_move_assignable::value || + std::is_copy_assignable::value)&& +is_detected::value&& +is_detected::value&& +is_complete_type < +detected_t>::value >> +{ + static constexpr bool value = + // This is needed because json_reverse_iterator has a ::iterator type, + // furthermore, std::back_insert_iterator (and other iterators) have a + // base class `iterator`... Therefore it is detected as a + // ConstructibleArrayType. The real fix would be to have an Iterable + // concept. + !is_iterator_traits>::value && + + (std::is_same::value || + has_from_json::value || + has_non_default_from_json < + BasicJsonType, typename ConstructibleArrayType::value_type >::value); +}; + +template +struct is_constructible_array_type + : is_constructible_array_type_impl {}; + +template +struct is_compatible_integer_type_impl : std::false_type {}; + +template +struct is_compatible_integer_type_impl < + RealIntegerType, CompatibleNumberIntegerType, + enable_if_t < std::is_integral::value&& + std::is_integral::value&& + !std::is_same::value >> +{ + // is there an assert somewhere on overflows? + using RealLimits = std::numeric_limits; + using CompatibleLimits = std::numeric_limits; + + static constexpr auto value = + std::is_constructible::value && + CompatibleLimits::is_integer && + RealLimits::is_signed == CompatibleLimits::is_signed; +}; + +template +struct is_compatible_integer_type + : is_compatible_integer_type_impl {}; + +template +struct is_compatible_type_impl: std::false_type {}; + +template +struct is_compatible_type_impl < + BasicJsonType, CompatibleType, + enable_if_t::value >> +{ + static constexpr bool value = + has_to_json::value; +}; + +template +struct is_compatible_type + : is_compatible_type_impl {}; + +// https://en.cppreference.com/w/cpp/types/conjunction +template struct conjunction : std::true_type { }; +template struct conjunction : B1 { }; +template +struct conjunction +: std::conditional, B1>::type {}; + +template +struct is_constructible_tuple : std::false_type {}; + +template +struct is_constructible_tuple> : conjunction...> {}; +} // namespace detail +} // namespace nlohmann + +// #include + + +#include // array +#include // size_t +#include // uint8_t +#include // string + +namespace nlohmann +{ +namespace detail +{ +/////////////////////////// +// JSON type enumeration // +/////////////////////////// + +/*! +@brief the JSON type enumeration + +This enumeration collects the different JSON types. It is internally used to +distinguish the stored values, and the functions @ref basic_json::is_null(), +@ref basic_json::is_object(), @ref basic_json::is_array(), +@ref basic_json::is_string(), @ref basic_json::is_boolean(), +@ref basic_json::is_number() (with @ref basic_json::is_number_integer(), +@ref basic_json::is_number_unsigned(), and @ref basic_json::is_number_float()), +@ref basic_json::is_discarded(), @ref basic_json::is_primitive(), and +@ref basic_json::is_structured() rely on it. + +@note There are three enumeration entries (number_integer, number_unsigned, and +number_float), because the library distinguishes these three types for numbers: +@ref basic_json::number_unsigned_t is used for unsigned integers, +@ref basic_json::number_integer_t is used for signed integers, and +@ref basic_json::number_float_t is used for floating-point numbers or to +approximate integers which do not fit in the limits of their respective type. + +@sa @ref basic_json::basic_json(const value_t value_type) -- create a JSON +value with the default value for a given type + +@since version 1.0.0 +*/ +enum class value_t : std::uint8_t +{ + null, ///< null value + object, ///< object (unordered set of name/value pairs) + array, ///< array (ordered collection of values) + string, ///< string value + boolean, ///< boolean value + number_integer, ///< number value (signed integer) + number_unsigned, ///< number value (unsigned integer) + number_float, ///< number value (floating-point) + binary, ///< binary array (ordered collection of bytes) + discarded ///< discarded by the parser callback function +}; + +/*! +@brief comparison operator for JSON types + +Returns an ordering that is similar to Python: +- order: null < boolean < number < object < array < string < binary +- furthermore, each type is not smaller than itself +- discarded values are not comparable +- binary is represented as a b"" string in python and directly comparable to a + string; however, making a binary array directly comparable with a string would + be surprising behavior in a JSON file. + +@since version 1.0.0 +*/ +inline bool operator<(const value_t lhs, const value_t rhs) noexcept +{ + static constexpr std::array order = {{ + 0 /* null */, 3 /* object */, 4 /* array */, 5 /* string */, + 1 /* boolean */, 2 /* integer */, 2 /* unsigned */, 2 /* float */, + 6 /* binary */ + } + }; + + const auto l_index = static_cast(lhs); + const auto r_index = static_cast(rhs); + return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index]; +} +} // namespace detail +} // namespace nlohmann + + +namespace nlohmann +{ +namespace detail +{ +template +void from_json(const BasicJsonType& j, typename std::nullptr_t& n) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_null())) + { + JSON_THROW(type_error::create(302, "type must be null, but is " + std::string(j.type_name()))); + } + n = nullptr; +} + +// overloads for basic_json template parameters +template < typename BasicJsonType, typename ArithmeticType, + enable_if_t < std::is_arithmetic::value&& + !std::is_same::value, + int > = 0 > +void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val) +{ + switch (static_cast(j)) + { + case value_t::number_unsigned: + { + val = static_cast(*j.template get_ptr()); + break; + } + case value_t::number_integer: + { + val = static_cast(*j.template get_ptr()); + break; + } + case value_t::number_float: + { + val = static_cast(*j.template get_ptr()); + break; + } + + default: + JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()))); + } +} + +template +void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_boolean())) + { + JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(j.type_name()))); + } + b = *j.template get_ptr(); +} + +template +void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_string())) + { + JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()))); + } + s = *j.template get_ptr(); +} + +template < + typename BasicJsonType, typename ConstructibleStringType, + enable_if_t < + is_constructible_string_type::value&& + !std::is_same::value, + int > = 0 > +void from_json(const BasicJsonType& j, ConstructibleStringType& s) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_string())) + { + JSON_THROW(type_error::create(302, "type must be string, but is " + std::string(j.type_name()))); + } + + s = *j.template get_ptr(); +} + +template +void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val) +{ + get_arithmetic_value(j, val); +} + +template +void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val) +{ + get_arithmetic_value(j, val); +} + +template +void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val) +{ + get_arithmetic_value(j, val); +} + +template::value, int> = 0> +void from_json(const BasicJsonType& j, EnumType& e) +{ + typename std::underlying_type::type val; + get_arithmetic_value(j, val); + e = static_cast(val); +} + +// forward_list doesn't have an insert method +template::value, int> = 0> +void from_json(const BasicJsonType& j, std::forward_list& l) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_array())) + { + JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()))); + } + l.clear(); + std::transform(j.rbegin(), j.rend(), + std::front_inserter(l), [](const BasicJsonType & i) + { + return i.template get(); + }); +} + +// valarray doesn't have an insert method +template::value, int> = 0> +void from_json(const BasicJsonType& j, std::valarray& l) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_array())) + { + JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()))); + } + l.resize(j.size()); + std::transform(j.begin(), j.end(), std::begin(l), + [](const BasicJsonType & elem) + { + return elem.template get(); + }); +} + +template +auto from_json(const BasicJsonType& j, T (&arr)[N]) +-> decltype(j.template get(), void()) +{ + for (std::size_t i = 0; i < N; ++i) + { + arr[i] = j.at(i).template get(); + } +} + +template +void from_json_array_impl(const BasicJsonType& j, typename BasicJsonType::array_t& arr, priority_tag<3> /*unused*/) +{ + arr = *j.template get_ptr(); +} + +template +auto from_json_array_impl(const BasicJsonType& j, std::array& arr, + priority_tag<2> /*unused*/) +-> decltype(j.template get(), void()) +{ + for (std::size_t i = 0; i < N; ++i) + { + arr[i] = j.at(i).template get(); + } +} + +template +auto from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr, priority_tag<1> /*unused*/) +-> decltype( + arr.reserve(std::declval()), + j.template get(), + void()) +{ + using std::end; + + ConstructibleArrayType ret; + ret.reserve(j.size()); + std::transform(j.begin(), j.end(), + std::inserter(ret, end(ret)), [](const BasicJsonType & i) + { + // get() returns *this, this won't call a from_json + // method when value_type is BasicJsonType + return i.template get(); + }); + arr = std::move(ret); +} + +template +void from_json_array_impl(const BasicJsonType& j, ConstructibleArrayType& arr, + priority_tag<0> /*unused*/) +{ + using std::end; + + ConstructibleArrayType ret; + std::transform( + j.begin(), j.end(), std::inserter(ret, end(ret)), + [](const BasicJsonType & i) + { + // get() returns *this, this won't call a from_json + // method when value_type is BasicJsonType + return i.template get(); + }); + arr = std::move(ret); +} + +template < typename BasicJsonType, typename ConstructibleArrayType, + enable_if_t < + is_constructible_array_type::value&& + !is_constructible_object_type::value&& + !is_constructible_string_type::value&& + !std::is_same::value&& + !is_basic_json::value, + int > = 0 > +auto from_json(const BasicJsonType& j, ConstructibleArrayType& arr) +-> decltype(from_json_array_impl(j, arr, priority_tag<3> {}), +j.template get(), +void()) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_array())) + { + JSON_THROW(type_error::create(302, "type must be array, but is " + + std::string(j.type_name()))); + } + + from_json_array_impl(j, arr, priority_tag<3> {}); +} + +template +void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_binary())) + { + JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(j.type_name()))); + } + + bin = *j.template get_ptr(); +} + +template::value, int> = 0> +void from_json(const BasicJsonType& j, ConstructibleObjectType& obj) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_object())) + { + JSON_THROW(type_error::create(302, "type must be object, but is " + std::string(j.type_name()))); + } + + ConstructibleObjectType ret; + auto inner_object = j.template get_ptr(); + using value_type = typename ConstructibleObjectType::value_type; + std::transform( + inner_object->begin(), inner_object->end(), + std::inserter(ret, ret.begin()), + [](typename BasicJsonType::object_t::value_type const & p) + { + return value_type(p.first, p.second.template get()); + }); + obj = std::move(ret); +} + +// overload for arithmetic types, not chosen for basic_json template arguments +// (BooleanType, etc..); note: Is it really necessary to provide explicit +// overloads for boolean_t etc. in case of a custom BooleanType which is not +// an arithmetic type? +template < typename BasicJsonType, typename ArithmeticType, + enable_if_t < + std::is_arithmetic::value&& + !std::is_same::value&& + !std::is_same::value&& + !std::is_same::value&& + !std::is_same::value, + int > = 0 > +void from_json(const BasicJsonType& j, ArithmeticType& val) +{ + switch (static_cast(j)) + { + case value_t::number_unsigned: + { + val = static_cast(*j.template get_ptr()); + break; + } + case value_t::number_integer: + { + val = static_cast(*j.template get_ptr()); + break; + } + case value_t::number_float: + { + val = static_cast(*j.template get_ptr()); + break; + } + case value_t::boolean: + { + val = static_cast(*j.template get_ptr()); + break; + } + + default: + JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name()))); + } +} + +template +void from_json(const BasicJsonType& j, std::pair& p) +{ + p = {j.at(0).template get(), j.at(1).template get()}; +} + +template +void from_json_tuple_impl(const BasicJsonType& j, Tuple& t, index_sequence /*unused*/) +{ + t = std::make_tuple(j.at(Idx).template get::type>()...); +} + +template +void from_json(const BasicJsonType& j, std::tuple& t) +{ + from_json_tuple_impl(j, t, index_sequence_for {}); +} + +template < typename BasicJsonType, typename Key, typename Value, typename Compare, typename Allocator, + typename = enable_if_t < !std::is_constructible < + typename BasicJsonType::string_t, Key >::value >> +void from_json(const BasicJsonType& j, std::map& m) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_array())) + { + JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()))); + } + m.clear(); + for (const auto& p : j) + { + if (JSON_HEDLEY_UNLIKELY(!p.is_array())) + { + JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()))); + } + m.emplace(p.at(0).template get(), p.at(1).template get()); + } +} + +template < typename BasicJsonType, typename Key, typename Value, typename Hash, typename KeyEqual, typename Allocator, + typename = enable_if_t < !std::is_constructible < + typename BasicJsonType::string_t, Key >::value >> +void from_json(const BasicJsonType& j, std::unordered_map& m) +{ + if (JSON_HEDLEY_UNLIKELY(!j.is_array())) + { + JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(j.type_name()))); + } + m.clear(); + for (const auto& p : j) + { + if (JSON_HEDLEY_UNLIKELY(!p.is_array())) + { + JSON_THROW(type_error::create(302, "type must be array, but is " + std::string(p.type_name()))); + } + m.emplace(p.at(0).template get(), p.at(1).template get()); + } +} + +struct from_json_fn +{ + template + auto operator()(const BasicJsonType& j, T& val) const + noexcept(noexcept(from_json(j, val))) + -> decltype(from_json(j, val), void()) + { + return from_json(j, val); + } +}; +} // namespace detail + +/// namespace to hold default `from_json` function +/// to see why this is required: +/// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html +namespace +{ +constexpr const auto& from_json = detail::static_const::value; +} // namespace +} // namespace nlohmann + +// #include + + +#include // copy +#include // begin, end +#include // string +#include // tuple, get +#include // is_same, is_constructible, is_floating_point, is_enum, underlying_type +#include // move, forward, declval, pair +#include // valarray +#include // vector + +// #include + + +#include // size_t +#include // input_iterator_tag +#include // string, to_string +#include // tuple_size, get, tuple_element + +// #include + +// #include + + +namespace nlohmann +{ +namespace detail +{ +template +void int_to_string( string_type& target, std::size_t value ) +{ + // For ADL + using std::to_string; + target = to_string(value); +} +template class iteration_proxy_value +{ + public: + using difference_type = std::ptrdiff_t; + using value_type = iteration_proxy_value; + using pointer = value_type * ; + using reference = value_type & ; + using iterator_category = std::input_iterator_tag; + using string_type = typename std::remove_cv< typename std::remove_reference().key() ) >::type >::type; + + private: + /// the iterator + IteratorType anchor; + /// an index for arrays (used to create key names) + std::size_t array_index = 0; + /// last stringified array index + mutable std::size_t array_index_last = 0; + /// a string representation of the array index + mutable string_type array_index_str = "0"; + /// an empty string (to return a reference for primitive values) + const string_type empty_str = ""; + + public: + explicit iteration_proxy_value(IteratorType it) noexcept : anchor(it) {} + + /// dereference operator (needed for range-based for) + iteration_proxy_value& operator*() + { + return *this; + } + + /// increment operator (needed for range-based for) + iteration_proxy_value& operator++() + { + ++anchor; + ++array_index; + + return *this; + } + + /// equality operator (needed for InputIterator) + bool operator==(const iteration_proxy_value& o) const + { + return anchor == o.anchor; + } + + /// inequality operator (needed for range-based for) + bool operator!=(const iteration_proxy_value& o) const + { + return anchor != o.anchor; + } + + /// return key of the iterator + const string_type& key() const + { + JSON_ASSERT(anchor.m_object != nullptr); + + switch (anchor.m_object->type()) + { + // use integer array index as key + case value_t::array: + { + if (array_index != array_index_last) + { + int_to_string( array_index_str, array_index ); + array_index_last = array_index; + } + return array_index_str; + } + + // use key from the object + case value_t::object: + return anchor.key(); + + // use an empty key for all primitive types + default: + return empty_str; + } + } + + /// return value of the iterator + typename IteratorType::reference value() const + { + return anchor.value(); + } +}; + +/// proxy class for the items() function +template class iteration_proxy +{ + private: + /// the container to iterate + typename IteratorType::reference container; + + public: + /// construct iteration proxy from a container + explicit iteration_proxy(typename IteratorType::reference cont) noexcept + : container(cont) {} + + /// return iterator begin (needed for range-based for) + iteration_proxy_value begin() noexcept + { + return iteration_proxy_value(container.begin()); + } + + /// return iterator end (needed for range-based for) + iteration_proxy_value end() noexcept + { + return iteration_proxy_value(container.end()); + } +}; +// Structured Bindings Support +// For further reference see https://blog.tartanllama.xyz/structured-bindings/ +// And see https://github.com/nlohmann/json/pull/1391 +template = 0> +auto get(const nlohmann::detail::iteration_proxy_value& i) -> decltype(i.key()) +{ + return i.key(); +} +// Structured Bindings Support +// For further reference see https://blog.tartanllama.xyz/structured-bindings/ +// And see https://github.com/nlohmann/json/pull/1391 +template = 0> +auto get(const nlohmann::detail::iteration_proxy_value& i) -> decltype(i.value()) +{ + return i.value(); +} +} // namespace detail +} // namespace nlohmann + +// The Addition to the STD Namespace is required to add +// Structured Bindings Support to the iteration_proxy_value class +// For further reference see https://blog.tartanllama.xyz/structured-bindings/ +// And see https://github.com/nlohmann/json/pull/1391 +namespace std +{ +#if defined(__clang__) + // Fix: https://github.com/nlohmann/json/issues/1401 + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wmismatched-tags" +#endif +template +class tuple_size<::nlohmann::detail::iteration_proxy_value> + : public std::integral_constant {}; + +template +class tuple_element> +{ + public: + using type = decltype( + get(std::declval < + ::nlohmann::detail::iteration_proxy_value> ())); +}; +#if defined(__clang__) + #pragma clang diagnostic pop +#endif +} // namespace std + +// #include + +// #include + +// #include + + +namespace nlohmann +{ +namespace detail +{ +////////////////// +// constructors // +////////////////// + +template struct external_constructor; + +template<> +struct external_constructor +{ + template + static void construct(BasicJsonType& j, typename BasicJsonType::boolean_t b) noexcept + { + j.m_type = value_t::boolean; + j.m_value = b; + j.assert_invariant(); + } +}; + +template<> +struct external_constructor +{ + template + static void construct(BasicJsonType& j, const typename BasicJsonType::string_t& s) + { + j.m_type = value_t::string; + j.m_value = s; + j.assert_invariant(); + } + + template + static void construct(BasicJsonType& j, typename BasicJsonType::string_t&& s) + { + j.m_type = value_t::string; + j.m_value = std::move(s); + j.assert_invariant(); + } + + template < typename BasicJsonType, typename CompatibleStringType, + enable_if_t < !std::is_same::value, + int > = 0 > + static void construct(BasicJsonType& j, const CompatibleStringType& str) + { + j.m_type = value_t::string; + j.m_value.string = j.template create(str); + j.assert_invariant(); + } +}; + +template<> +struct external_constructor +{ + template + static void construct(BasicJsonType& j, const typename BasicJsonType::binary_t& b) + { + j.m_type = value_t::binary; + typename BasicJsonType::binary_t value{b}; + j.m_value = value; + j.assert_invariant(); + } + + template + static void construct(BasicJsonType& j, typename BasicJsonType::binary_t&& b) + { + j.m_type = value_t::binary; + typename BasicJsonType::binary_t value{std::move(b)}; + j.m_value = value; + j.assert_invariant(); + } +}; + +template<> +struct external_constructor +{ + template + static void construct(BasicJsonType& j, typename BasicJsonType::number_float_t val) noexcept + { + j.m_type = value_t::number_float; + j.m_value = val; + j.assert_invariant(); + } +}; + +template<> +struct external_constructor +{ + template + static void construct(BasicJsonType& j, typename BasicJsonType::number_unsigned_t val) noexcept + { + j.m_type = value_t::number_unsigned; + j.m_value = val; + j.assert_invariant(); + } +}; + +template<> +struct external_constructor +{ + template + static void construct(BasicJsonType& j, typename BasicJsonType::number_integer_t val) noexcept + { + j.m_type = value_t::number_integer; + j.m_value = val; + j.assert_invariant(); + } +}; + +template<> +struct external_constructor +{ + template + static void construct(BasicJsonType& j, const typename BasicJsonType::array_t& arr) + { + j.m_type = value_t::array; + j.m_value = arr; + j.assert_invariant(); + } + + template + static void construct(BasicJsonType& j, typename BasicJsonType::array_t&& arr) + { + j.m_type = value_t::array; + j.m_value = std::move(arr); + j.assert_invariant(); + } + + template < typename BasicJsonType, typename CompatibleArrayType, + enable_if_t < !std::is_same::value, + int > = 0 > + static void construct(BasicJsonType& j, const CompatibleArrayType& arr) + { + using std::begin; + using std::end; + j.m_type = value_t::array; + j.m_value.array = j.template create(begin(arr), end(arr)); + j.assert_invariant(); + } + + template + static void construct(BasicJsonType& j, const std::vector& arr) + { + j.m_type = value_t::array; + j.m_value = value_t::array; + j.m_value.array->reserve(arr.size()); + for (const bool x : arr) + { + j.m_value.array->push_back(x); + } + j.assert_invariant(); + } + + template::value, int> = 0> + static void construct(BasicJsonType& j, const std::valarray& arr) + { + j.m_type = value_t::array; + j.m_value = value_t::array; + j.m_value.array->resize(arr.size()); + if (arr.size() > 0) + { + std::copy(std::begin(arr), std::end(arr), j.m_value.array->begin()); + } + j.assert_invariant(); + } +}; + +template<> +struct external_constructor +{ + template + static void construct(BasicJsonType& j, const typename BasicJsonType::object_t& obj) + { + j.m_type = value_t::object; + j.m_value = obj; + j.assert_invariant(); + } + + template + static void construct(BasicJsonType& j, typename BasicJsonType::object_t&& obj) + { + j.m_type = value_t::object; + j.m_value = std::move(obj); + j.assert_invariant(); + } + + template < typename BasicJsonType, typename CompatibleObjectType, + enable_if_t < !std::is_same::value, int > = 0 > + static void construct(BasicJsonType& j, const CompatibleObjectType& obj) + { + using std::begin; + using std::end; + + j.m_type = value_t::object; + j.m_value.object = j.template create(begin(obj), end(obj)); + j.assert_invariant(); + } +}; + +///////////// +// to_json // +///////////// + +template::value, int> = 0> +void to_json(BasicJsonType& j, T b) noexcept +{ + external_constructor::construct(j, b); +} + +template::value, int> = 0> +void to_json(BasicJsonType& j, const CompatibleString& s) +{ + external_constructor::construct(j, s); +} + +template +void to_json(BasicJsonType& j, typename BasicJsonType::string_t&& s) +{ + external_constructor::construct(j, std::move(s)); +} + +template::value, int> = 0> +void to_json(BasicJsonType& j, FloatType val) noexcept +{ + external_constructor::construct(j, static_cast(val)); +} + +template::value, int> = 0> +void to_json(BasicJsonType& j, CompatibleNumberUnsignedType val) noexcept +{ + external_constructor::construct(j, static_cast(val)); +} + +template::value, int> = 0> +void to_json(BasicJsonType& j, CompatibleNumberIntegerType val) noexcept +{ + external_constructor::construct(j, static_cast(val)); +} + +template::value, int> = 0> +void to_json(BasicJsonType& j, EnumType e) noexcept +{ + using underlying_type = typename std::underlying_type::type; + external_constructor::construct(j, static_cast(e)); +} + +template +void to_json(BasicJsonType& j, const std::vector& e) +{ + external_constructor::construct(j, e); +} + +template < typename BasicJsonType, typename CompatibleArrayType, + enable_if_t < is_compatible_array_type::value&& + !is_compatible_object_type::value&& + !is_compatible_string_type::value&& + !std::is_same::value&& + !is_basic_json::value, + int > = 0 > +void to_json(BasicJsonType& j, const CompatibleArrayType& arr) +{ + external_constructor::construct(j, arr); +} + +template +void to_json(BasicJsonType& j, const typename BasicJsonType::binary_t& bin) +{ + external_constructor::construct(j, bin); +} + +template::value, int> = 0> +void to_json(BasicJsonType& j, const std::valarray& arr) +{ + external_constructor::construct(j, std::move(arr)); +} + +template +void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr) +{ + external_constructor::construct(j, std::move(arr)); +} + +template < typename BasicJsonType, typename CompatibleObjectType, + enable_if_t < is_compatible_object_type::value&& !is_basic_json::value, int > = 0 > +void to_json(BasicJsonType& j, const CompatibleObjectType& obj) +{ + external_constructor::construct(j, obj); +} + +template +void to_json(BasicJsonType& j, typename BasicJsonType::object_t&& obj) +{ + external_constructor::construct(j, std::move(obj)); +} + +template < + typename BasicJsonType, typename T, std::size_t N, + enable_if_t < !std::is_constructible::value, + int > = 0 > +void to_json(BasicJsonType& j, const T(&arr)[N]) +{ + external_constructor::construct(j, arr); +} + +template < typename BasicJsonType, typename T1, typename T2, enable_if_t < std::is_constructible::value&& std::is_constructible::value, int > = 0 > +void to_json(BasicJsonType& j, const std::pair& p) +{ + j = { p.first, p.second }; +} + +// for https://github.com/nlohmann/json/pull/1134 +template>::value, int> = 0> +void to_json(BasicJsonType& j, const T& b) +{ + j = { {b.key(), b.value()} }; +} + +template +void to_json_tuple_impl(BasicJsonType& j, const Tuple& t, index_sequence /*unused*/) +{ + j = { std::get(t)... }; +} + +template::value, int > = 0> +void to_json(BasicJsonType& j, const T& t) +{ + to_json_tuple_impl(j, t, make_index_sequence::value> {}); +} + +struct to_json_fn +{ + template + auto operator()(BasicJsonType& j, T&& val) const noexcept(noexcept(to_json(j, std::forward(val)))) + -> decltype(to_json(j, std::forward(val)), void()) + { + return to_json(j, std::forward(val)); + } +}; +} // namespace detail + +/// namespace to hold default `to_json` function +namespace +{ +constexpr const auto& to_json = detail::static_const::value; +} // namespace +} // namespace nlohmann + + +namespace nlohmann +{ + +template +struct adl_serializer +{ + /*! + @brief convert a JSON value to any value type + + This function is usually called by the `get()` function of the + @ref basic_json class (either explicit or via conversion operators). + + @param[in] j JSON value to read from + @param[in,out] val value to write to + */ + template + static auto from_json(BasicJsonType&& j, ValueType& val) noexcept( + noexcept(::nlohmann::from_json(std::forward(j), val))) + -> decltype(::nlohmann::from_json(std::forward(j), val), void()) + { + ::nlohmann::from_json(std::forward(j), val); + } + + /*! + @brief convert any value type to a JSON value + + This function is usually called by the constructors of the @ref basic_json + class. + + @param[in,out] j JSON value to write to + @param[in] val value to read from + */ + template + static auto to_json(BasicJsonType& j, ValueType&& val) noexcept( + noexcept(::nlohmann::to_json(j, std::forward(val)))) + -> decltype(::nlohmann::to_json(j, std::forward(val)), void()) + { + ::nlohmann::to_json(j, std::forward(val)); + } +}; + +} // namespace nlohmann + +// #include + + +#include // uint8_t +#include // tie +#include // move + +namespace nlohmann +{ + +/*! +@brief an internal type for a backed binary type + +This type extends the template parameter @a BinaryType provided to `basic_json` +with a subtype used by BSON and MessagePack. This type exists so that the user +does not have to specify a type themselves with a specific naming scheme in +order to override the binary type. + +@tparam BinaryType container to store bytes (`std::vector` by + default) + +@since version 3.8.0 +*/ +template +class byte_container_with_subtype : public BinaryType +{ + public: + /// the type of the underlying container + using container_type = BinaryType; + + byte_container_with_subtype() noexcept(noexcept(container_type())) + : container_type() + {} + + byte_container_with_subtype(const container_type& b) noexcept(noexcept(container_type(b))) + : container_type(b) + {} + + byte_container_with_subtype(container_type&& b) noexcept(noexcept(container_type(std::move(b)))) + : container_type(std::move(b)) + {} + + byte_container_with_subtype(const container_type& b, std::uint8_t subtype) noexcept(noexcept(container_type(b))) + : container_type(b) + , m_subtype(subtype) + , m_has_subtype(true) + {} + + byte_container_with_subtype(container_type&& b, std::uint8_t subtype) noexcept(noexcept(container_type(std::move(b)))) + : container_type(std::move(b)) + , m_subtype(subtype) + , m_has_subtype(true) + {} + + bool operator==(const byte_container_with_subtype& rhs) const + { + return std::tie(static_cast(*this), m_subtype, m_has_subtype) == + std::tie(static_cast(rhs), rhs.m_subtype, rhs.m_has_subtype); + } + + bool operator!=(const byte_container_with_subtype& rhs) const + { + return !(rhs == *this); + } + + /*! + @brief sets the binary subtype + + Sets the binary subtype of the value, also flags a binary JSON value as + having a subtype, which has implications for serialization. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @sa @ref subtype() -- return the binary subtype + @sa @ref clear_subtype() -- clears the binary subtype + @sa @ref has_subtype() -- returns whether or not the binary value has a + subtype + + @since version 3.8.0 + */ + void set_subtype(std::uint8_t subtype) noexcept + { + m_subtype = subtype; + m_has_subtype = true; + } + + /*! + @brief return the binary subtype + + Returns the numerical subtype of the value if it has a subtype. If it does + not have a subtype, this function will return size_t(-1) as a sentinel + value. + + @return the numerical subtype of the binary value + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @sa @ref set_subtype() -- sets the binary subtype + @sa @ref clear_subtype() -- clears the binary subtype + @sa @ref has_subtype() -- returns whether or not the binary value has a + subtype + + @since version 3.8.0 + */ + constexpr std::uint8_t subtype() const noexcept + { + return m_subtype; + } + + /*! + @brief return whether the value has a subtype + + @return whether the value has a subtype + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @sa @ref subtype() -- return the binary subtype + @sa @ref set_subtype() -- sets the binary subtype + @sa @ref clear_subtype() -- clears the binary subtype + + @since version 3.8.0 + */ + constexpr bool has_subtype() const noexcept + { + return m_has_subtype; + } + + /*! + @brief clears the binary subtype + + Clears the binary subtype and flags the value as not having a subtype, which + has implications for serialization; for instance MessagePack will prefer the + bin family over the ext family. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @sa @ref subtype() -- return the binary subtype + @sa @ref set_subtype() -- sets the binary subtype + @sa @ref has_subtype() -- returns whether or not the binary value has a + subtype + + @since version 3.8.0 + */ + void clear_subtype() noexcept + { + m_subtype = 0; + m_has_subtype = false; + } + + private: + std::uint8_t m_subtype = 0; + bool m_has_subtype = false; +}; + +} // namespace nlohmann + +// #include + +// #include + +// #include + +// #include + + +#include // size_t, uint8_t +#include // hash + +namespace nlohmann +{ +namespace detail +{ + +// boost::hash_combine +inline std::size_t combine(std::size_t seed, std::size_t h) noexcept +{ + seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U); + return seed; +} + +/*! +@brief hash a JSON value + +The hash function tries to rely on std::hash where possible. Furthermore, the +type of the JSON value is taken into account to have different hash values for +null, 0, 0U, and false, etc. + +@tparam BasicJsonType basic_json specialization +@param j JSON value to hash +@return hash value of j +*/ +template +std::size_t hash(const BasicJsonType& j) +{ + using string_t = typename BasicJsonType::string_t; + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + + const auto type = static_cast(j.type()); + switch (j.type()) + { + case BasicJsonType::value_t::null: + case BasicJsonType::value_t::discarded: + { + return combine(type, 0); + } + + case BasicJsonType::value_t::object: + { + auto seed = combine(type, j.size()); + for (const auto& element : j.items()) + { + const auto h = std::hash {}(element.key()); + seed = combine(seed, h); + seed = combine(seed, hash(element.value())); + } + return seed; + } + + case BasicJsonType::value_t::array: + { + auto seed = combine(type, j.size()); + for (const auto& element : j) + { + seed = combine(seed, hash(element)); + } + return seed; + } + + case BasicJsonType::value_t::string: + { + const auto h = std::hash {}(j.template get_ref()); + return combine(type, h); + } + + case BasicJsonType::value_t::boolean: + { + const auto h = std::hash {}(j.template get()); + return combine(type, h); + } + + case BasicJsonType::value_t::number_integer: + { + const auto h = std::hash {}(j.template get()); + return combine(type, h); + } + + case nlohmann::detail::value_t::number_unsigned: + { + const auto h = std::hash {}(j.template get()); + return combine(type, h); + } + + case nlohmann::detail::value_t::number_float: + { + const auto h = std::hash {}(j.template get()); + return combine(type, h); + } + + case nlohmann::detail::value_t::binary: + { + auto seed = combine(type, j.get_binary().size()); + const auto h = std::hash {}(j.get_binary().has_subtype()); + seed = combine(seed, h); + seed = combine(seed, j.get_binary().subtype()); + for (const auto byte : j.get_binary()) + { + seed = combine(seed, std::hash {}(byte)); + } + return seed; + } + + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } +} + +} // namespace detail +} // namespace nlohmann + +// #include + + +#include // generate_n +#include // array +#include // ldexp +#include // size_t +#include // uint8_t, uint16_t, uint32_t, uint64_t +#include // snprintf +#include // memcpy +#include // back_inserter +#include // numeric_limits +#include // char_traits, string +#include // make_pair, move + +// #include + +// #include + + +#include // array +#include // size_t +#include //FILE * +#include // strlen +#include // istream +#include // begin, end, iterator_traits, random_access_iterator_tag, distance, next +#include // shared_ptr, make_shared, addressof +#include // accumulate +#include // string, char_traits +#include // enable_if, is_base_of, is_pointer, is_integral, remove_pointer +#include // pair, declval + +// #include + +// #include + + +namespace nlohmann +{ +namespace detail +{ +/// the supported input formats +enum class input_format_t { json, cbor, msgpack, ubjson, bson }; + +//////////////////// +// input adapters // +//////////////////// + +/*! +Input adapter for stdio file access. This adapter read only 1 byte and do not use any + buffer. This adapter is a very low level adapter. +*/ +class file_input_adapter +{ + public: + using char_type = char; + + JSON_HEDLEY_NON_NULL(2) + explicit file_input_adapter(std::FILE* f) noexcept + : m_file(f) + {} + + // make class move-only + file_input_adapter(const file_input_adapter&) = delete; + file_input_adapter(file_input_adapter&&) = default; + file_input_adapter& operator=(const file_input_adapter&) = delete; + file_input_adapter& operator=(file_input_adapter&&) = delete; + + std::char_traits::int_type get_character() noexcept + { + return std::fgetc(m_file); + } + + private: + /// the file pointer to read from + std::FILE* m_file; +}; + + +/*! +Input adapter for a (caching) istream. Ignores a UFT Byte Order Mark at +beginning of input. Does not support changing the underlying std::streambuf +in mid-input. Maintains underlying std::istream and std::streambuf to support +subsequent use of standard std::istream operations to process any input +characters following those used in parsing the JSON input. Clears the +std::istream flags; any input errors (e.g., EOF) will be detected by the first +subsequent call for input from the std::istream. +*/ +class input_stream_adapter +{ + public: + using char_type = char; + + ~input_stream_adapter() + { + // clear stream flags; we use underlying streambuf I/O, do not + // maintain ifstream flags, except eof + if (is != nullptr) + { + is->clear(is->rdstate() & std::ios::eofbit); + } + } + + explicit input_stream_adapter(std::istream& i) + : is(&i), sb(i.rdbuf()) + {} + + // delete because of pointer members + input_stream_adapter(const input_stream_adapter&) = delete; + input_stream_adapter& operator=(input_stream_adapter&) = delete; + input_stream_adapter& operator=(input_stream_adapter&& rhs) = delete; + + input_stream_adapter(input_stream_adapter&& rhs) noexcept : is(rhs.is), sb(rhs.sb) + { + rhs.is = nullptr; + rhs.sb = nullptr; + } + + // std::istream/std::streambuf use std::char_traits::to_int_type, to + // ensure that std::char_traits::eof() and the character 0xFF do not + // end up as the same value, eg. 0xFFFFFFFF. + std::char_traits::int_type get_character() + { + auto res = sb->sbumpc(); + // set eof manually, as we don't use the istream interface. + if (JSON_HEDLEY_UNLIKELY(res == EOF)) + { + is->clear(is->rdstate() | std::ios::eofbit); + } + return res; + } + + private: + /// the associated input stream + std::istream* is = nullptr; + std::streambuf* sb = nullptr; +}; + +// General-purpose iterator-based adapter. It might not be as fast as +// theoretically possible for some containers, but it is extremely versatile. +template +class iterator_input_adapter +{ + public: + using char_type = typename std::iterator_traits::value_type; + + iterator_input_adapter(IteratorType first, IteratorType last) + : current(std::move(first)), end(std::move(last)) {} + + typename std::char_traits::int_type get_character() + { + if (JSON_HEDLEY_LIKELY(current != end)) + { + auto result = std::char_traits::to_int_type(*current); + std::advance(current, 1); + return result; + } + else + { + return std::char_traits::eof(); + } + } + + private: + IteratorType current; + IteratorType end; + + template + friend struct wide_string_input_helper; + + bool empty() const + { + return current == end; + } + +}; + + +template +struct wide_string_input_helper; + +template +struct wide_string_input_helper +{ + // UTF-32 + static void fill_buffer(BaseInputAdapter& input, + std::array::int_type, 4>& utf8_bytes, + size_t& utf8_bytes_index, + size_t& utf8_bytes_filled) + { + utf8_bytes_index = 0; + + if (JSON_HEDLEY_UNLIKELY(input.empty())) + { + utf8_bytes[0] = std::char_traits::eof(); + utf8_bytes_filled = 1; + } + else + { + // get the current character + const auto wc = input.get_character(); + + // UTF-32 to UTF-8 encoding + if (wc < 0x80) + { + utf8_bytes[0] = static_cast::int_type>(wc); + utf8_bytes_filled = 1; + } + else if (wc <= 0x7FF) + { + utf8_bytes[0] = static_cast::int_type>(0xC0u | ((static_cast(wc) >> 6u) & 0x1Fu)); + utf8_bytes[1] = static_cast::int_type>(0x80u | (static_cast(wc) & 0x3Fu)); + utf8_bytes_filled = 2; + } + else if (wc <= 0xFFFF) + { + utf8_bytes[0] = static_cast::int_type>(0xE0u | ((static_cast(wc) >> 12u) & 0x0Fu)); + utf8_bytes[1] = static_cast::int_type>(0x80u | ((static_cast(wc) >> 6u) & 0x3Fu)); + utf8_bytes[2] = static_cast::int_type>(0x80u | (static_cast(wc) & 0x3Fu)); + utf8_bytes_filled = 3; + } + else if (wc <= 0x10FFFF) + { + utf8_bytes[0] = static_cast::int_type>(0xF0u | ((static_cast(wc) >> 18u) & 0x07u)); + utf8_bytes[1] = static_cast::int_type>(0x80u | ((static_cast(wc) >> 12u) & 0x3Fu)); + utf8_bytes[2] = static_cast::int_type>(0x80u | ((static_cast(wc) >> 6u) & 0x3Fu)); + utf8_bytes[3] = static_cast::int_type>(0x80u | (static_cast(wc) & 0x3Fu)); + utf8_bytes_filled = 4; + } + else + { + // unknown character + utf8_bytes[0] = static_cast::int_type>(wc); + utf8_bytes_filled = 1; + } + } + } +}; + +template +struct wide_string_input_helper +{ + // UTF-16 + static void fill_buffer(BaseInputAdapter& input, + std::array::int_type, 4>& utf8_bytes, + size_t& utf8_bytes_index, + size_t& utf8_bytes_filled) + { + utf8_bytes_index = 0; + + if (JSON_HEDLEY_UNLIKELY(input.empty())) + { + utf8_bytes[0] = std::char_traits::eof(); + utf8_bytes_filled = 1; + } + else + { + // get the current character + const auto wc = input.get_character(); + + // UTF-16 to UTF-8 encoding + if (wc < 0x80) + { + utf8_bytes[0] = static_cast::int_type>(wc); + utf8_bytes_filled = 1; + } + else if (wc <= 0x7FF) + { + utf8_bytes[0] = static_cast::int_type>(0xC0u | ((static_cast(wc) >> 6u))); + utf8_bytes[1] = static_cast::int_type>(0x80u | (static_cast(wc) & 0x3Fu)); + utf8_bytes_filled = 2; + } + else if (0xD800 > wc || wc >= 0xE000) + { + utf8_bytes[0] = static_cast::int_type>(0xE0u | ((static_cast(wc) >> 12u))); + utf8_bytes[1] = static_cast::int_type>(0x80u | ((static_cast(wc) >> 6u) & 0x3Fu)); + utf8_bytes[2] = static_cast::int_type>(0x80u | (static_cast(wc) & 0x3Fu)); + utf8_bytes_filled = 3; + } + else + { + if (JSON_HEDLEY_UNLIKELY(!input.empty())) + { + const auto wc2 = static_cast(input.get_character()); + const auto charcode = 0x10000u + (((static_cast(wc) & 0x3FFu) << 10u) | (wc2 & 0x3FFu)); + utf8_bytes[0] = static_cast::int_type>(0xF0u | (charcode >> 18u)); + utf8_bytes[1] = static_cast::int_type>(0x80u | ((charcode >> 12u) & 0x3Fu)); + utf8_bytes[2] = static_cast::int_type>(0x80u | ((charcode >> 6u) & 0x3Fu)); + utf8_bytes[3] = static_cast::int_type>(0x80u | (charcode & 0x3Fu)); + utf8_bytes_filled = 4; + } + else + { + utf8_bytes[0] = static_cast::int_type>(wc); + utf8_bytes_filled = 1; + } + } + } + } +}; + +// Wraps another input apdater to convert wide character types into individual bytes. +template +class wide_string_input_adapter +{ + public: + using char_type = char; + + wide_string_input_adapter(BaseInputAdapter base) + : base_adapter(base) {} + + typename std::char_traits::int_type get_character() noexcept + { + // check if buffer needs to be filled + if (utf8_bytes_index == utf8_bytes_filled) + { + fill_buffer(); + + JSON_ASSERT(utf8_bytes_filled > 0); + JSON_ASSERT(utf8_bytes_index == 0); + } + + // use buffer + JSON_ASSERT(utf8_bytes_filled > 0); + JSON_ASSERT(utf8_bytes_index < utf8_bytes_filled); + return utf8_bytes[utf8_bytes_index++]; + } + + private: + BaseInputAdapter base_adapter; + + template + void fill_buffer() + { + wide_string_input_helper::fill_buffer(base_adapter, utf8_bytes, utf8_bytes_index, utf8_bytes_filled); + } + + /// a buffer for UTF-8 bytes + std::array::int_type, 4> utf8_bytes = {{0, 0, 0, 0}}; + + /// index to the utf8_codes array for the next valid byte + std::size_t utf8_bytes_index = 0; + /// number of valid bytes in the utf8_codes array + std::size_t utf8_bytes_filled = 0; +}; + + +template +struct iterator_input_adapter_factory +{ + using iterator_type = IteratorType; + using char_type = typename std::iterator_traits::value_type; + using adapter_type = iterator_input_adapter; + + static adapter_type create(IteratorType first, IteratorType last) + { + return adapter_type(std::move(first), std::move(last)); + } +}; + +template +struct is_iterator_of_multibyte +{ + using value_type = typename std::iterator_traits::value_type; + enum + { + value = sizeof(value_type) > 1 + }; +}; + +template +struct iterator_input_adapter_factory::value>> +{ + using iterator_type = IteratorType; + using char_type = typename std::iterator_traits::value_type; + using base_adapter_type = iterator_input_adapter; + using adapter_type = wide_string_input_adapter; + + static adapter_type create(IteratorType first, IteratorType last) + { + return adapter_type(base_adapter_type(std::move(first), std::move(last))); + } +}; + +// General purpose iterator-based input +template +typename iterator_input_adapter_factory::adapter_type input_adapter(IteratorType first, IteratorType last) +{ + using factory_type = iterator_input_adapter_factory; + return factory_type::create(first, last); +} + +// Convenience shorthand from container to iterator +template +auto input_adapter(const ContainerType& container) -> decltype(input_adapter(begin(container), end(container))) +{ + // Enable ADL + using std::begin; + using std::end; + + return input_adapter(begin(container), end(container)); +} + +// Special cases with fast paths +inline file_input_adapter input_adapter(std::FILE* file) +{ + return file_input_adapter(file); +} + +inline input_stream_adapter input_adapter(std::istream& stream) +{ + return input_stream_adapter(stream); +} + +inline input_stream_adapter input_adapter(std::istream&& stream) +{ + return input_stream_adapter(stream); +} + +using contiguous_bytes_input_adapter = decltype(input_adapter(std::declval(), std::declval())); + +// Null-delimited strings, and the like. +template < typename CharT, + typename std::enable_if < + std::is_pointer::value&& + !std::is_array::value&& + std::is_integral::type>::value&& + sizeof(typename std::remove_pointer::type) == 1, + int >::type = 0 > +contiguous_bytes_input_adapter input_adapter(CharT b) +{ + auto length = std::strlen(reinterpret_cast(b)); + const auto* ptr = reinterpret_cast(b); + return input_adapter(ptr, ptr + length); +} + +template +auto input_adapter(T (&array)[N]) -> decltype(input_adapter(array, array + N)) +{ + return input_adapter(array, array + N); +} + +// This class only handles inputs of input_buffer_adapter type. +// It's required so that expressions like {ptr, len} can be implicitely casted +// to the correct adapter. +class span_input_adapter +{ + public: + template < typename CharT, + typename std::enable_if < + std::is_pointer::value&& + std::is_integral::type>::value&& + sizeof(typename std::remove_pointer::type) == 1, + int >::type = 0 > + span_input_adapter(CharT b, std::size_t l) + : ia(reinterpret_cast(b), reinterpret_cast(b) + l) {} + + template::iterator_category, std::random_access_iterator_tag>::value, + int>::type = 0> + span_input_adapter(IteratorType first, IteratorType last) + : ia(input_adapter(first, last)) {} + + contiguous_bytes_input_adapter&& get() + { + return std::move(ia); + } + + private: + contiguous_bytes_input_adapter ia; +}; +} // namespace detail +} // namespace nlohmann + +// #include + + +#include +#include // string +#include // move +#include // vector + +// #include + +// #include + + +namespace nlohmann +{ + +/*! +@brief SAX interface + +This class describes the SAX interface used by @ref nlohmann::json::sax_parse. +Each function is called in different situations while the input is parsed. The +boolean return value informs the parser whether to continue processing the +input. +*/ +template +struct json_sax +{ + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using binary_t = typename BasicJsonType::binary_t; + + /*! + @brief a null value was read + @return whether parsing should proceed + */ + virtual bool null() = 0; + + /*! + @brief a boolean value was read + @param[in] val boolean value + @return whether parsing should proceed + */ + virtual bool boolean(bool val) = 0; + + /*! + @brief an integer number was read + @param[in] val integer value + @return whether parsing should proceed + */ + virtual bool number_integer(number_integer_t val) = 0; + + /*! + @brief an unsigned integer number was read + @param[in] val unsigned integer value + @return whether parsing should proceed + */ + virtual bool number_unsigned(number_unsigned_t val) = 0; + + /*! + @brief an floating-point number was read + @param[in] val floating-point value + @param[in] s raw token value + @return whether parsing should proceed + */ + virtual bool number_float(number_float_t val, const string_t& s) = 0; + + /*! + @brief a string was read + @param[in] val string value + @return whether parsing should proceed + @note It is safe to move the passed string. + */ + virtual bool string(string_t& val) = 0; + + /*! + @brief a binary string was read + @param[in] val binary value + @return whether parsing should proceed + @note It is safe to move the passed binary. + */ + virtual bool binary(binary_t& val) = 0; + + /*! + @brief the beginning of an object was read + @param[in] elements number of object elements or -1 if unknown + @return whether parsing should proceed + @note binary formats may report the number of elements + */ + virtual bool start_object(std::size_t elements) = 0; + + /*! + @brief an object key was read + @param[in] val object key + @return whether parsing should proceed + @note It is safe to move the passed string. + */ + virtual bool key(string_t& val) = 0; + + /*! + @brief the end of an object was read + @return whether parsing should proceed + */ + virtual bool end_object() = 0; + + /*! + @brief the beginning of an array was read + @param[in] elements number of array elements or -1 if unknown + @return whether parsing should proceed + @note binary formats may report the number of elements + */ + virtual bool start_array(std::size_t elements) = 0; + + /*! + @brief the end of an array was read + @return whether parsing should proceed + */ + virtual bool end_array() = 0; + + /*! + @brief a parse error occurred + @param[in] position the position in the input where the error occurs + @param[in] last_token the last read token + @param[in] ex an exception object describing the error + @return whether parsing should proceed (must return false) + */ + virtual bool parse_error(std::size_t position, + const std::string& last_token, + const detail::exception& ex) = 0; + + virtual ~json_sax() = default; +}; + + +namespace detail +{ +/*! +@brief SAX implementation to create a JSON value from SAX events + +This class implements the @ref json_sax interface and processes the SAX events +to create a JSON value which makes it basically a DOM parser. The structure or +hierarchy of the JSON value is managed by the stack `ref_stack` which contains +a pointer to the respective array or object for each recursion depth. + +After successful parsing, the value that is passed by reference to the +constructor contains the parsed value. + +@tparam BasicJsonType the JSON type +*/ +template +class json_sax_dom_parser +{ + public: + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using binary_t = typename BasicJsonType::binary_t; + + /*! + @param[in, out] r reference to a JSON value that is manipulated while + parsing + @param[in] allow_exceptions_ whether parse errors yield exceptions + */ + explicit json_sax_dom_parser(BasicJsonType& r, const bool allow_exceptions_ = true) + : root(r), allow_exceptions(allow_exceptions_) + {} + + // make class move-only + json_sax_dom_parser(const json_sax_dom_parser&) = delete; + json_sax_dom_parser(json_sax_dom_parser&&) = default; + json_sax_dom_parser& operator=(const json_sax_dom_parser&) = delete; + json_sax_dom_parser& operator=(json_sax_dom_parser&&) = default; + ~json_sax_dom_parser() = default; + + bool null() + { + handle_value(nullptr); + return true; + } + + bool boolean(bool val) + { + handle_value(val); + return true; + } + + bool number_integer(number_integer_t val) + { + handle_value(val); + return true; + } + + bool number_unsigned(number_unsigned_t val) + { + handle_value(val); + return true; + } + + bool number_float(number_float_t val, const string_t& /*unused*/) + { + handle_value(val); + return true; + } + + bool string(string_t& val) + { + handle_value(val); + return true; + } + + bool binary(binary_t& val) + { + handle_value(std::move(val)); + return true; + } + + bool start_object(std::size_t len) + { + ref_stack.push_back(handle_value(BasicJsonType::value_t::object)); + + if (JSON_HEDLEY_UNLIKELY(len != std::size_t(-1) && len > ref_stack.back()->max_size())) + { + JSON_THROW(out_of_range::create(408, + "excessive object size: " + std::to_string(len))); + } + + return true; + } + + bool key(string_t& val) + { + // add null at given key and store the reference for later + object_element = &(ref_stack.back()->m_value.object->operator[](val)); + return true; + } + + bool end_object() + { + ref_stack.pop_back(); + return true; + } + + bool start_array(std::size_t len) + { + ref_stack.push_back(handle_value(BasicJsonType::value_t::array)); + + if (JSON_HEDLEY_UNLIKELY(len != std::size_t(-1) && len > ref_stack.back()->max_size())) + { + JSON_THROW(out_of_range::create(408, + "excessive array size: " + std::to_string(len))); + } + + return true; + } + + bool end_array() + { + ref_stack.pop_back(); + return true; + } + + template + bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, + const Exception& ex) + { + errored = true; + static_cast(ex); + if (allow_exceptions) + { + JSON_THROW(ex); + } + return false; + } + + constexpr bool is_errored() const + { + return errored; + } + + private: + /*! + @invariant If the ref stack is empty, then the passed value will be the new + root. + @invariant If the ref stack contains a value, then it is an array or an + object to which we can add elements + */ + template + JSON_HEDLEY_RETURNS_NON_NULL + BasicJsonType* handle_value(Value&& v) + { + if (ref_stack.empty()) + { + root = BasicJsonType(std::forward(v)); + return &root; + } + + JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); + + if (ref_stack.back()->is_array()) + { + ref_stack.back()->m_value.array->emplace_back(std::forward(v)); + return &(ref_stack.back()->m_value.array->back()); + } + + JSON_ASSERT(ref_stack.back()->is_object()); + JSON_ASSERT(object_element); + *object_element = BasicJsonType(std::forward(v)); + return object_element; + } + + /// the parsed JSON value + BasicJsonType& root; + /// stack to model hierarchy of values + std::vector ref_stack {}; + /// helper to hold the reference for the next object element + BasicJsonType* object_element = nullptr; + /// whether a syntax error occurred + bool errored = false; + /// whether to throw exceptions in case of errors + const bool allow_exceptions = true; +}; + +template +class json_sax_dom_callback_parser +{ + public: + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using binary_t = typename BasicJsonType::binary_t; + using parser_callback_t = typename BasicJsonType::parser_callback_t; + using parse_event_t = typename BasicJsonType::parse_event_t; + + json_sax_dom_callback_parser(BasicJsonType& r, + const parser_callback_t cb, + const bool allow_exceptions_ = true) + : root(r), callback(cb), allow_exceptions(allow_exceptions_) + { + keep_stack.push_back(true); + } + + // make class move-only + json_sax_dom_callback_parser(const json_sax_dom_callback_parser&) = delete; + json_sax_dom_callback_parser(json_sax_dom_callback_parser&&) = default; + json_sax_dom_callback_parser& operator=(const json_sax_dom_callback_parser&) = delete; + json_sax_dom_callback_parser& operator=(json_sax_dom_callback_parser&&) = default; + ~json_sax_dom_callback_parser() = default; + + bool null() + { + handle_value(nullptr); + return true; + } + + bool boolean(bool val) + { + handle_value(val); + return true; + } + + bool number_integer(number_integer_t val) + { + handle_value(val); + return true; + } + + bool number_unsigned(number_unsigned_t val) + { + handle_value(val); + return true; + } + + bool number_float(number_float_t val, const string_t& /*unused*/) + { + handle_value(val); + return true; + } + + bool string(string_t& val) + { + handle_value(val); + return true; + } + + bool binary(binary_t& val) + { + handle_value(std::move(val)); + return true; + } + + bool start_object(std::size_t len) + { + // check callback for object start + const bool keep = callback(static_cast(ref_stack.size()), parse_event_t::object_start, discarded); + keep_stack.push_back(keep); + + auto val = handle_value(BasicJsonType::value_t::object, true); + ref_stack.push_back(val.second); + + // check object limit + if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != std::size_t(-1) && len > ref_stack.back()->max_size())) + { + JSON_THROW(out_of_range::create(408, "excessive object size: " + std::to_string(len))); + } + + return true; + } + + bool key(string_t& val) + { + BasicJsonType k = BasicJsonType(val); + + // check callback for key + const bool keep = callback(static_cast(ref_stack.size()), parse_event_t::key, k); + key_keep_stack.push_back(keep); + + // add discarded value at given key and store the reference for later + if (keep && ref_stack.back()) + { + object_element = &(ref_stack.back()->m_value.object->operator[](val) = discarded); + } + + return true; + } + + bool end_object() + { + if (ref_stack.back() && !callback(static_cast(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back())) + { + // discard object + *ref_stack.back() = discarded; + } + + JSON_ASSERT(!ref_stack.empty()); + JSON_ASSERT(!keep_stack.empty()); + ref_stack.pop_back(); + keep_stack.pop_back(); + + if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured()) + { + // remove discarded value + for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it) + { + if (it->is_discarded()) + { + ref_stack.back()->erase(it); + break; + } + } + } + + return true; + } + + bool start_array(std::size_t len) + { + const bool keep = callback(static_cast(ref_stack.size()), parse_event_t::array_start, discarded); + keep_stack.push_back(keep); + + auto val = handle_value(BasicJsonType::value_t::array, true); + ref_stack.push_back(val.second); + + // check array limit + if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != std::size_t(-1) && len > ref_stack.back()->max_size())) + { + JSON_THROW(out_of_range::create(408, "excessive array size: " + std::to_string(len))); + } + + return true; + } + + bool end_array() + { + bool keep = true; + + if (ref_stack.back()) + { + keep = callback(static_cast(ref_stack.size()) - 1, parse_event_t::array_end, *ref_stack.back()); + if (!keep) + { + // discard array + *ref_stack.back() = discarded; + } + } + + JSON_ASSERT(!ref_stack.empty()); + JSON_ASSERT(!keep_stack.empty()); + ref_stack.pop_back(); + keep_stack.pop_back(); + + // remove discarded value + if (!keep && !ref_stack.empty() && ref_stack.back()->is_array()) + { + ref_stack.back()->m_value.array->pop_back(); + } + + return true; + } + + template + bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, + const Exception& ex) + { + errored = true; + static_cast(ex); + if (allow_exceptions) + { + JSON_THROW(ex); + } + return false; + } + + constexpr bool is_errored() const + { + return errored; + } + + private: + /*! + @param[in] v value to add to the JSON value we build during parsing + @param[in] skip_callback whether we should skip calling the callback + function; this is required after start_array() and + start_object() SAX events, because otherwise we would call the + callback function with an empty array or object, respectively. + + @invariant If the ref stack is empty, then the passed value will be the new + root. + @invariant If the ref stack contains a value, then it is an array or an + object to which we can add elements + + @return pair of boolean (whether value should be kept) and pointer (to the + passed value in the ref_stack hierarchy; nullptr if not kept) + */ + template + std::pair handle_value(Value&& v, const bool skip_callback = false) + { + JSON_ASSERT(!keep_stack.empty()); + + // do not handle this value if we know it would be added to a discarded + // container + if (!keep_stack.back()) + { + return {false, nullptr}; + } + + // create value + auto value = BasicJsonType(std::forward(v)); + + // check callback + const bool keep = skip_callback || callback(static_cast(ref_stack.size()), parse_event_t::value, value); + + // do not handle this value if we just learnt it shall be discarded + if (!keep) + { + return {false, nullptr}; + } + + if (ref_stack.empty()) + { + root = std::move(value); + return {true, &root}; + } + + // skip this value if we already decided to skip the parent + // (https://github.com/nlohmann/json/issues/971#issuecomment-413678360) + if (!ref_stack.back()) + { + return {false, nullptr}; + } + + // we now only expect arrays and objects + JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object()); + + // array + if (ref_stack.back()->is_array()) + { + ref_stack.back()->m_value.array->push_back(std::move(value)); + return {true, &(ref_stack.back()->m_value.array->back())}; + } + + // object + JSON_ASSERT(ref_stack.back()->is_object()); + // check if we should store an element for the current key + JSON_ASSERT(!key_keep_stack.empty()); + const bool store_element = key_keep_stack.back(); + key_keep_stack.pop_back(); + + if (!store_element) + { + return {false, nullptr}; + } + + JSON_ASSERT(object_element); + *object_element = std::move(value); + return {true, object_element}; + } + + /// the parsed JSON value + BasicJsonType& root; + /// stack to model hierarchy of values + std::vector ref_stack {}; + /// stack to manage which values to keep + std::vector keep_stack {}; + /// stack to manage which object keys to keep + std::vector key_keep_stack {}; + /// helper to hold the reference for the next object element + BasicJsonType* object_element = nullptr; + /// whether a syntax error occurred + bool errored = false; + /// callback function + const parser_callback_t callback = nullptr; + /// whether to throw exceptions in case of errors + const bool allow_exceptions = true; + /// a discarded value for the callback + BasicJsonType discarded = BasicJsonType::value_t::discarded; +}; + +template +class json_sax_acceptor +{ + public: + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using binary_t = typename BasicJsonType::binary_t; + + bool null() + { + return true; + } + + bool boolean(bool /*unused*/) + { + return true; + } + + bool number_integer(number_integer_t /*unused*/) + { + return true; + } + + bool number_unsigned(number_unsigned_t /*unused*/) + { + return true; + } + + bool number_float(number_float_t /*unused*/, const string_t& /*unused*/) + { + return true; + } + + bool string(string_t& /*unused*/) + { + return true; + } + + bool binary(binary_t& /*unused*/) + { + return true; + } + + bool start_object(std::size_t /*unused*/ = std::size_t(-1)) + { + return true; + } + + bool key(string_t& /*unused*/) + { + return true; + } + + bool end_object() + { + return true; + } + + bool start_array(std::size_t /*unused*/ = std::size_t(-1)) + { + return true; + } + + bool end_array() + { + return true; + } + + bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const detail::exception& /*unused*/) + { + return false; + } +}; +} // namespace detail + +} // namespace nlohmann + +// #include + + +#include // array +#include // localeconv +#include // size_t +#include // snprintf +#include // strtof, strtod, strtold, strtoll, strtoull +#include // initializer_list +#include // char_traits, string +#include // move +#include // vector + +// #include + +// #include + +// #include + + +namespace nlohmann +{ +namespace detail +{ +/////////// +// lexer // +/////////// + +template +class lexer_base +{ + public: + /// token types for the parser + enum class token_type + { + uninitialized, ///< indicating the scanner is uninitialized + literal_true, ///< the `true` literal + literal_false, ///< the `false` literal + literal_null, ///< the `null` literal + value_string, ///< a string -- use get_string() for actual value + value_unsigned, ///< an unsigned integer -- use get_number_unsigned() for actual value + value_integer, ///< a signed integer -- use get_number_integer() for actual value + value_float, ///< an floating point number -- use get_number_float() for actual value + begin_array, ///< the character for array begin `[` + begin_object, ///< the character for object begin `{` + end_array, ///< the character for array end `]` + end_object, ///< the character for object end `}` + name_separator, ///< the name separator `:` + value_separator, ///< the value separator `,` + parse_error, ///< indicating a parse error + end_of_input, ///< indicating the end of the input buffer + literal_or_value ///< a literal or the begin of a value (only for diagnostics) + }; + + /// return name of values of type token_type (only used for errors) + JSON_HEDLEY_RETURNS_NON_NULL + JSON_HEDLEY_CONST + static const char* token_type_name(const token_type t) noexcept + { + switch (t) + { + case token_type::uninitialized: + return ""; + case token_type::literal_true: + return "true literal"; + case token_type::literal_false: + return "false literal"; + case token_type::literal_null: + return "null literal"; + case token_type::value_string: + return "string literal"; + case token_type::value_unsigned: + case token_type::value_integer: + case token_type::value_float: + return "number literal"; + case token_type::begin_array: + return "'['"; + case token_type::begin_object: + return "'{'"; + case token_type::end_array: + return "']'"; + case token_type::end_object: + return "'}'"; + case token_type::name_separator: + return "':'"; + case token_type::value_separator: + return "','"; + case token_type::parse_error: + return ""; + case token_type::end_of_input: + return "end of input"; + case token_type::literal_or_value: + return "'[', '{', or a literal"; + // LCOV_EXCL_START + default: // catch non-enum values + return "unknown token"; + // LCOV_EXCL_STOP + } + } +}; +/*! +@brief lexical analysis + +This class organizes the lexical analysis during JSON deserialization. +*/ +template +class lexer : public lexer_base +{ + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using char_type = typename InputAdapterType::char_type; + using char_int_type = typename std::char_traits::int_type; + + public: + using token_type = typename lexer_base::token_type; + + explicit lexer(InputAdapterType&& adapter, bool ignore_comments_ = false) + : ia(std::move(adapter)) + , ignore_comments(ignore_comments_) + , decimal_point_char(static_cast(get_decimal_point())) + {} + + // delete because of pointer members + lexer(const lexer&) = delete; + lexer(lexer&&) = default; + lexer& operator=(lexer&) = delete; + lexer& operator=(lexer&&) = default; + ~lexer() = default; + + private: + ///////////////////// + // locales + ///////////////////// + + /// return the locale-dependent decimal point + JSON_HEDLEY_PURE + static char get_decimal_point() noexcept + { + const auto* loc = localeconv(); + JSON_ASSERT(loc != nullptr); + return (loc->decimal_point == nullptr) ? '.' : *(loc->decimal_point); + } + + ///////////////////// + // scan functions + ///////////////////// + + /*! + @brief get codepoint from 4 hex characters following `\u` + + For input "\u c1 c2 c3 c4" the codepoint is: + (c1 * 0x1000) + (c2 * 0x0100) + (c3 * 0x0010) + c4 + = (c1 << 12) + (c2 << 8) + (c3 << 4) + (c4 << 0) + + Furthermore, the possible characters '0'..'9', 'A'..'F', and 'a'..'f' + must be converted to the integers 0x0..0x9, 0xA..0xF, 0xA..0xF, resp. The + conversion is done by subtracting the offset (0x30, 0x37, and 0x57) + between the ASCII value of the character and the desired integer value. + + @return codepoint (0x0000..0xFFFF) or -1 in case of an error (e.g. EOF or + non-hex character) + */ + int get_codepoint() + { + // this function only makes sense after reading `\u` + JSON_ASSERT(current == 'u'); + int codepoint = 0; + + const auto factors = { 12u, 8u, 4u, 0u }; + for (const auto factor : factors) + { + get(); + + if (current >= '0' && current <= '9') + { + codepoint += static_cast((static_cast(current) - 0x30u) << factor); + } + else if (current >= 'A' && current <= 'F') + { + codepoint += static_cast((static_cast(current) - 0x37u) << factor); + } + else if (current >= 'a' && current <= 'f') + { + codepoint += static_cast((static_cast(current) - 0x57u) << factor); + } + else + { + return -1; + } + } + + JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF); + return codepoint; + } + + /*! + @brief check if the next byte(s) are inside a given range + + Adds the current byte and, for each passed range, reads a new byte and + checks if it is inside the range. If a violation was detected, set up an + error message and return false. Otherwise, return true. + + @param[in] ranges list of integers; interpreted as list of pairs of + inclusive lower and upper bound, respectively + + @pre The passed list @a ranges must have 2, 4, or 6 elements; that is, + 1, 2, or 3 pairs. This precondition is enforced by an assertion. + + @return true if and only if no range violation was detected + */ + bool next_byte_in_range(std::initializer_list ranges) + { + JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6); + add(current); + + for (auto range = ranges.begin(); range != ranges.end(); ++range) + { + get(); + if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range))) + { + add(current); + } + else + { + error_message = "invalid string: ill-formed UTF-8 byte"; + return false; + } + } + + return true; + } + + /*! + @brief scan a string literal + + This function scans a string according to Sect. 7 of RFC 7159. While + scanning, bytes are escaped and copied into buffer token_buffer. Then the + function returns successfully, token_buffer is *not* null-terminated (as it + may contain \0 bytes), and token_buffer.size() is the number of bytes in the + string. + + @return token_type::value_string if string could be successfully scanned, + token_type::parse_error otherwise + + @note In case of errors, variable error_message contains a textual + description. + */ + token_type scan_string() + { + // reset token_buffer (ignore opening quote) + reset(); + + // we entered the function by reading an open quote + JSON_ASSERT(current == '\"'); + + while (true) + { + // get next character + switch (get()) + { + // end of file while parsing string + case std::char_traits::eof(): + { + error_message = "invalid string: missing closing quote"; + return token_type::parse_error; + } + + // closing quote + case '\"': + { + return token_type::value_string; + } + + // escapes + case '\\': + { + switch (get()) + { + // quotation mark + case '\"': + add('\"'); + break; + // reverse solidus + case '\\': + add('\\'); + break; + // solidus + case '/': + add('/'); + break; + // backspace + case 'b': + add('\b'); + break; + // form feed + case 'f': + add('\f'); + break; + // line feed + case 'n': + add('\n'); + break; + // carriage return + case 'r': + add('\r'); + break; + // tab + case 't': + add('\t'); + break; + + // unicode escapes + case 'u': + { + const int codepoint1 = get_codepoint(); + int codepoint = codepoint1; // start with codepoint1 + + if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1)) + { + error_message = "invalid string: '\\u' must be followed by 4 hex digits"; + return token_type::parse_error; + } + + // check if code point is a high surrogate + if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF) + { + // expect next \uxxxx entry + if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u')) + { + const int codepoint2 = get_codepoint(); + + if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1)) + { + error_message = "invalid string: '\\u' must be followed by 4 hex digits"; + return token_type::parse_error; + } + + // check if codepoint2 is a low surrogate + if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF)) + { + // overwrite codepoint + codepoint = static_cast( + // high surrogate occupies the most significant 22 bits + (static_cast(codepoint1) << 10u) + // low surrogate occupies the least significant 15 bits + + static_cast(codepoint2) + // there is still the 0xD800, 0xDC00 and 0x10000 noise + // in the result so we have to subtract with: + // (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00 + - 0x35FDC00u); + } + else + { + error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF"; + return token_type::parse_error; + } + } + else + { + error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF"; + return token_type::parse_error; + } + } + else + { + if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF)) + { + error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF"; + return token_type::parse_error; + } + } + + // result of the above calculation yields a proper codepoint + JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF); + + // translate codepoint into bytes + if (codepoint < 0x80) + { + // 1-byte characters: 0xxxxxxx (ASCII) + add(static_cast(codepoint)); + } + else if (codepoint <= 0x7FF) + { + // 2-byte characters: 110xxxxx 10xxxxxx + add(static_cast(0xC0u | (static_cast(codepoint) >> 6u))); + add(static_cast(0x80u | (static_cast(codepoint) & 0x3Fu))); + } + else if (codepoint <= 0xFFFF) + { + // 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx + add(static_cast(0xE0u | (static_cast(codepoint) >> 12u))); + add(static_cast(0x80u | ((static_cast(codepoint) >> 6u) & 0x3Fu))); + add(static_cast(0x80u | (static_cast(codepoint) & 0x3Fu))); + } + else + { + // 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx + add(static_cast(0xF0u | (static_cast(codepoint) >> 18u))); + add(static_cast(0x80u | ((static_cast(codepoint) >> 12u) & 0x3Fu))); + add(static_cast(0x80u | ((static_cast(codepoint) >> 6u) & 0x3Fu))); + add(static_cast(0x80u | (static_cast(codepoint) & 0x3Fu))); + } + + break; + } + + // other characters after escape + default: + error_message = "invalid string: forbidden character after backslash"; + return token_type::parse_error; + } + + break; + } + + // invalid control characters + case 0x00: + { + error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000"; + return token_type::parse_error; + } + + case 0x01: + { + error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001"; + return token_type::parse_error; + } + + case 0x02: + { + error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002"; + return token_type::parse_error; + } + + case 0x03: + { + error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003"; + return token_type::parse_error; + } + + case 0x04: + { + error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004"; + return token_type::parse_error; + } + + case 0x05: + { + error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005"; + return token_type::parse_error; + } + + case 0x06: + { + error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006"; + return token_type::parse_error; + } + + case 0x07: + { + error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007"; + return token_type::parse_error; + } + + case 0x08: + { + error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b"; + return token_type::parse_error; + } + + case 0x09: + { + error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t"; + return token_type::parse_error; + } + + case 0x0A: + { + error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n"; + return token_type::parse_error; + } + + case 0x0B: + { + error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B"; + return token_type::parse_error; + } + + case 0x0C: + { + error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f"; + return token_type::parse_error; + } + + case 0x0D: + { + error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r"; + return token_type::parse_error; + } + + case 0x0E: + { + error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E"; + return token_type::parse_error; + } + + case 0x0F: + { + error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F"; + return token_type::parse_error; + } + + case 0x10: + { + error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010"; + return token_type::parse_error; + } + + case 0x11: + { + error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011"; + return token_type::parse_error; + } + + case 0x12: + { + error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012"; + return token_type::parse_error; + } + + case 0x13: + { + error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013"; + return token_type::parse_error; + } + + case 0x14: + { + error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014"; + return token_type::parse_error; + } + + case 0x15: + { + error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015"; + return token_type::parse_error; + } + + case 0x16: + { + error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016"; + return token_type::parse_error; + } + + case 0x17: + { + error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017"; + return token_type::parse_error; + } + + case 0x18: + { + error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018"; + return token_type::parse_error; + } + + case 0x19: + { + error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019"; + return token_type::parse_error; + } + + case 0x1A: + { + error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A"; + return token_type::parse_error; + } + + case 0x1B: + { + error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B"; + return token_type::parse_error; + } + + case 0x1C: + { + error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C"; + return token_type::parse_error; + } + + case 0x1D: + { + error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D"; + return token_type::parse_error; + } + + case 0x1E: + { + error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E"; + return token_type::parse_error; + } + + case 0x1F: + { + error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F"; + return token_type::parse_error; + } + + // U+0020..U+007F (except U+0022 (quote) and U+005C (backspace)) + case 0x20: + case 0x21: + case 0x23: + case 0x24: + case 0x25: + case 0x26: + case 0x27: + case 0x28: + case 0x29: + case 0x2A: + case 0x2B: + case 0x2C: + case 0x2D: + case 0x2E: + case 0x2F: + case 0x30: + case 0x31: + case 0x32: + case 0x33: + case 0x34: + case 0x35: + case 0x36: + case 0x37: + case 0x38: + case 0x39: + case 0x3A: + case 0x3B: + case 0x3C: + case 0x3D: + case 0x3E: + case 0x3F: + case 0x40: + case 0x41: + case 0x42: + case 0x43: + case 0x44: + case 0x45: + case 0x46: + case 0x47: + case 0x48: + case 0x49: + case 0x4A: + case 0x4B: + case 0x4C: + case 0x4D: + case 0x4E: + case 0x4F: + case 0x50: + case 0x51: + case 0x52: + case 0x53: + case 0x54: + case 0x55: + case 0x56: + case 0x57: + case 0x58: + case 0x59: + case 0x5A: + case 0x5B: + case 0x5D: + case 0x5E: + case 0x5F: + case 0x60: + case 0x61: + case 0x62: + case 0x63: + case 0x64: + case 0x65: + case 0x66: + case 0x67: + case 0x68: + case 0x69: + case 0x6A: + case 0x6B: + case 0x6C: + case 0x6D: + case 0x6E: + case 0x6F: + case 0x70: + case 0x71: + case 0x72: + case 0x73: + case 0x74: + case 0x75: + case 0x76: + case 0x77: + case 0x78: + case 0x79: + case 0x7A: + case 0x7B: + case 0x7C: + case 0x7D: + case 0x7E: + case 0x7F: + { + add(current); + break; + } + + // U+0080..U+07FF: bytes C2..DF 80..BF + case 0xC2: + case 0xC3: + case 0xC4: + case 0xC5: + case 0xC6: + case 0xC7: + case 0xC8: + case 0xC9: + case 0xCA: + case 0xCB: + case 0xCC: + case 0xCD: + case 0xCE: + case 0xCF: + case 0xD0: + case 0xD1: + case 0xD2: + case 0xD3: + case 0xD4: + case 0xD5: + case 0xD6: + case 0xD7: + case 0xD8: + case 0xD9: + case 0xDA: + case 0xDB: + case 0xDC: + case 0xDD: + case 0xDE: + case 0xDF: + { + if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF}))) + { + return token_type::parse_error; + } + break; + } + + // U+0800..U+0FFF: bytes E0 A0..BF 80..BF + case 0xE0: + { + if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF})))) + { + return token_type::parse_error; + } + break; + } + + // U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF + // U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF + case 0xE1: + case 0xE2: + case 0xE3: + case 0xE4: + case 0xE5: + case 0xE6: + case 0xE7: + case 0xE8: + case 0xE9: + case 0xEA: + case 0xEB: + case 0xEC: + case 0xEE: + case 0xEF: + { + if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF})))) + { + return token_type::parse_error; + } + break; + } + + // U+D000..U+D7FF: bytes ED 80..9F 80..BF + case 0xED: + { + if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF})))) + { + return token_type::parse_error; + } + break; + } + + // U+10000..U+3FFFF F0 90..BF 80..BF 80..BF + case 0xF0: + { + if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF})))) + { + return token_type::parse_error; + } + break; + } + + // U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF + case 0xF1: + case 0xF2: + case 0xF3: + { + if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF})))) + { + return token_type::parse_error; + } + break; + } + + // U+100000..U+10FFFF F4 80..8F 80..BF 80..BF + case 0xF4: + { + if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF})))) + { + return token_type::parse_error; + } + break; + } + + // remaining bytes (80..C1 and F5..FF) are ill-formed + default: + { + error_message = "invalid string: ill-formed UTF-8 byte"; + return token_type::parse_error; + } + } + } + } + + /*! + * @brief scan a comment + * @return whether comment could be scanned successfully + */ + bool scan_comment() + { + switch (get()) + { + // single-line comments skip input until a newline or EOF is read + case '/': + { + while (true) + { + switch (get()) + { + case '\n': + case '\r': + case std::char_traits::eof(): + case '\0': + return true; + + default: + break; + } + } + } + + // multi-line comments skip input until */ is read + case '*': + { + while (true) + { + switch (get()) + { + case std::char_traits::eof(): + case '\0': + { + error_message = "invalid comment; missing closing '*/'"; + return false; + } + + case '*': + { + switch (get()) + { + case '/': + return true; + + default: + { + unget(); + continue; + } + } + } + + default: + continue; + } + } + } + + // unexpected character after reading '/' + default: + { + error_message = "invalid comment; expecting '/' or '*' after '/'"; + return false; + } + } + } + + JSON_HEDLEY_NON_NULL(2) + static void strtof(float& f, const char* str, char** endptr) noexcept + { + f = std::strtof(str, endptr); + } + + JSON_HEDLEY_NON_NULL(2) + static void strtof(double& f, const char* str, char** endptr) noexcept + { + f = std::strtod(str, endptr); + } + + JSON_HEDLEY_NON_NULL(2) + static void strtof(long double& f, const char* str, char** endptr) noexcept + { + f = std::strtold(str, endptr); + } + + /*! + @brief scan a number literal + + This function scans a string according to Sect. 6 of RFC 7159. + + The function is realized with a deterministic finite state machine derived + from the grammar described in RFC 7159. Starting in state "init", the + input is read and used to determined the next state. Only state "done" + accepts the number. State "error" is a trap state to model errors. In the + table below, "anything" means any character but the ones listed before. + + state | 0 | 1-9 | e E | + | - | . | anything + ---------|----------|----------|----------|---------|---------|----------|----------- + init | zero | any1 | [error] | [error] | minus | [error] | [error] + minus | zero | any1 | [error] | [error] | [error] | [error] | [error] + zero | done | done | exponent | done | done | decimal1 | done + any1 | any1 | any1 | exponent | done | done | decimal1 | done + decimal1 | decimal2 | decimal2 | [error] | [error] | [error] | [error] | [error] + decimal2 | decimal2 | decimal2 | exponent | done | done | done | done + exponent | any2 | any2 | [error] | sign | sign | [error] | [error] + sign | any2 | any2 | [error] | [error] | [error] | [error] | [error] + any2 | any2 | any2 | done | done | done | done | done + + The state machine is realized with one label per state (prefixed with + "scan_number_") and `goto` statements between them. The state machine + contains cycles, but any cycle can be left when EOF is read. Therefore, + the function is guaranteed to terminate. + + During scanning, the read bytes are stored in token_buffer. This string is + then converted to a signed integer, an unsigned integer, or a + floating-point number. + + @return token_type::value_unsigned, token_type::value_integer, or + token_type::value_float if number could be successfully scanned, + token_type::parse_error otherwise + + @note The scanner is independent of the current locale. Internally, the + locale's decimal point is used instead of `.` to work with the + locale-dependent converters. + */ + token_type scan_number() // lgtm [cpp/use-of-goto] + { + // reset token_buffer to store the number's bytes + reset(); + + // the type of the parsed number; initially set to unsigned; will be + // changed if minus sign, decimal point or exponent is read + token_type number_type = token_type::value_unsigned; + + // state (init): we just found out we need to scan a number + switch (current) + { + case '-': + { + add(current); + goto scan_number_minus; + } + + case '0': + { + add(current); + goto scan_number_zero; + } + + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + { + add(current); + goto scan_number_any1; + } + + // all other characters are rejected outside scan_number() + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } + +scan_number_minus: + // state: we just parsed a leading minus sign + number_type = token_type::value_integer; + switch (get()) + { + case '0': + { + add(current); + goto scan_number_zero; + } + + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + { + add(current); + goto scan_number_any1; + } + + default: + { + error_message = "invalid number; expected digit after '-'"; + return token_type::parse_error; + } + } + +scan_number_zero: + // state: we just parse a zero (maybe with a leading minus sign) + switch (get()) + { + case '.': + { + add(decimal_point_char); + goto scan_number_decimal1; + } + + case 'e': + case 'E': + { + add(current); + goto scan_number_exponent; + } + + default: + goto scan_number_done; + } + +scan_number_any1: + // state: we just parsed a number 0-9 (maybe with a leading minus sign) + switch (get()) + { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + { + add(current); + goto scan_number_any1; + } + + case '.': + { + add(decimal_point_char); + goto scan_number_decimal1; + } + + case 'e': + case 'E': + { + add(current); + goto scan_number_exponent; + } + + default: + goto scan_number_done; + } + +scan_number_decimal1: + // state: we just parsed a decimal point + number_type = token_type::value_float; + switch (get()) + { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + { + add(current); + goto scan_number_decimal2; + } + + default: + { + error_message = "invalid number; expected digit after '.'"; + return token_type::parse_error; + } + } + +scan_number_decimal2: + // we just parsed at least one number after a decimal point + switch (get()) + { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + { + add(current); + goto scan_number_decimal2; + } + + case 'e': + case 'E': + { + add(current); + goto scan_number_exponent; + } + + default: + goto scan_number_done; + } + +scan_number_exponent: + // we just parsed an exponent + number_type = token_type::value_float; + switch (get()) + { + case '+': + case '-': + { + add(current); + goto scan_number_sign; + } + + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + { + add(current); + goto scan_number_any2; + } + + default: + { + error_message = + "invalid number; expected '+', '-', or digit after exponent"; + return token_type::parse_error; + } + } + +scan_number_sign: + // we just parsed an exponent sign + switch (get()) + { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + { + add(current); + goto scan_number_any2; + } + + default: + { + error_message = "invalid number; expected digit after exponent sign"; + return token_type::parse_error; + } + } + +scan_number_any2: + // we just parsed a number after the exponent or exponent sign + switch (get()) + { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + { + add(current); + goto scan_number_any2; + } + + default: + goto scan_number_done; + } + +scan_number_done: + // unget the character after the number (we only read it to know that + // we are done scanning a number) + unget(); + + char* endptr = nullptr; + errno = 0; + + // try to parse integers first and fall back to floats + if (number_type == token_type::value_unsigned) + { + const auto x = std::strtoull(token_buffer.data(), &endptr, 10); + + // we checked the number format before + JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); + + if (errno == 0) + { + value_unsigned = static_cast(x); + if (value_unsigned == x) + { + return token_type::value_unsigned; + } + } + } + else if (number_type == token_type::value_integer) + { + const auto x = std::strtoll(token_buffer.data(), &endptr, 10); + + // we checked the number format before + JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); + + if (errno == 0) + { + value_integer = static_cast(x); + if (value_integer == x) + { + return token_type::value_integer; + } + } + } + + // this code is reached if we parse a floating-point number or if an + // integer conversion above failed + strtof(value_float, token_buffer.data(), &endptr); + + // we checked the number format before + JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size()); + + return token_type::value_float; + } + + /*! + @param[in] literal_text the literal text to expect + @param[in] length the length of the passed literal text + @param[in] return_type the token type to return on success + */ + JSON_HEDLEY_NON_NULL(2) + token_type scan_literal(const char_type* literal_text, const std::size_t length, + token_type return_type) + { + JSON_ASSERT(std::char_traits::to_char_type(current) == literal_text[0]); + for (std::size_t i = 1; i < length; ++i) + { + if (JSON_HEDLEY_UNLIKELY(std::char_traits::to_char_type(get()) != literal_text[i])) + { + error_message = "invalid literal"; + return token_type::parse_error; + } + } + return return_type; + } + + ///////////////////// + // input management + ///////////////////// + + /// reset token_buffer; current character is beginning of token + void reset() noexcept + { + token_buffer.clear(); + token_string.clear(); + token_string.push_back(std::char_traits::to_char_type(current)); + } + + /* + @brief get next character from the input + + This function provides the interface to the used input adapter. It does + not throw in case the input reached EOF, but returns a + `std::char_traits::eof()` in that case. Stores the scanned characters + for use in error messages. + + @return character read from the input + */ + char_int_type get() + { + ++position.chars_read_total; + ++position.chars_read_current_line; + + if (next_unget) + { + // just reset the next_unget variable and work with current + next_unget = false; + } + else + { + current = ia.get_character(); + } + + if (JSON_HEDLEY_LIKELY(current != std::char_traits::eof())) + { + token_string.push_back(std::char_traits::to_char_type(current)); + } + + if (current == '\n') + { + ++position.lines_read; + position.chars_read_current_line = 0; + } + + return current; + } + + /*! + @brief unget current character (read it again on next get) + + We implement unget by setting variable next_unget to true. The input is not + changed - we just simulate ungetting by modifying chars_read_total, + chars_read_current_line, and token_string. The next call to get() will + behave as if the unget character is read again. + */ + void unget() + { + next_unget = true; + + --position.chars_read_total; + + // in case we "unget" a newline, we have to also decrement the lines_read + if (position.chars_read_current_line == 0) + { + if (position.lines_read > 0) + { + --position.lines_read; + } + } + else + { + --position.chars_read_current_line; + } + + if (JSON_HEDLEY_LIKELY(current != std::char_traits::eof())) + { + JSON_ASSERT(!token_string.empty()); + token_string.pop_back(); + } + } + + /// add a character to token_buffer + void add(char_int_type c) + { + token_buffer.push_back(static_cast(c)); + } + + public: + ///////////////////// + // value getters + ///////////////////// + + /// return integer value + constexpr number_integer_t get_number_integer() const noexcept + { + return value_integer; + } + + /// return unsigned integer value + constexpr number_unsigned_t get_number_unsigned() const noexcept + { + return value_unsigned; + } + + /// return floating-point value + constexpr number_float_t get_number_float() const noexcept + { + return value_float; + } + + /// return current string value (implicitly resets the token; useful only once) + string_t& get_string() + { + return token_buffer; + } + + ///////////////////// + // diagnostics + ///////////////////// + + /// return position of last read token + constexpr position_t get_position() const noexcept + { + return position; + } + + /// return the last read token (for errors only). Will never contain EOF + /// (an arbitrary value that is not a valid char value, often -1), because + /// 255 may legitimately occur. May contain NUL, which should be escaped. + std::string get_token_string() const + { + // escape control characters + std::string result; + for (const auto c : token_string) + { + if (static_cast(c) <= '\x1F') + { + // escape control characters + std::array cs{{}}; + (std::snprintf)(cs.data(), cs.size(), "", static_cast(c)); + result += cs.data(); + } + else + { + // add character as is + result.push_back(static_cast(c)); + } + } + + return result; + } + + /// return syntax error message + JSON_HEDLEY_RETURNS_NON_NULL + constexpr const char* get_error_message() const noexcept + { + return error_message; + } + + ///////////////////// + // actual scanner + ///////////////////// + + /*! + @brief skip the UTF-8 byte order mark + @return true iff there is no BOM or the correct BOM has been skipped + */ + bool skip_bom() + { + if (get() == 0xEF) + { + // check if we completely parse the BOM + return get() == 0xBB && get() == 0xBF; + } + + // the first character is not the beginning of the BOM; unget it to + // process is later + unget(); + return true; + } + + void skip_whitespace() + { + do + { + get(); + } + while (current == ' ' || current == '\t' || current == '\n' || current == '\r'); + } + + token_type scan() + { + // initially, skip the BOM + if (position.chars_read_total == 0 && !skip_bom()) + { + error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given"; + return token_type::parse_error; + } + + // read next character and ignore whitespace + skip_whitespace(); + + // ignore comments + while (ignore_comments && current == '/') + { + if (!scan_comment()) + { + return token_type::parse_error; + } + + // skip following whitespace + skip_whitespace(); + } + + switch (current) + { + // structural characters + case '[': + return token_type::begin_array; + case ']': + return token_type::end_array; + case '{': + return token_type::begin_object; + case '}': + return token_type::end_object; + case ':': + return token_type::name_separator; + case ',': + return token_type::value_separator; + + // literals + case 't': + { + std::array true_literal = {{'t', 'r', 'u', 'e'}}; + return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true); + } + case 'f': + { + std::array false_literal = {{'f', 'a', 'l', 's', 'e'}}; + return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false); + } + case 'n': + { + std::array null_literal = {{'n', 'u', 'l', 'l'}}; + return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null); + } + + // string + case '\"': + return scan_string(); + + // number + case '-': + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + return scan_number(); + + // end of input (the null byte is needed when parsing from + // string literals) + case '\0': + case std::char_traits::eof(): + return token_type::end_of_input; + + // error + default: + error_message = "invalid literal"; + return token_type::parse_error; + } + } + + private: + /// input adapter + InputAdapterType ia; + + /// whether comments should be ignored (true) or signaled as errors (false) + const bool ignore_comments = false; + + /// the current character + char_int_type current = std::char_traits::eof(); + + /// whether the next get() call should just return current + bool next_unget = false; + + /// the start position of the current token + position_t position {}; + + /// raw input token string (for error messages) + std::vector token_string {}; + + /// buffer for variable-length tokens (numbers, strings) + string_t token_buffer {}; + + /// a description of occurred lexer errors + const char* error_message = ""; + + // number values + number_integer_t value_integer = 0; + number_unsigned_t value_unsigned = 0; + number_float_t value_float = 0; + + /// the decimal point + const char_int_type decimal_point_char = '.'; +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + + +#include // size_t +#include // declval +#include // string + +// #include + +// #include + + +namespace nlohmann +{ +namespace detail +{ +template +using null_function_t = decltype(std::declval().null()); + +template +using boolean_function_t = + decltype(std::declval().boolean(std::declval())); + +template +using number_integer_function_t = + decltype(std::declval().number_integer(std::declval())); + +template +using number_unsigned_function_t = + decltype(std::declval().number_unsigned(std::declval())); + +template +using number_float_function_t = decltype(std::declval().number_float( + std::declval(), std::declval())); + +template +using string_function_t = + decltype(std::declval().string(std::declval())); + +template +using binary_function_t = + decltype(std::declval().binary(std::declval())); + +template +using start_object_function_t = + decltype(std::declval().start_object(std::declval())); + +template +using key_function_t = + decltype(std::declval().key(std::declval())); + +template +using end_object_function_t = decltype(std::declval().end_object()); + +template +using start_array_function_t = + decltype(std::declval().start_array(std::declval())); + +template +using end_array_function_t = decltype(std::declval().end_array()); + +template +using parse_error_function_t = decltype(std::declval().parse_error( + std::declval(), std::declval(), + std::declval())); + +template +struct is_sax +{ + private: + static_assert(is_basic_json::value, + "BasicJsonType must be of type basic_json<...>"); + + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using binary_t = typename BasicJsonType::binary_t; + using exception_t = typename BasicJsonType::exception; + + public: + static constexpr bool value = + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value && + is_detected_exact::value; +}; + +template +struct is_sax_static_asserts +{ + private: + static_assert(is_basic_json::value, + "BasicJsonType must be of type basic_json<...>"); + + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using binary_t = typename BasicJsonType::binary_t; + using exception_t = typename BasicJsonType::exception; + + public: + static_assert(is_detected_exact::value, + "Missing/invalid function: bool null()"); + static_assert(is_detected_exact::value, + "Missing/invalid function: bool boolean(bool)"); + static_assert(is_detected_exact::value, + "Missing/invalid function: bool boolean(bool)"); + static_assert( + is_detected_exact::value, + "Missing/invalid function: bool number_integer(number_integer_t)"); + static_assert( + is_detected_exact::value, + "Missing/invalid function: bool number_unsigned(number_unsigned_t)"); + static_assert(is_detected_exact::value, + "Missing/invalid function: bool number_float(number_float_t, const string_t&)"); + static_assert( + is_detected_exact::value, + "Missing/invalid function: bool string(string_t&)"); + static_assert( + is_detected_exact::value, + "Missing/invalid function: bool binary(binary_t&)"); + static_assert(is_detected_exact::value, + "Missing/invalid function: bool start_object(std::size_t)"); + static_assert(is_detected_exact::value, + "Missing/invalid function: bool key(string_t&)"); + static_assert(is_detected_exact::value, + "Missing/invalid function: bool end_object()"); + static_assert(is_detected_exact::value, + "Missing/invalid function: bool start_array(std::size_t)"); + static_assert(is_detected_exact::value, + "Missing/invalid function: bool end_array()"); + static_assert( + is_detected_exact::value, + "Missing/invalid function: bool parse_error(std::size_t, const " + "std::string&, const exception&)"); +}; +} // namespace detail +} // namespace nlohmann + +// #include + + +namespace nlohmann +{ +namespace detail +{ + +/// how to treat CBOR tags +enum class cbor_tag_handler_t +{ + error, ///< throw a parse_error exception in case of a tag + ignore ///< ignore tags +}; + +/*! +@brief determine system byte order + +@return true if and only if system's byte order is little endian + +@note from https://stackoverflow.com/a/1001328/266378 +*/ +static inline bool little_endianess(int num = 1) noexcept +{ + return *reinterpret_cast(&num) == 1; +} + + +/////////////////// +// binary reader // +/////////////////// + +/*! +@brief deserialization of CBOR, MessagePack, and UBJSON values +*/ +template> +class binary_reader +{ + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using binary_t = typename BasicJsonType::binary_t; + using json_sax_t = SAX; + using char_type = typename InputAdapterType::char_type; + using char_int_type = typename std::char_traits::int_type; + + public: + /*! + @brief create a binary reader + + @param[in] adapter input adapter to read from + */ + explicit binary_reader(InputAdapterType&& adapter) : ia(std::move(adapter)) + { + (void)detail::is_sax_static_asserts {}; + } + + // make class move-only + binary_reader(const binary_reader&) = delete; + binary_reader(binary_reader&&) = default; + binary_reader& operator=(const binary_reader&) = delete; + binary_reader& operator=(binary_reader&&) = default; + ~binary_reader() = default; + + /*! + @param[in] format the binary format to parse + @param[in] sax_ a SAX event processor + @param[in] strict whether to expect the input to be consumed completed + @param[in] tag_handler how to treat CBOR tags + + @return + */ + JSON_HEDLEY_NON_NULL(3) + bool sax_parse(const input_format_t format, + json_sax_t* sax_, + const bool strict = true, + const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error) + { + sax = sax_; + bool result = false; + + switch (format) + { + case input_format_t::bson: + result = parse_bson_internal(); + break; + + case input_format_t::cbor: + result = parse_cbor_internal(true, tag_handler); + break; + + case input_format_t::msgpack: + result = parse_msgpack_internal(); + break; + + case input_format_t::ubjson: + result = parse_ubjson_internal(); + break; + + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } + + // strict mode: next byte must be EOF + if (result && strict) + { + if (format == input_format_t::ubjson) + { + get_ignore_noop(); + } + else + { + get(); + } + + if (JSON_HEDLEY_UNLIKELY(current != std::char_traits::eof())) + { + return sax->parse_error(chars_read, get_token_string(), + parse_error::create(110, chars_read, exception_message(format, "expected end of input; last byte: 0x" + get_token_string(), "value"))); + } + } + + return result; + } + + private: + ////////// + // BSON // + ////////// + + /*! + @brief Reads in a BSON-object and passes it to the SAX-parser. + @return whether a valid BSON-value was passed to the SAX parser + */ + bool parse_bson_internal() + { + std::int32_t document_size{}; + get_number(input_format_t::bson, document_size); + + if (JSON_HEDLEY_UNLIKELY(!sax->start_object(std::size_t(-1)))) + { + return false; + } + + if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/false))) + { + return false; + } + + return sax->end_object(); + } + + /*! + @brief Parses a C-style string from the BSON input. + @param[in, out] result A reference to the string variable where the read + string is to be stored. + @return `true` if the \x00-byte indicating the end of the string was + encountered before the EOF; false` indicates an unexpected EOF. + */ + bool get_bson_cstr(string_t& result) + { + auto out = std::back_inserter(result); + while (true) + { + get(); + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "cstring"))) + { + return false; + } + if (current == 0x00) + { + return true; + } + *out++ = static_cast(current); + } + } + + /*! + @brief Parses a zero-terminated string of length @a len from the BSON + input. + @param[in] len The length (including the zero-byte at the end) of the + string to be read. + @param[in, out] result A reference to the string variable where the read + string is to be stored. + @tparam NumberType The type of the length @a len + @pre len >= 1 + @return `true` if the string was successfully parsed + */ + template + bool get_bson_string(const NumberType len, string_t& result) + { + if (JSON_HEDLEY_UNLIKELY(len < 1)) + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "string length must be at least 1, is " + std::to_string(len), "string"))); + } + + return get_string(input_format_t::bson, len - static_cast(1), result) && get() != std::char_traits::eof(); + } + + /*! + @brief Parses a byte array input of length @a len from the BSON input. + @param[in] len The length of the byte array to be read. + @param[in, out] result A reference to the binary variable where the read + array is to be stored. + @tparam NumberType The type of the length @a len + @pre len >= 0 + @return `true` if the byte array was successfully parsed + */ + template + bool get_bson_binary(const NumberType len, binary_t& result) + { + if (JSON_HEDLEY_UNLIKELY(len < 0)) + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::bson, "byte array length cannot be negative, is " + std::to_string(len), "binary"))); + } + + // All BSON binary values have a subtype + std::uint8_t subtype{}; + get_number(input_format_t::bson, subtype); + result.set_subtype(subtype); + + return get_binary(input_format_t::bson, len, result); + } + + /*! + @brief Read a BSON document element of the given @a element_type. + @param[in] element_type The BSON element type, c.f. http://bsonspec.org/spec.html + @param[in] element_type_parse_position The position in the input stream, + where the `element_type` was read. + @warning Not all BSON element types are supported yet. An unsupported + @a element_type will give rise to a parse_error.114: + Unsupported BSON record type 0x... + @return whether a valid BSON-object/array was passed to the SAX parser + */ + bool parse_bson_element_internal(const char_int_type element_type, + const std::size_t element_type_parse_position) + { + switch (element_type) + { + case 0x01: // double + { + double number{}; + return get_number(input_format_t::bson, number) && sax->number_float(static_cast(number), ""); + } + + case 0x02: // string + { + std::int32_t len{}; + string_t value; + return get_number(input_format_t::bson, len) && get_bson_string(len, value) && sax->string(value); + } + + case 0x03: // object + { + return parse_bson_internal(); + } + + case 0x04: // array + { + return parse_bson_array(); + } + + case 0x05: // binary + { + std::int32_t len{}; + binary_t value; + return get_number(input_format_t::bson, len) && get_bson_binary(len, value) && sax->binary(value); + } + + case 0x08: // boolean + { + return sax->boolean(get() != 0); + } + + case 0x0A: // null + { + return sax->null(); + } + + case 0x10: // int32 + { + std::int32_t value{}; + return get_number(input_format_t::bson, value) && sax->number_integer(value); + } + + case 0x12: // int64 + { + std::int64_t value{}; + return get_number(input_format_t::bson, value) && sax->number_integer(value); + } + + default: // anything else not supported (yet) + { + std::array cr{{}}; + (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast(element_type)); + return sax->parse_error(element_type_parse_position, std::string(cr.data()), parse_error::create(114, element_type_parse_position, "Unsupported BSON record type 0x" + std::string(cr.data()))); + } + } + } + + /*! + @brief Read a BSON element list (as specified in the BSON-spec) + + The same binary layout is used for objects and arrays, hence it must be + indicated with the argument @a is_array which one is expected + (true --> array, false --> object). + + @param[in] is_array Determines if the element list being read is to be + treated as an object (@a is_array == false), or as an + array (@a is_array == true). + @return whether a valid BSON-object/array was passed to the SAX parser + */ + bool parse_bson_element_list(const bool is_array) + { + string_t key; + + while (auto element_type = get()) + { + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::bson, "element list"))) + { + return false; + } + + const std::size_t element_type_parse_position = chars_read; + if (JSON_HEDLEY_UNLIKELY(!get_bson_cstr(key))) + { + return false; + } + + if (!is_array && !sax->key(key)) + { + return false; + } + + if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_internal(element_type, element_type_parse_position))) + { + return false; + } + + // get_bson_cstr only appends + key.clear(); + } + + return true; + } + + /*! + @brief Reads an array from the BSON input and passes it to the SAX-parser. + @return whether a valid BSON-array was passed to the SAX parser + */ + bool parse_bson_array() + { + std::int32_t document_size{}; + get_number(input_format_t::bson, document_size); + + if (JSON_HEDLEY_UNLIKELY(!sax->start_array(std::size_t(-1)))) + { + return false; + } + + if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_list(/*is_array*/true))) + { + return false; + } + + return sax->end_array(); + } + + ////////// + // CBOR // + ////////// + + /*! + @param[in] get_char whether a new character should be retrieved from the + input (true) or whether the last read character should + be considered instead (false) + @param[in] tag_handler how CBOR tags should be treated + + @return whether a valid CBOR value was passed to the SAX parser + */ + bool parse_cbor_internal(const bool get_char, + const cbor_tag_handler_t tag_handler) + { + switch (get_char ? get() : current) + { + // EOF + case std::char_traits::eof(): + return unexpect_eof(input_format_t::cbor, "value"); + + // Integer 0x00..0x17 (0..23) + case 0x00: + case 0x01: + case 0x02: + case 0x03: + case 0x04: + case 0x05: + case 0x06: + case 0x07: + case 0x08: + case 0x09: + case 0x0A: + case 0x0B: + case 0x0C: + case 0x0D: + case 0x0E: + case 0x0F: + case 0x10: + case 0x11: + case 0x12: + case 0x13: + case 0x14: + case 0x15: + case 0x16: + case 0x17: + return sax->number_unsigned(static_cast(current)); + + case 0x18: // Unsigned integer (one-byte uint8_t follows) + { + std::uint8_t number{}; + return get_number(input_format_t::cbor, number) && sax->number_unsigned(number); + } + + case 0x19: // Unsigned integer (two-byte uint16_t follows) + { + std::uint16_t number{}; + return get_number(input_format_t::cbor, number) && sax->number_unsigned(number); + } + + case 0x1A: // Unsigned integer (four-byte uint32_t follows) + { + std::uint32_t number{}; + return get_number(input_format_t::cbor, number) && sax->number_unsigned(number); + } + + case 0x1B: // Unsigned integer (eight-byte uint64_t follows) + { + std::uint64_t number{}; + return get_number(input_format_t::cbor, number) && sax->number_unsigned(number); + } + + // Negative integer -1-0x00..-1-0x17 (-1..-24) + case 0x20: + case 0x21: + case 0x22: + case 0x23: + case 0x24: + case 0x25: + case 0x26: + case 0x27: + case 0x28: + case 0x29: + case 0x2A: + case 0x2B: + case 0x2C: + case 0x2D: + case 0x2E: + case 0x2F: + case 0x30: + case 0x31: + case 0x32: + case 0x33: + case 0x34: + case 0x35: + case 0x36: + case 0x37: + return sax->number_integer(static_cast(0x20 - 1 - current)); + + case 0x38: // Negative integer (one-byte uint8_t follows) + { + std::uint8_t number{}; + return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast(-1) - number); + } + + case 0x39: // Negative integer -1-n (two-byte uint16_t follows) + { + std::uint16_t number{}; + return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast(-1) - number); + } + + case 0x3A: // Negative integer -1-n (four-byte uint32_t follows) + { + std::uint32_t number{}; + return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast(-1) - number); + } + + case 0x3B: // Negative integer -1-n (eight-byte uint64_t follows) + { + std::uint64_t number{}; + return get_number(input_format_t::cbor, number) && sax->number_integer(static_cast(-1) + - static_cast(number)); + } + + // Binary data (0x00..0x17 bytes follow) + case 0x40: + case 0x41: + case 0x42: + case 0x43: + case 0x44: + case 0x45: + case 0x46: + case 0x47: + case 0x48: + case 0x49: + case 0x4A: + case 0x4B: + case 0x4C: + case 0x4D: + case 0x4E: + case 0x4F: + case 0x50: + case 0x51: + case 0x52: + case 0x53: + case 0x54: + case 0x55: + case 0x56: + case 0x57: + case 0x58: // Binary data (one-byte uint8_t for n follows) + case 0x59: // Binary data (two-byte uint16_t for n follow) + case 0x5A: // Binary data (four-byte uint32_t for n follow) + case 0x5B: // Binary data (eight-byte uint64_t for n follow) + case 0x5F: // Binary data (indefinite length) + { + binary_t b; + return get_cbor_binary(b) && sax->binary(b); + } + + // UTF-8 string (0x00..0x17 bytes follow) + case 0x60: + case 0x61: + case 0x62: + case 0x63: + case 0x64: + case 0x65: + case 0x66: + case 0x67: + case 0x68: + case 0x69: + case 0x6A: + case 0x6B: + case 0x6C: + case 0x6D: + case 0x6E: + case 0x6F: + case 0x70: + case 0x71: + case 0x72: + case 0x73: + case 0x74: + case 0x75: + case 0x76: + case 0x77: + case 0x78: // UTF-8 string (one-byte uint8_t for n follows) + case 0x79: // UTF-8 string (two-byte uint16_t for n follow) + case 0x7A: // UTF-8 string (four-byte uint32_t for n follow) + case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow) + case 0x7F: // UTF-8 string (indefinite length) + { + string_t s; + return get_cbor_string(s) && sax->string(s); + } + + // array (0x00..0x17 data items follow) + case 0x80: + case 0x81: + case 0x82: + case 0x83: + case 0x84: + case 0x85: + case 0x86: + case 0x87: + case 0x88: + case 0x89: + case 0x8A: + case 0x8B: + case 0x8C: + case 0x8D: + case 0x8E: + case 0x8F: + case 0x90: + case 0x91: + case 0x92: + case 0x93: + case 0x94: + case 0x95: + case 0x96: + case 0x97: + return get_cbor_array(static_cast(static_cast(current) & 0x1Fu), tag_handler); + + case 0x98: // array (one-byte uint8_t for n follows) + { + std::uint8_t len{}; + return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast(len), tag_handler); + } + + case 0x99: // array (two-byte uint16_t for n follow) + { + std::uint16_t len{}; + return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast(len), tag_handler); + } + + case 0x9A: // array (four-byte uint32_t for n follow) + { + std::uint32_t len{}; + return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast(len), tag_handler); + } + + case 0x9B: // array (eight-byte uint64_t for n follow) + { + std::uint64_t len{}; + return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast(len), tag_handler); + } + + case 0x9F: // array (indefinite length) + return get_cbor_array(std::size_t(-1), tag_handler); + + // map (0x00..0x17 pairs of data items follow) + case 0xA0: + case 0xA1: + case 0xA2: + case 0xA3: + case 0xA4: + case 0xA5: + case 0xA6: + case 0xA7: + case 0xA8: + case 0xA9: + case 0xAA: + case 0xAB: + case 0xAC: + case 0xAD: + case 0xAE: + case 0xAF: + case 0xB0: + case 0xB1: + case 0xB2: + case 0xB3: + case 0xB4: + case 0xB5: + case 0xB6: + case 0xB7: + return get_cbor_object(static_cast(static_cast(current) & 0x1Fu), tag_handler); + + case 0xB8: // map (one-byte uint8_t for n follows) + { + std::uint8_t len{}; + return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast(len), tag_handler); + } + + case 0xB9: // map (two-byte uint16_t for n follow) + { + std::uint16_t len{}; + return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast(len), tag_handler); + } + + case 0xBA: // map (four-byte uint32_t for n follow) + { + std::uint32_t len{}; + return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast(len), tag_handler); + } + + case 0xBB: // map (eight-byte uint64_t for n follow) + { + std::uint64_t len{}; + return get_number(input_format_t::cbor, len) && get_cbor_object(static_cast(len), tag_handler); + } + + case 0xBF: // map (indefinite length) + return get_cbor_object(std::size_t(-1), tag_handler); + + case 0xC6: // tagged item + case 0xC7: + case 0xC8: + case 0xC9: + case 0xCA: + case 0xCB: + case 0xCC: + case 0xCD: + case 0xCE: + case 0xCF: + case 0xD0: + case 0xD1: + case 0xD2: + case 0xD3: + case 0xD4: + case 0xD8: // tagged item (1 bytes follow) + case 0xD9: // tagged item (2 bytes follow) + case 0xDA: // tagged item (4 bytes follow) + case 0xDB: // tagged item (8 bytes follow) + { + switch (tag_handler) + { + case cbor_tag_handler_t::error: + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"))); + } + + case cbor_tag_handler_t::ignore: + { + switch (current) + { + case 0xD8: + { + std::uint8_t len{}; + get_number(input_format_t::cbor, len); + break; + } + case 0xD9: + { + std::uint16_t len{}; + get_number(input_format_t::cbor, len); + break; + } + case 0xDA: + { + std::uint32_t len{}; + get_number(input_format_t::cbor, len); + break; + } + case 0xDB: + { + std::uint64_t len{}; + get_number(input_format_t::cbor, len); + break; + } + default: + break; + } + return parse_cbor_internal(true, tag_handler); + } + + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } + } + + case 0xF4: // false + return sax->boolean(false); + + case 0xF5: // true + return sax->boolean(true); + + case 0xF6: // null + return sax->null(); + + case 0xF9: // Half-Precision Float (two-byte IEEE 754) + { + const auto byte1_raw = get(); + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number"))) + { + return false; + } + const auto byte2_raw = get(); + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "number"))) + { + return false; + } + + const auto byte1 = static_cast(byte1_raw); + const auto byte2 = static_cast(byte2_raw); + + // code from RFC 7049, Appendix D, Figure 3: + // As half-precision floating-point numbers were only added + // to IEEE 754 in 2008, today's programming platforms often + // still only have limited support for them. It is very + // easy to include at least decoding support for them even + // without such support. An example of a small decoder for + // half-precision floating-point numbers in the C language + // is shown in Fig. 3. + const auto half = static_cast((byte1 << 8u) + byte2); + const double val = [&half] + { + const int exp = (half >> 10u) & 0x1Fu; + const unsigned int mant = half & 0x3FFu; + JSON_ASSERT(0 <= exp&& exp <= 32); + JSON_ASSERT(mant <= 1024); + switch (exp) + { + case 0: + return std::ldexp(mant, -24); + case 31: + return (mant == 0) + ? std::numeric_limits::infinity() + : std::numeric_limits::quiet_NaN(); + default: + return std::ldexp(mant + 1024, exp - 25); + } + }(); + return sax->number_float((half & 0x8000u) != 0 + ? static_cast(-val) + : static_cast(val), ""); + } + + case 0xFA: // Single-Precision Float (four-byte IEEE 754) + { + float number{}; + return get_number(input_format_t::cbor, number) && sax->number_float(static_cast(number), ""); + } + + case 0xFB: // Double-Precision Float (eight-byte IEEE 754) + { + double number{}; + return get_number(input_format_t::cbor, number) && sax->number_float(static_cast(number), ""); + } + + default: // anything else (0xFF is handled inside the other types) + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::cbor, "invalid byte: 0x" + last_token, "value"))); + } + } + } + + /*! + @brief reads a CBOR string + + This function first reads starting bytes to determine the expected + string length and then copies this number of bytes into a string. + Additionally, CBOR's strings with indefinite lengths are supported. + + @param[out] result created string + + @return whether string creation completed + */ + bool get_cbor_string(string_t& result) + { + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "string"))) + { + return false; + } + + switch (current) + { + // UTF-8 string (0x00..0x17 bytes follow) + case 0x60: + case 0x61: + case 0x62: + case 0x63: + case 0x64: + case 0x65: + case 0x66: + case 0x67: + case 0x68: + case 0x69: + case 0x6A: + case 0x6B: + case 0x6C: + case 0x6D: + case 0x6E: + case 0x6F: + case 0x70: + case 0x71: + case 0x72: + case 0x73: + case 0x74: + case 0x75: + case 0x76: + case 0x77: + { + return get_string(input_format_t::cbor, static_cast(current) & 0x1Fu, result); + } + + case 0x78: // UTF-8 string (one-byte uint8_t for n follows) + { + std::uint8_t len{}; + return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result); + } + + case 0x79: // UTF-8 string (two-byte uint16_t for n follow) + { + std::uint16_t len{}; + return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result); + } + + case 0x7A: // UTF-8 string (four-byte uint32_t for n follow) + { + std::uint32_t len{}; + return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result); + } + + case 0x7B: // UTF-8 string (eight-byte uint64_t for n follow) + { + std::uint64_t len{}; + return get_number(input_format_t::cbor, len) && get_string(input_format_t::cbor, len, result); + } + + case 0x7F: // UTF-8 string (indefinite length) + { + while (get() != 0xFF) + { + string_t chunk; + if (!get_cbor_string(chunk)) + { + return false; + } + result.append(chunk); + } + return true; + } + + default: + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x60-0x7B) or indefinite string type (0x7F); last byte: 0x" + last_token, "string"))); + } + } + } + + /*! + @brief reads a CBOR byte array + + This function first reads starting bytes to determine the expected + byte array length and then copies this number of bytes into the byte array. + Additionally, CBOR's byte arrays with indefinite lengths are supported. + + @param[out] result created byte array + + @return whether byte array creation completed + */ + bool get_cbor_binary(binary_t& result) + { + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::cbor, "binary"))) + { + return false; + } + + switch (current) + { + // Binary data (0x00..0x17 bytes follow) + case 0x40: + case 0x41: + case 0x42: + case 0x43: + case 0x44: + case 0x45: + case 0x46: + case 0x47: + case 0x48: + case 0x49: + case 0x4A: + case 0x4B: + case 0x4C: + case 0x4D: + case 0x4E: + case 0x4F: + case 0x50: + case 0x51: + case 0x52: + case 0x53: + case 0x54: + case 0x55: + case 0x56: + case 0x57: + { + return get_binary(input_format_t::cbor, static_cast(current) & 0x1Fu, result); + } + + case 0x58: // Binary data (one-byte uint8_t for n follows) + { + std::uint8_t len{}; + return get_number(input_format_t::cbor, len) && + get_binary(input_format_t::cbor, len, result); + } + + case 0x59: // Binary data (two-byte uint16_t for n follow) + { + std::uint16_t len{}; + return get_number(input_format_t::cbor, len) && + get_binary(input_format_t::cbor, len, result); + } + + case 0x5A: // Binary data (four-byte uint32_t for n follow) + { + std::uint32_t len{}; + return get_number(input_format_t::cbor, len) && + get_binary(input_format_t::cbor, len, result); + } + + case 0x5B: // Binary data (eight-byte uint64_t for n follow) + { + std::uint64_t len{}; + return get_number(input_format_t::cbor, len) && + get_binary(input_format_t::cbor, len, result); + } + + case 0x5F: // Binary data (indefinite length) + { + while (get() != 0xFF) + { + binary_t chunk; + if (!get_cbor_binary(chunk)) + { + return false; + } + result.insert(result.end(), chunk.begin(), chunk.end()); + } + return true; + } + + default: + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::cbor, "expected length specification (0x40-0x5B) or indefinite binary array type (0x5F); last byte: 0x" + last_token, "binary"))); + } + } + } + + /*! + @param[in] len the length of the array or std::size_t(-1) for an + array of indefinite size + @param[in] tag_handler how CBOR tags should be treated + @return whether array creation completed + */ + bool get_cbor_array(const std::size_t len, + const cbor_tag_handler_t tag_handler) + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) + { + return false; + } + + if (len != std::size_t(-1)) + { + for (std::size_t i = 0; i < len; ++i) + { + if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler))) + { + return false; + } + } + } + else + { + while (get() != 0xFF) + { + if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(false, tag_handler))) + { + return false; + } + } + } + + return sax->end_array(); + } + + /*! + @param[in] len the length of the object or std::size_t(-1) for an + object of indefinite size + @param[in] tag_handler how CBOR tags should be treated + @return whether object creation completed + */ + bool get_cbor_object(const std::size_t len, + const cbor_tag_handler_t tag_handler) + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len))) + { + return false; + } + + string_t key; + if (len != std::size_t(-1)) + { + for (std::size_t i = 0; i < len; ++i) + { + get(); + if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key))) + { + return false; + } + + if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler))) + { + return false; + } + key.clear(); + } + } + else + { + while (get() != 0xFF) + { + if (JSON_HEDLEY_UNLIKELY(!get_cbor_string(key) || !sax->key(key))) + { + return false; + } + + if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler))) + { + return false; + } + key.clear(); + } + } + + return sax->end_object(); + } + + ///////////// + // MsgPack // + ///////////// + + /*! + @return whether a valid MessagePack value was passed to the SAX parser + */ + bool parse_msgpack_internal() + { + switch (get()) + { + // EOF + case std::char_traits::eof(): + return unexpect_eof(input_format_t::msgpack, "value"); + + // positive fixint + case 0x00: + case 0x01: + case 0x02: + case 0x03: + case 0x04: + case 0x05: + case 0x06: + case 0x07: + case 0x08: + case 0x09: + case 0x0A: + case 0x0B: + case 0x0C: + case 0x0D: + case 0x0E: + case 0x0F: + case 0x10: + case 0x11: + case 0x12: + case 0x13: + case 0x14: + case 0x15: + case 0x16: + case 0x17: + case 0x18: + case 0x19: + case 0x1A: + case 0x1B: + case 0x1C: + case 0x1D: + case 0x1E: + case 0x1F: + case 0x20: + case 0x21: + case 0x22: + case 0x23: + case 0x24: + case 0x25: + case 0x26: + case 0x27: + case 0x28: + case 0x29: + case 0x2A: + case 0x2B: + case 0x2C: + case 0x2D: + case 0x2E: + case 0x2F: + case 0x30: + case 0x31: + case 0x32: + case 0x33: + case 0x34: + case 0x35: + case 0x36: + case 0x37: + case 0x38: + case 0x39: + case 0x3A: + case 0x3B: + case 0x3C: + case 0x3D: + case 0x3E: + case 0x3F: + case 0x40: + case 0x41: + case 0x42: + case 0x43: + case 0x44: + case 0x45: + case 0x46: + case 0x47: + case 0x48: + case 0x49: + case 0x4A: + case 0x4B: + case 0x4C: + case 0x4D: + case 0x4E: + case 0x4F: + case 0x50: + case 0x51: + case 0x52: + case 0x53: + case 0x54: + case 0x55: + case 0x56: + case 0x57: + case 0x58: + case 0x59: + case 0x5A: + case 0x5B: + case 0x5C: + case 0x5D: + case 0x5E: + case 0x5F: + case 0x60: + case 0x61: + case 0x62: + case 0x63: + case 0x64: + case 0x65: + case 0x66: + case 0x67: + case 0x68: + case 0x69: + case 0x6A: + case 0x6B: + case 0x6C: + case 0x6D: + case 0x6E: + case 0x6F: + case 0x70: + case 0x71: + case 0x72: + case 0x73: + case 0x74: + case 0x75: + case 0x76: + case 0x77: + case 0x78: + case 0x79: + case 0x7A: + case 0x7B: + case 0x7C: + case 0x7D: + case 0x7E: + case 0x7F: + return sax->number_unsigned(static_cast(current)); + + // fixmap + case 0x80: + case 0x81: + case 0x82: + case 0x83: + case 0x84: + case 0x85: + case 0x86: + case 0x87: + case 0x88: + case 0x89: + case 0x8A: + case 0x8B: + case 0x8C: + case 0x8D: + case 0x8E: + case 0x8F: + return get_msgpack_object(static_cast(static_cast(current) & 0x0Fu)); + + // fixarray + case 0x90: + case 0x91: + case 0x92: + case 0x93: + case 0x94: + case 0x95: + case 0x96: + case 0x97: + case 0x98: + case 0x99: + case 0x9A: + case 0x9B: + case 0x9C: + case 0x9D: + case 0x9E: + case 0x9F: + return get_msgpack_array(static_cast(static_cast(current) & 0x0Fu)); + + // fixstr + case 0xA0: + case 0xA1: + case 0xA2: + case 0xA3: + case 0xA4: + case 0xA5: + case 0xA6: + case 0xA7: + case 0xA8: + case 0xA9: + case 0xAA: + case 0xAB: + case 0xAC: + case 0xAD: + case 0xAE: + case 0xAF: + case 0xB0: + case 0xB1: + case 0xB2: + case 0xB3: + case 0xB4: + case 0xB5: + case 0xB6: + case 0xB7: + case 0xB8: + case 0xB9: + case 0xBA: + case 0xBB: + case 0xBC: + case 0xBD: + case 0xBE: + case 0xBF: + case 0xD9: // str 8 + case 0xDA: // str 16 + case 0xDB: // str 32 + { + string_t s; + return get_msgpack_string(s) && sax->string(s); + } + + case 0xC0: // nil + return sax->null(); + + case 0xC2: // false + return sax->boolean(false); + + case 0xC3: // true + return sax->boolean(true); + + case 0xC4: // bin 8 + case 0xC5: // bin 16 + case 0xC6: // bin 32 + case 0xC7: // ext 8 + case 0xC8: // ext 16 + case 0xC9: // ext 32 + case 0xD4: // fixext 1 + case 0xD5: // fixext 2 + case 0xD6: // fixext 4 + case 0xD7: // fixext 8 + case 0xD8: // fixext 16 + { + binary_t b; + return get_msgpack_binary(b) && sax->binary(b); + } + + case 0xCA: // float 32 + { + float number{}; + return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast(number), ""); + } + + case 0xCB: // float 64 + { + double number{}; + return get_number(input_format_t::msgpack, number) && sax->number_float(static_cast(number), ""); + } + + case 0xCC: // uint 8 + { + std::uint8_t number{}; + return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number); + } + + case 0xCD: // uint 16 + { + std::uint16_t number{}; + return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number); + } + + case 0xCE: // uint 32 + { + std::uint32_t number{}; + return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number); + } + + case 0xCF: // uint 64 + { + std::uint64_t number{}; + return get_number(input_format_t::msgpack, number) && sax->number_unsigned(number); + } + + case 0xD0: // int 8 + { + std::int8_t number{}; + return get_number(input_format_t::msgpack, number) && sax->number_integer(number); + } + + case 0xD1: // int 16 + { + std::int16_t number{}; + return get_number(input_format_t::msgpack, number) && sax->number_integer(number); + } + + case 0xD2: // int 32 + { + std::int32_t number{}; + return get_number(input_format_t::msgpack, number) && sax->number_integer(number); + } + + case 0xD3: // int 64 + { + std::int64_t number{}; + return get_number(input_format_t::msgpack, number) && sax->number_integer(number); + } + + case 0xDC: // array 16 + { + std::uint16_t len{}; + return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast(len)); + } + + case 0xDD: // array 32 + { + std::uint32_t len{}; + return get_number(input_format_t::msgpack, len) && get_msgpack_array(static_cast(len)); + } + + case 0xDE: // map 16 + { + std::uint16_t len{}; + return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast(len)); + } + + case 0xDF: // map 32 + { + std::uint32_t len{}; + return get_number(input_format_t::msgpack, len) && get_msgpack_object(static_cast(len)); + } + + // negative fixint + case 0xE0: + case 0xE1: + case 0xE2: + case 0xE3: + case 0xE4: + case 0xE5: + case 0xE6: + case 0xE7: + case 0xE8: + case 0xE9: + case 0xEA: + case 0xEB: + case 0xEC: + case 0xED: + case 0xEE: + case 0xEF: + case 0xF0: + case 0xF1: + case 0xF2: + case 0xF3: + case 0xF4: + case 0xF5: + case 0xF6: + case 0xF7: + case 0xF8: + case 0xF9: + case 0xFA: + case 0xFB: + case 0xFC: + case 0xFD: + case 0xFE: + case 0xFF: + return sax->number_integer(static_cast(current)); + + default: // anything else + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::msgpack, "invalid byte: 0x" + last_token, "value"))); + } + } + } + + /*! + @brief reads a MessagePack string + + This function first reads starting bytes to determine the expected + string length and then copies this number of bytes into a string. + + @param[out] result created string + + @return whether string creation completed + */ + bool get_msgpack_string(string_t& result) + { + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::msgpack, "string"))) + { + return false; + } + + switch (current) + { + // fixstr + case 0xA0: + case 0xA1: + case 0xA2: + case 0xA3: + case 0xA4: + case 0xA5: + case 0xA6: + case 0xA7: + case 0xA8: + case 0xA9: + case 0xAA: + case 0xAB: + case 0xAC: + case 0xAD: + case 0xAE: + case 0xAF: + case 0xB0: + case 0xB1: + case 0xB2: + case 0xB3: + case 0xB4: + case 0xB5: + case 0xB6: + case 0xB7: + case 0xB8: + case 0xB9: + case 0xBA: + case 0xBB: + case 0xBC: + case 0xBD: + case 0xBE: + case 0xBF: + { + return get_string(input_format_t::msgpack, static_cast(current) & 0x1Fu, result); + } + + case 0xD9: // str 8 + { + std::uint8_t len{}; + return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result); + } + + case 0xDA: // str 16 + { + std::uint16_t len{}; + return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result); + } + + case 0xDB: // str 32 + { + std::uint32_t len{}; + return get_number(input_format_t::msgpack, len) && get_string(input_format_t::msgpack, len, result); + } + + default: + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::msgpack, "expected length specification (0xA0-0xBF, 0xD9-0xDB); last byte: 0x" + last_token, "string"))); + } + } + } + + /*! + @brief reads a MessagePack byte array + + This function first reads starting bytes to determine the expected + byte array length and then copies this number of bytes into a byte array. + + @param[out] result created byte array + + @return whether byte array creation completed + */ + bool get_msgpack_binary(binary_t& result) + { + // helper function to set the subtype + auto assign_and_return_true = [&result](std::int8_t subtype) + { + result.set_subtype(static_cast(subtype)); + return true; + }; + + switch (current) + { + case 0xC4: // bin 8 + { + std::uint8_t len{}; + return get_number(input_format_t::msgpack, len) && + get_binary(input_format_t::msgpack, len, result); + } + + case 0xC5: // bin 16 + { + std::uint16_t len{}; + return get_number(input_format_t::msgpack, len) && + get_binary(input_format_t::msgpack, len, result); + } + + case 0xC6: // bin 32 + { + std::uint32_t len{}; + return get_number(input_format_t::msgpack, len) && + get_binary(input_format_t::msgpack, len, result); + } + + case 0xC7: // ext 8 + { + std::uint8_t len{}; + std::int8_t subtype{}; + return get_number(input_format_t::msgpack, len) && + get_number(input_format_t::msgpack, subtype) && + get_binary(input_format_t::msgpack, len, result) && + assign_and_return_true(subtype); + } + + case 0xC8: // ext 16 + { + std::uint16_t len{}; + std::int8_t subtype{}; + return get_number(input_format_t::msgpack, len) && + get_number(input_format_t::msgpack, subtype) && + get_binary(input_format_t::msgpack, len, result) && + assign_and_return_true(subtype); + } + + case 0xC9: // ext 32 + { + std::uint32_t len{}; + std::int8_t subtype{}; + return get_number(input_format_t::msgpack, len) && + get_number(input_format_t::msgpack, subtype) && + get_binary(input_format_t::msgpack, len, result) && + assign_and_return_true(subtype); + } + + case 0xD4: // fixext 1 + { + std::int8_t subtype{}; + return get_number(input_format_t::msgpack, subtype) && + get_binary(input_format_t::msgpack, 1, result) && + assign_and_return_true(subtype); + } + + case 0xD5: // fixext 2 + { + std::int8_t subtype{}; + return get_number(input_format_t::msgpack, subtype) && + get_binary(input_format_t::msgpack, 2, result) && + assign_and_return_true(subtype); + } + + case 0xD6: // fixext 4 + { + std::int8_t subtype{}; + return get_number(input_format_t::msgpack, subtype) && + get_binary(input_format_t::msgpack, 4, result) && + assign_and_return_true(subtype); + } + + case 0xD7: // fixext 8 + { + std::int8_t subtype{}; + return get_number(input_format_t::msgpack, subtype) && + get_binary(input_format_t::msgpack, 8, result) && + assign_and_return_true(subtype); + } + + case 0xD8: // fixext 16 + { + std::int8_t subtype{}; + return get_number(input_format_t::msgpack, subtype) && + get_binary(input_format_t::msgpack, 16, result) && + assign_and_return_true(subtype); + } + + default: // LCOV_EXCL_LINE + return false; // LCOV_EXCL_LINE + } + } + + /*! + @param[in] len the length of the array + @return whether array creation completed + */ + bool get_msgpack_array(const std::size_t len) + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) + { + return false; + } + + for (std::size_t i = 0; i < len; ++i) + { + if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal())) + { + return false; + } + } + + return sax->end_array(); + } + + /*! + @param[in] len the length of the object + @return whether object creation completed + */ + bool get_msgpack_object(const std::size_t len) + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len))) + { + return false; + } + + string_t key; + for (std::size_t i = 0; i < len; ++i) + { + get(); + if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key))) + { + return false; + } + + if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal())) + { + return false; + } + key.clear(); + } + + return sax->end_object(); + } + + //////////// + // UBJSON // + //////////// + + /*! + @param[in] get_char whether a new character should be retrieved from the + input (true, default) or whether the last read + character should be considered instead + + @return whether a valid UBJSON value was passed to the SAX parser + */ + bool parse_ubjson_internal(const bool get_char = true) + { + return get_ubjson_value(get_char ? get_ignore_noop() : current); + } + + /*! + @brief reads a UBJSON string + + This function is either called after reading the 'S' byte explicitly + indicating a string, or in case of an object key where the 'S' byte can be + left out. + + @param[out] result created string + @param[in] get_char whether a new character should be retrieved from the + input (true, default) or whether the last read + character should be considered instead + + @return whether string creation completed + */ + bool get_ubjson_string(string_t& result, const bool get_char = true) + { + if (get_char) + { + get(); // TODO(niels): may we ignore N here? + } + + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value"))) + { + return false; + } + + switch (current) + { + case 'U': + { + std::uint8_t len{}; + return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result); + } + + case 'i': + { + std::int8_t len{}; + return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result); + } + + case 'I': + { + std::int16_t len{}; + return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result); + } + + case 'l': + { + std::int32_t len{}; + return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result); + } + + case 'L': + { + std::int64_t len{}; + return get_number(input_format_t::ubjson, len) && get_string(input_format_t::ubjson, len, result); + } + + default: + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L); last byte: 0x" + last_token, "string"))); + } + } + + /*! + @param[out] result determined size + @return whether size determination completed + */ + bool get_ubjson_size_value(std::size_t& result) + { + switch (get_ignore_noop()) + { + case 'U': + { + std::uint8_t number{}; + if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number))) + { + return false; + } + result = static_cast(number); + return true; + } + + case 'i': + { + std::int8_t number{}; + if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number))) + { + return false; + } + result = static_cast(number); + return true; + } + + case 'I': + { + std::int16_t number{}; + if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number))) + { + return false; + } + result = static_cast(number); + return true; + } + + case 'l': + { + std::int32_t number{}; + if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number))) + { + return false; + } + result = static_cast(number); + return true; + } + + case 'L': + { + std::int64_t number{}; + if (JSON_HEDLEY_UNLIKELY(!get_number(input_format_t::ubjson, number))) + { + return false; + } + result = static_cast(number); + return true; + } + + default: + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "expected length type specification (U, i, I, l, L) after '#'; last byte: 0x" + last_token, "size"))); + } + } + } + + /*! + @brief determine the type and size for a container + + In the optimized UBJSON format, a type and a size can be provided to allow + for a more compact representation. + + @param[out] result pair of the size and the type + + @return whether pair creation completed + */ + bool get_ubjson_size_type(std::pair& result) + { + result.first = string_t::npos; // size + result.second = 0; // type + + get_ignore_noop(); + + if (current == '$') + { + result.second = get(); // must not ignore 'N', because 'N' maybe the type + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "type"))) + { + return false; + } + + get_ignore_noop(); + if (JSON_HEDLEY_UNLIKELY(current != '#')) + { + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "value"))) + { + return false; + } + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "expected '#' after type information; last byte: 0x" + last_token, "size"))); + } + + return get_ubjson_size_value(result.first); + } + + if (current == '#') + { + return get_ubjson_size_value(result.first); + } + + return true; + } + + /*! + @param prefix the previously read or set type prefix + @return whether value creation completed + */ + bool get_ubjson_value(const char_int_type prefix) + { + switch (prefix) + { + case std::char_traits::eof(): // EOF + return unexpect_eof(input_format_t::ubjson, "value"); + + case 'T': // true + return sax->boolean(true); + case 'F': // false + return sax->boolean(false); + + case 'Z': // null + return sax->null(); + + case 'U': + { + std::uint8_t number{}; + return get_number(input_format_t::ubjson, number) && sax->number_unsigned(number); + } + + case 'i': + { + std::int8_t number{}; + return get_number(input_format_t::ubjson, number) && sax->number_integer(number); + } + + case 'I': + { + std::int16_t number{}; + return get_number(input_format_t::ubjson, number) && sax->number_integer(number); + } + + case 'l': + { + std::int32_t number{}; + return get_number(input_format_t::ubjson, number) && sax->number_integer(number); + } + + case 'L': + { + std::int64_t number{}; + return get_number(input_format_t::ubjson, number) && sax->number_integer(number); + } + + case 'd': + { + float number{}; + return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast(number), ""); + } + + case 'D': + { + double number{}; + return get_number(input_format_t::ubjson, number) && sax->number_float(static_cast(number), ""); + } + + case 'H': + { + return get_ubjson_high_precision_number(); + } + + case 'C': // char + { + get(); + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "char"))) + { + return false; + } + if (JSON_HEDLEY_UNLIKELY(current > 127)) + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(113, chars_read, exception_message(input_format_t::ubjson, "byte after 'C' must be in range 0x00..0x7F; last byte: 0x" + last_token, "char"))); + } + string_t s(1, static_cast(current)); + return sax->string(s); + } + + case 'S': // string + { + string_t s; + return get_ubjson_string(s) && sax->string(s); + } + + case '[': // array + return get_ubjson_array(); + + case '{': // object + return get_ubjson_object(); + + default: // anything else + { + auto last_token = get_token_string(); + return sax->parse_error(chars_read, last_token, parse_error::create(112, chars_read, exception_message(input_format_t::ubjson, "invalid byte: 0x" + last_token, "value"))); + } + } + } + + /*! + @return whether array creation completed + */ + bool get_ubjson_array() + { + std::pair size_and_type; + if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type))) + { + return false; + } + + if (size_and_type.first != string_t::npos) + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_array(size_and_type.first))) + { + return false; + } + + if (size_and_type.second != 0) + { + if (size_and_type.second != 'N') + { + for (std::size_t i = 0; i < size_and_type.first; ++i) + { + if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second))) + { + return false; + } + } + } + } + else + { + for (std::size_t i = 0; i < size_and_type.first; ++i) + { + if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal())) + { + return false; + } + } + } + } + else + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_array(std::size_t(-1)))) + { + return false; + } + + while (current != ']') + { + if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal(false))) + { + return false; + } + get_ignore_noop(); + } + } + + return sax->end_array(); + } + + /*! + @return whether object creation completed + */ + bool get_ubjson_object() + { + std::pair size_and_type; + if (JSON_HEDLEY_UNLIKELY(!get_ubjson_size_type(size_and_type))) + { + return false; + } + + string_t key; + if (size_and_type.first != string_t::npos) + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_object(size_and_type.first))) + { + return false; + } + + if (size_and_type.second != 0) + { + for (std::size_t i = 0; i < size_and_type.first; ++i) + { + if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key))) + { + return false; + } + if (JSON_HEDLEY_UNLIKELY(!get_ubjson_value(size_and_type.second))) + { + return false; + } + key.clear(); + } + } + else + { + for (std::size_t i = 0; i < size_and_type.first; ++i) + { + if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key) || !sax->key(key))) + { + return false; + } + if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal())) + { + return false; + } + key.clear(); + } + } + } + else + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_object(std::size_t(-1)))) + { + return false; + } + + while (current != '}') + { + if (JSON_HEDLEY_UNLIKELY(!get_ubjson_string(key, false) || !sax->key(key))) + { + return false; + } + if (JSON_HEDLEY_UNLIKELY(!parse_ubjson_internal())) + { + return false; + } + get_ignore_noop(); + key.clear(); + } + } + + return sax->end_object(); + } + + // Note, no reader for UBJSON binary types is implemented because they do + // not exist + + bool get_ubjson_high_precision_number() + { + // get size of following number string + std::size_t size{}; + auto res = get_ubjson_size_value(size); + if (JSON_HEDLEY_UNLIKELY(!res)) + { + return res; + } + + // get number string + std::vector number_vector; + for (std::size_t i = 0; i < size; ++i) + { + get(); + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(input_format_t::ubjson, "number"))) + { + return false; + } + number_vector.push_back(static_cast(current)); + } + + // parse number string + auto number_ia = detail::input_adapter(std::forward(number_vector)); + auto number_lexer = detail::lexer(std::move(number_ia), false); + const auto result_number = number_lexer.scan(); + const auto number_string = number_lexer.get_token_string(); + const auto result_remainder = number_lexer.scan(); + + using token_type = typename detail::lexer_base::token_type; + + if (JSON_HEDLEY_UNLIKELY(result_remainder != token_type::end_of_input)) + { + return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"))); + } + + switch (result_number) + { + case token_type::value_integer: + return sax->number_integer(number_lexer.get_number_integer()); + case token_type::value_unsigned: + return sax->number_unsigned(number_lexer.get_number_unsigned()); + case token_type::value_float: + return sax->number_float(number_lexer.get_number_float(), std::move(number_string)); + default: + return sax->parse_error(chars_read, number_string, parse_error::create(115, chars_read, exception_message(input_format_t::ubjson, "invalid number text: " + number_lexer.get_token_string(), "high-precision number"))); + } + } + + /////////////////////// + // Utility functions // + /////////////////////// + + /*! + @brief get next character from the input + + This function provides the interface to the used input adapter. It does + not throw in case the input reached EOF, but returns a -'ve valued + `std::char_traits::eof()` in that case. + + @return character read from the input + */ + char_int_type get() + { + ++chars_read; + return current = ia.get_character(); + } + + /*! + @return character read from the input after ignoring all 'N' entries + */ + char_int_type get_ignore_noop() + { + do + { + get(); + } + while (current == 'N'); + + return current; + } + + /* + @brief read a number from the input + + @tparam NumberType the type of the number + @param[in] format the current format (for diagnostics) + @param[out] result number of type @a NumberType + + @return whether conversion completed + + @note This function needs to respect the system's endianess, because + bytes in CBOR, MessagePack, and UBJSON are stored in network order + (big endian) and therefore need reordering on little endian systems. + */ + template + bool get_number(const input_format_t format, NumberType& result) + { + // step 1: read input into array with system's byte order + std::array vec; + for (std::size_t i = 0; i < sizeof(NumberType); ++i) + { + get(); + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "number"))) + { + return false; + } + + // reverse byte order prior to conversion if necessary + if (is_little_endian != InputIsLittleEndian) + { + vec[sizeof(NumberType) - i - 1] = static_cast(current); + } + else + { + vec[i] = static_cast(current); // LCOV_EXCL_LINE + } + } + + // step 2: convert array into number of type T and return + std::memcpy(&result, vec.data(), sizeof(NumberType)); + return true; + } + + /*! + @brief create a string by reading characters from the input + + @tparam NumberType the type of the number + @param[in] format the current format (for diagnostics) + @param[in] len number of characters to read + @param[out] result string created by reading @a len bytes + + @return whether string creation completed + + @note We can not reserve @a len bytes for the result, because @a len + may be too large. Usually, @ref unexpect_eof() detects the end of + the input before we run out of string memory. + */ + template + bool get_string(const input_format_t format, + const NumberType len, + string_t& result) + { + bool success = true; + for (NumberType i = 0; i < len; i++) + { + get(); + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "string"))) + { + success = false; + break; + } + result.push_back(static_cast(current)); + }; + return success; + } + + /*! + @brief create a byte array by reading bytes from the input + + @tparam NumberType the type of the number + @param[in] format the current format (for diagnostics) + @param[in] len number of bytes to read + @param[out] result byte array created by reading @a len bytes + + @return whether byte array creation completed + + @note We can not reserve @a len bytes for the result, because @a len + may be too large. Usually, @ref unexpect_eof() detects the end of + the input before we run out of memory. + */ + template + bool get_binary(const input_format_t format, + const NumberType len, + binary_t& result) + { + bool success = true; + for (NumberType i = 0; i < len; i++) + { + get(); + if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "binary"))) + { + success = false; + break; + } + result.push_back(static_cast(current)); + } + return success; + } + + /*! + @param[in] format the current format (for diagnostics) + @param[in] context further context information (for diagnostics) + @return whether the last read character is not EOF + */ + JSON_HEDLEY_NON_NULL(3) + bool unexpect_eof(const input_format_t format, const char* context) const + { + if (JSON_HEDLEY_UNLIKELY(current == std::char_traits::eof())) + { + return sax->parse_error(chars_read, "", + parse_error::create(110, chars_read, exception_message(format, "unexpected end of input", context))); + } + return true; + } + + /*! + @return a string representation of the last read byte + */ + std::string get_token_string() const + { + std::array cr{{}}; + (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast(current)); + return std::string{cr.data()}; + } + + /*! + @param[in] format the current format + @param[in] detail a detailed error message + @param[in] context further context information + @return a message string to use in the parse_error exceptions + */ + std::string exception_message(const input_format_t format, + const std::string& detail, + const std::string& context) const + { + std::string error_msg = "syntax error while parsing "; + + switch (format) + { + case input_format_t::cbor: + error_msg += "CBOR"; + break; + + case input_format_t::msgpack: + error_msg += "MessagePack"; + break; + + case input_format_t::ubjson: + error_msg += "UBJSON"; + break; + + case input_format_t::bson: + error_msg += "BSON"; + break; + + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } + + return error_msg + " " + context + ": " + detail; + } + + private: + /// input adapter + InputAdapterType ia; + + /// the current character + char_int_type current = std::char_traits::eof(); + + /// the number of characters read + std::size_t chars_read = 0; + + /// whether we can assume little endianess + const bool is_little_endian = little_endianess(); + + /// the SAX parser + json_sax_t* sax = nullptr; +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + +// #include + + +#include // isfinite +#include // uint8_t +#include // function +#include // string +#include // move +#include // vector + +// #include + +// #include + +// #include + +// #include + +// #include + +// #include + +// #include + + +namespace nlohmann +{ +namespace detail +{ +//////////// +// parser // +//////////// + +enum class parse_event_t : uint8_t +{ + /// the parser read `{` and started to process a JSON object + object_start, + /// the parser read `}` and finished processing a JSON object + object_end, + /// the parser read `[` and started to process a JSON array + array_start, + /// the parser read `]` and finished processing a JSON array + array_end, + /// the parser read a key of a value in an object + key, + /// the parser finished reading a JSON value + value +}; + +template +using parser_callback_t = + std::function; + +/*! +@brief syntax analysis + +This class implements a recursive descent parser. +*/ +template +class parser +{ + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using number_float_t = typename BasicJsonType::number_float_t; + using string_t = typename BasicJsonType::string_t; + using lexer_t = lexer; + using token_type = typename lexer_t::token_type; + + public: + /// a parser reading from an input adapter + explicit parser(InputAdapterType&& adapter, + const parser_callback_t cb = nullptr, + const bool allow_exceptions_ = true, + const bool skip_comments = false) + : callback(cb) + , m_lexer(std::move(adapter), skip_comments) + , allow_exceptions(allow_exceptions_) + { + // read first token + get_token(); + } + + /*! + @brief public parser interface + + @param[in] strict whether to expect the last token to be EOF + @param[in,out] result parsed JSON value + + @throw parse_error.101 in case of an unexpected token + @throw parse_error.102 if to_unicode fails or surrogate error + @throw parse_error.103 if to_unicode fails + */ + void parse(const bool strict, BasicJsonType& result) + { + if (callback) + { + json_sax_dom_callback_parser sdp(result, callback, allow_exceptions); + sax_parse_internal(&sdp); + result.assert_invariant(); + + // in strict mode, input must be completely read + if (strict && (get_token() != token_type::end_of_input)) + { + sdp.parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::end_of_input, "value"))); + } + + // in case of an error, return discarded value + if (sdp.is_errored()) + { + result = value_t::discarded; + return; + } + + // set top-level value to null if it was discarded by the callback + // function + if (result.is_discarded()) + { + result = nullptr; + } + } + else + { + json_sax_dom_parser sdp(result, allow_exceptions); + sax_parse_internal(&sdp); + result.assert_invariant(); + + // in strict mode, input must be completely read + if (strict && (get_token() != token_type::end_of_input)) + { + sdp.parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::end_of_input, "value"))); + } + + // in case of an error, return discarded value + if (sdp.is_errored()) + { + result = value_t::discarded; + return; + } + } + } + + /*! + @brief public accept interface + + @param[in] strict whether to expect the last token to be EOF + @return whether the input is a proper JSON text + */ + bool accept(const bool strict = true) + { + json_sax_acceptor sax_acceptor; + return sax_parse(&sax_acceptor, strict); + } + + template + JSON_HEDLEY_NON_NULL(2) + bool sax_parse(SAX* sax, const bool strict = true) + { + (void)detail::is_sax_static_asserts {}; + const bool result = sax_parse_internal(sax); + + // strict mode: next byte must be EOF + if (result && strict && (get_token() != token_type::end_of_input)) + { + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::end_of_input, "value"))); + } + + return result; + } + + private: + template + JSON_HEDLEY_NON_NULL(2) + bool sax_parse_internal(SAX* sax) + { + // stack to remember the hierarchy of structured values we are parsing + // true = array; false = object + std::vector states; + // value to avoid a goto (see comment where set to true) + bool skip_to_state_evaluation = false; + + while (true) + { + if (!skip_to_state_evaluation) + { + // invariant: get_token() was called before each iteration + switch (last_token) + { + case token_type::begin_object: + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_object(std::size_t(-1)))) + { + return false; + } + + // closing } -> we are done + if (get_token() == token_type::end_object) + { + if (JSON_HEDLEY_UNLIKELY(!sax->end_object())) + { + return false; + } + break; + } + + // parse key + if (JSON_HEDLEY_UNLIKELY(last_token != token_type::value_string)) + { + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::value_string, "object key"))); + } + if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string()))) + { + return false; + } + + // parse separator (:) + if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator)) + { + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::name_separator, "object separator"))); + } + + // remember we are now inside an object + states.push_back(false); + + // parse values + get_token(); + continue; + } + + case token_type::begin_array: + { + if (JSON_HEDLEY_UNLIKELY(!sax->start_array(std::size_t(-1)))) + { + return false; + } + + // closing ] -> we are done + if (get_token() == token_type::end_array) + { + if (JSON_HEDLEY_UNLIKELY(!sax->end_array())) + { + return false; + } + break; + } + + // remember we are now inside an array + states.push_back(true); + + // parse values (no need to call get_token) + continue; + } + + case token_type::value_float: + { + const auto res = m_lexer.get_number_float(); + + if (JSON_HEDLEY_UNLIKELY(!std::isfinite(res))) + { + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + out_of_range::create(406, "number overflow parsing '" + m_lexer.get_token_string() + "'")); + } + + if (JSON_HEDLEY_UNLIKELY(!sax->number_float(res, m_lexer.get_string()))) + { + return false; + } + + break; + } + + case token_type::literal_false: + { + if (JSON_HEDLEY_UNLIKELY(!sax->boolean(false))) + { + return false; + } + break; + } + + case token_type::literal_null: + { + if (JSON_HEDLEY_UNLIKELY(!sax->null())) + { + return false; + } + break; + } + + case token_type::literal_true: + { + if (JSON_HEDLEY_UNLIKELY(!sax->boolean(true))) + { + return false; + } + break; + } + + case token_type::value_integer: + { + if (JSON_HEDLEY_UNLIKELY(!sax->number_integer(m_lexer.get_number_integer()))) + { + return false; + } + break; + } + + case token_type::value_string: + { + if (JSON_HEDLEY_UNLIKELY(!sax->string(m_lexer.get_string()))) + { + return false; + } + break; + } + + case token_type::value_unsigned: + { + if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(m_lexer.get_number_unsigned()))) + { + return false; + } + break; + } + + case token_type::parse_error: + { + // using "uninitialized" to avoid "expected" message + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::uninitialized, "value"))); + } + + default: // the last token was unexpected + { + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::literal_or_value, "value"))); + } + } + } + else + { + skip_to_state_evaluation = false; + } + + // we reached this line after we successfully parsed a value + if (states.empty()) + { + // empty stack: we reached the end of the hierarchy: done + return true; + } + + if (states.back()) // array + { + // comma -> next value + if (get_token() == token_type::value_separator) + { + // parse a new value + get_token(); + continue; + } + + // closing ] + if (JSON_HEDLEY_LIKELY(last_token == token_type::end_array)) + { + if (JSON_HEDLEY_UNLIKELY(!sax->end_array())) + { + return false; + } + + // We are done with this array. Before we can parse a + // new value, we need to evaluate the new state first. + // By setting skip_to_state_evaluation to false, we + // are effectively jumping to the beginning of this if. + JSON_ASSERT(!states.empty()); + states.pop_back(); + skip_to_state_evaluation = true; + continue; + } + + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::end_array, "array"))); + } + else // object + { + // comma -> next value + if (get_token() == token_type::value_separator) + { + // parse key + if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::value_string)) + { + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::value_string, "object key"))); + } + + if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string()))) + { + return false; + } + + // parse separator (:) + if (JSON_HEDLEY_UNLIKELY(get_token() != token_type::name_separator)) + { + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::name_separator, "object separator"))); + } + + // parse values + get_token(); + continue; + } + + // closing } + if (JSON_HEDLEY_LIKELY(last_token == token_type::end_object)) + { + if (JSON_HEDLEY_UNLIKELY(!sax->end_object())) + { + return false; + } + + // We are done with this object. Before we can parse a + // new value, we need to evaluate the new state first. + // By setting skip_to_state_evaluation to false, we + // are effectively jumping to the beginning of this if. + JSON_ASSERT(!states.empty()); + states.pop_back(); + skip_to_state_evaluation = true; + continue; + } + + return sax->parse_error(m_lexer.get_position(), + m_lexer.get_token_string(), + parse_error::create(101, m_lexer.get_position(), + exception_message(token_type::end_object, "object"))); + } + } + } + + /// get next token from lexer + token_type get_token() + { + return last_token = m_lexer.scan(); + } + + std::string exception_message(const token_type expected, const std::string& context) + { + std::string error_msg = "syntax error "; + + if (!context.empty()) + { + error_msg += "while parsing " + context + " "; + } + + error_msg += "- "; + + if (last_token == token_type::parse_error) + { + error_msg += std::string(m_lexer.get_error_message()) + "; last read: '" + + m_lexer.get_token_string() + "'"; + } + else + { + error_msg += "unexpected " + std::string(lexer_t::token_type_name(last_token)); + } + + if (expected != token_type::uninitialized) + { + error_msg += "; expected " + std::string(lexer_t::token_type_name(expected)); + } + + return error_msg; + } + + private: + /// callback function + const parser_callback_t callback = nullptr; + /// the type of the last read token + token_type last_token = token_type::uninitialized; + /// the lexer + lexer_t m_lexer; + /// whether to throw exceptions in case of errors + const bool allow_exceptions = true; +}; +} // namespace detail +} // namespace nlohmann + +// #include + + +// #include + + +#include // ptrdiff_t +#include // numeric_limits + +namespace nlohmann +{ +namespace detail +{ +/* +@brief an iterator for primitive JSON types + +This class models an iterator for primitive JSON types (boolean, number, +string). It's only purpose is to allow the iterator/const_iterator classes +to "iterate" over primitive values. Internally, the iterator is modeled by +a `difference_type` variable. Value begin_value (`0`) models the begin, +end_value (`1`) models past the end. +*/ +class primitive_iterator_t +{ + private: + using difference_type = std::ptrdiff_t; + static constexpr difference_type begin_value = 0; + static constexpr difference_type end_value = begin_value + 1; + + /// iterator as signed integer type + difference_type m_it = (std::numeric_limits::min)(); + + public: + constexpr difference_type get_value() const noexcept + { + return m_it; + } + + /// set iterator to a defined beginning + void set_begin() noexcept + { + m_it = begin_value; + } + + /// set iterator to a defined past the end + void set_end() noexcept + { + m_it = end_value; + } + + /// return whether the iterator can be dereferenced + constexpr bool is_begin() const noexcept + { + return m_it == begin_value; + } + + /// return whether the iterator is at end + constexpr bool is_end() const noexcept + { + return m_it == end_value; + } + + friend constexpr bool operator==(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept + { + return lhs.m_it == rhs.m_it; + } + + friend constexpr bool operator<(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept + { + return lhs.m_it < rhs.m_it; + } + + primitive_iterator_t operator+(difference_type n) noexcept + { + auto result = *this; + result += n; + return result; + } + + friend constexpr difference_type operator-(primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept + { + return lhs.m_it - rhs.m_it; + } + + primitive_iterator_t& operator++() noexcept + { + ++m_it; + return *this; + } + + primitive_iterator_t const operator++(int) noexcept + { + auto result = *this; + ++m_it; + return result; + } + + primitive_iterator_t& operator--() noexcept + { + --m_it; + return *this; + } + + primitive_iterator_t const operator--(int) noexcept + { + auto result = *this; + --m_it; + return result; + } + + primitive_iterator_t& operator+=(difference_type n) noexcept + { + m_it += n; + return *this; + } + + primitive_iterator_t& operator-=(difference_type n) noexcept + { + m_it -= n; + return *this; + } +}; +} // namespace detail +} // namespace nlohmann + + +namespace nlohmann +{ +namespace detail +{ +/*! +@brief an iterator value + +@note This structure could easily be a union, but MSVC currently does not allow +unions members with complex constructors, see https://github.com/nlohmann/json/pull/105. +*/ +template struct internal_iterator +{ + /// iterator for JSON objects + typename BasicJsonType::object_t::iterator object_iterator {}; + /// iterator for JSON arrays + typename BasicJsonType::array_t::iterator array_iterator {}; + /// generic iterator for all other types + primitive_iterator_t primitive_iterator {}; +}; +} // namespace detail +} // namespace nlohmann + +// #include + + +#include // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next +#include // conditional, is_const, remove_const + +// #include + +// #include + +// #include + +// #include + +// #include + +// #include + +// #include + + +namespace nlohmann +{ +namespace detail +{ +// forward declare, to be able to friend it later on +template class iteration_proxy; +template class iteration_proxy_value; + +/*! +@brief a template for a bidirectional iterator for the @ref basic_json class +This class implements a both iterators (iterator and const_iterator) for the +@ref basic_json class. +@note An iterator is called *initialized* when a pointer to a JSON value has + been set (e.g., by a constructor or a copy assignment). If the iterator is + default-constructed, it is *uninitialized* and most methods are undefined. + **The library uses assertions to detect calls on uninitialized iterators.** +@requirement The class satisfies the following concept requirements: +- +[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator): + The iterator that can be moved can be moved in both directions (i.e. + incremented and decremented). +@since version 1.0.0, simplified in version 2.0.9, change to bidirectional + iterators in version 3.0.0 (see https://github.com/nlohmann/json/issues/593) +*/ +template +class iter_impl +{ + /// allow basic_json to access private members + friend iter_impl::value, typename std::remove_const::type, const BasicJsonType>::type>; + friend BasicJsonType; + friend iteration_proxy; + friend iteration_proxy_value; + + using object_t = typename BasicJsonType::object_t; + using array_t = typename BasicJsonType::array_t; + // make sure BasicJsonType is basic_json or const basic_json + static_assert(is_basic_json::type>::value, + "iter_impl only accepts (const) basic_json"); + + public: + + /// The std::iterator class template (used as a base class to provide typedefs) is deprecated in C++17. + /// The C++ Standard has never required user-defined iterators to derive from std::iterator. + /// A user-defined iterator should provide publicly accessible typedefs named + /// iterator_category, value_type, difference_type, pointer, and reference. + /// Note that value_type is required to be non-const, even for constant iterators. + using iterator_category = std::bidirectional_iterator_tag; + + /// the type of the values when the iterator is dereferenced + using value_type = typename BasicJsonType::value_type; + /// a type to represent differences between iterators + using difference_type = typename BasicJsonType::difference_type; + /// defines a pointer to the type iterated over (value_type) + using pointer = typename std::conditional::value, + typename BasicJsonType::const_pointer, + typename BasicJsonType::pointer>::type; + /// defines a reference to the type iterated over (value_type) + using reference = + typename std::conditional::value, + typename BasicJsonType::const_reference, + typename BasicJsonType::reference>::type; + + /// default constructor + iter_impl() = default; + + /*! + @brief constructor for a given JSON instance + @param[in] object pointer to a JSON object for this iterator + @pre object != nullptr + @post The iterator is initialized; i.e. `m_object != nullptr`. + */ + explicit iter_impl(pointer object) noexcept : m_object(object) + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + { + m_it.object_iterator = typename object_t::iterator(); + break; + } + + case value_t::array: + { + m_it.array_iterator = typename array_t::iterator(); + break; + } + + default: + { + m_it.primitive_iterator = primitive_iterator_t(); + break; + } + } + } + + /*! + @note The conventional copy constructor and copy assignment are implicitly + defined. Combined with the following converting constructor and + assignment, they support: (1) copy from iterator to iterator, (2) + copy from const iterator to const iterator, and (3) conversion from + iterator to const iterator. However conversion from const iterator + to iterator is not defined. + */ + + /*! + @brief const copy constructor + @param[in] other const iterator to copy from + @note This copy constructor had to be defined explicitly to circumvent a bug + occurring on msvc v19.0 compiler (VS 2015) debug build. For more + information refer to: https://github.com/nlohmann/json/issues/1608 + */ + iter_impl(const iter_impl& other) noexcept + : m_object(other.m_object), m_it(other.m_it) + {} + + /*! + @brief converting assignment + @param[in] other const iterator to copy from + @return const/non-const iterator + @note It is not checked whether @a other is initialized. + */ + iter_impl& operator=(const iter_impl& other) noexcept + { + m_object = other.m_object; + m_it = other.m_it; + return *this; + } + + /*! + @brief converting constructor + @param[in] other non-const iterator to copy from + @note It is not checked whether @a other is initialized. + */ + iter_impl(const iter_impl::type>& other) noexcept + : m_object(other.m_object), m_it(other.m_it) + {} + + /*! + @brief converting assignment + @param[in] other non-const iterator to copy from + @return const/non-const iterator + @note It is not checked whether @a other is initialized. + */ + iter_impl& operator=(const iter_impl::type>& other) noexcept + { + m_object = other.m_object; + m_it = other.m_it; + return *this; + } + + private: + /*! + @brief set the iterator to the first value + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + void set_begin() noexcept + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + { + m_it.object_iterator = m_object->m_value.object->begin(); + break; + } + + case value_t::array: + { + m_it.array_iterator = m_object->m_value.array->begin(); + break; + } + + case value_t::null: + { + // set to end so begin()==end() is true: null is empty + m_it.primitive_iterator.set_end(); + break; + } + + default: + { + m_it.primitive_iterator.set_begin(); + break; + } + } + } + + /*! + @brief set the iterator past the last value + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + void set_end() noexcept + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + { + m_it.object_iterator = m_object->m_value.object->end(); + break; + } + + case value_t::array: + { + m_it.array_iterator = m_object->m_value.array->end(); + break; + } + + default: + { + m_it.primitive_iterator.set_end(); + break; + } + } + } + + public: + /*! + @brief return a reference to the value pointed to by the iterator + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + reference operator*() const + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + { + JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end()); + return m_it.object_iterator->second; + } + + case value_t::array: + { + JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end()); + return *m_it.array_iterator; + } + + case value_t::null: + JSON_THROW(invalid_iterator::create(214, "cannot get value")); + + default: + { + if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin())) + { + return *m_object; + } + + JSON_THROW(invalid_iterator::create(214, "cannot get value")); + } + } + } + + /*! + @brief dereference the iterator + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + pointer operator->() const + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + { + JSON_ASSERT(m_it.object_iterator != m_object->m_value.object->end()); + return &(m_it.object_iterator->second); + } + + case value_t::array: + { + JSON_ASSERT(m_it.array_iterator != m_object->m_value.array->end()); + return &*m_it.array_iterator; + } + + default: + { + if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin())) + { + return m_object; + } + + JSON_THROW(invalid_iterator::create(214, "cannot get value")); + } + } + } + + /*! + @brief post-increment (it++) + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + iter_impl const operator++(int) + { + auto result = *this; + ++(*this); + return result; + } + + /*! + @brief pre-increment (++it) + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + iter_impl& operator++() + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + { + std::advance(m_it.object_iterator, 1); + break; + } + + case value_t::array: + { + std::advance(m_it.array_iterator, 1); + break; + } + + default: + { + ++m_it.primitive_iterator; + break; + } + } + + return *this; + } + + /*! + @brief post-decrement (it--) + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + iter_impl const operator--(int) + { + auto result = *this; + --(*this); + return result; + } + + /*! + @brief pre-decrement (--it) + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + iter_impl& operator--() + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + { + std::advance(m_it.object_iterator, -1); + break; + } + + case value_t::array: + { + std::advance(m_it.array_iterator, -1); + break; + } + + default: + { + --m_it.primitive_iterator; + break; + } + } + + return *this; + } + + /*! + @brief comparison: equal + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + bool operator==(const iter_impl& other) const + { + // if objects are not the same, the comparison is undefined + if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object)) + { + JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers")); + } + + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + return (m_it.object_iterator == other.m_it.object_iterator); + + case value_t::array: + return (m_it.array_iterator == other.m_it.array_iterator); + + default: + return (m_it.primitive_iterator == other.m_it.primitive_iterator); + } + } + + /*! + @brief comparison: not equal + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + bool operator!=(const iter_impl& other) const + { + return !operator==(other); + } + + /*! + @brief comparison: smaller + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + bool operator<(const iter_impl& other) const + { + // if objects are not the same, the comparison is undefined + if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object)) + { + JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers")); + } + + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + JSON_THROW(invalid_iterator::create(213, "cannot compare order of object iterators")); + + case value_t::array: + return (m_it.array_iterator < other.m_it.array_iterator); + + default: + return (m_it.primitive_iterator < other.m_it.primitive_iterator); + } + } + + /*! + @brief comparison: less than or equal + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + bool operator<=(const iter_impl& other) const + { + return !other.operator < (*this); + } + + /*! + @brief comparison: greater than + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + bool operator>(const iter_impl& other) const + { + return !operator<=(other); + } + + /*! + @brief comparison: greater than or equal + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + bool operator>=(const iter_impl& other) const + { + return !operator<(other); + } + + /*! + @brief add to iterator + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + iter_impl& operator+=(difference_type i) + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators")); + + case value_t::array: + { + std::advance(m_it.array_iterator, i); + break; + } + + default: + { + m_it.primitive_iterator += i; + break; + } + } + + return *this; + } + + /*! + @brief subtract from iterator + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + iter_impl& operator-=(difference_type i) + { + return operator+=(-i); + } + + /*! + @brief add to iterator + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + iter_impl operator+(difference_type i) const + { + auto result = *this; + result += i; + return result; + } + + /*! + @brief addition of distance and iterator + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + friend iter_impl operator+(difference_type i, const iter_impl& it) + { + auto result = it; + result += i; + return result; + } + + /*! + @brief subtract from iterator + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + iter_impl operator-(difference_type i) const + { + auto result = *this; + result -= i; + return result; + } + + /*! + @brief return difference + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + difference_type operator-(const iter_impl& other) const + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + JSON_THROW(invalid_iterator::create(209, "cannot use offsets with object iterators")); + + case value_t::array: + return m_it.array_iterator - other.m_it.array_iterator; + + default: + return m_it.primitive_iterator - other.m_it.primitive_iterator; + } + } + + /*! + @brief access to successor + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + reference operator[](difference_type n) const + { + JSON_ASSERT(m_object != nullptr); + + switch (m_object->m_type) + { + case value_t::object: + JSON_THROW(invalid_iterator::create(208, "cannot use operator[] for object iterators")); + + case value_t::array: + return *std::next(m_it.array_iterator, n); + + case value_t::null: + JSON_THROW(invalid_iterator::create(214, "cannot get value")); + + default: + { + if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.get_value() == -n)) + { + return *m_object; + } + + JSON_THROW(invalid_iterator::create(214, "cannot get value")); + } + } + } + + /*! + @brief return the key of an object iterator + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + const typename object_t::key_type& key() const + { + JSON_ASSERT(m_object != nullptr); + + if (JSON_HEDLEY_LIKELY(m_object->is_object())) + { + return m_it.object_iterator->first; + } + + JSON_THROW(invalid_iterator::create(207, "cannot use key() for non-object iterators")); + } + + /*! + @brief return the value of an iterator + @pre The iterator is initialized; i.e. `m_object != nullptr`. + */ + reference value() const + { + return operator*(); + } + + private: + /// associated JSON instance + pointer m_object = nullptr; + /// the actual iterator of the associated instance + internal_iterator::type> m_it {}; +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + + +#include // ptrdiff_t +#include // reverse_iterator +#include // declval + +namespace nlohmann +{ +namespace detail +{ +////////////////////// +// reverse_iterator // +////////////////////// + +/*! +@brief a template for a reverse iterator class + +@tparam Base the base iterator type to reverse. Valid types are @ref +iterator (to create @ref reverse_iterator) and @ref const_iterator (to +create @ref const_reverse_iterator). + +@requirement The class satisfies the following concept requirements: +- +[BidirectionalIterator](https://en.cppreference.com/w/cpp/named_req/BidirectionalIterator): + The iterator that can be moved can be moved in both directions (i.e. + incremented and decremented). +- [OutputIterator](https://en.cppreference.com/w/cpp/named_req/OutputIterator): + It is possible to write to the pointed-to element (only if @a Base is + @ref iterator). + +@since version 1.0.0 +*/ +template +class json_reverse_iterator : public std::reverse_iterator +{ + public: + using difference_type = std::ptrdiff_t; + /// shortcut to the reverse iterator adapter + using base_iterator = std::reverse_iterator; + /// the reference type for the pointed-to element + using reference = typename Base::reference; + + /// create reverse iterator from iterator + explicit json_reverse_iterator(const typename base_iterator::iterator_type& it) noexcept + : base_iterator(it) {} + + /// create reverse iterator from base class + explicit json_reverse_iterator(const base_iterator& it) noexcept : base_iterator(it) {} + + /// post-increment (it++) + json_reverse_iterator const operator++(int) + { + return static_cast(base_iterator::operator++(1)); + } + + /// pre-increment (++it) + json_reverse_iterator& operator++() + { + return static_cast(base_iterator::operator++()); + } + + /// post-decrement (it--) + json_reverse_iterator const operator--(int) + { + return static_cast(base_iterator::operator--(1)); + } + + /// pre-decrement (--it) + json_reverse_iterator& operator--() + { + return static_cast(base_iterator::operator--()); + } + + /// add to iterator + json_reverse_iterator& operator+=(difference_type i) + { + return static_cast(base_iterator::operator+=(i)); + } + + /// add to iterator + json_reverse_iterator operator+(difference_type i) const + { + return static_cast(base_iterator::operator+(i)); + } + + /// subtract from iterator + json_reverse_iterator operator-(difference_type i) const + { + return static_cast(base_iterator::operator-(i)); + } + + /// return difference + difference_type operator-(const json_reverse_iterator& other) const + { + return base_iterator(*this) - base_iterator(other); + } + + /// access to successor + reference operator[](difference_type n) const + { + return *(this->operator+(n)); + } + + /// return the key of an object iterator + auto key() const -> decltype(std::declval().key()) + { + auto it = --this->base(); + return it.key(); + } + + /// return the value of an iterator + reference value() const + { + auto it = --this->base(); + return it.operator * (); + } +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + + +#include // all_of +#include // isdigit +#include // max +#include // accumulate +#include // string +#include // move +#include // vector + +// #include + +// #include + +// #include + + +namespace nlohmann +{ +template +class json_pointer +{ + // allow basic_json to access private members + NLOHMANN_BASIC_JSON_TPL_DECLARATION + friend class basic_json; + + public: + /*! + @brief create JSON pointer + + Create a JSON pointer according to the syntax described in + [Section 3 of RFC6901](https://tools.ietf.org/html/rfc6901#section-3). + + @param[in] s string representing the JSON pointer; if omitted, the empty + string is assumed which references the whole JSON value + + @throw parse_error.107 if the given JSON pointer @a s is nonempty and does + not begin with a slash (`/`); see example below + + @throw parse_error.108 if a tilde (`~`) in the given JSON pointer @a s is + not followed by `0` (representing `~`) or `1` (representing `/`); see + example below + + @liveexample{The example shows the construction several valid JSON pointers + as well as the exceptional behavior.,json_pointer} + + @since version 2.0.0 + */ + explicit json_pointer(const std::string& s = "") + : reference_tokens(split(s)) + {} + + /*! + @brief return a string representation of the JSON pointer + + @invariant For each JSON pointer `ptr`, it holds: + @code {.cpp} + ptr == json_pointer(ptr.to_string()); + @endcode + + @return a string representation of the JSON pointer + + @liveexample{The example shows the result of `to_string`.,json_pointer__to_string} + + @since version 2.0.0 + */ + std::string to_string() const + { + return std::accumulate(reference_tokens.begin(), reference_tokens.end(), + std::string{}, + [](const std::string & a, const std::string & b) + { + return a + "/" + escape(b); + }); + } + + /// @copydoc to_string() + operator std::string() const + { + return to_string(); + } + + /*! + @brief append another JSON pointer at the end of this JSON pointer + + @param[in] ptr JSON pointer to append + @return JSON pointer with @a ptr appended + + @liveexample{The example shows the usage of `operator/=`.,json_pointer__operator_add} + + @complexity Linear in the length of @a ptr. + + @sa @ref operator/=(std::string) to append a reference token + @sa @ref operator/=(std::size_t) to append an array index + @sa @ref operator/(const json_pointer&, const json_pointer&) for a binary operator + + @since version 3.6.0 + */ + json_pointer& operator/=(const json_pointer& ptr) + { + reference_tokens.insert(reference_tokens.end(), + ptr.reference_tokens.begin(), + ptr.reference_tokens.end()); + return *this; + } + + /*! + @brief append an unescaped reference token at the end of this JSON pointer + + @param[in] token reference token to append + @return JSON pointer with @a token appended without escaping @a token + + @liveexample{The example shows the usage of `operator/=`.,json_pointer__operator_add} + + @complexity Amortized constant. + + @sa @ref operator/=(const json_pointer&) to append a JSON pointer + @sa @ref operator/=(std::size_t) to append an array index + @sa @ref operator/(const json_pointer&, std::size_t) for a binary operator + + @since version 3.6.0 + */ + json_pointer& operator/=(std::string token) + { + push_back(std::move(token)); + return *this; + } + + /*! + @brief append an array index at the end of this JSON pointer + + @param[in] array_idx array index to append + @return JSON pointer with @a array_idx appended + + @liveexample{The example shows the usage of `operator/=`.,json_pointer__operator_add} + + @complexity Amortized constant. + + @sa @ref operator/=(const json_pointer&) to append a JSON pointer + @sa @ref operator/=(std::string) to append a reference token + @sa @ref operator/(const json_pointer&, std::string) for a binary operator + + @since version 3.6.0 + */ + json_pointer& operator/=(std::size_t array_idx) + { + return *this /= std::to_string(array_idx); + } + + /*! + @brief create a new JSON pointer by appending the right JSON pointer at the end of the left JSON pointer + + @param[in] lhs JSON pointer + @param[in] rhs JSON pointer + @return a new JSON pointer with @a rhs appended to @a lhs + + @liveexample{The example shows the usage of `operator/`.,json_pointer__operator_add_binary} + + @complexity Linear in the length of @a lhs and @a rhs. + + @sa @ref operator/=(const json_pointer&) to append a JSON pointer + + @since version 3.6.0 + */ + friend json_pointer operator/(const json_pointer& lhs, + const json_pointer& rhs) + { + return json_pointer(lhs) /= rhs; + } + + /*! + @brief create a new JSON pointer by appending the unescaped token at the end of the JSON pointer + + @param[in] ptr JSON pointer + @param[in] token reference token + @return a new JSON pointer with unescaped @a token appended to @a ptr + + @liveexample{The example shows the usage of `operator/`.,json_pointer__operator_add_binary} + + @complexity Linear in the length of @a ptr. + + @sa @ref operator/=(std::string) to append a reference token + + @since version 3.6.0 + */ + friend json_pointer operator/(const json_pointer& ptr, std::string token) + { + return json_pointer(ptr) /= std::move(token); + } + + /*! + @brief create a new JSON pointer by appending the array-index-token at the end of the JSON pointer + + @param[in] ptr JSON pointer + @param[in] array_idx array index + @return a new JSON pointer with @a array_idx appended to @a ptr + + @liveexample{The example shows the usage of `operator/`.,json_pointer__operator_add_binary} + + @complexity Linear in the length of @a ptr. + + @sa @ref operator/=(std::size_t) to append an array index + + @since version 3.6.0 + */ + friend json_pointer operator/(const json_pointer& ptr, std::size_t array_idx) + { + return json_pointer(ptr) /= array_idx; + } + + /*! + @brief returns the parent of this JSON pointer + + @return parent of this JSON pointer; in case this JSON pointer is the root, + the root itself is returned + + @complexity Linear in the length of the JSON pointer. + + @liveexample{The example shows the result of `parent_pointer` for different + JSON Pointers.,json_pointer__parent_pointer} + + @since version 3.6.0 + */ + json_pointer parent_pointer() const + { + if (empty()) + { + return *this; + } + + json_pointer res = *this; + res.pop_back(); + return res; + } + + /*! + @brief remove last reference token + + @pre not `empty()` + + @liveexample{The example shows the usage of `pop_back`.,json_pointer__pop_back} + + @complexity Constant. + + @throw out_of_range.405 if JSON pointer has no parent + + @since version 3.6.0 + */ + void pop_back() + { + if (JSON_HEDLEY_UNLIKELY(empty())) + { + JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent")); + } + + reference_tokens.pop_back(); + } + + /*! + @brief return last reference token + + @pre not `empty()` + @return last reference token + + @liveexample{The example shows the usage of `back`.,json_pointer__back} + + @complexity Constant. + + @throw out_of_range.405 if JSON pointer has no parent + + @since version 3.6.0 + */ + const std::string& back() const + { + if (JSON_HEDLEY_UNLIKELY(empty())) + { + JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent")); + } + + return reference_tokens.back(); + } + + /*! + @brief append an unescaped token at the end of the reference pointer + + @param[in] token token to add + + @complexity Amortized constant. + + @liveexample{The example shows the result of `push_back` for different + JSON Pointers.,json_pointer__push_back} + + @since version 3.6.0 + */ + void push_back(const std::string& token) + { + reference_tokens.push_back(token); + } + + /// @copydoc push_back(const std::string&) + void push_back(std::string&& token) + { + reference_tokens.push_back(std::move(token)); + } + + /*! + @brief return whether pointer points to the root document + + @return true iff the JSON pointer points to the root document + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @liveexample{The example shows the result of `empty` for different JSON + Pointers.,json_pointer__empty} + + @since version 3.6.0 + */ + bool empty() const noexcept + { + return reference_tokens.empty(); + } + + private: + /*! + @param[in] s reference token to be converted into an array index + + @return integer representation of @a s + + @throw parse_error.106 if an array index begins with '0' + @throw parse_error.109 if an array index begins not with a digit + @throw out_of_range.404 if string @a s could not be converted to an integer + @throw out_of_range.410 if an array index exceeds size_type + */ + static typename BasicJsonType::size_type array_index(const std::string& s) + { + using size_type = typename BasicJsonType::size_type; + + // error condition (cf. RFC 6901, Sect. 4) + if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && s[0] == '0')) + { + JSON_THROW(detail::parse_error::create(106, 0, + "array index '" + s + + "' must not begin with '0'")); + } + + // error condition (cf. RFC 6901, Sect. 4) + if (JSON_HEDLEY_UNLIKELY(s.size() > 1 && !(s[0] >= '1' && s[0] <= '9'))) + { + JSON_THROW(detail::parse_error::create(109, 0, "array index '" + s + "' is not a number")); + } + + std::size_t processed_chars = 0; + unsigned long long res = 0; + JSON_TRY + { + res = std::stoull(s, &processed_chars); + } + JSON_CATCH(std::out_of_range&) + { + JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'")); + } + + // check if the string was completely read + if (JSON_HEDLEY_UNLIKELY(processed_chars != s.size())) + { + JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + s + "'")); + } + + // only triggered on special platforms (like 32bit), see also + // https://github.com/nlohmann/json/pull/2203 + if (res >= static_cast((std::numeric_limits::max)())) + { + JSON_THROW(detail::out_of_range::create(410, "array index " + s + " exceeds size_type")); // LCOV_EXCL_LINE + } + + return static_cast(res); + } + + json_pointer top() const + { + if (JSON_HEDLEY_UNLIKELY(empty())) + { + JSON_THROW(detail::out_of_range::create(405, "JSON pointer has no parent")); + } + + json_pointer result = *this; + result.reference_tokens = {reference_tokens[0]}; + return result; + } + + /*! + @brief create and return a reference to the pointed to value + + @complexity Linear in the number of reference tokens. + + @throw parse_error.109 if array index is not a number + @throw type_error.313 if value cannot be unflattened + */ + BasicJsonType& get_and_create(BasicJsonType& j) const + { + auto result = &j; + + // in case no reference tokens exist, return a reference to the JSON value + // j which will be overwritten by a primitive value + for (const auto& reference_token : reference_tokens) + { + switch (result->type()) + { + case detail::value_t::null: + { + if (reference_token == "0") + { + // start a new array if reference token is 0 + result = &result->operator[](0); + } + else + { + // start a new object otherwise + result = &result->operator[](reference_token); + } + break; + } + + case detail::value_t::object: + { + // create an entry in the object + result = &result->operator[](reference_token); + break; + } + + case detail::value_t::array: + { + // create an entry in the array + result = &result->operator[](array_index(reference_token)); + break; + } + + /* + The following code is only reached if there exists a reference + token _and_ the current value is primitive. In this case, we have + an error situation, because primitive values may only occur as + single value; that is, with an empty list of reference tokens. + */ + default: + JSON_THROW(detail::type_error::create(313, "invalid value to unflatten")); + } + } + + return *result; + } + + /*! + @brief return a reference to the pointed to value + + @note This version does not throw if a value is not present, but tries to + create nested values instead. For instance, calling this function + with pointer `"/this/that"` on a null value is equivalent to calling + `operator[]("this").operator[]("that")` on that value, effectively + changing the null value to an object. + + @param[in] ptr a JSON value + + @return reference to the JSON value pointed to by the JSON pointer + + @complexity Linear in the length of the JSON pointer. + + @throw parse_error.106 if an array index begins with '0' + @throw parse_error.109 if an array index was not a number + @throw out_of_range.404 if the JSON pointer can not be resolved + */ + BasicJsonType& get_unchecked(BasicJsonType* ptr) const + { + for (const auto& reference_token : reference_tokens) + { + // convert null values to arrays or objects before continuing + if (ptr->is_null()) + { + // check if reference token is a number + const bool nums = + std::all_of(reference_token.begin(), reference_token.end(), + [](const unsigned char x) + { + return std::isdigit(x); + }); + + // change value to array for numbers or "-" or to object otherwise + *ptr = (nums || reference_token == "-") + ? detail::value_t::array + : detail::value_t::object; + } + + switch (ptr->type()) + { + case detail::value_t::object: + { + // use unchecked object access + ptr = &ptr->operator[](reference_token); + break; + } + + case detail::value_t::array: + { + if (reference_token == "-") + { + // explicitly treat "-" as index beyond the end + ptr = &ptr->operator[](ptr->m_value.array->size()); + } + else + { + // convert array index to number; unchecked access + ptr = &ptr->operator[](array_index(reference_token)); + } + break; + } + + default: + JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'")); + } + } + + return *ptr; + } + + /*! + @throw parse_error.106 if an array index begins with '0' + @throw parse_error.109 if an array index was not a number + @throw out_of_range.402 if the array index '-' is used + @throw out_of_range.404 if the JSON pointer can not be resolved + */ + BasicJsonType& get_checked(BasicJsonType* ptr) const + { + for (const auto& reference_token : reference_tokens) + { + switch (ptr->type()) + { + case detail::value_t::object: + { + // note: at performs range check + ptr = &ptr->at(reference_token); + break; + } + + case detail::value_t::array: + { + if (JSON_HEDLEY_UNLIKELY(reference_token == "-")) + { + // "-" always fails the range check + JSON_THROW(detail::out_of_range::create(402, + "array index '-' (" + std::to_string(ptr->m_value.array->size()) + + ") is out of range")); + } + + // note: at performs range check + ptr = &ptr->at(array_index(reference_token)); + break; + } + + default: + JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'")); + } + } + + return *ptr; + } + + /*! + @brief return a const reference to the pointed to value + + @param[in] ptr a JSON value + + @return const reference to the JSON value pointed to by the JSON + pointer + + @throw parse_error.106 if an array index begins with '0' + @throw parse_error.109 if an array index was not a number + @throw out_of_range.402 if the array index '-' is used + @throw out_of_range.404 if the JSON pointer can not be resolved + */ + const BasicJsonType& get_unchecked(const BasicJsonType* ptr) const + { + for (const auto& reference_token : reference_tokens) + { + switch (ptr->type()) + { + case detail::value_t::object: + { + // use unchecked object access + ptr = &ptr->operator[](reference_token); + break; + } + + case detail::value_t::array: + { + if (JSON_HEDLEY_UNLIKELY(reference_token == "-")) + { + // "-" cannot be used for const access + JSON_THROW(detail::out_of_range::create(402, + "array index '-' (" + std::to_string(ptr->m_value.array->size()) + + ") is out of range")); + } + + // use unchecked array access + ptr = &ptr->operator[](array_index(reference_token)); + break; + } + + default: + JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'")); + } + } + + return *ptr; + } + + /*! + @throw parse_error.106 if an array index begins with '0' + @throw parse_error.109 if an array index was not a number + @throw out_of_range.402 if the array index '-' is used + @throw out_of_range.404 if the JSON pointer can not be resolved + */ + const BasicJsonType& get_checked(const BasicJsonType* ptr) const + { + for (const auto& reference_token : reference_tokens) + { + switch (ptr->type()) + { + case detail::value_t::object: + { + // note: at performs range check + ptr = &ptr->at(reference_token); + break; + } + + case detail::value_t::array: + { + if (JSON_HEDLEY_UNLIKELY(reference_token == "-")) + { + // "-" always fails the range check + JSON_THROW(detail::out_of_range::create(402, + "array index '-' (" + std::to_string(ptr->m_value.array->size()) + + ") is out of range")); + } + + // note: at performs range check + ptr = &ptr->at(array_index(reference_token)); + break; + } + + default: + JSON_THROW(detail::out_of_range::create(404, "unresolved reference token '" + reference_token + "'")); + } + } + + return *ptr; + } + + /*! + @throw parse_error.106 if an array index begins with '0' + @throw parse_error.109 if an array index was not a number + */ + bool contains(const BasicJsonType* ptr) const + { + for (const auto& reference_token : reference_tokens) + { + switch (ptr->type()) + { + case detail::value_t::object: + { + if (!ptr->contains(reference_token)) + { + // we did not find the key in the object + return false; + } + + ptr = &ptr->operator[](reference_token); + break; + } + + case detail::value_t::array: + { + if (JSON_HEDLEY_UNLIKELY(reference_token == "-")) + { + // "-" always fails the range check + return false; + } + if (JSON_HEDLEY_UNLIKELY(reference_token.size() == 1 && !("0" <= reference_token && reference_token <= "9"))) + { + // invalid char + return false; + } + if (JSON_HEDLEY_UNLIKELY(reference_token.size() > 1)) + { + if (JSON_HEDLEY_UNLIKELY(!('1' <= reference_token[0] && reference_token[0] <= '9'))) + { + // first char should be between '1' and '9' + return false; + } + for (std::size_t i = 1; i < reference_token.size(); i++) + { + if (JSON_HEDLEY_UNLIKELY(!('0' <= reference_token[i] && reference_token[i] <= '9'))) + { + // other char should be between '0' and '9' + return false; + } + } + } + + const auto idx = array_index(reference_token); + if (idx >= ptr->size()) + { + // index out of range + return false; + } + + ptr = &ptr->operator[](idx); + break; + } + + default: + { + // we do not expect primitive values if there is still a + // reference token to process + return false; + } + } + } + + // no reference token left means we found a primitive value + return true; + } + + /*! + @brief split the string input to reference tokens + + @note This function is only called by the json_pointer constructor. + All exceptions below are documented there. + + @throw parse_error.107 if the pointer is not empty or begins with '/' + @throw parse_error.108 if character '~' is not followed by '0' or '1' + */ + static std::vector split(const std::string& reference_string) + { + std::vector result; + + // special case: empty reference string -> no reference tokens + if (reference_string.empty()) + { + return result; + } + + // check if nonempty reference string begins with slash + if (JSON_HEDLEY_UNLIKELY(reference_string[0] != '/')) + { + JSON_THROW(detail::parse_error::create(107, 1, + "JSON pointer must be empty or begin with '/' - was: '" + + reference_string + "'")); + } + + // extract the reference tokens: + // - slash: position of the last read slash (or end of string) + // - start: position after the previous slash + for ( + // search for the first slash after the first character + std::size_t slash = reference_string.find_first_of('/', 1), + // set the beginning of the first reference token + start = 1; + // we can stop if start == 0 (if slash == std::string::npos) + start != 0; + // set the beginning of the next reference token + // (will eventually be 0 if slash == std::string::npos) + start = (slash == std::string::npos) ? 0 : slash + 1, + // find next slash + slash = reference_string.find_first_of('/', start)) + { + // use the text between the beginning of the reference token + // (start) and the last slash (slash). + auto reference_token = reference_string.substr(start, slash - start); + + // check reference tokens are properly escaped + for (std::size_t pos = reference_token.find_first_of('~'); + pos != std::string::npos; + pos = reference_token.find_first_of('~', pos + 1)) + { + JSON_ASSERT(reference_token[pos] == '~'); + + // ~ must be followed by 0 or 1 + if (JSON_HEDLEY_UNLIKELY(pos == reference_token.size() - 1 || + (reference_token[pos + 1] != '0' && + reference_token[pos + 1] != '1'))) + { + JSON_THROW(detail::parse_error::create(108, 0, "escape character '~' must be followed with '0' or '1'")); + } + } + + // finally, store the reference token + unescape(reference_token); + result.push_back(reference_token); + } + + return result; + } + + /*! + @brief replace all occurrences of a substring by another string + + @param[in,out] s the string to manipulate; changed so that all + occurrences of @a f are replaced with @a t + @param[in] f the substring to replace with @a t + @param[in] t the string to replace @a f + + @pre The search string @a f must not be empty. **This precondition is + enforced with an assertion.** + + @since version 2.0.0 + */ + static void replace_substring(std::string& s, const std::string& f, + const std::string& t) + { + JSON_ASSERT(!f.empty()); + for (auto pos = s.find(f); // find first occurrence of f + pos != std::string::npos; // make sure f was found + s.replace(pos, f.size(), t), // replace with t, and + pos = s.find(f, pos + t.size())) // find next occurrence of f + {} + } + + /// escape "~" to "~0" and "/" to "~1" + static std::string escape(std::string s) + { + replace_substring(s, "~", "~0"); + replace_substring(s, "/", "~1"); + return s; + } + + /// unescape "~1" to tilde and "~0" to slash (order is important!) + static void unescape(std::string& s) + { + replace_substring(s, "~1", "/"); + replace_substring(s, "~0", "~"); + } + + /*! + @param[in] reference_string the reference string to the current value + @param[in] value the value to consider + @param[in,out] result the result object to insert values to + + @note Empty objects or arrays are flattened to `null`. + */ + static void flatten(const std::string& reference_string, + const BasicJsonType& value, + BasicJsonType& result) + { + switch (value.type()) + { + case detail::value_t::array: + { + if (value.m_value.array->empty()) + { + // flatten empty array as null + result[reference_string] = nullptr; + } + else + { + // iterate array and use index as reference string + for (std::size_t i = 0; i < value.m_value.array->size(); ++i) + { + flatten(reference_string + "/" + std::to_string(i), + value.m_value.array->operator[](i), result); + } + } + break; + } + + case detail::value_t::object: + { + if (value.m_value.object->empty()) + { + // flatten empty object as null + result[reference_string] = nullptr; + } + else + { + // iterate object and use keys as reference string + for (const auto& element : *value.m_value.object) + { + flatten(reference_string + "/" + escape(element.first), element.second, result); + } + } + break; + } + + default: + { + // add primitive value with its reference string + result[reference_string] = value; + break; + } + } + } + + /*! + @param[in] value flattened JSON + + @return unflattened JSON + + @throw parse_error.109 if array index is not a number + @throw type_error.314 if value is not an object + @throw type_error.315 if object values are not primitive + @throw type_error.313 if value cannot be unflattened + */ + static BasicJsonType + unflatten(const BasicJsonType& value) + { + if (JSON_HEDLEY_UNLIKELY(!value.is_object())) + { + JSON_THROW(detail::type_error::create(314, "only objects can be unflattened")); + } + + BasicJsonType result; + + // iterate the JSON object values + for (const auto& element : *value.m_value.object) + { + if (JSON_HEDLEY_UNLIKELY(!element.second.is_primitive())) + { + JSON_THROW(detail::type_error::create(315, "values in object must be primitive")); + } + + // assign value to reference pointed to by JSON pointer; Note that if + // the JSON pointer is "" (i.e., points to the whole value), function + // get_and_create returns a reference to result itself. An assignment + // will then create a primitive value. + json_pointer(element.first).get_and_create(result) = element.second; + } + + return result; + } + + /*! + @brief compares two JSON pointers for equality + + @param[in] lhs JSON pointer to compare + @param[in] rhs JSON pointer to compare + @return whether @a lhs is equal to @a rhs + + @complexity Linear in the length of the JSON pointer + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + */ + friend bool operator==(json_pointer const& lhs, + json_pointer const& rhs) noexcept + { + return lhs.reference_tokens == rhs.reference_tokens; + } + + /*! + @brief compares two JSON pointers for inequality + + @param[in] lhs JSON pointer to compare + @param[in] rhs JSON pointer to compare + @return whether @a lhs is not equal @a rhs + + @complexity Linear in the length of the JSON pointer + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + */ + friend bool operator!=(json_pointer const& lhs, + json_pointer const& rhs) noexcept + { + return !(lhs == rhs); + } + + /// the reference tokens + std::vector reference_tokens; +}; +} // namespace nlohmann + +// #include + + +#include +#include + +// #include + + +namespace nlohmann +{ +namespace detail +{ +template +class json_ref +{ + public: + using value_type = BasicJsonType; + + json_ref(value_type&& value) + : owned_value(std::move(value)) + , value_ref(&owned_value) + , is_rvalue(true) + {} + + json_ref(const value_type& value) + : value_ref(const_cast(&value)) + , is_rvalue(false) + {} + + json_ref(std::initializer_list init) + : owned_value(init) + , value_ref(&owned_value) + , is_rvalue(true) + {} + + template < + class... Args, + enable_if_t::value, int> = 0 > + json_ref(Args && ... args) + : owned_value(std::forward(args)...) + , value_ref(&owned_value) + , is_rvalue(true) + {} + + // class should be movable only + json_ref(json_ref&&) = default; + json_ref(const json_ref&) = delete; + json_ref& operator=(const json_ref&) = delete; + json_ref& operator=(json_ref&&) = delete; + ~json_ref() = default; + + value_type moved_or_copied() const + { + if (is_rvalue) + { + return std::move(*value_ref); + } + return *value_ref; + } + + value_type const& operator*() const + { + return *static_cast(value_ref); + } + + value_type const* operator->() const + { + return static_cast(value_ref); + } + + private: + mutable value_type owned_value = nullptr; + value_type* value_ref = nullptr; + const bool is_rvalue = true; +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + +// #include + +// #include + + +#include // reverse +#include // array +#include // uint8_t, uint16_t, uint32_t, uint64_t +#include // memcpy +#include // numeric_limits +#include // string +#include // isnan, isinf + +// #include + +// #include + +// #include + + +#include // copy +#include // size_t +#include // streamsize +#include // back_inserter +#include // shared_ptr, make_shared +#include // basic_ostream +#include // basic_string +#include // vector +// #include + + +namespace nlohmann +{ +namespace detail +{ +/// abstract output adapter interface +template struct output_adapter_protocol +{ + virtual void write_character(CharType c) = 0; + virtual void write_characters(const CharType* s, std::size_t length) = 0; + virtual ~output_adapter_protocol() = default; +}; + +/// a type to simplify interfaces +template +using output_adapter_t = std::shared_ptr>; + +/// output adapter for byte vectors +template +class output_vector_adapter : public output_adapter_protocol +{ + public: + explicit output_vector_adapter(std::vector& vec) noexcept + : v(vec) + {} + + void write_character(CharType c) override + { + v.push_back(c); + } + + JSON_HEDLEY_NON_NULL(2) + void write_characters(const CharType* s, std::size_t length) override + { + std::copy(s, s + length, std::back_inserter(v)); + } + + private: + std::vector& v; +}; + +/// output adapter for output streams +template +class output_stream_adapter : public output_adapter_protocol +{ + public: + explicit output_stream_adapter(std::basic_ostream& s) noexcept + : stream(s) + {} + + void write_character(CharType c) override + { + stream.put(c); + } + + JSON_HEDLEY_NON_NULL(2) + void write_characters(const CharType* s, std::size_t length) override + { + stream.write(s, static_cast(length)); + } + + private: + std::basic_ostream& stream; +}; + +/// output adapter for basic_string +template> +class output_string_adapter : public output_adapter_protocol +{ + public: + explicit output_string_adapter(StringType& s) noexcept + : str(s) + {} + + void write_character(CharType c) override + { + str.push_back(c); + } + + JSON_HEDLEY_NON_NULL(2) + void write_characters(const CharType* s, std::size_t length) override + { + str.append(s, length); + } + + private: + StringType& str; +}; + +template> +class output_adapter +{ + public: + output_adapter(std::vector& vec) + : oa(std::make_shared>(vec)) {} + + output_adapter(std::basic_ostream& s) + : oa(std::make_shared>(s)) {} + + output_adapter(StringType& s) + : oa(std::make_shared>(s)) {} + + operator output_adapter_t() + { + return oa; + } + + private: + output_adapter_t oa = nullptr; +}; +} // namespace detail +} // namespace nlohmann + + +namespace nlohmann +{ +namespace detail +{ +/////////////////// +// binary writer // +/////////////////// + +/*! +@brief serialization to CBOR and MessagePack values +*/ +template +class binary_writer +{ + using string_t = typename BasicJsonType::string_t; + using binary_t = typename BasicJsonType::binary_t; + using number_float_t = typename BasicJsonType::number_float_t; + + public: + /*! + @brief create a binary writer + + @param[in] adapter output adapter to write to + */ + explicit binary_writer(output_adapter_t adapter) : oa(adapter) + { + JSON_ASSERT(oa); + } + + /*! + @param[in] j JSON value to serialize + @pre j.type() == value_t::object + */ + void write_bson(const BasicJsonType& j) + { + switch (j.type()) + { + case value_t::object: + { + write_bson_object(*j.m_value.object); + break; + } + + default: + { + JSON_THROW(type_error::create(317, "to serialize to BSON, top-level type must be object, but is " + std::string(j.type_name()))); + } + } + } + + /*! + @param[in] j JSON value to serialize + */ + void write_cbor(const BasicJsonType& j) + { + switch (j.type()) + { + case value_t::null: + { + oa->write_character(to_char_type(0xF6)); + break; + } + + case value_t::boolean: + { + oa->write_character(j.m_value.boolean + ? to_char_type(0xF5) + : to_char_type(0xF4)); + break; + } + + case value_t::number_integer: + { + if (j.m_value.number_integer >= 0) + { + // CBOR does not differentiate between positive signed + // integers and unsigned integers. Therefore, we used the + // code from the value_t::number_unsigned case here. + if (j.m_value.number_integer <= 0x17) + { + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_integer <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x18)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_integer <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x19)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_integer <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x1A)); + write_number(static_cast(j.m_value.number_integer)); + } + else + { + oa->write_character(to_char_type(0x1B)); + write_number(static_cast(j.m_value.number_integer)); + } + } + else + { + // The conversions below encode the sign in the first + // byte, and the value is converted to a positive number. + const auto positive_number = -1 - j.m_value.number_integer; + if (j.m_value.number_integer >= -24) + { + write_number(static_cast(0x20 + positive_number)); + } + else if (positive_number <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x38)); + write_number(static_cast(positive_number)); + } + else if (positive_number <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x39)); + write_number(static_cast(positive_number)); + } + else if (positive_number <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x3A)); + write_number(static_cast(positive_number)); + } + else + { + oa->write_character(to_char_type(0x3B)); + write_number(static_cast(positive_number)); + } + } + break; + } + + case value_t::number_unsigned: + { + if (j.m_value.number_unsigned <= 0x17) + { + write_number(static_cast(j.m_value.number_unsigned)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x18)); + write_number(static_cast(j.m_value.number_unsigned)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x19)); + write_number(static_cast(j.m_value.number_unsigned)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x1A)); + write_number(static_cast(j.m_value.number_unsigned)); + } + else + { + oa->write_character(to_char_type(0x1B)); + write_number(static_cast(j.m_value.number_unsigned)); + } + break; + } + + case value_t::number_float: + { + if (std::isnan(j.m_value.number_float)) + { + // NaN is 0xf97e00 in CBOR + oa->write_character(to_char_type(0xF9)); + oa->write_character(to_char_type(0x7E)); + oa->write_character(to_char_type(0x00)); + } + else if (std::isinf(j.m_value.number_float)) + { + // Infinity is 0xf97c00, -Infinity is 0xf9fc00 + oa->write_character(to_char_type(0xf9)); + oa->write_character(j.m_value.number_float > 0 ? to_char_type(0x7C) : to_char_type(0xFC)); + oa->write_character(to_char_type(0x00)); + } + else + { + write_compact_float(j.m_value.number_float, detail::input_format_t::cbor); + } + break; + } + + case value_t::string: + { + // step 1: write control byte and the string length + const auto N = j.m_value.string->size(); + if (N <= 0x17) + { + write_number(static_cast(0x60 + N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x78)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x79)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x7A)); + write_number(static_cast(N)); + } + // LCOV_EXCL_START + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x7B)); + write_number(static_cast(N)); + } + // LCOV_EXCL_STOP + + // step 2: write the string + oa->write_characters( + reinterpret_cast(j.m_value.string->c_str()), + j.m_value.string->size()); + break; + } + + case value_t::array: + { + // step 1: write control byte and the array size + const auto N = j.m_value.array->size(); + if (N <= 0x17) + { + write_number(static_cast(0x80 + N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x98)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x99)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x9A)); + write_number(static_cast(N)); + } + // LCOV_EXCL_START + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x9B)); + write_number(static_cast(N)); + } + // LCOV_EXCL_STOP + + // step 2: write each element + for (const auto& el : *j.m_value.array) + { + write_cbor(el); + } + break; + } + + case value_t::binary: + { + if (j.m_value.binary->has_subtype()) + { + write_number(static_cast(0xd8)); + write_number(j.m_value.binary->subtype()); + } + + // step 1: write control byte and the binary array size + const auto N = j.m_value.binary->size(); + if (N <= 0x17) + { + write_number(static_cast(0x40 + N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x58)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x59)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x5A)); + write_number(static_cast(N)); + } + // LCOV_EXCL_START + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0x5B)); + write_number(static_cast(N)); + } + // LCOV_EXCL_STOP + + // step 2: write each element + oa->write_characters( + reinterpret_cast(j.m_value.binary->data()), + N); + + break; + } + + case value_t::object: + { + // step 1: write control byte and the object size + const auto N = j.m_value.object->size(); + if (N <= 0x17) + { + write_number(static_cast(0xA0 + N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0xB8)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0xB9)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0xBA)); + write_number(static_cast(N)); + } + // LCOV_EXCL_START + else if (N <= (std::numeric_limits::max)()) + { + oa->write_character(to_char_type(0xBB)); + write_number(static_cast(N)); + } + // LCOV_EXCL_STOP + + // step 2: write each element + for (const auto& el : *j.m_value.object) + { + write_cbor(el.first); + write_cbor(el.second); + } + break; + } + + default: + break; + } + } + + /*! + @param[in] j JSON value to serialize + */ + void write_msgpack(const BasicJsonType& j) + { + switch (j.type()) + { + case value_t::null: // nil + { + oa->write_character(to_char_type(0xC0)); + break; + } + + case value_t::boolean: // true and false + { + oa->write_character(j.m_value.boolean + ? to_char_type(0xC3) + : to_char_type(0xC2)); + break; + } + + case value_t::number_integer: + { + if (j.m_value.number_integer >= 0) + { + // MessagePack does not differentiate between positive + // signed integers and unsigned integers. Therefore, we used + // the code from the value_t::number_unsigned case here. + if (j.m_value.number_unsigned < 128) + { + // positive fixnum + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + // uint 8 + oa->write_character(to_char_type(0xCC)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + // uint 16 + oa->write_character(to_char_type(0xCD)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + // uint 32 + oa->write_character(to_char_type(0xCE)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + // uint 64 + oa->write_character(to_char_type(0xCF)); + write_number(static_cast(j.m_value.number_integer)); + } + } + else + { + if (j.m_value.number_integer >= -32) + { + // negative fixnum + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_integer >= (std::numeric_limits::min)() && + j.m_value.number_integer <= (std::numeric_limits::max)()) + { + // int 8 + oa->write_character(to_char_type(0xD0)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_integer >= (std::numeric_limits::min)() && + j.m_value.number_integer <= (std::numeric_limits::max)()) + { + // int 16 + oa->write_character(to_char_type(0xD1)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_integer >= (std::numeric_limits::min)() && + j.m_value.number_integer <= (std::numeric_limits::max)()) + { + // int 32 + oa->write_character(to_char_type(0xD2)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_integer >= (std::numeric_limits::min)() && + j.m_value.number_integer <= (std::numeric_limits::max)()) + { + // int 64 + oa->write_character(to_char_type(0xD3)); + write_number(static_cast(j.m_value.number_integer)); + } + } + break; + } + + case value_t::number_unsigned: + { + if (j.m_value.number_unsigned < 128) + { + // positive fixnum + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + // uint 8 + oa->write_character(to_char_type(0xCC)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + // uint 16 + oa->write_character(to_char_type(0xCD)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + // uint 32 + oa->write_character(to_char_type(0xCE)); + write_number(static_cast(j.m_value.number_integer)); + } + else if (j.m_value.number_unsigned <= (std::numeric_limits::max)()) + { + // uint 64 + oa->write_character(to_char_type(0xCF)); + write_number(static_cast(j.m_value.number_integer)); + } + break; + } + + case value_t::number_float: + { + write_compact_float(j.m_value.number_float, detail::input_format_t::msgpack); + break; + } + + case value_t::string: + { + // step 1: write control byte and the string length + const auto N = j.m_value.string->size(); + if (N <= 31) + { + // fixstr + write_number(static_cast(0xA0 | N)); + } + else if (N <= (std::numeric_limits::max)()) + { + // str 8 + oa->write_character(to_char_type(0xD9)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + // str 16 + oa->write_character(to_char_type(0xDA)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + // str 32 + oa->write_character(to_char_type(0xDB)); + write_number(static_cast(N)); + } + + // step 2: write the string + oa->write_characters( + reinterpret_cast(j.m_value.string->c_str()), + j.m_value.string->size()); + break; + } + + case value_t::array: + { + // step 1: write control byte and the array size + const auto N = j.m_value.array->size(); + if (N <= 15) + { + // fixarray + write_number(static_cast(0x90 | N)); + } + else if (N <= (std::numeric_limits::max)()) + { + // array 16 + oa->write_character(to_char_type(0xDC)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + // array 32 + oa->write_character(to_char_type(0xDD)); + write_number(static_cast(N)); + } + + // step 2: write each element + for (const auto& el : *j.m_value.array) + { + write_msgpack(el); + } + break; + } + + case value_t::binary: + { + // step 0: determine if the binary type has a set subtype to + // determine whether or not to use the ext or fixext types + const bool use_ext = j.m_value.binary->has_subtype(); + + // step 1: write control byte and the byte string length + const auto N = j.m_value.binary->size(); + if (N <= (std::numeric_limits::max)()) + { + std::uint8_t output_type{}; + bool fixed = true; + if (use_ext) + { + switch (N) + { + case 1: + output_type = 0xD4; // fixext 1 + break; + case 2: + output_type = 0xD5; // fixext 2 + break; + case 4: + output_type = 0xD6; // fixext 4 + break; + case 8: + output_type = 0xD7; // fixext 8 + break; + case 16: + output_type = 0xD8; // fixext 16 + break; + default: + output_type = 0xC7; // ext 8 + fixed = false; + break; + } + + } + else + { + output_type = 0xC4; // bin 8 + fixed = false; + } + + oa->write_character(to_char_type(output_type)); + if (!fixed) + { + write_number(static_cast(N)); + } + } + else if (N <= (std::numeric_limits::max)()) + { + std::uint8_t output_type = use_ext + ? 0xC8 // ext 16 + : 0xC5; // bin 16 + + oa->write_character(to_char_type(output_type)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + std::uint8_t output_type = use_ext + ? 0xC9 // ext 32 + : 0xC6; // bin 32 + + oa->write_character(to_char_type(output_type)); + write_number(static_cast(N)); + } + + // step 1.5: if this is an ext type, write the subtype + if (use_ext) + { + write_number(static_cast(j.m_value.binary->subtype())); + } + + // step 2: write the byte string + oa->write_characters( + reinterpret_cast(j.m_value.binary->data()), + N); + + break; + } + + case value_t::object: + { + // step 1: write control byte and the object size + const auto N = j.m_value.object->size(); + if (N <= 15) + { + // fixmap + write_number(static_cast(0x80 | (N & 0xF))); + } + else if (N <= (std::numeric_limits::max)()) + { + // map 16 + oa->write_character(to_char_type(0xDE)); + write_number(static_cast(N)); + } + else if (N <= (std::numeric_limits::max)()) + { + // map 32 + oa->write_character(to_char_type(0xDF)); + write_number(static_cast(N)); + } + + // step 2: write each element + for (const auto& el : *j.m_value.object) + { + write_msgpack(el.first); + write_msgpack(el.second); + } + break; + } + + default: + break; + } + } + + /*! + @param[in] j JSON value to serialize + @param[in] use_count whether to use '#' prefixes (optimized format) + @param[in] use_type whether to use '$' prefixes (optimized format) + @param[in] add_prefix whether prefixes need to be used for this value + */ + void write_ubjson(const BasicJsonType& j, const bool use_count, + const bool use_type, const bool add_prefix = true) + { + switch (j.type()) + { + case value_t::null: + { + if (add_prefix) + { + oa->write_character(to_char_type('Z')); + } + break; + } + + case value_t::boolean: + { + if (add_prefix) + { + oa->write_character(j.m_value.boolean + ? to_char_type('T') + : to_char_type('F')); + } + break; + } + + case value_t::number_integer: + { + write_number_with_ubjson_prefix(j.m_value.number_integer, add_prefix); + break; + } + + case value_t::number_unsigned: + { + write_number_with_ubjson_prefix(j.m_value.number_unsigned, add_prefix); + break; + } + + case value_t::number_float: + { + write_number_with_ubjson_prefix(j.m_value.number_float, add_prefix); + break; + } + + case value_t::string: + { + if (add_prefix) + { + oa->write_character(to_char_type('S')); + } + write_number_with_ubjson_prefix(j.m_value.string->size(), true); + oa->write_characters( + reinterpret_cast(j.m_value.string->c_str()), + j.m_value.string->size()); + break; + } + + case value_t::array: + { + if (add_prefix) + { + oa->write_character(to_char_type('[')); + } + + bool prefix_required = true; + if (use_type && !j.m_value.array->empty()) + { + JSON_ASSERT(use_count); + const CharType first_prefix = ubjson_prefix(j.front()); + const bool same_prefix = std::all_of(j.begin() + 1, j.end(), + [this, first_prefix](const BasicJsonType & v) + { + return ubjson_prefix(v) == first_prefix; + }); + + if (same_prefix) + { + prefix_required = false; + oa->write_character(to_char_type('$')); + oa->write_character(first_prefix); + } + } + + if (use_count) + { + oa->write_character(to_char_type('#')); + write_number_with_ubjson_prefix(j.m_value.array->size(), true); + } + + for (const auto& el : *j.m_value.array) + { + write_ubjson(el, use_count, use_type, prefix_required); + } + + if (!use_count) + { + oa->write_character(to_char_type(']')); + } + + break; + } + + case value_t::binary: + { + if (add_prefix) + { + oa->write_character(to_char_type('[')); + } + + if (use_type && !j.m_value.binary->empty()) + { + JSON_ASSERT(use_count); + oa->write_character(to_char_type('$')); + oa->write_character('U'); + } + + if (use_count) + { + oa->write_character(to_char_type('#')); + write_number_with_ubjson_prefix(j.m_value.binary->size(), true); + } + + if (use_type) + { + oa->write_characters( + reinterpret_cast(j.m_value.binary->data()), + j.m_value.binary->size()); + } + else + { + for (size_t i = 0; i < j.m_value.binary->size(); ++i) + { + oa->write_character(to_char_type('U')); + oa->write_character(j.m_value.binary->data()[i]); + } + } + + if (!use_count) + { + oa->write_character(to_char_type(']')); + } + + break; + } + + case value_t::object: + { + if (add_prefix) + { + oa->write_character(to_char_type('{')); + } + + bool prefix_required = true; + if (use_type && !j.m_value.object->empty()) + { + JSON_ASSERT(use_count); + const CharType first_prefix = ubjson_prefix(j.front()); + const bool same_prefix = std::all_of(j.begin(), j.end(), + [this, first_prefix](const BasicJsonType & v) + { + return ubjson_prefix(v) == first_prefix; + }); + + if (same_prefix) + { + prefix_required = false; + oa->write_character(to_char_type('$')); + oa->write_character(first_prefix); + } + } + + if (use_count) + { + oa->write_character(to_char_type('#')); + write_number_with_ubjson_prefix(j.m_value.object->size(), true); + } + + for (const auto& el : *j.m_value.object) + { + write_number_with_ubjson_prefix(el.first.size(), true); + oa->write_characters( + reinterpret_cast(el.first.c_str()), + el.first.size()); + write_ubjson(el.second, use_count, use_type, prefix_required); + } + + if (!use_count) + { + oa->write_character(to_char_type('}')); + } + + break; + } + + default: + break; + } + } + + private: + ////////// + // BSON // + ////////// + + /*! + @return The size of a BSON document entry header, including the id marker + and the entry name size (and its null-terminator). + */ + static std::size_t calc_bson_entry_header_size(const string_t& name) + { + const auto it = name.find(static_cast(0)); + if (JSON_HEDLEY_UNLIKELY(it != BasicJsonType::string_t::npos)) + { + JSON_THROW(out_of_range::create(409, + "BSON key cannot contain code point U+0000 (at byte " + std::to_string(it) + ")")); + } + + return /*id*/ 1ul + name.size() + /*zero-terminator*/1u; + } + + /*! + @brief Writes the given @a element_type and @a name to the output adapter + */ + void write_bson_entry_header(const string_t& name, + const std::uint8_t element_type) + { + oa->write_character(to_char_type(element_type)); // boolean + oa->write_characters( + reinterpret_cast(name.c_str()), + name.size() + 1u); + } + + /*! + @brief Writes a BSON element with key @a name and boolean value @a value + */ + void write_bson_boolean(const string_t& name, + const bool value) + { + write_bson_entry_header(name, 0x08); + oa->write_character(value ? to_char_type(0x01) : to_char_type(0x00)); + } + + /*! + @brief Writes a BSON element with key @a name and double value @a value + */ + void write_bson_double(const string_t& name, + const double value) + { + write_bson_entry_header(name, 0x01); + write_number(value); + } + + /*! + @return The size of the BSON-encoded string in @a value + */ + static std::size_t calc_bson_string_size(const string_t& value) + { + return sizeof(std::int32_t) + value.size() + 1ul; + } + + /*! + @brief Writes a BSON element with key @a name and string value @a value + */ + void write_bson_string(const string_t& name, + const string_t& value) + { + write_bson_entry_header(name, 0x02); + + write_number(static_cast(value.size() + 1ul)); + oa->write_characters( + reinterpret_cast(value.c_str()), + value.size() + 1); + } + + /*! + @brief Writes a BSON element with key @a name and null value + */ + void write_bson_null(const string_t& name) + { + write_bson_entry_header(name, 0x0A); + } + + /*! + @return The size of the BSON-encoded integer @a value + */ + static std::size_t calc_bson_integer_size(const std::int64_t value) + { + return (std::numeric_limits::min)() <= value && value <= (std::numeric_limits::max)() + ? sizeof(std::int32_t) + : sizeof(std::int64_t); + } + + /*! + @brief Writes a BSON element with key @a name and integer @a value + */ + void write_bson_integer(const string_t& name, + const std::int64_t value) + { + if ((std::numeric_limits::min)() <= value && value <= (std::numeric_limits::max)()) + { + write_bson_entry_header(name, 0x10); // int32 + write_number(static_cast(value)); + } + else + { + write_bson_entry_header(name, 0x12); // int64 + write_number(static_cast(value)); + } + } + + /*! + @return The size of the BSON-encoded unsigned integer in @a j + */ + static constexpr std::size_t calc_bson_unsigned_size(const std::uint64_t value) noexcept + { + return (value <= static_cast((std::numeric_limits::max)())) + ? sizeof(std::int32_t) + : sizeof(std::int64_t); + } + + /*! + @brief Writes a BSON element with key @a name and unsigned @a value + */ + void write_bson_unsigned(const string_t& name, + const std::uint64_t value) + { + if (value <= static_cast((std::numeric_limits::max)())) + { + write_bson_entry_header(name, 0x10 /* int32 */); + write_number(static_cast(value)); + } + else if (value <= static_cast((std::numeric_limits::max)())) + { + write_bson_entry_header(name, 0x12 /* int64 */); + write_number(static_cast(value)); + } + else + { + JSON_THROW(out_of_range::create(407, "integer number " + std::to_string(value) + " cannot be represented by BSON as it does not fit int64")); + } + } + + /*! + @brief Writes a BSON element with key @a name and object @a value + */ + void write_bson_object_entry(const string_t& name, + const typename BasicJsonType::object_t& value) + { + write_bson_entry_header(name, 0x03); // object + write_bson_object(value); + } + + /*! + @return The size of the BSON-encoded array @a value + */ + static std::size_t calc_bson_array_size(const typename BasicJsonType::array_t& value) + { + std::size_t array_index = 0ul; + + const std::size_t embedded_document_size = std::accumulate(std::begin(value), std::end(value), std::size_t(0), [&array_index](std::size_t result, const typename BasicJsonType::array_t::value_type & el) + { + return result + calc_bson_element_size(std::to_string(array_index++), el); + }); + + return sizeof(std::int32_t) + embedded_document_size + 1ul; + } + + /*! + @return The size of the BSON-encoded binary array @a value + */ + static std::size_t calc_bson_binary_size(const typename BasicJsonType::binary_t& value) + { + return sizeof(std::int32_t) + value.size() + 1ul; + } + + /*! + @brief Writes a BSON element with key @a name and array @a value + */ + void write_bson_array(const string_t& name, + const typename BasicJsonType::array_t& value) + { + write_bson_entry_header(name, 0x04); // array + write_number(static_cast(calc_bson_array_size(value))); + + std::size_t array_index = 0ul; + + for (const auto& el : value) + { + write_bson_element(std::to_string(array_index++), el); + } + + oa->write_character(to_char_type(0x00)); + } + + /*! + @brief Writes a BSON element with key @a name and binary value @a value + */ + void write_bson_binary(const string_t& name, + const binary_t& value) + { + write_bson_entry_header(name, 0x05); + + write_number(static_cast(value.size())); + write_number(value.has_subtype() ? value.subtype() : std::uint8_t(0x00)); + + oa->write_characters(reinterpret_cast(value.data()), value.size()); + } + + /*! + @brief Calculates the size necessary to serialize the JSON value @a j with its @a name + @return The calculated size for the BSON document entry for @a j with the given @a name. + */ + static std::size_t calc_bson_element_size(const string_t& name, + const BasicJsonType& j) + { + const auto header_size = calc_bson_entry_header_size(name); + switch (j.type()) + { + case value_t::object: + return header_size + calc_bson_object_size(*j.m_value.object); + + case value_t::array: + return header_size + calc_bson_array_size(*j.m_value.array); + + case value_t::binary: + return header_size + calc_bson_binary_size(*j.m_value.binary); + + case value_t::boolean: + return header_size + 1ul; + + case value_t::number_float: + return header_size + 8ul; + + case value_t::number_integer: + return header_size + calc_bson_integer_size(j.m_value.number_integer); + + case value_t::number_unsigned: + return header_size + calc_bson_unsigned_size(j.m_value.number_unsigned); + + case value_t::string: + return header_size + calc_bson_string_size(*j.m_value.string); + + case value_t::null: + return header_size + 0ul; + + // LCOV_EXCL_START + default: + JSON_ASSERT(false); + return 0ul; + // LCOV_EXCL_STOP + } + } + + /*! + @brief Serializes the JSON value @a j to BSON and associates it with the + key @a name. + @param name The name to associate with the JSON entity @a j within the + current BSON document + @return The size of the BSON entry + */ + void write_bson_element(const string_t& name, + const BasicJsonType& j) + { + switch (j.type()) + { + case value_t::object: + return write_bson_object_entry(name, *j.m_value.object); + + case value_t::array: + return write_bson_array(name, *j.m_value.array); + + case value_t::binary: + return write_bson_binary(name, *j.m_value.binary); + + case value_t::boolean: + return write_bson_boolean(name, j.m_value.boolean); + + case value_t::number_float: + return write_bson_double(name, j.m_value.number_float); + + case value_t::number_integer: + return write_bson_integer(name, j.m_value.number_integer); + + case value_t::number_unsigned: + return write_bson_unsigned(name, j.m_value.number_unsigned); + + case value_t::string: + return write_bson_string(name, *j.m_value.string); + + case value_t::null: + return write_bson_null(name); + + // LCOV_EXCL_START + default: + JSON_ASSERT(false); + return; + // LCOV_EXCL_STOP + } + } + + /*! + @brief Calculates the size of the BSON serialization of the given + JSON-object @a j. + @param[in] j JSON value to serialize + @pre j.type() == value_t::object + */ + static std::size_t calc_bson_object_size(const typename BasicJsonType::object_t& value) + { + std::size_t document_size = std::accumulate(value.begin(), value.end(), std::size_t(0), + [](size_t result, const typename BasicJsonType::object_t::value_type & el) + { + return result += calc_bson_element_size(el.first, el.second); + }); + + return sizeof(std::int32_t) + document_size + 1ul; + } + + /*! + @param[in] j JSON value to serialize + @pre j.type() == value_t::object + */ + void write_bson_object(const typename BasicJsonType::object_t& value) + { + write_number(static_cast(calc_bson_object_size(value))); + + for (const auto& el : value) + { + write_bson_element(el.first, el.second); + } + + oa->write_character(to_char_type(0x00)); + } + + ////////// + // CBOR // + ////////// + + static constexpr CharType get_cbor_float_prefix(float /*unused*/) + { + return to_char_type(0xFA); // Single-Precision Float + } + + static constexpr CharType get_cbor_float_prefix(double /*unused*/) + { + return to_char_type(0xFB); // Double-Precision Float + } + + ///////////// + // MsgPack // + ///////////// + + static constexpr CharType get_msgpack_float_prefix(float /*unused*/) + { + return to_char_type(0xCA); // float 32 + } + + static constexpr CharType get_msgpack_float_prefix(double /*unused*/) + { + return to_char_type(0xCB); // float 64 + } + + //////////// + // UBJSON // + //////////// + + // UBJSON: write number (floating point) + template::value, int>::type = 0> + void write_number_with_ubjson_prefix(const NumberType n, + const bool add_prefix) + { + if (add_prefix) + { + oa->write_character(get_ubjson_float_prefix(n)); + } + write_number(n); + } + + // UBJSON: write number (unsigned integer) + template::value, int>::type = 0> + void write_number_with_ubjson_prefix(const NumberType n, + const bool add_prefix) + { + if (n <= static_cast((std::numeric_limits::max)())) + { + if (add_prefix) + { + oa->write_character(to_char_type('i')); // int8 + } + write_number(static_cast(n)); + } + else if (n <= (std::numeric_limits::max)()) + { + if (add_prefix) + { + oa->write_character(to_char_type('U')); // uint8 + } + write_number(static_cast(n)); + } + else if (n <= static_cast((std::numeric_limits::max)())) + { + if (add_prefix) + { + oa->write_character(to_char_type('I')); // int16 + } + write_number(static_cast(n)); + } + else if (n <= static_cast((std::numeric_limits::max)())) + { + if (add_prefix) + { + oa->write_character(to_char_type('l')); // int32 + } + write_number(static_cast(n)); + } + else if (n <= static_cast((std::numeric_limits::max)())) + { + if (add_prefix) + { + oa->write_character(to_char_type('L')); // int64 + } + write_number(static_cast(n)); + } + else + { + if (add_prefix) + { + oa->write_character(to_char_type('H')); // high-precision number + } + + const auto number = BasicJsonType(n).dump(); + write_number_with_ubjson_prefix(number.size(), true); + for (std::size_t i = 0; i < number.size(); ++i) + { + oa->write_character(to_char_type(static_cast(number[i]))); + } + } + } + + // UBJSON: write number (signed integer) + template < typename NumberType, typename std::enable_if < + std::is_signed::value&& + !std::is_floating_point::value, int >::type = 0 > + void write_number_with_ubjson_prefix(const NumberType n, + const bool add_prefix) + { + if ((std::numeric_limits::min)() <= n && n <= (std::numeric_limits::max)()) + { + if (add_prefix) + { + oa->write_character(to_char_type('i')); // int8 + } + write_number(static_cast(n)); + } + else if (static_cast((std::numeric_limits::min)()) <= n && n <= static_cast((std::numeric_limits::max)())) + { + if (add_prefix) + { + oa->write_character(to_char_type('U')); // uint8 + } + write_number(static_cast(n)); + } + else if ((std::numeric_limits::min)() <= n && n <= (std::numeric_limits::max)()) + { + if (add_prefix) + { + oa->write_character(to_char_type('I')); // int16 + } + write_number(static_cast(n)); + } + else if ((std::numeric_limits::min)() <= n && n <= (std::numeric_limits::max)()) + { + if (add_prefix) + { + oa->write_character(to_char_type('l')); // int32 + } + write_number(static_cast(n)); + } + else if ((std::numeric_limits::min)() <= n && n <= (std::numeric_limits::max)()) + { + if (add_prefix) + { + oa->write_character(to_char_type('L')); // int64 + } + write_number(static_cast(n)); + } + // LCOV_EXCL_START + else + { + if (add_prefix) + { + oa->write_character(to_char_type('H')); // high-precision number + } + + const auto number = BasicJsonType(n).dump(); + write_number_with_ubjson_prefix(number.size(), true); + for (std::size_t i = 0; i < number.size(); ++i) + { + oa->write_character(to_char_type(static_cast(number[i]))); + } + } + // LCOV_EXCL_STOP + } + + /*! + @brief determine the type prefix of container values + */ + CharType ubjson_prefix(const BasicJsonType& j) const noexcept + { + switch (j.type()) + { + case value_t::null: + return 'Z'; + + case value_t::boolean: + return j.m_value.boolean ? 'T' : 'F'; + + case value_t::number_integer: + { + if ((std::numeric_limits::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits::max)()) + { + return 'i'; + } + if ((std::numeric_limits::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits::max)()) + { + return 'U'; + } + if ((std::numeric_limits::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits::max)()) + { + return 'I'; + } + if ((std::numeric_limits::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits::max)()) + { + return 'l'; + } + if ((std::numeric_limits::min)() <= j.m_value.number_integer && j.m_value.number_integer <= (std::numeric_limits::max)()) + { + return 'L'; + } + // anything else is treated as high-precision number + return 'H'; // LCOV_EXCL_LINE + } + + case value_t::number_unsigned: + { + if (j.m_value.number_unsigned <= static_cast((std::numeric_limits::max)())) + { + return 'i'; + } + if (j.m_value.number_unsigned <= static_cast((std::numeric_limits::max)())) + { + return 'U'; + } + if (j.m_value.number_unsigned <= static_cast((std::numeric_limits::max)())) + { + return 'I'; + } + if (j.m_value.number_unsigned <= static_cast((std::numeric_limits::max)())) + { + return 'l'; + } + if (j.m_value.number_unsigned <= static_cast((std::numeric_limits::max)())) + { + return 'L'; + } + // anything else is treated as high-precision number + return 'H'; // LCOV_EXCL_LINE + } + + case value_t::number_float: + return get_ubjson_float_prefix(j.m_value.number_float); + + case value_t::string: + return 'S'; + + case value_t::array: // fallthrough + case value_t::binary: + return '['; + + case value_t::object: + return '{'; + + default: // discarded values + return 'N'; + } + } + + static constexpr CharType get_ubjson_float_prefix(float /*unused*/) + { + return 'd'; // float 32 + } + + static constexpr CharType get_ubjson_float_prefix(double /*unused*/) + { + return 'D'; // float 64 + } + + /////////////////////// + // Utility functions // + /////////////////////// + + /* + @brief write a number to output input + @param[in] n number of type @a NumberType + @tparam NumberType the type of the number + @tparam OutputIsLittleEndian Set to true if output data is + required to be little endian + + @note This function needs to respect the system's endianess, because bytes + in CBOR, MessagePack, and UBJSON are stored in network order (big + endian) and therefore need reordering on little endian systems. + */ + template + void write_number(const NumberType n) + { + // step 1: write number to array of length NumberType + std::array vec; + std::memcpy(vec.data(), &n, sizeof(NumberType)); + + // step 2: write array to output (with possible reordering) + if (is_little_endian != OutputIsLittleEndian) + { + // reverse byte order prior to conversion if necessary + std::reverse(vec.begin(), vec.end()); + } + + oa->write_characters(vec.data(), sizeof(NumberType)); + } + + void write_compact_float(const number_float_t n, detail::input_format_t format) + { + if (static_cast(n) >= static_cast(std::numeric_limits::lowest()) && + static_cast(n) <= static_cast((std::numeric_limits::max)()) && + static_cast(static_cast(n)) == static_cast(n)) + { + oa->write_character(format == detail::input_format_t::cbor + ? get_cbor_float_prefix(static_cast(n)) + : get_msgpack_float_prefix(static_cast(n))); + write_number(static_cast(n)); + } + else + { + oa->write_character(format == detail::input_format_t::cbor + ? get_cbor_float_prefix(n) + : get_msgpack_float_prefix(n)); + write_number(n); + } + } + + public: + // The following to_char_type functions are implement the conversion + // between uint8_t and CharType. In case CharType is not unsigned, + // such a conversion is required to allow values greater than 128. + // See for a discussion. + template < typename C = CharType, + enable_if_t < std::is_signed::value && std::is_signed::value > * = nullptr > + static constexpr CharType to_char_type(std::uint8_t x) noexcept + { + return *reinterpret_cast(&x); + } + + template < typename C = CharType, + enable_if_t < std::is_signed::value && std::is_unsigned::value > * = nullptr > + static CharType to_char_type(std::uint8_t x) noexcept + { + static_assert(sizeof(std::uint8_t) == sizeof(CharType), "size of CharType must be equal to std::uint8_t"); + static_assert(std::is_trivial::value, "CharType must be trivial"); + CharType result; + std::memcpy(&result, &x, sizeof(x)); + return result; + } + + template::value>* = nullptr> + static constexpr CharType to_char_type(std::uint8_t x) noexcept + { + return x; + } + + template < typename InputCharType, typename C = CharType, + enable_if_t < + std::is_signed::value && + std::is_signed::value && + std::is_same::type>::value + > * = nullptr > + static constexpr CharType to_char_type(InputCharType x) noexcept + { + return x; + } + + private: + /// whether we can assume little endianess + const bool is_little_endian = little_endianess(); + + /// the output + output_adapter_t oa = nullptr; +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + + +#include // reverse, remove, fill, find, none_of +#include // array +#include // localeconv, lconv +#include // labs, isfinite, isnan, signbit +#include // size_t, ptrdiff_t +#include // uint8_t +#include // snprintf +#include // numeric_limits +#include // string, char_traits +#include // is_same +#include // move + +// #include + + +#include // array +#include // signbit, isfinite +#include // intN_t, uintN_t +#include // memcpy, memmove +#include // numeric_limits +#include // conditional + +// #include + + +namespace nlohmann +{ +namespace detail +{ + +/*! +@brief implements the Grisu2 algorithm for binary to decimal floating-point +conversion. + +This implementation is a slightly modified version of the reference +implementation which may be obtained from +http://florian.loitsch.com/publications (bench.tar.gz). + +The code is distributed under the MIT license, Copyright (c) 2009 Florian Loitsch. + +For a detailed description of the algorithm see: + +[1] Loitsch, "Printing Floating-Point Numbers Quickly and Accurately with + Integers", Proceedings of the ACM SIGPLAN 2010 Conference on Programming + Language Design and Implementation, PLDI 2010 +[2] Burger, Dybvig, "Printing Floating-Point Numbers Quickly and Accurately", + Proceedings of the ACM SIGPLAN 1996 Conference on Programming Language + Design and Implementation, PLDI 1996 +*/ +namespace dtoa_impl +{ + +template +Target reinterpret_bits(const Source source) +{ + static_assert(sizeof(Target) == sizeof(Source), "size mismatch"); + + Target target; + std::memcpy(&target, &source, sizeof(Source)); + return target; +} + +struct diyfp // f * 2^e +{ + static constexpr int kPrecision = 64; // = q + + std::uint64_t f = 0; + int e = 0; + + constexpr diyfp(std::uint64_t f_, int e_) noexcept : f(f_), e(e_) {} + + /*! + @brief returns x - y + @pre x.e == y.e and x.f >= y.f + */ + static diyfp sub(const diyfp& x, const diyfp& y) noexcept + { + JSON_ASSERT(x.e == y.e); + JSON_ASSERT(x.f >= y.f); + + return {x.f - y.f, x.e}; + } + + /*! + @brief returns x * y + @note The result is rounded. (Only the upper q bits are returned.) + */ + static diyfp mul(const diyfp& x, const diyfp& y) noexcept + { + static_assert(kPrecision == 64, "internal error"); + + // Computes: + // f = round((x.f * y.f) / 2^q) + // e = x.e + y.e + q + + // Emulate the 64-bit * 64-bit multiplication: + // + // p = u * v + // = (u_lo + 2^32 u_hi) (v_lo + 2^32 v_hi) + // = (u_lo v_lo ) + 2^32 ((u_lo v_hi ) + (u_hi v_lo )) + 2^64 (u_hi v_hi ) + // = (p0 ) + 2^32 ((p1 ) + (p2 )) + 2^64 (p3 ) + // = (p0_lo + 2^32 p0_hi) + 2^32 ((p1_lo + 2^32 p1_hi) + (p2_lo + 2^32 p2_hi)) + 2^64 (p3 ) + // = (p0_lo ) + 2^32 (p0_hi + p1_lo + p2_lo ) + 2^64 (p1_hi + p2_hi + p3) + // = (p0_lo ) + 2^32 (Q ) + 2^64 (H ) + // = (p0_lo ) + 2^32 (Q_lo + 2^32 Q_hi ) + 2^64 (H ) + // + // (Since Q might be larger than 2^32 - 1) + // + // = (p0_lo + 2^32 Q_lo) + 2^64 (Q_hi + H) + // + // (Q_hi + H does not overflow a 64-bit int) + // + // = p_lo + 2^64 p_hi + + const std::uint64_t u_lo = x.f & 0xFFFFFFFFu; + const std::uint64_t u_hi = x.f >> 32u; + const std::uint64_t v_lo = y.f & 0xFFFFFFFFu; + const std::uint64_t v_hi = y.f >> 32u; + + const std::uint64_t p0 = u_lo * v_lo; + const std::uint64_t p1 = u_lo * v_hi; + const std::uint64_t p2 = u_hi * v_lo; + const std::uint64_t p3 = u_hi * v_hi; + + const std::uint64_t p0_hi = p0 >> 32u; + const std::uint64_t p1_lo = p1 & 0xFFFFFFFFu; + const std::uint64_t p1_hi = p1 >> 32u; + const std::uint64_t p2_lo = p2 & 0xFFFFFFFFu; + const std::uint64_t p2_hi = p2 >> 32u; + + std::uint64_t Q = p0_hi + p1_lo + p2_lo; + + // The full product might now be computed as + // + // p_hi = p3 + p2_hi + p1_hi + (Q >> 32) + // p_lo = p0_lo + (Q << 32) + // + // But in this particular case here, the full p_lo is not required. + // Effectively we only need to add the highest bit in p_lo to p_hi (and + // Q_hi + 1 does not overflow). + + Q += std::uint64_t{1} << (64u - 32u - 1u); // round, ties up + + const std::uint64_t h = p3 + p2_hi + p1_hi + (Q >> 32u); + + return {h, x.e + y.e + 64}; + } + + /*! + @brief normalize x such that the significand is >= 2^(q-1) + @pre x.f != 0 + */ + static diyfp normalize(diyfp x) noexcept + { + JSON_ASSERT(x.f != 0); + + while ((x.f >> 63u) == 0) + { + x.f <<= 1u; + x.e--; + } + + return x; + } + + /*! + @brief normalize x such that the result has the exponent E + @pre e >= x.e and the upper e - x.e bits of x.f must be zero. + */ + static diyfp normalize_to(const diyfp& x, const int target_exponent) noexcept + { + const int delta = x.e - target_exponent; + + JSON_ASSERT(delta >= 0); + JSON_ASSERT(((x.f << delta) >> delta) == x.f); + + return {x.f << delta, target_exponent}; + } +}; + +struct boundaries +{ + diyfp w; + diyfp minus; + diyfp plus; +}; + +/*! +Compute the (normalized) diyfp representing the input number 'value' and its +boundaries. + +@pre value must be finite and positive +*/ +template +boundaries compute_boundaries(FloatType value) +{ + JSON_ASSERT(std::isfinite(value)); + JSON_ASSERT(value > 0); + + // Convert the IEEE representation into a diyfp. + // + // If v is denormal: + // value = 0.F * 2^(1 - bias) = ( F) * 2^(1 - bias - (p-1)) + // If v is normalized: + // value = 1.F * 2^(E - bias) = (2^(p-1) + F) * 2^(E - bias - (p-1)) + + static_assert(std::numeric_limits::is_iec559, + "internal error: dtoa_short requires an IEEE-754 floating-point implementation"); + + constexpr int kPrecision = std::numeric_limits::digits; // = p (includes the hidden bit) + constexpr int kBias = std::numeric_limits::max_exponent - 1 + (kPrecision - 1); + constexpr int kMinExp = 1 - kBias; + constexpr std::uint64_t kHiddenBit = std::uint64_t{1} << (kPrecision - 1); // = 2^(p-1) + + using bits_type = typename std::conditional::type; + + const std::uint64_t bits = reinterpret_bits(value); + const std::uint64_t E = bits >> (kPrecision - 1); + const std::uint64_t F = bits & (kHiddenBit - 1); + + const bool is_denormal = E == 0; + const diyfp v = is_denormal + ? diyfp(F, kMinExp) + : diyfp(F + kHiddenBit, static_cast(E) - kBias); + + // Compute the boundaries m- and m+ of the floating-point value + // v = f * 2^e. + // + // Determine v- and v+, the floating-point predecessor and successor if v, + // respectively. + // + // v- = v - 2^e if f != 2^(p-1) or e == e_min (A) + // = v - 2^(e-1) if f == 2^(p-1) and e > e_min (B) + // + // v+ = v + 2^e + // + // Let m- = (v- + v) / 2 and m+ = (v + v+) / 2. All real numbers _strictly_ + // between m- and m+ round to v, regardless of how the input rounding + // algorithm breaks ties. + // + // ---+-------------+-------------+-------------+-------------+--- (A) + // v- m- v m+ v+ + // + // -----------------+------+------+-------------+-------------+--- (B) + // v- m- v m+ v+ + + const bool lower_boundary_is_closer = F == 0 && E > 1; + const diyfp m_plus = diyfp(2 * v.f + 1, v.e - 1); + const diyfp m_minus = lower_boundary_is_closer + ? diyfp(4 * v.f - 1, v.e - 2) // (B) + : diyfp(2 * v.f - 1, v.e - 1); // (A) + + // Determine the normalized w+ = m+. + const diyfp w_plus = diyfp::normalize(m_plus); + + // Determine w- = m- such that e_(w-) = e_(w+). + const diyfp w_minus = diyfp::normalize_to(m_minus, w_plus.e); + + return {diyfp::normalize(v), w_minus, w_plus}; +} + +// Given normalized diyfp w, Grisu needs to find a (normalized) cached +// power-of-ten c, such that the exponent of the product c * w = f * 2^e lies +// within a certain range [alpha, gamma] (Definition 3.2 from [1]) +// +// alpha <= e = e_c + e_w + q <= gamma +// +// or +// +// f_c * f_w * 2^alpha <= f_c 2^(e_c) * f_w 2^(e_w) * 2^q +// <= f_c * f_w * 2^gamma +// +// Since c and w are normalized, i.e. 2^(q-1) <= f < 2^q, this implies +// +// 2^(q-1) * 2^(q-1) * 2^alpha <= c * w * 2^q < 2^q * 2^q * 2^gamma +// +// or +// +// 2^(q - 2 + alpha) <= c * w < 2^(q + gamma) +// +// The choice of (alpha,gamma) determines the size of the table and the form of +// the digit generation procedure. Using (alpha,gamma)=(-60,-32) works out well +// in practice: +// +// The idea is to cut the number c * w = f * 2^e into two parts, which can be +// processed independently: An integral part p1, and a fractional part p2: +// +// f * 2^e = ( (f div 2^-e) * 2^-e + (f mod 2^-e) ) * 2^e +// = (f div 2^-e) + (f mod 2^-e) * 2^e +// = p1 + p2 * 2^e +// +// The conversion of p1 into decimal form requires a series of divisions and +// modulos by (a power of) 10. These operations are faster for 32-bit than for +// 64-bit integers, so p1 should ideally fit into a 32-bit integer. This can be +// achieved by choosing +// +// -e >= 32 or e <= -32 := gamma +// +// In order to convert the fractional part +// +// p2 * 2^e = p2 / 2^-e = d[-1] / 10^1 + d[-2] / 10^2 + ... +// +// into decimal form, the fraction is repeatedly multiplied by 10 and the digits +// d[-i] are extracted in order: +// +// (10 * p2) div 2^-e = d[-1] +// (10 * p2) mod 2^-e = d[-2] / 10^1 + ... +// +// The multiplication by 10 must not overflow. It is sufficient to choose +// +// 10 * p2 < 16 * p2 = 2^4 * p2 <= 2^64. +// +// Since p2 = f mod 2^-e < 2^-e, +// +// -e <= 60 or e >= -60 := alpha + +constexpr int kAlpha = -60; +constexpr int kGamma = -32; + +struct cached_power // c = f * 2^e ~= 10^k +{ + std::uint64_t f; + int e; + int k; +}; + +/*! +For a normalized diyfp w = f * 2^e, this function returns a (normalized) cached +power-of-ten c = f_c * 2^e_c, such that the exponent of the product w * c +satisfies (Definition 3.2 from [1]) + + alpha <= e_c + e + q <= gamma. +*/ +inline cached_power get_cached_power_for_binary_exponent(int e) +{ + // Now + // + // alpha <= e_c + e + q <= gamma (1) + // ==> f_c * 2^alpha <= c * 2^e * 2^q + // + // and since the c's are normalized, 2^(q-1) <= f_c, + // + // ==> 2^(q - 1 + alpha) <= c * 2^(e + q) + // ==> 2^(alpha - e - 1) <= c + // + // If c were an exact power of ten, i.e. c = 10^k, one may determine k as + // + // k = ceil( log_10( 2^(alpha - e - 1) ) ) + // = ceil( (alpha - e - 1) * log_10(2) ) + // + // From the paper: + // "In theory the result of the procedure could be wrong since c is rounded, + // and the computation itself is approximated [...]. In practice, however, + // this simple function is sufficient." + // + // For IEEE double precision floating-point numbers converted into + // normalized diyfp's w = f * 2^e, with q = 64, + // + // e >= -1022 (min IEEE exponent) + // -52 (p - 1) + // -52 (p - 1, possibly normalize denormal IEEE numbers) + // -11 (normalize the diyfp) + // = -1137 + // + // and + // + // e <= +1023 (max IEEE exponent) + // -52 (p - 1) + // -11 (normalize the diyfp) + // = 960 + // + // This binary exponent range [-1137,960] results in a decimal exponent + // range [-307,324]. One does not need to store a cached power for each + // k in this range. For each such k it suffices to find a cached power + // such that the exponent of the product lies in [alpha,gamma]. + // This implies that the difference of the decimal exponents of adjacent + // table entries must be less than or equal to + // + // floor( (gamma - alpha) * log_10(2) ) = 8. + // + // (A smaller distance gamma-alpha would require a larger table.) + + // NB: + // Actually this function returns c, such that -60 <= e_c + e + 64 <= -34. + + constexpr int kCachedPowersMinDecExp = -300; + constexpr int kCachedPowersDecStep = 8; + + static constexpr std::array kCachedPowers = + { + { + { 0xAB70FE17C79AC6CA, -1060, -300 }, + { 0xFF77B1FCBEBCDC4F, -1034, -292 }, + { 0xBE5691EF416BD60C, -1007, -284 }, + { 0x8DD01FAD907FFC3C, -980, -276 }, + { 0xD3515C2831559A83, -954, -268 }, + { 0x9D71AC8FADA6C9B5, -927, -260 }, + { 0xEA9C227723EE8BCB, -901, -252 }, + { 0xAECC49914078536D, -874, -244 }, + { 0x823C12795DB6CE57, -847, -236 }, + { 0xC21094364DFB5637, -821, -228 }, + { 0x9096EA6F3848984F, -794, -220 }, + { 0xD77485CB25823AC7, -768, -212 }, + { 0xA086CFCD97BF97F4, -741, -204 }, + { 0xEF340A98172AACE5, -715, -196 }, + { 0xB23867FB2A35B28E, -688, -188 }, + { 0x84C8D4DFD2C63F3B, -661, -180 }, + { 0xC5DD44271AD3CDBA, -635, -172 }, + { 0x936B9FCEBB25C996, -608, -164 }, + { 0xDBAC6C247D62A584, -582, -156 }, + { 0xA3AB66580D5FDAF6, -555, -148 }, + { 0xF3E2F893DEC3F126, -529, -140 }, + { 0xB5B5ADA8AAFF80B8, -502, -132 }, + { 0x87625F056C7C4A8B, -475, -124 }, + { 0xC9BCFF6034C13053, -449, -116 }, + { 0x964E858C91BA2655, -422, -108 }, + { 0xDFF9772470297EBD, -396, -100 }, + { 0xA6DFBD9FB8E5B88F, -369, -92 }, + { 0xF8A95FCF88747D94, -343, -84 }, + { 0xB94470938FA89BCF, -316, -76 }, + { 0x8A08F0F8BF0F156B, -289, -68 }, + { 0xCDB02555653131B6, -263, -60 }, + { 0x993FE2C6D07B7FAC, -236, -52 }, + { 0xE45C10C42A2B3B06, -210, -44 }, + { 0xAA242499697392D3, -183, -36 }, + { 0xFD87B5F28300CA0E, -157, -28 }, + { 0xBCE5086492111AEB, -130, -20 }, + { 0x8CBCCC096F5088CC, -103, -12 }, + { 0xD1B71758E219652C, -77, -4 }, + { 0x9C40000000000000, -50, 4 }, + { 0xE8D4A51000000000, -24, 12 }, + { 0xAD78EBC5AC620000, 3, 20 }, + { 0x813F3978F8940984, 30, 28 }, + { 0xC097CE7BC90715B3, 56, 36 }, + { 0x8F7E32CE7BEA5C70, 83, 44 }, + { 0xD5D238A4ABE98068, 109, 52 }, + { 0x9F4F2726179A2245, 136, 60 }, + { 0xED63A231D4C4FB27, 162, 68 }, + { 0xB0DE65388CC8ADA8, 189, 76 }, + { 0x83C7088E1AAB65DB, 216, 84 }, + { 0xC45D1DF942711D9A, 242, 92 }, + { 0x924D692CA61BE758, 269, 100 }, + { 0xDA01EE641A708DEA, 295, 108 }, + { 0xA26DA3999AEF774A, 322, 116 }, + { 0xF209787BB47D6B85, 348, 124 }, + { 0xB454E4A179DD1877, 375, 132 }, + { 0x865B86925B9BC5C2, 402, 140 }, + { 0xC83553C5C8965D3D, 428, 148 }, + { 0x952AB45CFA97A0B3, 455, 156 }, + { 0xDE469FBD99A05FE3, 481, 164 }, + { 0xA59BC234DB398C25, 508, 172 }, + { 0xF6C69A72A3989F5C, 534, 180 }, + { 0xB7DCBF5354E9BECE, 561, 188 }, + { 0x88FCF317F22241E2, 588, 196 }, + { 0xCC20CE9BD35C78A5, 614, 204 }, + { 0x98165AF37B2153DF, 641, 212 }, + { 0xE2A0B5DC971F303A, 667, 220 }, + { 0xA8D9D1535CE3B396, 694, 228 }, + { 0xFB9B7CD9A4A7443C, 720, 236 }, + { 0xBB764C4CA7A44410, 747, 244 }, + { 0x8BAB8EEFB6409C1A, 774, 252 }, + { 0xD01FEF10A657842C, 800, 260 }, + { 0x9B10A4E5E9913129, 827, 268 }, + { 0xE7109BFBA19C0C9D, 853, 276 }, + { 0xAC2820D9623BF429, 880, 284 }, + { 0x80444B5E7AA7CF85, 907, 292 }, + { 0xBF21E44003ACDD2D, 933, 300 }, + { 0x8E679C2F5E44FF8F, 960, 308 }, + { 0xD433179D9C8CB841, 986, 316 }, + { 0x9E19DB92B4E31BA9, 1013, 324 }, + } + }; + + // This computation gives exactly the same results for k as + // k = ceil((kAlpha - e - 1) * 0.30102999566398114) + // for |e| <= 1500, but doesn't require floating-point operations. + // NB: log_10(2) ~= 78913 / 2^18 + JSON_ASSERT(e >= -1500); + JSON_ASSERT(e <= 1500); + const int f = kAlpha - e - 1; + const int k = (f * 78913) / (1 << 18) + static_cast(f > 0); + + const int index = (-kCachedPowersMinDecExp + k + (kCachedPowersDecStep - 1)) / kCachedPowersDecStep; + JSON_ASSERT(index >= 0); + JSON_ASSERT(static_cast(index) < kCachedPowers.size()); + + const cached_power cached = kCachedPowers[static_cast(index)]; + JSON_ASSERT(kAlpha <= cached.e + e + 64); + JSON_ASSERT(kGamma >= cached.e + e + 64); + + return cached; +} + +/*! +For n != 0, returns k, such that pow10 := 10^(k-1) <= n < 10^k. +For n == 0, returns 1 and sets pow10 := 1. +*/ +inline int find_largest_pow10(const std::uint32_t n, std::uint32_t& pow10) +{ + // LCOV_EXCL_START + if (n >= 1000000000) + { + pow10 = 1000000000; + return 10; + } + // LCOV_EXCL_STOP + else if (n >= 100000000) + { + pow10 = 100000000; + return 9; + } + else if (n >= 10000000) + { + pow10 = 10000000; + return 8; + } + else if (n >= 1000000) + { + pow10 = 1000000; + return 7; + } + else if (n >= 100000) + { + pow10 = 100000; + return 6; + } + else if (n >= 10000) + { + pow10 = 10000; + return 5; + } + else if (n >= 1000) + { + pow10 = 1000; + return 4; + } + else if (n >= 100) + { + pow10 = 100; + return 3; + } + else if (n >= 10) + { + pow10 = 10; + return 2; + } + else + { + pow10 = 1; + return 1; + } +} + +inline void grisu2_round(char* buf, int len, std::uint64_t dist, std::uint64_t delta, + std::uint64_t rest, std::uint64_t ten_k) +{ + JSON_ASSERT(len >= 1); + JSON_ASSERT(dist <= delta); + JSON_ASSERT(rest <= delta); + JSON_ASSERT(ten_k > 0); + + // <--------------------------- delta ----> + // <---- dist ---------> + // --------------[------------------+-------------------]-------------- + // M- w M+ + // + // ten_k + // <------> + // <---- rest ----> + // --------------[------------------+----+--------------]-------------- + // w V + // = buf * 10^k + // + // ten_k represents a unit-in-the-last-place in the decimal representation + // stored in buf. + // Decrement buf by ten_k while this takes buf closer to w. + + // The tests are written in this order to avoid overflow in unsigned + // integer arithmetic. + + while (rest < dist + && delta - rest >= ten_k + && (rest + ten_k < dist || dist - rest > rest + ten_k - dist)) + { + JSON_ASSERT(buf[len - 1] != '0'); + buf[len - 1]--; + rest += ten_k; + } +} + +/*! +Generates V = buffer * 10^decimal_exponent, such that M- <= V <= M+. +M- and M+ must be normalized and share the same exponent -60 <= e <= -32. +*/ +inline void grisu2_digit_gen(char* buffer, int& length, int& decimal_exponent, + diyfp M_minus, diyfp w, diyfp M_plus) +{ + static_assert(kAlpha >= -60, "internal error"); + static_assert(kGamma <= -32, "internal error"); + + // Generates the digits (and the exponent) of a decimal floating-point + // number V = buffer * 10^decimal_exponent in the range [M-, M+]. The diyfp's + // w, M- and M+ share the same exponent e, which satisfies alpha <= e <= gamma. + // + // <--------------------------- delta ----> + // <---- dist ---------> + // --------------[------------------+-------------------]-------------- + // M- w M+ + // + // Grisu2 generates the digits of M+ from left to right and stops as soon as + // V is in [M-,M+]. + + JSON_ASSERT(M_plus.e >= kAlpha); + JSON_ASSERT(M_plus.e <= kGamma); + + std::uint64_t delta = diyfp::sub(M_plus, M_minus).f; // (significand of (M+ - M-), implicit exponent is e) + std::uint64_t dist = diyfp::sub(M_plus, w ).f; // (significand of (M+ - w ), implicit exponent is e) + + // Split M+ = f * 2^e into two parts p1 and p2 (note: e < 0): + // + // M+ = f * 2^e + // = ((f div 2^-e) * 2^-e + (f mod 2^-e)) * 2^e + // = ((p1 ) * 2^-e + (p2 )) * 2^e + // = p1 + p2 * 2^e + + const diyfp one(std::uint64_t{1} << -M_plus.e, M_plus.e); + + auto p1 = static_cast(M_plus.f >> -one.e); // p1 = f div 2^-e (Since -e >= 32, p1 fits into a 32-bit int.) + std::uint64_t p2 = M_plus.f & (one.f - 1); // p2 = f mod 2^-e + + // 1) + // + // Generate the digits of the integral part p1 = d[n-1]...d[1]d[0] + + JSON_ASSERT(p1 > 0); + + std::uint32_t pow10; + const int k = find_largest_pow10(p1, pow10); + + // 10^(k-1) <= p1 < 10^k, pow10 = 10^(k-1) + // + // p1 = (p1 div 10^(k-1)) * 10^(k-1) + (p1 mod 10^(k-1)) + // = (d[k-1] ) * 10^(k-1) + (p1 mod 10^(k-1)) + // + // M+ = p1 + p2 * 2^e + // = d[k-1] * 10^(k-1) + (p1 mod 10^(k-1)) + p2 * 2^e + // = d[k-1] * 10^(k-1) + ((p1 mod 10^(k-1)) * 2^-e + p2) * 2^e + // = d[k-1] * 10^(k-1) + ( rest) * 2^e + // + // Now generate the digits d[n] of p1 from left to right (n = k-1,...,0) + // + // p1 = d[k-1]...d[n] * 10^n + d[n-1]...d[0] + // + // but stop as soon as + // + // rest * 2^e = (d[n-1]...d[0] * 2^-e + p2) * 2^e <= delta * 2^e + + int n = k; + while (n > 0) + { + // Invariants: + // M+ = buffer * 10^n + (p1 + p2 * 2^e) (buffer = 0 for n = k) + // pow10 = 10^(n-1) <= p1 < 10^n + // + const std::uint32_t d = p1 / pow10; // d = p1 div 10^(n-1) + const std::uint32_t r = p1 % pow10; // r = p1 mod 10^(n-1) + // + // M+ = buffer * 10^n + (d * 10^(n-1) + r) + p2 * 2^e + // = (buffer * 10 + d) * 10^(n-1) + (r + p2 * 2^e) + // + JSON_ASSERT(d <= 9); + buffer[length++] = static_cast('0' + d); // buffer := buffer * 10 + d + // + // M+ = buffer * 10^(n-1) + (r + p2 * 2^e) + // + p1 = r; + n--; + // + // M+ = buffer * 10^n + (p1 + p2 * 2^e) + // pow10 = 10^n + // + + // Now check if enough digits have been generated. + // Compute + // + // p1 + p2 * 2^e = (p1 * 2^-e + p2) * 2^e = rest * 2^e + // + // Note: + // Since rest and delta share the same exponent e, it suffices to + // compare the significands. + const std::uint64_t rest = (std::uint64_t{p1} << -one.e) + p2; + if (rest <= delta) + { + // V = buffer * 10^n, with M- <= V <= M+. + + decimal_exponent += n; + + // We may now just stop. But instead look if the buffer could be + // decremented to bring V closer to w. + // + // pow10 = 10^n is now 1 ulp in the decimal representation V. + // The rounding procedure works with diyfp's with an implicit + // exponent of e. + // + // 10^n = (10^n * 2^-e) * 2^e = ulp * 2^e + // + const std::uint64_t ten_n = std::uint64_t{pow10} << -one.e; + grisu2_round(buffer, length, dist, delta, rest, ten_n); + + return; + } + + pow10 /= 10; + // + // pow10 = 10^(n-1) <= p1 < 10^n + // Invariants restored. + } + + // 2) + // + // The digits of the integral part have been generated: + // + // M+ = d[k-1]...d[1]d[0] + p2 * 2^e + // = buffer + p2 * 2^e + // + // Now generate the digits of the fractional part p2 * 2^e. + // + // Note: + // No decimal point is generated: the exponent is adjusted instead. + // + // p2 actually represents the fraction + // + // p2 * 2^e + // = p2 / 2^-e + // = d[-1] / 10^1 + d[-2] / 10^2 + ... + // + // Now generate the digits d[-m] of p1 from left to right (m = 1,2,...) + // + // p2 * 2^e = d[-1]d[-2]...d[-m] * 10^-m + // + 10^-m * (d[-m-1] / 10^1 + d[-m-2] / 10^2 + ...) + // + // using + // + // 10^m * p2 = ((10^m * p2) div 2^-e) * 2^-e + ((10^m * p2) mod 2^-e) + // = ( d) * 2^-e + ( r) + // + // or + // 10^m * p2 * 2^e = d + r * 2^e + // + // i.e. + // + // M+ = buffer + p2 * 2^e + // = buffer + 10^-m * (d + r * 2^e) + // = (buffer * 10^m + d) * 10^-m + 10^-m * r * 2^e + // + // and stop as soon as 10^-m * r * 2^e <= delta * 2^e + + JSON_ASSERT(p2 > delta); + + int m = 0; + for (;;) + { + // Invariant: + // M+ = buffer * 10^-m + 10^-m * (d[-m-1] / 10 + d[-m-2] / 10^2 + ...) * 2^e + // = buffer * 10^-m + 10^-m * (p2 ) * 2^e + // = buffer * 10^-m + 10^-m * (1/10 * (10 * p2) ) * 2^e + // = buffer * 10^-m + 10^-m * (1/10 * ((10*p2 div 2^-e) * 2^-e + (10*p2 mod 2^-e)) * 2^e + // + JSON_ASSERT(p2 <= (std::numeric_limits::max)() / 10); + p2 *= 10; + const std::uint64_t d = p2 >> -one.e; // d = (10 * p2) div 2^-e + const std::uint64_t r = p2 & (one.f - 1); // r = (10 * p2) mod 2^-e + // + // M+ = buffer * 10^-m + 10^-m * (1/10 * (d * 2^-e + r) * 2^e + // = buffer * 10^-m + 10^-m * (1/10 * (d + r * 2^e)) + // = (buffer * 10 + d) * 10^(-m-1) + 10^(-m-1) * r * 2^e + // + JSON_ASSERT(d <= 9); + buffer[length++] = static_cast('0' + d); // buffer := buffer * 10 + d + // + // M+ = buffer * 10^(-m-1) + 10^(-m-1) * r * 2^e + // + p2 = r; + m++; + // + // M+ = buffer * 10^-m + 10^-m * p2 * 2^e + // Invariant restored. + + // Check if enough digits have been generated. + // + // 10^-m * p2 * 2^e <= delta * 2^e + // p2 * 2^e <= 10^m * delta * 2^e + // p2 <= 10^m * delta + delta *= 10; + dist *= 10; + if (p2 <= delta) + { + break; + } + } + + // V = buffer * 10^-m, with M- <= V <= M+. + + decimal_exponent -= m; + + // 1 ulp in the decimal representation is now 10^-m. + // Since delta and dist are now scaled by 10^m, we need to do the + // same with ulp in order to keep the units in sync. + // + // 10^m * 10^-m = 1 = 2^-e * 2^e = ten_m * 2^e + // + const std::uint64_t ten_m = one.f; + grisu2_round(buffer, length, dist, delta, p2, ten_m); + + // By construction this algorithm generates the shortest possible decimal + // number (Loitsch, Theorem 6.2) which rounds back to w. + // For an input number of precision p, at least + // + // N = 1 + ceil(p * log_10(2)) + // + // decimal digits are sufficient to identify all binary floating-point + // numbers (Matula, "In-and-Out conversions"). + // This implies that the algorithm does not produce more than N decimal + // digits. + // + // N = 17 for p = 53 (IEEE double precision) + // N = 9 for p = 24 (IEEE single precision) +} + +/*! +v = buf * 10^decimal_exponent +len is the length of the buffer (number of decimal digits) +The buffer must be large enough, i.e. >= max_digits10. +*/ +JSON_HEDLEY_NON_NULL(1) +inline void grisu2(char* buf, int& len, int& decimal_exponent, + diyfp m_minus, diyfp v, diyfp m_plus) +{ + JSON_ASSERT(m_plus.e == m_minus.e); + JSON_ASSERT(m_plus.e == v.e); + + // --------(-----------------------+-----------------------)-------- (A) + // m- v m+ + // + // --------------------(-----------+-----------------------)-------- (B) + // m- v m+ + // + // First scale v (and m- and m+) such that the exponent is in the range + // [alpha, gamma]. + + const cached_power cached = get_cached_power_for_binary_exponent(m_plus.e); + + const diyfp c_minus_k(cached.f, cached.e); // = c ~= 10^-k + + // The exponent of the products is = v.e + c_minus_k.e + q and is in the range [alpha,gamma] + const diyfp w = diyfp::mul(v, c_minus_k); + const diyfp w_minus = diyfp::mul(m_minus, c_minus_k); + const diyfp w_plus = diyfp::mul(m_plus, c_minus_k); + + // ----(---+---)---------------(---+---)---------------(---+---)---- + // w- w w+ + // = c*m- = c*v = c*m+ + // + // diyfp::mul rounds its result and c_minus_k is approximated too. w, w- and + // w+ are now off by a small amount. + // In fact: + // + // w - v * 10^k < 1 ulp + // + // To account for this inaccuracy, add resp. subtract 1 ulp. + // + // --------+---[---------------(---+---)---------------]---+-------- + // w- M- w M+ w+ + // + // Now any number in [M-, M+] (bounds included) will round to w when input, + // regardless of how the input rounding algorithm breaks ties. + // + // And digit_gen generates the shortest possible such number in [M-, M+]. + // Note that this does not mean that Grisu2 always generates the shortest + // possible number in the interval (m-, m+). + const diyfp M_minus(w_minus.f + 1, w_minus.e); + const diyfp M_plus (w_plus.f - 1, w_plus.e ); + + decimal_exponent = -cached.k; // = -(-k) = k + + grisu2_digit_gen(buf, len, decimal_exponent, M_minus, w, M_plus); +} + +/*! +v = buf * 10^decimal_exponent +len is the length of the buffer (number of decimal digits) +The buffer must be large enough, i.e. >= max_digits10. +*/ +template +JSON_HEDLEY_NON_NULL(1) +void grisu2(char* buf, int& len, int& decimal_exponent, FloatType value) +{ + static_assert(diyfp::kPrecision >= std::numeric_limits::digits + 3, + "internal error: not enough precision"); + + JSON_ASSERT(std::isfinite(value)); + JSON_ASSERT(value > 0); + + // If the neighbors (and boundaries) of 'value' are always computed for double-precision + // numbers, all float's can be recovered using strtod (and strtof). However, the resulting + // decimal representations are not exactly "short". + // + // The documentation for 'std::to_chars' (https://en.cppreference.com/w/cpp/utility/to_chars) + // says "value is converted to a string as if by std::sprintf in the default ("C") locale" + // and since sprintf promotes float's to double's, I think this is exactly what 'std::to_chars' + // does. + // On the other hand, the documentation for 'std::to_chars' requires that "parsing the + // representation using the corresponding std::from_chars function recovers value exactly". That + // indicates that single precision floating-point numbers should be recovered using + // 'std::strtof'. + // + // NB: If the neighbors are computed for single-precision numbers, there is a single float + // (7.0385307e-26f) which can't be recovered using strtod. The resulting double precision + // value is off by 1 ulp. +#if 0 + const boundaries w = compute_boundaries(static_cast(value)); +#else + const boundaries w = compute_boundaries(value); +#endif + + grisu2(buf, len, decimal_exponent, w.minus, w.w, w.plus); +} + +/*! +@brief appends a decimal representation of e to buf +@return a pointer to the element following the exponent. +@pre -1000 < e < 1000 +*/ +JSON_HEDLEY_NON_NULL(1) +JSON_HEDLEY_RETURNS_NON_NULL +inline char* append_exponent(char* buf, int e) +{ + JSON_ASSERT(e > -1000); + JSON_ASSERT(e < 1000); + + if (e < 0) + { + e = -e; + *buf++ = '-'; + } + else + { + *buf++ = '+'; + } + + auto k = static_cast(e); + if (k < 10) + { + // Always print at least two digits in the exponent. + // This is for compatibility with printf("%g"). + *buf++ = '0'; + *buf++ = static_cast('0' + k); + } + else if (k < 100) + { + *buf++ = static_cast('0' + k / 10); + k %= 10; + *buf++ = static_cast('0' + k); + } + else + { + *buf++ = static_cast('0' + k / 100); + k %= 100; + *buf++ = static_cast('0' + k / 10); + k %= 10; + *buf++ = static_cast('0' + k); + } + + return buf; +} + +/*! +@brief prettify v = buf * 10^decimal_exponent + +If v is in the range [10^min_exp, 10^max_exp) it will be printed in fixed-point +notation. Otherwise it will be printed in exponential notation. + +@pre min_exp < 0 +@pre max_exp > 0 +*/ +JSON_HEDLEY_NON_NULL(1) +JSON_HEDLEY_RETURNS_NON_NULL +inline char* format_buffer(char* buf, int len, int decimal_exponent, + int min_exp, int max_exp) +{ + JSON_ASSERT(min_exp < 0); + JSON_ASSERT(max_exp > 0); + + const int k = len; + const int n = len + decimal_exponent; + + // v = buf * 10^(n-k) + // k is the length of the buffer (number of decimal digits) + // n is the position of the decimal point relative to the start of the buffer. + + if (k <= n && n <= max_exp) + { + // digits[000] + // len <= max_exp + 2 + + std::memset(buf + k, '0', static_cast(n) - static_cast(k)); + // Make it look like a floating-point number (#362, #378) + buf[n + 0] = '.'; + buf[n + 1] = '0'; + return buf + (static_cast(n) + 2); + } + + if (0 < n && n <= max_exp) + { + // dig.its + // len <= max_digits10 + 1 + + JSON_ASSERT(k > n); + + std::memmove(buf + (static_cast(n) + 1), buf + n, static_cast(k) - static_cast(n)); + buf[n] = '.'; + return buf + (static_cast(k) + 1U); + } + + if (min_exp < n && n <= 0) + { + // 0.[000]digits + // len <= 2 + (-min_exp - 1) + max_digits10 + + std::memmove(buf + (2 + static_cast(-n)), buf, static_cast(k)); + buf[0] = '0'; + buf[1] = '.'; + std::memset(buf + 2, '0', static_cast(-n)); + return buf + (2U + static_cast(-n) + static_cast(k)); + } + + if (k == 1) + { + // dE+123 + // len <= 1 + 5 + + buf += 1; + } + else + { + // d.igitsE+123 + // len <= max_digits10 + 1 + 5 + + std::memmove(buf + 2, buf + 1, static_cast(k) - 1); + buf[1] = '.'; + buf += 1 + static_cast(k); + } + + *buf++ = 'e'; + return append_exponent(buf, n - 1); +} + +} // namespace dtoa_impl + +/*! +@brief generates a decimal representation of the floating-point number value in [first, last). + +The format of the resulting decimal representation is similar to printf's %g +format. Returns an iterator pointing past-the-end of the decimal representation. + +@note The input number must be finite, i.e. NaN's and Inf's are not supported. +@note The buffer must be large enough. +@note The result is NOT null-terminated. +*/ +template +JSON_HEDLEY_NON_NULL(1, 2) +JSON_HEDLEY_RETURNS_NON_NULL +char* to_chars(char* first, const char* last, FloatType value) +{ + static_cast(last); // maybe unused - fix warning + JSON_ASSERT(std::isfinite(value)); + + // Use signbit(value) instead of (value < 0) since signbit works for -0. + if (std::signbit(value)) + { + value = -value; + *first++ = '-'; + } + + if (value == 0) // +-0 + { + *first++ = '0'; + // Make it look like a floating-point number (#362, #378) + *first++ = '.'; + *first++ = '0'; + return first; + } + + JSON_ASSERT(last - first >= std::numeric_limits::max_digits10); + + // Compute v = buffer * 10^decimal_exponent. + // The decimal digits are stored in the buffer, which needs to be interpreted + // as an unsigned decimal integer. + // len is the length of the buffer, i.e. the number of decimal digits. + int len = 0; + int decimal_exponent = 0; + dtoa_impl::grisu2(first, len, decimal_exponent, value); + + JSON_ASSERT(len <= std::numeric_limits::max_digits10); + + // Format the buffer like printf("%.*g", prec, value) + constexpr int kMinExp = -4; + // Use digits10 here to increase compatibility with version 2. + constexpr int kMaxExp = std::numeric_limits::digits10; + + JSON_ASSERT(last - first >= kMaxExp + 2); + JSON_ASSERT(last - first >= 2 + (-kMinExp - 1) + std::numeric_limits::max_digits10); + JSON_ASSERT(last - first >= std::numeric_limits::max_digits10 + 6); + + return dtoa_impl::format_buffer(first, len, decimal_exponent, kMinExp, kMaxExp); +} + +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + +// #include + +// #include + +// #include + +// #include + + +namespace nlohmann +{ +namespace detail +{ +/////////////////// +// serialization // +/////////////////// + +/// how to treat decoding errors +enum class error_handler_t +{ + strict, ///< throw a type_error exception in case of invalid UTF-8 + replace, ///< replace invalid UTF-8 sequences with U+FFFD + ignore ///< ignore invalid UTF-8 sequences +}; + +template +class serializer +{ + using string_t = typename BasicJsonType::string_t; + using number_float_t = typename BasicJsonType::number_float_t; + using number_integer_t = typename BasicJsonType::number_integer_t; + using number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using binary_char_t = typename BasicJsonType::binary_t::value_type; + static constexpr std::uint8_t UTF8_ACCEPT = 0; + static constexpr std::uint8_t UTF8_REJECT = 1; + + public: + /*! + @param[in] s output stream to serialize to + @param[in] ichar indentation character to use + @param[in] error_handler_ how to react on decoding errors + */ + serializer(output_adapter_t s, const char ichar, + error_handler_t error_handler_ = error_handler_t::strict) + : o(std::move(s)) + , loc(std::localeconv()) + , thousands_sep(loc->thousands_sep == nullptr ? '\0' : std::char_traits::to_char_type(* (loc->thousands_sep))) + , decimal_point(loc->decimal_point == nullptr ? '\0' : std::char_traits::to_char_type(* (loc->decimal_point))) + , indent_char(ichar) + , indent_string(512, indent_char) + , error_handler(error_handler_) + {} + + // delete because of pointer members + serializer(const serializer&) = delete; + serializer& operator=(const serializer&) = delete; + serializer(serializer&&) = delete; + serializer& operator=(serializer&&) = delete; + ~serializer() = default; + + /*! + @brief internal implementation of the serialization function + + This function is called by the public member function dump and organizes + the serialization internally. The indentation level is propagated as + additional parameter. In case of arrays and objects, the function is + called recursively. + + - strings and object keys are escaped using `escape_string()` + - integer numbers are converted implicitly via `operator<<` + - floating-point numbers are converted to a string using `"%g"` format + - binary values are serialized as objects containing the subtype and the + byte array + + @param[in] val value to serialize + @param[in] pretty_print whether the output shall be pretty-printed + @param[in] ensure_ascii If @a ensure_ascii is true, all non-ASCII characters + in the output are escaped with `\uXXXX` sequences, and the result consists + of ASCII characters only. + @param[in] indent_step the indent level + @param[in] current_indent the current indent level (only used internally) + */ + void dump(const BasicJsonType& val, + const bool pretty_print, + const bool ensure_ascii, + const unsigned int indent_step, + const unsigned int current_indent = 0) + { + switch (val.m_type) + { + case value_t::object: + { + if (val.m_value.object->empty()) + { + o->write_characters("{}", 2); + return; + } + + if (pretty_print) + { + o->write_characters("{\n", 2); + + // variable to hold indentation for recursive calls + const auto new_indent = current_indent + indent_step; + if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent)) + { + indent_string.resize(indent_string.size() * 2, ' '); + } + + // first n-1 elements + auto i = val.m_value.object->cbegin(); + for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i) + { + o->write_characters(indent_string.c_str(), new_indent); + o->write_character('\"'); + dump_escaped(i->first, ensure_ascii); + o->write_characters("\": ", 3); + dump(i->second, true, ensure_ascii, indent_step, new_indent); + o->write_characters(",\n", 2); + } + + // last element + JSON_ASSERT(i != val.m_value.object->cend()); + JSON_ASSERT(std::next(i) == val.m_value.object->cend()); + o->write_characters(indent_string.c_str(), new_indent); + o->write_character('\"'); + dump_escaped(i->first, ensure_ascii); + o->write_characters("\": ", 3); + dump(i->second, true, ensure_ascii, indent_step, new_indent); + + o->write_character('\n'); + o->write_characters(indent_string.c_str(), current_indent); + o->write_character('}'); + } + else + { + o->write_character('{'); + + // first n-1 elements + auto i = val.m_value.object->cbegin(); + for (std::size_t cnt = 0; cnt < val.m_value.object->size() - 1; ++cnt, ++i) + { + o->write_character('\"'); + dump_escaped(i->first, ensure_ascii); + o->write_characters("\":", 2); + dump(i->second, false, ensure_ascii, indent_step, current_indent); + o->write_character(','); + } + + // last element + JSON_ASSERT(i != val.m_value.object->cend()); + JSON_ASSERT(std::next(i) == val.m_value.object->cend()); + o->write_character('\"'); + dump_escaped(i->first, ensure_ascii); + o->write_characters("\":", 2); + dump(i->second, false, ensure_ascii, indent_step, current_indent); + + o->write_character('}'); + } + + return; + } + + case value_t::array: + { + if (val.m_value.array->empty()) + { + o->write_characters("[]", 2); + return; + } + + if (pretty_print) + { + o->write_characters("[\n", 2); + + // variable to hold indentation for recursive calls + const auto new_indent = current_indent + indent_step; + if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent)) + { + indent_string.resize(indent_string.size() * 2, ' '); + } + + // first n-1 elements + for (auto i = val.m_value.array->cbegin(); + i != val.m_value.array->cend() - 1; ++i) + { + o->write_characters(indent_string.c_str(), new_indent); + dump(*i, true, ensure_ascii, indent_step, new_indent); + o->write_characters(",\n", 2); + } + + // last element + JSON_ASSERT(!val.m_value.array->empty()); + o->write_characters(indent_string.c_str(), new_indent); + dump(val.m_value.array->back(), true, ensure_ascii, indent_step, new_indent); + + o->write_character('\n'); + o->write_characters(indent_string.c_str(), current_indent); + o->write_character(']'); + } + else + { + o->write_character('['); + + // first n-1 elements + for (auto i = val.m_value.array->cbegin(); + i != val.m_value.array->cend() - 1; ++i) + { + dump(*i, false, ensure_ascii, indent_step, current_indent); + o->write_character(','); + } + + // last element + JSON_ASSERT(!val.m_value.array->empty()); + dump(val.m_value.array->back(), false, ensure_ascii, indent_step, current_indent); + + o->write_character(']'); + } + + return; + } + + case value_t::string: + { + o->write_character('\"'); + dump_escaped(*val.m_value.string, ensure_ascii); + o->write_character('\"'); + return; + } + + case value_t::binary: + { + if (pretty_print) + { + o->write_characters("{\n", 2); + + // variable to hold indentation for recursive calls + const auto new_indent = current_indent + indent_step; + if (JSON_HEDLEY_UNLIKELY(indent_string.size() < new_indent)) + { + indent_string.resize(indent_string.size() * 2, ' '); + } + + o->write_characters(indent_string.c_str(), new_indent); + + o->write_characters("\"bytes\": [", 10); + + if (!val.m_value.binary->empty()) + { + for (auto i = val.m_value.binary->cbegin(); + i != val.m_value.binary->cend() - 1; ++i) + { + dump_integer(*i); + o->write_characters(", ", 2); + } + dump_integer(val.m_value.binary->back()); + } + + o->write_characters("],\n", 3); + o->write_characters(indent_string.c_str(), new_indent); + + o->write_characters("\"subtype\": ", 11); + if (val.m_value.binary->has_subtype()) + { + dump_integer(val.m_value.binary->subtype()); + } + else + { + o->write_characters("null", 4); + } + o->write_character('\n'); + o->write_characters(indent_string.c_str(), current_indent); + o->write_character('}'); + } + else + { + o->write_characters("{\"bytes\":[", 10); + + if (!val.m_value.binary->empty()) + { + for (auto i = val.m_value.binary->cbegin(); + i != val.m_value.binary->cend() - 1; ++i) + { + dump_integer(*i); + o->write_character(','); + } + dump_integer(val.m_value.binary->back()); + } + + o->write_characters("],\"subtype\":", 12); + if (val.m_value.binary->has_subtype()) + { + dump_integer(val.m_value.binary->subtype()); + o->write_character('}'); + } + else + { + o->write_characters("null}", 5); + } + } + return; + } + + case value_t::boolean: + { + if (val.m_value.boolean) + { + o->write_characters("true", 4); + } + else + { + o->write_characters("false", 5); + } + return; + } + + case value_t::number_integer: + { + dump_integer(val.m_value.number_integer); + return; + } + + case value_t::number_unsigned: + { + dump_integer(val.m_value.number_unsigned); + return; + } + + case value_t::number_float: + { + dump_float(val.m_value.number_float); + return; + } + + case value_t::discarded: + { + o->write_characters("", 11); + return; + } + + case value_t::null: + { + o->write_characters("null", 4); + return; + } + + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } + } + + private: + /*! + @brief dump escaped string + + Escape a string by replacing certain special characters by a sequence of an + escape character (backslash) and another character and other control + characters by a sequence of "\u" followed by a four-digit hex + representation. The escaped string is written to output stream @a o. + + @param[in] s the string to escape + @param[in] ensure_ascii whether to escape non-ASCII characters with + \uXXXX sequences + + @complexity Linear in the length of string @a s. + */ + void dump_escaped(const string_t& s, const bool ensure_ascii) + { + std::uint32_t codepoint; + std::uint8_t state = UTF8_ACCEPT; + std::size_t bytes = 0; // number of bytes written to string_buffer + + // number of bytes written at the point of the last valid byte + std::size_t bytes_after_last_accept = 0; + std::size_t undumped_chars = 0; + + for (std::size_t i = 0; i < s.size(); ++i) + { + const auto byte = static_cast(s[i]); + + switch (decode(state, codepoint, byte)) + { + case UTF8_ACCEPT: // decode found a new code point + { + switch (codepoint) + { + case 0x08: // backspace + { + string_buffer[bytes++] = '\\'; + string_buffer[bytes++] = 'b'; + break; + } + + case 0x09: // horizontal tab + { + string_buffer[bytes++] = '\\'; + string_buffer[bytes++] = 't'; + break; + } + + case 0x0A: // newline + { + string_buffer[bytes++] = '\\'; + string_buffer[bytes++] = 'n'; + break; + } + + case 0x0C: // formfeed + { + string_buffer[bytes++] = '\\'; + string_buffer[bytes++] = 'f'; + break; + } + + case 0x0D: // carriage return + { + string_buffer[bytes++] = '\\'; + string_buffer[bytes++] = 'r'; + break; + } + + case 0x22: // quotation mark + { + string_buffer[bytes++] = '\\'; + string_buffer[bytes++] = '\"'; + break; + } + + case 0x5C: // reverse solidus + { + string_buffer[bytes++] = '\\'; + string_buffer[bytes++] = '\\'; + break; + } + + default: + { + // escape control characters (0x00..0x1F) or, if + // ensure_ascii parameter is used, non-ASCII characters + if ((codepoint <= 0x1F) || (ensure_ascii && (codepoint >= 0x7F))) + { + if (codepoint <= 0xFFFF) + { + (std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x", + static_cast(codepoint)); + bytes += 6; + } + else + { + (std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x", + static_cast(0xD7C0u + (codepoint >> 10u)), + static_cast(0xDC00u + (codepoint & 0x3FFu))); + bytes += 12; + } + } + else + { + // copy byte to buffer (all previous bytes + // been copied have in default case above) + string_buffer[bytes++] = s[i]; + } + break; + } + } + + // write buffer and reset index; there must be 13 bytes + // left, as this is the maximal number of bytes to be + // written ("\uxxxx\uxxxx\0") for one code point + if (string_buffer.size() - bytes < 13) + { + o->write_characters(string_buffer.data(), bytes); + bytes = 0; + } + + // remember the byte position of this accept + bytes_after_last_accept = bytes; + undumped_chars = 0; + break; + } + + case UTF8_REJECT: // decode found invalid UTF-8 byte + { + switch (error_handler) + { + case error_handler_t::strict: + { + std::string sn(3, '\0'); + (std::snprintf)(&sn[0], sn.size(), "%.2X", byte); + JSON_THROW(type_error::create(316, "invalid UTF-8 byte at index " + std::to_string(i) + ": 0x" + sn)); + } + + case error_handler_t::ignore: + case error_handler_t::replace: + { + // in case we saw this character the first time, we + // would like to read it again, because the byte + // may be OK for itself, but just not OK for the + // previous sequence + if (undumped_chars > 0) + { + --i; + } + + // reset length buffer to the last accepted index; + // thus removing/ignoring the invalid characters + bytes = bytes_after_last_accept; + + if (error_handler == error_handler_t::replace) + { + // add a replacement character + if (ensure_ascii) + { + string_buffer[bytes++] = '\\'; + string_buffer[bytes++] = 'u'; + string_buffer[bytes++] = 'f'; + string_buffer[bytes++] = 'f'; + string_buffer[bytes++] = 'f'; + string_buffer[bytes++] = 'd'; + } + else + { + string_buffer[bytes++] = detail::binary_writer::to_char_type('\xEF'); + string_buffer[bytes++] = detail::binary_writer::to_char_type('\xBF'); + string_buffer[bytes++] = detail::binary_writer::to_char_type('\xBD'); + } + + // write buffer and reset index; there must be 13 bytes + // left, as this is the maximal number of bytes to be + // written ("\uxxxx\uxxxx\0") for one code point + if (string_buffer.size() - bytes < 13) + { + o->write_characters(string_buffer.data(), bytes); + bytes = 0; + } + + bytes_after_last_accept = bytes; + } + + undumped_chars = 0; + + // continue processing the string + state = UTF8_ACCEPT; + break; + } + + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } + break; + } + + default: // decode found yet incomplete multi-byte code point + { + if (!ensure_ascii) + { + // code point will not be escaped - copy byte to buffer + string_buffer[bytes++] = s[i]; + } + ++undumped_chars; + break; + } + } + } + + // we finished processing the string + if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT)) + { + // write buffer + if (bytes > 0) + { + o->write_characters(string_buffer.data(), bytes); + } + } + else + { + // we finish reading, but do not accept: string was incomplete + switch (error_handler) + { + case error_handler_t::strict: + { + std::string sn(3, '\0'); + (std::snprintf)(&sn[0], sn.size(), "%.2X", static_cast(s.back())); + JSON_THROW(type_error::create(316, "incomplete UTF-8 string; last byte: 0x" + sn)); + } + + case error_handler_t::ignore: + { + // write all accepted bytes + o->write_characters(string_buffer.data(), bytes_after_last_accept); + break; + } + + case error_handler_t::replace: + { + // write all accepted bytes + o->write_characters(string_buffer.data(), bytes_after_last_accept); + // add a replacement character + if (ensure_ascii) + { + o->write_characters("\\ufffd", 6); + } + else + { + o->write_characters("\xEF\xBF\xBD", 3); + } + break; + } + + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } + } + } + + /*! + @brief count digits + + Count the number of decimal (base 10) digits for an input unsigned integer. + + @param[in] x unsigned integer number to count its digits + @return number of decimal digits + */ + inline unsigned int count_digits(number_unsigned_t x) noexcept + { + unsigned int n_digits = 1; + for (;;) + { + if (x < 10) + { + return n_digits; + } + if (x < 100) + { + return n_digits + 1; + } + if (x < 1000) + { + return n_digits + 2; + } + if (x < 10000) + { + return n_digits + 3; + } + x = x / 10000u; + n_digits += 4; + } + } + + /*! + @brief dump an integer + + Dump a given integer to output stream @a o. Works internally with + @a number_buffer. + + @param[in] x integer number (signed or unsigned) to dump + @tparam NumberType either @a number_integer_t or @a number_unsigned_t + */ + template < typename NumberType, detail::enable_if_t < + std::is_same::value || + std::is_same::value || + std::is_same::value, + int > = 0 > + void dump_integer(NumberType x) + { + static constexpr std::array, 100> digits_to_99 + { + { + {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}}, + {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}}, + {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}}, + {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}}, + {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}}, + {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}}, + {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}}, + {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}}, + {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}}, + {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}}, + } + }; + + // special case for "0" + if (x == 0) + { + o->write_character('0'); + return; + } + + // use a pointer to fill the buffer + auto buffer_ptr = number_buffer.begin(); + + const bool is_negative = std::is_same::value && !(x >= 0); // see issue #755 + number_unsigned_t abs_value; + + unsigned int n_chars; + + if (is_negative) + { + *buffer_ptr = '-'; + abs_value = remove_sign(static_cast(x)); + + // account one more byte for the minus sign + n_chars = 1 + count_digits(abs_value); + } + else + { + abs_value = static_cast(x); + n_chars = count_digits(abs_value); + } + + // spare 1 byte for '\0' + JSON_ASSERT(n_chars < number_buffer.size() - 1); + + // jump to the end to generate the string from backward + // so we later avoid reversing the result + buffer_ptr += n_chars; + + // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu + // See: https://www.youtube.com/watch?v=o4-CwDo2zpg + while (abs_value >= 100) + { + const auto digits_index = static_cast((abs_value % 100)); + abs_value /= 100; + *(--buffer_ptr) = digits_to_99[digits_index][1]; + *(--buffer_ptr) = digits_to_99[digits_index][0]; + } + + if (abs_value >= 10) + { + const auto digits_index = static_cast(abs_value); + *(--buffer_ptr) = digits_to_99[digits_index][1]; + *(--buffer_ptr) = digits_to_99[digits_index][0]; + } + else + { + *(--buffer_ptr) = static_cast('0' + abs_value); + } + + o->write_characters(number_buffer.data(), n_chars); + } + + /*! + @brief dump a floating-point number + + Dump a given floating-point number to output stream @a o. Works internally + with @a number_buffer. + + @param[in] x floating-point number to dump + */ + void dump_float(number_float_t x) + { + // NaN / inf + if (!std::isfinite(x)) + { + o->write_characters("null", 4); + return; + } + + // If number_float_t is an IEEE-754 single or double precision number, + // use the Grisu2 algorithm to produce short numbers which are + // guaranteed to round-trip, using strtof and strtod, resp. + // + // NB: The test below works if == . + static constexpr bool is_ieee_single_or_double + = (std::numeric_limits::is_iec559 && std::numeric_limits::digits == 24 && std::numeric_limits::max_exponent == 128) || + (std::numeric_limits::is_iec559 && std::numeric_limits::digits == 53 && std::numeric_limits::max_exponent == 1024); + + dump_float(x, std::integral_constant()); + } + + void dump_float(number_float_t x, std::true_type /*is_ieee_single_or_double*/) + { + char* begin = number_buffer.data(); + char* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x); + + o->write_characters(begin, static_cast(end - begin)); + } + + void dump_float(number_float_t x, std::false_type /*is_ieee_single_or_double*/) + { + // get number of digits for a float -> text -> float round-trip + static constexpr auto d = std::numeric_limits::max_digits10; + + // the actual conversion + std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x); + + // negative value indicates an error + JSON_ASSERT(len > 0); + // check if buffer was large enough + JSON_ASSERT(static_cast(len) < number_buffer.size()); + + // erase thousands separator + if (thousands_sep != '\0') + { + const auto end = std::remove(number_buffer.begin(), + number_buffer.begin() + len, thousands_sep); + std::fill(end, number_buffer.end(), '\0'); + JSON_ASSERT((end - number_buffer.begin()) <= len); + len = (end - number_buffer.begin()); + } + + // convert decimal point to '.' + if (decimal_point != '\0' && decimal_point != '.') + { + const auto dec_pos = std::find(number_buffer.begin(), number_buffer.end(), decimal_point); + if (dec_pos != number_buffer.end()) + { + *dec_pos = '.'; + } + } + + o->write_characters(number_buffer.data(), static_cast(len)); + + // determine if need to append ".0" + const bool value_is_int_like = + std::none_of(number_buffer.begin(), number_buffer.begin() + len + 1, + [](char c) + { + return c == '.' || c == 'e'; + }); + + if (value_is_int_like) + { + o->write_characters(".0", 2); + } + } + + /*! + @brief check whether a string is UTF-8 encoded + + The function checks each byte of a string whether it is UTF-8 encoded. The + result of the check is stored in the @a state parameter. The function must + be called initially with state 0 (accept). State 1 means the string must + be rejected, because the current byte is not allowed. If the string is + completely processed, but the state is non-zero, the string ended + prematurely; that is, the last byte indicated more bytes should have + followed. + + @param[in,out] state the state of the decoding + @param[in,out] codep codepoint (valid only if resulting state is UTF8_ACCEPT) + @param[in] byte next byte to decode + @return new state + + @note The function has been edited: a std::array is used. + + @copyright Copyright (c) 2008-2009 Bjoern Hoehrmann + @sa http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ + */ + static std::uint8_t decode(std::uint8_t& state, std::uint32_t& codep, const std::uint8_t byte) noexcept + { + static const std::array utf8d = + { + { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F + 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF + 8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0..DF + 0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF + 0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF + 0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, // s1..s2 + 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, // s3..s4 + 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, // s5..s6 + 1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // s7..s8 + } + }; + + const std::uint8_t type = utf8d[byte]; + + codep = (state != UTF8_ACCEPT) + ? (byte & 0x3fu) | (codep << 6u) + : (0xFFu >> type) & (byte); + + std::size_t index = 256u + static_cast(state) * 16u + static_cast(type); + JSON_ASSERT(index < 400); + state = utf8d[index]; + return state; + } + + /* + * Overload to make the compiler happy while it is instantiating + * dump_integer for number_unsigned_t. + * Must never be called. + */ + number_unsigned_t remove_sign(number_unsigned_t x) + { + JSON_ASSERT(false); // LCOV_EXCL_LINE + return x; // LCOV_EXCL_LINE + } + + /* + * Helper function for dump_integer + * + * This function takes a negative signed integer and returns its absolute + * value as unsigned integer. The plus/minus shuffling is necessary as we can + * not directly remove the sign of an arbitrary signed integer as the + * absolute values of INT_MIN and INT_MAX are usually not the same. See + * #1708 for details. + */ + inline number_unsigned_t remove_sign(number_integer_t x) noexcept + { + JSON_ASSERT(x < 0 && x < (std::numeric_limits::max)()); + return static_cast(-(x + 1)) + 1; + } + + private: + /// the output of the serializer + output_adapter_t o = nullptr; + + /// a (hopefully) large enough character buffer + std::array number_buffer{{}}; + + /// the locale + const std::lconv* loc = nullptr; + /// the locale's thousand separator character + const char thousands_sep = '\0'; + /// the locale's decimal point character + const char decimal_point = '\0'; + + /// string buffer + std::array string_buffer{{}}; + + /// the indentation character + const char indent_char; + /// the indentation string + string_t indent_string; + + /// error_handler how to react on decoding errors + const error_handler_t error_handler; +}; +} // namespace detail +} // namespace nlohmann + +// #include + +// #include + +// #include + + +#include // less +#include // allocator +#include // pair +#include // vector + +namespace nlohmann +{ + +/// ordered_map: a minimal map-like container that preserves insertion order +/// for use within nlohmann::basic_json +template , + class Allocator = std::allocator>> + struct ordered_map : std::vector, Allocator> +{ + using key_type = Key; + using mapped_type = T; + using Container = std::vector, Allocator>; + using typename Container::iterator; + using typename Container::const_iterator; + using typename Container::size_type; + using typename Container::value_type; + + // Explicit constructors instead of `using Container::Container` + // otherwise older compilers choke on it (GCC <= 5.5, xcode <= 9.4) + ordered_map(const Allocator& alloc = Allocator()) : Container{alloc} {} + template + ordered_map(It first, It last, const Allocator& alloc = Allocator()) + : Container{first, last, alloc} {} + ordered_map(std::initializer_list init, const Allocator& alloc = Allocator() ) + : Container{init, alloc} {} + + std::pair emplace(const key_type& key, T&& t) + { + for (auto it = this->begin(); it != this->end(); ++it) + { + if (it->first == key) + { + return {it, false}; + } + } + Container::emplace_back(key, t); + return {--this->end(), true}; + } + + T& operator[](const Key& key) + { + return emplace(key, T{}).first->second; + } + + const T& operator[](const Key& key) const + { + return at(key); + } + + T& at(const Key& key) + { + for (auto it = this->begin(); it != this->end(); ++it) + { + if (it->first == key) + { + return it->second; + } + } + + throw std::out_of_range("key not found"); + } + + const T& at(const Key& key) const + { + for (auto it = this->begin(); it != this->end(); ++it) + { + if (it->first == key) + { + return it->second; + } + } + + throw std::out_of_range("key not found"); + } + + size_type erase(const Key& key) + { + for (auto it = this->begin(); it != this->end(); ++it) + { + if (it->first == key) + { + // Since we cannot move const Keys, re-construct them in place + for (auto next = it; ++next != this->end(); ++it) + { + it->~value_type(); // Destroy but keep allocation + new (&*it) value_type{std::move(*next)}; + } + Container::pop_back(); + return 1; + } + } + return 0; + } + + iterator erase(iterator pos) + { + auto it = pos; + + // Since we cannot move const Keys, re-construct them in place + for (auto next = it; ++next != this->end(); ++it) + { + it->~value_type(); // Destroy but keep allocation + new (&*it) value_type{std::move(*next)}; + } + Container::pop_back(); + return pos; + } + + size_type count(const Key& key) const + { + for (auto it = this->begin(); it != this->end(); ++it) + { + if (it->first == key) + { + return 1; + } + } + return 0; + } + + iterator find(const Key& key) + { + for (auto it = this->begin(); it != this->end(); ++it) + { + if (it->first == key) + { + return it; + } + } + return Container::end(); + } + + const_iterator find(const Key& key) const + { + for (auto it = this->begin(); it != this->end(); ++it) + { + if (it->first == key) + { + return it; + } + } + return Container::end(); + } + + std::pair insert( value_type&& value ) + { + return emplace(value.first, std::move(value.second)); + } + + std::pair insert( const value_type& value ) + { + for (auto it = this->begin(); it != this->end(); ++it) + { + if (it->first == value.first) + { + return {it, false}; + } + } + Container::push_back(value); + return {--this->end(), true}; + } +}; + +} // namespace nlohmann + + +/*! +@brief namespace for Niels Lohmann +@see https://github.com/nlohmann +@since version 1.0.0 +*/ +namespace nlohmann +{ + +/*! +@brief a class to store JSON values + +@tparam ObjectType type for JSON objects (`std::map` by default; will be used +in @ref object_t) +@tparam ArrayType type for JSON arrays (`std::vector` by default; will be used +in @ref array_t) +@tparam StringType type for JSON strings and object keys (`std::string` by +default; will be used in @ref string_t) +@tparam BooleanType type for JSON booleans (`bool` by default; will be used +in @ref boolean_t) +@tparam NumberIntegerType type for JSON integer numbers (`int64_t` by +default; will be used in @ref number_integer_t) +@tparam NumberUnsignedType type for JSON unsigned integer numbers (@c +`uint64_t` by default; will be used in @ref number_unsigned_t) +@tparam NumberFloatType type for JSON floating-point numbers (`double` by +default; will be used in @ref number_float_t) +@tparam BinaryType type for packed binary data for compatibility with binary +serialization formats (`std::vector` by default; will be used in +@ref binary_t) +@tparam AllocatorType type of the allocator to use (`std::allocator` by +default) +@tparam JSONSerializer the serializer to resolve internal calls to `to_json()` +and `from_json()` (@ref adl_serializer by default) + +@requirement The class satisfies the following concept requirements: +- Basic + - [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible): + JSON values can be default constructed. The result will be a JSON null + value. + - [MoveConstructible](https://en.cppreference.com/w/cpp/named_req/MoveConstructible): + A JSON value can be constructed from an rvalue argument. + - [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible): + A JSON value can be copy-constructed from an lvalue expression. + - [MoveAssignable](https://en.cppreference.com/w/cpp/named_req/MoveAssignable): + A JSON value van be assigned from an rvalue argument. + - [CopyAssignable](https://en.cppreference.com/w/cpp/named_req/CopyAssignable): + A JSON value can be copy-assigned from an lvalue expression. + - [Destructible](https://en.cppreference.com/w/cpp/named_req/Destructible): + JSON values can be destructed. +- Layout + - [StandardLayoutType](https://en.cppreference.com/w/cpp/named_req/StandardLayoutType): + JSON values have + [standard layout](https://en.cppreference.com/w/cpp/language/data_members#Standard_layout): + All non-static data members are private and standard layout types, the + class has no virtual functions or (virtual) base classes. +- Library-wide + - [EqualityComparable](https://en.cppreference.com/w/cpp/named_req/EqualityComparable): + JSON values can be compared with `==`, see @ref + operator==(const_reference,const_reference). + - [LessThanComparable](https://en.cppreference.com/w/cpp/named_req/LessThanComparable): + JSON values can be compared with `<`, see @ref + operator<(const_reference,const_reference). + - [Swappable](https://en.cppreference.com/w/cpp/named_req/Swappable): + Any JSON lvalue or rvalue of can be swapped with any lvalue or rvalue of + other compatible types, using unqualified function call @ref swap(). + - [NullablePointer](https://en.cppreference.com/w/cpp/named_req/NullablePointer): + JSON values can be compared against `std::nullptr_t` objects which are used + to model the `null` value. +- Container + - [Container](https://en.cppreference.com/w/cpp/named_req/Container): + JSON values can be used like STL containers and provide iterator access. + - [ReversibleContainer](https://en.cppreference.com/w/cpp/named_req/ReversibleContainer); + JSON values can be used like STL containers and provide reverse iterator + access. + +@invariant The member variables @a m_value and @a m_type have the following +relationship: +- If `m_type == value_t::object`, then `m_value.object != nullptr`. +- If `m_type == value_t::array`, then `m_value.array != nullptr`. +- If `m_type == value_t::string`, then `m_value.string != nullptr`. +The invariants are checked by member function assert_invariant(). + +@internal +@note ObjectType trick from https://stackoverflow.com/a/9860911 +@endinternal + +@see [RFC 7159: The JavaScript Object Notation (JSON) Data Interchange +Format](http://rfc7159.net/rfc7159) + +@since version 1.0.0 + +@nosubgrouping +*/ +NLOHMANN_BASIC_JSON_TPL_DECLARATION +class basic_json +{ + private: + template friend struct detail::external_constructor; + friend ::nlohmann::json_pointer; + + template + friend class ::nlohmann::detail::parser; + friend ::nlohmann::detail::serializer; + template + friend class ::nlohmann::detail::iter_impl; + template + friend class ::nlohmann::detail::binary_writer; + template + friend class ::nlohmann::detail::binary_reader; + template + friend class ::nlohmann::detail::json_sax_dom_parser; + template + friend class ::nlohmann::detail::json_sax_dom_callback_parser; + + /// workaround type for MSVC + using basic_json_t = NLOHMANN_BASIC_JSON_TPL; + + // convenience aliases for types residing in namespace detail; + using lexer = ::nlohmann::detail::lexer_base; + + template + static ::nlohmann::detail::parser parser( + InputAdapterType adapter, + detail::parser_callback_tcb = nullptr, + const bool allow_exceptions = true, + const bool ignore_comments = false + ) + { + return ::nlohmann::detail::parser(std::move(adapter), + std::move(cb), allow_exceptions, ignore_comments); + } + + using primitive_iterator_t = ::nlohmann::detail::primitive_iterator_t; + template + using internal_iterator = ::nlohmann::detail::internal_iterator; + template + using iter_impl = ::nlohmann::detail::iter_impl; + template + using iteration_proxy = ::nlohmann::detail::iteration_proxy; + template using json_reverse_iterator = ::nlohmann::detail::json_reverse_iterator; + + template + using output_adapter_t = ::nlohmann::detail::output_adapter_t; + + template + using binary_reader = ::nlohmann::detail::binary_reader; + template using binary_writer = ::nlohmann::detail::binary_writer; + + using serializer = ::nlohmann::detail::serializer; + + public: + using value_t = detail::value_t; + /// JSON Pointer, see @ref nlohmann::json_pointer + using json_pointer = ::nlohmann::json_pointer; + template + using json_serializer = JSONSerializer; + /// how to treat decoding errors + using error_handler_t = detail::error_handler_t; + /// how to treat CBOR tags + using cbor_tag_handler_t = detail::cbor_tag_handler_t; + /// helper type for initializer lists of basic_json values + using initializer_list_t = std::initializer_list>; + + using input_format_t = detail::input_format_t; + /// SAX interface type, see @ref nlohmann::json_sax + using json_sax_t = json_sax; + + //////////////// + // exceptions // + //////////////// + + /// @name exceptions + /// Classes to implement user-defined exceptions. + /// @{ + + /// @copydoc detail::exception + using exception = detail::exception; + /// @copydoc detail::parse_error + using parse_error = detail::parse_error; + /// @copydoc detail::invalid_iterator + using invalid_iterator = detail::invalid_iterator; + /// @copydoc detail::type_error + using type_error = detail::type_error; + /// @copydoc detail::out_of_range + using out_of_range = detail::out_of_range; + /// @copydoc detail::other_error + using other_error = detail::other_error; + + /// @} + + + ///////////////////// + // container types // + ///////////////////// + + /// @name container types + /// The canonic container types to use @ref basic_json like any other STL + /// container. + /// @{ + + /// the type of elements in a basic_json container + using value_type = basic_json; + + /// the type of an element reference + using reference = value_type&; + /// the type of an element const reference + using const_reference = const value_type&; + + /// a type to represent differences between iterators + using difference_type = std::ptrdiff_t; + /// a type to represent container sizes + using size_type = std::size_t; + + /// the allocator type + using allocator_type = AllocatorType; + + /// the type of an element pointer + using pointer = typename std::allocator_traits::pointer; + /// the type of an element const pointer + using const_pointer = typename std::allocator_traits::const_pointer; + + /// an iterator for a basic_json container + using iterator = iter_impl; + /// a const iterator for a basic_json container + using const_iterator = iter_impl; + /// a reverse iterator for a basic_json container + using reverse_iterator = json_reverse_iterator; + /// a const reverse iterator for a basic_json container + using const_reverse_iterator = json_reverse_iterator; + + /// @} + + + /*! + @brief returns the allocator associated with the container + */ + static allocator_type get_allocator() + { + return allocator_type(); + } + + /*! + @brief returns version information on the library + + This function returns a JSON object with information about the library, + including the version number and information on the platform and compiler. + + @return JSON object holding version information + key | description + ----------- | --------------- + `compiler` | Information on the used compiler. It is an object with the following keys: `c++` (the used C++ standard), `family` (the compiler family; possible values are `clang`, `icc`, `gcc`, `ilecpp`, `msvc`, `pgcpp`, `sunpro`, and `unknown`), and `version` (the compiler version). + `copyright` | The copyright line for the library as string. + `name` | The name of the library as string. + `platform` | The used platform as string. Possible values are `win32`, `linux`, `apple`, `unix`, and `unknown`. + `url` | The URL of the project as string. + `version` | The version of the library. It is an object with the following keys: `major`, `minor`, and `patch` as defined by [Semantic Versioning](http://semver.org), and `string` (the version string). + + @liveexample{The following code shows an example output of the `meta()` + function.,meta} + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @complexity Constant. + + @since 2.1.0 + */ + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json meta() + { + basic_json result; + + result["copyright"] = "(C) 2013-2020 Niels Lohmann"; + result["name"] = "JSON for Modern C++"; + result["url"] = "https://github.com/nlohmann/json"; + result["version"]["string"] = + std::to_string(NLOHMANN_JSON_VERSION_MAJOR) + "." + + std::to_string(NLOHMANN_JSON_VERSION_MINOR) + "." + + std::to_string(NLOHMANN_JSON_VERSION_PATCH); + result["version"]["major"] = NLOHMANN_JSON_VERSION_MAJOR; + result["version"]["minor"] = NLOHMANN_JSON_VERSION_MINOR; + result["version"]["patch"] = NLOHMANN_JSON_VERSION_PATCH; + +#ifdef _WIN32 + result["platform"] = "win32"; +#elif defined __linux__ + result["platform"] = "linux"; +#elif defined __APPLE__ + result["platform"] = "apple"; +#elif defined __unix__ + result["platform"] = "unix"; +#else + result["platform"] = "unknown"; +#endif + +#if defined(__ICC) || defined(__INTEL_COMPILER) + result["compiler"] = {{"family", "icc"}, {"version", __INTEL_COMPILER}}; +#elif defined(__clang__) + result["compiler"] = {{"family", "clang"}, {"version", __clang_version__}}; +#elif defined(__GNUC__) || defined(__GNUG__) + result["compiler"] = {{"family", "gcc"}, {"version", std::to_string(__GNUC__) + "." + std::to_string(__GNUC_MINOR__) + "." + std::to_string(__GNUC_PATCHLEVEL__)}}; +#elif defined(__HP_cc) || defined(__HP_aCC) + result["compiler"] = "hp" +#elif defined(__IBMCPP__) + result["compiler"] = {{"family", "ilecpp"}, {"version", __IBMCPP__}}; +#elif defined(_MSC_VER) + result["compiler"] = {{"family", "msvc"}, {"version", _MSC_VER}}; +#elif defined(__PGI) + result["compiler"] = {{"family", "pgcpp"}, {"version", __PGI}}; +#elif defined(__SUNPRO_CC) + result["compiler"] = {{"family", "sunpro"}, {"version", __SUNPRO_CC}}; +#else + result["compiler"] = {{"family", "unknown"}, {"version", "unknown"}}; +#endif + +#ifdef __cplusplus + result["compiler"]["c++"] = std::to_string(__cplusplus); +#else + result["compiler"]["c++"] = "unknown"; +#endif + return result; + } + + + /////////////////////////// + // JSON value data types // + /////////////////////////// + + /// @name JSON value data types + /// The data types to store a JSON value. These types are derived from + /// the template arguments passed to class @ref basic_json. + /// @{ + +#if defined(JSON_HAS_CPP_14) + // Use transparent comparator if possible, combined with perfect forwarding + // on find() and count() calls prevents unnecessary string construction. + using object_comparator_t = std::less<>; +#else + using object_comparator_t = std::less; +#endif + + /*! + @brief a type for an object + + [RFC 7159](http://rfc7159.net/rfc7159) describes JSON objects as follows: + > An object is an unordered collection of zero or more name/value pairs, + > where a name is a string and a value is a string, number, boolean, null, + > object, or array. + + To store objects in C++, a type is defined by the template parameters + described below. + + @tparam ObjectType the container to store objects (e.g., `std::map` or + `std::unordered_map`) + @tparam StringType the type of the keys or names (e.g., `std::string`). + The comparison function `std::less` is used to order elements + inside the container. + @tparam AllocatorType the allocator to use for objects (e.g., + `std::allocator`) + + #### Default type + + With the default values for @a ObjectType (`std::map`), @a StringType + (`std::string`), and @a AllocatorType (`std::allocator`), the default + value for @a object_t is: + + @code {.cpp} + std::map< + std::string, // key_type + basic_json, // value_type + std::less, // key_compare + std::allocator> // allocator_type + > + @endcode + + #### Behavior + + The choice of @a object_t influences the behavior of the JSON class. With + the default type, objects have the following behavior: + + - When all names are unique, objects will be interoperable in the sense + that all software implementations receiving that object will agree on + the name-value mappings. + - When the names within an object are not unique, it is unspecified which + one of the values for a given key will be chosen. For instance, + `{"key": 2, "key": 1}` could be equal to either `{"key": 1}` or + `{"key": 2}`. + - Internally, name/value pairs are stored in lexicographical order of the + names. Objects will also be serialized (see @ref dump) in this order. + For instance, `{"b": 1, "a": 2}` and `{"a": 2, "b": 1}` will be stored + and serialized as `{"a": 2, "b": 1}`. + - When comparing objects, the order of the name/value pairs is irrelevant. + This makes objects interoperable in the sense that they will not be + affected by these differences. For instance, `{"b": 1, "a": 2}` and + `{"a": 2, "b": 1}` will be treated as equal. + + #### Limits + + [RFC 7159](http://rfc7159.net/rfc7159) specifies: + > An implementation may set limits on the maximum depth of nesting. + + In this class, the object's limit of nesting is not explicitly constrained. + However, a maximum depth of nesting may be introduced by the compiler or + runtime environment. A theoretical limit can be queried by calling the + @ref max_size function of a JSON object. + + #### Storage + + Objects are stored as pointers in a @ref basic_json type. That is, for any + access to object values, a pointer of type `object_t*` must be + dereferenced. + + @sa @ref array_t -- type for an array value + + @since version 1.0.0 + + @note The order name/value pairs are added to the object is *not* + preserved by the library. Therefore, iterating an object may return + name/value pairs in a different order than they were originally stored. In + fact, keys will be traversed in alphabetical order as `std::map` with + `std::less` is used by default. Please note this behavior conforms to [RFC + 7159](http://rfc7159.net/rfc7159), because any order implements the + specified "unordered" nature of JSON objects. + */ + using object_t = ObjectType>>; + + /*! + @brief a type for an array + + [RFC 7159](http://rfc7159.net/rfc7159) describes JSON arrays as follows: + > An array is an ordered sequence of zero or more values. + + To store objects in C++, a type is defined by the template parameters + explained below. + + @tparam ArrayType container type to store arrays (e.g., `std::vector` or + `std::list`) + @tparam AllocatorType allocator to use for arrays (e.g., `std::allocator`) + + #### Default type + + With the default values for @a ArrayType (`std::vector`) and @a + AllocatorType (`std::allocator`), the default value for @a array_t is: + + @code {.cpp} + std::vector< + basic_json, // value_type + std::allocator // allocator_type + > + @endcode + + #### Limits + + [RFC 7159](http://rfc7159.net/rfc7159) specifies: + > An implementation may set limits on the maximum depth of nesting. + + In this class, the array's limit of nesting is not explicitly constrained. + However, a maximum depth of nesting may be introduced by the compiler or + runtime environment. A theoretical limit can be queried by calling the + @ref max_size function of a JSON array. + + #### Storage + + Arrays are stored as pointers in a @ref basic_json type. That is, for any + access to array values, a pointer of type `array_t*` must be dereferenced. + + @sa @ref object_t -- type for an object value + + @since version 1.0.0 + */ + using array_t = ArrayType>; + + /*! + @brief a type for a string + + [RFC 7159](http://rfc7159.net/rfc7159) describes JSON strings as follows: + > A string is a sequence of zero or more Unicode characters. + + To store objects in C++, a type is defined by the template parameter + described below. Unicode values are split by the JSON class into + byte-sized characters during deserialization. + + @tparam StringType the container to store strings (e.g., `std::string`). + Note this container is used for keys/names in objects, see @ref object_t. + + #### Default type + + With the default values for @a StringType (`std::string`), the default + value for @a string_t is: + + @code {.cpp} + std::string + @endcode + + #### Encoding + + Strings are stored in UTF-8 encoding. Therefore, functions like + `std::string::size()` or `std::string::length()` return the number of + bytes in the string rather than the number of characters or glyphs. + + #### String comparison + + [RFC 7159](http://rfc7159.net/rfc7159) states: + > Software implementations are typically required to test names of object + > members for equality. Implementations that transform the textual + > representation into sequences of Unicode code units and then perform the + > comparison numerically, code unit by code unit, are interoperable in the + > sense that implementations will agree in all cases on equality or + > inequality of two strings. For example, implementations that compare + > strings with escaped characters unconverted may incorrectly find that + > `"a\\b"` and `"a\u005Cb"` are not equal. + + This implementation is interoperable as it does compare strings code unit + by code unit. + + #### Storage + + String values are stored as pointers in a @ref basic_json type. That is, + for any access to string values, a pointer of type `string_t*` must be + dereferenced. + + @since version 1.0.0 + */ + using string_t = StringType; + + /*! + @brief a type for a boolean + + [RFC 7159](http://rfc7159.net/rfc7159) implicitly describes a boolean as a + type which differentiates the two literals `true` and `false`. + + To store objects in C++, a type is defined by the template parameter @a + BooleanType which chooses the type to use. + + #### Default type + + With the default values for @a BooleanType (`bool`), the default value for + @a boolean_t is: + + @code {.cpp} + bool + @endcode + + #### Storage + + Boolean values are stored directly inside a @ref basic_json type. + + @since version 1.0.0 + */ + using boolean_t = BooleanType; + + /*! + @brief a type for a number (integer) + + [RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows: + > The representation of numbers is similar to that used in most + > programming languages. A number is represented in base 10 using decimal + > digits. It contains an integer component that may be prefixed with an + > optional minus sign, which may be followed by a fraction part and/or an + > exponent part. Leading zeros are not allowed. (...) Numeric values that + > cannot be represented in the grammar below (such as Infinity and NaN) + > are not permitted. + + This description includes both integer and floating-point numbers. + However, C++ allows more precise storage if it is known whether the number + is a signed integer, an unsigned integer or a floating-point number. + Therefore, three different types, @ref number_integer_t, @ref + number_unsigned_t and @ref number_float_t are used. + + To store integer numbers in C++, a type is defined by the template + parameter @a NumberIntegerType which chooses the type to use. + + #### Default type + + With the default values for @a NumberIntegerType (`int64_t`), the default + value for @a number_integer_t is: + + @code {.cpp} + int64_t + @endcode + + #### Default behavior + + - The restrictions about leading zeros is not enforced in C++. Instead, + leading zeros in integer literals lead to an interpretation as octal + number. Internally, the value will be stored as decimal number. For + instance, the C++ integer literal `010` will be serialized to `8`. + During deserialization, leading zeros yield an error. + - Not-a-number (NaN) values will be serialized to `null`. + + #### Limits + + [RFC 7159](http://rfc7159.net/rfc7159) specifies: + > An implementation may set limits on the range and precision of numbers. + + When the default type is used, the maximal integer number that can be + stored is `9223372036854775807` (INT64_MAX) and the minimal integer number + that can be stored is `-9223372036854775808` (INT64_MIN). Integer numbers + that are out of range will yield over/underflow when used in a + constructor. During deserialization, too large or small integer numbers + will be automatically be stored as @ref number_unsigned_t or @ref + number_float_t. + + [RFC 7159](http://rfc7159.net/rfc7159) further states: + > Note that when such software is used, numbers that are integers and are + > in the range \f$[-2^{53}+1, 2^{53}-1]\f$ are interoperable in the sense + > that implementations will agree exactly on their numeric values. + + As this range is a subrange of the exactly supported range [INT64_MIN, + INT64_MAX], this class's integer type is interoperable. + + #### Storage + + Integer number values are stored directly inside a @ref basic_json type. + + @sa @ref number_float_t -- type for number values (floating-point) + + @sa @ref number_unsigned_t -- type for number values (unsigned integer) + + @since version 1.0.0 + */ + using number_integer_t = NumberIntegerType; + + /*! + @brief a type for a number (unsigned) + + [RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows: + > The representation of numbers is similar to that used in most + > programming languages. A number is represented in base 10 using decimal + > digits. It contains an integer component that may be prefixed with an + > optional minus sign, which may be followed by a fraction part and/or an + > exponent part. Leading zeros are not allowed. (...) Numeric values that + > cannot be represented in the grammar below (such as Infinity and NaN) + > are not permitted. + + This description includes both integer and floating-point numbers. + However, C++ allows more precise storage if it is known whether the number + is a signed integer, an unsigned integer or a floating-point number. + Therefore, three different types, @ref number_integer_t, @ref + number_unsigned_t and @ref number_float_t are used. + + To store unsigned integer numbers in C++, a type is defined by the + template parameter @a NumberUnsignedType which chooses the type to use. + + #### Default type + + With the default values for @a NumberUnsignedType (`uint64_t`), the + default value for @a number_unsigned_t is: + + @code {.cpp} + uint64_t + @endcode + + #### Default behavior + + - The restrictions about leading zeros is not enforced in C++. Instead, + leading zeros in integer literals lead to an interpretation as octal + number. Internally, the value will be stored as decimal number. For + instance, the C++ integer literal `010` will be serialized to `8`. + During deserialization, leading zeros yield an error. + - Not-a-number (NaN) values will be serialized to `null`. + + #### Limits + + [RFC 7159](http://rfc7159.net/rfc7159) specifies: + > An implementation may set limits on the range and precision of numbers. + + When the default type is used, the maximal integer number that can be + stored is `18446744073709551615` (UINT64_MAX) and the minimal integer + number that can be stored is `0`. Integer numbers that are out of range + will yield over/underflow when used in a constructor. During + deserialization, too large or small integer numbers will be automatically + be stored as @ref number_integer_t or @ref number_float_t. + + [RFC 7159](http://rfc7159.net/rfc7159) further states: + > Note that when such software is used, numbers that are integers and are + > in the range \f$[-2^{53}+1, 2^{53}-1]\f$ are interoperable in the sense + > that implementations will agree exactly on their numeric values. + + As this range is a subrange (when considered in conjunction with the + number_integer_t type) of the exactly supported range [0, UINT64_MAX], + this class's integer type is interoperable. + + #### Storage + + Integer number values are stored directly inside a @ref basic_json type. + + @sa @ref number_float_t -- type for number values (floating-point) + @sa @ref number_integer_t -- type for number values (integer) + + @since version 2.0.0 + */ + using number_unsigned_t = NumberUnsignedType; + + /*! + @brief a type for a number (floating-point) + + [RFC 7159](http://rfc7159.net/rfc7159) describes numbers as follows: + > The representation of numbers is similar to that used in most + > programming languages. A number is represented in base 10 using decimal + > digits. It contains an integer component that may be prefixed with an + > optional minus sign, which may be followed by a fraction part and/or an + > exponent part. Leading zeros are not allowed. (...) Numeric values that + > cannot be represented in the grammar below (such as Infinity and NaN) + > are not permitted. + + This description includes both integer and floating-point numbers. + However, C++ allows more precise storage if it is known whether the number + is a signed integer, an unsigned integer or a floating-point number. + Therefore, three different types, @ref number_integer_t, @ref + number_unsigned_t and @ref number_float_t are used. + + To store floating-point numbers in C++, a type is defined by the template + parameter @a NumberFloatType which chooses the type to use. + + #### Default type + + With the default values for @a NumberFloatType (`double`), the default + value for @a number_float_t is: + + @code {.cpp} + double + @endcode + + #### Default behavior + + - The restrictions about leading zeros is not enforced in C++. Instead, + leading zeros in floating-point literals will be ignored. Internally, + the value will be stored as decimal number. For instance, the C++ + floating-point literal `01.2` will be serialized to `1.2`. During + deserialization, leading zeros yield an error. + - Not-a-number (NaN) values will be serialized to `null`. + + #### Limits + + [RFC 7159](http://rfc7159.net/rfc7159) states: + > This specification allows implementations to set limits on the range and + > precision of numbers accepted. Since software that implements IEEE + > 754-2008 binary64 (double precision) numbers is generally available and + > widely used, good interoperability can be achieved by implementations + > that expect no more precision or range than these provide, in the sense + > that implementations will approximate JSON numbers within the expected + > precision. + + This implementation does exactly follow this approach, as it uses double + precision floating-point numbers. Note values smaller than + `-1.79769313486232e+308` and values greater than `1.79769313486232e+308` + will be stored as NaN internally and be serialized to `null`. + + #### Storage + + Floating-point number values are stored directly inside a @ref basic_json + type. + + @sa @ref number_integer_t -- type for number values (integer) + + @sa @ref number_unsigned_t -- type for number values (unsigned integer) + + @since version 1.0.0 + */ + using number_float_t = NumberFloatType; + + /*! + @brief a type for a packed binary type + + This type is a type designed to carry binary data that appears in various + serialized formats, such as CBOR's Major Type 2, MessagePack's bin, and + BSON's generic binary subtype. This type is NOT a part of standard JSON and + exists solely for compatibility with these binary types. As such, it is + simply defined as an ordered sequence of zero or more byte values. + + Additionally, as an implementation detail, the subtype of the binary data is + carried around as a `std::uint8_t`, which is compatible with both of the + binary data formats that use binary subtyping, (though the specific + numbering is incompatible with each other, and it is up to the user to + translate between them). + + [CBOR's RFC 7049](https://tools.ietf.org/html/rfc7049) describes this type + as: + > Major type 2: a byte string. The string's length in bytes is represented + > following the rules for positive integers (major type 0). + + [MessagePack's documentation on the bin type + family](https://github.com/msgpack/msgpack/blob/master/spec.md#bin-format-family) + describes this type as: + > Bin format family stores an byte array in 2, 3, or 5 bytes of extra bytes + > in addition to the size of the byte array. + + [BSON's specifications](http://bsonspec.org/spec.html) describe several + binary types; however, this type is intended to represent the generic binary + type which has the description: + > Generic binary subtype - This is the most commonly used binary subtype and + > should be the 'default' for drivers and tools. + + None of these impose any limitations on the internal representation other + than the basic unit of storage be some type of array whose parts are + decomposable into bytes. + + The default representation of this binary format is a + `std::vector`, which is a very common way to represent a byte + array in modern C++. + + #### Default type + + The default values for @a BinaryType is `std::vector` + + #### Storage + + Binary Arrays are stored as pointers in a @ref basic_json type. That is, + for any access to array values, a pointer of the type `binary_t*` must be + dereferenced. + + #### Notes on subtypes + + - CBOR + - Binary values are represented as byte strings. No subtypes are + supported and will be ignored when CBOR is written. + - MessagePack + - If a subtype is given and the binary array contains exactly 1, 2, 4, 8, + or 16 elements, the fixext family (fixext1, fixext2, fixext4, fixext8) + is used. For other sizes, the ext family (ext8, ext16, ext32) is used. + The subtype is then added as singed 8-bit integer. + - If no subtype is given, the bin family (bin8, bin16, bin32) is used. + - BSON + - If a subtype is given, it is used and added as unsigned 8-bit integer. + - If no subtype is given, the generic binary subtype 0x00 is used. + + @sa @ref binary -- create a binary array + + @since version 3.8.0 + */ + using binary_t = nlohmann::byte_container_with_subtype; + /// @} + + private: + + /// helper for exception-safe object creation + template + JSON_HEDLEY_RETURNS_NON_NULL + static T* create(Args&& ... args) + { + AllocatorType alloc; + using AllocatorTraits = std::allocator_traits>; + + auto deleter = [&](T * object) + { + AllocatorTraits::deallocate(alloc, object, 1); + }; + std::unique_ptr object(AllocatorTraits::allocate(alloc, 1), deleter); + AllocatorTraits::construct(alloc, object.get(), std::forward(args)...); + JSON_ASSERT(object != nullptr); + return object.release(); + } + + //////////////////////// + // JSON value storage // + //////////////////////// + + /*! + @brief a JSON value + + The actual storage for a JSON value of the @ref basic_json class. This + union combines the different storage types for the JSON value types + defined in @ref value_t. + + JSON type | value_t type | used type + --------- | --------------- | ------------------------ + object | object | pointer to @ref object_t + array | array | pointer to @ref array_t + string | string | pointer to @ref string_t + boolean | boolean | @ref boolean_t + number | number_integer | @ref number_integer_t + number | number_unsigned | @ref number_unsigned_t + number | number_float | @ref number_float_t + binary | binary | pointer to @ref binary_t + null | null | *no value is stored* + + @note Variable-length types (objects, arrays, and strings) are stored as + pointers. The size of the union should not exceed 64 bits if the default + value types are used. + + @since version 1.0.0 + */ + union json_value + { + /// object (stored with pointer to save storage) + object_t* object; + /// array (stored with pointer to save storage) + array_t* array; + /// string (stored with pointer to save storage) + string_t* string; + /// binary (stored with pointer to save storage) + binary_t* binary; + /// boolean + boolean_t boolean; + /// number (integer) + number_integer_t number_integer; + /// number (unsigned integer) + number_unsigned_t number_unsigned; + /// number (floating-point) + number_float_t number_float; + + /// default constructor (for null values) + json_value() = default; + /// constructor for booleans + json_value(boolean_t v) noexcept : boolean(v) {} + /// constructor for numbers (integer) + json_value(number_integer_t v) noexcept : number_integer(v) {} + /// constructor for numbers (unsigned) + json_value(number_unsigned_t v) noexcept : number_unsigned(v) {} + /// constructor for numbers (floating-point) + json_value(number_float_t v) noexcept : number_float(v) {} + /// constructor for empty values of a given type + json_value(value_t t) + { + switch (t) + { + case value_t::object: + { + object = create(); + break; + } + + case value_t::array: + { + array = create(); + break; + } + + case value_t::string: + { + string = create(""); + break; + } + + case value_t::binary: + { + binary = create(); + break; + } + + case value_t::boolean: + { + boolean = boolean_t(false); + break; + } + + case value_t::number_integer: + { + number_integer = number_integer_t(0); + break; + } + + case value_t::number_unsigned: + { + number_unsigned = number_unsigned_t(0); + break; + } + + case value_t::number_float: + { + number_float = number_float_t(0.0); + break; + } + + case value_t::null: + { + object = nullptr; // silence warning, see #821 + break; + } + + default: + { + object = nullptr; // silence warning, see #821 + if (JSON_HEDLEY_UNLIKELY(t == value_t::null)) + { + JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.9.1")); // LCOV_EXCL_LINE + } + break; + } + } + } + + /// constructor for strings + json_value(const string_t& value) + { + string = create(value); + } + + /// constructor for rvalue strings + json_value(string_t&& value) + { + string = create(std::move(value)); + } + + /// constructor for objects + json_value(const object_t& value) + { + object = create(value); + } + + /// constructor for rvalue objects + json_value(object_t&& value) + { + object = create(std::move(value)); + } + + /// constructor for arrays + json_value(const array_t& value) + { + array = create(value); + } + + /// constructor for rvalue arrays + json_value(array_t&& value) + { + array = create(std::move(value)); + } + + /// constructor for binary arrays + json_value(const typename binary_t::container_type& value) + { + binary = create(value); + } + + /// constructor for rvalue binary arrays + json_value(typename binary_t::container_type&& value) + { + binary = create(std::move(value)); + } + + /// constructor for binary arrays (internal type) + json_value(const binary_t& value) + { + binary = create(value); + } + + /// constructor for rvalue binary arrays (internal type) + json_value(binary_t&& value) + { + binary = create(std::move(value)); + } + + void destroy(value_t t) noexcept + { + // flatten the current json_value to a heap-allocated stack + std::vector stack; + + // move the top-level items to stack + if (t == value_t::array) + { + stack.reserve(array->size()); + std::move(array->begin(), array->end(), std::back_inserter(stack)); + } + else if (t == value_t::object) + { + stack.reserve(object->size()); + for (auto&& it : *object) + { + stack.push_back(std::move(it.second)); + } + } + + while (!stack.empty()) + { + // move the last item to local variable to be processed + basic_json current_item(std::move(stack.back())); + stack.pop_back(); + + // if current_item is array/object, move + // its children to the stack to be processed later + if (current_item.is_array()) + { + std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(), + std::back_inserter(stack)); + + current_item.m_value.array->clear(); + } + else if (current_item.is_object()) + { + for (auto&& it : *current_item.m_value.object) + { + stack.push_back(std::move(it.second)); + } + + current_item.m_value.object->clear(); + } + + // it's now safe that current_item get destructed + // since it doesn't have any children + } + + switch (t) + { + case value_t::object: + { + AllocatorType alloc; + std::allocator_traits::destroy(alloc, object); + std::allocator_traits::deallocate(alloc, object, 1); + break; + } + + case value_t::array: + { + AllocatorType alloc; + std::allocator_traits::destroy(alloc, array); + std::allocator_traits::deallocate(alloc, array, 1); + break; + } + + case value_t::string: + { + AllocatorType alloc; + std::allocator_traits::destroy(alloc, string); + std::allocator_traits::deallocate(alloc, string, 1); + break; + } + + case value_t::binary: + { + AllocatorType alloc; + std::allocator_traits::destroy(alloc, binary); + std::allocator_traits::deallocate(alloc, binary, 1); + break; + } + + default: + { + break; + } + } + } + }; + + /*! + @brief checks the class invariants + + This function asserts the class invariants. It needs to be called at the + end of every constructor to make sure that created objects respect the + invariant. Furthermore, it has to be called each time the type of a JSON + value is changed, because the invariant expresses a relationship between + @a m_type and @a m_value. + */ + void assert_invariant() const noexcept + { + JSON_ASSERT(m_type != value_t::object || m_value.object != nullptr); + JSON_ASSERT(m_type != value_t::array || m_value.array != nullptr); + JSON_ASSERT(m_type != value_t::string || m_value.string != nullptr); + JSON_ASSERT(m_type != value_t::binary || m_value.binary != nullptr); + } + + public: + ////////////////////////// + // JSON parser callback // + ////////////////////////// + + /*! + @brief parser event types + + The parser callback distinguishes the following events: + - `object_start`: the parser read `{` and started to process a JSON object + - `key`: the parser read a key of a value in an object + - `object_end`: the parser read `}` and finished processing a JSON object + - `array_start`: the parser read `[` and started to process a JSON array + - `array_end`: the parser read `]` and finished processing a JSON array + - `value`: the parser finished reading a JSON value + + @image html callback_events.png "Example when certain parse events are triggered" + + @sa @ref parser_callback_t for more information and examples + */ + using parse_event_t = detail::parse_event_t; + + /*! + @brief per-element parser callback type + + With a parser callback function, the result of parsing a JSON text can be + influenced. When passed to @ref parse, it is called on certain events + (passed as @ref parse_event_t via parameter @a event) with a set recursion + depth @a depth and context JSON value @a parsed. The return value of the + callback function is a boolean indicating whether the element that emitted + the callback shall be kept or not. + + We distinguish six scenarios (determined by the event type) in which the + callback function can be called. The following table describes the values + of the parameters @a depth, @a event, and @a parsed. + + parameter @a event | description | parameter @a depth | parameter @a parsed + ------------------ | ----------- | ------------------ | ------------------- + parse_event_t::object_start | the parser read `{` and started to process a JSON object | depth of the parent of the JSON object | a JSON value with type discarded + parse_event_t::key | the parser read a key of a value in an object | depth of the currently parsed JSON object | a JSON string containing the key + parse_event_t::object_end | the parser read `}` and finished processing a JSON object | depth of the parent of the JSON object | the parsed JSON object + parse_event_t::array_start | the parser read `[` and started to process a JSON array | depth of the parent of the JSON array | a JSON value with type discarded + parse_event_t::array_end | the parser read `]` and finished processing a JSON array | depth of the parent of the JSON array | the parsed JSON array + parse_event_t::value | the parser finished reading a JSON value | depth of the value | the parsed JSON value + + @image html callback_events.png "Example when certain parse events are triggered" + + Discarding a value (i.e., returning `false`) has different effects + depending on the context in which function was called: + + - Discarded values in structured types are skipped. That is, the parser + will behave as if the discarded value was never read. + - In case a value outside a structured type is skipped, it is replaced + with `null`. This case happens if the top-level element is skipped. + + @param[in] depth the depth of the recursion during parsing + + @param[in] event an event of type parse_event_t indicating the context in + the callback function has been called + + @param[in,out] parsed the current intermediate parse result; note that + writing to this value has no effect for parse_event_t::key events + + @return Whether the JSON value which called the function during parsing + should be kept (`true`) or not (`false`). In the latter case, it is either + skipped completely or replaced by an empty discarded object. + + @sa @ref parse for examples + + @since version 1.0.0 + */ + using parser_callback_t = detail::parser_callback_t; + + ////////////////// + // constructors // + ////////////////// + + /// @name constructors and destructors + /// Constructors of class @ref basic_json, copy/move constructor, copy + /// assignment, static functions creating objects, and the destructor. + /// @{ + + /*! + @brief create an empty value with a given type + + Create an empty JSON value with a given type. The value will be default + initialized with an empty value which depends on the type: + + Value type | initial value + ----------- | ------------- + null | `null` + boolean | `false` + string | `""` + number | `0` + object | `{}` + array | `[]` + binary | empty array + + @param[in] v the type of the value to create + + @complexity Constant. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @liveexample{The following code shows the constructor for different @ref + value_t values,basic_json__value_t} + + @sa @ref clear() -- restores the postcondition of this constructor + + @since version 1.0.0 + */ + basic_json(const value_t v) + : m_type(v), m_value(v) + { + assert_invariant(); + } + + /*! + @brief create a null object + + Create a `null` JSON value. It either takes a null pointer as parameter + (explicitly creating `null`) or no parameter (implicitly creating `null`). + The passed null pointer itself is not read -- it is only used to choose + the right constructor. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this constructor never throws + exceptions. + + @liveexample{The following code shows the constructor with and without a + null pointer parameter.,basic_json__nullptr_t} + + @since version 1.0.0 + */ + basic_json(std::nullptr_t = nullptr) noexcept + : basic_json(value_t::null) + { + assert_invariant(); + } + + /*! + @brief create a JSON value + + This is a "catch all" constructor for all compatible JSON types; that is, + types for which a `to_json()` method exists. The constructor forwards the + parameter @a val to that method (to `json_serializer::to_json` method + with `U = uncvref_t`, to be exact). + + Template type @a CompatibleType includes, but is not limited to, the + following types: + - **arrays**: @ref array_t and all kinds of compatible containers such as + `std::vector`, `std::deque`, `std::list`, `std::forward_list`, + `std::array`, `std::valarray`, `std::set`, `std::unordered_set`, + `std::multiset`, and `std::unordered_multiset` with a `value_type` from + which a @ref basic_json value can be constructed. + - **objects**: @ref object_t and all kinds of compatible associative + containers such as `std::map`, `std::unordered_map`, `std::multimap`, + and `std::unordered_multimap` with a `key_type` compatible to + @ref string_t and a `value_type` from which a @ref basic_json value can + be constructed. + - **strings**: @ref string_t, string literals, and all compatible string + containers can be used. + - **numbers**: @ref number_integer_t, @ref number_unsigned_t, + @ref number_float_t, and all convertible number types such as `int`, + `size_t`, `int64_t`, `float` or `double` can be used. + - **boolean**: @ref boolean_t / `bool` can be used. + - **binary**: @ref binary_t / `std::vector` may be used, + unfortunately because string literals cannot be distinguished from binary + character arrays by the C++ type system, all types compatible with `const + char*` will be directed to the string constructor instead. This is both + for backwards compatibility, and due to the fact that a binary type is not + a standard JSON type. + + See the examples below. + + @tparam CompatibleType a type such that: + - @a CompatibleType is not derived from `std::istream`, + - @a CompatibleType is not @ref basic_json (to avoid hijacking copy/move + constructors), + - @a CompatibleType is not a different @ref basic_json type (i.e. with different template arguments) + - @a CompatibleType is not a @ref basic_json nested type (e.g., + @ref json_pointer, @ref iterator, etc ...) + - @ref @ref json_serializer has a + `to_json(basic_json_t&, CompatibleType&&)` method + + @tparam U = `uncvref_t` + + @param[in] val the value to be forwarded to the respective constructor + + @complexity Usually linear in the size of the passed @a val, also + depending on the implementation of the called `to_json()` + method. + + @exceptionsafety Depends on the called constructor. For types directly + supported by the library (i.e., all types for which no `to_json()` function + was provided), strong guarantee holds: if an exception is thrown, there are + no changes to any JSON value. + + @liveexample{The following code shows the constructor with several + compatible types.,basic_json__CompatibleType} + + @since version 2.1.0 + */ + template < typename CompatibleType, + typename U = detail::uncvref_t, + detail::enable_if_t < + !detail::is_basic_json::value && detail::is_compatible_type::value, int > = 0 > + basic_json(CompatibleType && val) noexcept(noexcept( + JSONSerializer::to_json(std::declval(), + std::forward(val)))) + { + JSONSerializer::to_json(*this, std::forward(val)); + assert_invariant(); + } + + /*! + @brief create a JSON value from an existing one + + This is a constructor for existing @ref basic_json types. + It does not hijack copy/move constructors, since the parameter has different + template arguments than the current ones. + + The constructor tries to convert the internal @ref m_value of the parameter. + + @tparam BasicJsonType a type such that: + - @a BasicJsonType is a @ref basic_json type. + - @a BasicJsonType has different template arguments than @ref basic_json_t. + + @param[in] val the @ref basic_json value to be converted. + + @complexity Usually linear in the size of the passed @a val, also + depending on the implementation of the called `to_json()` + method. + + @exceptionsafety Depends on the called constructor. For types directly + supported by the library (i.e., all types for which no `to_json()` function + was provided), strong guarantee holds: if an exception is thrown, there are + no changes to any JSON value. + + @since version 3.2.0 + */ + template < typename BasicJsonType, + detail::enable_if_t < + detail::is_basic_json::value&& !std::is_same::value, int > = 0 > + basic_json(const BasicJsonType& val) + { + using other_boolean_t = typename BasicJsonType::boolean_t; + using other_number_float_t = typename BasicJsonType::number_float_t; + using other_number_integer_t = typename BasicJsonType::number_integer_t; + using other_number_unsigned_t = typename BasicJsonType::number_unsigned_t; + using other_string_t = typename BasicJsonType::string_t; + using other_object_t = typename BasicJsonType::object_t; + using other_array_t = typename BasicJsonType::array_t; + using other_binary_t = typename BasicJsonType::binary_t; + + switch (val.type()) + { + case value_t::boolean: + JSONSerializer::to_json(*this, val.template get()); + break; + case value_t::number_float: + JSONSerializer::to_json(*this, val.template get()); + break; + case value_t::number_integer: + JSONSerializer::to_json(*this, val.template get()); + break; + case value_t::number_unsigned: + JSONSerializer::to_json(*this, val.template get()); + break; + case value_t::string: + JSONSerializer::to_json(*this, val.template get_ref()); + break; + case value_t::object: + JSONSerializer::to_json(*this, val.template get_ref()); + break; + case value_t::array: + JSONSerializer::to_json(*this, val.template get_ref()); + break; + case value_t::binary: + JSONSerializer::to_json(*this, val.template get_ref()); + break; + case value_t::null: + *this = nullptr; + break; + case value_t::discarded: + m_type = value_t::discarded; + break; + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } + assert_invariant(); + } + + /*! + @brief create a container (array or object) from an initializer list + + Creates a JSON value of type array or object from the passed initializer + list @a init. In case @a type_deduction is `true` (default), the type of + the JSON value to be created is deducted from the initializer list @a init + according to the following rules: + + 1. If the list is empty, an empty JSON object value `{}` is created. + 2. If the list consists of pairs whose first element is a string, a JSON + object value is created where the first elements of the pairs are + treated as keys and the second elements are as values. + 3. In all other cases, an array is created. + + The rules aim to create the best fit between a C++ initializer list and + JSON values. The rationale is as follows: + + 1. The empty initializer list is written as `{}` which is exactly an empty + JSON object. + 2. C++ has no way of describing mapped types other than to list a list of + pairs. As JSON requires that keys must be of type string, rule 2 is the + weakest constraint one can pose on initializer lists to interpret them + as an object. + 3. In all other cases, the initializer list could not be interpreted as + JSON object type, so interpreting it as JSON array type is safe. + + With the rules described above, the following JSON values cannot be + expressed by an initializer list: + + - the empty array (`[]`): use @ref array(initializer_list_t) + with an empty initializer list in this case + - arrays whose elements satisfy rule 2: use @ref + array(initializer_list_t) with the same initializer list + in this case + + @note When used without parentheses around an empty initializer list, @ref + basic_json() is called instead of this function, yielding the JSON null + value. + + @param[in] init initializer list with JSON values + + @param[in] type_deduction internal parameter; when set to `true`, the type + of the JSON value is deducted from the initializer list @a init; when set + to `false`, the type provided via @a manual_type is forced. This mode is + used by the functions @ref array(initializer_list_t) and + @ref object(initializer_list_t). + + @param[in] manual_type internal parameter; when @a type_deduction is set + to `false`, the created JSON value will use the provided type (only @ref + value_t::array and @ref value_t::object are valid); when @a type_deduction + is set to `true`, this parameter has no effect + + @throw type_error.301 if @a type_deduction is `false`, @a manual_type is + `value_t::object`, but @a init contains an element which is not a pair + whose first element is a string. In this case, the constructor could not + create an object. If @a type_deduction would have be `true`, an array + would have been created. See @ref object(initializer_list_t) + for an example. + + @complexity Linear in the size of the initializer list @a init. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @liveexample{The example below shows how JSON values are created from + initializer lists.,basic_json__list_init_t} + + @sa @ref array(initializer_list_t) -- create a JSON array + value from an initializer list + @sa @ref object(initializer_list_t) -- create a JSON object + value from an initializer list + + @since version 1.0.0 + */ + basic_json(initializer_list_t init, + bool type_deduction = true, + value_t manual_type = value_t::array) + { + // check if each element is an array with two elements whose first + // element is a string + bool is_an_object = std::all_of(init.begin(), init.end(), + [](const detail::json_ref& element_ref) + { + return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[0].is_string(); + }); + + // adjust type if type deduction is not wanted + if (!type_deduction) + { + // if array is wanted, do not create an object though possible + if (manual_type == value_t::array) + { + is_an_object = false; + } + + // if object is wanted but impossible, throw an exception + if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object)) + { + JSON_THROW(type_error::create(301, "cannot create object from initializer list")); + } + } + + if (is_an_object) + { + // the initializer list is a list of pairs -> create object + m_type = value_t::object; + m_value = value_t::object; + + std::for_each(init.begin(), init.end(), [this](const detail::json_ref& element_ref) + { + auto element = element_ref.moved_or_copied(); + m_value.object->emplace( + std::move(*((*element.m_value.array)[0].m_value.string)), + std::move((*element.m_value.array)[1])); + }); + } + else + { + // the initializer list describes an array -> create array + m_type = value_t::array; + m_value.array = create(init.begin(), init.end()); + } + + assert_invariant(); + } + + /*! + @brief explicitly create a binary array (without subtype) + + Creates a JSON binary array value from a given binary container. Binary + values are part of various binary formats, such as CBOR, MessagePack, and + BSON. This constructor is used to create a value for serialization to those + formats. + + @note Note, this function exists because of the difficulty in correctly + specifying the correct template overload in the standard value ctor, as both + JSON arrays and JSON binary arrays are backed with some form of a + `std::vector`. Because JSON binary arrays are a non-standard extension it + was decided that it would be best to prevent automatic initialization of a + binary array type, for backwards compatibility and so it does not happen on + accident. + + @param[in] init container containing bytes to use as binary type + + @return JSON binary array value + + @complexity Linear in the size of @a init. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @since version 3.8.0 + */ + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json binary(const typename binary_t::container_type& init) + { + auto res = basic_json(); + res.m_type = value_t::binary; + res.m_value = init; + return res; + } + + /*! + @brief explicitly create a binary array (with subtype) + + Creates a JSON binary array value from a given binary container. Binary + values are part of various binary formats, such as CBOR, MessagePack, and + BSON. This constructor is used to create a value for serialization to those + formats. + + @note Note, this function exists because of the difficulty in correctly + specifying the correct template overload in the standard value ctor, as both + JSON arrays and JSON binary arrays are backed with some form of a + `std::vector`. Because JSON binary arrays are a non-standard extension it + was decided that it would be best to prevent automatic initialization of a + binary array type, for backwards compatibility and so it does not happen on + accident. + + @param[in] init container containing bytes to use as binary type + @param[in] subtype subtype to use in MessagePack and BSON + + @return JSON binary array value + + @complexity Linear in the size of @a init. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @since version 3.8.0 + */ + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json binary(const typename binary_t::container_type& init, std::uint8_t subtype) + { + auto res = basic_json(); + res.m_type = value_t::binary; + res.m_value = binary_t(init, subtype); + return res; + } + + /// @copydoc binary(const typename binary_t::container_type&) + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json binary(typename binary_t::container_type&& init) + { + auto res = basic_json(); + res.m_type = value_t::binary; + res.m_value = std::move(init); + return res; + } + + /// @copydoc binary(const typename binary_t::container_type&, std::uint8_t) + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json binary(typename binary_t::container_type&& init, std::uint8_t subtype) + { + auto res = basic_json(); + res.m_type = value_t::binary; + res.m_value = binary_t(std::move(init), subtype); + return res; + } + + /*! + @brief explicitly create an array from an initializer list + + Creates a JSON array value from a given initializer list. That is, given a + list of values `a, b, c`, creates the JSON value `[a, b, c]`. If the + initializer list is empty, the empty array `[]` is created. + + @note This function is only needed to express two edge cases that cannot + be realized with the initializer list constructor (@ref + basic_json(initializer_list_t, bool, value_t)). These cases + are: + 1. creating an array whose elements are all pairs whose first element is a + string -- in this case, the initializer list constructor would create an + object, taking the first elements as keys + 2. creating an empty array -- passing the empty initializer list to the + initializer list constructor yields an empty object + + @param[in] init initializer list with JSON values to create an array from + (optional) + + @return JSON array value + + @complexity Linear in the size of @a init. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @liveexample{The following code shows an example for the `array` + function.,array} + + @sa @ref basic_json(initializer_list_t, bool, value_t) -- + create a JSON value from an initializer list + @sa @ref object(initializer_list_t) -- create a JSON object + value from an initializer list + + @since version 1.0.0 + */ + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json array(initializer_list_t init = {}) + { + return basic_json(init, false, value_t::array); + } + + /*! + @brief explicitly create an object from an initializer list + + Creates a JSON object value from a given initializer list. The initializer + lists elements must be pairs, and their first elements must be strings. If + the initializer list is empty, the empty object `{}` is created. + + @note This function is only added for symmetry reasons. In contrast to the + related function @ref array(initializer_list_t), there are + no cases which can only be expressed by this function. That is, any + initializer list @a init can also be passed to the initializer list + constructor @ref basic_json(initializer_list_t, bool, value_t). + + @param[in] init initializer list to create an object from (optional) + + @return JSON object value + + @throw type_error.301 if @a init is not a list of pairs whose first + elements are strings. In this case, no object can be created. When such a + value is passed to @ref basic_json(initializer_list_t, bool, value_t), + an array would have been created from the passed initializer list @a init. + See example below. + + @complexity Linear in the size of @a init. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @liveexample{The following code shows an example for the `object` + function.,object} + + @sa @ref basic_json(initializer_list_t, bool, value_t) -- + create a JSON value from an initializer list + @sa @ref array(initializer_list_t) -- create a JSON array + value from an initializer list + + @since version 1.0.0 + */ + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json object(initializer_list_t init = {}) + { + return basic_json(init, false, value_t::object); + } + + /*! + @brief construct an array with count copies of given value + + Constructs a JSON array value by creating @a cnt copies of a passed value. + In case @a cnt is `0`, an empty array is created. + + @param[in] cnt the number of JSON copies of @a val to create + @param[in] val the JSON value to copy + + @post `std::distance(begin(),end()) == cnt` holds. + + @complexity Linear in @a cnt. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @liveexample{The following code shows examples for the @ref + basic_json(size_type\, const basic_json&) + constructor.,basic_json__size_type_basic_json} + + @since version 1.0.0 + */ + basic_json(size_type cnt, const basic_json& val) + : m_type(value_t::array) + { + m_value.array = create(cnt, val); + assert_invariant(); + } + + /*! + @brief construct a JSON container given an iterator range + + Constructs the JSON value with the contents of the range `[first, last)`. + The semantics depends on the different types a JSON value can have: + - In case of a null type, invalid_iterator.206 is thrown. + - In case of other primitive types (number, boolean, or string), @a first + must be `begin()` and @a last must be `end()`. In this case, the value is + copied. Otherwise, invalid_iterator.204 is thrown. + - In case of structured types (array, object), the constructor behaves as + similar versions for `std::vector` or `std::map`; that is, a JSON array + or object is constructed from the values in the range. + + @tparam InputIT an input iterator type (@ref iterator or @ref + const_iterator) + + @param[in] first begin of the range to copy from (included) + @param[in] last end of the range to copy from (excluded) + + @pre Iterators @a first and @a last must be initialized. **This + precondition is enforced with an assertion (see warning).** If + assertions are switched off, a violation of this precondition yields + undefined behavior. + + @pre Range `[first, last)` is valid. Usually, this precondition cannot be + checked efficiently. Only certain edge cases are detected; see the + description of the exceptions below. A violation of this precondition + yields undefined behavior. + + @warning A precondition is enforced with a runtime assertion that will + result in calling `std::abort` if this precondition is not met. + Assertions can be disabled by defining `NDEBUG` at compile time. + See https://en.cppreference.com/w/cpp/error/assert for more + information. + + @throw invalid_iterator.201 if iterators @a first and @a last are not + compatible (i.e., do not belong to the same JSON value). In this case, + the range `[first, last)` is undefined. + @throw invalid_iterator.204 if iterators @a first and @a last belong to a + primitive type (number, boolean, or string), but @a first does not point + to the first element any more. In this case, the range `[first, last)` is + undefined. See example code below. + @throw invalid_iterator.206 if iterators @a first and @a last belong to a + null value. In this case, the range `[first, last)` is undefined. + + @complexity Linear in distance between @a first and @a last. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @liveexample{The example below shows several ways to create JSON values by + specifying a subrange with iterators.,basic_json__InputIt_InputIt} + + @since version 1.0.0 + */ + template < class InputIT, typename std::enable_if < + std::is_same::value || + std::is_same::value, int >::type = 0 > + basic_json(InputIT first, InputIT last) + { + JSON_ASSERT(first.m_object != nullptr); + JSON_ASSERT(last.m_object != nullptr); + + // make sure iterator fits the current value + if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object)) + { + JSON_THROW(invalid_iterator::create(201, "iterators are not compatible")); + } + + // copy type from first iterator + m_type = first.m_object->m_type; + + // check if iterator range is complete for primitive values + switch (m_type) + { + case value_t::boolean: + case value_t::number_float: + case value_t::number_integer: + case value_t::number_unsigned: + case value_t::string: + { + if (JSON_HEDLEY_UNLIKELY(!first.m_it.primitive_iterator.is_begin() + || !last.m_it.primitive_iterator.is_end())) + { + JSON_THROW(invalid_iterator::create(204, "iterators out of range")); + } + break; + } + + default: + break; + } + + switch (m_type) + { + case value_t::number_integer: + { + m_value.number_integer = first.m_object->m_value.number_integer; + break; + } + + case value_t::number_unsigned: + { + m_value.number_unsigned = first.m_object->m_value.number_unsigned; + break; + } + + case value_t::number_float: + { + m_value.number_float = first.m_object->m_value.number_float; + break; + } + + case value_t::boolean: + { + m_value.boolean = first.m_object->m_value.boolean; + break; + } + + case value_t::string: + { + m_value = *first.m_object->m_value.string; + break; + } + + case value_t::object: + { + m_value.object = create(first.m_it.object_iterator, + last.m_it.object_iterator); + break; + } + + case value_t::array: + { + m_value.array = create(first.m_it.array_iterator, + last.m_it.array_iterator); + break; + } + + case value_t::binary: + { + m_value = *first.m_object->m_value.binary; + break; + } + + default: + JSON_THROW(invalid_iterator::create(206, "cannot construct with iterators from " + + std::string(first.m_object->type_name()))); + } + + assert_invariant(); + } + + + /////////////////////////////////////// + // other constructors and destructor // + /////////////////////////////////////// + + template, + std::is_same>::value, int> = 0 > + basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {} + + /*! + @brief copy constructor + + Creates a copy of a given JSON value. + + @param[in] other the JSON value to copy + + @post `*this == other` + + @complexity Linear in the size of @a other. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes to any JSON value. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is linear. + - As postcondition, it holds: `other == basic_json(other)`. + + @liveexample{The following code shows an example for the copy + constructor.,basic_json__basic_json} + + @since version 1.0.0 + */ + basic_json(const basic_json& other) + : m_type(other.m_type) + { + // check of passed value is valid + other.assert_invariant(); + + switch (m_type) + { + case value_t::object: + { + m_value = *other.m_value.object; + break; + } + + case value_t::array: + { + m_value = *other.m_value.array; + break; + } + + case value_t::string: + { + m_value = *other.m_value.string; + break; + } + + case value_t::boolean: + { + m_value = other.m_value.boolean; + break; + } + + case value_t::number_integer: + { + m_value = other.m_value.number_integer; + break; + } + + case value_t::number_unsigned: + { + m_value = other.m_value.number_unsigned; + break; + } + + case value_t::number_float: + { + m_value = other.m_value.number_float; + break; + } + + case value_t::binary: + { + m_value = *other.m_value.binary; + break; + } + + default: + break; + } + + assert_invariant(); + } + + /*! + @brief move constructor + + Move constructor. Constructs a JSON value with the contents of the given + value @a other using move semantics. It "steals" the resources from @a + other and leaves it as JSON null value. + + @param[in,out] other value to move to this object + + @post `*this` has the same value as @a other before the call. + @post @a other is a JSON null value. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this constructor never throws + exceptions. + + @requirement This function helps `basic_json` satisfying the + [MoveConstructible](https://en.cppreference.com/w/cpp/named_req/MoveConstructible) + requirements. + + @liveexample{The code below shows the move constructor explicitly called + via std::move.,basic_json__moveconstructor} + + @since version 1.0.0 + */ + basic_json(basic_json&& other) noexcept + : m_type(std::move(other.m_type)), + m_value(std::move(other.m_value)) + { + // check that passed value is valid + other.assert_invariant(); + + // invalidate payload + other.m_type = value_t::null; + other.m_value = {}; + + assert_invariant(); + } + + /*! + @brief copy assignment + + Copy assignment operator. Copies a JSON value via the "copy and swap" + strategy: It is expressed in terms of the copy constructor, destructor, + and the `swap()` member function. + + @param[in] other value to copy from + + @complexity Linear. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is linear. + + @liveexample{The code below shows and example for the copy assignment. It + creates a copy of value `a` which is then swapped with `b`. Finally\, the + copy of `a` (which is the null value after the swap) is + destroyed.,basic_json__copyassignment} + + @since version 1.0.0 + */ + basic_json& operator=(basic_json other) noexcept ( + std::is_nothrow_move_constructible::value&& + std::is_nothrow_move_assignable::value&& + std::is_nothrow_move_constructible::value&& + std::is_nothrow_move_assignable::value + ) + { + // check that passed value is valid + other.assert_invariant(); + + using std::swap; + swap(m_type, other.m_type); + swap(m_value, other.m_value); + + assert_invariant(); + return *this; + } + + /*! + @brief destructor + + Destroys the JSON value and frees all allocated memory. + + @complexity Linear. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is linear. + - All stored elements are destroyed and all memory is freed. + + @since version 1.0.0 + */ + ~basic_json() noexcept + { + assert_invariant(); + m_value.destroy(m_type); + } + + /// @} + + public: + /////////////////////// + // object inspection // + /////////////////////// + + /// @name object inspection + /// Functions to inspect the type of a JSON value. + /// @{ + + /*! + @brief serialization + + Serialization function for JSON values. The function tries to mimic + Python's `json.dumps()` function, and currently supports its @a indent + and @a ensure_ascii parameters. + + @param[in] indent If indent is nonnegative, then array elements and object + members will be pretty-printed with that indent level. An indent level of + `0` will only insert newlines. `-1` (the default) selects the most compact + representation. + @param[in] indent_char The character to use for indentation if @a indent is + greater than `0`. The default is ` ` (space). + @param[in] ensure_ascii If @a ensure_ascii is true, all non-ASCII characters + in the output are escaped with `\uXXXX` sequences, and the result consists + of ASCII characters only. + @param[in] error_handler how to react on decoding errors; there are three + possible values: `strict` (throws and exception in case a decoding error + occurs; default), `replace` (replace invalid UTF-8 sequences with U+FFFD), + and `ignore` (ignore invalid UTF-8 sequences during serialization; all + bytes are copied to the output unchanged). + + @return string containing the serialization of the JSON value + + @throw type_error.316 if a string stored inside the JSON value is not + UTF-8 encoded and @a error_handler is set to strict + + @note Binary values are serialized as object containing two keys: + - "bytes": an array of bytes as integers + - "subtype": the subtype as integer or "null" if the binary has no subtype + + @complexity Linear. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes in the JSON value. + + @liveexample{The following example shows the effect of different @a indent\, + @a indent_char\, and @a ensure_ascii parameters to the result of the + serialization.,dump} + + @see https://docs.python.org/2/library/json.html#json.dump + + @since version 1.0.0; indentation character @a indent_char, option + @a ensure_ascii and exceptions added in version 3.0.0; error + handlers added in version 3.4.0; serialization of binary values added + in version 3.8.0. + */ + string_t dump(const int indent = -1, + const char indent_char = ' ', + const bool ensure_ascii = false, + const error_handler_t error_handler = error_handler_t::strict) const + { + string_t result; + serializer s(detail::output_adapter(result), indent_char, error_handler); + + if (indent >= 0) + { + s.dump(*this, true, ensure_ascii, static_cast(indent)); + } + else + { + s.dump(*this, false, ensure_ascii, 0); + } + + return result; + } + + /*! + @brief return the type of the JSON value (explicit) + + Return the type of the JSON value as a value from the @ref value_t + enumeration. + + @return the type of the JSON value + Value type | return value + ------------------------- | ------------------------- + null | value_t::null + boolean | value_t::boolean + string | value_t::string + number (integer) | value_t::number_integer + number (unsigned integer) | value_t::number_unsigned + number (floating-point) | value_t::number_float + object | value_t::object + array | value_t::array + binary | value_t::binary + discarded | value_t::discarded + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `type()` for all JSON + types.,type} + + @sa @ref operator value_t() -- return the type of the JSON value (implicit) + @sa @ref type_name() -- return the type as string + + @since version 1.0.0 + */ + constexpr value_t type() const noexcept + { + return m_type; + } + + /*! + @brief return whether type is primitive + + This function returns true if and only if the JSON type is primitive + (string, number, boolean, or null). + + @return `true` if type is primitive (string, number, boolean, or null), + `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_primitive()` for all JSON + types.,is_primitive} + + @sa @ref is_structured() -- returns whether JSON value is structured + @sa @ref is_null() -- returns whether JSON value is `null` + @sa @ref is_string() -- returns whether JSON value is a string + @sa @ref is_boolean() -- returns whether JSON value is a boolean + @sa @ref is_number() -- returns whether JSON value is a number + @sa @ref is_binary() -- returns whether JSON value is a binary array + + @since version 1.0.0 + */ + constexpr bool is_primitive() const noexcept + { + return is_null() || is_string() || is_boolean() || is_number() || is_binary(); + } + + /*! + @brief return whether type is structured + + This function returns true if and only if the JSON type is structured + (array or object). + + @return `true` if type is structured (array or object), `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_structured()` for all JSON + types.,is_structured} + + @sa @ref is_primitive() -- returns whether value is primitive + @sa @ref is_array() -- returns whether value is an array + @sa @ref is_object() -- returns whether value is an object + + @since version 1.0.0 + */ + constexpr bool is_structured() const noexcept + { + return is_array() || is_object(); + } + + /*! + @brief return whether value is null + + This function returns true if and only if the JSON value is null. + + @return `true` if type is null, `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_null()` for all JSON + types.,is_null} + + @since version 1.0.0 + */ + constexpr bool is_null() const noexcept + { + return m_type == value_t::null; + } + + /*! + @brief return whether value is a boolean + + This function returns true if and only if the JSON value is a boolean. + + @return `true` if type is boolean, `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_boolean()` for all JSON + types.,is_boolean} + + @since version 1.0.0 + */ + constexpr bool is_boolean() const noexcept + { + return m_type == value_t::boolean; + } + + /*! + @brief return whether value is a number + + This function returns true if and only if the JSON value is a number. This + includes both integer (signed and unsigned) and floating-point values. + + @return `true` if type is number (regardless whether integer, unsigned + integer or floating-type), `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_number()` for all JSON + types.,is_number} + + @sa @ref is_number_integer() -- check if value is an integer or unsigned + integer number + @sa @ref is_number_unsigned() -- check if value is an unsigned integer + number + @sa @ref is_number_float() -- check if value is a floating-point number + + @since version 1.0.0 + */ + constexpr bool is_number() const noexcept + { + return is_number_integer() || is_number_float(); + } + + /*! + @brief return whether value is an integer number + + This function returns true if and only if the JSON value is a signed or + unsigned integer number. This excludes floating-point values. + + @return `true` if type is an integer or unsigned integer number, `false` + otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_number_integer()` for all + JSON types.,is_number_integer} + + @sa @ref is_number() -- check if value is a number + @sa @ref is_number_unsigned() -- check if value is an unsigned integer + number + @sa @ref is_number_float() -- check if value is a floating-point number + + @since version 1.0.0 + */ + constexpr bool is_number_integer() const noexcept + { + return m_type == value_t::number_integer || m_type == value_t::number_unsigned; + } + + /*! + @brief return whether value is an unsigned integer number + + This function returns true if and only if the JSON value is an unsigned + integer number. This excludes floating-point and signed integer values. + + @return `true` if type is an unsigned integer number, `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_number_unsigned()` for all + JSON types.,is_number_unsigned} + + @sa @ref is_number() -- check if value is a number + @sa @ref is_number_integer() -- check if value is an integer or unsigned + integer number + @sa @ref is_number_float() -- check if value is a floating-point number + + @since version 2.0.0 + */ + constexpr bool is_number_unsigned() const noexcept + { + return m_type == value_t::number_unsigned; + } + + /*! + @brief return whether value is a floating-point number + + This function returns true if and only if the JSON value is a + floating-point number. This excludes signed and unsigned integer values. + + @return `true` if type is a floating-point number, `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_number_float()` for all + JSON types.,is_number_float} + + @sa @ref is_number() -- check if value is number + @sa @ref is_number_integer() -- check if value is an integer number + @sa @ref is_number_unsigned() -- check if value is an unsigned integer + number + + @since version 1.0.0 + */ + constexpr bool is_number_float() const noexcept + { + return m_type == value_t::number_float; + } + + /*! + @brief return whether value is an object + + This function returns true if and only if the JSON value is an object. + + @return `true` if type is object, `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_object()` for all JSON + types.,is_object} + + @since version 1.0.0 + */ + constexpr bool is_object() const noexcept + { + return m_type == value_t::object; + } + + /*! + @brief return whether value is an array + + This function returns true if and only if the JSON value is an array. + + @return `true` if type is array, `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_array()` for all JSON + types.,is_array} + + @since version 1.0.0 + */ + constexpr bool is_array() const noexcept + { + return m_type == value_t::array; + } + + /*! + @brief return whether value is a string + + This function returns true if and only if the JSON value is a string. + + @return `true` if type is string, `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_string()` for all JSON + types.,is_string} + + @since version 1.0.0 + */ + constexpr bool is_string() const noexcept + { + return m_type == value_t::string; + } + + /*! + @brief return whether value is a binary array + + This function returns true if and only if the JSON value is a binary array. + + @return `true` if type is binary array, `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_binary()` for all JSON + types.,is_binary} + + @since version 3.8.0 + */ + constexpr bool is_binary() const noexcept + { + return m_type == value_t::binary; + } + + /*! + @brief return whether value is discarded + + This function returns true if and only if the JSON value was discarded + during parsing with a callback function (see @ref parser_callback_t). + + @note This function will always be `false` for JSON values after parsing. + That is, discarded values can only occur during parsing, but will be + removed when inside a structured value or replaced by null in other cases. + + @return `true` if type is discarded, `false` otherwise. + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies `is_discarded()` for all JSON + types.,is_discarded} + + @since version 1.0.0 + */ + constexpr bool is_discarded() const noexcept + { + return m_type == value_t::discarded; + } + + /*! + @brief return the type of the JSON value (implicit) + + Implicitly return the type of the JSON value as a value from the @ref + value_t enumeration. + + @return the type of the JSON value + + @complexity Constant. + + @exceptionsafety No-throw guarantee: this member function never throws + exceptions. + + @liveexample{The following code exemplifies the @ref value_t operator for + all JSON types.,operator__value_t} + + @sa @ref type() -- return the type of the JSON value (explicit) + @sa @ref type_name() -- return the type as string + + @since version 1.0.0 + */ + constexpr operator value_t() const noexcept + { + return m_type; + } + + /// @} + + private: + ////////////////// + // value access // + ////////////////// + + /// get a boolean (explicit) + boolean_t get_impl(boolean_t* /*unused*/) const + { + if (JSON_HEDLEY_LIKELY(is_boolean())) + { + return m_value.boolean; + } + + JSON_THROW(type_error::create(302, "type must be boolean, but is " + std::string(type_name()))); + } + + /// get a pointer to the value (object) + object_t* get_impl_ptr(object_t* /*unused*/) noexcept + { + return is_object() ? m_value.object : nullptr; + } + + /// get a pointer to the value (object) + constexpr const object_t* get_impl_ptr(const object_t* /*unused*/) const noexcept + { + return is_object() ? m_value.object : nullptr; + } + + /// get a pointer to the value (array) + array_t* get_impl_ptr(array_t* /*unused*/) noexcept + { + return is_array() ? m_value.array : nullptr; + } + + /// get a pointer to the value (array) + constexpr const array_t* get_impl_ptr(const array_t* /*unused*/) const noexcept + { + return is_array() ? m_value.array : nullptr; + } + + /// get a pointer to the value (string) + string_t* get_impl_ptr(string_t* /*unused*/) noexcept + { + return is_string() ? m_value.string : nullptr; + } + + /// get a pointer to the value (string) + constexpr const string_t* get_impl_ptr(const string_t* /*unused*/) const noexcept + { + return is_string() ? m_value.string : nullptr; + } + + /// get a pointer to the value (boolean) + boolean_t* get_impl_ptr(boolean_t* /*unused*/) noexcept + { + return is_boolean() ? &m_value.boolean : nullptr; + } + + /// get a pointer to the value (boolean) + constexpr const boolean_t* get_impl_ptr(const boolean_t* /*unused*/) const noexcept + { + return is_boolean() ? &m_value.boolean : nullptr; + } + + /// get a pointer to the value (integer number) + number_integer_t* get_impl_ptr(number_integer_t* /*unused*/) noexcept + { + return is_number_integer() ? &m_value.number_integer : nullptr; + } + + /// get a pointer to the value (integer number) + constexpr const number_integer_t* get_impl_ptr(const number_integer_t* /*unused*/) const noexcept + { + return is_number_integer() ? &m_value.number_integer : nullptr; + } + + /// get a pointer to the value (unsigned number) + number_unsigned_t* get_impl_ptr(number_unsigned_t* /*unused*/) noexcept + { + return is_number_unsigned() ? &m_value.number_unsigned : nullptr; + } + + /// get a pointer to the value (unsigned number) + constexpr const number_unsigned_t* get_impl_ptr(const number_unsigned_t* /*unused*/) const noexcept + { + return is_number_unsigned() ? &m_value.number_unsigned : nullptr; + } + + /// get a pointer to the value (floating-point number) + number_float_t* get_impl_ptr(number_float_t* /*unused*/) noexcept + { + return is_number_float() ? &m_value.number_float : nullptr; + } + + /// get a pointer to the value (floating-point number) + constexpr const number_float_t* get_impl_ptr(const number_float_t* /*unused*/) const noexcept + { + return is_number_float() ? &m_value.number_float : nullptr; + } + + /// get a pointer to the value (binary) + binary_t* get_impl_ptr(binary_t* /*unused*/) noexcept + { + return is_binary() ? m_value.binary : nullptr; + } + + /// get a pointer to the value (binary) + constexpr const binary_t* get_impl_ptr(const binary_t* /*unused*/) const noexcept + { + return is_binary() ? m_value.binary : nullptr; + } + + /*! + @brief helper function to implement get_ref() + + This function helps to implement get_ref() without code duplication for + const and non-const overloads + + @tparam ThisType will be deduced as `basic_json` or `const basic_json` + + @throw type_error.303 if ReferenceType does not match underlying value + type of the current JSON + */ + template + static ReferenceType get_ref_impl(ThisType& obj) + { + // delegate the call to get_ptr<>() + auto ptr = obj.template get_ptr::type>(); + + if (JSON_HEDLEY_LIKELY(ptr != nullptr)) + { + return *ptr; + } + + JSON_THROW(type_error::create(303, "incompatible ReferenceType for get_ref, actual type is " + std::string(obj.type_name()))); + } + + public: + /// @name value access + /// Direct access to the stored value of a JSON value. + /// @{ + + /*! + @brief get special-case overload + + This overloads avoids a lot of template boilerplate, it can be seen as the + identity method + + @tparam BasicJsonType == @ref basic_json + + @return a copy of *this + + @complexity Constant. + + @since version 2.1.0 + */ + template::type, basic_json_t>::value, + int> = 0> + basic_json get() const + { + return *this; + } + + /*! + @brief get special-case overload + + This overloads converts the current @ref basic_json in a different + @ref basic_json type + + @tparam BasicJsonType == @ref basic_json + + @return a copy of *this, converted into @tparam BasicJsonType + + @complexity Depending on the implementation of the called `from_json()` + method. + + @since version 3.2.0 + */ + template < typename BasicJsonType, detail::enable_if_t < + !std::is_same::value&& + detail::is_basic_json::value, int > = 0 > + BasicJsonType get() const + { + return *this; + } + + /*! + @brief get a value (explicit) + + Explicit type conversion between the JSON value and a compatible value + which is [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible) + and [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible). + The value is converted by calling the @ref json_serializer + `from_json()` method. + + The function is equivalent to executing + @code {.cpp} + ValueType ret; + JSONSerializer::from_json(*this, ret); + return ret; + @endcode + + This overloads is chosen if: + - @a ValueType is not @ref basic_json, + - @ref json_serializer has a `from_json()` method of the form + `void from_json(const basic_json&, ValueType&)`, and + - @ref json_serializer does not have a `from_json()` method of + the form `ValueType from_json(const basic_json&)` + + @tparam ValueTypeCV the provided value type + @tparam ValueType the returned value type + + @return copy of the JSON value, converted to @a ValueType + + @throw what @ref json_serializer `from_json()` method throws + + @liveexample{The example below shows several conversions from JSON values + to other types. There a few things to note: (1) Floating-point numbers can + be converted to integers\, (2) A JSON array can be converted to a standard + `std::vector`\, (3) A JSON object can be converted to C++ + associative containers such as `std::unordered_map`.,get__ValueType_const} + + @since version 2.1.0 + */ + template < typename ValueTypeCV, typename ValueType = detail::uncvref_t, + detail::enable_if_t < + !detail::is_basic_json::value && + detail::has_from_json::value && + !detail::has_non_default_from_json::value, + int > = 0 > + ValueType get() const noexcept(noexcept( + JSONSerializer::from_json(std::declval(), std::declval()))) + { + // we cannot static_assert on ValueTypeCV being non-const, because + // there is support for get(), which is why we + // still need the uncvref + static_assert(!std::is_reference::value, + "get() cannot be used with reference types, you might want to use get_ref()"); + static_assert(std::is_default_constructible::value, + "types must be DefaultConstructible when used with get()"); + + ValueType ret; + JSONSerializer::from_json(*this, ret); + return ret; + } + + /*! + @brief get a value (explicit); special case + + Explicit type conversion between the JSON value and a compatible value + which is **not** [CopyConstructible](https://en.cppreference.com/w/cpp/named_req/CopyConstructible) + and **not** [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultConstructible). + The value is converted by calling the @ref json_serializer + `from_json()` method. + + The function is equivalent to executing + @code {.cpp} + return JSONSerializer::from_json(*this); + @endcode + + This overloads is chosen if: + - @a ValueType is not @ref basic_json and + - @ref json_serializer has a `from_json()` method of the form + `ValueType from_json(const basic_json&)` + + @note If @ref json_serializer has both overloads of + `from_json()`, this one is chosen. + + @tparam ValueTypeCV the provided value type + @tparam ValueType the returned value type + + @return copy of the JSON value, converted to @a ValueType + + @throw what @ref json_serializer `from_json()` method throws + + @since version 2.1.0 + */ + template < typename ValueTypeCV, typename ValueType = detail::uncvref_t, + detail::enable_if_t < !std::is_same::value && + detail::has_non_default_from_json::value, + int > = 0 > + ValueType get() const noexcept(noexcept( + JSONSerializer::from_json(std::declval()))) + { + static_assert(!std::is_reference::value, + "get() cannot be used with reference types, you might want to use get_ref()"); + return JSONSerializer::from_json(*this); + } + + /*! + @brief get a value (explicit) + + Explicit type conversion between the JSON value and a compatible value. + The value is filled into the input parameter by calling the @ref json_serializer + `from_json()` method. + + The function is equivalent to executing + @code {.cpp} + ValueType v; + JSONSerializer::from_json(*this, v); + @endcode + + This overloads is chosen if: + - @a ValueType is not @ref basic_json, + - @ref json_serializer has a `from_json()` method of the form + `void from_json(const basic_json&, ValueType&)`, and + + @tparam ValueType the input parameter type. + + @return the input parameter, allowing chaining calls. + + @throw what @ref json_serializer `from_json()` method throws + + @liveexample{The example below shows several conversions from JSON values + to other types. There a few things to note: (1) Floating-point numbers can + be converted to integers\, (2) A JSON array can be converted to a standard + `std::vector`\, (3) A JSON object can be converted to C++ + associative containers such as `std::unordered_map`.,get_to} + + @since version 3.3.0 + */ + template < typename ValueType, + detail::enable_if_t < + !detail::is_basic_json::value&& + detail::has_from_json::value, + int > = 0 > + ValueType & get_to(ValueType& v) const noexcept(noexcept( + JSONSerializer::from_json(std::declval(), v))) + { + JSONSerializer::from_json(*this, v); + return v; + } + + // specialization to allow to call get_to with a basic_json value + // see https://github.com/nlohmann/json/issues/2175 + template::value, + int> = 0> + ValueType & get_to(ValueType& v) const + { + v = *this; + return v; + } + + template < + typename T, std::size_t N, + typename Array = T (&)[N], + detail::enable_if_t < + detail::has_from_json::value, int > = 0 > + Array get_to(T (&v)[N]) const + noexcept(noexcept(JSONSerializer::from_json( + std::declval(), v))) + { + JSONSerializer::from_json(*this, v); + return v; + } + + + /*! + @brief get a pointer value (implicit) + + Implicit pointer access to the internally stored JSON value. No copies are + made. + + @warning Writing data to the pointee of the result yields an undefined + state. + + @tparam PointerType pointer type; must be a pointer to @ref array_t, @ref + object_t, @ref string_t, @ref boolean_t, @ref number_integer_t, + @ref number_unsigned_t, or @ref number_float_t. Enforced by a static + assertion. + + @return pointer to the internally stored JSON value if the requested + pointer type @a PointerType fits to the JSON value; `nullptr` otherwise + + @complexity Constant. + + @liveexample{The example below shows how pointers to internal values of a + JSON value can be requested. Note that no type conversions are made and a + `nullptr` is returned if the value and the requested pointer type does not + match.,get_ptr} + + @since version 1.0.0 + */ + template::value, int>::type = 0> + auto get_ptr() noexcept -> decltype(std::declval().get_impl_ptr(std::declval())) + { + // delegate the call to get_impl_ptr<>() + return get_impl_ptr(static_cast(nullptr)); + } + + /*! + @brief get a pointer value (implicit) + @copydoc get_ptr() + */ + template < typename PointerType, typename std::enable_if < + std::is_pointer::value&& + std::is_const::type>::value, int >::type = 0 > + constexpr auto get_ptr() const noexcept -> decltype(std::declval().get_impl_ptr(std::declval())) + { + // delegate the call to get_impl_ptr<>() const + return get_impl_ptr(static_cast(nullptr)); + } + + /*! + @brief get a pointer value (explicit) + + Explicit pointer access to the internally stored JSON value. No copies are + made. + + @warning The pointer becomes invalid if the underlying JSON object + changes. + + @tparam PointerType pointer type; must be a pointer to @ref array_t, @ref + object_t, @ref string_t, @ref boolean_t, @ref number_integer_t, + @ref number_unsigned_t, or @ref number_float_t. + + @return pointer to the internally stored JSON value if the requested + pointer type @a PointerType fits to the JSON value; `nullptr` otherwise + + @complexity Constant. + + @liveexample{The example below shows how pointers to internal values of a + JSON value can be requested. Note that no type conversions are made and a + `nullptr` is returned if the value and the requested pointer type does not + match.,get__PointerType} + + @sa @ref get_ptr() for explicit pointer-member access + + @since version 1.0.0 + */ + template::value, int>::type = 0> + auto get() noexcept -> decltype(std::declval().template get_ptr()) + { + // delegate the call to get_ptr + return get_ptr(); + } + + /*! + @brief get a pointer value (explicit) + @copydoc get() + */ + template::value, int>::type = 0> + constexpr auto get() const noexcept -> decltype(std::declval().template get_ptr()) + { + // delegate the call to get_ptr + return get_ptr(); + } + + /*! + @brief get a reference value (implicit) + + Implicit reference access to the internally stored JSON value. No copies + are made. + + @warning Writing data to the referee of the result yields an undefined + state. + + @tparam ReferenceType reference type; must be a reference to @ref array_t, + @ref object_t, @ref string_t, @ref boolean_t, @ref number_integer_t, or + @ref number_float_t. Enforced by static assertion. + + @return reference to the internally stored JSON value if the requested + reference type @a ReferenceType fits to the JSON value; throws + type_error.303 otherwise + + @throw type_error.303 in case passed type @a ReferenceType is incompatible + with the stored JSON value; see example below + + @complexity Constant. + + @liveexample{The example shows several calls to `get_ref()`.,get_ref} + + @since version 1.1.0 + */ + template::value, int>::type = 0> + ReferenceType get_ref() + { + // delegate call to get_ref_impl + return get_ref_impl(*this); + } + + /*! + @brief get a reference value (implicit) + @copydoc get_ref() + */ + template < typename ReferenceType, typename std::enable_if < + std::is_reference::value&& + std::is_const::type>::value, int >::type = 0 > + ReferenceType get_ref() const + { + // delegate call to get_ref_impl + return get_ref_impl(*this); + } + + /*! + @brief get a value (implicit) + + Implicit type conversion between the JSON value and a compatible value. + The call is realized by calling @ref get() const. + + @tparam ValueType non-pointer type compatible to the JSON value, for + instance `int` for JSON integer numbers, `bool` for JSON booleans, or + `std::vector` types for JSON arrays. The character type of @ref string_t + as well as an initializer list of this type is excluded to avoid + ambiguities as these types implicitly convert to `std::string`. + + @return copy of the JSON value, converted to type @a ValueType + + @throw type_error.302 in case passed type @a ValueType is incompatible + to the JSON value type (e.g., the JSON value is of type boolean, but a + string is requested); see example below + + @complexity Linear in the size of the JSON value. + + @liveexample{The example below shows several conversions from JSON values + to other types. There a few things to note: (1) Floating-point numbers can + be converted to integers\, (2) A JSON array can be converted to a standard + `std::vector`\, (3) A JSON object can be converted to C++ + associative containers such as `std::unordered_map`.,operator__ValueType} + + @since version 1.0.0 + */ + template < typename ValueType, typename std::enable_if < + !std::is_pointer::value&& + !std::is_same>::value&& + !std::is_same::value&& + !detail::is_basic_json::value + && !std::is_same>::value +#if defined(JSON_HAS_CPP_17) && (defined(__GNUC__) || (defined(_MSC_VER) && _MSC_VER >= 1910 && _MSC_VER <= 1914)) + && !std::is_same::value +#endif + && detail::is_detected::value + , int >::type = 0 > + JSON_EXPLICIT operator ValueType() const + { + // delegate the call to get<>() const + return get(); + } + + /*! + @return reference to the binary value + + @throw type_error.302 if the value is not binary + + @sa @ref is_binary() to check if the value is binary + + @since version 3.8.0 + */ + binary_t& get_binary() + { + if (!is_binary()) + { + JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()))); + } + + return *get_ptr(); + } + + /// @copydoc get_binary() + const binary_t& get_binary() const + { + if (!is_binary()) + { + JSON_THROW(type_error::create(302, "type must be binary, but is " + std::string(type_name()))); + } + + return *get_ptr(); + } + + /// @} + + + //////////////////// + // element access // + //////////////////// + + /// @name element access + /// Access to the JSON value. + /// @{ + + /*! + @brief access specified array element with bounds checking + + Returns a reference to the element at specified location @a idx, with + bounds checking. + + @param[in] idx index of the element to access + + @return reference to the element at index @a idx + + @throw type_error.304 if the JSON value is not an array; in this case, + calling `at` with an index makes no sense. See example below. + @throw out_of_range.401 if the index @a idx is out of range of the array; + that is, `idx >= size()`. See example below. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes in the JSON value. + + @complexity Constant. + + @since version 1.0.0 + + @liveexample{The example below shows how array elements can be read and + written using `at()`. It also demonstrates the different exceptions that + can be thrown.,at__size_type} + */ + reference at(size_type idx) + { + // at only works for arrays + if (JSON_HEDLEY_LIKELY(is_array())) + { + JSON_TRY + { + return m_value.array->at(idx); + } + JSON_CATCH (std::out_of_range&) + { + // create better exception explanation + JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range")); + } + } + else + { + JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()))); + } + } + + /*! + @brief access specified array element with bounds checking + + Returns a const reference to the element at specified location @a idx, + with bounds checking. + + @param[in] idx index of the element to access + + @return const reference to the element at index @a idx + + @throw type_error.304 if the JSON value is not an array; in this case, + calling `at` with an index makes no sense. See example below. + @throw out_of_range.401 if the index @a idx is out of range of the array; + that is, `idx >= size()`. See example below. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes in the JSON value. + + @complexity Constant. + + @since version 1.0.0 + + @liveexample{The example below shows how array elements can be read using + `at()`. It also demonstrates the different exceptions that can be thrown., + at__size_type_const} + */ + const_reference at(size_type idx) const + { + // at only works for arrays + if (JSON_HEDLEY_LIKELY(is_array())) + { + JSON_TRY + { + return m_value.array->at(idx); + } + JSON_CATCH (std::out_of_range&) + { + // create better exception explanation + JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range")); + } + } + else + { + JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()))); + } + } + + /*! + @brief access specified object element with bounds checking + + Returns a reference to the element at with specified key @a key, with + bounds checking. + + @param[in] key key of the element to access + + @return reference to the element at key @a key + + @throw type_error.304 if the JSON value is not an object; in this case, + calling `at` with a key makes no sense. See example below. + @throw out_of_range.403 if the key @a key is is not stored in the object; + that is, `find(key) == end()`. See example below. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes in the JSON value. + + @complexity Logarithmic in the size of the container. + + @sa @ref operator[](const typename object_t::key_type&) for unchecked + access by reference + @sa @ref value() for access by value with a default value + + @since version 1.0.0 + + @liveexample{The example below shows how object elements can be read and + written using `at()`. It also demonstrates the different exceptions that + can be thrown.,at__object_t_key_type} + */ + reference at(const typename object_t::key_type& key) + { + // at only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + JSON_TRY + { + return m_value.object->at(key); + } + JSON_CATCH (std::out_of_range&) + { + // create better exception explanation + JSON_THROW(out_of_range::create(403, "key '" + key + "' not found")); + } + } + else + { + JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()))); + } + } + + /*! + @brief access specified object element with bounds checking + + Returns a const reference to the element at with specified key @a key, + with bounds checking. + + @param[in] key key of the element to access + + @return const reference to the element at key @a key + + @throw type_error.304 if the JSON value is not an object; in this case, + calling `at` with a key makes no sense. See example below. + @throw out_of_range.403 if the key @a key is is not stored in the object; + that is, `find(key) == end()`. See example below. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes in the JSON value. + + @complexity Logarithmic in the size of the container. + + @sa @ref operator[](const typename object_t::key_type&) for unchecked + access by reference + @sa @ref value() for access by value with a default value + + @since version 1.0.0 + + @liveexample{The example below shows how object elements can be read using + `at()`. It also demonstrates the different exceptions that can be thrown., + at__object_t_key_type_const} + */ + const_reference at(const typename object_t::key_type& key) const + { + // at only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + JSON_TRY + { + return m_value.object->at(key); + } + JSON_CATCH (std::out_of_range&) + { + // create better exception explanation + JSON_THROW(out_of_range::create(403, "key '" + key + "' not found")); + } + } + else + { + JSON_THROW(type_error::create(304, "cannot use at() with " + std::string(type_name()))); + } + } + + /*! + @brief access specified array element + + Returns a reference to the element at specified location @a idx. + + @note If @a idx is beyond the range of the array (i.e., `idx >= size()`), + then the array is silently filled up with `null` values to make `idx` a + valid reference to the last stored element. + + @param[in] idx index of the element to access + + @return reference to the element at index @a idx + + @throw type_error.305 if the JSON value is not an array or null; in that + cases, using the [] operator with an index makes no sense. + + @complexity Constant if @a idx is in the range of the array. Otherwise + linear in `idx - size()`. + + @liveexample{The example below shows how array elements can be read and + written using `[]` operator. Note the addition of `null` + values.,operatorarray__size_type} + + @since version 1.0.0 + */ + reference operator[](size_type idx) + { + // implicitly convert null value to an empty array + if (is_null()) + { + m_type = value_t::array; + m_value.array = create(); + assert_invariant(); + } + + // operator[] only works for arrays + if (JSON_HEDLEY_LIKELY(is_array())) + { + // fill up array with null values if given idx is outside range + if (idx >= m_value.array->size()) + { + m_value.array->insert(m_value.array->end(), + idx - m_value.array->size() + 1, + basic_json()); + } + + return m_value.array->operator[](idx); + } + + JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()))); + } + + /*! + @brief access specified array element + + Returns a const reference to the element at specified location @a idx. + + @param[in] idx index of the element to access + + @return const reference to the element at index @a idx + + @throw type_error.305 if the JSON value is not an array; in that case, + using the [] operator with an index makes no sense. + + @complexity Constant. + + @liveexample{The example below shows how array elements can be read using + the `[]` operator.,operatorarray__size_type_const} + + @since version 1.0.0 + */ + const_reference operator[](size_type idx) const + { + // const operator[] only works for arrays + if (JSON_HEDLEY_LIKELY(is_array())) + { + return m_value.array->operator[](idx); + } + + JSON_THROW(type_error::create(305, "cannot use operator[] with a numeric argument with " + std::string(type_name()))); + } + + /*! + @brief access specified object element + + Returns a reference to the element at with specified key @a key. + + @note If @a key is not found in the object, then it is silently added to + the object and filled with a `null` value to make `key` a valid reference. + In case the value was `null` before, it is converted to an object. + + @param[in] key key of the element to access + + @return reference to the element at key @a key + + @throw type_error.305 if the JSON value is not an object or null; in that + cases, using the [] operator with a key makes no sense. + + @complexity Logarithmic in the size of the container. + + @liveexample{The example below shows how object elements can be read and + written using the `[]` operator.,operatorarray__key_type} + + @sa @ref at(const typename object_t::key_type&) for access by reference + with range checking + @sa @ref value() for access by value with a default value + + @since version 1.0.0 + */ + reference operator[](const typename object_t::key_type& key) + { + // implicitly convert null value to an empty object + if (is_null()) + { + m_type = value_t::object; + m_value.object = create(); + assert_invariant(); + } + + // operator[] only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + return m_value.object->operator[](key); + } + + JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()))); + } + + /*! + @brief read-only access specified object element + + Returns a const reference to the element at with specified key @a key. No + bounds checking is performed. + + @warning If the element with key @a key does not exist, the behavior is + undefined. + + @param[in] key key of the element to access + + @return const reference to the element at key @a key + + @pre The element with key @a key must exist. **This precondition is + enforced with an assertion.** + + @throw type_error.305 if the JSON value is not an object; in that case, + using the [] operator with a key makes no sense. + + @complexity Logarithmic in the size of the container. + + @liveexample{The example below shows how object elements can be read using + the `[]` operator.,operatorarray__key_type_const} + + @sa @ref at(const typename object_t::key_type&) for access by reference + with range checking + @sa @ref value() for access by value with a default value + + @since version 1.0.0 + */ + const_reference operator[](const typename object_t::key_type& key) const + { + // const operator[] only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + JSON_ASSERT(m_value.object->find(key) != m_value.object->end()); + return m_value.object->find(key)->second; + } + + JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()))); + } + + /*! + @brief access specified object element + + Returns a reference to the element at with specified key @a key. + + @note If @a key is not found in the object, then it is silently added to + the object and filled with a `null` value to make `key` a valid reference. + In case the value was `null` before, it is converted to an object. + + @param[in] key key of the element to access + + @return reference to the element at key @a key + + @throw type_error.305 if the JSON value is not an object or null; in that + cases, using the [] operator with a key makes no sense. + + @complexity Logarithmic in the size of the container. + + @liveexample{The example below shows how object elements can be read and + written using the `[]` operator.,operatorarray__key_type} + + @sa @ref at(const typename object_t::key_type&) for access by reference + with range checking + @sa @ref value() for access by value with a default value + + @since version 1.1.0 + */ + template + JSON_HEDLEY_NON_NULL(2) + reference operator[](T* key) + { + // implicitly convert null to object + if (is_null()) + { + m_type = value_t::object; + m_value = value_t::object; + assert_invariant(); + } + + // at only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + return m_value.object->operator[](key); + } + + JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()))); + } + + /*! + @brief read-only access specified object element + + Returns a const reference to the element at with specified key @a key. No + bounds checking is performed. + + @warning If the element with key @a key does not exist, the behavior is + undefined. + + @param[in] key key of the element to access + + @return const reference to the element at key @a key + + @pre The element with key @a key must exist. **This precondition is + enforced with an assertion.** + + @throw type_error.305 if the JSON value is not an object; in that case, + using the [] operator with a key makes no sense. + + @complexity Logarithmic in the size of the container. + + @liveexample{The example below shows how object elements can be read using + the `[]` operator.,operatorarray__key_type_const} + + @sa @ref at(const typename object_t::key_type&) for access by reference + with range checking + @sa @ref value() for access by value with a default value + + @since version 1.1.0 + */ + template + JSON_HEDLEY_NON_NULL(2) + const_reference operator[](T* key) const + { + // at only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + JSON_ASSERT(m_value.object->find(key) != m_value.object->end()); + return m_value.object->find(key)->second; + } + + JSON_THROW(type_error::create(305, "cannot use operator[] with a string argument with " + std::string(type_name()))); + } + + /*! + @brief access specified object element with default value + + Returns either a copy of an object's element at the specified key @a key + or a given default value if no element with key @a key exists. + + The function is basically equivalent to executing + @code {.cpp} + try { + return at(key); + } catch(out_of_range) { + return default_value; + } + @endcode + + @note Unlike @ref at(const typename object_t::key_type&), this function + does not throw if the given key @a key was not found. + + @note Unlike @ref operator[](const typename object_t::key_type& key), this + function does not implicitly add an element to the position defined by @a + key. This function is furthermore also applicable to const objects. + + @param[in] key key of the element to access + @param[in] default_value the value to return if @a key is not found + + @tparam ValueType type compatible to JSON values, for instance `int` for + JSON integer numbers, `bool` for JSON booleans, or `std::vector` types for + JSON arrays. Note the type of the expected value at @a key and the default + value @a default_value must be compatible. + + @return copy of the element at key @a key or @a default_value if @a key + is not found + + @throw type_error.302 if @a default_value does not match the type of the + value at @a key + @throw type_error.306 if the JSON value is not an object; in that case, + using `value()` with a key makes no sense. + + @complexity Logarithmic in the size of the container. + + @liveexample{The example below shows how object elements can be queried + with a default value.,basic_json__value} + + @sa @ref at(const typename object_t::key_type&) for access by reference + with range checking + @sa @ref operator[](const typename object_t::key_type&) for unchecked + access by reference + + @since version 1.0.0 + */ + // using std::is_convertible in a std::enable_if will fail when using explicit conversions + template < class ValueType, typename std::enable_if < + detail::is_getable::value + && !std::is_same::value, int >::type = 0 > + ValueType value(const typename object_t::key_type& key, const ValueType& default_value) const + { + // at only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + // if key is found, return value and given default value otherwise + const auto it = find(key); + if (it != end()) + { + return it->template get(); + } + + return default_value; + } + + JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()))); + } + + /*! + @brief overload for a default value of type const char* + @copydoc basic_json::value(const typename object_t::key_type&, const ValueType&) const + */ + string_t value(const typename object_t::key_type& key, const char* default_value) const + { + return value(key, string_t(default_value)); + } + + /*! + @brief access specified object element via JSON Pointer with default value + + Returns either a copy of an object's element at the specified key @a key + or a given default value if no element with key @a key exists. + + The function is basically equivalent to executing + @code {.cpp} + try { + return at(ptr); + } catch(out_of_range) { + return default_value; + } + @endcode + + @note Unlike @ref at(const json_pointer&), this function does not throw + if the given key @a key was not found. + + @param[in] ptr a JSON pointer to the element to access + @param[in] default_value the value to return if @a ptr found no value + + @tparam ValueType type compatible to JSON values, for instance `int` for + JSON integer numbers, `bool` for JSON booleans, or `std::vector` types for + JSON arrays. Note the type of the expected value at @a key and the default + value @a default_value must be compatible. + + @return copy of the element at key @a key or @a default_value if @a key + is not found + + @throw type_error.302 if @a default_value does not match the type of the + value at @a ptr + @throw type_error.306 if the JSON value is not an object; in that case, + using `value()` with a key makes no sense. + + @complexity Logarithmic in the size of the container. + + @liveexample{The example below shows how object elements can be queried + with a default value.,basic_json__value_ptr} + + @sa @ref operator[](const json_pointer&) for unchecked access by reference + + @since version 2.0.2 + */ + template::value, int>::type = 0> + ValueType value(const json_pointer& ptr, const ValueType& default_value) const + { + // at only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + // if pointer resolves a value, return it or use default value + JSON_TRY + { + return ptr.get_checked(this).template get(); + } + JSON_INTERNAL_CATCH (out_of_range&) + { + return default_value; + } + } + + JSON_THROW(type_error::create(306, "cannot use value() with " + std::string(type_name()))); + } + + /*! + @brief overload for a default value of type const char* + @copydoc basic_json::value(const json_pointer&, ValueType) const + */ + JSON_HEDLEY_NON_NULL(3) + string_t value(const json_pointer& ptr, const char* default_value) const + { + return value(ptr, string_t(default_value)); + } + + /*! + @brief access the first element + + Returns a reference to the first element in the container. For a JSON + container `c`, the expression `c.front()` is equivalent to `*c.begin()`. + + @return In case of a structured type (array or object), a reference to the + first element is returned. In case of number, string, boolean, or binary + values, a reference to the value is returned. + + @complexity Constant. + + @pre The JSON value must not be `null` (would throw `std::out_of_range`) + or an empty array or object (undefined behavior, **guarded by + assertions**). + @post The JSON value remains unchanged. + + @throw invalid_iterator.214 when called on `null` value + + @liveexample{The following code shows an example for `front()`.,front} + + @sa @ref back() -- access the last element + + @since version 1.0.0 + */ + reference front() + { + return *begin(); + } + + /*! + @copydoc basic_json::front() + */ + const_reference front() const + { + return *cbegin(); + } + + /*! + @brief access the last element + + Returns a reference to the last element in the container. For a JSON + container `c`, the expression `c.back()` is equivalent to + @code {.cpp} + auto tmp = c.end(); + --tmp; + return *tmp; + @endcode + + @return In case of a structured type (array or object), a reference to the + last element is returned. In case of number, string, boolean, or binary + values, a reference to the value is returned. + + @complexity Constant. + + @pre The JSON value must not be `null` (would throw `std::out_of_range`) + or an empty array or object (undefined behavior, **guarded by + assertions**). + @post The JSON value remains unchanged. + + @throw invalid_iterator.214 when called on a `null` value. See example + below. + + @liveexample{The following code shows an example for `back()`.,back} + + @sa @ref front() -- access the first element + + @since version 1.0.0 + */ + reference back() + { + auto tmp = end(); + --tmp; + return *tmp; + } + + /*! + @copydoc basic_json::back() + */ + const_reference back() const + { + auto tmp = cend(); + --tmp; + return *tmp; + } + + /*! + @brief remove element given an iterator + + Removes the element specified by iterator @a pos. The iterator @a pos must + be valid and dereferenceable. Thus the `end()` iterator (which is valid, + but is not dereferenceable) cannot be used as a value for @a pos. + + If called on a primitive type other than `null`, the resulting JSON value + will be `null`. + + @param[in] pos iterator to the element to remove + @return Iterator following the last removed element. If the iterator @a + pos refers to the last element, the `end()` iterator is returned. + + @tparam IteratorType an @ref iterator or @ref const_iterator + + @post Invalidates iterators and references at or after the point of the + erase, including the `end()` iterator. + + @throw type_error.307 if called on a `null` value; example: `"cannot use + erase() with null"` + @throw invalid_iterator.202 if called on an iterator which does not belong + to the current JSON value; example: `"iterator does not fit current + value"` + @throw invalid_iterator.205 if called on a primitive type with invalid + iterator (i.e., any iterator which is not `begin()`); example: `"iterator + out of range"` + + @complexity The complexity depends on the type: + - objects: amortized constant + - arrays: linear in distance between @a pos and the end of the container + - strings and binary: linear in the length of the member + - other types: constant + + @liveexample{The example shows the result of `erase()` for different JSON + types.,erase__IteratorType} + + @sa @ref erase(IteratorType, IteratorType) -- removes the elements in + the given range + @sa @ref erase(const typename object_t::key_type&) -- removes the element + from an object at the given key + @sa @ref erase(const size_type) -- removes the element from an array at + the given index + + @since version 1.0.0 + */ + template < class IteratorType, typename std::enable_if < + std::is_same::value || + std::is_same::value, int >::type + = 0 > + IteratorType erase(IteratorType pos) + { + // make sure iterator fits the current value + if (JSON_HEDLEY_UNLIKELY(this != pos.m_object)) + { + JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value")); + } + + IteratorType result = end(); + + switch (m_type) + { + case value_t::boolean: + case value_t::number_float: + case value_t::number_integer: + case value_t::number_unsigned: + case value_t::string: + case value_t::binary: + { + if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin())) + { + JSON_THROW(invalid_iterator::create(205, "iterator out of range")); + } + + if (is_string()) + { + AllocatorType alloc; + std::allocator_traits::destroy(alloc, m_value.string); + std::allocator_traits::deallocate(alloc, m_value.string, 1); + m_value.string = nullptr; + } + else if (is_binary()) + { + AllocatorType alloc; + std::allocator_traits::destroy(alloc, m_value.binary); + std::allocator_traits::deallocate(alloc, m_value.binary, 1); + m_value.binary = nullptr; + } + + m_type = value_t::null; + assert_invariant(); + break; + } + + case value_t::object: + { + result.m_it.object_iterator = m_value.object->erase(pos.m_it.object_iterator); + break; + } + + case value_t::array: + { + result.m_it.array_iterator = m_value.array->erase(pos.m_it.array_iterator); + break; + } + + default: + JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()))); + } + + return result; + } + + /*! + @brief remove elements given an iterator range + + Removes the element specified by the range `[first; last)`. The iterator + @a first does not need to be dereferenceable if `first == last`: erasing + an empty range is a no-op. + + If called on a primitive type other than `null`, the resulting JSON value + will be `null`. + + @param[in] first iterator to the beginning of the range to remove + @param[in] last iterator past the end of the range to remove + @return Iterator following the last removed element. If the iterator @a + second refers to the last element, the `end()` iterator is returned. + + @tparam IteratorType an @ref iterator or @ref const_iterator + + @post Invalidates iterators and references at or after the point of the + erase, including the `end()` iterator. + + @throw type_error.307 if called on a `null` value; example: `"cannot use + erase() with null"` + @throw invalid_iterator.203 if called on iterators which does not belong + to the current JSON value; example: `"iterators do not fit current value"` + @throw invalid_iterator.204 if called on a primitive type with invalid + iterators (i.e., if `first != begin()` and `last != end()`); example: + `"iterators out of range"` + + @complexity The complexity depends on the type: + - objects: `log(size()) + std::distance(first, last)` + - arrays: linear in the distance between @a first and @a last, plus linear + in the distance between @a last and end of the container + - strings and binary: linear in the length of the member + - other types: constant + + @liveexample{The example shows the result of `erase()` for different JSON + types.,erase__IteratorType_IteratorType} + + @sa @ref erase(IteratorType) -- removes the element at a given position + @sa @ref erase(const typename object_t::key_type&) -- removes the element + from an object at the given key + @sa @ref erase(const size_type) -- removes the element from an array at + the given index + + @since version 1.0.0 + */ + template < class IteratorType, typename std::enable_if < + std::is_same::value || + std::is_same::value, int >::type + = 0 > + IteratorType erase(IteratorType first, IteratorType last) + { + // make sure iterator fits the current value + if (JSON_HEDLEY_UNLIKELY(this != first.m_object || this != last.m_object)) + { + JSON_THROW(invalid_iterator::create(203, "iterators do not fit current value")); + } + + IteratorType result = end(); + + switch (m_type) + { + case value_t::boolean: + case value_t::number_float: + case value_t::number_integer: + case value_t::number_unsigned: + case value_t::string: + case value_t::binary: + { + if (JSON_HEDLEY_LIKELY(!first.m_it.primitive_iterator.is_begin() + || !last.m_it.primitive_iterator.is_end())) + { + JSON_THROW(invalid_iterator::create(204, "iterators out of range")); + } + + if (is_string()) + { + AllocatorType alloc; + std::allocator_traits::destroy(alloc, m_value.string); + std::allocator_traits::deallocate(alloc, m_value.string, 1); + m_value.string = nullptr; + } + else if (is_binary()) + { + AllocatorType alloc; + std::allocator_traits::destroy(alloc, m_value.binary); + std::allocator_traits::deallocate(alloc, m_value.binary, 1); + m_value.binary = nullptr; + } + + m_type = value_t::null; + assert_invariant(); + break; + } + + case value_t::object: + { + result.m_it.object_iterator = m_value.object->erase(first.m_it.object_iterator, + last.m_it.object_iterator); + break; + } + + case value_t::array: + { + result.m_it.array_iterator = m_value.array->erase(first.m_it.array_iterator, + last.m_it.array_iterator); + break; + } + + default: + JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()))); + } + + return result; + } + + /*! + @brief remove element from a JSON object given a key + + Removes elements from a JSON object with the key value @a key. + + @param[in] key value of the elements to remove + + @return Number of elements removed. If @a ObjectType is the default + `std::map` type, the return value will always be `0` (@a key was not + found) or `1` (@a key was found). + + @post References and iterators to the erased elements are invalidated. + Other references and iterators are not affected. + + @throw type_error.307 when called on a type other than JSON object; + example: `"cannot use erase() with null"` + + @complexity `log(size()) + count(key)` + + @liveexample{The example shows the effect of `erase()`.,erase__key_type} + + @sa @ref erase(IteratorType) -- removes the element at a given position + @sa @ref erase(IteratorType, IteratorType) -- removes the elements in + the given range + @sa @ref erase(const size_type) -- removes the element from an array at + the given index + + @since version 1.0.0 + */ + size_type erase(const typename object_t::key_type& key) + { + // this erase only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + return m_value.object->erase(key); + } + + JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()))); + } + + /*! + @brief remove element from a JSON array given an index + + Removes element from a JSON array at the index @a idx. + + @param[in] idx index of the element to remove + + @throw type_error.307 when called on a type other than JSON object; + example: `"cannot use erase() with null"` + @throw out_of_range.401 when `idx >= size()`; example: `"array index 17 + is out of range"` + + @complexity Linear in distance between @a idx and the end of the container. + + @liveexample{The example shows the effect of `erase()`.,erase__size_type} + + @sa @ref erase(IteratorType) -- removes the element at a given position + @sa @ref erase(IteratorType, IteratorType) -- removes the elements in + the given range + @sa @ref erase(const typename object_t::key_type&) -- removes the element + from an object at the given key + + @since version 1.0.0 + */ + void erase(const size_type idx) + { + // this erase only works for arrays + if (JSON_HEDLEY_LIKELY(is_array())) + { + if (JSON_HEDLEY_UNLIKELY(idx >= size())) + { + JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range")); + } + + m_value.array->erase(m_value.array->begin() + static_cast(idx)); + } + else + { + JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()))); + } + } + + /// @} + + + //////////// + // lookup // + //////////// + + /// @name lookup + /// @{ + + /*! + @brief find an element in a JSON object + + Finds an element in a JSON object with key equivalent to @a key. If the + element is not found or the JSON value is not an object, end() is + returned. + + @note This method always returns @ref end() when executed on a JSON type + that is not an object. + + @param[in] key key value of the element to search for. + + @return Iterator to an element with key equivalent to @a key. If no such + element is found or the JSON value is not an object, past-the-end (see + @ref end()) iterator is returned. + + @complexity Logarithmic in the size of the JSON object. + + @liveexample{The example shows how `find()` is used.,find__key_type} + + @sa @ref contains(KeyT&&) const -- checks whether a key exists + + @since version 1.0.0 + */ + template + iterator find(KeyT&& key) + { + auto result = end(); + + if (is_object()) + { + result.m_it.object_iterator = m_value.object->find(std::forward(key)); + } + + return result; + } + + /*! + @brief find an element in a JSON object + @copydoc find(KeyT&&) + */ + template + const_iterator find(KeyT&& key) const + { + auto result = cend(); + + if (is_object()) + { + result.m_it.object_iterator = m_value.object->find(std::forward(key)); + } + + return result; + } + + /*! + @brief returns the number of occurrences of a key in a JSON object + + Returns the number of elements with key @a key. If ObjectType is the + default `std::map` type, the return value will always be `0` (@a key was + not found) or `1` (@a key was found). + + @note This method always returns `0` when executed on a JSON type that is + not an object. + + @param[in] key key value of the element to count + + @return Number of elements with key @a key. If the JSON value is not an + object, the return value will be `0`. + + @complexity Logarithmic in the size of the JSON object. + + @liveexample{The example shows how `count()` is used.,count} + + @since version 1.0.0 + */ + template + size_type count(KeyT&& key) const + { + // return 0 for all nonobject types + return is_object() ? m_value.object->count(std::forward(key)) : 0; + } + + /*! + @brief check the existence of an element in a JSON object + + Check whether an element exists in a JSON object with key equivalent to + @a key. If the element is not found or the JSON value is not an object, + false is returned. + + @note This method always returns false when executed on a JSON type + that is not an object. + + @param[in] key key value to check its existence. + + @return true if an element with specified @a key exists. If no such + element with such key is found or the JSON value is not an object, + false is returned. + + @complexity Logarithmic in the size of the JSON object. + + @liveexample{The following code shows an example for `contains()`.,contains} + + @sa @ref find(KeyT&&) -- returns an iterator to an object element + @sa @ref contains(const json_pointer&) const -- checks the existence for a JSON pointer + + @since version 3.6.0 + */ + template < typename KeyT, typename std::enable_if < + !std::is_same::type, json_pointer>::value, int >::type = 0 > + bool contains(KeyT && key) const + { + return is_object() && m_value.object->find(std::forward(key)) != m_value.object->end(); + } + + /*! + @brief check the existence of an element in a JSON object given a JSON pointer + + Check whether the given JSON pointer @a ptr can be resolved in the current + JSON value. + + @note This method can be executed on any JSON value type. + + @param[in] ptr JSON pointer to check its existence. + + @return true if the JSON pointer can be resolved to a stored value, false + otherwise. + + @post If `j.contains(ptr)` returns true, it is safe to call `j[ptr]`. + + @throw parse_error.106 if an array index begins with '0' + @throw parse_error.109 if an array index was not a number + + @complexity Logarithmic in the size of the JSON object. + + @liveexample{The following code shows an example for `contains()`.,contains_json_pointer} + + @sa @ref contains(KeyT &&) const -- checks the existence of a key + + @since version 3.7.0 + */ + bool contains(const json_pointer& ptr) const + { + return ptr.contains(this); + } + + /// @} + + + /////////////// + // iterators // + /////////////// + + /// @name iterators + /// @{ + + /*! + @brief returns an iterator to the first element + + Returns an iterator to the first element. + + @image html range-begin-end.svg "Illustration from cppreference.com" + + @return iterator to the first element + + @complexity Constant. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is constant. + + @liveexample{The following code shows an example for `begin()`.,begin} + + @sa @ref cbegin() -- returns a const iterator to the beginning + @sa @ref end() -- returns an iterator to the end + @sa @ref cend() -- returns a const iterator to the end + + @since version 1.0.0 + */ + iterator begin() noexcept + { + iterator result(this); + result.set_begin(); + return result; + } + + /*! + @copydoc basic_json::cbegin() + */ + const_iterator begin() const noexcept + { + return cbegin(); + } + + /*! + @brief returns a const iterator to the first element + + Returns a const iterator to the first element. + + @image html range-begin-end.svg "Illustration from cppreference.com" + + @return const iterator to the first element + + @complexity Constant. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is constant. + - Has the semantics of `const_cast(*this).begin()`. + + @liveexample{The following code shows an example for `cbegin()`.,cbegin} + + @sa @ref begin() -- returns an iterator to the beginning + @sa @ref end() -- returns an iterator to the end + @sa @ref cend() -- returns a const iterator to the end + + @since version 1.0.0 + */ + const_iterator cbegin() const noexcept + { + const_iterator result(this); + result.set_begin(); + return result; + } + + /*! + @brief returns an iterator to one past the last element + + Returns an iterator to one past the last element. + + @image html range-begin-end.svg "Illustration from cppreference.com" + + @return iterator one past the last element + + @complexity Constant. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is constant. + + @liveexample{The following code shows an example for `end()`.,end} + + @sa @ref cend() -- returns a const iterator to the end + @sa @ref begin() -- returns an iterator to the beginning + @sa @ref cbegin() -- returns a const iterator to the beginning + + @since version 1.0.0 + */ + iterator end() noexcept + { + iterator result(this); + result.set_end(); + return result; + } + + /*! + @copydoc basic_json::cend() + */ + const_iterator end() const noexcept + { + return cend(); + } + + /*! + @brief returns a const iterator to one past the last element + + Returns a const iterator to one past the last element. + + @image html range-begin-end.svg "Illustration from cppreference.com" + + @return const iterator one past the last element + + @complexity Constant. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is constant. + - Has the semantics of `const_cast(*this).end()`. + + @liveexample{The following code shows an example for `cend()`.,cend} + + @sa @ref end() -- returns an iterator to the end + @sa @ref begin() -- returns an iterator to the beginning + @sa @ref cbegin() -- returns a const iterator to the beginning + + @since version 1.0.0 + */ + const_iterator cend() const noexcept + { + const_iterator result(this); + result.set_end(); + return result; + } + + /*! + @brief returns an iterator to the reverse-beginning + + Returns an iterator to the reverse-beginning; that is, the last element. + + @image html range-rbegin-rend.svg "Illustration from cppreference.com" + + @complexity Constant. + + @requirement This function helps `basic_json` satisfying the + [ReversibleContainer](https://en.cppreference.com/w/cpp/named_req/ReversibleContainer) + requirements: + - The complexity is constant. + - Has the semantics of `reverse_iterator(end())`. + + @liveexample{The following code shows an example for `rbegin()`.,rbegin} + + @sa @ref crbegin() -- returns a const reverse iterator to the beginning + @sa @ref rend() -- returns a reverse iterator to the end + @sa @ref crend() -- returns a const reverse iterator to the end + + @since version 1.0.0 + */ + reverse_iterator rbegin() noexcept + { + return reverse_iterator(end()); + } + + /*! + @copydoc basic_json::crbegin() + */ + const_reverse_iterator rbegin() const noexcept + { + return crbegin(); + } + + /*! + @brief returns an iterator to the reverse-end + + Returns an iterator to the reverse-end; that is, one before the first + element. + + @image html range-rbegin-rend.svg "Illustration from cppreference.com" + + @complexity Constant. + + @requirement This function helps `basic_json` satisfying the + [ReversibleContainer](https://en.cppreference.com/w/cpp/named_req/ReversibleContainer) + requirements: + - The complexity is constant. + - Has the semantics of `reverse_iterator(begin())`. + + @liveexample{The following code shows an example for `rend()`.,rend} + + @sa @ref crend() -- returns a const reverse iterator to the end + @sa @ref rbegin() -- returns a reverse iterator to the beginning + @sa @ref crbegin() -- returns a const reverse iterator to the beginning + + @since version 1.0.0 + */ + reverse_iterator rend() noexcept + { + return reverse_iterator(begin()); + } + + /*! + @copydoc basic_json::crend() + */ + const_reverse_iterator rend() const noexcept + { + return crend(); + } + + /*! + @brief returns a const reverse iterator to the last element + + Returns a const iterator to the reverse-beginning; that is, the last + element. + + @image html range-rbegin-rend.svg "Illustration from cppreference.com" + + @complexity Constant. + + @requirement This function helps `basic_json` satisfying the + [ReversibleContainer](https://en.cppreference.com/w/cpp/named_req/ReversibleContainer) + requirements: + - The complexity is constant. + - Has the semantics of `const_cast(*this).rbegin()`. + + @liveexample{The following code shows an example for `crbegin()`.,crbegin} + + @sa @ref rbegin() -- returns a reverse iterator to the beginning + @sa @ref rend() -- returns a reverse iterator to the end + @sa @ref crend() -- returns a const reverse iterator to the end + + @since version 1.0.0 + */ + const_reverse_iterator crbegin() const noexcept + { + return const_reverse_iterator(cend()); + } + + /*! + @brief returns a const reverse iterator to one before the first + + Returns a const reverse iterator to the reverse-end; that is, one before + the first element. + + @image html range-rbegin-rend.svg "Illustration from cppreference.com" + + @complexity Constant. + + @requirement This function helps `basic_json` satisfying the + [ReversibleContainer](https://en.cppreference.com/w/cpp/named_req/ReversibleContainer) + requirements: + - The complexity is constant. + - Has the semantics of `const_cast(*this).rend()`. + + @liveexample{The following code shows an example for `crend()`.,crend} + + @sa @ref rend() -- returns a reverse iterator to the end + @sa @ref rbegin() -- returns a reverse iterator to the beginning + @sa @ref crbegin() -- returns a const reverse iterator to the beginning + + @since version 1.0.0 + */ + const_reverse_iterator crend() const noexcept + { + return const_reverse_iterator(cbegin()); + } + + public: + /*! + @brief wrapper to access iterator member functions in range-based for + + This function allows to access @ref iterator::key() and @ref + iterator::value() during range-based for loops. In these loops, a + reference to the JSON values is returned, so there is no access to the + underlying iterator. + + For loop without iterator_wrapper: + + @code{cpp} + for (auto it = j_object.begin(); it != j_object.end(); ++it) + { + std::cout << "key: " << it.key() << ", value:" << it.value() << '\n'; + } + @endcode + + Range-based for loop without iterator proxy: + + @code{cpp} + for (auto it : j_object) + { + // "it" is of type json::reference and has no key() member + std::cout << "value: " << it << '\n'; + } + @endcode + + Range-based for loop with iterator proxy: + + @code{cpp} + for (auto it : json::iterator_wrapper(j_object)) + { + std::cout << "key: " << it.key() << ", value:" << it.value() << '\n'; + } + @endcode + + @note When iterating over an array, `key()` will return the index of the + element as string (see example). + + @param[in] ref reference to a JSON value + @return iteration proxy object wrapping @a ref with an interface to use in + range-based for loops + + @liveexample{The following code shows how the wrapper is used,iterator_wrapper} + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes in the JSON value. + + @complexity Constant. + + @note The name of this function is not yet final and may change in the + future. + + @deprecated This stream operator is deprecated and will be removed in + future 4.0.0 of the library. Please use @ref items() instead; + that is, replace `json::iterator_wrapper(j)` with `j.items()`. + */ + JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items()) + static iteration_proxy iterator_wrapper(reference ref) noexcept + { + return ref.items(); + } + + /*! + @copydoc iterator_wrapper(reference) + */ + JSON_HEDLEY_DEPRECATED_FOR(3.1.0, items()) + static iteration_proxy iterator_wrapper(const_reference ref) noexcept + { + return ref.items(); + } + + /*! + @brief helper to access iterator member functions in range-based for + + This function allows to access @ref iterator::key() and @ref + iterator::value() during range-based for loops. In these loops, a + reference to the JSON values is returned, so there is no access to the + underlying iterator. + + For loop without `items()` function: + + @code{cpp} + for (auto it = j_object.begin(); it != j_object.end(); ++it) + { + std::cout << "key: " << it.key() << ", value:" << it.value() << '\n'; + } + @endcode + + Range-based for loop without `items()` function: + + @code{cpp} + for (auto it : j_object) + { + // "it" is of type json::reference and has no key() member + std::cout << "value: " << it << '\n'; + } + @endcode + + Range-based for loop with `items()` function: + + @code{cpp} + for (auto& el : j_object.items()) + { + std::cout << "key: " << el.key() << ", value:" << el.value() << '\n'; + } + @endcode + + The `items()` function also allows to use + [structured bindings](https://en.cppreference.com/w/cpp/language/structured_binding) + (C++17): + + @code{cpp} + for (auto& [key, val] : j_object.items()) + { + std::cout << "key: " << key << ", value:" << val << '\n'; + } + @endcode + + @note When iterating over an array, `key()` will return the index of the + element as string (see example). For primitive types (e.g., numbers), + `key()` returns an empty string. + + @warning Using `items()` on temporary objects is dangerous. Make sure the + object's lifetime exeeds the iteration. See + for more + information. + + @return iteration proxy object wrapping @a ref with an interface to use in + range-based for loops + + @liveexample{The following code shows how the function is used.,items} + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes in the JSON value. + + @complexity Constant. + + @since version 3.1.0, structured bindings support since 3.5.0. + */ + iteration_proxy items() noexcept + { + return iteration_proxy(*this); + } + + /*! + @copydoc items() + */ + iteration_proxy items() const noexcept + { + return iteration_proxy(*this); + } + + /// @} + + + ////////////// + // capacity // + ////////////// + + /// @name capacity + /// @{ + + /*! + @brief checks whether the container is empty. + + Checks if a JSON value has no elements (i.e. whether its @ref size is `0`). + + @return The return value depends on the different types and is + defined as follows: + Value type | return value + ----------- | ------------- + null | `true` + boolean | `false` + string | `false` + number | `false` + binary | `false` + object | result of function `object_t::empty()` + array | result of function `array_t::empty()` + + @liveexample{The following code uses `empty()` to check if a JSON + object contains any elements.,empty} + + @complexity Constant, as long as @ref array_t and @ref object_t satisfy + the Container concept; that is, their `empty()` functions have constant + complexity. + + @iterators No changes. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @note This function does not return whether a string stored as JSON value + is empty - it returns whether the JSON container itself is empty which is + false in the case of a string. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is constant. + - Has the semantics of `begin() == end()`. + + @sa @ref size() -- returns the number of elements + + @since version 1.0.0 + */ + bool empty() const noexcept + { + switch (m_type) + { + case value_t::null: + { + // null values are empty + return true; + } + + case value_t::array: + { + // delegate call to array_t::empty() + return m_value.array->empty(); + } + + case value_t::object: + { + // delegate call to object_t::empty() + return m_value.object->empty(); + } + + default: + { + // all other types are nonempty + return false; + } + } + } + + /*! + @brief returns the number of elements + + Returns the number of elements in a JSON value. + + @return The return value depends on the different types and is + defined as follows: + Value type | return value + ----------- | ------------- + null | `0` + boolean | `1` + string | `1` + number | `1` + binary | `1` + object | result of function object_t::size() + array | result of function array_t::size() + + @liveexample{The following code calls `size()` on the different value + types.,size} + + @complexity Constant, as long as @ref array_t and @ref object_t satisfy + the Container concept; that is, their size() functions have constant + complexity. + + @iterators No changes. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @note This function does not return the length of a string stored as JSON + value - it returns the number of elements in the JSON value which is 1 in + the case of a string. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is constant. + - Has the semantics of `std::distance(begin(), end())`. + + @sa @ref empty() -- checks whether the container is empty + @sa @ref max_size() -- returns the maximal number of elements + + @since version 1.0.0 + */ + size_type size() const noexcept + { + switch (m_type) + { + case value_t::null: + { + // null values are empty + return 0; + } + + case value_t::array: + { + // delegate call to array_t::size() + return m_value.array->size(); + } + + case value_t::object: + { + // delegate call to object_t::size() + return m_value.object->size(); + } + + default: + { + // all other types have size 1 + return 1; + } + } + } + + /*! + @brief returns the maximum possible number of elements + + Returns the maximum number of elements a JSON value is able to hold due to + system or library implementation limitations, i.e. `std::distance(begin(), + end())` for the JSON value. + + @return The return value depends on the different types and is + defined as follows: + Value type | return value + ----------- | ------------- + null | `0` (same as `size()`) + boolean | `1` (same as `size()`) + string | `1` (same as `size()`) + number | `1` (same as `size()`) + binary | `1` (same as `size()`) + object | result of function `object_t::max_size()` + array | result of function `array_t::max_size()` + + @liveexample{The following code calls `max_size()` on the different value + types. Note the output is implementation specific.,max_size} + + @complexity Constant, as long as @ref array_t and @ref object_t satisfy + the Container concept; that is, their `max_size()` functions have constant + complexity. + + @iterators No changes. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @requirement This function helps `basic_json` satisfying the + [Container](https://en.cppreference.com/w/cpp/named_req/Container) + requirements: + - The complexity is constant. + - Has the semantics of returning `b.size()` where `b` is the largest + possible JSON value. + + @sa @ref size() -- returns the number of elements + + @since version 1.0.0 + */ + size_type max_size() const noexcept + { + switch (m_type) + { + case value_t::array: + { + // delegate call to array_t::max_size() + return m_value.array->max_size(); + } + + case value_t::object: + { + // delegate call to object_t::max_size() + return m_value.object->max_size(); + } + + default: + { + // all other types have max_size() == size() + return size(); + } + } + } + + /// @} + + + /////////////// + // modifiers // + /////////////// + + /// @name modifiers + /// @{ + + /*! + @brief clears the contents + + Clears the content of a JSON value and resets it to the default value as + if @ref basic_json(value_t) would have been called with the current value + type from @ref type(): + + Value type | initial value + ----------- | ------------- + null | `null` + boolean | `false` + string | `""` + number | `0` + binary | An empty byte vector + object | `{}` + array | `[]` + + @post Has the same effect as calling + @code {.cpp} + *this = basic_json(type()); + @endcode + + @liveexample{The example below shows the effect of `clear()` to different + JSON types.,clear} + + @complexity Linear in the size of the JSON value. + + @iterators All iterators, pointers and references related to this container + are invalidated. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @sa @ref basic_json(value_t) -- constructor that creates an object with the + same value than calling `clear()` + + @since version 1.0.0 + */ + void clear() noexcept + { + switch (m_type) + { + case value_t::number_integer: + { + m_value.number_integer = 0; + break; + } + + case value_t::number_unsigned: + { + m_value.number_unsigned = 0; + break; + } + + case value_t::number_float: + { + m_value.number_float = 0.0; + break; + } + + case value_t::boolean: + { + m_value.boolean = false; + break; + } + + case value_t::string: + { + m_value.string->clear(); + break; + } + + case value_t::binary: + { + m_value.binary->clear(); + break; + } + + case value_t::array: + { + m_value.array->clear(); + break; + } + + case value_t::object: + { + m_value.object->clear(); + break; + } + + default: + break; + } + } + + /*! + @brief add an object to an array + + Appends the given element @a val to the end of the JSON value. If the + function is called on a JSON null value, an empty array is created before + appending @a val. + + @param[in] val the value to add to the JSON array + + @throw type_error.308 when called on a type other than JSON array or + null; example: `"cannot use push_back() with number"` + + @complexity Amortized constant. + + @liveexample{The example shows how `push_back()` and `+=` can be used to + add elements to a JSON array. Note how the `null` value was silently + converted to a JSON array.,push_back} + + @since version 1.0.0 + */ + void push_back(basic_json&& val) + { + // push_back only works for null objects or arrays + if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array()))) + { + JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()))); + } + + // transform null object into an array + if (is_null()) + { + m_type = value_t::array; + m_value = value_t::array; + assert_invariant(); + } + + // add element to array (move semantics) + m_value.array->push_back(std::move(val)); + // if val is moved from, basic_json move constructor marks it null so we do not call the destructor + } + + /*! + @brief add an object to an array + @copydoc push_back(basic_json&&) + */ + reference operator+=(basic_json&& val) + { + push_back(std::move(val)); + return *this; + } + + /*! + @brief add an object to an array + @copydoc push_back(basic_json&&) + */ + void push_back(const basic_json& val) + { + // push_back only works for null objects or arrays + if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array()))) + { + JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()))); + } + + // transform null object into an array + if (is_null()) + { + m_type = value_t::array; + m_value = value_t::array; + assert_invariant(); + } + + // add element to array + m_value.array->push_back(val); + } + + /*! + @brief add an object to an array + @copydoc push_back(basic_json&&) + */ + reference operator+=(const basic_json& val) + { + push_back(val); + return *this; + } + + /*! + @brief add an object to an object + + Inserts the given element @a val to the JSON object. If the function is + called on a JSON null value, an empty object is created before inserting + @a val. + + @param[in] val the value to add to the JSON object + + @throw type_error.308 when called on a type other than JSON object or + null; example: `"cannot use push_back() with number"` + + @complexity Logarithmic in the size of the container, O(log(`size()`)). + + @liveexample{The example shows how `push_back()` and `+=` can be used to + add elements to a JSON object. Note how the `null` value was silently + converted to a JSON object.,push_back__object_t__value} + + @since version 1.0.0 + */ + void push_back(const typename object_t::value_type& val) + { + // push_back only works for null objects or objects + if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object()))) + { + JSON_THROW(type_error::create(308, "cannot use push_back() with " + std::string(type_name()))); + } + + // transform null object into an object + if (is_null()) + { + m_type = value_t::object; + m_value = value_t::object; + assert_invariant(); + } + + // add element to array + m_value.object->insert(val); + } + + /*! + @brief add an object to an object + @copydoc push_back(const typename object_t::value_type&) + */ + reference operator+=(const typename object_t::value_type& val) + { + push_back(val); + return *this; + } + + /*! + @brief add an object to an object + + This function allows to use `push_back` with an initializer list. In case + + 1. the current value is an object, + 2. the initializer list @a init contains only two elements, and + 3. the first element of @a init is a string, + + @a init is converted into an object element and added using + @ref push_back(const typename object_t::value_type&). Otherwise, @a init + is converted to a JSON value and added using @ref push_back(basic_json&&). + + @param[in] init an initializer list + + @complexity Linear in the size of the initializer list @a init. + + @note This function is required to resolve an ambiguous overload error, + because pairs like `{"key", "value"}` can be both interpreted as + `object_t::value_type` or `std::initializer_list`, see + https://github.com/nlohmann/json/issues/235 for more information. + + @liveexample{The example shows how initializer lists are treated as + objects when possible.,push_back__initializer_list} + */ + void push_back(initializer_list_t init) + { + if (is_object() && init.size() == 2 && (*init.begin())->is_string()) + { + basic_json&& key = init.begin()->moved_or_copied(); + push_back(typename object_t::value_type( + std::move(key.get_ref()), (init.begin() + 1)->moved_or_copied())); + } + else + { + push_back(basic_json(init)); + } + } + + /*! + @brief add an object to an object + @copydoc push_back(initializer_list_t) + */ + reference operator+=(initializer_list_t init) + { + push_back(init); + return *this; + } + + /*! + @brief add an object to an array + + Creates a JSON value from the passed parameters @a args to the end of the + JSON value. If the function is called on a JSON null value, an empty array + is created before appending the value created from @a args. + + @param[in] args arguments to forward to a constructor of @ref basic_json + @tparam Args compatible types to create a @ref basic_json object + + @return reference to the inserted element + + @throw type_error.311 when called on a type other than JSON array or + null; example: `"cannot use emplace_back() with number"` + + @complexity Amortized constant. + + @liveexample{The example shows how `push_back()` can be used to add + elements to a JSON array. Note how the `null` value was silently converted + to a JSON array.,emplace_back} + + @since version 2.0.8, returns reference since 3.7.0 + */ + template + reference emplace_back(Args&& ... args) + { + // emplace_back only works for null objects or arrays + if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_array()))) + { + JSON_THROW(type_error::create(311, "cannot use emplace_back() with " + std::string(type_name()))); + } + + // transform null object into an array + if (is_null()) + { + m_type = value_t::array; + m_value = value_t::array; + assert_invariant(); + } + + // add element to array (perfect forwarding) +#ifdef JSON_HAS_CPP_17 + return m_value.array->emplace_back(std::forward(args)...); +#else + m_value.array->emplace_back(std::forward(args)...); + return m_value.array->back(); +#endif + } + + /*! + @brief add an object to an object if key does not exist + + Inserts a new element into a JSON object constructed in-place with the + given @a args if there is no element with the key in the container. If the + function is called on a JSON null value, an empty object is created before + appending the value created from @a args. + + @param[in] args arguments to forward to a constructor of @ref basic_json + @tparam Args compatible types to create a @ref basic_json object + + @return a pair consisting of an iterator to the inserted element, or the + already-existing element if no insertion happened, and a bool + denoting whether the insertion took place. + + @throw type_error.311 when called on a type other than JSON object or + null; example: `"cannot use emplace() with number"` + + @complexity Logarithmic in the size of the container, O(log(`size()`)). + + @liveexample{The example shows how `emplace()` can be used to add elements + to a JSON object. Note how the `null` value was silently converted to a + JSON object. Further note how no value is added if there was already one + value stored with the same key.,emplace} + + @since version 2.0.8 + */ + template + std::pair emplace(Args&& ... args) + { + // emplace only works for null objects or arrays + if (JSON_HEDLEY_UNLIKELY(!(is_null() || is_object()))) + { + JSON_THROW(type_error::create(311, "cannot use emplace() with " + std::string(type_name()))); + } + + // transform null object into an object + if (is_null()) + { + m_type = value_t::object; + m_value = value_t::object; + assert_invariant(); + } + + // add element to array (perfect forwarding) + auto res = m_value.object->emplace(std::forward(args)...); + // create result iterator and set iterator to the result of emplace + auto it = begin(); + it.m_it.object_iterator = res.first; + + // return pair of iterator and boolean + return {it, res.second}; + } + + /// Helper for insertion of an iterator + /// @note: This uses std::distance to support GCC 4.8, + /// see https://github.com/nlohmann/json/pull/1257 + template + iterator insert_iterator(const_iterator pos, Args&& ... args) + { + iterator result(this); + JSON_ASSERT(m_value.array != nullptr); + + auto insert_pos = std::distance(m_value.array->begin(), pos.m_it.array_iterator); + m_value.array->insert(pos.m_it.array_iterator, std::forward(args)...); + result.m_it.array_iterator = m_value.array->begin() + insert_pos; + + // This could have been written as: + // result.m_it.array_iterator = m_value.array->insert(pos.m_it.array_iterator, cnt, val); + // but the return value of insert is missing in GCC 4.8, so it is written this way instead. + + return result; + } + + /*! + @brief inserts element + + Inserts element @a val before iterator @a pos. + + @param[in] pos iterator before which the content will be inserted; may be + the end() iterator + @param[in] val element to insert + @return iterator pointing to the inserted @a val. + + @throw type_error.309 if called on JSON values other than arrays; + example: `"cannot use insert() with string"` + @throw invalid_iterator.202 if @a pos is not an iterator of *this; + example: `"iterator does not fit current value"` + + @complexity Constant plus linear in the distance between @a pos and end of + the container. + + @liveexample{The example shows how `insert()` is used.,insert} + + @since version 1.0.0 + */ + iterator insert(const_iterator pos, const basic_json& val) + { + // insert only works for arrays + if (JSON_HEDLEY_LIKELY(is_array())) + { + // check if iterator pos fits to this JSON value + if (JSON_HEDLEY_UNLIKELY(pos.m_object != this)) + { + JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value")); + } + + // insert to array and return iterator + return insert_iterator(pos, val); + } + + JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()))); + } + + /*! + @brief inserts element + @copydoc insert(const_iterator, const basic_json&) + */ + iterator insert(const_iterator pos, basic_json&& val) + { + return insert(pos, val); + } + + /*! + @brief inserts elements + + Inserts @a cnt copies of @a val before iterator @a pos. + + @param[in] pos iterator before which the content will be inserted; may be + the end() iterator + @param[in] cnt number of copies of @a val to insert + @param[in] val element to insert + @return iterator pointing to the first element inserted, or @a pos if + `cnt==0` + + @throw type_error.309 if called on JSON values other than arrays; example: + `"cannot use insert() with string"` + @throw invalid_iterator.202 if @a pos is not an iterator of *this; + example: `"iterator does not fit current value"` + + @complexity Linear in @a cnt plus linear in the distance between @a pos + and end of the container. + + @liveexample{The example shows how `insert()` is used.,insert__count} + + @since version 1.0.0 + */ + iterator insert(const_iterator pos, size_type cnt, const basic_json& val) + { + // insert only works for arrays + if (JSON_HEDLEY_LIKELY(is_array())) + { + // check if iterator pos fits to this JSON value + if (JSON_HEDLEY_UNLIKELY(pos.m_object != this)) + { + JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value")); + } + + // insert to array and return iterator + return insert_iterator(pos, cnt, val); + } + + JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()))); + } + + /*! + @brief inserts elements + + Inserts elements from range `[first, last)` before iterator @a pos. + + @param[in] pos iterator before which the content will be inserted; may be + the end() iterator + @param[in] first begin of the range of elements to insert + @param[in] last end of the range of elements to insert + + @throw type_error.309 if called on JSON values other than arrays; example: + `"cannot use insert() with string"` + @throw invalid_iterator.202 if @a pos is not an iterator of *this; + example: `"iterator does not fit current value"` + @throw invalid_iterator.210 if @a first and @a last do not belong to the + same JSON value; example: `"iterators do not fit"` + @throw invalid_iterator.211 if @a first or @a last are iterators into + container for which insert is called; example: `"passed iterators may not + belong to container"` + + @return iterator pointing to the first element inserted, or @a pos if + `first==last` + + @complexity Linear in `std::distance(first, last)` plus linear in the + distance between @a pos and end of the container. + + @liveexample{The example shows how `insert()` is used.,insert__range} + + @since version 1.0.0 + */ + iterator insert(const_iterator pos, const_iterator first, const_iterator last) + { + // insert only works for arrays + if (JSON_HEDLEY_UNLIKELY(!is_array())) + { + JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()))); + } + + // check if iterator pos fits to this JSON value + if (JSON_HEDLEY_UNLIKELY(pos.m_object != this)) + { + JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value")); + } + + // check if range iterators belong to the same JSON object + if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object)) + { + JSON_THROW(invalid_iterator::create(210, "iterators do not fit")); + } + + if (JSON_HEDLEY_UNLIKELY(first.m_object == this)) + { + JSON_THROW(invalid_iterator::create(211, "passed iterators may not belong to container")); + } + + // insert to array and return iterator + return insert_iterator(pos, first.m_it.array_iterator, last.m_it.array_iterator); + } + + /*! + @brief inserts elements + + Inserts elements from initializer list @a ilist before iterator @a pos. + + @param[in] pos iterator before which the content will be inserted; may be + the end() iterator + @param[in] ilist initializer list to insert the values from + + @throw type_error.309 if called on JSON values other than arrays; example: + `"cannot use insert() with string"` + @throw invalid_iterator.202 if @a pos is not an iterator of *this; + example: `"iterator does not fit current value"` + + @return iterator pointing to the first element inserted, or @a pos if + `ilist` is empty + + @complexity Linear in `ilist.size()` plus linear in the distance between + @a pos and end of the container. + + @liveexample{The example shows how `insert()` is used.,insert__ilist} + + @since version 1.0.0 + */ + iterator insert(const_iterator pos, initializer_list_t ilist) + { + // insert only works for arrays + if (JSON_HEDLEY_UNLIKELY(!is_array())) + { + JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()))); + } + + // check if iterator pos fits to this JSON value + if (JSON_HEDLEY_UNLIKELY(pos.m_object != this)) + { + JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value")); + } + + // insert to array and return iterator + return insert_iterator(pos, ilist.begin(), ilist.end()); + } + + /*! + @brief inserts elements + + Inserts elements from range `[first, last)`. + + @param[in] first begin of the range of elements to insert + @param[in] last end of the range of elements to insert + + @throw type_error.309 if called on JSON values other than objects; example: + `"cannot use insert() with string"` + @throw invalid_iterator.202 if iterator @a first or @a last does does not + point to an object; example: `"iterators first and last must point to + objects"` + @throw invalid_iterator.210 if @a first and @a last do not belong to the + same JSON value; example: `"iterators do not fit"` + + @complexity Logarithmic: `O(N*log(size() + N))`, where `N` is the number + of elements to insert. + + @liveexample{The example shows how `insert()` is used.,insert__range_object} + + @since version 3.0.0 + */ + void insert(const_iterator first, const_iterator last) + { + // insert only works for objects + if (JSON_HEDLEY_UNLIKELY(!is_object())) + { + JSON_THROW(type_error::create(309, "cannot use insert() with " + std::string(type_name()))); + } + + // check if range iterators belong to the same JSON object + if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object)) + { + JSON_THROW(invalid_iterator::create(210, "iterators do not fit")); + } + + // passed iterators must belong to objects + if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object())) + { + JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects")); + } + + m_value.object->insert(first.m_it.object_iterator, last.m_it.object_iterator); + } + + /*! + @brief updates a JSON object from another object, overwriting existing keys + + Inserts all values from JSON object @a j and overwrites existing keys. + + @param[in] j JSON object to read values from + + @throw type_error.312 if called on JSON values other than objects; example: + `"cannot use update() with string"` + + @complexity O(N*log(size() + N)), where N is the number of elements to + insert. + + @liveexample{The example shows how `update()` is used.,update} + + @sa https://docs.python.org/3.6/library/stdtypes.html#dict.update + + @since version 3.0.0 + */ + void update(const_reference j) + { + // implicitly convert null value to an empty object + if (is_null()) + { + m_type = value_t::object; + m_value.object = create(); + assert_invariant(); + } + + if (JSON_HEDLEY_UNLIKELY(!is_object())) + { + JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(type_name()))); + } + if (JSON_HEDLEY_UNLIKELY(!j.is_object())) + { + JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(j.type_name()))); + } + + for (auto it = j.cbegin(); it != j.cend(); ++it) + { + m_value.object->operator[](it.key()) = it.value(); + } + } + + /*! + @brief updates a JSON object from another object, overwriting existing keys + + Inserts all values from from range `[first, last)` and overwrites existing + keys. + + @param[in] first begin of the range of elements to insert + @param[in] last end of the range of elements to insert + + @throw type_error.312 if called on JSON values other than objects; example: + `"cannot use update() with string"` + @throw invalid_iterator.202 if iterator @a first or @a last does does not + point to an object; example: `"iterators first and last must point to + objects"` + @throw invalid_iterator.210 if @a first and @a last do not belong to the + same JSON value; example: `"iterators do not fit"` + + @complexity O(N*log(size() + N)), where N is the number of elements to + insert. + + @liveexample{The example shows how `update()` is used__range.,update} + + @sa https://docs.python.org/3.6/library/stdtypes.html#dict.update + + @since version 3.0.0 + */ + void update(const_iterator first, const_iterator last) + { + // implicitly convert null value to an empty object + if (is_null()) + { + m_type = value_t::object; + m_value.object = create(); + assert_invariant(); + } + + if (JSON_HEDLEY_UNLIKELY(!is_object())) + { + JSON_THROW(type_error::create(312, "cannot use update() with " + std::string(type_name()))); + } + + // check if range iterators belong to the same JSON object + if (JSON_HEDLEY_UNLIKELY(first.m_object != last.m_object)) + { + JSON_THROW(invalid_iterator::create(210, "iterators do not fit")); + } + + // passed iterators must belong to objects + if (JSON_HEDLEY_UNLIKELY(!first.m_object->is_object() + || !last.m_object->is_object())) + { + JSON_THROW(invalid_iterator::create(202, "iterators first and last must point to objects")); + } + + for (auto it = first; it != last; ++it) + { + m_value.object->operator[](it.key()) = it.value(); + } + } + + /*! + @brief exchanges the values + + Exchanges the contents of the JSON value with those of @a other. Does not + invoke any move, copy, or swap operations on individual elements. All + iterators and references remain valid. The past-the-end iterator is + invalidated. + + @param[in,out] other JSON value to exchange the contents with + + @complexity Constant. + + @liveexample{The example below shows how JSON values can be swapped with + `swap()`.,swap__reference} + + @since version 1.0.0 + */ + void swap(reference other) noexcept ( + std::is_nothrow_move_constructible::value&& + std::is_nothrow_move_assignable::value&& + std::is_nothrow_move_constructible::value&& + std::is_nothrow_move_assignable::value + ) + { + std::swap(m_type, other.m_type); + std::swap(m_value, other.m_value); + assert_invariant(); + } + + /*! + @brief exchanges the values + + Exchanges the contents of the JSON value from @a left with those of @a right. Does not + invoke any move, copy, or swap operations on individual elements. All + iterators and references remain valid. The past-the-end iterator is + invalidated. implemented as a friend function callable via ADL. + + @param[in,out] left JSON value to exchange the contents with + @param[in,out] right JSON value to exchange the contents with + + @complexity Constant. + + @liveexample{The example below shows how JSON values can be swapped with + `swap()`.,swap__reference} + + @since version 1.0.0 + */ + friend void swap(reference left, reference right) noexcept ( + std::is_nothrow_move_constructible::value&& + std::is_nothrow_move_assignable::value&& + std::is_nothrow_move_constructible::value&& + std::is_nothrow_move_assignable::value + ) + { + left.swap(right); + } + + /*! + @brief exchanges the values + + Exchanges the contents of a JSON array with those of @a other. Does not + invoke any move, copy, or swap operations on individual elements. All + iterators and references remain valid. The past-the-end iterator is + invalidated. + + @param[in,out] other array to exchange the contents with + + @throw type_error.310 when JSON value is not an array; example: `"cannot + use swap() with string"` + + @complexity Constant. + + @liveexample{The example below shows how arrays can be swapped with + `swap()`.,swap__array_t} + + @since version 1.0.0 + */ + void swap(array_t& other) + { + // swap only works for arrays + if (JSON_HEDLEY_LIKELY(is_array())) + { + std::swap(*(m_value.array), other); + } + else + { + JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()))); + } + } + + /*! + @brief exchanges the values + + Exchanges the contents of a JSON object with those of @a other. Does not + invoke any move, copy, or swap operations on individual elements. All + iterators and references remain valid. The past-the-end iterator is + invalidated. + + @param[in,out] other object to exchange the contents with + + @throw type_error.310 when JSON value is not an object; example: + `"cannot use swap() with string"` + + @complexity Constant. + + @liveexample{The example below shows how objects can be swapped with + `swap()`.,swap__object_t} + + @since version 1.0.0 + */ + void swap(object_t& other) + { + // swap only works for objects + if (JSON_HEDLEY_LIKELY(is_object())) + { + std::swap(*(m_value.object), other); + } + else + { + JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()))); + } + } + + /*! + @brief exchanges the values + + Exchanges the contents of a JSON string with those of @a other. Does not + invoke any move, copy, or swap operations on individual elements. All + iterators and references remain valid. The past-the-end iterator is + invalidated. + + @param[in,out] other string to exchange the contents with + + @throw type_error.310 when JSON value is not a string; example: `"cannot + use swap() with boolean"` + + @complexity Constant. + + @liveexample{The example below shows how strings can be swapped with + `swap()`.,swap__string_t} + + @since version 1.0.0 + */ + void swap(string_t& other) + { + // swap only works for strings + if (JSON_HEDLEY_LIKELY(is_string())) + { + std::swap(*(m_value.string), other); + } + else + { + JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()))); + } + } + + /*! + @brief exchanges the values + + Exchanges the contents of a JSON string with those of @a other. Does not + invoke any move, copy, or swap operations on individual elements. All + iterators and references remain valid. The past-the-end iterator is + invalidated. + + @param[in,out] other binary to exchange the contents with + + @throw type_error.310 when JSON value is not a string; example: `"cannot + use swap() with boolean"` + + @complexity Constant. + + @liveexample{The example below shows how strings can be swapped with + `swap()`.,swap__binary_t} + + @since version 3.8.0 + */ + void swap(binary_t& other) + { + // swap only works for strings + if (JSON_HEDLEY_LIKELY(is_binary())) + { + std::swap(*(m_value.binary), other); + } + else + { + JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()))); + } + } + + /// @copydoc swap(binary_t) + void swap(typename binary_t::container_type& other) + { + // swap only works for strings + if (JSON_HEDLEY_LIKELY(is_binary())) + { + std::swap(*(m_value.binary), other); + } + else + { + JSON_THROW(type_error::create(310, "cannot use swap() with " + std::string(type_name()))); + } + } + + /// @} + + public: + ////////////////////////////////////////// + // lexicographical comparison operators // + ////////////////////////////////////////// + + /// @name lexicographical comparison operators + /// @{ + + /*! + @brief comparison: equal + + Compares two JSON values for equality according to the following rules: + - Two JSON values are equal if (1) they are from the same type and (2) + their stored values are the same according to their respective + `operator==`. + - Integer and floating-point numbers are automatically converted before + comparison. Note that two NaN values are always treated as unequal. + - Two JSON null values are equal. + + @note Floating-point inside JSON values numbers are compared with + `json::number_float_t::operator==` which is `double::operator==` by + default. To compare floating-point while respecting an epsilon, an alternative + [comparison function](https://github.com/mariokonrad/marnav/blob/master/include/marnav/math/floatingpoint.hpp#L34-#L39) + could be used, for instance + @code {.cpp} + template::value, T>::type> + inline bool is_same(T a, T b, T epsilon = std::numeric_limits::epsilon()) noexcept + { + return std::abs(a - b) <= epsilon; + } + @endcode + Or you can self-defined operator equal function like this: + @code {.cpp} + bool my_equal(const_reference lhs, const_reference rhs) { + const auto lhs_type lhs.type(); + const auto rhs_type rhs.type(); + if (lhs_type == rhs_type) { + switch(lhs_type) + // self_defined case + case value_t::number_float: + return std::abs(lhs - rhs) <= std::numeric_limits::epsilon(); + // other cases remain the same with the original + ... + } + ... + } + @endcode + + @note NaN values never compare equal to themselves or to other NaN values. + + @param[in] lhs first JSON value to consider + @param[in] rhs second JSON value to consider + @return whether the values @a lhs and @a rhs are equal + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @complexity Linear. + + @liveexample{The example demonstrates comparing several JSON + types.,operator__equal} + + @since version 1.0.0 + */ + friend bool operator==(const_reference lhs, const_reference rhs) noexcept + { + const auto lhs_type = lhs.type(); + const auto rhs_type = rhs.type(); + + if (lhs_type == rhs_type) + { + switch (lhs_type) + { + case value_t::array: + return *lhs.m_value.array == *rhs.m_value.array; + + case value_t::object: + return *lhs.m_value.object == *rhs.m_value.object; + + case value_t::null: + return true; + + case value_t::string: + return *lhs.m_value.string == *rhs.m_value.string; + + case value_t::boolean: + return lhs.m_value.boolean == rhs.m_value.boolean; + + case value_t::number_integer: + return lhs.m_value.number_integer == rhs.m_value.number_integer; + + case value_t::number_unsigned: + return lhs.m_value.number_unsigned == rhs.m_value.number_unsigned; + + case value_t::number_float: + return lhs.m_value.number_float == rhs.m_value.number_float; + + case value_t::binary: + return *lhs.m_value.binary == *rhs.m_value.binary; + + default: + return false; + } + } + else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float) + { + return static_cast(lhs.m_value.number_integer) == rhs.m_value.number_float; + } + else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer) + { + return lhs.m_value.number_float == static_cast(rhs.m_value.number_integer); + } + else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float) + { + return static_cast(lhs.m_value.number_unsigned) == rhs.m_value.number_float; + } + else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned) + { + return lhs.m_value.number_float == static_cast(rhs.m_value.number_unsigned); + } + else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer) + { + return static_cast(lhs.m_value.number_unsigned) == rhs.m_value.number_integer; + } + else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned) + { + return lhs.m_value.number_integer == static_cast(rhs.m_value.number_unsigned); + } + + return false; + } + + /*! + @brief comparison: equal + @copydoc operator==(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator==(const_reference lhs, const ScalarType rhs) noexcept + { + return lhs == basic_json(rhs); + } + + /*! + @brief comparison: equal + @copydoc operator==(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator==(const ScalarType lhs, const_reference rhs) noexcept + { + return basic_json(lhs) == rhs; + } + + /*! + @brief comparison: not equal + + Compares two JSON values for inequality by calculating `not (lhs == rhs)`. + + @param[in] lhs first JSON value to consider + @param[in] rhs second JSON value to consider + @return whether the values @a lhs and @a rhs are not equal + + @complexity Linear. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @liveexample{The example demonstrates comparing several JSON + types.,operator__notequal} + + @since version 1.0.0 + */ + friend bool operator!=(const_reference lhs, const_reference rhs) noexcept + { + return !(lhs == rhs); + } + + /*! + @brief comparison: not equal + @copydoc operator!=(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator!=(const_reference lhs, const ScalarType rhs) noexcept + { + return lhs != basic_json(rhs); + } + + /*! + @brief comparison: not equal + @copydoc operator!=(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator!=(const ScalarType lhs, const_reference rhs) noexcept + { + return basic_json(lhs) != rhs; + } + + /*! + @brief comparison: less than + + Compares whether one JSON value @a lhs is less than another JSON value @a + rhs according to the following rules: + - If @a lhs and @a rhs have the same type, the values are compared using + the default `<` operator. + - Integer and floating-point numbers are automatically converted before + comparison + - In case @a lhs and @a rhs have different types, the values are ignored + and the order of the types is considered, see + @ref operator<(const value_t, const value_t). + + @param[in] lhs first JSON value to consider + @param[in] rhs second JSON value to consider + @return whether @a lhs is less than @a rhs + + @complexity Linear. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @liveexample{The example demonstrates comparing several JSON + types.,operator__less} + + @since version 1.0.0 + */ + friend bool operator<(const_reference lhs, const_reference rhs) noexcept + { + const auto lhs_type = lhs.type(); + const auto rhs_type = rhs.type(); + + if (lhs_type == rhs_type) + { + switch (lhs_type) + { + case value_t::array: + // note parentheses are necessary, see + // https://github.com/nlohmann/json/issues/1530 + return (*lhs.m_value.array) < (*rhs.m_value.array); + + case value_t::object: + return (*lhs.m_value.object) < (*rhs.m_value.object); + + case value_t::null: + return false; + + case value_t::string: + return (*lhs.m_value.string) < (*rhs.m_value.string); + + case value_t::boolean: + return (lhs.m_value.boolean) < (rhs.m_value.boolean); + + case value_t::number_integer: + return (lhs.m_value.number_integer) < (rhs.m_value.number_integer); + + case value_t::number_unsigned: + return (lhs.m_value.number_unsigned) < (rhs.m_value.number_unsigned); + + case value_t::number_float: + return (lhs.m_value.number_float) < (rhs.m_value.number_float); + + case value_t::binary: + return (*lhs.m_value.binary) < (*rhs.m_value.binary); + + default: + return false; + } + } + else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_float) + { + return static_cast(lhs.m_value.number_integer) < rhs.m_value.number_float; + } + else if (lhs_type == value_t::number_float && rhs_type == value_t::number_integer) + { + return lhs.m_value.number_float < static_cast(rhs.m_value.number_integer); + } + else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_float) + { + return static_cast(lhs.m_value.number_unsigned) < rhs.m_value.number_float; + } + else if (lhs_type == value_t::number_float && rhs_type == value_t::number_unsigned) + { + return lhs.m_value.number_float < static_cast(rhs.m_value.number_unsigned); + } + else if (lhs_type == value_t::number_integer && rhs_type == value_t::number_unsigned) + { + return lhs.m_value.number_integer < static_cast(rhs.m_value.number_unsigned); + } + else if (lhs_type == value_t::number_unsigned && rhs_type == value_t::number_integer) + { + return static_cast(lhs.m_value.number_unsigned) < rhs.m_value.number_integer; + } + + // We only reach this line if we cannot compare values. In that case, + // we compare types. Note we have to call the operator explicitly, + // because MSVC has problems otherwise. + return operator<(lhs_type, rhs_type); + } + + /*! + @brief comparison: less than + @copydoc operator<(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator<(const_reference lhs, const ScalarType rhs) noexcept + { + return lhs < basic_json(rhs); + } + + /*! + @brief comparison: less than + @copydoc operator<(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator<(const ScalarType lhs, const_reference rhs) noexcept + { + return basic_json(lhs) < rhs; + } + + /*! + @brief comparison: less than or equal + + Compares whether one JSON value @a lhs is less than or equal to another + JSON value by calculating `not (rhs < lhs)`. + + @param[in] lhs first JSON value to consider + @param[in] rhs second JSON value to consider + @return whether @a lhs is less than or equal to @a rhs + + @complexity Linear. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @liveexample{The example demonstrates comparing several JSON + types.,operator__greater} + + @since version 1.0.0 + */ + friend bool operator<=(const_reference lhs, const_reference rhs) noexcept + { + return !(rhs < lhs); + } + + /*! + @brief comparison: less than or equal + @copydoc operator<=(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator<=(const_reference lhs, const ScalarType rhs) noexcept + { + return lhs <= basic_json(rhs); + } + + /*! + @brief comparison: less than or equal + @copydoc operator<=(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator<=(const ScalarType lhs, const_reference rhs) noexcept + { + return basic_json(lhs) <= rhs; + } + + /*! + @brief comparison: greater than + + Compares whether one JSON value @a lhs is greater than another + JSON value by calculating `not (lhs <= rhs)`. + + @param[in] lhs first JSON value to consider + @param[in] rhs second JSON value to consider + @return whether @a lhs is greater than to @a rhs + + @complexity Linear. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @liveexample{The example demonstrates comparing several JSON + types.,operator__lessequal} + + @since version 1.0.0 + */ + friend bool operator>(const_reference lhs, const_reference rhs) noexcept + { + return !(lhs <= rhs); + } + + /*! + @brief comparison: greater than + @copydoc operator>(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator>(const_reference lhs, const ScalarType rhs) noexcept + { + return lhs > basic_json(rhs); + } + + /*! + @brief comparison: greater than + @copydoc operator>(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator>(const ScalarType lhs, const_reference rhs) noexcept + { + return basic_json(lhs) > rhs; + } + + /*! + @brief comparison: greater than or equal + + Compares whether one JSON value @a lhs is greater than or equal to another + JSON value by calculating `not (lhs < rhs)`. + + @param[in] lhs first JSON value to consider + @param[in] rhs second JSON value to consider + @return whether @a lhs is greater than or equal to @a rhs + + @complexity Linear. + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @liveexample{The example demonstrates comparing several JSON + types.,operator__greaterequal} + + @since version 1.0.0 + */ + friend bool operator>=(const_reference lhs, const_reference rhs) noexcept + { + return !(lhs < rhs); + } + + /*! + @brief comparison: greater than or equal + @copydoc operator>=(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator>=(const_reference lhs, const ScalarType rhs) noexcept + { + return lhs >= basic_json(rhs); + } + + /*! + @brief comparison: greater than or equal + @copydoc operator>=(const_reference, const_reference) + */ + template::value, int>::type = 0> + friend bool operator>=(const ScalarType lhs, const_reference rhs) noexcept + { + return basic_json(lhs) >= rhs; + } + + /// @} + + /////////////////// + // serialization // + /////////////////// + + /// @name serialization + /// @{ + + /*! + @brief serialize to stream + + Serialize the given JSON value @a j to the output stream @a o. The JSON + value will be serialized using the @ref dump member function. + + - The indentation of the output can be controlled with the member variable + `width` of the output stream @a o. For instance, using the manipulator + `std::setw(4)` on @a o sets the indentation level to `4` and the + serialization result is the same as calling `dump(4)`. + + - The indentation character can be controlled with the member variable + `fill` of the output stream @a o. For instance, the manipulator + `std::setfill('\\t')` sets indentation to use a tab character rather than + the default space character. + + @param[in,out] o stream to serialize to + @param[in] j JSON value to serialize + + @return the stream @a o + + @throw type_error.316 if a string stored inside the JSON value is not + UTF-8 encoded + + @complexity Linear. + + @liveexample{The example below shows the serialization with different + parameters to `width` to adjust the indentation level.,operator_serialize} + + @since version 1.0.0; indentation character added in version 3.0.0 + */ + friend std::ostream& operator<<(std::ostream& o, const basic_json& j) + { + // read width member and use it as indentation parameter if nonzero + const bool pretty_print = o.width() > 0; + const auto indentation = pretty_print ? o.width() : 0; + + // reset width to 0 for subsequent calls to this stream + o.width(0); + + // do the actual serialization + serializer s(detail::output_adapter(o), o.fill()); + s.dump(j, pretty_print, false, static_cast(indentation)); + return o; + } + + /*! + @brief serialize to stream + @deprecated This stream operator is deprecated and will be removed in + future 4.0.0 of the library. Please use + @ref operator<<(std::ostream&, const basic_json&) + instead; that is, replace calls like `j >> o;` with `o << j;`. + @since version 1.0.0; deprecated since version 3.0.0 + */ + JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator<<(std::ostream&, const basic_json&)) + friend std::ostream& operator>>(const basic_json& j, std::ostream& o) + { + return o << j; + } + + /// @} + + + ///////////////////// + // deserialization // + ///////////////////// + + /// @name deserialization + /// @{ + + /*! + @brief deserialize from a compatible input + + @tparam InputType A compatible input, for instance + - an std::istream object + - a FILE pointer + - a C-style array of characters + - a pointer to a null-terminated string of single byte characters + - an object obj for which begin(obj) and end(obj) produces a valid pair of + iterators. + + @param[in] i input to read from + @param[in] cb a parser callback function of type @ref parser_callback_t + which is used to control the deserialization by filtering unwanted values + (optional) + @param[in] allow_exceptions whether to throw exceptions in case of a + parse error (optional, true by default) + @param[in] ignore_comments whether comments should be ignored and treated + like whitespace (true) or yield a parse error (true); (optional, false by + default) + + @return deserialized JSON value; in case of a parse error and + @a allow_exceptions set to `false`, the return value will be + value_t::discarded. + + @throw parse_error.101 if a parse error occurs; example: `""unexpected end + of input; expected string literal""` + @throw parse_error.102 if to_unicode fails or surrogate error + @throw parse_error.103 if to_unicode fails + + @complexity Linear in the length of the input. The parser is a predictive + LL(1) parser. The complexity can be higher if the parser callback function + @a cb or reading from the input @a i has a super-linear complexity. + + @note A UTF-8 byte order mark is silently ignored. + + @liveexample{The example below demonstrates the `parse()` function reading + from an array.,parse__array__parser_callback_t} + + @liveexample{The example below demonstrates the `parse()` function with + and without callback function.,parse__string__parser_callback_t} + + @liveexample{The example below demonstrates the `parse()` function with + and without callback function.,parse__istream__parser_callback_t} + + @liveexample{The example below demonstrates the `parse()` function reading + from a contiguous container.,parse__contiguouscontainer__parser_callback_t} + + @since version 2.0.3 (contiguous containers); version 3.9.0 allowed to + ignore comments. + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json parse(InputType&& i, + const parser_callback_t cb = nullptr, + const bool allow_exceptions = true, + const bool ignore_comments = false) + { + basic_json result; + parser(detail::input_adapter(std::forward(i)), cb, allow_exceptions, ignore_comments).parse(true, result); + return result; + } + + /*! + @brief deserialize from a pair of character iterators + + The value_type of the iterator must be a integral type with size of 1, 2 or + 4 bytes, which will be interpreted respectively as UTF-8, UTF-16 and UTF-32. + + @param[in] first iterator to start of character range + @param[in] last iterator to end of character range + @param[in] cb a parser callback function of type @ref parser_callback_t + which is used to control the deserialization by filtering unwanted values + (optional) + @param[in] allow_exceptions whether to throw exceptions in case of a + parse error (optional, true by default) + @param[in] ignore_comments whether comments should be ignored and treated + like whitespace (true) or yield a parse error (true); (optional, false by + default) + + @return deserialized JSON value; in case of a parse error and + @a allow_exceptions set to `false`, the return value will be + value_t::discarded. + + @throw parse_error.101 if a parse error occurs; example: `""unexpected end + of input; expected string literal""` + @throw parse_error.102 if to_unicode fails or surrogate error + @throw parse_error.103 if to_unicode fails + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json parse(IteratorType first, + IteratorType last, + const parser_callback_t cb = nullptr, + const bool allow_exceptions = true, + const bool ignore_comments = false) + { + basic_json result; + parser(detail::input_adapter(std::move(first), std::move(last)), cb, allow_exceptions, ignore_comments).parse(true, result); + return result; + } + + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, parse(ptr, ptr + len)) + static basic_json parse(detail::span_input_adapter&& i, + const parser_callback_t cb = nullptr, + const bool allow_exceptions = true, + const bool ignore_comments = false) + { + basic_json result; + parser(i.get(), cb, allow_exceptions, ignore_comments).parse(true, result); + return result; + } + + /*! + @brief check if the input is valid JSON + + Unlike the @ref parse(InputType&&, const parser_callback_t,const bool) + function, this function neither throws an exception in case of invalid JSON + input (i.e., a parse error) nor creates diagnostic information. + + @tparam InputType A compatible input, for instance + - an std::istream object + - a FILE pointer + - a C-style array of characters + - a pointer to a null-terminated string of single byte characters + - an object obj for which begin(obj) and end(obj) produces a valid pair of + iterators. + + @param[in] i input to read from + @param[in] ignore_comments whether comments should be ignored and treated + like whitespace (true) or yield a parse error (true); (optional, false by + default) + + @return Whether the input read from @a i is valid JSON. + + @complexity Linear in the length of the input. The parser is a predictive + LL(1) parser. + + @note A UTF-8 byte order mark is silently ignored. + + @liveexample{The example below demonstrates the `accept()` function reading + from a string.,accept__string} + */ + template + static bool accept(InputType&& i, + const bool ignore_comments = false) + { + return parser(detail::input_adapter(std::forward(i)), nullptr, false, ignore_comments).accept(true); + } + + template + static bool accept(IteratorType first, IteratorType last, + const bool ignore_comments = false) + { + return parser(detail::input_adapter(std::move(first), std::move(last)), nullptr, false, ignore_comments).accept(true); + } + + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, accept(ptr, ptr + len)) + static bool accept(detail::span_input_adapter&& i, + const bool ignore_comments = false) + { + return parser(i.get(), nullptr, false, ignore_comments).accept(true); + } + + /*! + @brief generate SAX events + + The SAX event lister must follow the interface of @ref json_sax. + + This function reads from a compatible input. Examples are: + - an std::istream object + - a FILE pointer + - a C-style array of characters + - a pointer to a null-terminated string of single byte characters + - an object obj for which begin(obj) and end(obj) produces a valid pair of + iterators. + + @param[in] i input to read from + @param[in,out] sax SAX event listener + @param[in] format the format to parse (JSON, CBOR, MessagePack, or UBJSON) + @param[in] strict whether the input has to be consumed completely + @param[in] ignore_comments whether comments should be ignored and treated + like whitespace (true) or yield a parse error (true); (optional, false by + default); only applies to the JSON file format. + + @return return value of the last processed SAX event + + @throw parse_error.101 if a parse error occurs; example: `""unexpected end + of input; expected string literal""` + @throw parse_error.102 if to_unicode fails or surrogate error + @throw parse_error.103 if to_unicode fails + + @complexity Linear in the length of the input. The parser is a predictive + LL(1) parser. The complexity can be higher if the SAX consumer @a sax has + a super-linear complexity. + + @note A UTF-8 byte order mark is silently ignored. + + @liveexample{The example below demonstrates the `sax_parse()` function + reading from string and processing the events with a user-defined SAX + event consumer.,sax_parse} + + @since version 3.2.0 + */ + template + JSON_HEDLEY_NON_NULL(2) + static bool sax_parse(InputType&& i, SAX* sax, + input_format_t format = input_format_t::json, + const bool strict = true, + const bool ignore_comments = false) + { + auto ia = detail::input_adapter(std::forward(i)); + return format == input_format_t::json + ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict) + : detail::binary_reader(std::move(ia)).sax_parse(format, sax, strict); + } + + template + JSON_HEDLEY_NON_NULL(3) + static bool sax_parse(IteratorType first, IteratorType last, SAX* sax, + input_format_t format = input_format_t::json, + const bool strict = true, + const bool ignore_comments = false) + { + auto ia = detail::input_adapter(std::move(first), std::move(last)); + return format == input_format_t::json + ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict) + : detail::binary_reader(std::move(ia)).sax_parse(format, sax, strict); + } + + template + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, sax_parse(ptr, ptr + len, ...)) + JSON_HEDLEY_NON_NULL(2) + static bool sax_parse(detail::span_input_adapter&& i, SAX* sax, + input_format_t format = input_format_t::json, + const bool strict = true, + const bool ignore_comments = false) + { + auto ia = i.get(); + return format == input_format_t::json + ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict) + : detail::binary_reader(std::move(ia)).sax_parse(format, sax, strict); + } + + /*! + @brief deserialize from stream + @deprecated This stream operator is deprecated and will be removed in + version 4.0.0 of the library. Please use + @ref operator>>(std::istream&, basic_json&) + instead; that is, replace calls like `j << i;` with `i >> j;`. + @since version 1.0.0; deprecated since version 3.0.0 + */ + JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator>>(std::istream&, basic_json&)) + friend std::istream& operator<<(basic_json& j, std::istream& i) + { + return operator>>(i, j); + } + + /*! + @brief deserialize from stream + + Deserializes an input stream to a JSON value. + + @param[in,out] i input stream to read a serialized JSON value from + @param[in,out] j JSON value to write the deserialized input to + + @throw parse_error.101 in case of an unexpected token + @throw parse_error.102 if to_unicode fails or surrogate error + @throw parse_error.103 if to_unicode fails + + @complexity Linear in the length of the input. The parser is a predictive + LL(1) parser. + + @note A UTF-8 byte order mark is silently ignored. + + @liveexample{The example below shows how a JSON value is constructed by + reading a serialization from a stream.,operator_deserialize} + + @sa parse(std::istream&, const parser_callback_t) for a variant with a + parser callback function to filter values while parsing + + @since version 1.0.0 + */ + friend std::istream& operator>>(std::istream& i, basic_json& j) + { + parser(detail::input_adapter(i)).parse(false, j); + return i; + } + + /// @} + + /////////////////////////// + // convenience functions // + /////////////////////////// + + /*! + @brief return the type as string + + Returns the type name as string to be used in error messages - usually to + indicate that a function was called on a wrong JSON type. + + @return a string representation of a the @a m_type member: + Value type | return value + ----------- | ------------- + null | `"null"` + boolean | `"boolean"` + string | `"string"` + number | `"number"` (for all number types) + object | `"object"` + array | `"array"` + binary | `"binary"` + discarded | `"discarded"` + + @exceptionsafety No-throw guarantee: this function never throws exceptions. + + @complexity Constant. + + @liveexample{The following code exemplifies `type_name()` for all JSON + types.,type_name} + + @sa @ref type() -- return the type of the JSON value + @sa @ref operator value_t() -- return the type of the JSON value (implicit) + + @since version 1.0.0, public since 2.1.0, `const char*` and `noexcept` + since 3.0.0 + */ + JSON_HEDLEY_RETURNS_NON_NULL + const char* type_name() const noexcept + { + { + switch (m_type) + { + case value_t::null: + return "null"; + case value_t::object: + return "object"; + case value_t::array: + return "array"; + case value_t::string: + return "string"; + case value_t::boolean: + return "boolean"; + case value_t::binary: + return "binary"; + case value_t::discarded: + return "discarded"; + default: + return "number"; + } + } + } + + + private: + ////////////////////// + // member variables // + ////////////////////// + + /// the type of the current element + value_t m_type = value_t::null; + + /// the value of the current element + json_value m_value = {}; + + ////////////////////////////////////////// + // binary serialization/deserialization // + ////////////////////////////////////////// + + /// @name binary serialization/deserialization support + /// @{ + + public: + /*! + @brief create a CBOR serialization of a given JSON value + + Serializes a given JSON value @a j to a byte vector using the CBOR (Concise + Binary Object Representation) serialization format. CBOR is a binary + serialization format which aims to be more compact than JSON itself, yet + more efficient to parse. + + The library uses the following mapping from JSON values types to + CBOR types according to the CBOR specification (RFC 7049): + + JSON value type | value/range | CBOR type | first byte + --------------- | ------------------------------------------ | ---------------------------------- | --------------- + null | `null` | Null | 0xF6 + boolean | `true` | True | 0xF5 + boolean | `false` | False | 0xF4 + number_integer | -9223372036854775808..-2147483649 | Negative integer (8 bytes follow) | 0x3B + number_integer | -2147483648..-32769 | Negative integer (4 bytes follow) | 0x3A + number_integer | -32768..-129 | Negative integer (2 bytes follow) | 0x39 + number_integer | -128..-25 | Negative integer (1 byte follow) | 0x38 + number_integer | -24..-1 | Negative integer | 0x20..0x37 + number_integer | 0..23 | Integer | 0x00..0x17 + number_integer | 24..255 | Unsigned integer (1 byte follow) | 0x18 + number_integer | 256..65535 | Unsigned integer (2 bytes follow) | 0x19 + number_integer | 65536..4294967295 | Unsigned integer (4 bytes follow) | 0x1A + number_integer | 4294967296..18446744073709551615 | Unsigned integer (8 bytes follow) | 0x1B + number_unsigned | 0..23 | Integer | 0x00..0x17 + number_unsigned | 24..255 | Unsigned integer (1 byte follow) | 0x18 + number_unsigned | 256..65535 | Unsigned integer (2 bytes follow) | 0x19 + number_unsigned | 65536..4294967295 | Unsigned integer (4 bytes follow) | 0x1A + number_unsigned | 4294967296..18446744073709551615 | Unsigned integer (8 bytes follow) | 0x1B + number_float | *any value representable by a float* | Single-Precision Float | 0xFA + number_float | *any value NOT representable by a float* | Double-Precision Float | 0xFB + string | *length*: 0..23 | UTF-8 string | 0x60..0x77 + string | *length*: 23..255 | UTF-8 string (1 byte follow) | 0x78 + string | *length*: 256..65535 | UTF-8 string (2 bytes follow) | 0x79 + string | *length*: 65536..4294967295 | UTF-8 string (4 bytes follow) | 0x7A + string | *length*: 4294967296..18446744073709551615 | UTF-8 string (8 bytes follow) | 0x7B + array | *size*: 0..23 | array | 0x80..0x97 + array | *size*: 23..255 | array (1 byte follow) | 0x98 + array | *size*: 256..65535 | array (2 bytes follow) | 0x99 + array | *size*: 65536..4294967295 | array (4 bytes follow) | 0x9A + array | *size*: 4294967296..18446744073709551615 | array (8 bytes follow) | 0x9B + object | *size*: 0..23 | map | 0xA0..0xB7 + object | *size*: 23..255 | map (1 byte follow) | 0xB8 + object | *size*: 256..65535 | map (2 bytes follow) | 0xB9 + object | *size*: 65536..4294967295 | map (4 bytes follow) | 0xBA + object | *size*: 4294967296..18446744073709551615 | map (8 bytes follow) | 0xBB + binary | *size*: 0..23 | byte string | 0x40..0x57 + binary | *size*: 23..255 | byte string (1 byte follow) | 0x58 + binary | *size*: 256..65535 | byte string (2 bytes follow) | 0x59 + binary | *size*: 65536..4294967295 | byte string (4 bytes follow) | 0x5A + binary | *size*: 4294967296..18446744073709551615 | byte string (8 bytes follow) | 0x5B + + @note The mapping is **complete** in the sense that any JSON value type + can be converted to a CBOR value. + + @note If NaN or Infinity are stored inside a JSON number, they are + serialized properly. This behavior differs from the @ref dump() + function which serializes NaN or Infinity to `null`. + + @note The following CBOR types are not used in the conversion: + - UTF-8 strings terminated by "break" (0x7F) + - arrays terminated by "break" (0x9F) + - maps terminated by "break" (0xBF) + - byte strings terminated by "break" (0x5F) + - date/time (0xC0..0xC1) + - bignum (0xC2..0xC3) + - decimal fraction (0xC4) + - bigfloat (0xC5) + - expected conversions (0xD5..0xD7) + - simple values (0xE0..0xF3, 0xF8) + - undefined (0xF7) + - half-precision floats (0xF9) + - break (0xFF) + + @param[in] j JSON value to serialize + @return CBOR serialization as byte vector + + @complexity Linear in the size of the JSON value @a j. + + @liveexample{The example shows the serialization of a JSON value to a byte + vector in CBOR format.,to_cbor} + + @sa http://cbor.io + @sa @ref from_cbor(detail::input_adapter&&, const bool, const bool, const cbor_tag_handler_t) for the + analogous deserialization + @sa @ref to_msgpack(const basic_json&) for the related MessagePack format + @sa @ref to_ubjson(const basic_json&, const bool, const bool) for the + related UBJSON format + + @since version 2.0.9; compact representation of floating-point numbers + since version 3.8.0 + */ + static std::vector to_cbor(const basic_json& j) + { + std::vector result; + to_cbor(j, result); + return result; + } + + static void to_cbor(const basic_json& j, detail::output_adapter o) + { + binary_writer(o).write_cbor(j); + } + + static void to_cbor(const basic_json& j, detail::output_adapter o) + { + binary_writer(o).write_cbor(j); + } + + /*! + @brief create a MessagePack serialization of a given JSON value + + Serializes a given JSON value @a j to a byte vector using the MessagePack + serialization format. MessagePack is a binary serialization format which + aims to be more compact than JSON itself, yet more efficient to parse. + + The library uses the following mapping from JSON values types to + MessagePack types according to the MessagePack specification: + + JSON value type | value/range | MessagePack type | first byte + --------------- | --------------------------------- | ---------------- | ---------- + null | `null` | nil | 0xC0 + boolean | `true` | true | 0xC3 + boolean | `false` | false | 0xC2 + number_integer | -9223372036854775808..-2147483649 | int64 | 0xD3 + number_integer | -2147483648..-32769 | int32 | 0xD2 + number_integer | -32768..-129 | int16 | 0xD1 + number_integer | -128..-33 | int8 | 0xD0 + number_integer | -32..-1 | negative fixint | 0xE0..0xFF + number_integer | 0..127 | positive fixint | 0x00..0x7F + number_integer | 128..255 | uint 8 | 0xCC + number_integer | 256..65535 | uint 16 | 0xCD + number_integer | 65536..4294967295 | uint 32 | 0xCE + number_integer | 4294967296..18446744073709551615 | uint 64 | 0xCF + number_unsigned | 0..127 | positive fixint | 0x00..0x7F + number_unsigned | 128..255 | uint 8 | 0xCC + number_unsigned | 256..65535 | uint 16 | 0xCD + number_unsigned | 65536..4294967295 | uint 32 | 0xCE + number_unsigned | 4294967296..18446744073709551615 | uint 64 | 0xCF + number_float | *any value representable by a float* | float 32 | 0xCA + number_float | *any value NOT representable by a float* | float 64 | 0xCB + string | *length*: 0..31 | fixstr | 0xA0..0xBF + string | *length*: 32..255 | str 8 | 0xD9 + string | *length*: 256..65535 | str 16 | 0xDA + string | *length*: 65536..4294967295 | str 32 | 0xDB + array | *size*: 0..15 | fixarray | 0x90..0x9F + array | *size*: 16..65535 | array 16 | 0xDC + array | *size*: 65536..4294967295 | array 32 | 0xDD + object | *size*: 0..15 | fix map | 0x80..0x8F + object | *size*: 16..65535 | map 16 | 0xDE + object | *size*: 65536..4294967295 | map 32 | 0xDF + binary | *size*: 0..255 | bin 8 | 0xC4 + binary | *size*: 256..65535 | bin 16 | 0xC5 + binary | *size*: 65536..4294967295 | bin 32 | 0xC6 + + @note The mapping is **complete** in the sense that any JSON value type + can be converted to a MessagePack value. + + @note The following values can **not** be converted to a MessagePack value: + - strings with more than 4294967295 bytes + - byte strings with more than 4294967295 bytes + - arrays with more than 4294967295 elements + - objects with more than 4294967295 elements + + @note Any MessagePack output created @ref to_msgpack can be successfully + parsed by @ref from_msgpack. + + @note If NaN or Infinity are stored inside a JSON number, they are + serialized properly. This behavior differs from the @ref dump() + function which serializes NaN or Infinity to `null`. + + @param[in] j JSON value to serialize + @return MessagePack serialization as byte vector + + @complexity Linear in the size of the JSON value @a j. + + @liveexample{The example shows the serialization of a JSON value to a byte + vector in MessagePack format.,to_msgpack} + + @sa http://msgpack.org + @sa @ref from_msgpack for the analogous deserialization + @sa @ref to_cbor(const basic_json& for the related CBOR format + @sa @ref to_ubjson(const basic_json&, const bool, const bool) for the + related UBJSON format + + @since version 2.0.9 + */ + static std::vector to_msgpack(const basic_json& j) + { + std::vector result; + to_msgpack(j, result); + return result; + } + + static void to_msgpack(const basic_json& j, detail::output_adapter o) + { + binary_writer(o).write_msgpack(j); + } + + static void to_msgpack(const basic_json& j, detail::output_adapter o) + { + binary_writer(o).write_msgpack(j); + } + + /*! + @brief create a UBJSON serialization of a given JSON value + + Serializes a given JSON value @a j to a byte vector using the UBJSON + (Universal Binary JSON) serialization format. UBJSON aims to be more compact + than JSON itself, yet more efficient to parse. + + The library uses the following mapping from JSON values types to + UBJSON types according to the UBJSON specification: + + JSON value type | value/range | UBJSON type | marker + --------------- | --------------------------------- | ----------- | ------ + null | `null` | null | `Z` + boolean | `true` | true | `T` + boolean | `false` | false | `F` + number_integer | -9223372036854775808..-2147483649 | int64 | `L` + number_integer | -2147483648..-32769 | int32 | `l` + number_integer | -32768..-129 | int16 | `I` + number_integer | -128..127 | int8 | `i` + number_integer | 128..255 | uint8 | `U` + number_integer | 256..32767 | int16 | `I` + number_integer | 32768..2147483647 | int32 | `l` + number_integer | 2147483648..9223372036854775807 | int64 | `L` + number_unsigned | 0..127 | int8 | `i` + number_unsigned | 128..255 | uint8 | `U` + number_unsigned | 256..32767 | int16 | `I` + number_unsigned | 32768..2147483647 | int32 | `l` + number_unsigned | 2147483648..9223372036854775807 | int64 | `L` + number_unsigned | 2147483649..18446744073709551615 | high-precision | `H` + number_float | *any value* | float64 | `D` + string | *with shortest length indicator* | string | `S` + array | *see notes on optimized format* | array | `[` + object | *see notes on optimized format* | map | `{` + + @note The mapping is **complete** in the sense that any JSON value type + can be converted to a UBJSON value. + + @note The following values can **not** be converted to a UBJSON value: + - strings with more than 9223372036854775807 bytes (theoretical) + + @note The following markers are not used in the conversion: + - `Z`: no-op values are not created. + - `C`: single-byte strings are serialized with `S` markers. + + @note Any UBJSON output created @ref to_ubjson can be successfully parsed + by @ref from_ubjson. + + @note If NaN or Infinity are stored inside a JSON number, they are + serialized properly. This behavior differs from the @ref dump() + function which serializes NaN or Infinity to `null`. + + @note The optimized formats for containers are supported: Parameter + @a use_size adds size information to the beginning of a container and + removes the closing marker. Parameter @a use_type further checks + whether all elements of a container have the same type and adds the + type marker to the beginning of the container. The @a use_type + parameter must only be used together with @a use_size = true. Note + that @a use_size = true alone may result in larger representations - + the benefit of this parameter is that the receiving side is + immediately informed on the number of elements of the container. + + @note If the JSON data contains the binary type, the value stored is a list + of integers, as suggested by the UBJSON documentation. In particular, + this means that serialization and the deserialization of a JSON + containing binary values into UBJSON and back will result in a + different JSON object. + + @param[in] j JSON value to serialize + @param[in] use_size whether to add size annotations to container types + @param[in] use_type whether to add type annotations to container types + (must be combined with @a use_size = true) + @return UBJSON serialization as byte vector + + @complexity Linear in the size of the JSON value @a j. + + @liveexample{The example shows the serialization of a JSON value to a byte + vector in UBJSON format.,to_ubjson} + + @sa http://ubjson.org + @sa @ref from_ubjson(detail::input_adapter&&, const bool, const bool) for the + analogous deserialization + @sa @ref to_cbor(const basic_json& for the related CBOR format + @sa @ref to_msgpack(const basic_json&) for the related MessagePack format + + @since version 3.1.0 + */ + static std::vector to_ubjson(const basic_json& j, + const bool use_size = false, + const bool use_type = false) + { + std::vector result; + to_ubjson(j, result, use_size, use_type); + return result; + } + + static void to_ubjson(const basic_json& j, detail::output_adapter o, + const bool use_size = false, const bool use_type = false) + { + binary_writer(o).write_ubjson(j, use_size, use_type); + } + + static void to_ubjson(const basic_json& j, detail::output_adapter o, + const bool use_size = false, const bool use_type = false) + { + binary_writer(o).write_ubjson(j, use_size, use_type); + } + + + /*! + @brief Serializes the given JSON object `j` to BSON and returns a vector + containing the corresponding BSON-representation. + + BSON (Binary JSON) is a binary format in which zero or more ordered key/value pairs are + stored as a single entity (a so-called document). + + The library uses the following mapping from JSON values types to BSON types: + + JSON value type | value/range | BSON type | marker + --------------- | --------------------------------- | ----------- | ------ + null | `null` | null | 0x0A + boolean | `true`, `false` | boolean | 0x08 + number_integer | -9223372036854775808..-2147483649 | int64 | 0x12 + number_integer | -2147483648..2147483647 | int32 | 0x10 + number_integer | 2147483648..9223372036854775807 | int64 | 0x12 + number_unsigned | 0..2147483647 | int32 | 0x10 + number_unsigned | 2147483648..9223372036854775807 | int64 | 0x12 + number_unsigned | 9223372036854775808..18446744073709551615| -- | -- + number_float | *any value* | double | 0x01 + string | *any value* | string | 0x02 + array | *any value* | document | 0x04 + object | *any value* | document | 0x03 + binary | *any value* | binary | 0x05 + + @warning The mapping is **incomplete**, since only JSON-objects (and things + contained therein) can be serialized to BSON. + Also, integers larger than 9223372036854775807 cannot be serialized to BSON, + and the keys may not contain U+0000, since they are serialized a + zero-terminated c-strings. + + @throw out_of_range.407 if `j.is_number_unsigned() && j.get() > 9223372036854775807` + @throw out_of_range.409 if a key in `j` contains a NULL (U+0000) + @throw type_error.317 if `!j.is_object()` + + @pre The input `j` is required to be an object: `j.is_object() == true`. + + @note Any BSON output created via @ref to_bson can be successfully parsed + by @ref from_bson. + + @param[in] j JSON value to serialize + @return BSON serialization as byte vector + + @complexity Linear in the size of the JSON value @a j. + + @liveexample{The example shows the serialization of a JSON value to a byte + vector in BSON format.,to_bson} + + @sa http://bsonspec.org/spec.html + @sa @ref from_bson(detail::input_adapter&&, const bool strict) for the + analogous deserialization + @sa @ref to_ubjson(const basic_json&, const bool, const bool) for the + related UBJSON format + @sa @ref to_cbor(const basic_json&) for the related CBOR format + @sa @ref to_msgpack(const basic_json&) for the related MessagePack format + */ + static std::vector to_bson(const basic_json& j) + { + std::vector result; + to_bson(j, result); + return result; + } + + /*! + @brief Serializes the given JSON object `j` to BSON and forwards the + corresponding BSON-representation to the given output_adapter `o`. + @param j The JSON object to convert to BSON. + @param o The output adapter that receives the binary BSON representation. + @pre The input `j` shall be an object: `j.is_object() == true` + @sa @ref to_bson(const basic_json&) + */ + static void to_bson(const basic_json& j, detail::output_adapter o) + { + binary_writer(o).write_bson(j); + } + + /*! + @copydoc to_bson(const basic_json&, detail::output_adapter) + */ + static void to_bson(const basic_json& j, detail::output_adapter o) + { + binary_writer(o).write_bson(j); + } + + + /*! + @brief create a JSON value from an input in CBOR format + + Deserializes a given input @a i to a JSON value using the CBOR (Concise + Binary Object Representation) serialization format. + + The library maps CBOR types to JSON value types as follows: + + CBOR type | JSON value type | first byte + ---------------------- | --------------- | ---------- + Integer | number_unsigned | 0x00..0x17 + Unsigned integer | number_unsigned | 0x18 + Unsigned integer | number_unsigned | 0x19 + Unsigned integer | number_unsigned | 0x1A + Unsigned integer | number_unsigned | 0x1B + Negative integer | number_integer | 0x20..0x37 + Negative integer | number_integer | 0x38 + Negative integer | number_integer | 0x39 + Negative integer | number_integer | 0x3A + Negative integer | number_integer | 0x3B + Byte string | binary | 0x40..0x57 + Byte string | binary | 0x58 + Byte string | binary | 0x59 + Byte string | binary | 0x5A + Byte string | binary | 0x5B + UTF-8 string | string | 0x60..0x77 + UTF-8 string | string | 0x78 + UTF-8 string | string | 0x79 + UTF-8 string | string | 0x7A + UTF-8 string | string | 0x7B + UTF-8 string | string | 0x7F + array | array | 0x80..0x97 + array | array | 0x98 + array | array | 0x99 + array | array | 0x9A + array | array | 0x9B + array | array | 0x9F + map | object | 0xA0..0xB7 + map | object | 0xB8 + map | object | 0xB9 + map | object | 0xBA + map | object | 0xBB + map | object | 0xBF + False | `false` | 0xF4 + True | `true` | 0xF5 + Null | `null` | 0xF6 + Half-Precision Float | number_float | 0xF9 + Single-Precision Float | number_float | 0xFA + Double-Precision Float | number_float | 0xFB + + @warning The mapping is **incomplete** in the sense that not all CBOR + types can be converted to a JSON value. The following CBOR types + are not supported and will yield parse errors (parse_error.112): + - date/time (0xC0..0xC1) + - bignum (0xC2..0xC3) + - decimal fraction (0xC4) + - bigfloat (0xC5) + - expected conversions (0xD5..0xD7) + - simple values (0xE0..0xF3, 0xF8) + - undefined (0xF7) + + @warning CBOR allows map keys of any type, whereas JSON only allows + strings as keys in object values. Therefore, CBOR maps with keys + other than UTF-8 strings are rejected (parse_error.113). + + @note Any CBOR output created @ref to_cbor can be successfully parsed by + @ref from_cbor. + + @param[in] i an input in CBOR format convertible to an input adapter + @param[in] strict whether to expect the input to be consumed until EOF + (true by default) + @param[in] allow_exceptions whether to throw exceptions in case of a + parse error (optional, true by default) + @param[in] tag_handler how to treat CBOR tags (optional, error by default) + + @return deserialized JSON value; in case of a parse error and + @a allow_exceptions set to `false`, the return value will be + value_t::discarded. + + @throw parse_error.110 if the given input ends prematurely or the end of + file was not reached when @a strict was set to true + @throw parse_error.112 if unsupported features from CBOR were + used in the given input @a v or if the input is not valid CBOR + @throw parse_error.113 if a string was expected as map key, but not found + + @complexity Linear in the size of the input @a i. + + @liveexample{The example shows the deserialization of a byte vector in CBOR + format to a JSON value.,from_cbor} + + @sa http://cbor.io + @sa @ref to_cbor(const basic_json&) for the analogous serialization + @sa @ref from_msgpack(detail::input_adapter&&, const bool, const bool) for the + related MessagePack format + @sa @ref from_ubjson(detail::input_adapter&&, const bool, const bool) for the + related UBJSON format + + @since version 2.0.9; parameter @a start_index since 2.1.1; changed to + consume input adapters, removed start_index parameter, and added + @a strict parameter since 3.0.0; added @a allow_exceptions parameter + since 3.2.0; added @a tag_handler parameter since 3.9.0. + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json from_cbor(InputType&& i, + const bool strict = true, + const bool allow_exceptions = true, + const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = detail::input_adapter(std::forward(i)); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler); + return res ? result : basic_json(value_t::discarded); + } + + /*! + @copydoc from_cbor(detail::input_adapter&&, const bool, const bool, const cbor_tag_handler_t) + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json from_cbor(IteratorType first, IteratorType last, + const bool strict = true, + const bool allow_exceptions = true, + const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = detail::input_adapter(std::move(first), std::move(last)); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler); + return res ? result : basic_json(value_t::discarded); + } + + template + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len)) + static basic_json from_cbor(const T* ptr, std::size_t len, + const bool strict = true, + const bool allow_exceptions = true, + const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error) + { + return from_cbor(ptr, ptr + len, strict, allow_exceptions, tag_handler); + } + + + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_cbor(ptr, ptr + len)) + static basic_json from_cbor(detail::span_input_adapter&& i, + const bool strict = true, + const bool allow_exceptions = true, + const cbor_tag_handler_t tag_handler = cbor_tag_handler_t::error) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = i.get(); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::cbor, &sdp, strict, tag_handler); + return res ? result : basic_json(value_t::discarded); + } + + /*! + @brief create a JSON value from an input in MessagePack format + + Deserializes a given input @a i to a JSON value using the MessagePack + serialization format. + + The library maps MessagePack types to JSON value types as follows: + + MessagePack type | JSON value type | first byte + ---------------- | --------------- | ---------- + positive fixint | number_unsigned | 0x00..0x7F + fixmap | object | 0x80..0x8F + fixarray | array | 0x90..0x9F + fixstr | string | 0xA0..0xBF + nil | `null` | 0xC0 + false | `false` | 0xC2 + true | `true` | 0xC3 + float 32 | number_float | 0xCA + float 64 | number_float | 0xCB + uint 8 | number_unsigned | 0xCC + uint 16 | number_unsigned | 0xCD + uint 32 | number_unsigned | 0xCE + uint 64 | number_unsigned | 0xCF + int 8 | number_integer | 0xD0 + int 16 | number_integer | 0xD1 + int 32 | number_integer | 0xD2 + int 64 | number_integer | 0xD3 + str 8 | string | 0xD9 + str 16 | string | 0xDA + str 32 | string | 0xDB + array 16 | array | 0xDC + array 32 | array | 0xDD + map 16 | object | 0xDE + map 32 | object | 0xDF + bin 8 | binary | 0xC4 + bin 16 | binary | 0xC5 + bin 32 | binary | 0xC6 + ext 8 | binary | 0xC7 + ext 16 | binary | 0xC8 + ext 32 | binary | 0xC9 + fixext 1 | binary | 0xD4 + fixext 2 | binary | 0xD5 + fixext 4 | binary | 0xD6 + fixext 8 | binary | 0xD7 + fixext 16 | binary | 0xD8 + negative fixint | number_integer | 0xE0-0xFF + + @note Any MessagePack output created @ref to_msgpack can be successfully + parsed by @ref from_msgpack. + + @param[in] i an input in MessagePack format convertible to an input + adapter + @param[in] strict whether to expect the input to be consumed until EOF + (true by default) + @param[in] allow_exceptions whether to throw exceptions in case of a + parse error (optional, true by default) + + @return deserialized JSON value; in case of a parse error and + @a allow_exceptions set to `false`, the return value will be + value_t::discarded. + + @throw parse_error.110 if the given input ends prematurely or the end of + file was not reached when @a strict was set to true + @throw parse_error.112 if unsupported features from MessagePack were + used in the given input @a i or if the input is not valid MessagePack + @throw parse_error.113 if a string was expected as map key, but not found + + @complexity Linear in the size of the input @a i. + + @liveexample{The example shows the deserialization of a byte vector in + MessagePack format to a JSON value.,from_msgpack} + + @sa http://msgpack.org + @sa @ref to_msgpack(const basic_json&) for the analogous serialization + @sa @ref from_cbor(detail::input_adapter&&, const bool, const bool, const cbor_tag_handler_t) for the + related CBOR format + @sa @ref from_ubjson(detail::input_adapter&&, const bool, const bool) for + the related UBJSON format + @sa @ref from_bson(detail::input_adapter&&, const bool, const bool) for + the related BSON format + + @since version 2.0.9; parameter @a start_index since 2.1.1; changed to + consume input adapters, removed start_index parameter, and added + @a strict parameter since 3.0.0; added @a allow_exceptions parameter + since 3.2.0 + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json from_msgpack(InputType&& i, + const bool strict = true, + const bool allow_exceptions = true) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = detail::input_adapter(std::forward(i)); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict); + return res ? result : basic_json(value_t::discarded); + } + + /*! + @copydoc from_msgpack(detail::input_adapter&&, const bool, const bool) + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json from_msgpack(IteratorType first, IteratorType last, + const bool strict = true, + const bool allow_exceptions = true) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = detail::input_adapter(std::move(first), std::move(last)); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict); + return res ? result : basic_json(value_t::discarded); + } + + + template + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len)) + static basic_json from_msgpack(const T* ptr, std::size_t len, + const bool strict = true, + const bool allow_exceptions = true) + { + return from_msgpack(ptr, ptr + len, strict, allow_exceptions); + } + + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_msgpack(ptr, ptr + len)) + static basic_json from_msgpack(detail::span_input_adapter&& i, + const bool strict = true, + const bool allow_exceptions = true) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = i.get(); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::msgpack, &sdp, strict); + return res ? result : basic_json(value_t::discarded); + } + + + /*! + @brief create a JSON value from an input in UBJSON format + + Deserializes a given input @a i to a JSON value using the UBJSON (Universal + Binary JSON) serialization format. + + The library maps UBJSON types to JSON value types as follows: + + UBJSON type | JSON value type | marker + ----------- | --------------------------------------- | ------ + no-op | *no value, next value is read* | `N` + null | `null` | `Z` + false | `false` | `F` + true | `true` | `T` + float32 | number_float | `d` + float64 | number_float | `D` + uint8 | number_unsigned | `U` + int8 | number_integer | `i` + int16 | number_integer | `I` + int32 | number_integer | `l` + int64 | number_integer | `L` + high-precision number | number_integer, number_unsigned, or number_float - depends on number string | 'H' + string | string | `S` + char | string | `C` + array | array (optimized values are supported) | `[` + object | object (optimized values are supported) | `{` + + @note The mapping is **complete** in the sense that any UBJSON value can + be converted to a JSON value. + + @param[in] i an input in UBJSON format convertible to an input adapter + @param[in] strict whether to expect the input to be consumed until EOF + (true by default) + @param[in] allow_exceptions whether to throw exceptions in case of a + parse error (optional, true by default) + + @return deserialized JSON value; in case of a parse error and + @a allow_exceptions set to `false`, the return value will be + value_t::discarded. + + @throw parse_error.110 if the given input ends prematurely or the end of + file was not reached when @a strict was set to true + @throw parse_error.112 if a parse error occurs + @throw parse_error.113 if a string could not be parsed successfully + + @complexity Linear in the size of the input @a i. + + @liveexample{The example shows the deserialization of a byte vector in + UBJSON format to a JSON value.,from_ubjson} + + @sa http://ubjson.org + @sa @ref to_ubjson(const basic_json&, const bool, const bool) for the + analogous serialization + @sa @ref from_cbor(detail::input_adapter&&, const bool, const bool, const cbor_tag_handler_t) for the + related CBOR format + @sa @ref from_msgpack(detail::input_adapter&&, const bool, const bool) for + the related MessagePack format + @sa @ref from_bson(detail::input_adapter&&, const bool, const bool) for + the related BSON format + + @since version 3.1.0; added @a allow_exceptions parameter since 3.2.0 + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json from_ubjson(InputType&& i, + const bool strict = true, + const bool allow_exceptions = true) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = detail::input_adapter(std::forward(i)); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict); + return res ? result : basic_json(value_t::discarded); + } + + /*! + @copydoc from_ubjson(detail::input_adapter&&, const bool, const bool) + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json from_ubjson(IteratorType first, IteratorType last, + const bool strict = true, + const bool allow_exceptions = true) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = detail::input_adapter(std::move(first), std::move(last)); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict); + return res ? result : basic_json(value_t::discarded); + } + + template + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len)) + static basic_json from_ubjson(const T* ptr, std::size_t len, + const bool strict = true, + const bool allow_exceptions = true) + { + return from_ubjson(ptr, ptr + len, strict, allow_exceptions); + } + + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_ubjson(ptr, ptr + len)) + static basic_json from_ubjson(detail::span_input_adapter&& i, + const bool strict = true, + const bool allow_exceptions = true) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = i.get(); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict); + return res ? result : basic_json(value_t::discarded); + } + + + /*! + @brief Create a JSON value from an input in BSON format + + Deserializes a given input @a i to a JSON value using the BSON (Binary JSON) + serialization format. + + The library maps BSON record types to JSON value types as follows: + + BSON type | BSON marker byte | JSON value type + --------------- | ---------------- | --------------------------- + double | 0x01 | number_float + string | 0x02 | string + document | 0x03 | object + array | 0x04 | array + binary | 0x05 | still unsupported + undefined | 0x06 | still unsupported + ObjectId | 0x07 | still unsupported + boolean | 0x08 | boolean + UTC Date-Time | 0x09 | still unsupported + null | 0x0A | null + Regular Expr. | 0x0B | still unsupported + DB Pointer | 0x0C | still unsupported + JavaScript Code | 0x0D | still unsupported + Symbol | 0x0E | still unsupported + JavaScript Code | 0x0F | still unsupported + int32 | 0x10 | number_integer + Timestamp | 0x11 | still unsupported + 128-bit decimal float | 0x13 | still unsupported + Max Key | 0x7F | still unsupported + Min Key | 0xFF | still unsupported + + @warning The mapping is **incomplete**. The unsupported mappings + are indicated in the table above. + + @param[in] i an input in BSON format convertible to an input adapter + @param[in] strict whether to expect the input to be consumed until EOF + (true by default) + @param[in] allow_exceptions whether to throw exceptions in case of a + parse error (optional, true by default) + + @return deserialized JSON value; in case of a parse error and + @a allow_exceptions set to `false`, the return value will be + value_t::discarded. + + @throw parse_error.114 if an unsupported BSON record type is encountered + + @complexity Linear in the size of the input @a i. + + @liveexample{The example shows the deserialization of a byte vector in + BSON format to a JSON value.,from_bson} + + @sa http://bsonspec.org/spec.html + @sa @ref to_bson(const basic_json&) for the analogous serialization + @sa @ref from_cbor(detail::input_adapter&&, const bool, const bool, const cbor_tag_handler_t) for the + related CBOR format + @sa @ref from_msgpack(detail::input_adapter&&, const bool, const bool) for + the related MessagePack format + @sa @ref from_ubjson(detail::input_adapter&&, const bool, const bool) for the + related UBJSON format + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json from_bson(InputType&& i, + const bool strict = true, + const bool allow_exceptions = true) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = detail::input_adapter(std::forward(i)); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict); + return res ? result : basic_json(value_t::discarded); + } + + /*! + @copydoc from_bson(detail::input_adapter&&, const bool, const bool) + */ + template + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json from_bson(IteratorType first, IteratorType last, + const bool strict = true, + const bool allow_exceptions = true) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = detail::input_adapter(std::move(first), std::move(last)); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict); + return res ? result : basic_json(value_t::discarded); + } + + template + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len)) + static basic_json from_bson(const T* ptr, std::size_t len, + const bool strict = true, + const bool allow_exceptions = true) + { + return from_bson(ptr, ptr + len, strict, allow_exceptions); + } + + JSON_HEDLEY_WARN_UNUSED_RESULT + JSON_HEDLEY_DEPRECATED_FOR(3.8.0, from_bson(ptr, ptr + len)) + static basic_json from_bson(detail::span_input_adapter&& i, + const bool strict = true, + const bool allow_exceptions = true) + { + basic_json result; + detail::json_sax_dom_parser sdp(result, allow_exceptions); + auto ia = i.get(); + const bool res = binary_reader(std::move(ia)).sax_parse(input_format_t::bson, &sdp, strict); + return res ? result : basic_json(value_t::discarded); + } + /// @} + + ////////////////////////// + // JSON Pointer support // + ////////////////////////// + + /// @name JSON Pointer functions + /// @{ + + /*! + @brief access specified element via JSON Pointer + + Uses a JSON pointer to retrieve a reference to the respective JSON value. + No bound checking is performed. Similar to @ref operator[](const typename + object_t::key_type&), `null` values are created in arrays and objects if + necessary. + + In particular: + - If the JSON pointer points to an object key that does not exist, it + is created an filled with a `null` value before a reference to it + is returned. + - If the JSON pointer points to an array index that does not exist, it + is created an filled with a `null` value before a reference to it + is returned. All indices between the current maximum and the given + index are also filled with `null`. + - The special value `-` is treated as a synonym for the index past the + end. + + @param[in] ptr a JSON pointer + + @return reference to the element pointed to by @a ptr + + @complexity Constant. + + @throw parse_error.106 if an array index begins with '0' + @throw parse_error.109 if an array index was not a number + @throw out_of_range.404 if the JSON pointer can not be resolved + + @liveexample{The behavior is shown in the example.,operatorjson_pointer} + + @since version 2.0.0 + */ + reference operator[](const json_pointer& ptr) + { + return ptr.get_unchecked(this); + } + + /*! + @brief access specified element via JSON Pointer + + Uses a JSON pointer to retrieve a reference to the respective JSON value. + No bound checking is performed. The function does not change the JSON + value; no `null` values are created. In particular, the special value + `-` yields an exception. + + @param[in] ptr JSON pointer to the desired element + + @return const reference to the element pointed to by @a ptr + + @complexity Constant. + + @throw parse_error.106 if an array index begins with '0' + @throw parse_error.109 if an array index was not a number + @throw out_of_range.402 if the array index '-' is used + @throw out_of_range.404 if the JSON pointer can not be resolved + + @liveexample{The behavior is shown in the example.,operatorjson_pointer_const} + + @since version 2.0.0 + */ + const_reference operator[](const json_pointer& ptr) const + { + return ptr.get_unchecked(this); + } + + /*! + @brief access specified element via JSON Pointer + + Returns a reference to the element at with specified JSON pointer @a ptr, + with bounds checking. + + @param[in] ptr JSON pointer to the desired element + + @return reference to the element pointed to by @a ptr + + @throw parse_error.106 if an array index in the passed JSON pointer @a ptr + begins with '0'. See example below. + + @throw parse_error.109 if an array index in the passed JSON pointer @a ptr + is not a number. See example below. + + @throw out_of_range.401 if an array index in the passed JSON pointer @a ptr + is out of range. See example below. + + @throw out_of_range.402 if the array index '-' is used in the passed JSON + pointer @a ptr. As `at` provides checked access (and no elements are + implicitly inserted), the index '-' is always invalid. See example below. + + @throw out_of_range.403 if the JSON pointer describes a key of an object + which cannot be found. See example below. + + @throw out_of_range.404 if the JSON pointer @a ptr can not be resolved. + See example below. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes in the JSON value. + + @complexity Constant. + + @since version 2.0.0 + + @liveexample{The behavior is shown in the example.,at_json_pointer} + */ + reference at(const json_pointer& ptr) + { + return ptr.get_checked(this); + } + + /*! + @brief access specified element via JSON Pointer + + Returns a const reference to the element at with specified JSON pointer @a + ptr, with bounds checking. + + @param[in] ptr JSON pointer to the desired element + + @return reference to the element pointed to by @a ptr + + @throw parse_error.106 if an array index in the passed JSON pointer @a ptr + begins with '0'. See example below. + + @throw parse_error.109 if an array index in the passed JSON pointer @a ptr + is not a number. See example below. + + @throw out_of_range.401 if an array index in the passed JSON pointer @a ptr + is out of range. See example below. + + @throw out_of_range.402 if the array index '-' is used in the passed JSON + pointer @a ptr. As `at` provides checked access (and no elements are + implicitly inserted), the index '-' is always invalid. See example below. + + @throw out_of_range.403 if the JSON pointer describes a key of an object + which cannot be found. See example below. + + @throw out_of_range.404 if the JSON pointer @a ptr can not be resolved. + See example below. + + @exceptionsafety Strong guarantee: if an exception is thrown, there are no + changes in the JSON value. + + @complexity Constant. + + @since version 2.0.0 + + @liveexample{The behavior is shown in the example.,at_json_pointer_const} + */ + const_reference at(const json_pointer& ptr) const + { + return ptr.get_checked(this); + } + + /*! + @brief return flattened JSON value + + The function creates a JSON object whose keys are JSON pointers (see [RFC + 6901](https://tools.ietf.org/html/rfc6901)) and whose values are all + primitive. The original JSON value can be restored using the @ref + unflatten() function. + + @return an object that maps JSON pointers to primitive values + + @note Empty objects and arrays are flattened to `null` and will not be + reconstructed correctly by the @ref unflatten() function. + + @complexity Linear in the size the JSON value. + + @liveexample{The following code shows how a JSON object is flattened to an + object whose keys consist of JSON pointers.,flatten} + + @sa @ref unflatten() for the reverse function + + @since version 2.0.0 + */ + basic_json flatten() const + { + basic_json result(value_t::object); + json_pointer::flatten("", *this, result); + return result; + } + + /*! + @brief unflatten a previously flattened JSON value + + The function restores the arbitrary nesting of a JSON value that has been + flattened before using the @ref flatten() function. The JSON value must + meet certain constraints: + 1. The value must be an object. + 2. The keys must be JSON pointers (see + [RFC 6901](https://tools.ietf.org/html/rfc6901)) + 3. The mapped values must be primitive JSON types. + + @return the original JSON from a flattened version + + @note Empty objects and arrays are flattened by @ref flatten() to `null` + values and can not unflattened to their original type. Apart from + this example, for a JSON value `j`, the following is always true: + `j == j.flatten().unflatten()`. + + @complexity Linear in the size the JSON value. + + @throw type_error.314 if value is not an object + @throw type_error.315 if object values are not primitive + + @liveexample{The following code shows how a flattened JSON object is + unflattened into the original nested JSON object.,unflatten} + + @sa @ref flatten() for the reverse function + + @since version 2.0.0 + */ + basic_json unflatten() const + { + return json_pointer::unflatten(*this); + } + + /// @} + + ////////////////////////// + // JSON Patch functions // + ////////////////////////// + + /// @name JSON Patch functions + /// @{ + + /*! + @brief applies a JSON patch + + [JSON Patch](http://jsonpatch.com) defines a JSON document structure for + expressing a sequence of operations to apply to a JSON) document. With + this function, a JSON Patch is applied to the current JSON value by + executing all operations from the patch. + + @param[in] json_patch JSON patch document + @return patched document + + @note The application of a patch is atomic: Either all operations succeed + and the patched document is returned or an exception is thrown. In + any case, the original value is not changed: the patch is applied + to a copy of the value. + + @throw parse_error.104 if the JSON patch does not consist of an array of + objects + + @throw parse_error.105 if the JSON patch is malformed (e.g., mandatory + attributes are missing); example: `"operation add must have member path"` + + @throw out_of_range.401 if an array index is out of range. + + @throw out_of_range.403 if a JSON pointer inside the patch could not be + resolved successfully in the current JSON value; example: `"key baz not + found"` + + @throw out_of_range.405 if JSON pointer has no parent ("add", "remove", + "move") + + @throw other_error.501 if "test" operation was unsuccessful + + @complexity Linear in the size of the JSON value and the length of the + JSON patch. As usually only a fraction of the JSON value is affected by + the patch, the complexity can usually be neglected. + + @liveexample{The following code shows how a JSON patch is applied to a + value.,patch} + + @sa @ref diff -- create a JSON patch by comparing two JSON values + + @sa [RFC 6902 (JSON Patch)](https://tools.ietf.org/html/rfc6902) + @sa [RFC 6901 (JSON Pointer)](https://tools.ietf.org/html/rfc6901) + + @since version 2.0.0 + */ + basic_json patch(const basic_json& json_patch) const + { + // make a working copy to apply the patch to + basic_json result = *this; + + // the valid JSON Patch operations + enum class patch_operations {add, remove, replace, move, copy, test, invalid}; + + const auto get_op = [](const std::string & op) + { + if (op == "add") + { + return patch_operations::add; + } + if (op == "remove") + { + return patch_operations::remove; + } + if (op == "replace") + { + return patch_operations::replace; + } + if (op == "move") + { + return patch_operations::move; + } + if (op == "copy") + { + return patch_operations::copy; + } + if (op == "test") + { + return patch_operations::test; + } + + return patch_operations::invalid; + }; + + // wrapper for "add" operation; add value at ptr + const auto operation_add = [&result](json_pointer & ptr, basic_json val) + { + // adding to the root of the target document means replacing it + if (ptr.empty()) + { + result = val; + return; + } + + // make sure the top element of the pointer exists + json_pointer top_pointer = ptr.top(); + if (top_pointer != ptr) + { + result.at(top_pointer); + } + + // get reference to parent of JSON pointer ptr + const auto last_path = ptr.back(); + ptr.pop_back(); + basic_json& parent = result[ptr]; + + switch (parent.m_type) + { + case value_t::null: + case value_t::object: + { + // use operator[] to add value + parent[last_path] = val; + break; + } + + case value_t::array: + { + if (last_path == "-") + { + // special case: append to back + parent.push_back(val); + } + else + { + const auto idx = json_pointer::array_index(last_path); + if (JSON_HEDLEY_UNLIKELY(idx > parent.size())) + { + // avoid undefined behavior + JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range")); + } + + // default case: insert add offset + parent.insert(parent.begin() + static_cast(idx), val); + } + break; + } + + // if there exists a parent it cannot be primitive + default: // LCOV_EXCL_LINE + JSON_ASSERT(false); // LCOV_EXCL_LINE + } + }; + + // wrapper for "remove" operation; remove value at ptr + const auto operation_remove = [&result](json_pointer & ptr) + { + // get reference to parent of JSON pointer ptr + const auto last_path = ptr.back(); + ptr.pop_back(); + basic_json& parent = result.at(ptr); + + // remove child + if (parent.is_object()) + { + // perform range check + auto it = parent.find(last_path); + if (JSON_HEDLEY_LIKELY(it != parent.end())) + { + parent.erase(it); + } + else + { + JSON_THROW(out_of_range::create(403, "key '" + last_path + "' not found")); + } + } + else if (parent.is_array()) + { + // note erase performs range check + parent.erase(json_pointer::array_index(last_path)); + } + }; + + // type check: top level value must be an array + if (JSON_HEDLEY_UNLIKELY(!json_patch.is_array())) + { + JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects")); + } + + // iterate and apply the operations + for (const auto& val : json_patch) + { + // wrapper to get a value for an operation + const auto get_value = [&val](const std::string & op, + const std::string & member, + bool string_type) -> basic_json & + { + // find value + auto it = val.m_value.object->find(member); + + // context-sensitive error message + const auto error_msg = (op == "op") ? "operation" : "operation '" + op + "'"; + + // check if desired value is present + if (JSON_HEDLEY_UNLIKELY(it == val.m_value.object->end())) + { + JSON_THROW(parse_error::create(105, 0, error_msg + " must have member '" + member + "'")); + } + + // check if result is of type string + if (JSON_HEDLEY_UNLIKELY(string_type && !it->second.is_string())) + { + JSON_THROW(parse_error::create(105, 0, error_msg + " must have string member '" + member + "'")); + } + + // no error: return value + return it->second; + }; + + // type check: every element of the array must be an object + if (JSON_HEDLEY_UNLIKELY(!val.is_object())) + { + JSON_THROW(parse_error::create(104, 0, "JSON patch must be an array of objects")); + } + + // collect mandatory members + const auto op = get_value("op", "op", true).template get(); + const auto path = get_value(op, "path", true).template get(); + json_pointer ptr(path); + + switch (get_op(op)) + { + case patch_operations::add: + { + operation_add(ptr, get_value("add", "value", false)); + break; + } + + case patch_operations::remove: + { + operation_remove(ptr); + break; + } + + case patch_operations::replace: + { + // the "path" location must exist - use at() + result.at(ptr) = get_value("replace", "value", false); + break; + } + + case patch_operations::move: + { + const auto from_path = get_value("move", "from", true).template get(); + json_pointer from_ptr(from_path); + + // the "from" location must exist - use at() + basic_json v = result.at(from_ptr); + + // The move operation is functionally identical to a + // "remove" operation on the "from" location, followed + // immediately by an "add" operation at the target + // location with the value that was just removed. + operation_remove(from_ptr); + operation_add(ptr, v); + break; + } + + case patch_operations::copy: + { + const auto from_path = get_value("copy", "from", true).template get(); + const json_pointer from_ptr(from_path); + + // the "from" location must exist - use at() + basic_json v = result.at(from_ptr); + + // The copy is functionally identical to an "add" + // operation at the target location using the value + // specified in the "from" member. + operation_add(ptr, v); + break; + } + + case patch_operations::test: + { + bool success = false; + JSON_TRY + { + // check if "value" matches the one at "path" + // the "path" location must exist - use at() + success = (result.at(ptr) == get_value("test", "value", false)); + } + JSON_INTERNAL_CATCH (out_of_range&) + { + // ignore out of range errors: success remains false + } + + // throw an exception if test fails + if (JSON_HEDLEY_UNLIKELY(!success)) + { + JSON_THROW(other_error::create(501, "unsuccessful: " + val.dump())); + } + + break; + } + + default: + { + // op must be "add", "remove", "replace", "move", "copy", or + // "test" + JSON_THROW(parse_error::create(105, 0, "operation value '" + op + "' is invalid")); + } + } + } + + return result; + } + + /*! + @brief creates a diff as a JSON patch + + Creates a [JSON Patch](http://jsonpatch.com) so that value @a source can + be changed into the value @a target by calling @ref patch function. + + @invariant For two JSON values @a source and @a target, the following code + yields always `true`: + @code {.cpp} + source.patch(diff(source, target)) == target; + @endcode + + @note Currently, only `remove`, `add`, and `replace` operations are + generated. + + @param[in] source JSON value to compare from + @param[in] target JSON value to compare against + @param[in] path helper value to create JSON pointers + + @return a JSON patch to convert the @a source to @a target + + @complexity Linear in the lengths of @a source and @a target. + + @liveexample{The following code shows how a JSON patch is created as a + diff for two JSON values.,diff} + + @sa @ref patch -- apply a JSON patch + @sa @ref merge_patch -- apply a JSON Merge Patch + + @sa [RFC 6902 (JSON Patch)](https://tools.ietf.org/html/rfc6902) + + @since version 2.0.0 + */ + JSON_HEDLEY_WARN_UNUSED_RESULT + static basic_json diff(const basic_json& source, const basic_json& target, + const std::string& path = "") + { + // the patch + basic_json result(value_t::array); + + // if the values are the same, return empty patch + if (source == target) + { + return result; + } + + if (source.type() != target.type()) + { + // different types: replace value + result.push_back( + { + {"op", "replace"}, {"path", path}, {"value", target} + }); + return result; + } + + switch (source.type()) + { + case value_t::array: + { + // first pass: traverse common elements + std::size_t i = 0; + while (i < source.size() && i < target.size()) + { + // recursive call to compare array values at index i + auto temp_diff = diff(source[i], target[i], path + "/" + std::to_string(i)); + result.insert(result.end(), temp_diff.begin(), temp_diff.end()); + ++i; + } + + // i now reached the end of at least one array + // in a second pass, traverse the remaining elements + + // remove my remaining elements + const auto end_index = static_cast(result.size()); + while (i < source.size()) + { + // add operations in reverse order to avoid invalid + // indices + result.insert(result.begin() + end_index, object( + { + {"op", "remove"}, + {"path", path + "/" + std::to_string(i)} + })); + ++i; + } + + // add other remaining elements + while (i < target.size()) + { + result.push_back( + { + {"op", "add"}, + {"path", path + "/-"}, + {"value", target[i]} + }); + ++i; + } + + break; + } + + case value_t::object: + { + // first pass: traverse this object's elements + for (auto it = source.cbegin(); it != source.cend(); ++it) + { + // escape the key name to be used in a JSON patch + const auto key = json_pointer::escape(it.key()); + + if (target.find(it.key()) != target.end()) + { + // recursive call to compare object values at key it + auto temp_diff = diff(it.value(), target[it.key()], path + "/" + key); + result.insert(result.end(), temp_diff.begin(), temp_diff.end()); + } + else + { + // found a key that is not in o -> remove it + result.push_back(object( + { + {"op", "remove"}, {"path", path + "/" + key} + })); + } + } + + // second pass: traverse other object's elements + for (auto it = target.cbegin(); it != target.cend(); ++it) + { + if (source.find(it.key()) == source.end()) + { + // found a key that is not in this -> add it + const auto key = json_pointer::escape(it.key()); + result.push_back( + { + {"op", "add"}, {"path", path + "/" + key}, + {"value", it.value()} + }); + } + } + + break; + } + + default: + { + // both primitive type: replace value + result.push_back( + { + {"op", "replace"}, {"path", path}, {"value", target} + }); + break; + } + } + + return result; + } + + /// @} + + //////////////////////////////// + // JSON Merge Patch functions // + //////////////////////////////// + + /// @name JSON Merge Patch functions + /// @{ + + /*! + @brief applies a JSON Merge Patch + + The merge patch format is primarily intended for use with the HTTP PATCH + method as a means of describing a set of modifications to a target + resource's content. This function applies a merge patch to the current + JSON value. + + The function implements the following algorithm from Section 2 of + [RFC 7396 (JSON Merge Patch)](https://tools.ietf.org/html/rfc7396): + + ``` + define MergePatch(Target, Patch): + if Patch is an Object: + if Target is not an Object: + Target = {} // Ignore the contents and set it to an empty Object + for each Name/Value pair in Patch: + if Value is null: + if Name exists in Target: + remove the Name/Value pair from Target + else: + Target[Name] = MergePatch(Target[Name], Value) + return Target + else: + return Patch + ``` + + Thereby, `Target` is the current object; that is, the patch is applied to + the current value. + + @param[in] apply_patch the patch to apply + + @complexity Linear in the lengths of @a patch. + + @liveexample{The following code shows how a JSON Merge Patch is applied to + a JSON document.,merge_patch} + + @sa @ref patch -- apply a JSON patch + @sa [RFC 7396 (JSON Merge Patch)](https://tools.ietf.org/html/rfc7396) + + @since version 3.0.0 + */ + void merge_patch(const basic_json& apply_patch) + { + if (apply_patch.is_object()) + { + if (!is_object()) + { + *this = object(); + } + for (auto it = apply_patch.begin(); it != apply_patch.end(); ++it) + { + if (it.value().is_null()) + { + erase(it.key()); + } + else + { + operator[](it.key()).merge_patch(it.value()); + } + } + } + else + { + *this = apply_patch; + } + } + + /// @} +}; + +/*! +@brief user-defined to_string function for JSON values + +This function implements a user-defined to_string for JSON objects. + +@param[in] j a JSON object +@return a std::string object +*/ + +NLOHMANN_BASIC_JSON_TPL_DECLARATION +std::string to_string(const NLOHMANN_BASIC_JSON_TPL& j) +{ + return j.dump(); +} +} // namespace nlohmann + +/////////////////////// +// nonmember support // +/////////////////////// + +// specialization of std::swap, and std::hash +namespace std +{ + +/// hash value for JSON objects +template<> +struct hash +{ + /*! + @brief return a hash value for a JSON object + + @since version 1.0.0 + */ + std::size_t operator()(const nlohmann::json& j) const + { + return nlohmann::detail::hash(j); + } +}; + +/// specialization for std::less +/// @note: do not remove the space after '<', +/// see https://github.com/nlohmann/json/pull/679 +template<> +struct less<::nlohmann::detail::value_t> +{ + /*! + @brief compare two value_t enum values + @since version 3.0.0 + */ + bool operator()(nlohmann::detail::value_t lhs, + nlohmann::detail::value_t rhs) const noexcept + { + return nlohmann::detail::operator<(lhs, rhs); + } +}; + +// C++20 prohibit function specialization in the std namespace. +#ifndef JSON_HAS_CPP_20 + +/*! +@brief exchanges the values of two JSON objects + +@since version 1.0.0 +*/ +template<> +inline void swap(nlohmann::json& j1, nlohmann::json& j2) noexcept( + is_nothrow_move_constructible::value&& + is_nothrow_move_assignable::value + ) +{ + j1.swap(j2); +} + +#endif + +} // namespace std + +/*! +@brief user-defined string literal for JSON values + +This operator implements a user-defined string literal for JSON objects. It +can be used by adding `"_json"` to a string literal and returns a JSON object +if no parse error occurred. + +@param[in] s a string representation of a JSON object +@param[in] n the length of string @a s +@return a JSON object + +@since version 1.0.0 +*/ +JSON_HEDLEY_NON_NULL(1) +inline nlohmann::json operator "" _json(const char* s, std::size_t n) +{ + return nlohmann::json::parse(s, s + n); +} + +/*! +@brief user-defined string literal for JSON pointer + +This operator implements a user-defined string literal for JSON Pointers. It +can be used by adding `"_json_pointer"` to a string literal and returns a JSON pointer +object if no parse error occurred. + +@param[in] s a string representation of a JSON Pointer +@param[in] n the length of string @a s +@return a JSON pointer object + +@since version 2.0.0 +*/ +JSON_HEDLEY_NON_NULL(1) +inline nlohmann::json::json_pointer operator "" _json_pointer(const char* s, std::size_t n) +{ + return nlohmann::json::json_pointer(std::string(s, n)); +} + +// #include + + +// restore GCC/clang diagnostic settings +#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__) + #pragma GCC diagnostic pop +#endif +#if defined(__clang__) + #pragma GCC diagnostic pop +#endif + +// clean up +#undef JSON_ASSERT +#undef JSON_INTERNAL_CATCH +#undef JSON_CATCH +#undef JSON_THROW +#undef JSON_TRY +#undef JSON_HAS_CPP_14 +#undef JSON_HAS_CPP_17 +#undef NLOHMANN_BASIC_JSON_TPL_DECLARATION +#undef NLOHMANN_BASIC_JSON_TPL +#undef JSON_EXPLICIT + +// #include +#undef JSON_HEDLEY_ALWAYS_INLINE +#undef JSON_HEDLEY_ARM_VERSION +#undef JSON_HEDLEY_ARM_VERSION_CHECK +#undef JSON_HEDLEY_ARRAY_PARAM +#undef JSON_HEDLEY_ASSUME +#undef JSON_HEDLEY_BEGIN_C_DECLS +#undef JSON_HEDLEY_CLANG_HAS_ATTRIBUTE +#undef JSON_HEDLEY_CLANG_HAS_BUILTIN +#undef JSON_HEDLEY_CLANG_HAS_CPP_ATTRIBUTE +#undef JSON_HEDLEY_CLANG_HAS_DECLSPEC_DECLSPEC_ATTRIBUTE +#undef JSON_HEDLEY_CLANG_HAS_EXTENSION +#undef JSON_HEDLEY_CLANG_HAS_FEATURE +#undef JSON_HEDLEY_CLANG_HAS_WARNING +#undef JSON_HEDLEY_COMPCERT_VERSION +#undef JSON_HEDLEY_COMPCERT_VERSION_CHECK +#undef JSON_HEDLEY_CONCAT +#undef JSON_HEDLEY_CONCAT3 +#undef JSON_HEDLEY_CONCAT3_EX +#undef JSON_HEDLEY_CONCAT_EX +#undef JSON_HEDLEY_CONST +#undef JSON_HEDLEY_CONSTEXPR +#undef JSON_HEDLEY_CONST_CAST +#undef JSON_HEDLEY_CPP_CAST +#undef JSON_HEDLEY_CRAY_VERSION +#undef JSON_HEDLEY_CRAY_VERSION_CHECK +#undef JSON_HEDLEY_C_DECL +#undef JSON_HEDLEY_DEPRECATED +#undef JSON_HEDLEY_DEPRECATED_FOR +#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CAST_QUAL +#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_CPP98_COMPAT_WRAP_ +#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_DEPRECATED +#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_CPP_ATTRIBUTES +#undef JSON_HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS +#undef JSON_HEDLEY_DIAGNOSTIC_POP +#undef JSON_HEDLEY_DIAGNOSTIC_PUSH +#undef JSON_HEDLEY_DMC_VERSION +#undef JSON_HEDLEY_DMC_VERSION_CHECK +#undef JSON_HEDLEY_EMPTY_BASES +#undef JSON_HEDLEY_EMSCRIPTEN_VERSION +#undef JSON_HEDLEY_EMSCRIPTEN_VERSION_CHECK +#undef JSON_HEDLEY_END_C_DECLS +#undef JSON_HEDLEY_FLAGS +#undef JSON_HEDLEY_FLAGS_CAST +#undef JSON_HEDLEY_GCC_HAS_ATTRIBUTE +#undef JSON_HEDLEY_GCC_HAS_BUILTIN +#undef JSON_HEDLEY_GCC_HAS_CPP_ATTRIBUTE +#undef JSON_HEDLEY_GCC_HAS_DECLSPEC_ATTRIBUTE +#undef JSON_HEDLEY_GCC_HAS_EXTENSION +#undef JSON_HEDLEY_GCC_HAS_FEATURE +#undef JSON_HEDLEY_GCC_HAS_WARNING +#undef JSON_HEDLEY_GCC_NOT_CLANG_VERSION_CHECK +#undef JSON_HEDLEY_GCC_VERSION +#undef JSON_HEDLEY_GCC_VERSION_CHECK +#undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTE +#undef JSON_HEDLEY_GNUC_HAS_BUILTIN +#undef JSON_HEDLEY_GNUC_HAS_CPP_ATTRIBUTE +#undef JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE +#undef JSON_HEDLEY_GNUC_HAS_EXTENSION +#undef JSON_HEDLEY_GNUC_HAS_FEATURE +#undef JSON_HEDLEY_GNUC_HAS_WARNING +#undef JSON_HEDLEY_GNUC_VERSION +#undef JSON_HEDLEY_GNUC_VERSION_CHECK +#undef JSON_HEDLEY_HAS_ATTRIBUTE +#undef JSON_HEDLEY_HAS_BUILTIN +#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE +#undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE_NS +#undef JSON_HEDLEY_HAS_DECLSPEC_ATTRIBUTE +#undef JSON_HEDLEY_HAS_EXTENSION +#undef JSON_HEDLEY_HAS_FEATURE +#undef JSON_HEDLEY_HAS_WARNING +#undef JSON_HEDLEY_IAR_VERSION +#undef JSON_HEDLEY_IAR_VERSION_CHECK +#undef JSON_HEDLEY_IBM_VERSION +#undef JSON_HEDLEY_IBM_VERSION_CHECK +#undef JSON_HEDLEY_IMPORT +#undef JSON_HEDLEY_INLINE +#undef JSON_HEDLEY_INTEL_VERSION +#undef JSON_HEDLEY_INTEL_VERSION_CHECK +#undef JSON_HEDLEY_IS_CONSTANT +#undef JSON_HEDLEY_IS_CONSTEXPR_ +#undef JSON_HEDLEY_LIKELY +#undef JSON_HEDLEY_MALLOC +#undef JSON_HEDLEY_MESSAGE +#undef JSON_HEDLEY_MSVC_VERSION +#undef JSON_HEDLEY_MSVC_VERSION_CHECK +#undef JSON_HEDLEY_NEVER_INLINE +#undef JSON_HEDLEY_NON_NULL +#undef JSON_HEDLEY_NO_ESCAPE +#undef JSON_HEDLEY_NO_RETURN +#undef JSON_HEDLEY_NO_THROW +#undef JSON_HEDLEY_NULL +#undef JSON_HEDLEY_PELLES_VERSION +#undef JSON_HEDLEY_PELLES_VERSION_CHECK +#undef JSON_HEDLEY_PGI_VERSION +#undef JSON_HEDLEY_PGI_VERSION_CHECK +#undef JSON_HEDLEY_PREDICT +#undef JSON_HEDLEY_PRINTF_FORMAT +#undef JSON_HEDLEY_PRIVATE +#undef JSON_HEDLEY_PUBLIC +#undef JSON_HEDLEY_PURE +#undef JSON_HEDLEY_REINTERPRET_CAST +#undef JSON_HEDLEY_REQUIRE +#undef JSON_HEDLEY_REQUIRE_CONSTEXPR +#undef JSON_HEDLEY_REQUIRE_MSG +#undef JSON_HEDLEY_RESTRICT +#undef JSON_HEDLEY_RETURNS_NON_NULL +#undef JSON_HEDLEY_SENTINEL +#undef JSON_HEDLEY_STATIC_ASSERT +#undef JSON_HEDLEY_STATIC_CAST +#undef JSON_HEDLEY_STRINGIFY +#undef JSON_HEDLEY_STRINGIFY_EX +#undef JSON_HEDLEY_SUNPRO_VERSION +#undef JSON_HEDLEY_SUNPRO_VERSION_CHECK +#undef JSON_HEDLEY_TINYC_VERSION +#undef JSON_HEDLEY_TINYC_VERSION_CHECK +#undef JSON_HEDLEY_TI_ARMCL_VERSION +#undef JSON_HEDLEY_TI_ARMCL_VERSION_CHECK +#undef JSON_HEDLEY_TI_CL2000_VERSION +#undef JSON_HEDLEY_TI_CL2000_VERSION_CHECK +#undef JSON_HEDLEY_TI_CL430_VERSION +#undef JSON_HEDLEY_TI_CL430_VERSION_CHECK +#undef JSON_HEDLEY_TI_CL6X_VERSION +#undef JSON_HEDLEY_TI_CL6X_VERSION_CHECK +#undef JSON_HEDLEY_TI_CL7X_VERSION +#undef JSON_HEDLEY_TI_CL7X_VERSION_CHECK +#undef JSON_HEDLEY_TI_CLPRU_VERSION +#undef JSON_HEDLEY_TI_CLPRU_VERSION_CHECK +#undef JSON_HEDLEY_TI_VERSION +#undef JSON_HEDLEY_TI_VERSION_CHECK +#undef JSON_HEDLEY_UNAVAILABLE +#undef JSON_HEDLEY_UNLIKELY +#undef JSON_HEDLEY_UNPREDICTABLE +#undef JSON_HEDLEY_UNREACHABLE +#undef JSON_HEDLEY_UNREACHABLE_RETURN +#undef JSON_HEDLEY_VERSION +#undef JSON_HEDLEY_VERSION_DECODE_MAJOR +#undef JSON_HEDLEY_VERSION_DECODE_MINOR +#undef JSON_HEDLEY_VERSION_DECODE_REVISION +#undef JSON_HEDLEY_VERSION_ENCODE +#undef JSON_HEDLEY_WARNING +#undef JSON_HEDLEY_WARN_UNUSED_RESULT +#undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG +#undef JSON_HEDLEY_FALL_THROUGH + + + +#endif // INCLUDE_NLOHMANN_JSON_HPP_ \ No newline at end of file diff --git a/CheatMenu/external/kiero/kiero.cpp b/CheatMenu/external/kiero/kiero.cpp new file mode 100644 index 0000000..ed6a654 --- /dev/null +++ b/CheatMenu/external/kiero/kiero.cpp @@ -0,0 +1,661 @@ +/* Slightly modified version of https://github.com/Rebzzel/kiero + +MIT License + +Copyright(c) 2014 - 2020 Rebzzel + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files(the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +#include "kiero.h" +#include +#include +#include "Renderware.h" + +#if KIERO_INCLUDE_D3D9 +# include +#endif + +#if KIERO_INCLUDE_D3D10 +# include +# include +# include +#endif + +#if KIERO_INCLUDE_D3D11 +# include +# include +#endif + +#if KIERO_INCLUDE_D3D12 +# include +# include +#endif + +#if KIERO_INCLUDE_OPENGL +# include +#endif + +#if KIERO_INCLUDE_VULKAN +# include +#endif + +#if KIERO_USE_MINHOOK +#include "minhook/include/MinHook.h" +#endif + +#ifdef _UNICODE +# define KIERO_TEXT(text) L##text +#else +# define KIERO_TEXT(text) text +#endif + +#define KIERO_ARRAY_SIZE(arr) ((size_t)(sizeof(arr)/sizeof(arr[0]))) + +static kiero::RenderType::Enum g_renderType = kiero::RenderType::None; +static uint150_t* g_methodsTable = NULL; + +kiero::Status::Enum kiero::init(RenderType::Enum _renderType) +{ + if (g_renderType != RenderType::None) + { + return Status::AlreadyInitializedError; + } + + if (_renderType != RenderType::None) + { + if (_renderType >= RenderType::D3D9 && _renderType <= RenderType::D3D12) + { + if (_renderType == RenderType::D3D9) + { +#if KIERO_INCLUDE_D3D9 + + if (GetModuleHandle(KIERO_TEXT("d3d9.dll")) == NULL) + { + return Status::ModuleNotFoundError; + } + g_methodsTable = (uint150_t*)::calloc(119, sizeof(uint150_t)); + ::memcpy(g_methodsTable, *(uint150_t**)GetD3DDevice(), 119 * sizeof(uint150_t)); + +#if KIERO_USE_MINHOOK + MH_Initialize(); +#endif + g_renderType = RenderType::D3D9; + + return Status::Success; +#endif + } + else if (_renderType == RenderType::D3D10) + { +#if KIERO_INCLUDE_D3D10 + HMODULE libDXGI; + HMODULE libD3D10; + if ((libDXGI = ::GetModuleHandle(KIERO_TEXT("dxgi.dll"))) == NULL || (libD3D10 = ::GetModuleHandle(KIERO_TEXT("d3d10.dll"))) == NULL) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::ModuleNotFoundError; + } + + void* CreateDXGIFactory; + if ((CreateDXGIFactory = ::GetProcAddress(libDXGI, "CreateDXGIFactory")) == NULL) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + IDXGIFactory* factory; + if (((long(__stdcall*)(const IID&, void**))(CreateDXGIFactory))(__uuidof(IDXGIFactory), (void**)&factory) < 0) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + IDXGIAdapter* adapter; + if (factory->EnumAdapters(0, &adapter) == DXGI_ERROR_NOT_FOUND) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + void* D3D10CreateDeviceAndSwapChain; + if ((D3D10CreateDeviceAndSwapChain = ::GetProcAddress(libD3D10, "D3D10CreateDeviceAndSwapChain")) == NULL) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + DXGI_RATIONAL refreshRate; + refreshRate.Numerator = 60; + refreshRate.Denominator = 1; + + DXGI_MODE_DESC bufferDesc; + bufferDesc.Width = 100; + bufferDesc.Height = 100; + bufferDesc.RefreshRate = refreshRate; + bufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + bufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED; + bufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED; + + DXGI_SAMPLE_DESC sampleDesc; + sampleDesc.Count = 1; + sampleDesc.Quality = 0; + + DXGI_SWAP_CHAIN_DESC swapChainDesc; + swapChainDesc.BufferDesc = bufferDesc; + swapChainDesc.SampleDesc = sampleDesc; + swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + swapChainDesc.BufferCount = 1; + swapChainDesc.OutputWindow = window; + swapChainDesc.Windowed = 1; + swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + swapChainDesc.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH; + + IDXGISwapChain* swapChain; + ID3D10Device* device; + + if (((long(__stdcall*)( + IDXGIAdapter*, + D3D10_DRIVER_TYPE, + HMODULE, + UINT, + UINT, + DXGI_SWAP_CHAIN_DESC*, + IDXGISwapChain**, + ID3D10Device**))(D3D10CreateDeviceAndSwapChain))(adapter, D3D10_DRIVER_TYPE_HARDWARE, NULL, 0, D3D10_SDK_VERSION, &swapChainDesc, &swapChain, &device) < 0) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + g_methodsTable = (uint150_t*)::calloc(116, sizeof(uint150_t)); + ::memcpy(g_methodsTable, *(uint150_t**)swapChain, 18 * sizeof(uint150_t)); + ::memcpy(g_methodsTable + 18, *(uint150_t**)device, 98 * sizeof(uint150_t)); + +#if KIERO_USE_MINHOOK + MH_Initialize(); +#endif + + swapChain->Release(); + swapChain = NULL; + + device->Release(); + device = NULL; + + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + + g_renderType = RenderType::D3D10; + + return Status::Success; +#endif + } + else if (_renderType == RenderType::D3D11) + { +#if KIERO_INCLUDE_D3D11 + HMODULE libD3D11; + if ((libD3D11 = ::GetModuleHandle(KIERO_TEXT("d3d11.dll"))) == NULL) + { + return Status::ModuleNotFoundError; + } + + void* D3D11CreateDeviceAndSwapChain; + if ((D3D11CreateDeviceAndSwapChain = ::GetProcAddress(libD3D11, "D3D11CreateDeviceAndSwapChain")) == NULL) + { + return Status::UnknownError; + } + + D3D_FEATURE_LEVEL featureLevel; + const D3D_FEATURE_LEVEL featureLevels[] = { D3D_FEATURE_LEVEL_10_1, D3D_FEATURE_LEVEL_11_0 }; + + DXGI_RATIONAL refreshRate; + refreshRate.Numerator = 60; + refreshRate.Denominator = 1; + + DXGI_MODE_DESC bufferDesc; + bufferDesc.Width = 100; + bufferDesc.Height = 100; + bufferDesc.RefreshRate = refreshRate; + bufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + bufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED; + bufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED; + + DXGI_SAMPLE_DESC sampleDesc; + sampleDesc.Count = 1; + sampleDesc.Quality = 0; + + DXGI_SWAP_CHAIN_DESC swapChainDesc; + swapChainDesc.BufferDesc = bufferDesc; + swapChainDesc.SampleDesc = sampleDesc; + swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + swapChainDesc.BufferCount = 1; + swapChainDesc.OutputWindow = RsGlobal.ps->window; + swapChainDesc.Windowed = 1; + swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + swapChainDesc.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH; + + IDXGISwapChain* swapChain; + ID3D11Device* device; + ID3D11DeviceContext* context; + + if (((long(__stdcall*)( + IDXGIAdapter*, + D3D_DRIVER_TYPE, + HMODULE, + UINT, + const D3D_FEATURE_LEVEL*, + UINT, + UINT, + const DXGI_SWAP_CHAIN_DESC*, + IDXGISwapChain**, + ID3D11Device**, + D3D_FEATURE_LEVEL*, + ID3D11DeviceContext**))(D3D11CreateDeviceAndSwapChain))(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, featureLevels, 2, D3D11_SDK_VERSION, &swapChainDesc, &swapChain, &device, &featureLevel, &context) < 0) + { + return Status::UnknownError; + } + + g_methodsTable = (uint150_t*)::calloc(205, sizeof(uint150_t)); + ::memcpy(g_methodsTable, *(uint150_t**)swapChain, 18 * sizeof(uint150_t)); + ::memcpy(g_methodsTable + 18, *(uint150_t**)device, 43 * sizeof(uint150_t)); + ::memcpy(g_methodsTable + 18 + 43, *(uint150_t**)context, 144 * sizeof(uint150_t)); + +#if KIERO_USE_MINHOOK + MH_Initialize(); +#endif + + swapChain->Release(); + swapChain = NULL; + + device->Release(); + device = NULL; + + context->Release(); + context = NULL; + + g_renderType = RenderType::D3D11; + + return Status::Success; +#endif + } + else if (_renderType == RenderType::D3D12) + { +#if KIERO_INCLUDE_D3D12 + HMODULE libDXGI; + HMODULE libD3D12; + if ((libDXGI = ::GetModuleHandle(KIERO_TEXT("dxgi.dll"))) == NULL || (libD3D12 = ::GetModuleHandle(KIERO_TEXT("d3d12.dll"))) == NULL) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::ModuleNotFoundError; + } + + void* CreateDXGIFactory; + if ((CreateDXGIFactory = ::GetProcAddress(libDXGI, "CreateDXGIFactory")) == NULL) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + IDXGIFactory* factory; + if (((long(__stdcall*)(const IID&, void**))(CreateDXGIFactory))(__uuidof(IDXGIFactory), (void**)&factory) < 0) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + IDXGIAdapter* adapter; + if (factory->EnumAdapters(0, &adapter) == DXGI_ERROR_NOT_FOUND) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + void* D3D12CreateDevice; + if ((D3D12CreateDevice = ::GetProcAddress(libD3D12, "D3D12CreateDevice")) == NULL) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + ID3D12Device* device; + if (((long(__stdcall*)(IUnknown*, D3D_FEATURE_LEVEL, const IID&, void**))(D3D12CreateDevice))(adapter, D3D_FEATURE_LEVEL_11_0, __uuidof(ID3D12Device), (void**)&device) < 0) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + D3D12_COMMAND_QUEUE_DESC queueDesc; + queueDesc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT; + queueDesc.Priority = 0; + queueDesc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE; + queueDesc.NodeMask = 0; + + ID3D12CommandQueue* commandQueue; + if (device->CreateCommandQueue(&queueDesc, __uuidof(ID3D12CommandQueue), (void**)&commandQueue) < 0) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + ID3D12CommandAllocator* commandAllocator; + if (device->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, __uuidof(ID3D12CommandAllocator), (void**)&commandAllocator) < 0) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + ID3D12GraphicsCommandList* commandList; + if (device->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, commandAllocator, NULL, __uuidof(ID3D12GraphicsCommandList), (void**)&commandList) < 0) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + DXGI_RATIONAL refreshRate; + refreshRate.Numerator = 60; + refreshRate.Denominator = 1; + + DXGI_MODE_DESC bufferDesc; + bufferDesc.Width = 100; + bufferDesc.Height = 100; + bufferDesc.RefreshRate = refreshRate; + bufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + bufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED; + bufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED; + + DXGI_SAMPLE_DESC sampleDesc; + sampleDesc.Count = 1; + sampleDesc.Quality = 0; + + DXGI_SWAP_CHAIN_DESC swapChainDesc = {}; + swapChainDesc.BufferDesc = bufferDesc; + swapChainDesc.SampleDesc = sampleDesc; + swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + swapChainDesc.BufferCount = 2; + swapChainDesc.OutputWindow = window; + swapChainDesc.Windowed = 1; + swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_DISCARD; + swapChainDesc.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH; + + IDXGISwapChain* swapChain; + if (factory->CreateSwapChain(commandQueue, &swapChainDesc, &swapChain) < 0) + { + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + return Status::UnknownError; + } + + g_methodsTable = (uint150_t*)::calloc(150, sizeof(uint150_t)); + ::memcpy(g_methodsTable, *(uint150_t**)device, 44 * sizeof(uint150_t)); + ::memcpy(g_methodsTable + 44, *(uint150_t**)commandQueue, 19 * sizeof(uint150_t)); + ::memcpy(g_methodsTable + 44 + 19, *(uint150_t**)commandAllocator, 9 * sizeof(uint150_t)); + ::memcpy(g_methodsTable + 44 + 19 + 9, *(uint150_t**)commandList, 60 * sizeof(uint150_t)); + ::memcpy(g_methodsTable + 44 + 19 + 9 + 60, *(uint150_t**)swapChain, 18 * sizeof(uint150_t)); + +#if KIERO_USE_MINHOOK + MH_Initialize(); +#endif + + device->Release(); + device = NULL; + + commandQueue->Release(); + commandQueue = NULL; + + commandAllocator->Release(); + commandAllocator = NULL; + + commandList->Release(); + commandList = NULL; + + swapChain->Release(); + swapChain = NULL; + + ::DestroyWindow(window); + ::UnregisterClass(windowClass.lpszClassName, windowClass.hInstance); + + g_renderType = RenderType::D3D12; + + return Status::Success; +#endif + } + + return Status::NotSupportedError; + } + else if (_renderType != RenderType::Auto) + { + if (_renderType == RenderType::OpenGL) + { +#if KIERO_INCLUDE_OPENGL + HMODULE libOpenGL32; + if ((libOpenGL32 = ::GetModuleHandle(KIERO_TEXT("opengl32.dll"))) == NULL) + { + return Status::ModuleNotFoundError; + } + + const char* const methodsNames[] = { + "glAccum", "glAlphaFunc", "glAreTexturesResident", "glArrayElement", "glBegin", "glBindTexture", "glBitmap", "glBlendFunc", "glCallList", "glCallLists", "glClear", "glClearAccum", + "glClearColor", "glClearDepth", "glClearIndex", "glClearStencil", "glClipPlane", "glColor3b", "glColor3bv", "glColor3d", "glColor3dv", "glColor3f", "glColor3fv", "glColor3i", "glColor3iv", + "glColor3s", "glColor3sv", "glColor3ub", "glColor3ubv", "glColor3ui", "glColor3uiv", "glColor3us", "glColor3usv", "glColor4b", "glColor4bv", "glColor4d", "glColor4dv", "glColor4f", + "glColor4fv", "glColor4i", "glColor4iv", "glColor4s", "glColor4sv", "glColor4ub", "glColor4ubv", "glColor4ui", "glColor4uiv", "glColor4us", "glColor4usv", "glColorMask", "glColorMaterial", + "glColorPointer", "glCopyPixels", "glCopyTexImage1D", "glCopyTexImage2D", "glCopyTexSubImage1D", "glCopyTexSubImage2D", "glCullFaceglCullFace", "glDeleteLists", "glDeleteTextures", + "glDepthFunc", "glDepthMask", "glDepthRange", "glDisable", "glDisableClientState", "glDrawArrays", "glDrawBuffer", "glDrawElements", "glDrawPixels", "glEdgeFlag", "glEdgeFlagPointer", + "glEdgeFlagv", "glEnable", "glEnableClientState", "glEnd", "glEndList", "glEvalCoord1d", "glEvalCoord1dv", "glEvalCoord1f", "glEvalCoord1fv", "glEvalCoord2d", "glEvalCoord2dv", + "glEvalCoord2f", "glEvalCoord2fv", "glEvalMesh1", "glEvalMesh2", "glEvalPoint1", "glEvalPoint2", "glFeedbackBuffer", "glFinish", "glFlush", "glFogf", "glFogfv", "glFogi", "glFogiv", + "glFrontFace", "glFrustum", "glGenLists", "glGenTextures", "glGetBooleanv", "glGetClipPlane", "glGetDoublev", "glGetError", "glGetFloatv", "glGetIntegerv", "glGetLightfv", "glGetLightiv", + "glGetMapdv", "glGetMapfv", "glGetMapiv", "glGetMaterialfv", "glGetMaterialiv", "glGetPixelMapfv", "glGetPixelMapuiv", "glGetPixelMapusv", "glGetPointerv", "glGetPolygonStipple", + "glGetString", "glGetTexEnvfv", "glGetTexEnviv", "glGetTexGendv", "glGetTexGenfv", "glGetTexGeniv", "glGetTexImage", "glGetTexLevelParameterfv", "glGetTexLevelParameteriv", + "glGetTexParameterfv", "glGetTexParameteriv", "glHint", "glIndexMask", "glIndexPointer", "glIndexd", "glIndexdv", "glIndexf", "glIndexfv", "glIndexi", "glIndexiv", "glIndexs", "glIndexsv", + "glIndexub", "glIndexubv", "glInitNames", "glInterleavedArrays", "glIsEnabled", "glIsList", "glIsTexture", "glLightModelf", "glLightModelfv", "glLightModeli", "glLightModeliv", "glLightf", + "glLightfv", "glLighti", "glLightiv", "glLineStipple", "glLineWidth", "glListBase", "glLoadIdentity", "glLoadMatrixd", "glLoadMatrixf", "glLoadName", "glLogicOp", "glMap1d", "glMap1f", + "glMap2d", "glMap2f", "glMapGrid1d", "glMapGrid1f", "glMapGrid2d", "glMapGrid2f", "glMaterialf", "glMaterialfv", "glMateriali", "glMaterialiv", "glMatrixMode", "glMultMatrixd", + "glMultMatrixf", "glNewList", "glNormal3b", "glNormal3bv", "glNormal3d", "glNormal3dv", "glNormal3f", "glNormal3fv", "glNormal3i", "glNormal3iv", "glNormal3s", "glNormal3sv", + "glNormalPointer", "glOrtho", "glPassThrough", "glPixelMapfv", "glPixelMapuiv", "glPixelMapusv", "glPixelStoref", "glPixelStorei", "glPixelTransferf", "glPixelTransferi", "glPixelZoom", + "glPointSize", "glPolygonMode", "glPolygonOffset", "glPolygonStipple", "glPopAttrib", "glPopClientAttrib", "glPopMatrix", "glPopName", "glPrioritizeTextures", "glPushAttrib", + "glPushClientAttrib", "glPushMatrix", "glPushName", "glRasterPos2d", "glRasterPos2dv", "glRasterPos2f", "glRasterPos2fv", "glRasterPos2i", "glRasterPos2iv", "glRasterPos2s", + "glRasterPos2sv", "glRasterPos3d", "glRasterPos3dv", "glRasterPos3f", "glRasterPos3fv", "glRasterPos3i", "glRasterPos3iv", "glRasterPos3s", "glRasterPos3sv", "glRasterPos4d", + "glRasterPos4dv", "glRasterPos4f", "glRasterPos4fv", "glRasterPos4i", "glRasterPos4iv", "glRasterPos4s", "glRasterPos4sv", "glReadBuffer", "glReadPixels", "glRectd", "glRectdv", "glRectf", + "glRectfv", "glRecti", "glRectiv", "glRects", "glRectsv", "glRenderMode", "glRotated", "glRotatef", "glScaled", "glScalef", "glScissor", "glSelectBuffer", "glShadeModel", "glStencilFunc", + "glStencilMask", "glStencilOp", "glTexCoord1d", "glTexCoord1dv", "glTexCoord1f", "glTexCoord1fv", "glTexCoord1i", "glTexCoord1iv", "glTexCoord1s", "glTexCoord1sv", "glTexCoord2d", + "glTexCoord2dv", "glTexCoord2f", "glTexCoord2fv", "glTexCoord2i", "glTexCoord2iv", "glTexCoord2s", "glTexCoord2sv", "glTexCoord3d", "glTexCoord3dv", "glTexCoord3f", "glTexCoord3fv", + "glTexCoord3i", "glTexCoord3iv", "glTexCoord3s", "glTexCoord3sv", "glTexCoord4d", "glTexCoord4dv", "glTexCoord4f", "glTexCoord4fv", "glTexCoord4i", "glTexCoord4iv", "glTexCoord4s", + "glTexCoord4sv", "glTexCoordPointer", "glTexEnvf", "glTexEnvfv", "glTexEnvi", "glTexEnviv", "glTexGend", "glTexGendv", "glTexGenf", "glTexGenfv", "glTexGeni", "glTexGeniv", "glTexImage1D", + "glTexImage2D", "glTexParameterf", "glTexParameterfv", "glTexParameteri", "glTexParameteriv", "glTexSubImage1D", "glTexSubImage2D", "glTranslated", "glTranslatef", "glVertex2d", + "glVertex2dv", "glVertex2f", "glVertex2fv", "glVertex2i", "glVertex2iv", "glVertex2s", "glVertex2sv", "glVertex3d", "glVertex3dv", "glVertex3f", "glVertex3fv", "glVertex3i", "glVertex3iv", + "glVertex3s", "glVertex3sv", "glVertex4d", "glVertex4dv", "glVertex4f", "glVertex4fv", "glVertex4i", "glVertex4iv", "glVertex4s", "glVertex4sv", "glVertexPointer", "glViewport" + }; + + size_t size = KIERO_ARRAY_SIZE(methodsNames); + + g_methodsTable = (uint150_t*)::calloc(size, sizeof(uint150_t)); + + for (int i = 0; i < size; i++) + { + g_methodsTable[i] = (uint150_t)::GetProcAddress(libOpenGL32, methodsNames[i]); + } + +#if KIERO_USE_MINHOOK + MH_Initialize(); +#endif + + g_renderType = RenderType::OpenGL; + + return Status::Success; +#endif + } + else if (_renderType == RenderType::Vulkan) + { +#if KIERO_INCLUDE_VULKAN + HMODULE libVulkan; + if ((libVulkan = GetModuleHandle(KIERO_TEXT("vulkan-1.dll"))) == NULL) + { + return Status::ModuleNotFoundError; + } + + const char* const methodsNames[] = { + "vkCreateInstance", "vkDestroyInstance", "vkEnumeratePhysicalDevices", "vkGetPhysicalDeviceFeatures", "vkGetPhysicalDeviceFormatProperties", "vkGetPhysicalDeviceImageFormatProperties", + "vkGetPhysicalDeviceProperties", "vkGetPhysicalDeviceQueueFamilyProperties", "vkGetPhysicalDeviceMemoryProperties", "vkGetInstanceProcAddr", "vkGetDeviceProcAddr", "vkCreateDevice", + "vkDestroyDevice", "vkEnumerateInstanceExtensionProperties", "vkEnumerateDeviceExtensionProperties", "vkEnumerateDeviceLayerProperties", "vkGetDeviceQueue", "vkQueueSubmit", "vkQueueWaitIdle", + "vkDeviceWaitIdle", "vkAllocateMemory", "vkFreeMemory", "vkMapMemory", "vkUnmapMemory", "vkFlushMappedMemoryRanges", "vkInvalidateMappedMemoryRanges", "vkGetDeviceMemoryCommitment", + "vkBindBufferMemory", "vkBindImageMemory", "vkGetBufferMemoryRequirements", "vkGetImageMemoryRequirements", "vkGetImageSparseMemoryRequirements", "vkGetPhysicalDeviceSparseImageFormatProperties", + "vkQueueBindSparse", "vkCreateFence", "vkDestroyFence", "vkResetFences", "vkGetFenceStatus", "vkWaitForFences", "vkCreateSemaphore", "vkDestroySemaphore", "vkCreateEvent", "vkDestroyEvent", + "vkGetEventStatus", "vkSetEvent", "vkResetEvent", "vkCreateQueryPool", "vkDestroyQueryPool", "vkGetQueryPoolResults", "vkCreateBuffer", "vkDestroyBuffer", "vkCreateBufferView", "vkDestroyBufferView", + "vkCreateImage", "vkDestroyImage", "vkGetImageSubresourceLayout", "vkCreateImageView", "vkDestroyImageView", "vkCreateShaderModule", "vkDestroyShaderModule", "vkCreatePipelineCache", + "vkDestroyPipelineCache", "vkGetPipelineCacheData", "vkMergePipelineCaches", "vkCreateGraphicsPipelines", "vkCreateComputePipelines", "vkDestroyPipeline", "vkCreatePipelineLayout", + "vkDestroyPipelineLayout", "vkCreateSampler", "vkDestroySampler", "vkCreateDescriptorSetLayout", "vkDestroyDescriptorSetLayout", "vkCreateDescriptorPool", "vkDestroyDescriptorPool", + "vkResetDescriptorPool", "vkAllocateDescriptorSets", "vkFreeDescriptorSets", "vkUpdateDescriptorSets", "vkCreateFramebuffer", "vkDestroyFramebuffer", "vkCreateRenderPass", "vkDestroyRenderPass", + "vkGetRenderAreaGranularity", "vkCreateCommandPool", "vkDestroyCommandPool", "vkResetCommandPool", "vkAllocateCommandBuffers", "vkFreeCommandBuffers", "vkBeginCommandBuffer", "vkEndCommandBuffer", + "vkResetCommandBuffer", "vkCmdBindPipeline", "vkCmdSetViewport", "vkCmdSetScissor", "vkCmdSetLineWidth", "vkCmdSetDepthBias", "vkCmdSetBlendConstants", "vkCmdSetDepthBounds", + "vkCmdSetStencilCompareMask", "vkCmdSetStencilWriteMask", "vkCmdSetStencilReference", "vkCmdBindDescriptorSets", "vkCmdBindIndexBuffer", "vkCmdBindVertexBuffers", "vkCmdDraw", "vkCmdDrawIndexed", + "vkCmdDrawIndirect", "vkCmdDrawIndexedIndirect", "vkCmdDispatch", "vkCmdDispatchIndirect", "vkCmdCopyBuffer", "vkCmdCopyImage", "vkCmdBlitImage", "vkCmdCopyBufferToImage", "vkCmdCopyImageToBuffer", + "vkCmdUpdateBuffer", "vkCmdFillBuffer", "vkCmdClearColorImage", "vkCmdClearDepthStencilImage", "vkCmdClearAttachments", "vkCmdResolveImage", "vkCmdSetEvent", "vkCmdResetEvent", "vkCmdWaitEvents", + "vkCmdPipelineBarrier", "vkCmdBeginQuery", "vkCmdEndQuery", "vkCmdResetQueryPool", "vkCmdWriteTimestamp", "vkCmdCopyQueryPoolResults", "vkCmdPushConstants", "vkCmdBeginRenderPass", "vkCmdNextSubpass", + "vkCmdEndRenderPass", "vkCmdExecuteCommands" + }; + + size_t size = KIERO_ARRAY_SIZE(methodsNames); + + g_methodsTable = (uint150_t*)::calloc(size, sizeof(uint150_t)); + + for (int i = 0; i < size; i++) + { + g_methodsTable[i] = (uint150_t)::GetProcAddress(libVulkan, methodsNames[i]); + } + +#if KIERO_USE_MINHOOK + MH_Initialize(); +#endif + + g_renderType = RenderType::Vulkan; + + return Status::Success; +#endif + } + + return Status::NotSupportedError; + } + else + { + RenderType::Enum type = RenderType::None; + + if (::GetModuleHandle(KIERO_TEXT("d3d9.dll")) != NULL) + { + type = RenderType::D3D9; + } + else if (::GetModuleHandle(KIERO_TEXT("d3d10.dll")) != NULL) + { + type = RenderType::D3D10; + } + else if (::GetModuleHandle(KIERO_TEXT("d3d11.dll")) != NULL) + { + type = RenderType::D3D11; + } + else if (::GetModuleHandle(KIERO_TEXT("d3d12.dll")) != NULL) + { + type = RenderType::D3D12; + } + else if (::GetModuleHandle(KIERO_TEXT("opengl32.dll")) != NULL) + { + type = RenderType::OpenGL; + } + else if (::GetModuleHandle(KIERO_TEXT("vulkan-1.dll")) != NULL) + { + type = RenderType::Vulkan; + } + else + { + return Status::NotSupportedError; + } + + return init(type); + } + } + + return Status::Success; +} + +void kiero::shutdown() +{ + if (g_renderType != RenderType::None) + { +#if KIERO_USE_MINHOOK + MH_DisableHook(MH_ALL_HOOKS); +#endif + + ::free(g_methodsTable); + g_methodsTable = NULL; + g_renderType = RenderType::None; + } +} + +kiero::Status::Enum kiero::bind(uint16_t _index, void** _original, void* _function) +{ + // TODO: Need own detour function + + assert(_original != NULL && _function != NULL); + + if (g_renderType != RenderType::None) + { +#if KIERO_USE_MINHOOK + void* target = (void*)g_methodsTable[_index]; + if (MH_CreateHook(target, _function, _original) != MH_OK || MH_EnableHook(target) != MH_OK) + { + return Status::UnknownError; + } +#endif + + return Status::Success; + } + + return Status::NotInitializedError; +} + +void kiero::unbind(uint16_t _index) +{ + if (g_renderType != RenderType::None) + { +#if KIERO_USE_MINHOOK + MH_DisableHook((void*)g_methodsTable[_index]); +#endif + } +} + +kiero::RenderType::Enum kiero::getRenderType() +{ + return g_renderType; +} + +uint150_t* kiero::getMethodsTable() +{ + return g_methodsTable; +} \ No newline at end of file diff --git a/CheatMenu/external/kiero/kiero.h b/CheatMenu/external/kiero/kiero.h new file mode 100644 index 0000000..8f42f5b --- /dev/null +++ b/CheatMenu/external/kiero/kiero.h @@ -0,0 +1,102 @@ +/* Slightly modified version of https://github.com/Rebzzel/kiero + +MIT License + +Copyright(c) 2014 - 2020 Rebzzel + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files(the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ +#ifndef __KIERO_H__ +#define __KIERO_H__ + +#include + +#define KIERO_VERSION "1.2.10" + +#define KIERO_INCLUDE_D3D9 1 // 1 if you need D3D9 hook +#define KIERO_INCLUDE_D3D10 0 // 1 if you need D3D10 hook +#define KIERO_INCLUDE_D3D11 1 // 1 if you need D3D11 hook +#define KIERO_INCLUDE_D3D12 0 // 1 if you need D3D12 hook +#define KIERO_INCLUDE_OPENGL 0 // 1 if you need OpenGL hook +#define KIERO_INCLUDE_VULKAN 0 // 1 if you need Vulkan hook +#define KIERO_USE_MINHOOK 1 // 1 if you will use kiero::bind function + +#define KIERO_ARCH_X64 0 +#define KIERO_ARCH_X86 0 + +#if defined(_M_X64) +# undef KIERO_ARCH_X64 +# define KIERO_ARCH_X64 1 +#else +# undef KIERO_ARCH_X86 +# define KIERO_ARCH_X86 1 +#endif + +#if KIERO_ARCH_X64 +typedef uint64_t uint150_t; +#else +typedef uint32_t uint150_t; +#endif + +namespace kiero +{ + struct Status + { + enum Enum + { + UnknownError = -1, + NotSupportedError = -2, + ModuleNotFoundError = -3, + + AlreadyInitializedError = -4, + NotInitializedError = -5, + + Success = 0, + }; + }; + + struct RenderType + { + enum Enum + { + None, + + D3D9, + D3D10, + D3D11, + D3D12, + + OpenGL, + Vulkan, + + Auto + }; + }; + + Status::Enum init(RenderType::Enum renderType); + void shutdown(); + + Status::Enum bind(uint16_t index, void** original, void* function); + void unbind(uint16_t index); + + RenderType::Enum getRenderType(); + uint150_t* getMethodsTable(); +} + +#endif // __KIERO_H__ \ No newline at end of file diff --git a/CheatMenu/external/kiero/minhook/include/MinHook.h b/CheatMenu/external/kiero/minhook/include/MinHook.h new file mode 100644 index 0000000..15c0a87 --- /dev/null +++ b/CheatMenu/external/kiero/minhook/include/MinHook.h @@ -0,0 +1,186 @@ +/* + * MinHook - The Minimalistic API Hooking Library for x64/x86 + * Copyright (C) 2009-2017 Tsuda Kageyu. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER + * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#pragma once + +#if !(defined _M_IX86) && !(defined _M_X64) && !(defined __i386__) && !(defined __x86_64__) + #error MinHook supports only x86 and x64 systems. +#endif + +#include + +// MinHook Error Codes. +typedef enum MH_STATUS +{ + // Unknown error. Should not be returned. + MH_UNKNOWN = -1, + + // Successful. + MH_OK = 0, + + // MinHook is already initialized. + MH_ERROR_ALREADY_INITIALIZED, + + // MinHook is not initialized yet, or already uninitialized. + MH_ERROR_NOT_INITIALIZED, + + // The hook for the specified target function is already created. + MH_ERROR_ALREADY_CREATED, + + // The hook for the specified target function is not created yet. + MH_ERROR_NOT_CREATED, + + // The hook for the specified target function is already enabled. + MH_ERROR_ENABLED, + + // The hook for the specified target function is not enabled yet, or already + // disabled. + MH_ERROR_DISABLED, + + // The specified pointer is invalid. It points the address of non-allocated + // and/or non-executable region. + MH_ERROR_NOT_EXECUTABLE, + + // The specified target function cannot be hooked. + MH_ERROR_UNSUPPORTED_FUNCTION, + + // Failed to allocate memory. + MH_ERROR_MEMORY_ALLOC, + + // Failed to change the memory protection. + MH_ERROR_MEMORY_PROTECT, + + // The specified module is not loaded. + MH_ERROR_MODULE_NOT_FOUND, + + // The specified function is not found. + MH_ERROR_FUNCTION_NOT_FOUND +} +MH_STATUS; + +// Can be passed as a parameter to MH_EnableHook, MH_DisableHook, +// MH_QueueEnableHook or MH_QueueDisableHook. +#define MH_ALL_HOOKS NULL + +#ifdef __cplusplus +extern "C" { +#endif + + // Initialize the MinHook library. You must call this function EXACTLY ONCE + // at the beginning of your program. + MH_STATUS WINAPI MH_Initialize(VOID); + + // Uninitialize the MinHook library. You must call this function EXACTLY + // ONCE at the end of your program. + MH_STATUS WINAPI MH_Uninitialize(VOID); + + // Creates a Hook for the specified target function, in disabled state. + // Parameters: + // pTarget [in] A pointer to the target function, which will be + // overridden by the detour function. + // pDetour [in] A pointer to the detour function, which will override + // the target function. + // ppOriginal [out] A pointer to the trampoline function, which will be + // used to call the original target function. + // This parameter can be NULL. + MH_STATUS WINAPI MH_CreateHook(LPVOID pTarget, LPVOID pDetour, LPVOID *ppOriginal); + + // Creates a Hook for the specified API function, in disabled state. + // Parameters: + // pszModule [in] A pointer to the loaded module name which contains the + // target function. + // pszTarget [in] A pointer to the target function name, which will be + // overridden by the detour function. + // pDetour [in] A pointer to the detour function, which will override + // the target function. + // ppOriginal [out] A pointer to the trampoline function, which will be + // used to call the original target function. + // This parameter can be NULL. + MH_STATUS WINAPI MH_CreateHookApi( + LPCWSTR pszModule, LPCSTR pszProcName, LPVOID pDetour, LPVOID *ppOriginal); + + // Creates a Hook for the specified API function, in disabled state. + // Parameters: + // pszModule [in] A pointer to the loaded module name which contains the + // target function. + // pszTarget [in] A pointer to the target function name, which will be + // overridden by the detour function. + // pDetour [in] A pointer to the detour function, which will override + // the target function. + // ppOriginal [out] A pointer to the trampoline function, which will be + // used to call the original target function. + // This parameter can be NULL. + // ppTarget [out] A pointer to the target function, which will be used + // with other functions. + // This parameter can be NULL. + MH_STATUS WINAPI MH_CreateHookApiEx( + LPCWSTR pszModule, LPCSTR pszProcName, LPVOID pDetour, LPVOID *ppOriginal, LPVOID *ppTarget); + + // Removes an already created hook. + // Parameters: + // pTarget [in] A pointer to the target function. + MH_STATUS WINAPI MH_RemoveHook(LPVOID pTarget); + + // Enables an already created hook. + // Parameters: + // pTarget [in] A pointer to the target function. + // If this parameter is MH_ALL_HOOKS, all created hooks are + // enabled in one go. + MH_STATUS WINAPI MH_EnableHook(LPVOID pTarget); + + // Disables an already created hook. + // Parameters: + // pTarget [in] A pointer to the target function. + // If this parameter is MH_ALL_HOOKS, all created hooks are + // disabled in one go. + MH_STATUS WINAPI MH_DisableHook(LPVOID pTarget); + + // Queues to enable an already created hook. + // Parameters: + // pTarget [in] A pointer to the target function. + // If this parameter is MH_ALL_HOOKS, all created hooks are + // queued to be enabled. + MH_STATUS WINAPI MH_QueueEnableHook(LPVOID pTarget); + + // Queues to disable an already created hook. + // Parameters: + // pTarget [in] A pointer to the target function. + // If this parameter is MH_ALL_HOOKS, all created hooks are + // queued to be disabled. + MH_STATUS WINAPI MH_QueueDisableHook(LPVOID pTarget); + + // Applies all queued changes in one go. + MH_STATUS WINAPI MH_ApplyQueued(VOID); + + // Translates the MH_STATUS to its name as a string. + const char * WINAPI MH_StatusToString(MH_STATUS status); + +#ifdef __cplusplus +} +#endif + diff --git a/CheatMenu/external/moon/pool_object_extender.h b/CheatMenu/external/moon/pool_object_extender.h new file mode 100644 index 0000000..2f8beee --- /dev/null +++ b/CheatMenu/external/moon/pool_object_extender.h @@ -0,0 +1,74 @@ +// This source is taken from MoonAdditions https://github.com/THE-FYP/MoonAdditions +// MIT License + +// Copyright (c) 2012 DK22Pac +// Copyright (c) 2017 FYP + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +#pragma once +#include + +template +class ExtendedObjectDataPool +{ +public: + auto begin() + { + return _pool.begin(); + } + + auto end() + { + return _pool.end(); + } + + bool exists(const ObjT* obj) const + { + return _pool.find(obj) != _pool.end(); + } + + DataT& get(const ObjT* obj) + { + auto& it = _pool.find(obj); + if (it != _pool.end()) + return *it->second; + return *(_pool[obj] = std::make_unique(obj)); + } + + void remove(const ObjT* obj) + { + _pool.erase(obj); + } + +private: + std::unordered_map> _pool; +}; + +template +class VehicleDataExtended : public ExtendedObjectDataPool +{ +public: + VehicleDataExtended() + { + plugin::Events::vehicleDtorEvent.after += [this](CVehicle* veh) { + this->remove(veh); + }; + } +}; diff --git a/CheatMenu/external/moon/texture_manager.cpp b/CheatMenu/external/moon/texture_manager.cpp new file mode 100644 index 0000000..1a71897 --- /dev/null +++ b/CheatMenu/external/moon/texture_manager.cpp @@ -0,0 +1,58 @@ +// This source is taken from MoonAdditions https://github.com/THE-FYP/MoonAdditions +// MIT License + +// Copyright (c) 2012 DK22Pac +// Copyright (c) 2017 FYP + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +#include "..\..\pch.h" +#include "texture_manager.h" + +RwTexture* createRwTextureFromRwImage(RwImage* image) +{ + RwInt32 width, height, depth, flags; + RwImageFindRasterFormat(image, 4, &width, &height, &depth, &flags); + RwRaster* raster = RwRasterCreate(width, height, depth, flags); + RwRasterSetFromImage(raster, image); + RwImageDestroy(image); + RwTexture* texture = RwTextureCreate(raster); + return texture; +} + +void setRwTextureNameFromFilename(RwTexture* texture, const fs::path& path) +{ + path.stem().string().copy(texture->name, sizeof(texture->name) - 1); +} + +RwTexture* texture_manager::loadTextureFromPngFile(fs::path path) +{ + RwImage* image = RtPNGImageRead(path.string().c_str()); + if (!image) + return nullptr; + RwTexture* texture = createRwTextureFromRwImage(image); + setRwTextureNameFromFilename(texture, path); + return texture; +} + +void texture_manager::unloadTexture(RwTexture* texture) +{ + if (!texture) + return; + RwTextureDestroy(texture); +} diff --git a/CheatMenu/external/moon/texture_manager.h b/CheatMenu/external/moon/texture_manager.h new file mode 100644 index 0000000..3267101 --- /dev/null +++ b/CheatMenu/external/moon/texture_manager.h @@ -0,0 +1,33 @@ +// This source is taken from MoonAdditions https://github.com/THE-FYP/MoonAdditions +// MIT License + +// Copyright (c) 2012 DK22Pac +// Copyright (c) 2017 FYP + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +#pragma once +#include "plugin.h" +#include "game_sa\RenderWare.h" + +namespace texture_manager +{ + RwTexture* loadTextureFromPngFile(fs::path path); + void unloadTexture(RwTexture* texture9); +} diff --git a/CheatMenu/external/moon/vehicle_renderer.cpp b/CheatMenu/external/moon/vehicle_renderer.cpp new file mode 100644 index 0000000..b82420e --- /dev/null +++ b/CheatMenu/external/moon/vehicle_renderer.cpp @@ -0,0 +1,145 @@ +// This source is taken from MoonAdditions https://github.com/THE-FYP/MoonAdditions +// MIT License + +// Copyright (c) 2012 DK22Pac +// Copyright (c) 2017 FYP + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +#include "plugin.h" +#include "vehicle_renderer.h" + +auto& VehicleRenderer::getVehicleData(CVehicle* veh) +{ + if (!_vehicleData) + _vehicleData = std::make_unique>(); + return _vehicleData->get(veh); +} + +auto& VehicleRenderer::getVehicleMaterialProperties(CVehicle* veh) +{ + return getVehicleData(veh)._materialProperties; +} + +void VehicleRenderer::setMaterialColor(CVehicle* veh, RpMaterial* material, RpGeometry* geometry, RwRGBA color, bool filter_mat) +{ + auto& matProps = getVehicleMaterialProperties(veh)[material]; + + if ( !filter_mat + || (material->color.red == 0x3C && material->color.green == 0xFF && material->color.blue == 0x00) + || (material->color.red == 0xFF && material->color.green == 0x00 && material->color.blue == 0xAF)) + { + matProps._recolor = true; + matProps._color = color; + matProps._geometry = geometry; + } +} + +void VehicleRenderer::setMaterialTexture(CVehicle* veh, RpMaterial* material, std::shared_ptr texture, bool filter_mat) +{ + auto& matProps = getVehicleMaterialProperties(veh)[material]; + + if (!filter_mat + || (material->color.red == 0x3C && material->color.green == 0xFF && material->color.blue == 0x00) + || (material->color.red == 0xFF && material->color.green == 0x00 && material->color.blue == 0xAF)) + { + matProps._retexture = true; + matProps._texture = texture; + } + +} + +void VehicleRenderer::resetMaterialColor(CVehicle* veh, RpMaterial* material) +{ + if (isInitialized() && _vehicleData->exists(veh)) + { + auto& matProps = getVehicleMaterialProperties(veh)[material]; + matProps._recolor = false; + matProps._color = {0, 0, 0, 0}; + } +} + +void VehicleRenderer::resetMaterialTexture(CVehicle* veh, RpMaterial* material) +{ + if (isInitialized() && _vehicleData->exists(veh)) + { + auto& matProps = getVehicleMaterialProperties(veh)[material]; + matProps._retexture = false; + matProps._texture.reset(); + } +} + +void VehicleRenderer::processRender(CVehicle* veh) +{ + if (isInitialized() && _vehicleData->exists(veh)) + { + // reset custom color if color id changed + if (veh->m_nPrimaryColor != getVehicleData(veh).primary_color + || veh->m_nSecondaryColor != getVehicleData(veh).secondary_color) + { + for (auto& it : _vehicleData->get(veh)._materialProperties) + resetMaterialColor(veh, it.first); + + getVehicleData(veh).primary_color = veh->m_nPrimaryColor; + getVehicleData(veh).secondary_color = veh->m_nSecondaryColor; + } + + for (auto& it : _vehicleData->get(veh)._materialProperties) + { + if (it.second._recolor) + { + it.second._originalColor = it.first->color; + it.first->color = it.second._color; + it.second._originalGeometryFlags = it.second._geometry->flags; + it.second._geometry->flags |= rpGEOMETRYMODULATEMATERIALCOLOR; + } + if (it.second._retexture) + { + auto tex = it.second._texture.lock(); + if (tex) + { + it.second._originalTexture = it.first->texture; + it.first->texture = tex.get(); + } + else + { + it.second._retexture = false; + } + } + } + } +} + +void VehicleRenderer::postRender(CVehicle* veh) +{ + if (isInitialized() && _vehicleData->exists(veh)) + { + for (auto& it : _vehicleData->get(veh)._materialProperties) + { + if (it.second._recolor) + { + it.first->color = it.second._originalColor; + it.second._geometry->flags = it.second._originalGeometryFlags; + } + if (it.second._retexture) + { + it.first->texture = it.second._originalTexture; + } + } + } +} diff --git a/CheatMenu/external/moon/vehicle_renderer.h b/CheatMenu/external/moon/vehicle_renderer.h new file mode 100644 index 0000000..7a47149 --- /dev/null +++ b/CheatMenu/external/moon/vehicle_renderer.h @@ -0,0 +1,87 @@ +// This source is taken from MoonAdditions https://github.com/THE-FYP/MoonAdditions +// MIT License + +// Copyright (c) 2012 DK22Pac +// Copyright (c) 2017 FYP + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +#pragma once +#include "pool_object_extender.h" +class VehicleRenderer +{ + struct MaterialProperties + { + MaterialProperties() : + _color{0, 0, 0, 0}, + _recolor(false), + _retexture(false), + _originalColor{0, 0, 0, 0}, + _originalTexture(nullptr), + _originalGeometryFlags(0), + _geometry(nullptr) + { + } + + RwRGBA _color; + std::weak_ptr _texture; + bool _recolor; + bool _retexture; + RpGeometry* _geometry; + RwRGBA _originalColor; + RwTexture* _originalTexture; + RwInt32 _originalGeometryFlags; + }; + + struct VehicleData + { + VehicleData(const CVehicle* veh) + { + primary_color = veh->m_nPrimaryColor; + secondary_color = veh->m_nSecondaryColor; + } + + // carcols color id + uchar primary_color; + uchar secondary_color; + + std::unordered_map _materialProperties; + }; + +public: + void setMaterialColor(CVehicle* veh, RpMaterial* material, RpGeometry* geometry, RwRGBA color, bool filter_mat = false); + void setMaterialTexture(CVehicle* veh, RpMaterial* material, std::shared_ptr texture9, bool filter_mat = false); + void resetMaterialColor(CVehicle* veh, RpMaterial* material); + void resetMaterialTexture(CVehicle* veh, RpMaterial* material); + void processRender(CVehicle* veh); + void postRender(CVehicle* veh); + bool isInitialized() const { return _vehicleData != nullptr; } + + static VehicleRenderer* get() + { + static std::unique_ptr instance = std::make_unique(); + return instance.get(); + } + +private: + auto& getVehicleMaterialProperties(CVehicle* veh); + auto& getVehicleData(CVehicle* veh); + + std::unique_ptr> _vehicleData; +}; diff --git a/CheatMenu/pch.cpp b/CheatMenu/pch.cpp new file mode 100644 index 0000000..58a2fe3 --- /dev/null +++ b/CheatMenu/pch.cpp @@ -0,0 +1,18 @@ +#include "pch.h" + +std::string Globals::header_id = ""; +int Globals::last_key_timer = 0; +ImVec2 Globals::menu_size = ImVec2(screen::GetScreenWidth()/4, screen::GetScreenHeight()/1.2); +std::string Globals::menu_title = std::string("Cheat Menu v") + std::string(MENU_VERSION); +ImVec2 Globals::font_screen_size = ImVec2(-1, -1); +bool Globals::show_menu = false; +bool Globals::init_done = false; +Renderer Globals::renderer = Render_Unknown; +ID3D11Device *Globals::device11 = nullptr; + +CJson config = CJson("config", true); +std::ofstream flog = std::ofstream("CheatMenu.log"); + +std::random_device rd; +std::mt19937 gen(rd()); +std::uniform_int_distribution<> cheat_id(0, 91); diff --git a/CheatMenu/pch.h b/CheatMenu/pch.h new file mode 100644 index 0000000..305ce17 --- /dev/null +++ b/CheatMenu/pch.h @@ -0,0 +1,108 @@ +#pragma once +#pragma warning(disable:4503 4244) + +#define INPUT_BUFFER_SIZE 64 +#define SPAWN_PED_LIMIT 20 +#define MENU_VERSION "2.5-alpha" +#define BUILD_NUMBER "20201112" +#define STB_IMAGE_IMPLEMENTATION + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "plugin.h" +#include "CCamera.h" +#include "CCheat.h" +#include "CClothes.h" +#include "CClock.h" +#include "CCivilianPed.h" +#include "CCutsceneMgr.h" +#include "CGangs.h" +#include "CGangWars.h" +#include "cHandlingDataMgr.h" +#include "CHud.h" +#include "CMenuManager.h" +#include "CModelInfo.h" +#include "CRadar.h" +#include "RenderWare.h" +#include "CStats.h" +#include "CStreaming.h" +#include "CTheScripts.h" +#include "CTheZones.h" +#include "CTimer.h" +#include "CTimeCycle.h" +#include "CWeather.h" +#include "CWorld.h" +#include "extensions/ScriptCommands.h" +#include "extensions/Screen.h" +#include "eVehicleClass.h" + +#include "external/imgui/imgui.h" +#include "external/imgui/imgui_impl_dx9.h" +#include "external/imgui/imgui_impl_dx11.h" +#include "external/imgui/imgui_impl_win32.h" + +#include "Events.h" +#include "Json.h" +#include "VKeys.h" + +// Globals +typedef std::vector> unsortedMap; +using namespace plugin; + +enum Renderer +{ + Render_DirectX9, + Render_DirectX10, + Render_DirectX11, + Render_DirectX12, + Render_OpenGL, + Render_Unknown, + Render_Vulkan, +}; + +struct Globals +{ + static std::string header_id; + static int last_key_timer; + static ImVec2 menu_size; + static std::string menu_title; + static ImVec2 font_screen_size; + static bool show_menu; + static bool init_done; + static Renderer renderer; + static ID3D11Device* device11; +}; + +struct TextureStructure +{ + std::string file_name; + std::string category_name; + PDIRECT3DTEXTURE9 texture9; + ID3D11ShaderResourceView* texture11; +}; + +extern CJson config; +extern std::ofstream flog; + +// Random cheats +extern std::random_device rd; +extern std::mt19937 gen; +extern std::uniform_int_distribution<> cheat_id; + +#include "Ui.h" +#include "Util.h" + +namespace fs = std::experimental::filesystem; \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/clothes/Extras/17$balaclava$balaclava.jpg b/Files/CheatMenu/clothes/Extras/17$balaclava$balaclava.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Extras/17$balaclava$balaclava.jpg rename to Files/CheatMenu/clothes/Extras/17$balaclava$balaclava.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Extras/17$countrytr$countrytr.jpg b/Files/CheatMenu/clothes/Extras/17$countrytr$countrytr.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Extras/17$countrytr$countrytr.jpg rename to Files/CheatMenu/clothes/Extras/17$countrytr$countrytr.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Extras/17$garagetr$garageleg.jpg b/Files/CheatMenu/clothes/Extras/17$garagetr$garageleg.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Extras/17$garagetr$garageleg.jpg rename to Files/CheatMenu/clothes/Extras/17$garagetr$garageleg.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Extras/17$gimpleg$gimpleg.jpg b/Files/CheatMenu/clothes/Extras/17$gimpleg$gimpleg.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Extras/17$gimpleg$gimpleg.jpg rename to Files/CheatMenu/clothes/Extras/17$gimpleg$gimpleg.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Extras/17$medictr$medictr.jpg b/Files/CheatMenu/clothes/Extras/17$medictr$medictr.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Extras/17$medictr$medictr.jpg rename to Files/CheatMenu/clothes/Extras/17$medictr$medictr.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Extras/17$pimptr$pimptr.jpg b/Files/CheatMenu/clothes/Extras/17$pimptr$pimptr.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Extras/17$pimptr$pimptr.jpg rename to Files/CheatMenu/clothes/Extras/17$pimptr$pimptr.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Extras/17$policetr$policetr.jpg b/Files/CheatMenu/clothes/Extras/17$policetr$policetr.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Extras/17$policetr$policetr.jpg rename to Files/CheatMenu/clothes/Extras/17$policetr$policetr.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Extras/17$valet$croupier.jpg b/Files/CheatMenu/clothes/Extras/17$valet$croupier.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Extras/17$valet$croupier.jpg rename to Files/CheatMenu/clothes/Extras/17$valet$croupier.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Extras/17$valet$valet.jpg b/Files/CheatMenu/clothes/Extras/17$valet$valet.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Extras/17$valet$valet.jpg rename to Files/CheatMenu/clothes/Extras/17$valet$valet.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$bandmask$bandblack3.jpg b/Files/CheatMenu/clothes/Glasses/15$bandmask$bandblack3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$bandmask$bandblack3.jpg rename to Files/CheatMenu/clothes/Glasses/15$bandmask$bandblack3.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$bandmask$bandblue3.jpg b/Files/CheatMenu/clothes/Glasses/15$bandmask$bandblue3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$bandmask$bandblue3.jpg rename to Files/CheatMenu/clothes/Glasses/15$bandmask$bandblue3.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$bandmask$bandgang3.jpg b/Files/CheatMenu/clothes/Glasses/15$bandmask$bandgang3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$bandmask$bandgang3.jpg rename to Files/CheatMenu/clothes/Glasses/15$bandmask$bandgang3.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$bandmask$bandred3.jpg b/Files/CheatMenu/clothes/Glasses/15$bandmask$bandred3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$bandmask$bandred3.jpg rename to Files/CheatMenu/clothes/Glasses/15$bandmask$bandred3.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$eyepatch$eyepatch.jpg b/Files/CheatMenu/clothes/Glasses/15$eyepatch$eyepatch.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$eyepatch$eyepatch.jpg rename to Files/CheatMenu/clothes/Glasses/15$eyepatch$eyepatch.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses01$glasses01.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses01$glasses01.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses01$glasses01.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses01$glasses01.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses01$glasses01dark.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses01$glasses01dark.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses01$glasses01dark.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses01$glasses01dark.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses03.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses03$glasses03.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses03.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses03$glasses03.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses03blue.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses03$glasses03blue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses03blue.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses03$glasses03blue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses03dark.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses03$glasses03dark.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses03dark.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses03$glasses03dark.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses03red.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses03$glasses03red.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses03red.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses03$glasses03red.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses05.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses03$glasses05.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses05.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses03$glasses05.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses05dark.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses03$glasses05dark.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses03$glasses05dark.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses03$glasses05dark.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses04$glasses04.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses04$glasses04.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses04$glasses04.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses04$glasses04.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$glasses04$glasses04dark.jpg b/Files/CheatMenu/clothes/Glasses/15$glasses04$glasses04dark.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$glasses04$glasses04dark.jpg rename to Files/CheatMenu/clothes/Glasses/15$glasses04$glasses04dark.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$grouchos$groucho.jpg b/Files/CheatMenu/clothes/Glasses/15$grouchos$groucho.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$grouchos$groucho.jpg rename to Files/CheatMenu/clothes/Glasses/15$grouchos$groucho.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Glasses/15$zorromask$zorro.jpg b/Files/CheatMenu/clothes/Glasses/15$zorromask$zorro.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Glasses/15$zorromask$zorro.jpg rename to Files/CheatMenu/clothes/Glasses/15$zorromask$zorro.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bandana$bandblack.jpg b/Files/CheatMenu/clothes/Hats/16$bandana$bandblack.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bandana$bandblack.jpg rename to Files/CheatMenu/clothes/Hats/16$bandana$bandblack.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bandana$bandblue.jpg b/Files/CheatMenu/clothes/Hats/16$bandana$bandblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bandana$bandblue.jpg rename to Files/CheatMenu/clothes/Hats/16$bandana$bandblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bandana$bandgang.jpg b/Files/CheatMenu/clothes/Hats/16$bandana$bandgang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bandana$bandgang.jpg rename to Files/CheatMenu/clothes/Hats/16$bandana$bandgang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bandana$bandred.jpg b/Files/CheatMenu/clothes/Hats/16$bandana$bandred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bandana$bandred.jpg rename to Files/CheatMenu/clothes/Hats/16$bandana$bandred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bandknots$bandblack2.jpg b/Files/CheatMenu/clothes/Hats/16$bandknots$bandblack2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bandknots$bandblack2.jpg rename to Files/CheatMenu/clothes/Hats/16$bandknots$bandblack2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bandknots$bandblue2.jpg b/Files/CheatMenu/clothes/Hats/16$bandknots$bandblue2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bandknots$bandblue2.jpg rename to Files/CheatMenu/clothes/Hats/16$bandknots$bandblue2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bandknots$bandgang2.jpg b/Files/CheatMenu/clothes/Hats/16$bandknots$bandgang2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bandknots$bandgang2.jpg rename to Files/CheatMenu/clothes/Hats/16$bandknots$bandgang2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bandknots$bandred2.jpg b/Files/CheatMenu/clothes/Hats/16$bandknots$bandred2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bandknots$bandred2.jpg rename to Files/CheatMenu/clothes/Hats/16$bandknots$bandred2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$beret$beretblk.jpg b/Files/CheatMenu/clothes/Hats/16$beret$beretblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$beret$beretblk.jpg rename to Files/CheatMenu/clothes/Hats/16$beret$beretblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$beret$beretred.jpg b/Files/CheatMenu/clothes/Hats/16$beret$beretred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$beret$beretred.jpg rename to Files/CheatMenu/clothes/Hats/16$beret$beretred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bikerhelmet$bikerhelmet.jpg b/Files/CheatMenu/clothes/Hats/16$bikerhelmet$bikerhelmet.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bikerhelmet$bikerhelmet.jpg rename to Files/CheatMenu/clothes/Hats/16$bikerhelmet$bikerhelmet.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$boater$boater.jpg b/Files/CheatMenu/clothes/Hats/16$boater$boater.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$boater$boater.jpg rename to Files/CheatMenu/clothes/Hats/16$boater$boater.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$boater$boaterblk.jpg b/Files/CheatMenu/clothes/Hats/16$boater$boaterblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$boater$boaterblk.jpg rename to Files/CheatMenu/clothes/Hats/16$boater$boaterblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowler.jpg b/Files/CheatMenu/clothes/Hats/16$bowler$bowler.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowler.jpg rename to Files/CheatMenu/clothes/Hats/16$bowler$bowler.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowlerblue.jpg b/Files/CheatMenu/clothes/Hats/16$bowler$bowlerblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowlerblue.jpg rename to Files/CheatMenu/clothes/Hats/16$bowler$bowlerblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowlergang.jpg b/Files/CheatMenu/clothes/Hats/16$bowler$bowlergang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowlergang.jpg rename to Files/CheatMenu/clothes/Hats/16$bowler$bowlergang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowlerred.jpg b/Files/CheatMenu/clothes/Hats/16$bowler$bowlerred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowlerred.jpg rename to Files/CheatMenu/clothes/Hats/16$bowler$bowlerred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowleryellow.jpg b/Files/CheatMenu/clothes/Hats/16$bowler$bowleryellow.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$bowler$bowleryellow.jpg rename to Files/CheatMenu/clothes/Hats/16$bowler$bowleryellow.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$boxingcap$boxingcap.jpg b/Files/CheatMenu/clothes/Hats/16$boxingcap$boxingcap.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$boxingcap$boxingcap.jpg rename to Files/CheatMenu/clothes/Hats/16$boxingcap$boxingcap.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$cap$capblk.jpg b/Files/CheatMenu/clothes/Hats/16$cap$capblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$cap$capblk.jpg rename to Files/CheatMenu/clothes/Hats/16$cap$capblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$cap$capblue.jpg b/Files/CheatMenu/clothes/Hats/16$cap$capblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$cap$capblue.jpg rename to Files/CheatMenu/clothes/Hats/16$cap$capblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$cap$capgang.jpg b/Files/CheatMenu/clothes/Hats/16$cap$capgang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$cap$capgang.jpg rename to Files/CheatMenu/clothes/Hats/16$cap$capgang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$cap$capred.jpg b/Files/CheatMenu/clothes/Hats/16$cap$capred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$cap$capred.jpg rename to Files/CheatMenu/clothes/Hats/16$cap$capred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$cap$capzip.jpg b/Files/CheatMenu/clothes/Hats/16$cap$capzip.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$cap$capzip.jpg rename to Files/CheatMenu/clothes/Hats/16$cap$capzip.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capback$capblkback.jpg b/Files/CheatMenu/clothes/Hats/16$capback$capblkback.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capback$capblkback.jpg rename to Files/CheatMenu/clothes/Hats/16$capback$capblkback.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capback$capblueback.jpg b/Files/CheatMenu/clothes/Hats/16$capback$capblueback.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capback$capblueback.jpg rename to Files/CheatMenu/clothes/Hats/16$capback$capblueback.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capback$capgangback.jpg b/Files/CheatMenu/clothes/Hats/16$capback$capgangback.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capback$capgangback.jpg rename to Files/CheatMenu/clothes/Hats/16$capback$capgangback.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capback$capredback.jpg b/Files/CheatMenu/clothes/Hats/16$capback$capredback.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capback$capredback.jpg rename to Files/CheatMenu/clothes/Hats/16$capback$capredback.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capback$capzipback.jpg b/Files/CheatMenu/clothes/Hats/16$capback$capzipback.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capback$capzipback.jpg rename to Files/CheatMenu/clothes/Hats/16$capback$capzipback.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capknit$capknitgrn.jpg b/Files/CheatMenu/clothes/Hats/16$capknit$capknitgrn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capknit$capknitgrn.jpg rename to Files/CheatMenu/clothes/Hats/16$capknit$capknitgrn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capblkover.jpg b/Files/CheatMenu/clothes/Hats/16$capovereye$capblkover.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capblkover.jpg rename to Files/CheatMenu/clothes/Hats/16$capovereye$capblkover.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capblueover.jpg b/Files/CheatMenu/clothes/Hats/16$capovereye$capblueover.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capblueover.jpg rename to Files/CheatMenu/clothes/Hats/16$capovereye$capblueover.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capgangover.jpg b/Files/CheatMenu/clothes/Hats/16$capovereye$capgangover.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capgangover.jpg rename to Files/CheatMenu/clothes/Hats/16$capovereye$capgangover.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capredover.jpg b/Files/CheatMenu/clothes/Hats/16$capovereye$capredover.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capredover.jpg rename to Files/CheatMenu/clothes/Hats/16$capovereye$capredover.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capzipover.jpg b/Files/CheatMenu/clothes/Hats/16$capovereye$capzipover.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capovereye$capzipover.jpg rename to Files/CheatMenu/clothes/Hats/16$capovereye$capzipover.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capblkup.jpg b/Files/CheatMenu/clothes/Hats/16$caprimup$capblkup.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capblkup.jpg rename to Files/CheatMenu/clothes/Hats/16$caprimup$capblkup.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capblueup.jpg b/Files/CheatMenu/clothes/Hats/16$caprimup$capblueup.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capblueup.jpg rename to Files/CheatMenu/clothes/Hats/16$caprimup$capblueup.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capgangup.jpg b/Files/CheatMenu/clothes/Hats/16$caprimup$capgangup.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capgangup.jpg rename to Files/CheatMenu/clothes/Hats/16$caprimup$capgangup.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capredup.jpg b/Files/CheatMenu/clothes/Hats/16$caprimup$capredup.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capredup.jpg rename to Files/CheatMenu/clothes/Hats/16$caprimup$capredup.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capzipup.jpg b/Files/CheatMenu/clothes/Hats/16$caprimup$capzipup.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$caprimup$capzipup.jpg rename to Files/CheatMenu/clothes/Hats/16$caprimup$capzipup.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capside$capblkside.jpg b/Files/CheatMenu/clothes/Hats/16$capside$capblkside.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capside$capblkside.jpg rename to Files/CheatMenu/clothes/Hats/16$capside$capblkside.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capside$capblueside.jpg b/Files/CheatMenu/clothes/Hats/16$capside$capblueside.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capside$capblueside.jpg rename to Files/CheatMenu/clothes/Hats/16$capside$capblueside.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capside$capgangside.jpg b/Files/CheatMenu/clothes/Hats/16$capside$capgangside.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capside$capgangside.jpg rename to Files/CheatMenu/clothes/Hats/16$capside$capgangside.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capside$capredside.jpg b/Files/CheatMenu/clothes/Hats/16$capside$capredside.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capside$capredside.jpg rename to Files/CheatMenu/clothes/Hats/16$capside$capredside.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$capside$capzipside.jpg b/Files/CheatMenu/clothes/Hats/16$capside$capzipside.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$capside$capzipside.jpg rename to Files/CheatMenu/clothes/Hats/16$capside$capzipside.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$captruck$captruck.jpg b/Files/CheatMenu/clothes/Hats/16$captruck$captruck.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$captruck$captruck.jpg rename to Files/CheatMenu/clothes/Hats/16$captruck$captruck.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$cowboy$cowboy.jpg b/Files/CheatMenu/clothes/Hats/16$cowboy$cowboy.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$cowboy$cowboy.jpg rename to Files/CheatMenu/clothes/Hats/16$cowboy$cowboy.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$cowboy$hattiger.jpg b/Files/CheatMenu/clothes/Hats/16$cowboy$hattiger.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$cowboy$hattiger.jpg rename to Files/CheatMenu/clothes/Hats/16$cowboy$hattiger.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$hatmanc$hatmancblk.jpg b/Files/CheatMenu/clothes/Hats/16$hatmanc$hatmancblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$hatmanc$hatmancblk.jpg rename to Files/CheatMenu/clothes/Hats/16$hatmanc$hatmancblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$hatmanc$hatmancplaid.jpg b/Files/CheatMenu/clothes/Hats/16$hatmanc$hatmancplaid.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$hatmanc$hatmancplaid.jpg rename to Files/CheatMenu/clothes/Hats/16$hatmanc$hatmancplaid.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$helmet$helmet.jpg b/Files/CheatMenu/clothes/Hats/16$helmet$helmet.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$helmet$helmet.jpg rename to Files/CheatMenu/clothes/Hats/16$helmet$helmet.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$hockeymask$hockey.jpg b/Files/CheatMenu/clothes/Hats/16$hockeymask$hockey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$hockeymask$hockey.jpg rename to Files/CheatMenu/clothes/Hats/16$hockeymask$hockey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$moto$moto.jpg b/Files/CheatMenu/clothes/Hats/16$moto$moto.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$moto$moto.jpg rename to Files/CheatMenu/clothes/Hats/16$moto$moto.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$skullycap$skullyblk.jpg b/Files/CheatMenu/clothes/Hats/16$skullycap$skullyblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$skullycap$skullyblk.jpg rename to Files/CheatMenu/clothes/Hats/16$skullycap$skullyblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$skullycap$skullygrn.jpg b/Files/CheatMenu/clothes/Hats/16$skullycap$skullygrn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$skullycap$skullygrn.jpg rename to Files/CheatMenu/clothes/Hats/16$skullycap$skullygrn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$trilby$trilbydrk.jpg b/Files/CheatMenu/clothes/Hats/16$trilby$trilbydrk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$trilby$trilbydrk.jpg rename to Files/CheatMenu/clothes/Hats/16$trilby$trilbydrk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Hats/16$trilby$trilbylght.jpg b/Files/CheatMenu/clothes/Hats/16$trilby$trilbylght.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Hats/16$trilby$trilbylght.jpg rename to Files/CheatMenu/clothes/Hats/16$trilby$trilbylght.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$afro$afro.jpg b/Files/CheatMenu/clothes/Heads/1$afro$afro.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$afro$afro.jpg rename to Files/CheatMenu/clothes/Heads/1$afro$afro.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$afro$afrobeard.jpg b/Files/CheatMenu/clothes/Heads/1$afro$afrobeard.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$afro$afrobeard.jpg rename to Files/CheatMenu/clothes/Heads/1$afro$afrobeard.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$afro$afroblond.jpg b/Files/CheatMenu/clothes/Heads/1$afro$afroblond.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$afro$afroblond.jpg rename to Files/CheatMenu/clothes/Heads/1$afro$afroblond.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$afro$afrogoatee.jpg b/Files/CheatMenu/clothes/Heads/1$afro$afrogoatee.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$afro$afrogoatee.jpg rename to Files/CheatMenu/clothes/Heads/1$afro$afrogoatee.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$afro$afrotash.jpg b/Files/CheatMenu/clothes/Heads/1$afro$afrotash.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$afro$afrotash.jpg rename to Files/CheatMenu/clothes/Heads/1$afro$afrotash.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$cornrows$cornrows.jpg b/Files/CheatMenu/clothes/Heads/1$cornrows$cornrows.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$cornrows$cornrows.jpg rename to Files/CheatMenu/clothes/Heads/1$cornrows$cornrows.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$cornrows$cornrowsb.jpg b/Files/CheatMenu/clothes/Heads/1$cornrows$cornrowsb.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$cornrows$cornrowsb.jpg rename to Files/CheatMenu/clothes/Heads/1$cornrows$cornrowsb.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$elvishair$elvishair.jpg b/Files/CheatMenu/clothes/Heads/1$elvishair$elvishair.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$elvishair$elvishair.jpg rename to Files/CheatMenu/clothes/Heads/1$elvishair$elvishair.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$flattop$flattop.jpg b/Files/CheatMenu/clothes/Heads/1$flattop$flattop.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$flattop$flattop.jpg rename to Files/CheatMenu/clothes/Heads/1$flattop$flattop.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$groovecut$groovecut.jpg b/Files/CheatMenu/clothes/Heads/1$groovecut$groovecut.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$groovecut$groovecut.jpg rename to Files/CheatMenu/clothes/Heads/1$groovecut$groovecut.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$bald.jpg b/Files/CheatMenu/clothes/Heads/1$head$bald.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$bald.jpg rename to Files/CheatMenu/clothes/Heads/1$head$bald.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$baldbeard.jpg b/Files/CheatMenu/clothes/Heads/1$head$baldbeard.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$baldbeard.jpg rename to Files/CheatMenu/clothes/Heads/1$head$baldbeard.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$baldgoatee.jpg b/Files/CheatMenu/clothes/Heads/1$head$baldgoatee.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$baldgoatee.jpg rename to Files/CheatMenu/clothes/Heads/1$head$baldgoatee.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$baldtash.jpg b/Files/CheatMenu/clothes/Heads/1$head$baldtash.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$baldtash.jpg rename to Files/CheatMenu/clothes/Heads/1$head$baldtash.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$beard.jpg b/Files/CheatMenu/clothes/Heads/1$head$beard.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$beard.jpg rename to Files/CheatMenu/clothes/Heads/1$head$beard.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$goatee.jpg b/Files/CheatMenu/clothes/Heads/1$head$goatee.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$goatee.jpg rename to Files/CheatMenu/clothes/Heads/1$head$goatee.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$hairblond.jpg b/Files/CheatMenu/clothes/Heads/1$head$hairblond.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$hairblond.jpg rename to Files/CheatMenu/clothes/Heads/1$head$hairblond.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$hairblue.jpg b/Files/CheatMenu/clothes/Heads/1$head$hairblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$hairblue.jpg rename to Files/CheatMenu/clothes/Heads/1$head$hairblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$hairgreen.jpg b/Files/CheatMenu/clothes/Heads/1$head$hairgreen.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$hairgreen.jpg rename to Files/CheatMenu/clothes/Heads/1$head$hairgreen.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$hairpink.jpg b/Files/CheatMenu/clothes/Heads/1$head$hairpink.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$hairpink.jpg rename to Files/CheatMenu/clothes/Heads/1$head$hairpink.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$hairred.jpg b/Files/CheatMenu/clothes/Heads/1$head$hairred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$hairred.jpg rename to Files/CheatMenu/clothes/Heads/1$head$hairred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$highfade.jpg b/Files/CheatMenu/clothes/Heads/1$head$highfade.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$highfade.jpg rename to Files/CheatMenu/clothes/Heads/1$head$highfade.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$player_face.jpg b/Files/CheatMenu/clothes/Heads/1$head$player_face.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$player_face.jpg rename to Files/CheatMenu/clothes/Heads/1$head$player_face.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$head$tash.jpg b/Files/CheatMenu/clothes/Heads/1$head$tash.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$head$tash.jpg rename to Files/CheatMenu/clothes/Heads/1$head$tash.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$highafro$highafro.jpg b/Files/CheatMenu/clothes/Heads/1$highafro$highafro.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$highafro$highafro.jpg rename to Files/CheatMenu/clothes/Heads/1$highafro$highafro.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$jheri$jhericurl.jpg b/Files/CheatMenu/clothes/Heads/1$jheri$jhericurl.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$jheri$jhericurl.jpg rename to Files/CheatMenu/clothes/Heads/1$jheri$jhericurl.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$mohawk$mohawk.jpg b/Files/CheatMenu/clothes/Heads/1$mohawk$mohawk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$mohawk$mohawk.jpg rename to Files/CheatMenu/clothes/Heads/1$mohawk$mohawk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$mohawk$mohawkbeard.jpg b/Files/CheatMenu/clothes/Heads/1$mohawk$mohawkbeard.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$mohawk$mohawkbeard.jpg rename to Files/CheatMenu/clothes/Heads/1$mohawk$mohawkbeard.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$mohawk$mohawkblond.jpg b/Files/CheatMenu/clothes/Heads/1$mohawk$mohawkblond.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$mohawk$mohawkblond.jpg rename to Files/CheatMenu/clothes/Heads/1$mohawk$mohawkblond.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$mohawk$mohawkpink.jpg b/Files/CheatMenu/clothes/Heads/1$mohawk$mohawkpink.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$mohawk$mohawkpink.jpg rename to Files/CheatMenu/clothes/Heads/1$mohawk$mohawkpink.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$slope$slope.jpg b/Files/CheatMenu/clothes/Heads/1$slope$slope.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$slope$slope.jpg rename to Files/CheatMenu/clothes/Heads/1$slope$slope.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$tramline$tramline.jpg b/Files/CheatMenu/clothes/Heads/1$tramline$tramline.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$tramline$tramline.jpg rename to Files/CheatMenu/clothes/Heads/1$tramline$tramline.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Heads/1$wedge$wedge.jpg b/Files/CheatMenu/clothes/Heads/1$wedge$wedge.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Heads/1$wedge$wedge.jpg rename to Files/CheatMenu/clothes/Heads/1$wedge$wedge.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$dogtag.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck$dogtag.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$dogtag.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck$dogtag.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckafrica.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck$neckafrica.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckafrica.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck$neckafrica.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckcross.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck$neckcross.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckcross.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck$neckcross.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckdollar.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck$neckdollar.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckdollar.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck$neckdollar.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckhash.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck$neckhash.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckhash.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck$neckhash.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckls.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck$neckls.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$neckls.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck$neckls.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$necksaints.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck$necksaints.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$necksaints.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck$necksaints.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$stopwatch.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck$stopwatch.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck$stopwatch.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck$stopwatch.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck2$neckgold.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck2$neckgold.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck2$neckgold.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck2$neckgold.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck2$neckropeg.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck2$neckropeg.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck2$neckropeg.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck2$neckropeg.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck2$neckropes.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck2$neckropes.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck2$neckropes.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck2$neckropes.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Necklaces/13$neck2$necksilver.jpg b/Files/CheatMenu/clothes/Necklaces/13$neck2$necksilver.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Necklaces/13$neck2$necksilver.jpg rename to Files/CheatMenu/clothes/Necklaces/13$neck2$necksilver.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$baseball$bandits.jpg b/Files/CheatMenu/clothes/Shirts/0$baseball$bandits.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$baseball$bandits.jpg rename to Files/CheatMenu/clothes/Shirts/0$baseball$bandits.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$baskball$baskballdrib.jpg b/Files/CheatMenu/clothes/Shirts/0$baskball$baskballdrib.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$baskball$baskballdrib.jpg rename to Files/CheatMenu/clothes/Shirts/0$baskball$baskballdrib.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$baskball$baskballloc.jpg b/Files/CheatMenu/clothes/Shirts/0$baskball$baskballloc.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$baskball$baskballloc.jpg rename to Files/CheatMenu/clothes/Shirts/0$baskball$baskballloc.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$baskball$baskballrim.jpg b/Files/CheatMenu/clothes/Shirts/0$baskball$baskballrim.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$baskball$baskballrim.jpg rename to Files/CheatMenu/clothes/Shirts/0$baskball$baskballrim.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$bbjack$bballjackrstar.jpg b/Files/CheatMenu/clothes/Shirts/0$bbjack$bballjackrstar.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$bbjack$bballjackrstar.jpg rename to Files/CheatMenu/clothes/Shirts/0$bbjack$bballjackrstar.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$bbjack$bbjackrim.jpg b/Files/CheatMenu/clothes/Shirts/0$bbjack$bbjackrim.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$bbjack$bbjackrim.jpg rename to Files/CheatMenu/clothes/Shirts/0$bbjack$bbjackrim.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$coach$coach.jpg b/Files/CheatMenu/clothes/Shirts/0$coach$coach.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$coach$coach.jpg rename to Files/CheatMenu/clothes/Shirts/0$coach$coach.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$coach$coachsemi.jpg b/Files/CheatMenu/clothes/Shirts/0$coach$coachsemi.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$coach$coachsemi.jpg rename to Files/CheatMenu/clothes/Shirts/0$coach$coachsemi.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$denim$denimfade.jpg b/Files/CheatMenu/clothes/Shirts/0$denim$denimfade.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$denim$denimfade.jpg rename to Files/CheatMenu/clothes/Shirts/0$denim$denimfade.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$field$field.jpg b/Files/CheatMenu/clothes/Shirts/0$field$field.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$field$field.jpg rename to Files/CheatMenu/clothes/Shirts/0$field$field.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hawaii$bowling.jpg b/Files/CheatMenu/clothes/Shirts/0$hawaii$bowling.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hawaii$bowling.jpg rename to Files/CheatMenu/clothes/Shirts/0$hawaii$bowling.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hawaii$hawaiired.jpg b/Files/CheatMenu/clothes/Shirts/0$hawaii$hawaiired.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hawaii$hawaiired.jpg rename to Files/CheatMenu/clothes/Shirts/0$hawaii$hawaiired.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hawaii$hawaiiwht.jpg b/Files/CheatMenu/clothes/Shirts/0$hawaii$hawaiiwht.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hawaii$hawaiiwht.jpg rename to Files/CheatMenu/clothes/Shirts/0$hawaii$hawaiiwht.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hoodjack$hoodjackbeige.jpg b/Files/CheatMenu/clothes/Shirts/0$hoodjack$hoodjackbeige.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hoodjack$hoodjackbeige.jpg rename to Files/CheatMenu/clothes/Shirts/0$hoodjack$hoodjackbeige.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hoodyA$hoodyAblack.jpg b/Files/CheatMenu/clothes/Shirts/0$hoodyA$hoodyAblack.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hoodyA$hoodyAblack.jpg rename to Files/CheatMenu/clothes/Shirts/0$hoodyA$hoodyAblack.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hoodyA$hoodyAblue.jpg b/Files/CheatMenu/clothes/Shirts/0$hoodyA$hoodyAblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hoodyA$hoodyAblue.jpg rename to Files/CheatMenu/clothes/Shirts/0$hoodyA$hoodyAblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hoodyA$hoodyAgreen.jpg b/Files/CheatMenu/clothes/Shirts/0$hoodyA$hoodyAgreen.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hoodyA$hoodyAgreen.jpg rename to Files/CheatMenu/clothes/Shirts/0$hoodyA$hoodyAgreen.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hoodya$hoodyabase5.jpg b/Files/CheatMenu/clothes/Shirts/0$hoodya$hoodyabase5.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hoodya$hoodyabase5.jpg rename to Files/CheatMenu/clothes/Shirts/0$hoodya$hoodyabase5.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hoodya$hoodyamerc.jpg b/Files/CheatMenu/clothes/Shirts/0$hoodya$hoodyamerc.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hoodya$hoodyamerc.jpg rename to Files/CheatMenu/clothes/Shirts/0$hoodya$hoodyamerc.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$hoodya$hoodyarockstar.jpg b/Files/CheatMenu/clothes/Shirts/0$hoodya$hoodyarockstar.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$hoodya$hoodyarockstar.jpg rename to Files/CheatMenu/clothes/Shirts/0$hoodya$hoodyarockstar.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$leather$leather.jpg b/Files/CheatMenu/clothes/Shirts/0$leather$leather.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$leather$leather.jpg rename to Files/CheatMenu/clothes/Shirts/0$leather$leather.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$painter$painter.jpg b/Files/CheatMenu/clothes/Shirts/0$painter$painter.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$painter$painter.jpg rename to Files/CheatMenu/clothes/Shirts/0$painter$painter.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$shirta$shirtablue.jpg b/Files/CheatMenu/clothes/Shirts/0$shirta$shirtablue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$shirta$shirtablue.jpg rename to Files/CheatMenu/clothes/Shirts/0$shirta$shirtablue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$shirta$shirtagrey.jpg b/Files/CheatMenu/clothes/Shirts/0$shirta$shirtagrey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$shirta$shirtagrey.jpg rename to Files/CheatMenu/clothes/Shirts/0$shirta$shirtagrey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$shirta$shirtayellow.jpg b/Files/CheatMenu/clothes/Shirts/0$shirta$shirtayellow.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$shirta$shirtayellow.jpg rename to Files/CheatMenu/clothes/Shirts/0$shirta$shirtayellow.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$shirtb$shirtbcheck.jpg b/Files/CheatMenu/clothes/Shirts/0$shirtb$shirtbcheck.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$shirtb$shirtbcheck.jpg rename to Files/CheatMenu/clothes/Shirts/0$shirtb$shirtbcheck.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$shirtb$shirtbgang.jpg b/Files/CheatMenu/clothes/Shirts/0$shirtb$shirtbgang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$shirtb$shirtbgang.jpg rename to Files/CheatMenu/clothes/Shirts/0$shirtb$shirtbgang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$shirtb$shirtbplaid.jpg b/Files/CheatMenu/clothes/Shirts/0$shirtb$shirtbplaid.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$shirtb$shirtbplaid.jpg rename to Files/CheatMenu/clothes/Shirts/0$shirtb$shirtbplaid.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$sleevt$bbjersey.jpg b/Files/CheatMenu/clothes/Shirts/0$sleevt$bbjersey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$sleevt$bbjersey.jpg rename to Files/CheatMenu/clothes/Shirts/0$sleevt$bbjersey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$sleevt$letter.jpg b/Files/CheatMenu/clothes/Shirts/0$sleevt$letter.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$sleevt$letter.jpg rename to Files/CheatMenu/clothes/Shirts/0$sleevt$letter.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$sleevt$sleevtbrown.jpg b/Files/CheatMenu/clothes/Shirts/0$sleevt$sleevtbrown.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$sleevt$sleevtbrown.jpg rename to Files/CheatMenu/clothes/Shirts/0$sleevt$sleevtbrown.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1blk.jpg b/Files/CheatMenu/clothes/Shirts/0$suit1$suit1blk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1blk.jpg rename to Files/CheatMenu/clothes/Shirts/0$suit1$suit1blk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1blue.jpg b/Files/CheatMenu/clothes/Shirts/0$suit1$suit1blue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1blue.jpg rename to Files/CheatMenu/clothes/Shirts/0$suit1$suit1blue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1gang.jpg b/Files/CheatMenu/clothes/Shirts/0$suit1$suit1gang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1gang.jpg rename to Files/CheatMenu/clothes/Shirts/0$suit1$suit1gang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1grey.jpg b/Files/CheatMenu/clothes/Shirts/0$suit1$suit1grey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1grey.jpg rename to Files/CheatMenu/clothes/Shirts/0$suit1$suit1grey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1red.jpg b/Files/CheatMenu/clothes/Shirts/0$suit1$suit1red.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1red.jpg rename to Files/CheatMenu/clothes/Shirts/0$suit1$suit1red.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1yellow.jpg b/Files/CheatMenu/clothes/Shirts/0$suit1$suit1yellow.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$suit1$suit1yellow.jpg rename to Files/CheatMenu/clothes/Shirts/0$suit1$suit1yellow.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$suit2$suit2grn.jpg b/Files/CheatMenu/clothes/Shirts/0$suit2$suit2grn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$suit2$suit2grn.jpg rename to Files/CheatMenu/clothes/Shirts/0$suit2$suit2grn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$suit2$tuxedo.jpg b/Files/CheatMenu/clothes/Shirts/0$suit2$tuxedo.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$suit2$tuxedo.jpg rename to Files/CheatMenu/clothes/Shirts/0$suit2$tuxedo.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$sweat$hockeytop.jpg b/Files/CheatMenu/clothes/Shirts/0$sweat$hockeytop.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$sweat$hockeytop.jpg rename to Files/CheatMenu/clothes/Shirts/0$sweat$hockeytop.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$sweat$sweatrstar.jpg b/Files/CheatMenu/clothes/Shirts/0$sweat$sweatrstar.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$sweat$sweatrstar.jpg rename to Files/CheatMenu/clothes/Shirts/0$sweat$sweatrstar.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$torso$player_torso.jpg b/Files/CheatMenu/clothes/Shirts/0$torso$player_torso.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$torso$player_torso.jpg rename to Files/CheatMenu/clothes/Shirts/0$torso$player_torso.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$trackytop1$shellsuit.jpg b/Files/CheatMenu/clothes/Shirts/0$trackytop1$shellsuit.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$trackytop1$shellsuit.jpg rename to Files/CheatMenu/clothes/Shirts/0$trackytop1$shellsuit.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$trackytop1$sportjack.jpg b/Files/CheatMenu/clothes/Shirts/0$trackytop1$sportjack.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$trackytop1$sportjack.jpg rename to Files/CheatMenu/clothes/Shirts/0$trackytop1$sportjack.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$trackytop1$trackytop1pro.jpg b/Files/CheatMenu/clothes/Shirts/0$trackytop1$trackytop1pro.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$trackytop1$trackytop1pro.jpg rename to Files/CheatMenu/clothes/Shirts/0$trackytop1$trackytop1pro.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$trackytop1$trackytop2eris.jpg b/Files/CheatMenu/clothes/Shirts/0$trackytop1$trackytop2eris.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$trackytop1$trackytop2eris.jpg rename to Files/CheatMenu/clothes/Shirts/0$trackytop1$trackytop2eris.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$sixtyniners.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$sixtyniners.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$sixtyniners.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$sixtyniners.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtbase5.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtbase5.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtbase5.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtbase5.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtblunts.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtblunts.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtblunts.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtblunts.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtbobomonk.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtbobomonk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtbobomonk.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtbobomonk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtbobored.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtbobored.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtbobored.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtbobored.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirterisorn.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirterisorn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirterisorn.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirterisorn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirterisyell.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirterisyell.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirterisyell.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirterisyell.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtheatwht.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtheatwht.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtheatwht.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtheatwht.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtilovels.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtilovels.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtilovels.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtilovels.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtlocgrey.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtlocgrey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtlocgrey.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtlocgrey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtmaddgrey.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtmaddgrey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtmaddgrey.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtmaddgrey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtmaddgrn.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtmaddgrn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtmaddgrn.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtmaddgrn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtproblk.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtproblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtproblk.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtproblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtprored.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtprored.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtprored.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtprored.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtsuburb.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtsuburb.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtsuburb.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtsuburb.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtwhite.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtwhite.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtwhite.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtwhite.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtzipcrm.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtzipcrm.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtzipcrm.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtzipcrm.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtzipgry.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtzipgry.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt$tshirtzipgry.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt$tshirtzipgry.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt2$tshirt2horiz.jpg b/Files/CheatMenu/clothes/Shirts/0$tshirt2$tshirt2horiz.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$tshirt2$tshirt2horiz.jpg rename to Files/CheatMenu/clothes/Shirts/0$tshirt2$tshirt2horiz.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$vest$vest.jpg b/Files/CheatMenu/clothes/Shirts/0$vest$vest.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$vest$vest.jpg rename to Files/CheatMenu/clothes/Shirts/0$vest$vest.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$vest$vestblack.jpg b/Files/CheatMenu/clothes/Shirts/0$vest$vestblack.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$vest$vestblack.jpg rename to Files/CheatMenu/clothes/Shirts/0$vest$vestblack.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shirts/0$wcoat$wcoatblue.jpg b/Files/CheatMenu/clothes/Shirts/0$wcoat$wcoatblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shirts/0$wcoat$wcoatblue.jpg rename to Files/CheatMenu/clothes/Shirts/0$wcoat$wcoatblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask1eris.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$bask1eris.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask1eris.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$bask1eris.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask1problk.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$bask1problk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask1problk.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$bask1problk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask1prowht.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$bask1prowht.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask1prowht.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$bask1prowht.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask2heatband.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$bask2heatband.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask2heatband.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$bask2heatband.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask2heatwht.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$bask2heatwht.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask2heatwht.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$bask2heatwht.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask2semi.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$bask2semi.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$bask2semi.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$bask2semi.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$hitop.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$hitop.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$hitop.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$hitop.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$timberfawn.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$timberfawn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$timberfawn.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$timberfawn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$timbergrey.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$timbergrey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$timbergrey.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$timbergrey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$timberhike.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$timberhike.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$timberhike.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$timberhike.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$timberred.jpg b/Files/CheatMenu/clothes/Shoes/3$bask1$timberred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$bask1$timberred.jpg rename to Files/CheatMenu/clothes/Shoes/3$bask1$timberred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$biker$biker.jpg b/Files/CheatMenu/clothes/Shoes/3$biker$biker.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$biker$biker.jpg rename to Files/CheatMenu/clothes/Shoes/3$biker$biker.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$biker$boxingshoe.jpg b/Files/CheatMenu/clothes/Shoes/3$biker$boxingshoe.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$biker$boxingshoe.jpg rename to Files/CheatMenu/clothes/Shoes/3$biker$boxingshoe.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$biker$cowboyboot.jpg b/Files/CheatMenu/clothes/Shoes/3$biker$cowboyboot.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$biker$cowboyboot.jpg rename to Files/CheatMenu/clothes/Shoes/3$biker$cowboyboot.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$biker$cowboyboot2.jpg b/Files/CheatMenu/clothes/Shoes/3$biker$cowboyboot2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$biker$cowboyboot2.jpg rename to Files/CheatMenu/clothes/Shoes/3$biker$cowboyboot2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$biker$snakeskin.jpg b/Files/CheatMenu/clothes/Shoes/3$biker$snakeskin.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$biker$snakeskin.jpg rename to Files/CheatMenu/clothes/Shoes/3$biker$snakeskin.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convheatblk.jpg b/Files/CheatMenu/clothes/Shoes/3$conv$convheatblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convheatblk.jpg rename to Files/CheatMenu/clothes/Shoes/3$conv$convheatblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convheatorn.jpg b/Files/CheatMenu/clothes/Shoes/3$conv$convheatorn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convheatorn.jpg rename to Files/CheatMenu/clothes/Shoes/3$conv$convheatorn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convheatred.jpg b/Files/CheatMenu/clothes/Shoes/3$conv$convheatred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convheatred.jpg rename to Files/CheatMenu/clothes/Shoes/3$conv$convheatred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convproblk.jpg b/Files/CheatMenu/clothes/Shoes/3$conv$convproblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convproblk.jpg rename to Files/CheatMenu/clothes/Shoes/3$conv$convproblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convproblu.jpg b/Files/CheatMenu/clothes/Shoes/3$conv$convproblu.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convproblu.jpg rename to Files/CheatMenu/clothes/Shoes/3$conv$convproblu.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convprogrn.jpg b/Files/CheatMenu/clothes/Shoes/3$conv$convprogrn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$conv$convprogrn.jpg rename to Files/CheatMenu/clothes/Shoes/3$conv$convprogrn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$feet$foot.jpg b/Files/CheatMenu/clothes/Shoes/3$feet$foot.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$feet$foot.jpg rename to Files/CheatMenu/clothes/Shoes/3$feet$foot.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$flipflop$flipflop.jpg b/Files/CheatMenu/clothes/Shoes/3$flipflop$flipflop.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$flipflop$flipflop.jpg rename to Files/CheatMenu/clothes/Shoes/3$flipflop$flipflop.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$flipflop$sandal.jpg b/Files/CheatMenu/clothes/Shoes/3$flipflop$sandal.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$flipflop$sandal.jpg rename to Files/CheatMenu/clothes/Shoes/3$flipflop$sandal.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$flipflop$sandalsock.jpg b/Files/CheatMenu/clothes/Shoes/3$flipflop$sandalsock.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$flipflop$sandalsock.jpg rename to Files/CheatMenu/clothes/Shoes/3$flipflop$sandalsock.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$shoe$shoedressblk.jpg b/Files/CheatMenu/clothes/Shoes/3$shoe$shoedressblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$shoe$shoedressblk.jpg rename to Files/CheatMenu/clothes/Shoes/3$shoe$shoedressblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$shoe$shoedressbrn.jpg b/Files/CheatMenu/clothes/Shoes/3$shoe$shoedressbrn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$shoe$shoedressbrn.jpg rename to Files/CheatMenu/clothes/Shoes/3$shoe$shoedressbrn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$shoe$shoespatz.jpg b/Files/CheatMenu/clothes/Shoes/3$shoe$shoespatz.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$shoe$shoespatz.jpg rename to Files/CheatMenu/clothes/Shoes/3$shoe$shoespatz.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerbincblk.jpg b/Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerbincblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerbincblk.jpg rename to Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerbincblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerbincblue.jpg b/Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerbincblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerbincblue.jpg rename to Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerbincblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerbincgang.jpg b/Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerbincgang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerbincgang.jpg rename to Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerbincgang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerheatblk.jpg b/Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerheatblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerheatblk.jpg rename to Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerheatblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerheatgry.jpg b/Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerheatgry.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerheatgry.jpg rename to Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerheatgry.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerheatwht.jpg b/Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerheatwht.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerheatwht.jpg rename to Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerheatwht.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerproblu.jpg b/Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerproblu.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerproblu.jpg rename to Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerproblu.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerprored.jpg b/Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerprored.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerprored.jpg rename to Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerprored.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerprowht.jpg b/Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerprowht.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Shoes/3$sneaker$sneakerprowht.jpg rename to Files/CheatMenu/clothes/Shoes/3$sneaker$sneakerprowht.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos back/8$8gun$8gun.jpg b/Files/CheatMenu/clothes/Tattoos back/8$8gun$8gun.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos back/8$8gun$8gun.jpg rename to Files/CheatMenu/clothes/Tattoos back/8$8gun$8gun.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos back/8$8poker$8poker.jpg b/Files/CheatMenu/clothes/Tattoos back/8$8poker$8poker.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos back/8$8poker$8poker.jpg rename to Files/CheatMenu/clothes/Tattoos back/8$8poker$8poker.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos back/8$8sa$8sa.jpg b/Files/CheatMenu/clothes/Tattoos back/8$8sa$8sa.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos back/8$8sa$8sa.jpg rename to Files/CheatMenu/clothes/Tattoos back/8$8sa$8sa.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos back/8$8sa2$8sa2.jpg b/Files/CheatMenu/clothes/Tattoos back/8$8sa2$8sa2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos back/8$8sa2$8sa2.jpg rename to Files/CheatMenu/clothes/Tattoos back/8$8sa2$8sa2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos back/8$8sa3$8sa3.jpg b/Files/CheatMenu/clothes/Tattoos back/8$8sa3$8sa3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos back/8$8sa3$8sa3.jpg rename to Files/CheatMenu/clothes/Tattoos back/8$8sa3$8sa3.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos back/8$8santos$8santos.jpg b/Files/CheatMenu/clothes/Tattoos back/8$8santos$8santos.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos back/8$8santos$8santos.jpg rename to Files/CheatMenu/clothes/Tattoos back/8$8santos$8santos.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos back/8$8westside$8westside.jpg b/Files/CheatMenu/clothes/Tattoos back/8$8westside$8westside.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos back/8$8westside$8westside.jpg rename to Files/CheatMenu/clothes/Tattoos back/8$8westside$8westside.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9bullet$9bullet.jpg b/Files/CheatMenu/clothes/Tattoos left chest/9$9bullet$9bullet.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9bullet$9bullet.jpg rename to Files/CheatMenu/clothes/Tattoos left chest/9$9bullet$9bullet.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9crown$9crown.jpg b/Files/CheatMenu/clothes/Tattoos left chest/9$9crown$9crown.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9crown$9crown.jpg rename to Files/CheatMenu/clothes/Tattoos left chest/9$9crown$9crown.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9gun$9gun.jpg b/Files/CheatMenu/clothes/Tattoos left chest/9$9gun$9gun.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9gun$9gun.jpg rename to Files/CheatMenu/clothes/Tattoos left chest/9$9gun$9gun.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9gun2$9gun2.jpg b/Files/CheatMenu/clothes/Tattoos left chest/9$9gun2$9gun2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9gun2$9gun2.jpg rename to Files/CheatMenu/clothes/Tattoos left chest/9$9gun2$9gun2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9homeboy$9homeboy.jpg b/Files/CheatMenu/clothes/Tattoos left chest/9$9homeboy$9homeboy.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9homeboy$9homeboy.jpg rename to Files/CheatMenu/clothes/Tattoos left chest/9$9homeboy$9homeboy.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9rasta$9rasta.jpg b/Files/CheatMenu/clothes/Tattoos left chest/9$9rasta$9rasta.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left chest/9$9rasta$9rasta.jpg rename to Files/CheatMenu/clothes/Tattoos left chest/9$9rasta$9rasta.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left lower arm/4$5CROSS$5CROSS.jpg b/Files/CheatMenu/clothes/Tattoos left lower arm/4$5CROSS$5CROSS.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left lower arm/4$5CROSS$5CROSS.jpg rename to Files/CheatMenu/clothes/Tattoos left lower arm/4$5CROSS$5CROSS.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left lower arm/4$5CROSS2$5CROSS2.jpg b/Files/CheatMenu/clothes/Tattoos left lower arm/4$5CROSS2$5CROSS2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left lower arm/4$5CROSS2$5CROSS2.jpg rename to Files/CheatMenu/clothes/Tattoos left lower arm/4$5CROSS2$5CROSS2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left lower arm/4$5CROSS3$5CROSS3.jpg b/Files/CheatMenu/clothes/Tattoos left lower arm/4$5CROSS3$5CROSS3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left lower arm/4$5CROSS3$5CROSS3.jpg rename to Files/CheatMenu/clothes/Tattoos left lower arm/4$5CROSS3$5CROSS3.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left lower arm/4$5GUN$5GUN.jpg b/Files/CheatMenu/clothes/Tattoos left lower arm/4$5GUN$5GUN.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left lower arm/4$5GUN$5GUN.jpg rename to Files/CheatMenu/clothes/Tattoos left lower arm/4$5GUN$5GUN.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left upper arm/5$4rip$4rip.jpg b/Files/CheatMenu/clothes/Tattoos left upper arm/5$4rip$4rip.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left upper arm/5$4rip$4rip.jpg rename to Files/CheatMenu/clothes/Tattoos left upper arm/5$4rip$4rip.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left upper arm/5$4spider$4spider.jpg b/Files/CheatMenu/clothes/Tattoos left upper arm/5$4spider$4spider.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left upper arm/5$4spider$4spider.jpg rename to Files/CheatMenu/clothes/Tattoos left upper arm/5$4spider$4spider.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos left upper arm/5$4weed$4weed.jpg b/Files/CheatMenu/clothes/Tattoos left upper arm/5$4weed$4weed.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos left upper arm/5$4weed$4weed.jpg rename to Files/CheatMenu/clothes/Tattoos left upper arm/5$4weed$4weed.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12angels$12angels.jpg b/Files/CheatMenu/clothes/Tattoos lower back/12$12angels$12angels.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12angels$12angels.jpg rename to Files/CheatMenu/clothes/Tattoos lower back/12$12angels$12angels.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12bandit$12bandit.jpg b/Files/CheatMenu/clothes/Tattoos lower back/12$12bandit$12bandit.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12bandit$12bandit.jpg rename to Files/CheatMenu/clothes/Tattoos lower back/12$12bandit$12bandit.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12cross7$12cross7.jpg b/Files/CheatMenu/clothes/Tattoos lower back/12$12cross7$12cross7.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12cross7$12cross7.jpg rename to Files/CheatMenu/clothes/Tattoos lower back/12$12cross7$12cross7.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12dagger$12dagger.jpg b/Files/CheatMenu/clothes/Tattoos lower back/12$12dagger$12dagger.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12dagger$12dagger.jpg rename to Files/CheatMenu/clothes/Tattoos lower back/12$12dagger$12dagger.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12mayabird$12mayabird.jpg b/Files/CheatMenu/clothes/Tattoos lower back/12$12mayabird$12mayabird.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12mayabird$12mayabird.jpg rename to Files/CheatMenu/clothes/Tattoos lower back/12$12mayabird$12mayabird.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12mayafce$12myfac.jpg b/Files/CheatMenu/clothes/Tattoos lower back/12$12mayafce$12myfac.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos lower back/12$12mayafce$12myfac.jpg rename to Files/CheatMenu/clothes/Tattoos lower back/12$12mayafce$12myfac.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10LS$10LS.jpg b/Files/CheatMenu/clothes/Tattoos right chest/10$10LS$10LS.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10LS$10LS.jpg rename to Files/CheatMenu/clothes/Tattoos right chest/10$10LS$10LS.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10LS2$10LS2.jpg b/Files/CheatMenu/clothes/Tattoos right chest/10$10LS2$10LS2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10LS2$10LS2.jpg rename to Files/CheatMenu/clothes/Tattoos right chest/10$10LS2$10LS2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10LS3$10LS3.jpg b/Files/CheatMenu/clothes/Tattoos right chest/10$10LS3$10LS3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10LS3$10LS3.jpg rename to Files/CheatMenu/clothes/Tattoos right chest/10$10LS3$10LS3.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10LS4$10LS4.jpg b/Files/CheatMenu/clothes/Tattoos right chest/10$10LS4$10LS4.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10LS4$10LS4.jpg rename to Files/CheatMenu/clothes/Tattoos right chest/10$10LS4$10LS4.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10OG$10OG.jpg b/Files/CheatMenu/clothes/Tattoos right chest/10$10OG$10OG.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10OG$10OG.jpg rename to Files/CheatMenu/clothes/Tattoos right chest/10$10OG$10OG.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10WEED$10WEED.jpg b/Files/CheatMenu/clothes/Tattoos right chest/10$10WEED$10WEED.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10WEED$10WEED.jpg rename to Files/CheatMenu/clothes/Tattoos right chest/10$10WEED$10WEED.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10ls5$10ls5.jpg b/Files/CheatMenu/clothes/Tattoos right chest/10$10ls5$10ls5.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right chest/10$10ls5$10ls5.jpg rename to Files/CheatMenu/clothes/Tattoos right chest/10$10ls5$10ls5.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right lower arm/7$7CROSS$7CROSS.jpg b/Files/CheatMenu/clothes/Tattoos right lower arm/7$7CROSS$7CROSS.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right lower arm/7$7CROSS$7CROSS.jpg rename to Files/CheatMenu/clothes/Tattoos right lower arm/7$7CROSS$7CROSS.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right lower arm/7$7CROSS2$7CROSS2.jpg b/Files/CheatMenu/clothes/Tattoos right lower arm/7$7CROSS2$7CROSS2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right lower arm/7$7CROSS2$7CROSS2.jpg rename to Files/CheatMenu/clothes/Tattoos right lower arm/7$7CROSS2$7CROSS2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right lower arm/7$7CROSS3$7CROSS3.jpg b/Files/CheatMenu/clothes/Tattoos right lower arm/7$7CROSS3$7CROSS3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right lower arm/7$7CROSS3$7CROSS3.jpg rename to Files/CheatMenu/clothes/Tattoos right lower arm/7$7CROSS3$7CROSS3.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right lower arm/7$7MARY$7MARY.jpg b/Files/CheatMenu/clothes/Tattoos right lower arm/7$7MARY$7MARY.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right lower arm/7$7MARY$7MARY.jpg rename to Files/CheatMenu/clothes/Tattoos right lower arm/7$7MARY$7MARY.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right upper arm/6$6AFRICA$6AFRICA.jpg b/Files/CheatMenu/clothes/Tattoos right upper arm/6$6AFRICA$6AFRICA.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right upper arm/6$6AFRICA$6AFRICA.jpg rename to Files/CheatMenu/clothes/Tattoos right upper arm/6$6AFRICA$6AFRICA.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right upper arm/6$6AZTEC$6AZTEC.jpg b/Files/CheatMenu/clothes/Tattoos right upper arm/6$6AZTEC$6AZTEC.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right upper arm/6$6AZTEC$6AZTEC.jpg rename to Files/CheatMenu/clothes/Tattoos right upper arm/6$6AZTEC$6AZTEC.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right upper arm/6$6CLOWN$6CLOWN.jpg b/Files/CheatMenu/clothes/Tattoos right upper arm/6$6CLOWN$6CLOWN.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right upper arm/6$6CLOWN$6CLOWN.jpg rename to Files/CheatMenu/clothes/Tattoos right upper arm/6$6CLOWN$6CLOWN.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos right upper arm/6$6CROWN$6CROWN.jpg b/Files/CheatMenu/clothes/Tattoos right upper arm/6$6CROWN$6CROWN.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos right upper arm/6$6CROWN$6CROWN.jpg rename to Files/CheatMenu/clothes/Tattoos right upper arm/6$6CROWN$6CROWN.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11DICE$11DICE.jpg b/Files/CheatMenu/clothes/Tattoos stomach/11$11DICE$11DICE.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11DICE$11DICE.jpg rename to Files/CheatMenu/clothes/Tattoos stomach/11$11DICE$11DICE.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11DICE2$11DICE2.jpg b/Files/CheatMenu/clothes/Tattoos stomach/11$11DICE2$11DICE2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11DICE2$11DICE2.jpg rename to Files/CheatMenu/clothes/Tattoos stomach/11$11DICE2$11DICE2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11GROVE$11GROVE.jpg b/Files/CheatMenu/clothes/Tattoos stomach/11$11GROVE$11GROVE.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11GROVE$11GROVE.jpg rename to Files/CheatMenu/clothes/Tattoos stomach/11$11GROVE$11GROVE.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11JAIL$11JAIL.jpg b/Files/CheatMenu/clothes/Tattoos stomach/11$11JAIL$11JAIL.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11JAIL$11JAIL.jpg rename to Files/CheatMenu/clothes/Tattoos stomach/11$11JAIL$11JAIL.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11godsgift$11godsgift.jpg b/Files/CheatMenu/clothes/Tattoos stomach/11$11godsgift$11godsgift.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11godsgift$11godsgift.jpg rename to Files/CheatMenu/clothes/Tattoos stomach/11$11godsgift$11godsgift.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11grove2$11grove2.jpg b/Files/CheatMenu/clothes/Tattoos stomach/11$11grove2$11grove2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11grove2$11grove2.jpg rename to Files/CheatMenu/clothes/Tattoos stomach/11$11grove2$11grove2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11grove3$11grove3.jpg b/Files/CheatMenu/clothes/Tattoos stomach/11$11grove3$11grove3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Tattoos stomach/11$11grove3$11grove3.jpg rename to Files/CheatMenu/clothes/Tattoos stomach/11$11grove3$11grove3.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$boxingshort$bbshortred.jpg b/Files/CheatMenu/clothes/Trousers/2$boxingshort$bbshortred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$boxingshort$bbshortred.jpg rename to Files/CheatMenu/clothes/Trousers/2$boxingshort$bbshortred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$boxingshort$bbshortwht.jpg b/Files/CheatMenu/clothes/Trousers/2$boxingshort$bbshortwht.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$boxingshort$bbshortwht.jpg rename to Files/CheatMenu/clothes/Trousers/2$boxingshort$bbshortwht.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$boxingshort$boxshort.jpg b/Files/CheatMenu/clothes/Trousers/2$boxingshort$boxshort.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$boxingshort$boxshort.jpg rename to Files/CheatMenu/clothes/Trousers/2$boxingshort$boxshort.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$biegetr.jpg b/Files/CheatMenu/clothes/Trousers/2$chinosb$biegetr.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$biegetr.jpg rename to Files/CheatMenu/clothes/Trousers/2$chinosb$biegetr.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$chinosbiege.jpg b/Files/CheatMenu/clothes/Trousers/2$chinosb$chinosbiege.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$chinosbiege.jpg rename to Files/CheatMenu/clothes/Trousers/2$chinosb$chinosbiege.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$chinosblack.jpg b/Files/CheatMenu/clothes/Trousers/2$chinosb$chinosblack.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$chinosblack.jpg rename to Files/CheatMenu/clothes/Trousers/2$chinosb$chinosblack.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$chinosblue.jpg b/Files/CheatMenu/clothes/Trousers/2$chinosb$chinosblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$chinosblue.jpg rename to Files/CheatMenu/clothes/Trousers/2$chinosb$chinosblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$chinoskhaki.jpg b/Files/CheatMenu/clothes/Trousers/2$chinosb$chinoskhaki.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$chinosb$chinoskhaki.jpg rename to Files/CheatMenu/clothes/Trousers/2$chinosb$chinoskhaki.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$chonger$chongerblue.jpg b/Files/CheatMenu/clothes/Trousers/2$chonger$chongerblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$chonger$chongerblue.jpg rename to Files/CheatMenu/clothes/Trousers/2$chonger$chongerblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$chonger$chongergang.jpg b/Files/CheatMenu/clothes/Trousers/2$chonger$chongergang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$chonger$chongergang.jpg rename to Files/CheatMenu/clothes/Trousers/2$chonger$chongergang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$chonger$chongergrey.jpg b/Files/CheatMenu/clothes/Trousers/2$chonger$chongergrey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$chonger$chongergrey.jpg rename to Files/CheatMenu/clothes/Trousers/2$chonger$chongergrey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$chonger$chongerred.jpg b/Files/CheatMenu/clothes/Trousers/2$chonger$chongerred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$chonger$chongerred.jpg rename to Files/CheatMenu/clothes/Trousers/2$chonger$chongerred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$jeans$denimsgang.jpg b/Files/CheatMenu/clothes/Trousers/2$jeans$denimsgang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$jeans$denimsgang.jpg rename to Files/CheatMenu/clothes/Trousers/2$jeans$denimsgang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$jeans$denimsred.jpg b/Files/CheatMenu/clothes/Trousers/2$jeans$denimsred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$jeans$denimsred.jpg rename to Files/CheatMenu/clothes/Trousers/2$jeans$denimsred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$jeans$jeansdenim.jpg b/Files/CheatMenu/clothes/Trousers/2$jeans$jeansdenim.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$jeans$jeansdenim.jpg rename to Files/CheatMenu/clothes/Trousers/2$jeans$jeansdenim.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$leathertr$leathertr.jpg b/Files/CheatMenu/clothes/Trousers/2$leathertr$leathertr.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$leathertr$leathertr.jpg rename to Files/CheatMenu/clothes/Trousers/2$leathertr$leathertr.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$leathertr$leathertrchaps.jpg b/Files/CheatMenu/clothes/Trousers/2$leathertr$leathertrchaps.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$leathertr$leathertrchaps.jpg rename to Files/CheatMenu/clothes/Trousers/2$leathertr$leathertrchaps.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$legs$legsblack.jpg b/Files/CheatMenu/clothes/Trousers/2$legs$legsblack.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$legs$legsblack.jpg rename to Files/CheatMenu/clothes/Trousers/2$legs$legsblack.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$legs$legsheart.jpg b/Files/CheatMenu/clothes/Trousers/2$legs$legsheart.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$legs$legsheart.jpg rename to Files/CheatMenu/clothes/Trousers/2$legs$legsheart.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$legs$player_legs.jpg b/Files/CheatMenu/clothes/Trousers/2$legs$player_legs.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$legs$player_legs.jpg rename to Files/CheatMenu/clothes/Trousers/2$legs$player_legs.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$cutoffchinos.jpg b/Files/CheatMenu/clothes/Trousers/2$shorts$cutoffchinos.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$cutoffchinos.jpg rename to Files/CheatMenu/clothes/Trousers/2$shorts$cutoffchinos.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$cutoffchinosblue.jpg b/Files/CheatMenu/clothes/Trousers/2$shorts$cutoffchinosblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$cutoffchinosblue.jpg rename to Files/CheatMenu/clothes/Trousers/2$shorts$cutoffchinosblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$cutoffdenims.jpg b/Files/CheatMenu/clothes/Trousers/2$shorts$cutoffdenims.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$cutoffdenims.jpg rename to Files/CheatMenu/clothes/Trousers/2$shorts$cutoffdenims.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$shortsgang.jpg b/Files/CheatMenu/clothes/Trousers/2$shorts$shortsgang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$shortsgang.jpg rename to Files/CheatMenu/clothes/Trousers/2$shorts$shortsgang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$shortsgrey.jpg b/Files/CheatMenu/clothes/Trousers/2$shorts$shortsgrey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$shortsgrey.jpg rename to Files/CheatMenu/clothes/Trousers/2$shorts$shortsgrey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$shortskhaki.jpg b/Files/CheatMenu/clothes/Trousers/2$shorts$shortskhaki.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$shorts$shortskhaki.jpg rename to Files/CheatMenu/clothes/Trousers/2$shorts$shortskhaki.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trblk.jpg b/Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trblk.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trblk.jpg rename to Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trblk.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trblk2.jpg b/Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trblk2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trblk2.jpg rename to Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trblk2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trblue.jpg b/Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trblue.jpg rename to Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trgang.jpg b/Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trgang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trgang.jpg rename to Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trgang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trgreen.jpg b/Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trgreen.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trgreen.jpg rename to Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trgreen.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trgrey.jpg b/Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trgrey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trgrey.jpg rename to Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trgrey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trred.jpg b/Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trred.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1trred.jpg rename to Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1trred.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1tryellow.jpg b/Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1tryellow.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$suit1tr$suit1tryellow.jpg rename to Files/CheatMenu/clothes/Trousers/2$suit1tr$suit1tryellow.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$shellsuittr.jpg b/Files/CheatMenu/clothes/Trousers/2$tracktr$shellsuittr.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$shellsuittr.jpg rename to Files/CheatMenu/clothes/Trousers/2$tracktr$shellsuittr.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktr.jpg b/Files/CheatMenu/clothes/Trousers/2$tracktr$tracktr.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktr.jpg rename to Files/CheatMenu/clothes/Trousers/2$tracktr$tracktr.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktrblue.jpg b/Files/CheatMenu/clothes/Trousers/2$tracktr$tracktrblue.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktrblue.jpg rename to Files/CheatMenu/clothes/Trousers/2$tracktr$tracktrblue.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktreris.jpg b/Files/CheatMenu/clothes/Trousers/2$tracktr$tracktreris.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktreris.jpg rename to Files/CheatMenu/clothes/Trousers/2$tracktr$tracktreris.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktrgang.jpg b/Files/CheatMenu/clothes/Trousers/2$tracktr$tracktrgang.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktrgang.jpg rename to Files/CheatMenu/clothes/Trousers/2$tracktr$tracktrgang.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktrpro.jpg b/Files/CheatMenu/clothes/Trousers/2$tracktr$tracktrpro.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktrpro.jpg rename to Files/CheatMenu/clothes/Trousers/2$tracktr$tracktrpro.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktrwhstr.jpg b/Files/CheatMenu/clothes/Trousers/2$tracktr$tracktrwhstr.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$tracktr$tracktrwhstr.jpg rename to Files/CheatMenu/clothes/Trousers/2$tracktr$tracktrwhstr.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$worktr$worktrcamogrn.jpg b/Files/CheatMenu/clothes/Trousers/2$worktr$worktrcamogrn.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$worktr$worktrcamogrn.jpg rename to Files/CheatMenu/clothes/Trousers/2$worktr$worktrcamogrn.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$worktr$worktrcamogry.jpg b/Files/CheatMenu/clothes/Trousers/2$worktr$worktrcamogry.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$worktr$worktrcamogry.jpg rename to Files/CheatMenu/clothes/Trousers/2$worktr$worktrcamogry.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$worktr$worktrgrey.jpg b/Files/CheatMenu/clothes/Trousers/2$worktr$worktrgrey.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$worktr$worktrgrey.jpg rename to Files/CheatMenu/clothes/Trousers/2$worktr$worktrgrey.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Trousers/2$worktr$worktrkhaki.jpg b/Files/CheatMenu/clothes/Trousers/2$worktr$worktrkhaki.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Trousers/2$worktr$worktrkhaki.jpg rename to Files/CheatMenu/clothes/Trousers/2$worktr$worktrkhaki.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchcro.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchcro.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchcro.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchcro.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchcro2.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchcro2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchcro2.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchcro2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchgno.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchgno.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchgno.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchgno.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchgno2.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchgno2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchgno2.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchgno2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchpink.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchpink.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchpink.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchpink.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchpro.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchpro.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchpro.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchpro.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchpro2.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchpro2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchpro2.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchpro2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchsub1.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchsub1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchsub1.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchsub1.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchsub2.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchsub2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchsub2.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchsub2.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchyellow.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchyellow.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchyellow.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchyellow.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchzip1.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchzip1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchzip1.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchzip1.jpg diff --git a/moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchzip2.jpg b/Files/CheatMenu/clothes/Watches/14$watch$watchzip2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/clothes/Watches/14$watch$watchzip2.jpg rename to Files/CheatMenu/clothes/Watches/14$watch$watchzip2.jpg diff --git a/Files/CheatMenu/json/animation.json b/Files/CheatMenu/json/animation.json new file mode 100644 index 0000000..698531b --- /dev/null +++ b/Files/CheatMenu/json/animation.json @@ -0,0 +1,1983 @@ +{ + "ATTRACTORS": { + "Stepsit_in": "ATTRACTORS", + "Stepsit_loop": "ATTRACTORS", + "Stepsit_out": "ATTRACTORS" + }, + "All": {}, + "BAR": { + "BARman_idle": "BAR", + "Barcustom_get": "BAR", + "Barcustom_loop": "BAR", + "Barcustom_order": "BAR", + "Barserve_bottle": "BAR", + "Barserve_give": "BAR", + "Barserve_glass": "BAR", + "Barserve_in": "BAR", + "Barserve_loop": "BAR", + "Barserve_order": "BAR", + "dnk_stndF_loop": "BAR", + "dnk_stndM_loop": "BAR" + }, + "BASEBALL": { + "BAT_PART": "BASEBALL", + "Bat_1": "BASEBALL", + "Bat_2": "BASEBALL", + "Bat_3": "BASEBALL", + "Bat_4": "BASEBALL", + "Bat_Hit_1": "BASEBALL", + "Bat_Hit_2": "BASEBALL", + "Bat_Hit_3": "BASEBALL", + "Bat_IDLE": "BASEBALL", + "Bat_M": "BASEBALL", + "Bat_block": "BASEBALL" + }, + "BD_FIRE": { + "BD_Fire1": "BD_FIRE", + "BD_Fire2": "BD_FIRE", + "BD_Fire3": "BD_FIRE", + "BD_GF_Wave": "BD_FIRE", + "BD_Panic_01": "BD_FIRE", + "BD_Panic_02": "BD_FIRE", + "BD_Panic_03": "BD_FIRE", + "BD_Panic_04": "BD_FIRE", + "BD_Panic_Loop": "BD_FIRE", + "Grlfrd_Kiss_03": "BD_FIRE", + "M_smklean_loop": "BD_FIRE", + "Playa_Kiss_03": "BD_FIRE", + "wash_up": "BD_FIRE" + }, + "BEACH": { + "Lay_Bac_Loop": "BEACH", + "ParkSit_M_loop": "BEACH", + "ParkSit_W_loop": "BEACH", + "SitnWait_loop_W": "BEACH", + "bather": "BEACH" + }, + "BENCHPRESS": { + "gym_bp_celebrate": "BENCHPRESS", + "gym_bp_down": "BENCHPRESS", + "gym_bp_getoff": "BENCHPRESS", + "gym_bp_geton": "BENCHPRESS", + "gym_bp_up_A": "BENCHPRESS", + "gym_bp_up_B": "BENCHPRESS", + "gym_bp_up_smooth": "BENCHPRESS" + }, + "BF_INJECTION": { + "BF_getin_LHS": "BF_INJECTION", + "BF_getin_RHS": "BF_INJECTION", + "BF_getout_LHS": "BF_INJECTION", + "BF_getout_RHS": "BF_INJECTION" + }, + "BIKED": { + "BIKEd_Back": "BIKED", + "BIKEd_Fwd": "BIKED", + "BIKEd_Left": "BIKED", + "BIKEd_Ride": "BIKED", + "BIKEd_Right": "BIKED", + "BIKEd_Still": "BIKED", + "BIKEd_drivebyFT": "BIKED", + "BIKEd_drivebyLHS": "BIKED", + "BIKEd_drivebyRHS": "BIKED", + "BIKEd_getoffBACK": "BIKED", + "BIKEd_getoffLHS": "BIKED", + "BIKEd_getoffRHS": "BIKED", + "BIKEd_hit": "BIKED", + "BIKEd_jumponL": "BIKED", + "BIKEd_jumponR": "BIKED", + "BIKEd_kick": "BIKED", + "BIKEd_passenger": "BIKED", + "BIKEd_pushes": "BIKED", + "BIKEd_shuffle": "BIKED" + }, + "BIKEH": { + "BIKEh_Back": "BIKEH", + "BIKEh_Fwd": "BIKEH", + "BIKEh_Left": "BIKEH", + "BIKEh_Ride": "BIKEH", + "BIKEh_Right": "BIKEH", + "BIKEh_Still": "BIKEH", + "BIKEh_drivebyFT": "BIKEH", + "BIKEh_drivebyLHS": "BIKEH", + "BIKEh_drivebyRHS": "BIKEH", + "BIKEh_getoffBACK": "BIKEH", + "BIKEh_getoffLHS": "BIKEH", + "BIKEh_getoffRHS": "BIKEH", + "BIKEh_hit": "BIKEH", + "BIKEh_jumponL": "BIKEH", + "BIKEh_jumponR": "BIKEH", + "BIKEh_kick": "BIKEH", + "BIKEh_passenger": "BIKEH", + "BIKEh_pushes": "BIKEH" + }, + "BIKELEAP": { + "bk_blnce_in": "BIKELEAP", + "bk_blnce_out": "BIKELEAP", + "bk_jmp": "BIKELEAP", + "bk_rdy_in": "BIKELEAP", + "bk_rdy_out": "BIKELEAP", + "struggle_cesar": "BIKELEAP", + "struggle_driver": "BIKELEAP", + "truck_driver": "BIKELEAP", + "truck_getin": "BIKELEAP" + }, + "BIKES": { + "BIKEs_Back": "BIKES", + "BIKEs_Fwd": "BIKES", + "BIKEs_Left": "BIKES", + "BIKEs_Ride": "BIKES", + "BIKEs_Right": "BIKES", + "BIKEs_Snatch_L": "BIKES", + "BIKEs_Snatch_R": "BIKES", + "BIKEs_Still": "BIKES", + "BIKEs_drivebyFT": "BIKES", + "BIKEs_drivebyLHS": "BIKES", + "BIKEs_drivebyRHS": "BIKES", + "BIKEs_getoffBACK": "BIKES", + "BIKEs_getoffLHS": "BIKES", + "BIKEs_getoffRHS": "BIKES", + "BIKEs_hit": "BIKES", + "BIKEs_jumponL": "BIKES", + "BIKEs_jumponR": "BIKES", + "BIKEs_kick": "BIKES", + "BIKEs_passenger": "BIKES", + "BIKEs_pushes": "BIKES" + }, + "BIKEV": { + "BIKEv_Back": "BIKEV", + "BIKEv_Fwd": "BIKEV", + "BIKEv_Left": "BIKEV", + "BIKEv_Ride": "BIKEV", + "BIKEv_Right": "BIKEV", + "BIKEv_Still": "BIKEV", + "BIKEv_drivebyFT": "BIKEV", + "BIKEv_drivebyLHS": "BIKEV", + "BIKEv_drivebyRHS": "BIKEV", + "BIKEv_getoffBACK": "BIKEV", + "BIKEv_getoffLHS": "BIKEV", + "BIKEv_getoffRHS": "BIKEV", + "BIKEv_hit": "BIKEV", + "BIKEv_jumponL": "BIKEV", + "BIKEv_jumponR": "BIKEV", + "BIKEv_kick": "BIKEV", + "BIKEv_passenger": "BIKEV", + "BIKEv_pushes": "BIKEV" + }, + "BIKE_DBZ": { + "Pass_Driveby_BWD": "BIKE_DBZ", + "Pass_Driveby_FWD": "BIKE_DBZ", + "Pass_Driveby_LHS": "BIKE_DBZ", + "Pass_Driveby_RHS": "BIKE_DBZ" + }, + "BLOWJOBZ": { + "BJ_COUCH_END_P": "BLOWJOBZ", + "BJ_COUCH_END_W": "BLOWJOBZ", + "BJ_COUCH_LOOP_P": "BLOWJOBZ", + "BJ_COUCH_LOOP_W": "BLOWJOBZ", + "BJ_COUCH_START_P": "BLOWJOBZ", + "BJ_COUCH_START_W": "BLOWJOBZ", + "BJ_STAND_END_P": "BLOWJOBZ", + "BJ_STAND_END_W": "BLOWJOBZ", + "BJ_STAND_LOOP_P": "BLOWJOBZ", + "BJ_STAND_LOOP_W": "BLOWJOBZ", + "BJ_STAND_START_P": "BLOWJOBZ", + "BJ_STAND_START_W": "BLOWJOBZ" + }, + "BMX": { + "BMX_Left": "BMX", + "BMX_Ride": "BMX", + "BMX_Right": "BMX", + "BMX_back": "BMX", + "BMX_bunnyhop": "BMX", + "BMX_drivebyFT": "BMX", + "BMX_driveby_LHS": "BMX", + "BMX_driveby_RHS": "BMX", + "BMX_fwd": "BMX", + "BMX_getoffBACK": "BMX", + "BMX_getoffLHS": "BMX", + "BMX_getoffRHS": "BMX", + "BMX_jumponL": "BMX", + "BMX_jumponR": "BMX", + "BMX_pedal": "BMX", + "BMX_pushes": "BMX", + "BMX_sprint": "BMX", + "BMX_still": "BMX" + }, + "BOMBER": { + "BOM_Plant": "BOMBER", + "BOM_Plant_2Idle": "BOMBER", + "BOM_Plant_Crouch_In": "BOMBER", + "BOM_Plant_Crouch_Out": "BOMBER", + "BOM_Plant_In": "BOMBER", + "BOM_Plant_Loop": "BOMBER" + }, + "BOX": { + "boxhipin": "BOX", + "boxhipup": "BOX", + "boxshdwn": "BOX", + "boxshup": "BOX", + "bxhipwlk": "BOX", + "bxhwlki": "BOX", + "bxshwlk": "BOX", + "bxshwlki": "BOX", + "bxwlko": "BOX", + "catch_box": "BOX" + }, + "BSKTBALL": { + "BBALL_Dnk": "BSKTBALL", + "BBALL_Dnk_Gli": "BSKTBALL", + "BBALL_Dnk_Gli_O": "BSKTBALL", + "BBALL_Dnk_Lnch": "BSKTBALL", + "BBALL_Dnk_Lnch_O": "BSKTBALL", + "BBALL_Dnk_Lnd": "BSKTBALL", + "BBALL_Dnk_O": "BSKTBALL", + "BBALL_Jump_Cancel": "BSKTBALL", + "BBALL_Jump_Cancel_O": "BSKTBALL", + "BBALL_Jump_End": "BSKTBALL", + "BBALL_Jump_Shot": "BSKTBALL", + "BBALL_Jump_Shot_O": "BSKTBALL", + "BBALL_Net_Dnk_O": "BSKTBALL", + "BBALL_SkidStop_L": "BSKTBALL", + "BBALL_SkidStop_L_O": "BSKTBALL", + "BBALL_SkidStop_R": "BSKTBALL", + "BBALL_SkidStop_R_O": "BSKTBALL", + "BBALL_WalkStop_L": "BSKTBALL", + "BBALL_WalkStop_L_O": "BSKTBALL", + "BBALL_WalkStop_R": "BSKTBALL", + "BBALL_WalkStop_R_O": "BSKTBALL", + "BBALL_def_jump_shot": "BSKTBALL", + "BBALL_def_loop": "BSKTBALL", + "BBALL_def_stepL": "BSKTBALL", + "BBALL_def_stepR": "BSKTBALL", + "BBALL_idle": "BSKTBALL", + "BBALL_idle2": "BSKTBALL", + "BBALL_idle2_O": "BSKTBALL", + "BBALL_idle_O": "BSKTBALL", + "BBALL_idleloop": "BSKTBALL", + "BBALL_idleloop_O": "BSKTBALL", + "BBALL_pickup": "BSKTBALL", + "BBALL_pickup_O": "BSKTBALL", + "BBALL_react_miss": "BSKTBALL", + "BBALL_react_score": "BSKTBALL", + "BBALL_run": "BSKTBALL", + "BBALL_run_O": "BSKTBALL", + "BBALL_walk": "BSKTBALL", + "BBALL_walk_O": "BSKTBALL", + "BBALL_walk_start": "BSKTBALL", + "BBALL_walk_start_O": "BSKTBALL" + }, + "BUDDY": { + "buddy_crouchfire": "BUDDY", + "buddy_crouchreload": "BUDDY", + "buddy_fire": "BUDDY", + "buddy_fire_poor": "BUDDY", + "buddy_reload": "BUDDY" + }, + "BUS": { + "BUS_close": "BUS", + "BUS_getin_LHS": "BUS", + "BUS_getin_RHS": "BUS", + "BUS_getout_LHS": "BUS", + "BUS_getout_RHS": "BUS", + "BUS_jacked_LHS": "BUS", + "BUS_open": "BUS", + "BUS_open_RHS": "BUS", + "BUS_pullout_LHS": "BUS" + }, + "CAMERA": { + "camcrch_cmon": "CAMERA", + "camcrch_idleloop": "CAMERA", + "camcrch_stay": "CAMERA", + "camcrch_to_camstnd": "CAMERA", + "camstnd_cmon": "CAMERA", + "camstnd_idleloop": "CAMERA", + "camstnd_lkabt": "CAMERA", + "camstnd_to_camcrch": "CAMERA", + "piccrch_in": "CAMERA", + "piccrch_out": "CAMERA", + "piccrch_take": "CAMERA", + "picstnd_in": "CAMERA", + "picstnd_out": "CAMERA", + "picstnd_take": "CAMERA" + }, + "CAR": { + "Fixn_Car_Loop": "CAR", + "Fixn_Car_Out": "CAR", + "Sit_relaxed": "CAR", + "Tap_hand": "CAR", + "Tyd2car_TurnL": "CAR", + "Tyd2car_TurnR": "CAR", + "Tyd2car_bump": "CAR", + "Tyd2car_high": "CAR", + "Tyd2car_low": "CAR", + "Tyd2car_med": "CAR", + "flag_drop": "CAR" + }, + "CARRY": { + "crry_prtial": "CARRY", + "liftup": "CARRY", + "liftup05": "CARRY", + "liftup105": "CARRY", + "putdwn": "CARRY", + "putdwn05": "CARRY", + "putdwn105": "CARRY" + }, + "CAR_CHAT": { + "CAR_Sc1_BL": "CAR_CHAT", + "CAR_Sc1_BR": "CAR_CHAT", + "CAR_Sc1_FL": "CAR_CHAT", + "CAR_Sc1_FR": "CAR_CHAT", + "CAR_Sc2_FL": "CAR_CHAT", + "CAR_Sc3_BR": "CAR_CHAT", + "CAR_Sc3_FL": "CAR_CHAT", + "CAR_Sc3_FR": "CAR_CHAT", + "CAR_Sc4_BL": "CAR_CHAT", + "CAR_Sc4_BR": "CAR_CHAT", + "CAR_Sc4_FL": "CAR_CHAT", + "CAR_Sc4_FR": "CAR_CHAT", + "car_talkm_in": "CAR_CHAT", + "car_talkm_loop": "CAR_CHAT", + "car_talkm_out": "CAR_CHAT", + "carfone_in": "CAR_CHAT", + "carfone_loopA": "CAR_CHAT", + "carfone_loopA_to_B": "CAR_CHAT", + "carfone_loopB": "CAR_CHAT", + "carfone_loopB_to_A": "CAR_CHAT", + "carfone_out": "CAR_CHAT" + }, + "CASINO": { + "Roulette_bet": "CASINO", + "Roulette_in": "CASINO", + "Roulette_loop": "CASINO", + "Roulette_lose": "CASINO", + "Roulette_out": "CASINO", + "Roulette_win": "CASINO", + "Slot_Plyr": "CASINO", + "Slot_bet_01": "CASINO", + "Slot_bet_02": "CASINO", + "Slot_in": "CASINO", + "Slot_lose_out": "CASINO", + "Slot_wait": "CASINO", + "Slot_win_out": "CASINO", + "cards_in": "CASINO", + "cards_loop": "CASINO", + "cards_lose": "CASINO", + "cards_out": "CASINO", + "cards_pick_01": "CASINO", + "cards_pick_02": "CASINO", + "cards_raise": "CASINO", + "cards_win": "CASINO", + "dealone": "CASINO", + "manwinb": "CASINO", + "manwind": "CASINO", + "wof": "CASINO" + }, + "CHAINSAW": { + "CSAW_1": "CHAINSAW", + "CSAW_2": "CHAINSAW", + "CSAW_3": "CHAINSAW", + "CSAW_G": "CHAINSAW", + "CSAW_Hit_1": "CHAINSAW", + "CSAW_Hit_2": "CHAINSAW", + "CSAW_Hit_3": "CHAINSAW", + "IDLE_csaw": "CHAINSAW", + "WEAPON_csaw": "CHAINSAW", + "WEAPON_csawlo": "CHAINSAW", + "csaw_part": "CHAINSAW" + }, + "CHOPPA": { + "CHOPPA_Left": "CHOPPA", + "CHOPPA_Pushes": "CHOPPA", + "CHOPPA_Right": "CHOPPA", + "CHOPPA_Still": "CHOPPA", + "CHOPPA_back": "CHOPPA", + "CHOPPA_bunnyhop": "CHOPPA", + "CHOPPA_drivebyFT": "CHOPPA", + "CHOPPA_driveby_LHS": "CHOPPA", + "CHOPPA_driveby_RHS": "CHOPPA", + "CHOPPA_fwd": "CHOPPA", + "CHOPPA_getoffBACK": "CHOPPA", + "CHOPPA_getoffLHS": "CHOPPA", + "CHOPPA_getoffRHS": "CHOPPA", + "CHOPPA_jumponL": "CHOPPA", + "CHOPPA_jumponR": "CHOPPA", + "CHOPPA_pedal": "CHOPPA", + "CHOPPA_ride": "CHOPPA", + "CHOPPA_sprint": "CHOPPA" + }, + "CLOTHES": { + "CLO_Buy": "CLOTHES", + "CLO_In": "CLOTHES", + "CLO_Out": "CLOTHES", + "CLO_Pose_Hat": "CLOTHES", + "CLO_Pose_In": "CLOTHES", + "CLO_Pose_In_O": "CLOTHES", + "CLO_Pose_Legs": "CLOTHES", + "CLO_Pose_Loop": "CLOTHES", + "CLO_Pose_Out": "CLOTHES", + "CLO_Pose_Out_O": "CLOTHES", + "CLO_Pose_Shoes": "CLOTHES", + "CLO_Pose_Torso": "CLOTHES", + "CLO_Pose_Watch": "CLOTHES" + }, + "COACH": { + "COACH_inL": "COACH", + "COACH_inR": "COACH", + "COACH_opnL": "COACH", + "COACH_opnR": "COACH", + "COACH_outL": "COACH", + "COACH_outR": "COACH" + }, + "COLT45": { + "2guns_crouchfire": "COLT45", + "colt45_crouchfire": "COLT45", + "colt45_crouchreload": "COLT45", + "colt45_fire": "COLT45", + "colt45_fire_2hands": "COLT45", + "colt45_reload": "COLT45", + "sawnoff_reload": "COLT45" + }, + "COP_AMBIENT": { + "Copbrowse_in": "COP_AMBIENT", + "Copbrowse_loop": "COP_AMBIENT", + "Copbrowse_nod": "COP_AMBIENT", + "Copbrowse_out": "COP_AMBIENT", + "Copbrowse_shake": "COP_AMBIENT", + "Coplook_in": "COP_AMBIENT", + "Coplook_loop": "COP_AMBIENT", + "Coplook_nod": "COP_AMBIENT", + "Coplook_out": "COP_AMBIENT", + "Coplook_shake": "COP_AMBIENT", + "Coplook_think": "COP_AMBIENT", + "Coplook_watch": "COP_AMBIENT" + }, + "COP_DVBYZ": { + "COP_Dvby_B": "COP_DVBYZ", + "COP_Dvby_FT": "COP_DVBYZ", + "COP_Dvby_L": "COP_DVBYZ", + "COP_Dvby_R": "COP_DVBYZ" + }, + "CRACK": { + "Bbalbat_Idle_01": "CRACK", + "Bbalbat_Idle_02": "CRACK", + "crckdeth1": "CRACK", + "crckdeth2": "CRACK", + "crckdeth3": "CRACK", + "crckdeth4": "CRACK", + "crckidle1": "CRACK", + "crckidle2": "CRACK", + "crckidle3": "CRACK", + "crckidle4": "CRACK" + }, + "CRIB": { + "CRIB_Console_Loop": "CRIB", + "CRIB_Use_Switch": "CRIB", + "PED_Console_Loop": "CRIB", + "PED_Console_Loose": "CRIB", + "PED_Console_Win": "CRIB" + }, + "Custom": {}, + "DAM_JUMP": { + "DAM_Dive_Loop": "DAM_JUMP", + "DAM_Land": "DAM_JUMP", + "DAM_Launch": "DAM_JUMP", + "Jump_Roll": "DAM_JUMP", + "SF_JumpWall": "DAM_JUMP" + }, + "DANCING": { + "DAN_Down_A": "DANCING", + "DAN_Left_A": "DANCING", + "DAN_Loop_A": "DANCING", + "DAN_Right_A": "DANCING", + "DAN_Up_A": "DANCING", + "bd_clap": "DANCING", + "bd_clap1": "DANCING", + "dance_loop": "DANCING", + "dnce_M_a": "DANCING", + "dnce_M_b": "DANCING", + "dnce_M_c": "DANCING", + "dnce_M_d": "DANCING", + "dnce_M_e": "DANCING" + }, + "DEALER": { + "DEALER_DEAL": "DEALER", + "DEALER_IDLE": "DEALER", + "DEALER_IDLE_01": "DEALER", + "DEALER_IDLE_02": "DEALER", + "DEALER_IDLE_03": "DEALER", + "DRUGS_BUY": "DEALER", + "shop_pay": "DEALER" + }, + "DILDO": { + "DILDO_1": "DILDO", + "DILDO_2": "DILDO", + "DILDO_3": "DILDO", + "DILDO_G": "DILDO", + "DILDO_Hit_1": "DILDO", + "DILDO_Hit_2": "DILDO", + "DILDO_Hit_3": "DILDO", + "DILDO_IDLE": "DILDO", + "DILDO_block": "DILDO" + }, + "DODGE": { + "Cover_Dive_01": "DODGE", + "Cover_Dive_02": "DODGE", + "Crush_Jump": "DODGE", + "Crushed": "DODGE" + }, + "DOZER": { + "DOZER_Align_LHS": "DOZER", + "DOZER_Align_RHS": "DOZER", + "DOZER_Jacked_LHS": "DOZER", + "DOZER_Jacked_RHS": "DOZER", + "DOZER_getin_LHS": "DOZER", + "DOZER_getin_RHS": "DOZER", + "DOZER_getout_LHS": "DOZER", + "DOZER_getout_RHS": "DOZER", + "DOZER_pullout_LHS": "DOZER", + "DOZER_pullout_RHS": "DOZER" + }, + "DRIVEBYS": { + "Gang_DrivebyLHS": "DRIVEBYS", + "Gang_DrivebyLHS_Bwd": "DRIVEBYS", + "Gang_DrivebyLHS_Fwd": "DRIVEBYS", + "Gang_DrivebyRHS": "DRIVEBYS", + "Gang_DrivebyRHS_Bwd": "DRIVEBYS", + "Gang_DrivebyRHS_Fwd": "DRIVEBYS", + "Gang_DrivebyTop_LHS": "DRIVEBYS", + "Gang_DrivebyTop_RHS": "DRIVEBYS" + }, + "FAT": { + "FatIdle": "FAT", + "FatIdle_Csaw": "FAT", + "FatIdle_Rocket": "FAT", + "FatIdle_armed": "FAT", + "FatRun": "FAT", + "FatRun_Csaw": "FAT", + "FatRun_Rocket": "FAT", + "FatRun_armed": "FAT", + "FatSprint": "FAT", + "FatWalk": "FAT", + "FatWalkSt_Rocket": "FAT", + "FatWalkSt_armed": "FAT", + "FatWalk_Csaw": "FAT", + "FatWalk_Rocket": "FAT", + "FatWalk_armed": "FAT", + "FatWalkstart": "FAT", + "FatWalkstart_Csaw": "FAT", + "IDLE_tired": "FAT" + }, + "FIGHT_B": { + "FightB_1": "FIGHT_B", + "FightB_2": "FIGHT_B", + "FightB_3": "FIGHT_B", + "FightB_G": "FIGHT_B", + "FightB_IDLE": "FIGHT_B", + "FightB_M": "FIGHT_B", + "FightB_block": "FIGHT_B", + "HitB_1": "FIGHT_B", + "HitB_2": "FIGHT_B", + "HitB_3": "FIGHT_B" + }, + "FIGHT_C": { + "FightC_1": "FIGHT_C", + "FightC_2": "FIGHT_C", + "FightC_3": "FIGHT_C", + "FightC_G": "FIGHT_C", + "FightC_IDLE": "FIGHT_C", + "FightC_M": "FIGHT_C", + "FightC_Spar": "FIGHT_C", + "FightC_block": "FIGHT_C", + "FightC_blocking": "FIGHT_C", + "HitC_1": "FIGHT_C", + "HitC_2": "FIGHT_C", + "HitC_3": "FIGHT_C" + }, + "FIGHT_D": { + "FightD_1": "FIGHT_D", + "FightD_2": "FIGHT_D", + "FightD_3": "FIGHT_D", + "FightD_G": "FIGHT_D", + "FightD_IDLE": "FIGHT_D", + "FightD_M": "FIGHT_D", + "FightD_block": "FIGHT_D", + "HitD_1": "FIGHT_D", + "HitD_2": "FIGHT_D", + "HitD_3": "FIGHT_D" + }, + "FIGHT_E": { + "FightKick": "FIGHT_E", + "FightKick_B": "FIGHT_E", + "Hit_fightkick": "FIGHT_E", + "Hit_fightkick_B": "FIGHT_E" + }, + "FINALE": { + "FIN_Climb_In": "FINALE", + "FIN_Cop1_ClimbOut2": "FINALE", + "FIN_Cop1_Loop": "FINALE", + "FIN_Cop1_Stomp": "FINALE", + "FIN_Hang_L": "FINALE", + "FIN_Hang_Loop": "FINALE", + "FIN_Hang_R": "FINALE", + "FIN_Hang_Slip": "FINALE", + "FIN_Jump_On": "FINALE", + "FIN_Land_Car": "FINALE", + "FIN_Land_Die": "FINALE", + "FIN_LegsUp": "FINALE", + "FIN_LegsUp_L": "FINALE", + "FIN_LegsUp_Loop": "FINALE", + "FIN_LegsUp_R": "FINALE", + "FIN_Let_Go": "FINALE" + }, + "FINALE2": { + "FIN_Cop1_ClimbOut": "FINALE2", + "FIN_Cop1_Fall": "FINALE2", + "FIN_Cop1_Loop": "FINALE2", + "FIN_Cop1_Shot": "FINALE2", + "FIN_Cop1_Swing": "FINALE2", + "FIN_Cop2_ClimbOut": "FINALE2", + "FIN_Switch_P": "FINALE2", + "FIN_Switch_S": "FINALE2" + }, + "FLAME": { + "FLAME_fire": "FLAME" + }, + "FOOD": { + "EAT_Burger": "FOOD", + "EAT_Chicken": "FOOD", + "EAT_Pizza": "FOOD", + "EAT_Vomit_P": "FOOD", + "EAT_Vomit_SK": "FOOD", + "FF_Dam_Bkw": "FOOD", + "FF_Dam_Fwd": "FOOD", + "FF_Dam_Left": "FOOD", + "FF_Dam_Right": "FOOD", + "FF_Die_Bkw": "FOOD", + "FF_Die_Fwd": "FOOD", + "FF_Die_Left": "FOOD", + "FF_Die_Right": "FOOD", + "FF_Sit_Eat1": "FOOD", + "FF_Sit_Eat2": "FOOD", + "FF_Sit_Eat3": "FOOD", + "FF_Sit_In": "FOOD", + "FF_Sit_In_L": "FOOD", + "FF_Sit_In_R": "FOOD", + "FF_Sit_Look": "FOOD", + "FF_Sit_Loop": "FOOD", + "FF_Sit_Out_180": "FOOD", + "FF_Sit_Out_L_180": "FOOD", + "FF_Sit_Out_R_180": "FOOD", + "SHP_Thank": "FOOD", + "SHP_Tray_In": "FOOD", + "SHP_Tray_Lift": "FOOD", + "SHP_Tray_Lift_In": "FOOD", + "SHP_Tray_Lift_Loop": "FOOD", + "SHP_Tray_Lift_Out": "FOOD", + "SHP_Tray_Out": "FOOD", + "SHP_Tray_Pose": "FOOD", + "SHP_Tray_Return": "FOOD" + }, + "FREEWEIGHTS": { + "gym_barbell": "FREEWEIGHTS", + "gym_free_A": "FREEWEIGHTS", + "gym_free_B": "FREEWEIGHTS", + "gym_free_celebrate": "FREEWEIGHTS", + "gym_free_down": "FREEWEIGHTS", + "gym_free_loop": "FREEWEIGHTS", + "gym_free_pickup": "FREEWEIGHTS", + "gym_free_putdown": "FREEWEIGHTS", + "gym_free_up_smooth": "FREEWEIGHTS" + }, + "Flowers": { + "Flower_Hit": "Flowers", + "Flower_attack": "Flowers", + "Flower_attack_M": "Flowers" + }, + "GANGS": { + "DEALER_DEAL": "GANGS", + "DEALER_IDLE": "GANGS", + "DRUGS_BUY": "GANGS", + "Invite_No": "GANGS", + "Invite_Yes": "GANGS", + "drnkbr_prtl": "GANGS", + "drnkbr_prtl_F": "GANGS", + "hndshkaa": "GANGS", + "hndshkba": "GANGS", + "hndshkca": "GANGS", + "hndshkcb": "GANGS", + "hndshkda": "GANGS", + "hndshkea": "GANGS", + "hndshkfa": "GANGS", + "hndshkfa_swt": "GANGS", + "leanIDLE": "GANGS", + "leanIN": "GANGS", + "leanOUT": "GANGS", + "prtial_gngtlkA": "GANGS", + "prtial_gngtlkB": "GANGS", + "prtial_gngtlkC": "GANGS", + "prtial_gngtlkD": "GANGS", + "prtial_gngtlkE": "GANGS", + "prtial_gngtlkF": "GANGS", + "prtial_gngtlkG": "GANGS", + "prtial_gngtlkH": "GANGS", + "prtial_hndshk_01": "GANGS", + "prtial_hndshk_biz_01": "GANGS", + "shake_carK": "GANGS", + "shake_carSH": "GANGS", + "shake_cara": "GANGS", + "smkcig_prtl": "GANGS", + "smkcig_prtl_F": "GANGS" + }, + "GHANDS": { + "LHGsign1": "GHANDS", + "LHGsign2": "GHANDS", + "LHGsign3": "GHANDS", + "LHGsign4": "GHANDS", + "LHGsign5": "GHANDS", + "RHGsign1": "GHANDS", + "RHGsign2": "GHANDS", + "RHGsign3": "GHANDS", + "RHGsign4": "GHANDS", + "RHGsign5": "GHANDS", + "gsign1": "GHANDS", + "gsign1LH": "GHANDS", + "gsign2": "GHANDS", + "gsign2LH": "GHANDS", + "gsign3": "GHANDS", + "gsign3LH": "GHANDS", + "gsign4": "GHANDS", + "gsign4LH": "GHANDS", + "gsign5": "GHANDS", + "gsign5LH": "GHANDS" + }, + "GHETTO_DB": { + "GDB_Car2_PLY": "GHETTO_DB", + "GDB_Car2_SMO": "GHETTO_DB", + "GDB_Car2_SWE": "GHETTO_DB", + "GDB_Car_PLY": "GHETTO_DB", + "GDB_Car_RYD": "GHETTO_DB", + "GDB_Car_SMO": "GHETTO_DB", + "GDB_Car_SWE": "GHETTO_DB" + }, + "GOGGLES": { + "goggles_put_on": "GOGGLES" + }, + "GRAFFITI": { + "graffiti_Chkout": "GRAFFITI", + "spraycan_fire": "GRAFFITI" + }, + "GRAVEYARD": { + "mrnF_loop": "GRAVEYARD", + "mrnM_loop": "GRAVEYARD", + "prst_loopa": "GRAVEYARD" + }, + "GRENADE": { + "WEAPON_start_throw": "GRENADE", + "WEAPON_throw": "GRENADE", + "WEAPON_throwu": "GRENADE" + }, + "GYMNASIUM": { + "GYMshadowbox": "GYMNASIUM", + "Pedals_fast": "GYMNASIUM", + "Pedals_med": "GYMNASIUM", + "Pedals_slow": "GYMNASIUM", + "Pedals_still": "GYMNASIUM", + "gym_bike_celebrate": "GYMNASIUM", + "gym_bike_fast": "GYMNASIUM", + "gym_bike_faster": "GYMNASIUM", + "gym_bike_getoff": "GYMNASIUM", + "gym_bike_geton": "GYMNASIUM", + "gym_bike_pedal": "GYMNASIUM", + "gym_bike_slow": "GYMNASIUM", + "gym_bike_still": "GYMNASIUM", + "gym_jog_falloff": "GYMNASIUM", + "gym_shadowbox": "GYMNASIUM", + "gym_tread_celebrate": "GYMNASIUM", + "gym_tread_falloff": "GYMNASIUM", + "gym_tread_getoff": "GYMNASIUM", + "gym_tread_geton": "GYMNASIUM", + "gym_tread_jog": "GYMNASIUM", + "gym_tread_sprint": "GYMNASIUM", + "gym_tread_tired": "GYMNASIUM", + "gym_tread_walk": "GYMNASIUM", + "gym_walk_falloff": "GYMNASIUM" + }, + "HAIRCUTS": { + "BRB_Beard_01": "HAIRCUTS", + "BRB_Buy": "HAIRCUTS", + "BRB_Cut": "HAIRCUTS", + "BRB_Cut_In": "HAIRCUTS", + "BRB_Cut_Out": "HAIRCUTS", + "BRB_Hair_01": "HAIRCUTS", + "BRB_Hair_02": "HAIRCUTS", + "BRB_In": "HAIRCUTS", + "BRB_Loop": "HAIRCUTS", + "BRB_Out": "HAIRCUTS", + "BRB_Sit_In": "HAIRCUTS", + "BRB_Sit_Loop": "HAIRCUTS", + "BRB_Sit_Out": "HAIRCUTS" + }, + "HEIST9": { + "CAS_G2_GasKO": "HEIST9", + "Use_SwipeCard": "HEIST9", + "swt_wllpk_L": "HEIST9", + "swt_wllpk_L_back": "HEIST9", + "swt_wllpk_R": "HEIST9", + "swt_wllpk_R_back": "HEIST9", + "swt_wllshoot_in_L": "HEIST9", + "swt_wllshoot_in_R": "HEIST9", + "swt_wllshoot_out_L": "HEIST9", + "swt_wllshoot_out_R": "HEIST9" + }, + "INT_HOUSE": { + "BED_In_L": "INT_HOUSE", + "BED_In_R": "INT_HOUSE", + "BED_Loop_L": "INT_HOUSE", + "BED_Loop_R": "INT_HOUSE", + "BED_Out_L": "INT_HOUSE", + "BED_Out_R": "INT_HOUSE", + "LOU_In": "INT_HOUSE", + "LOU_Loop": "INT_HOUSE", + "LOU_Out": "INT_HOUSE", + "wash_up": "INT_HOUSE" + }, + "INT_OFFICE": { + "FF_Dam_Fwd": "INT_OFFICE", + "OFF_Sit_2Idle_180": "INT_OFFICE", + "OFF_Sit_Bored_Loop": "INT_OFFICE", + "OFF_Sit_Crash": "INT_OFFICE", + "OFF_Sit_Drink": "INT_OFFICE", + "OFF_Sit_Idle_Loop": "INT_OFFICE", + "OFF_Sit_In": "INT_OFFICE", + "OFF_Sit_Read": "INT_OFFICE", + "OFF_Sit_Type_Loop": "INT_OFFICE", + "OFF_Sit_Watch": "INT_OFFICE" + }, + "INT_SHOP": { + "shop_cashier": "INT_SHOP", + "shop_in": "INT_SHOP", + "shop_lookA": "INT_SHOP", + "shop_lookB": "INT_SHOP", + "shop_loop": "INT_SHOP", + "shop_out": "INT_SHOP", + "shop_pay": "INT_SHOP", + "shop_shelf": "INT_SHOP" + }, + "JST_BUISNESS": { + "girl_01": "JST_BUISNESS", + "girl_02": "JST_BUISNESS", + "player_01": "JST_BUISNESS", + "smoke_01": "JST_BUISNESS" + }, + "KART": { + "KART_getin_LHS": "KART", + "KART_getin_RHS": "KART", + "KART_getout_LHS": "KART", + "KART_getout_RHS": "KART" + }, + "KISSING": { + "BD_GF_Wave": "KISSING", + "GF_CarArgue_01": "KISSING", + "GF_CarArgue_02": "KISSING", + "GF_CarSpot": "KISSING", + "GF_StreetArgue_01": "KISSING", + "GF_StreetArgue_02": "KISSING", + "Grlfrd_Kiss_01": "KISSING", + "Grlfrd_Kiss_02": "KISSING", + "Grlfrd_Kiss_03": "KISSING", + "Playa_Kiss_01": "KISSING", + "Playa_Kiss_02": "KISSING", + "Playa_Kiss_03": "KISSING", + "gfwave2": "KISSING", + "gift_get": "KISSING", + "gift_give": "KISSING" + }, + "KNIFE": { + "KILL_Knife_Ped_Damage": "KNIFE", + "KILL_Knife_Ped_Die": "KNIFE", + "KILL_Knife_Player": "KNIFE", + "KILL_Partial": "KNIFE", + "Knife_4": "KNIFE", + "Knife_G": "KNIFE", + "WEAPON_knifeidle": "KNIFE", + "knife_1": "KNIFE", + "knife_2": "KNIFE", + "knife_3": "KNIFE", + "knife_IDLE": "KNIFE", + "knife_block": "KNIFE", + "knife_hit_1": "KNIFE", + "knife_hit_2": "KNIFE", + "knife_hit_3": "KNIFE", + "knife_part": "KNIFE" + }, + "LAPDAN1": { + "LAPDAN_D": "LAPDAN1", + "LAPDAN_P": "LAPDAN1" + }, + "LAPDAN2": { + "LAPDAN_D": "LAPDAN2", + "LAPDAN_P": "LAPDAN2" + }, + "LAPDAN3": { + "LAPDAN_D": "LAPDAN3", + "LAPDAN_P": "LAPDAN3" + }, + "LOWRIDER": { + "F_smklean_loop": "LOWRIDER", + "M_smklean_loop": "LOWRIDER", + "M_smkstnd_loop": "LOWRIDER", + "RAP_A_Loop": "LOWRIDER", + "RAP_B_Loop": "LOWRIDER", + "RAP_C_Loop": "LOWRIDER", + "Sit_relaxed": "LOWRIDER", + "Tap_hand": "LOWRIDER", + "lrgirl_bdbnce": "LOWRIDER", + "lrgirl_hair": "LOWRIDER", + "lrgirl_hurry": "LOWRIDER", + "lrgirl_idle_to_l0": "LOWRIDER", + "lrgirl_idleloop": "LOWRIDER", + "lrgirl_l0_bnce": "LOWRIDER", + "lrgirl_l0_loop": "LOWRIDER", + "lrgirl_l0_to_l1": "LOWRIDER", + "lrgirl_l12_to_l0": "LOWRIDER", + "lrgirl_l1_bnce": "LOWRIDER", + "lrgirl_l1_loop": "LOWRIDER", + "lrgirl_l1_to_l2": "LOWRIDER", + "lrgirl_l2_bnce": "LOWRIDER", + "lrgirl_l2_loop": "LOWRIDER", + "lrgirl_l2_to_l3": "LOWRIDER", + "lrgirl_l345_to_l1": "LOWRIDER", + "lrgirl_l3_bnce": "LOWRIDER", + "lrgirl_l3_loop": "LOWRIDER", + "lrgirl_l3_to_l4": "LOWRIDER", + "lrgirl_l4_bnce": "LOWRIDER", + "lrgirl_l4_loop": "LOWRIDER", + "lrgirl_l4_to_l5": "LOWRIDER", + "lrgirl_l5_bnce": "LOWRIDER", + "lrgirl_l5_loop": "LOWRIDER", + "prtial_gngtlkB": "LOWRIDER", + "prtial_gngtlkC": "LOWRIDER", + "prtial_gngtlkD": "LOWRIDER", + "prtial_gngtlkE": "LOWRIDER", + "prtial_gngtlkF": "LOWRIDER", + "prtial_gngtlkG": "LOWRIDER", + "prtial_gngtlkH": "LOWRIDER" + }, + "MD_CHASE": { + "Carhit_Hangon": "MD_CHASE", + "Carhit_Tumble": "MD_CHASE", + "Fen_Choppa_L1": "MD_CHASE", + "Fen_Choppa_L2": "MD_CHASE", + "Fen_Choppa_L3": "MD_CHASE", + "Fen_Choppa_R1": "MD_CHASE", + "Fen_Choppa_R2": "MD_CHASE", + "Fen_Choppa_R3": "MD_CHASE", + "Hangon_Stun_Turn": "MD_CHASE", + "Hangon_Stun_loop": "MD_CHASE", + "MD_BIKE_2_HANG": "MD_CHASE", + "MD_BIKE_Jmp_BL": "MD_CHASE", + "MD_BIKE_Jmp_F": "MD_CHASE", + "MD_BIKE_Lnd_BL": "MD_CHASE", + "MD_BIKE_Lnd_Die_BL": "MD_CHASE", + "MD_BIKE_Lnd_Die_F": "MD_CHASE", + "MD_BIKE_Lnd_F": "MD_CHASE", + "MD_BIKE_Lnd_Roll": "MD_CHASE", + "MD_BIKE_Lnd_Roll_F": "MD_CHASE", + "MD_BIKE_Punch": "MD_CHASE", + "MD_BIKE_Punch_F": "MD_CHASE", + "MD_BIKE_Shot_F": "MD_CHASE", + "MD_HANG_Lnd_Roll": "MD_CHASE", + "MD_HANG_Loop": "MD_CHASE", + "donutdrop": "MD_CHASE" + }, + "MD_END": { + "END_SC1_PLY": "MD_END", + "END_SC1_RYD": "MD_END", + "END_SC1_SMO": "MD_END", + "END_SC1_SWE": "MD_END", + "END_SC2_PLY": "MD_END", + "END_SC2_RYD": "MD_END", + "END_SC2_SMO": "MD_END", + "END_SC2_SWE": "MD_END" + }, + "MEDIC": { + "CPR": "MEDIC" + }, + "MISC": { + "BMX_celebrate": "MISC", + "BMX_comeon": "MISC", + "Case_pickup": "MISC", + "GRAB_L": "MISC", + "GRAB_R": "MISC", + "Hiker_Pose": "MISC", + "Hiker_Pose_L": "MISC", + "Idle_Chat_02": "MISC", + "KAT_Throw_K": "MISC", + "KAT_Throw_O": "MISC", + "KAT_Throw_P": "MISC", + "PASS_Rifle_O": "MISC", + "PASS_Rifle_Ped": "MISC", + "PASS_Rifle_Ply": "MISC", + "Plane_door": "MISC", + "Plane_exit": "MISC", + "Plane_hijack": "MISC", + "Plunger_01": "MISC", + "Plyrlean_loop": "MISC", + "Run_Dive": "MISC", + "SEAT_LR": "MISC", + "SEAT_watch": "MISC", + "Scratchballs_01": "MISC", + "Seat_talk_01": "MISC", + "Seat_talk_02": "MISC", + "bitchslap": "MISC", + "bmx_idleloop_01": "MISC", + "bmx_idleloop_02": "MISC", + "bmx_talkleft_in": "MISC", + "bmx_talkleft_loop": "MISC", + "bmx_talkleft_out": "MISC", + "bmx_talkright_in": "MISC", + "bmx_talkright_loop": "MISC", + "bmx_talkright_out": "MISC", + "bng_wndw": "MISC", + "bng_wndw_02": "MISC", + "door_jet": "MISC", + "pickup_box": "MISC", + "plyr_shkhead": "MISC", + "smalplane_door": "MISC", + "smlplane_door": "MISC" + }, + "MTB": { + "MTB_Left": "MTB", + "MTB_Ride": "MTB", + "MTB_Right": "MTB", + "MTB_back": "MTB", + "MTB_bunnyhop": "MTB", + "MTB_drivebyFT": "MTB", + "MTB_driveby_LHS": "MTB", + "MTB_driveby_RHS": "MTB", + "MTB_fwd": "MTB", + "MTB_getoffBACK": "MTB", + "MTB_getoffLHS": "MTB", + "MTB_getoffRHS": "MTB", + "MTB_jumponL": "MTB", + "MTB_jumponR": "MTB", + "MTB_pedal": "MTB", + "MTB_pushes": "MTB", + "MTB_sprint": "MTB", + "MTB_still": "MTB" + }, + "MUSCULAR": { + "MscleWalkst_Csaw": "MUSCULAR", + "MscleWalkst_armed": "MUSCULAR", + "Mscle_rckt_run": "MUSCULAR", + "Mscle_rckt_walkst": "MUSCULAR", + "Mscle_run_Csaw": "MUSCULAR", + "MuscleIdle": "MUSCULAR", + "MuscleIdle_Csaw": "MUSCULAR", + "MuscleIdle_armed": "MUSCULAR", + "MuscleIdle_rocket": "MUSCULAR", + "MuscleRun": "MUSCULAR", + "MuscleRun_armed": "MUSCULAR", + "MuscleSprint": "MUSCULAR", + "MuscleWalk": "MUSCULAR", + "MuscleWalk_armed": "MUSCULAR", + "MuscleWalkstart": "MUSCULAR", + "Musclewalk_Csaw": "MUSCULAR", + "Musclewalk_rocket": "MUSCULAR" + }, + "NEVADA": { + "NEVADA_getin": "NEVADA", + "NEVADA_getout": "NEVADA" + }, + "ON_LOOKERS": { + "Pointup_in": "ON_LOOKERS", + "Pointup_loop": "ON_LOOKERS", + "Pointup_out": "ON_LOOKERS", + "Pointup_shout": "ON_LOOKERS", + "lkaround_in": "ON_LOOKERS", + "lkaround_loop": "ON_LOOKERS", + "lkaround_out": "ON_LOOKERS", + "lkup_in": "ON_LOOKERS", + "lkup_loop": "ON_LOOKERS", + "lkup_out": "ON_LOOKERS", + "lkup_point": "ON_LOOKERS", + "panic_cower": "ON_LOOKERS", + "panic_hide": "ON_LOOKERS", + "panic_in": "ON_LOOKERS", + "panic_loop": "ON_LOOKERS", + "panic_out": "ON_LOOKERS", + "panic_point": "ON_LOOKERS", + "panic_shout": "ON_LOOKERS", + "point_in": "ON_LOOKERS", + "point_loop": "ON_LOOKERS", + "point_out": "ON_LOOKERS", + "shout_01": "ON_LOOKERS", + "shout_02": "ON_LOOKERS", + "shout_in": "ON_LOOKERS", + "shout_loop": "ON_LOOKERS", + "shout_out": "ON_LOOKERS", + "wave_in": "ON_LOOKERS", + "wave_loop": "ON_LOOKERS", + "wave_out": "ON_LOOKERS" + }, + "OTB": { + "betslp_in": "OTB", + "betslp_lkabt": "OTB", + "betslp_loop": "OTB", + "betslp_out": "OTB", + "betslp_tnk": "OTB", + "wtchrace_cmon": "OTB", + "wtchrace_in": "OTB", + "wtchrace_loop": "OTB", + "wtchrace_lose": "OTB", + "wtchrace_out": "OTB", + "wtchrace_win": "OTB" + }, + "PARACHUTE": { + "FALL_SkyDive_Accel": "PARACHUTE", + "FALL_SkyDive_L": "PARACHUTE", + "FALL_SkyDive_R": "PARACHUTE", + "FALL_skyDive": "PARACHUTE", + "FALL_skyDive_DIE": "PARACHUTE", + "PARA_Land": "PARACHUTE", + "PARA_Land_O": "PARACHUTE", + "PARA_Land_Water": "PARACHUTE", + "PARA_Land_Water_O": "PARACHUTE", + "PARA_Rip_Land_O": "PARACHUTE", + "PARA_Rip_Loop_O": "PARACHUTE", + "PARA_Rip_O": "PARACHUTE", + "PARA_decel": "PARACHUTE", + "PARA_decel_O": "PARACHUTE", + "PARA_float": "PARACHUTE", + "PARA_float_O": "PARACHUTE", + "PARA_open": "PARACHUTE", + "PARA_open_O": "PARACHUTE", + "PARA_steerL": "PARACHUTE", + "PARA_steerL_O": "PARACHUTE", + "PARA_steerR": "PARACHUTE", + "PARA_steerR_O": "PARACHUTE" + }, + "PARK": { + "Tai_Chi_Loop": "PARK", + "Tai_Chi_Out": "PARK", + "Tai_Chi_in": "PARK" + }, + "PAULNMAC": { + "Piss_in": "PAULNMAC", + "Piss_loop": "PAULNMAC", + "Piss_out": "PAULNMAC", + "PnM_Argue1_A": "PAULNMAC", + "PnM_Argue1_B": "PAULNMAC", + "PnM_Argue2_A": "PAULNMAC", + "PnM_Argue2_B": "PAULNMAC", + "PnM_Loop_A": "PAULNMAC", + "PnM_Loop_B": "PAULNMAC", + "wank_in": "PAULNMAC", + "wank_loop": "PAULNMAC", + "wank_out": "PAULNMAC" + }, + "PED": { + "ARRESTgun": "PED", + "ATM": "PED", + "BIKE_elbowL": "PED", + "BIKE_elbowR": "PED", + "BIKE_fallR": "PED", + "BIKE_fall_off": "PED", + "BIKE_pickupL": "PED", + "BIKE_pickupR": "PED", + "BIKE_pullupL": "PED", + "BIKE_pullupR": "PED", + "CAR_LB": "PED", + "CAR_LB_pro": "PED", + "CAR_LB_weak": "PED", + "CAR_LjackedLHS": "PED", + "CAR_LjackedRHS": "PED", + "CAR_Lshuffle_RHS": "PED", + "CAR_Lsit": "PED", + "CAR_Qjacked": "PED", + "CAR_alignHI_LHS": "PED", + "CAR_alignHI_RHS": "PED", + "CAR_align_LHS": "PED", + "CAR_align_RHS": "PED", + "CAR_close_LHS": "PED", + "CAR_close_RHS": "PED", + "CAR_closedoorL_LHS": "PED", + "CAR_closedoorL_RHS": "PED", + "CAR_closedoor_LHS": "PED", + "CAR_closedoor_RHS": "PED", + "CAR_crawloutRHS": "PED", + "CAR_dead_LHS": "PED", + "CAR_dead_RHS": "PED", + "CAR_doorlocked_LHS": "PED", + "CAR_doorlocked_RHS": "PED", + "CAR_fallout_LHS": "PED", + "CAR_fallout_RHS": "PED", + "CAR_getinL_LHS": "PED", + "CAR_getinL_RHS": "PED", + "CAR_getin_LHS": "PED", + "CAR_getin_RHS": "PED", + "CAR_getoutL_LHS": "PED", + "CAR_getoutL_RHS": "PED", + "CAR_getout_LHS": "PED", + "CAR_getout_RHS": "PED", + "CAR_jackedLHS": "PED", + "CAR_jackedRHS": "PED", + "CAR_jumpin_LHS": "PED", + "CAR_open_LHS": "PED", + "CAR_open_RHS": "PED", + "CAR_pulloutL_LHS": "PED", + "CAR_pulloutL_RHS": "PED", + "CAR_pullout_LHS": "PED", + "CAR_pullout_RHS": "PED", + "CAR_rolldoor": "PED", + "CAR_rolldoorLO": "PED", + "CAR_rollout_LHS": "PED", + "CAR_rollout_RHS": "PED", + "CAR_shuffle_RHS": "PED", + "CAR_sit": "PED", + "CAR_sit_pro": "PED", + "CAR_sit_weak": "PED", + "CAR_sitp": "PED", + "CAR_sitpLO": "PED", + "CAR_tune_radio": "PED", + "CLIMB_Pull": "PED", + "CLIMB_Stand": "PED", + "CLIMB_Stand_finish": "PED", + "CLIMB_idle": "PED", + "CLIMB_jump": "PED", + "CLIMB_jump2fall": "PED", + "CLIMB_jump_B": "PED", + "Crouch_Roll_L": "PED", + "Crouch_Roll_R": "PED", + "DAM_LegL_frmBK": "PED", + "DAM_LegL_frmFT": "PED", + "DAM_LegL_frmLT": "PED", + "DAM_LegR_frmBK": "PED", + "DAM_LegR_frmFT": "PED", + "DAM_LegR_frmRT": "PED", + "DAM_armL_frmBK": "PED", + "DAM_armL_frmFT": "PED", + "DAM_armL_frmLT": "PED", + "DAM_armR_frmBK": "PED", + "DAM_armR_frmFT": "PED", + "DAM_armR_frmRT": "PED", + "DAM_stomach_frmBK": "PED", + "DAM_stomach_frmFT": "PED", + "DAM_stomach_frmLT": "PED", + "DAM_stomach_frmRT": "PED", + "DOOR_LHinge_O": "PED", + "DOOR_RHinge_O": "PED", + "DRIVE_BOAT": "PED", + "DRIVE_BOAT_L": "PED", + "DRIVE_BOAT_R": "PED", + "DRIVE_BOAT_back": "PED", + "DRIVE_truck_L": "PED", + "DRIVE_truck_R": "PED", + "DRIVE_truck_back": "PED", + "DUCK_cower": "PED", + "Drive_L": "PED", + "Drive_LO_R": "PED", + "Drive_LO_l": "PED", + "Drive_L_pro": "PED", + "Drive_L_pro_slow": "PED", + "Drive_L_slow": "PED", + "Drive_L_weak": "PED", + "Drive_L_weak_slow": "PED", + "Drive_R": "PED", + "Drive_R_pro": "PED", + "Drive_R_pro_slow": "PED", + "Drive_R_slow": "PED", + "Drive_R_weak": "PED", + "Drive_R_weak_slow": "PED", + "Drive_truck": "PED", + "DrivebyL_L": "PED", + "DrivebyL_R": "PED", + "Driveby_L": "PED", + "Driveby_R": "PED", + "Drown": "PED", + "EV_dive": "PED", + "EV_step": "PED", + "FALL_back": "PED", + "FALL_collapse": "PED", + "FALL_fall": "PED", + "FALL_front": "PED", + "FALL_glide": "PED", + "FALL_land": "PED", + "FALL_skyDive": "PED", + "FIGHTIDLE": "PED", + "FLOOR_hit": "PED", + "FLOOR_hit_f": "PED", + "Fight2Idle": "PED", + "FightA_1": "PED", + "FightA_2": "PED", + "FightA_3": "PED", + "FightA_G": "PED", + "FightA_M": "PED", + "FightA_block": "PED", + "FightShB": "PED", + "FightShF": "PED", + "FightSh_BWD": "PED", + "FightSh_FWD": "PED", + "FightSh_Left": "PED", + "FightSh_Right": "PED", + "GUN_BUTT": "PED", + "GUN_BUTT_crouch": "PED", + "GunCrouchBwd": "PED", + "GunCrouchFwd": "PED", + "GunMove_BWD": "PED", + "GunMove_FWD": "PED", + "GunMove_L": "PED", + "GunMove_R": "PED", + "Gun_2_IDLE": "PED", + "Gun_stand": "PED", + "HIT_GUN_BUTT": "PED", + "HIT_L": "PED", + "HIT_R": "PED", + "HIT_back": "PED", + "HIT_behind": "PED", + "HIT_front": "PED", + "HIT_walk": "PED", + "HIT_wall": "PED", + "HitA_1": "PED", + "HitA_2": "PED", + "HitA_3": "PED", + "IDLE_HBHB": "PED", + "IDLE_ROCKET": "PED", + "IDLE_armed": "PED", + "IDLE_chat": "PED", + "IDLE_csaw": "PED", + "IDLE_stance": "PED", + "IDLE_taxi": "PED", + "IDLE_tired": "PED", + "Idle_Gang1": "PED", + "Idlestance_fat": "PED", + "JOG_femaleA": "PED", + "JOG_maleA": "PED", + "JUMP_glide": "PED", + "JUMP_land": "PED", + "JUMP_launch": "PED", + "JUMP_launch_R": "PED", + "Jetpack_Idle": "PED", + "KART_L": "PED", + "KART_LB": "PED", + "KART_R": "PED", + "KART_drive": "PED", + "KD_left": "PED", + "KD_right": "PED", + "KO_shot_face": "PED", + "KO_shot_front": "PED", + "KO_shot_stom": "PED", + "KO_skid_back": "PED", + "KO_skid_front": "PED", + "KO_spin_L": "PED", + "KO_spin_R": "PED", + "Player_Sneak": "PED", + "Player_Sneak_walkstart": "PED", + "Run_Wuzi": "PED", + "Run_stop": "PED", + "Run_stopR": "PED", + "SEAT_down": "PED", + "SEAT_idle": "PED", + "SEAT_up": "PED", + "SHOT_leftP": "PED", + "SHOT_partial": "PED", + "SHOT_partial_B": "PED", + "SHOT_rightP": "PED", + "Shove_Partial": "PED", + "Smoke_in_car": "PED", + "Sprint_Wuzi": "PED", + "Swim_Tread": "PED", + "Tap_hand": "PED", + "Tap_handP": "PED", + "Turn_L": "PED", + "Turn_R": "PED", + "WALK_armed": "PED", + "WALK_civi": "PED", + "WALK_csaw": "PED", + "WALK_drunk": "PED", + "WALK_fat": "PED", + "WALK_fatold": "PED", + "WALK_gang1": "PED", + "WALK_gang2": "PED", + "WALK_old": "PED", + "WALK_player": "PED", + "WALK_rocket": "PED", + "WALK_shuffle": "PED", + "WALK_start": "PED", + "WALK_start_armed": "PED", + "WALK_start_csaw": "PED", + "WALK_start_rocket": "PED", + "WEAPON_crouch": "PED", + "WOMAN_runbusy": "PED", + "WOMAN_runfatold": "PED", + "WOMAN_runsexy": "PED", + "WOMAN_walkbusy": "PED", + "WOMAN_walkfatold": "PED", + "WOMAN_walknorm": "PED", + "WOMAN_walkold": "PED", + "WOMAN_walkpro": "PED", + "WOMAN_walksexy": "PED", + "WOMAN_walkshop": "PED", + "Walk_DoorPartial": "PED", + "Walk_Wuzi": "PED", + "XPRESSscratch": "PED", + "abseil": "PED", + "bomber": "PED", + "car_hookertalk": "PED", + "cower": "PED", + "endchat_01": "PED", + "endchat_02": "PED", + "endchat_03": "PED", + "facanger": "PED", + "facgum": "PED", + "facsurp": "PED", + "facsurpm": "PED", + "factalk": "PED", + "facurios": "PED", + "flee_lkaround_01": "PED", + "fucku": "PED", + "gang_gunstand": "PED", + "gas_cwr": "PED", + "getup": "PED", + "getup_front": "PED", + "gum_eat": "PED", + "handscower": "PED", + "handsup": "PED", + "idlestance_old": "PED", + "pass_Smoke_in_car": "PED", + "phone_in": "PED", + "phone_out": "PED", + "phone_talk": "PED", + "roadcross": "PED", + "roadcross_female": "PED", + "roadcross_gang": "PED", + "roadcross_old": "PED", + "run_1armed": "PED", + "run_armed": "PED", + "run_civi": "PED", + "run_csaw": "PED", + "run_fat": "PED", + "run_fatold": "PED", + "run_gang1": "PED", + "run_left": "PED", + "run_old": "PED", + "run_player": "PED", + "run_right": "PED", + "run_rocket": "PED", + "sprint_civi": "PED", + "sprint_panic": "PED", + "swat_run": "PED", + "turn_180": "PED", + "woman_idlestance": "PED", + "woman_run": "PED", + "woman_runpanic": "PED" + }, + "PLAYER_DVBYS": { + "Plyr_DrivebyBwd": "PLAYER_DVBYS", + "Plyr_DrivebyFwd": "PLAYER_DVBYS", + "Plyr_DrivebyLHS": "PLAYER_DVBYS", + "Plyr_DrivebyRHS": "PLAYER_DVBYS" + }, + "PLAYIDLES": { + "shift": "PLAYIDLES", + "shldr": "PLAYIDLES", + "stretch": "PLAYIDLES", + "strleg": "PLAYIDLES", + "time": "PLAYIDLES" + }, + "POLICE": { + "COP_getoutcar_LHS": "POLICE", + "CopTraf_Away": "POLICE", + "CopTraf_Come": "POLICE", + "CopTraf_Left": "POLICE", + "CopTraf_Stop": "POLICE", + "Cop_move_FWD": "POLICE", + "Door_Kick": "POLICE", + "crm_drgbst_01": "POLICE", + "plc_drgbst_01": "POLICE", + "plc_drgbst_02": "POLICE" + }, + "POOL": { + "POOL_ChalkCue": "POOL", + "POOL_Idle_Stance": "POOL", + "POOL_Long_Shot": "POOL", + "POOL_Long_Shot_O": "POOL", + "POOL_Long_Start": "POOL", + "POOL_Long_Start_O": "POOL", + "POOL_Med_Shot": "POOL", + "POOL_Med_Shot_O": "POOL", + "POOL_Med_Start": "POOL", + "POOL_Med_Start_O": "POOL", + "POOL_Place_White": "POOL", + "POOL_Short_Shot": "POOL", + "POOL_Short_Shot_O": "POOL", + "POOL_Short_Start": "POOL", + "POOL_Short_Start_O": "POOL", + "POOL_Walk": "POOL", + "POOL_Walk_Start": "POOL", + "POOL_XLong_Shot": "POOL", + "POOL_XLong_Shot_O": "POOL", + "POOL_XLong_Start": "POOL", + "POOL_XLong_Start_O": "POOL" + }, + "POOR": { + "WINWASH_Start": "POOR", + "WINWASH_Wash2Beg": "POOR" + }, + "PYTHON": { + "python_crouchfire": "PYTHON", + "python_crouchreload": "PYTHON", + "python_fire": "PYTHON", + "python_fire_poor": "PYTHON", + "python_reload": "PYTHON" + }, + "QUAD": { + "QUAD_FWD": "QUAD", + "QUAD_Left": "QUAD", + "QUAD_Right": "QUAD", + "QUAD_back": "QUAD", + "QUAD_driveby_FT": "QUAD", + "QUAD_driveby_LHS": "QUAD", + "QUAD_driveby_RHS": "QUAD", + "QUAD_getoff_B": "QUAD", + "QUAD_getoff_LHS": "QUAD", + "QUAD_getoff_RHS": "QUAD", + "QUAD_geton_LHS": "QUAD", + "QUAD_geton_RHS": "QUAD", + "QUAD_hit": "QUAD", + "QUAD_kick": "QUAD", + "QUAD_passenger": "QUAD", + "QUAD_reverse": "QUAD", + "QUAD_ride": "QUAD" + }, + "QUAD_DBZ": { + "Pass_Driveby_BWD": "QUAD_DBZ", + "Pass_Driveby_FWD": "QUAD_DBZ", + "Pass_Driveby_LHS": "QUAD_DBZ", + "Pass_Driveby_RHS": "QUAD_DBZ" + }, + "RAPPING": { + "Laugh_01": "RAPPING", + "RAP_A_IN": "RAPPING", + "RAP_A_Loop": "RAPPING", + "RAP_A_OUT": "RAPPING", + "RAP_B_IN": "RAPPING", + "RAP_B_Loop": "RAPPING", + "RAP_B_OUT": "RAPPING", + "RAP_C_Loop": "RAPPING" + }, + "RIFLE": { + "RIFLE_crouchfire": "RIFLE", + "RIFLE_crouchload": "RIFLE", + "RIFLE_fire": "RIFLE", + "RIFLE_fire_poor": "RIFLE", + "RIFLE_load": "RIFLE" + }, + "RIOT": { + "RIOT_ANGRY": "RIOT", + "RIOT_ANGRY_B": "RIOT", + "RIOT_CHANT": "RIOT", + "RIOT_FUKU": "RIOT", + "RIOT_PUNCHES": "RIOT", + "RIOT_challenge": "RIOT", + "RIOT_shout": "RIOT" + }, + "ROB_BANK": { + "CAT_Safe_End": "ROB_BANK", + "CAT_Safe_Open": "ROB_BANK", + "CAT_Safe_Open_O": "ROB_BANK", + "CAT_Safe_Rob": "ROB_BANK", + "SHP_HandsUp_Scr": "ROB_BANK" + }, + "ROCKET": { + "RocketFire": "ROCKET", + "WALK_start_rocket": "ROCKET", + "idle_rocket": "ROCKET", + "run_rocket": "ROCKET", + "walk_rocket": "ROCKET" + }, + "RUSTLER": { + "Plane_align_LHS": "RUSTLER", + "Plane_close": "RUSTLER", + "Plane_getin": "RUSTLER", + "Plane_getout": "RUSTLER", + "Plane_open": "RUSTLER" + }, + "RYDER": { + "RYD_Beckon_01": "RYDER", + "RYD_Beckon_02": "RYDER", + "RYD_Beckon_03": "RYDER", + "RYD_Die_PT1": "RYDER", + "RYD_Die_PT2": "RYDER", + "VAN_PickUp_E": "RYDER", + "VAN_PickUp_S": "RYDER", + "Van_Crate_L": "RYDER", + "Van_Crate_R": "RYDER", + "Van_Fall_L": "RYDER", + "Van_Fall_R": "RYDER", + "Van_Lean_L": "RYDER", + "Van_Lean_R": "RYDER", + "Van_Stand": "RYDER", + "Van_Stand_Crate": "RYDER", + "Van_Throw": "RYDER" + }, + "SCRATCHING": { + "sc_ltor": "SCRATCHING", + "sc_rtol": "SCRATCHING", + "scdldlp": "SCRATCHING", + "scdlulp": "SCRATCHING", + "scdrdlp": "SCRATCHING", + "scdrulp": "SCRATCHING", + "sclng_l": "SCRATCHING", + "sclng_r": "SCRATCHING", + "scmid_l": "SCRATCHING", + "scmid_r": "SCRATCHING", + "scshrtl": "SCRATCHING", + "scshrtr": "SCRATCHING" + }, + "SHAMAL": { + "SHAMAL_align": "SHAMAL", + "SHAMAL_getin_LHS": "SHAMAL", + "SHAMAL_getout_LHS": "SHAMAL", + "SHAMAL_open": "SHAMAL" + }, + "SHOP": { + "ROB_2Idle": "SHOP", + "ROB_Loop": "SHOP", + "ROB_Loop_Threat": "SHOP", + "ROB_Shifty": "SHOP", + "ROB_StickUp_In": "SHOP", + "SHP_Duck": "SHOP", + "SHP_Duck_Aim": "SHOP", + "SHP_Duck_Fire": "SHOP", + "SHP_Gun_Aim": "SHOP", + "SHP_Gun_Duck": "SHOP", + "SHP_Gun_Fire": "SHOP", + "SHP_Gun_Grab": "SHOP", + "SHP_Gun_Threat": "SHOP", + "SHP_HandsUp_Scr": "SHOP", + "SHP_Jump_Glide": "SHOP", + "SHP_Jump_Land": "SHOP", + "SHP_Jump_Launch": "SHOP", + "SHP_Rob_GiveCash": "SHOP", + "SHP_Rob_HandsUp": "SHOP", + "SHP_Rob_React": "SHOP", + "SHP_Serve_End": "SHOP", + "SHP_Serve_Idle": "SHOP", + "SHP_Serve_Loop": "SHOP", + "SHP_Serve_Start": "SHOP", + "Smoke_RYD": "SHOP" + }, + "SHOTGUN": { + "shotgun_crouchfire": "SHOTGUN", + "shotgun_fire": "SHOTGUN", + "shotgun_fire_poor": "SHOTGUN" + }, + "SILENCED": { + "CrouchReload": "SILENCED", + "SilenceCrouchfire": "SILENCED", + "Silence_fire": "SILENCED", + "Silence_reload": "SILENCED" + }, + "SKATE": { + "skate_idle": "SKATE", + "skate_run": "SKATE", + "skate_sprint": "SKATE" + }, + "SMOKING": { + "F_smklean_loop": "SMOKING", + "M_smk_drag": "SMOKING", + "M_smk_in": "SMOKING", + "M_smk_loop": "SMOKING", + "M_smk_out": "SMOKING", + "M_smk_tap": "SMOKING", + "M_smklean_loop": "SMOKING", + "M_smkstnd_loop": "SMOKING" + }, + "SNIPER": { + "WEAPON_sniper": "SNIPER" + }, + "SPRAYCAN": { + "spraycan_fire": "SPRAYCAN", + "spraycan_full": "SPRAYCAN" + }, + "STRIP": { + "PLY_CASH": "STRIP", + "PUN_CASH": "STRIP", + "PUN_HOLLER": "STRIP", + "PUN_LOOP": "STRIP", + "STR_A2B": "STRIP", + "STR_B2A": "STRIP", + "STR_B2C": "STRIP", + "STR_C1": "STRIP", + "STR_C2": "STRIP", + "STR_C2B": "STRIP", + "STR_Loop_A": "STRIP", + "STR_Loop_B": "STRIP", + "STR_Loop_C": "STRIP", + "strip_A": "STRIP", + "strip_B": "STRIP", + "strip_C": "STRIP", + "strip_D": "STRIP", + "strip_E": "STRIP", + "strip_F": "STRIP", + "strip_G": "STRIP" + }, + "SUNBATHE": { + "Lay_Bac_in": "SUNBATHE", + "Lay_Bac_out": "SUNBATHE", + "ParkSit_M_IdleA": "SUNBATHE", + "ParkSit_M_IdleB": "SUNBATHE", + "ParkSit_M_IdleC": "SUNBATHE", + "ParkSit_M_in": "SUNBATHE", + "ParkSit_M_out": "SUNBATHE", + "ParkSit_W_idleA": "SUNBATHE", + "ParkSit_W_idleB": "SUNBATHE", + "ParkSit_W_idleC": "SUNBATHE", + "ParkSit_W_in": "SUNBATHE", + "ParkSit_W_out": "SUNBATHE", + "SBATHE_F_LieB2Sit": "SUNBATHE", + "SBATHE_F_Out": "SUNBATHE", + "SitnWait_in_W": "SUNBATHE", + "SitnWait_out_W": "SUNBATHE", + "batherdown": "SUNBATHE", + "batherup": "SUNBATHE" + }, + "SWAT": { + "JMP_Wall1m_180": "SWAT", + "Rail_fall": "SWAT", + "Rail_fall_crawl": "SWAT", + "gnstwall_injurd": "SWAT", + "swt_breach_01": "SWAT", + "swt_breach_02": "SWAT", + "swt_breach_03": "SWAT", + "swt_go": "SWAT", + "swt_lkt": "SWAT", + "swt_sty": "SWAT", + "swt_vent_01": "SWAT", + "swt_vent_02": "SWAT", + "swt_vnt_sht_die": "SWAT", + "swt_vnt_sht_in": "SWAT", + "swt_vnt_sht_loop": "SWAT", + "swt_wllpk_L": "SWAT", + "swt_wllpk_L_back": "SWAT", + "swt_wllpk_R": "SWAT", + "swt_wllpk_R_back": "SWAT", + "swt_wllshoot_in_L": "SWAT", + "swt_wllshoot_in_R": "SWAT", + "swt_wllshoot_out_L": "SWAT", + "swt_wllshoot_out_R": "SWAT" + }, + "SWEET": { + "LaFin_Player": "SWEET", + "LaFin_Sweet": "SWEET", + "Sweet_injuredloop": "SWEET", + "ho_ass_slapped": "SWEET", + "plyr_hndshldr_01": "SWEET", + "sweet_ass_slap": "SWEET", + "sweet_hndshldr_01": "SWEET" + }, + "SWIM": { + "SWIM_crawl": "SWIM", + "Swim_Breast": "SWIM", + "Swim_Dive_Under": "SWIM", + "Swim_Glide": "SWIM", + "Swim_Tread": "SWIM", + "Swim_Under": "SWIM", + "Swim_jumpout": "SWIM" + }, + "SWORD": { + "Sword_Hit_1": "SWORD", + "Sword_Hit_2": "SWORD", + "Sword_Hit_3": "SWORD", + "sword_1": "SWORD", + "sword_2": "SWORD", + "sword_3": "SWORD", + "sword_4": "SWORD", + "sword_IDLE": "SWORD", + "sword_block": "SWORD", + "sword_part": "SWORD" + }, + "TANK": { + "TANK_align_LHS": "TANK", + "TANK_close_LHS": "TANK", + "TANK_doorlocked": "TANK", + "TANK_getin_LHS": "TANK", + "TANK_getout_LHS": "TANK", + "TANK_open_LHS": "TANK" + }, + "TATTOOS": { + "TAT_ArmL_In_O": "TATTOOS", + "TAT_ArmL_In_P": "TATTOOS", + "TAT_ArmL_In_T": "TATTOOS", + "TAT_ArmL_Out_O": "TATTOOS", + "TAT_ArmL_Out_P": "TATTOOS", + "TAT_ArmL_Out_T": "TATTOOS", + "TAT_ArmL_Pose_O": "TATTOOS", + "TAT_ArmL_Pose_P": "TATTOOS", + "TAT_ArmL_Pose_T": "TATTOOS", + "TAT_ArmR_In_O": "TATTOOS", + "TAT_ArmR_In_P": "TATTOOS", + "TAT_ArmR_In_T": "TATTOOS", + "TAT_ArmR_Out_O": "TATTOOS", + "TAT_ArmR_Out_P": "TATTOOS", + "TAT_ArmR_Out_T": "TATTOOS", + "TAT_ArmR_Pose_O": "TATTOOS", + "TAT_ArmR_Pose_P": "TATTOOS", + "TAT_ArmR_Pose_T": "TATTOOS", + "TAT_Back_In_O": "TATTOOS", + "TAT_Back_In_P": "TATTOOS", + "TAT_Back_In_T": "TATTOOS", + "TAT_Back_Out_O": "TATTOOS", + "TAT_Back_Out_P": "TATTOOS", + "TAT_Back_Out_T": "TATTOOS", + "TAT_Back_Pose_O": "TATTOOS", + "TAT_Back_Pose_P": "TATTOOS", + "TAT_Back_Pose_T": "TATTOOS", + "TAT_Back_Sit_In_P": "TATTOOS", + "TAT_Back_Sit_Loop_P": "TATTOOS", + "TAT_Back_Sit_Out_P": "TATTOOS", + "TAT_Bel_In_O": "TATTOOS", + "TAT_Bel_In_T": "TATTOOS", + "TAT_Bel_Out_O": "TATTOOS", + "TAT_Bel_Out_T": "TATTOOS", + "TAT_Bel_Pose_O": "TATTOOS", + "TAT_Bel_Pose_T": "TATTOOS", + "TAT_Che_In_O": "TATTOOS", + "TAT_Che_In_P": "TATTOOS", + "TAT_Che_In_T": "TATTOOS", + "TAT_Che_Out_O": "TATTOOS", + "TAT_Che_Out_P": "TATTOOS", + "TAT_Che_Out_T": "TATTOOS", + "TAT_Che_Pose_O": "TATTOOS", + "TAT_Che_Pose_P": "TATTOOS", + "TAT_Che_Pose_T": "TATTOOS", + "TAT_Drop_O": "TATTOOS", + "TAT_Idle_Loop_O": "TATTOOS", + "TAT_Idle_Loop_T": "TATTOOS", + "TAT_Sit_In_O": "TATTOOS", + "TAT_Sit_In_P": "TATTOOS", + "TAT_Sit_In_T": "TATTOOS", + "TAT_Sit_Loop_O": "TATTOOS", + "TAT_Sit_Loop_P": "TATTOOS", + "TAT_Sit_Loop_T": "TATTOOS", + "TAT_Sit_Out_O": "TATTOOS", + "TAT_Sit_Out_P": "TATTOOS", + "TAT_Sit_Out_T": "TATTOOS" + }, + "TEC": { + "TEC_crouchfire": "TEC", + "TEC_crouchreload": "TEC", + "TEC_fire": "TEC", + "TEC_reload": "TEC" + }, + "TRAIN": { + "tran_gtup": "TRAIN", + "tran_hng": "TRAIN", + "tran_ouch": "TRAIN", + "tran_stmb": "TRAIN" + }, + "TRUCK": { + "TRUCK_ALIGN_LHS": "TRUCK", + "TRUCK_ALIGN_RHS": "TRUCK", + "TRUCK_Shuffle": "TRUCK", + "TRUCK_close_LHS": "TRUCK", + "TRUCK_close_RHS": "TRUCK", + "TRUCK_closedoor_LHS": "TRUCK", + "TRUCK_closedoor_RHS": "TRUCK", + "TRUCK_getin_LHS": "TRUCK", + "TRUCK_getin_RHS": "TRUCK", + "TRUCK_getout_LHS": "TRUCK", + "TRUCK_getout_RHS": "TRUCK", + "TRUCK_jackedLHS": "TRUCK", + "TRUCK_jackedRHS": "TRUCK", + "TRUCK_open_LHS": "TRUCK", + "TRUCK_open_RHS": "TRUCK", + "TRUCK_pullout_LHS": "TRUCK", + "TRUCK_pullout_RHS": "TRUCK" + }, + "UZI": { + "UZI_crouchfire": "UZI", + "UZI_crouchreload": "UZI", + "UZI_fire": "UZI", + "UZI_fire_poor": "UZI", + "UZI_reload": "UZI" + }, + "VAN": { + "VAN_close_back_LHS": "VAN", + "VAN_close_back_RHS": "VAN", + "VAN_getin_Back_LHS": "VAN", + "VAN_getin_Back_RHS": "VAN", + "VAN_getout_back_LHS": "VAN", + "VAN_getout_back_RHS": "VAN", + "VAN_open_back_LHS": "VAN", + "VAN_open_back_RHS": "VAN" + }, + "VENDING": { + "VEND_Drink2_P": "VENDING", + "VEND_Drink_P": "VENDING", + "VEND_Eat_P": "VENDING", + "VEND_Use": "VENDING", + "VEND_Use_pt2": "VENDING", + "vend_eat1_P": "VENDING" + }, + "VORTEX": { + "CAR_jumpin_LHS": "VORTEX", + "CAR_jumpin_RHS": "VORTEX", + "vortex_getout_LHS": "VORTEX", + "vortex_getout_RHS": "VORTEX" + }, + "WAYFARER": { + "WF_Back": "WAYFARER", + "WF_Fwd": "WAYFARER", + "WF_Left": "WAYFARER", + "WF_Ride": "WAYFARER", + "WF_Right": "WAYFARER", + "WF_Still": "WAYFARER", + "WF_drivebyFT": "WAYFARER", + "WF_drivebyLHS": "WAYFARER", + "WF_drivebyRHS": "WAYFARER", + "WF_getoffBACK": "WAYFARER", + "WF_getoffLHS": "WAYFARER", + "WF_getoffRHS": "WAYFARER", + "WF_hit": "WAYFARER", + "WF_jumponL": "WAYFARER", + "WF_jumponR": "WAYFARER", + "WF_kick": "WAYFARER", + "WF_passenger": "WAYFARER", + "WF_pushes": "WAYFARER" + }, + "WEAPONS": { + "SHP_1H_Lift": "WEAPONS", + "SHP_1H_Lift_End": "WEAPONS", + "SHP_1H_Ret": "WEAPONS", + "SHP_1H_Ret_S": "WEAPONS", + "SHP_2H_Lift": "WEAPONS", + "SHP_2H_Lift_End": "WEAPONS", + "SHP_2H_Ret": "WEAPONS", + "SHP_2H_Ret_S": "WEAPONS", + "SHP_Ar_Lift": "WEAPONS", + "SHP_Ar_Lift_End": "WEAPONS", + "SHP_Ar_Ret": "WEAPONS", + "SHP_Ar_Ret_S": "WEAPONS", + "SHP_G_Lift_In": "WEAPONS", + "SHP_G_Lift_Out": "WEAPONS", + "SHP_Tray_In": "WEAPONS", + "SHP_Tray_Out": "WEAPONS", + "SHP_Tray_Pose": "WEAPONS" + }, + "WUZI": { + "CS_Dead_Guy": "WUZI", + "CS_Plyr_pt1": "WUZI", + "CS_Plyr_pt2": "WUZI", + "CS_Wuzi_pt1": "WUZI", + "CS_Wuzi_pt2": "WUZI", + "Walkstart_Idle_01": "WUZI", + "Wuzi_Greet_Plyr": "WUZI", + "Wuzi_Greet_Wuzi": "WUZI", + "Wuzi_Walk": "WUZI", + "Wuzi_follow": "WUZI", + "Wuzi_grnd_chk": "WUZI", + "Wuzi_stand_loop": "WUZI" + } +} diff --git a/Files/CheatMenu/json/cheat name.json b/Files/CheatMenu/json/cheat name.json new file mode 100644 index 0000000..15b6c1b --- /dev/null +++ b/Files/CheatMenu/json/cheat name.json @@ -0,0 +1,94 @@ +{ + "0": "Weapon Set 1", + "1": "Weapon Set 2", + "10": "Foggy Weather", + "11": "Faster Clock", + "12": "Faster Gameplay", + "13": "Slower Gameplay", + "14": "Peds Attack Other With Golfclub", + "15": "Have A Bounty On Your Head", + "16": "Everyone Armed", + "17": "Spawn Rhino", + "18": "Spawn Bloodring Banger", + "19": "Spawn Rancher", + "2": "Weapon Set 3", + "20": "Spawn HotringA", + "21": "Spawn HotringB", + "22": "Spawn Romero", + "23": "Spawn Stretch", + "24": "Spawn Trashmaster", + "25": "Spawn Caddy", + "26": "Blow Up All Cars", + "27": "Invisible Car", + "28": "Perfect Handling", + "29": "Suicide", + "3": "Health Armor 250k", + "30": "Green Lights Cheat", + "31": "Aggressive Drivers", + "32": "Pink Traffic", + "33": "Black Traffic", + "34": "Cars On Water", + "35": "Boats Fly", + "36": "Fat Player", + "37": "Max Muscle", + "38": "Skinny Player", + "39": "Elvis Is Everywhere", + "4": "Wanted Level 2 Stars", + "40": "Peds Attack You With Rockets", + "41": "Beach Party", + "42": "Gang Members Everywhere", + "43": "Gangs Controls The Streets", + "44": "Ninja Theme", + "45": "Slut Magnet", + "46": "Cheap Traffic", + "47": "Fast Traffic", + "48": "Cars Fly", + "49": "Huge Bunny Hop", + "5": "Clear Wanted Level", + "50": "Spawn Hydra", + "51": "Spawn Vortex", + "52": "Smash N Boom", + "53": "All Cars Have Nitro", + "54": "Cars Float Away When Hit", + "55": "Always Midnight", + "56": "Stop Game Clock Orange Sky", + "57": "Thunder Storm", + "58": "Sand Storm", + "59": "Unused", + "6": "Sunny Weather", + "60": "Mega Jump", + "61": "Infinite Health", + "62": "Infinite Oxygen", + "63": "Get Parachute", + "64": "Get Jetpack", + "65": "I Do As I Please", + "66": "Six Wanted Stars", + "67": "Mega Punch", + "68": "Never Get Hungry", + "69": "Riot Mode", + "7": "Very Sunny Weather", + "70": "Funhouse Theme", + "71": "Adrenaline Mode", + "72": "Infinite Ammo", + "73": "Weapon Aiming While Driving", + "74": "Reduced Traffic", + "75": "Country Traffic", + "76": "Wanna Be In My Gang", + "77": "No One Can Stop Us", + "78": "Rocket Mayhem", + "79": "Max Respect", + "8": "Overcast Weather", + "80": "Max Sex Appeal", + "81": "Max Stamina", + "82": "Hitman Level For All Weapons", + "83": "Max Driving Skills", + "84": "Spawn Hunter", + "85": "Spawn Quad", + "86": "Spawn Tanker Truck", + "87": "Spawn Dozer", + "88": "Spawn Stunt Plane", + "89": "Spawn Monster", + "9": "Rainy Weather", + "90": "Prostitutes Pay You", + "91": "All Taxis Nitro" +} diff --git a/Files/CheatMenu/json/mission.json b/Files/CheatMenu/json/mission.json new file mode 100644 index 0000000..c526882 --- /dev/null +++ b/Files/CheatMenu/json/mission.json @@ -0,0 +1,161 @@ +{ + "All": {}, + "Arena missions": { + "Beat the Cock!": "130", + "Blood Ring": "128", + "Kickstart": "129" + }, + "Big smoke": { + "Just Business": "30", + "OG Loc": "27", + "Running Dog": "28", + "Wrong Side of the Tracks": "29" + }, + "Caligulas casino": { + "Freefall": "91", + "Intensive Care": "89", + "Saint Marks Bistro": "92", + "The Meat Business": "90" + }, + "Carl johnson": { + "555 WE TIP": "51", + "Cut Throat Business": "105", + "Deconstruction": "50", + "Home Coming": "104", + "Vertical Bird": "103", + "Wear Flowers In Your Hair": "49" + }, + "Cesar vialpando": { + "King in Exile": "45" + }, + "Frank tenpenny": { + "Badlands": "39", + "Burning Desire": "22", + "Gray Imports": "23", + "High Noon": "94", + "Misappropriation": "93", + "Snail Trail": "52" + }, + "Heist": { + "Architectural Espionage": "96", + "Breaking the Bank at Caligulas": "101", + "Cop Wheels": "99", + "Dam And Blast": "98", + "Key To Her Heart": "97", + "Up Up and Away!": "100" + }, + "Introduction": { + "Big Smoke": "11", + "Ryder": "12" + }, + "Loco syndicate": { + "Ice Cold Killa": "61", + "Jizzy": "59", + "Mike Toreno": "66", + "Outrider": "60", + "Photo Opportunity": "58", + "Pier 69": "64", + "T-Bone Mendez": "65", + "Torenos Last Flight": "62", + "Yay Ka-Boom-Boom": "63" + }, + "Madd dogg": { + "Madd Dogg": "95" + }, + "Mike toreno": { + "Highjack": "76", + "Interdiction": "77", + "Monster": "75", + "Verdant Meadows": "78" + }, + "Miscellaneous": { + "Quarry": "118", + "Trucking": "117" + }, + "OG loc": { + "House Party": "34", + "Lifes a Beach": "31", + "Madd Doggs Rhymes": "32", + "Management Issues": "33" + }, + "Riot": { + "End Of The Line 1": "110", + "End Of The Line 2": "111", + "End Of The Line 3": "112", + "Los Desperados": "109", + "Riot": "108" + }, + "Robbery": { + "Against All Odds": "44", + "Local Liquor Store": "41", + "Small Town Bank": "42", + "Tanker Commander": "43" + }, + "Ryder": { + "Catalyst": "25", + "Home Invasion": "24", + "Robbing Uncle Sam": "26" + }, + "Sweet": { + "Beat Down on B Dup": "106", + "Cesar Vialpando": "19", + "Cleaning The Hood": "14", + "Doberman": "21", + "Drive-By": "17", + "Drive-Thru": "15", + "Grove 4 Life": "107", + "Los Sepulcros": "20", + "Nines And AKs": "16", + "Reuniting The Families": "37", + "Sweets Girl": "18", + "Tagging Up Turf": "13", + "The Green Sabre": "38" + }, + "The four dragons casino": { + "A Home In The Hills": "102", + "Don Peyote": "88", + "Explosive Situation": "85", + "Fender Ketchup": "84", + "Fish in a Barrel": "87", + "Youve Had Your Chips": "86" + }, + "The truth": { + "Are you going to San Fierro?": "47", + "Body Harvest": "46" + }, + "Verdant meadows airstrip": { + "Black Project": "81", + "Green Goo": "82", + "Learning to Fly": "83", + "N.O.E.": "79", + "Stowaway": "80" + }, + "Video games": { + "Beefy Baron": "10", + "Dualuty": "4", + "Go Go Space Monkey": "5", + "Inside Track Betting": "7", + "Lets Get Ready To Bumble": "6", + "Lowrider (Bet And Dance)": "9", + "They Crawled From Uranus": "3" + }, + "Wang cars": { + "Back to School": "71", + "Customs Fast Track": "69", + "Puncture Wounds": "70", + "Test Drive": "68", + "Zeroing In": "67" + }, + "WuZiMu": { + "Amphibious Assault": "56", + "Lure": "55", + "Mountain Cloud Boys": "53", + "Ran Fa Li": "54", + "The Da Nang Thang": "57" + }, + "Zero": { + "Air Raid": "72", + "New Model Army": "74", + "Supply Lines": "73" + } +} diff --git a/Files/CheatMenu/json/ped special.json b/Files/CheatMenu/json/ped special.json new file mode 100644 index 0000000..bc961c6 --- /dev/null +++ b/Files/CheatMenu/json/ped special.json @@ -0,0 +1,46 @@ +{ + "1": "TRUTH", + "119": "SINDACO", + "149": "SMOKEV", + "190-1": "COPGRL1", + "190-2": "COPGRL2", + "191-1": "GUNGRL1", + "191-2": "GUNGRL2", + "192-1": "MECGRL1", + "192-2": "MECGRL2", + "193-1": "NURGRL1", + "193-2": "NURGRL2", + "194-1": "CROGRL1", + "194-2": "CROGRL2", + "195-1": "GANGRL1", + "195-2": "GANGRL2", + "2": "MACCER", + "208": "SUZIE", + "265": "TENPEN", + "266": "PULASKI", + "267": "HERN", + "268": "DWAYNE", + "269": "SMOKE", + "270": "SWEET", + "271": "RYDER", + "272": "FORELLI", + "273": "TBONE", + "289": "ZERO", + "290": "ROSE", + "291": "PAUL", + "292": "CESAR", + "293": "OGLOC", + "294": "WUZIMU", + "295": "TORINO", + "296": "JIZZY", + "297": "MADDOGG", + "298": "CAT", + "299": "CLAUDE", + "3": "ANDRE", + "4": "BBTHIN", + "42": "JETHRO", + "5": "BB", + "6": "EMMET", + "65": "KENDL", + "8": "JANITOR" +} diff --git a/Files/CheatMenu/json/ped.json b/Files/CheatMenu/json/ped.json new file mode 100644 index 0000000..0663072 --- /dev/null +++ b/Files/CheatMenu/json/ped.json @@ -0,0 +1,312 @@ +{ + "0": "CJ", + "1": "TRUTH", + "10": "BFOST", + "100": "WMYCR", + "101": "WMYST", + "102": "BALLAS1", + "103": "BALLAS2", + "104": "BALLAS3", + "105": "FAM1", + "106": "FAM2", + "107": "FAM3", + "108": "LSV1", + "109": "LSV2", + "11": "VBFYCRP", + "110": "LSV3", + "111": "MAFFA", + "112": "MAFFB", + "113": "MAFBOSS", + "114": "VLA1", + "115": "VLA2", + "116": "VLA3", + "117": "TRIADA", + "118": "TRIADB", + "119": "SINDACO", + "12": "BFYRI", + "120": "TRIBOSS", + "121": "DNB1", + "122": "DNB2", + "123": "DNB3", + "124": "VMAFF1", + "125": "VMAFF2", + "126": "VMAFF3", + "127": "VMAFF4", + "128": "DNMYLC", + "129": "DNFOLC1", + "13": "BFYST", + "130": "DNFOLC2", + "131": "DNFYLC", + "132": "DNMOLC1", + "133": "DNMOLC2", + "134": "SBMOTR2", + "135": "SWMOTR2", + "136": "SBMYTR3", + "137": "SWMOTR3", + "138": "WFYBE", + "139": "BFYBE", + "14": "BMORI", + "140": "HFYBE", + "141": "SOFYBU", + "142": "SBMYST", + "143": "SBMYCR", + "144": "BMYCG", + "145": "WFYCRK", + "146": "HMYCM", + "147": "WMYBU", + "148": "BFYBU", + "149": "SMOKEV", + "15": "BMOST", + "150": "WFYBU", + "151": "DWFYLC1", + "152": "WFYPRO", + "153": "WMYCONB", + "154": "WMYBE", + "155": "WMYPIZZ", + "156": "BMOBAR", + "157": "CWFYHB", + "158": "CWMOFR", + "159": "CWMOHB1", + "16": "BMYAP", + "160": "CWMOHB2", + "161": "CWMYFR", + "162": "CWMYHB1", + "163": "BMYBOUN", + "164": "WMYBOUN", + "165": "WMOMIB", + "166": "BMYMIB", + "167": "WMYBELL", + "168": "BMOCHIL", + "169": "SOFYRI", + "17": "BMYBU", + "170": "SOMYST", + "171": "VWMYBJD", + "172": "VWFYCRP", + "173": "SFR1", + "174": "SFR2", + "175": "SFR3", + "176": "BMYBAR", + "177": "WMYBAR", + "178": "WFYSEX", + "179": "WMYAMMO", + "18": "BMYBE", + "180": "BMYTATT", + "181": "VWMYCR", + "182": "VBMOCD", + "183": "VBMYCR", + "184": "VHMYCR", + "185": "SBMYRI", + "186": "SOMYRI", + "187": "SOMYBU", + "188": "SWMYST", + "189": "WMYVA", + "19": "BMYDJ", + "190": "COPGRL3", + "190-1": "COPGRL1", + "190-2": "COPGRL2", + "191": "GUNGRL3", + "191-1": "GUNGRL1", + "191-2": "GUNGRL2", + "192": "MECGRL3", + "192-1": "MECGRL1", + "192-2": "MECGRL2", + "193": "NURGRL3", + "193-1": "NURGRL1", + "193-2": "NURGRL2", + "194": "CROGRL3", + "194-1": "CROGRL1", + "194-2": "CROGRL2", + "195": "GANGRL3", + "195-1": "GANGRL1", + "195-2": "GANGRL2", + "196": "CWFOFR", + "197": "CWFOHB", + "198": "CWFYFR1", + "199": "CWFYFR2", + "2": "MACCER", + "20": "BMYRI", + "200": "CWMYHB2", + "201": "DWFYLC2", + "202": "DWMYLC2", + "203": "OMYKARA", + "204": "WMYKARA", + "205": "WFYBURG", + "206": "VWMYCD", + "207": "VHFYPRO", + "208": "SUZIE", + "209": "OMONOOD", + "21": "BMYCR", + "210": "OMOBOAT", + "211": "WFYCLOT", + "212": "VWMOTR1", + "213": "VWMOTR2", + "214": "VWFYWAI", + "215": "SBFORI", + "216": "SWFYRI", + "217": "WMYCLOT", + "218": "SBFOST", + "219": "SBFYRI", + "22": "BMYST", + "220": "SBMOCD", + "221": "SBMORI", + "222": "SBMOST", + "223": "SHMYCR", + "224": "SOFORI", + "225": "SOFOST", + "226": "SOFYST", + "227": "SOMOBU", + "228": "SOMORI", + "229": "SOMOST", + "23": "WMYBMX", + "230": "SWMOTR5", + "231": "SWFORI", + "232": "SWFOST", + "233": "SWFYST", + "234": "SWMOCD", + "235": "SWMORI", + "236": "SWMOST", + "237": "SHFYPRO", + "238": "SBFYPRO", + "239": "SWMOTR4", + "24": "WBDYG1", + "240": "SWMYRI", + "241": "SMYST", + "242": "SMYST2", + "243": "SFYPRO", + "244": "VBFYST2", + "245": "VBFYPRO", + "246": "VHFYST3", + "247": "BIKERA", + "248": "BIKERB", + "249": "BMYPIMP", + "25": "WBDYG2", + "250": "SWMYCR", + "251": "WFYLG", + "252": "WMYVA2", + "253": "BMOSEC", + "254": "BIKDRUG", + "255": "WMYCH", + "256": "SBFYSTR", + "257": "SWFYSTR", + "258": "HECK1", + "259": "HECK2", + "26": "WMYBP", + "260": "BMYCON", + "261": "WMYCD1", + "262": "BMOCD", + "263": "VWFYWA2", + "264": "WMOICE", + "265": "TENPEN", + "266": "PULASKI", + "267": "HERN", + "268": "DWAYNE", + "269": "SMOKE", + "27": "WMYCON", + "270": "SWEET", + "271": "RYDER", + "272": "FORELLI", + "273": "TBONE", + "274": "LAEMT1", + "275": "LVEMT1", + "276": "SFEMT1", + "277": "LAFD1", + "278": "LVFD1", + "279": "SFFD1", + "28": "BMYDRUG", + "280": "LAPD1", + "281": "SFPD1", + "282": "LVPD1", + "283": "CSHER", + "284": "LAPDM1", + "285": "SWAT", + "286": "FBI", + "287": "ARMY", + "288": "DSHER", + "289": "ZERO", + "29": "WMYDRUG", + "290": "ROSE", + "291": "PAUL", + "292": "CESAR", + "293": "OGLOC", + "294": "WUZIMU", + "295": "TORINO", + "296": "JIZZY", + "297": "MADDOGG", + "298": "CAT", + "299": "CLAUDE", + "3": "ANDRE", + "30": "HMYDRUG", + "31": "DWFOLC", + "32": "DWMOLC1", + "33": "DWMOLC2", + "34": "DWMYLC1", + "35": "HMOGAR", + "36": "WMYGOL1", + "37": "WMYGOL2", + "38": "HFORI", + "39": "HFOST", + "4": "BBTHIN", + "40": "HFYRI", + "41": "HFYST", + "42": "JETHRO", + "43": "HMORI", + "44": "HMOST", + "45": "HMYBE", + "46": "HMYRI", + "47": "HMYCR", + "48": "HMYST", + "49": "OMOKUNG", + "5": "BB", + "50": "WMYMECH", + "51": "BMYMOUN", + "52": "WMYMOUN", + "53": "OFORI", + "54": "OFOST", + "55": "OFYRI", + "56": "OFYST", + "57": "OMORI", + "58": "OMOST", + "59": "OMYRI", + "6": "EMMET", + "60": "OMYST", + "61": "WMYPLT", + "62": "WMOPJ", + "63": "BFYPRO", + "64": "HFYPRO", + "65": "KENDL", + "66": "BMYPOL1", + "67": "BMYPOL2", + "68": "WMOPREA", + "69": "SBFYST", + "7": "MALE01", + "70": "WMOSCI", + "71": "WMYSGRD", + "72": "SWMYHP1", + "73": "SWMYHP2", + "75": "SWFOPRO", + "76": "WFYSTEW", + "77": "SWMOTR1", + "78": "WMOTR1", + "79": "BMOTR1", + "8": "JANITOR", + "80": "VBMYBOX", + "81": "VWMYBOX", + "82": "VHMYELV", + "83": "VBMYELV", + "84": "VIMYELV", + "85": "VWFYPRO", + "87": "VWFYST1", + "88": "WFORI", + "89": "WFOST", + "9": "BFORI", + "90": "WFYJG", + "91": "WFYRI", + "92": "WFYRO", + "93": "WFYST", + "94": "WMORI", + "95": "WMOST", + "96": "WMYJG", + "97": "WMYLG", + "98": "WMYRI", + "99": "WMYRO" +} diff --git a/Files/CheatMenu/json/stat.json b/Files/CheatMenu/json/stat.json new file mode 100644 index 0000000..720cdae --- /dev/null +++ b/Files/CheatMenu/json/stat.json @@ -0,0 +1,305 @@ +{ + "All": { + "120": "People wasted by others", + "121": "People you've wasted", + "131": "Total number of wanted stars attained", + "132": "Total number of wanted stars evaded", + "133": "Times busted", + "134": "Days passed in game", + "135": "Number of hospital visits", + "136": "Safehouse visits", + "137": "Times cheated", + "156": "Last dance score", + "163": "Recruited gang members killed", + "166": "Photographs Taken", + "167": "Rampages attempted", + "168": "Rampages passed", + "169": "Flight time", + "170": "Times drowned", + "172": "Best position in 8-Track", + "173": "Time on jetpack", + "174": "Shooting range levels passed", + "175": "Most cars parked on 'Valet Parking'", + "176": "Kills since last checkpoint", + "177": "Total legitimate kills", + "178": "Number of 'Bloodring' kills", + "179": "Total time in bloodring", + "180": "No more hurricanes Flag", + "181": "City unlocked", + "182": "Number of Police bribes", + "183": "Number of cars stolen", + "185": "Number of disastrous dates", + "188": "Number of successful dates", + "190": "Number of prostitutes visited", + "191": "Number of houses burgled", + "192": "Number of safes cracked", + "193": "Burgular status", + "194": "Number of stolen items sold", + "195": "Number of eight balls in pool", + "196": "Total number of wins playing pool", + "197": "Total number of losses playing pool", + "198": "Times visited the gym", + "200": "Number of meals eaten", + "203": "Number of furniture purchased", + "204": "Favorite console game", + "205": "Highest civilian peds killed on Rampage", + "206": "Highest police peds killed on Rampage", + "207": "Highest civilian vehicles destroyed on Rampage", + "208": "Highest police vehicles destroyed on Rampage", + "209": "Highest number of tanks destroyed on Rampage", + "210": "Pimping level", + "211": "Kickstart best score", + "212": "Best lap time in 8-Track", + "213": "Number of vehicles exported", + "214": "Number of vehicles imported", + "215": "Highest basketball score", + "216": "Fires started", + "217": "Amount of drugs sold", + "218": "Amount of drugs bought", + "225": "Lung capacity", + "226": "Game gore rating", + "227": "Game sex rating", + "231": "Snapshots taken", + "232": "Total snapshots", + "233": "Luck", + "234": "Territories taken over", + "235": "Territories lost", + "236": "Territories held", + "237": "Highest number of territories held", + "238": "Gang members recruited", + "239": "Enemy gang members killed", + "240": "Friendly gang members killed", + "241": "Horseshoes collected", + "242": "Total horseshoes", + "243": "Oysters collected", + "244": "Total oysters", + "245": "Calories", + "251": "'Keepie Uppy' best time", + "320": "Playing time", + "321": "Hidden Packages found", + "322": "Tags sprayed", + "323": "Least favorite gang", + "324": "Gang members wasted", + "325": "Criminals wasted", + "326": "Most Favorite Radio Station", + "327": "Least Favorite Radio Station", + "330": "Pilot ranking", + "331": "Strongest Gang", + "332": "2nd strongest gang", + "333": "3rd strongest gang", + "334": "Money lost gambling", + "336": "Gang strength", + "44": "Longest treadmill time", + "45": "Longest exercise bike time", + "46": "Heaviest weight on bench press", + "47": "Heaviest weight on dumbbells", + "48": "Best time in 8-Track", + "50": "Lightest weight", + "51": "Longest chase time with 5 or more stars", + "52": "Last chase time with 5 or more stars", + "63": "Time spent underwater", + "64": "Total respect", + "66": "Clothes respect", + "67": "Fitness respect", + "68": "Respect", + "80": "Appearance", + "81": "Gambling" + }, + "Girls": { + "171": "Number of girls pimped", + "184": "Current number of girlfriends", + "186": "Number of girls dated", + "187": "Number of times scored with a girl", + "189": "Number of girls dumped", + "252": "Progress with Denise", + "253": "Progress with Michelle", + "254": "Progress with Helena", + "255": "Progress with Barbara", + "256": "Progress with Katie", + "257": "Progress with Millie", + "32": "Girlfriend budget", + "65": "Girlfriend respect" + }, + "Missions": { + "0": "Progress made", + "1": "Total progress", + "146": "Mission attempts", + "147": "Missions passed", + "148": "Total number of missions in game", + "152": "Criminals killed on Vigilante Mission", + "157": "Highest Vigilante Mission level", + "158": "Highest Paramedic Mission level", + "159": "Highest Firefighter Mission level", + "161": "Number of Truck missions passed", + "201": "Money made in Quarry", + "202": "Time taken to Complete Quarry", + "224": "Respect Mission", + "228": "Respect Mission Total", + "258": "Best position in Lowrider Race", + "259": "Best time in Lowrider Race", + "260": "Best position in Little Loop", + "261": "Best time in Little Loop", + "262": "Best position in Backroad Wanderer", + "263": "Best time in Backroad Wanderer", + "264": "Best position in City Circuit", + "265": "Best time in City Circuit", + "266": "Best position in Vinewood", + "267": "Best time in Vinewood", + "268": "Best position in Freeway", + "269": "Best time in Freeway", + "270": "Best position in Into the Country", + "271": "Best time in Into the Country", + "272": "Best position in Badlands A", + "273": "Best time in Badlands A", + "274": "Best position in Badlands B", + "275": "Best time in Badlands B", + "276": "Best position in Dirtbike Danger", + "277": "Best time in Dirtbike Danger", + "278": "Best position in Bandito County", + "279": "Best time in Bandito County", + "280": "Best position in Go-Go-Kart", + "281": "Best time in Go-Go-Kart", + "282": "Best position in San Fierro Fastlane", + "283": "Best time in San Fierro Fastlane", + "284": "Best position in San Fierro Hills", + "285": "Best time in San Fierro Hills", + "286": "Best position in Country Endurance", + "287": "Best time in Country Endurance", + "288": "Best position in SF to LV", + "289": "Best time in SF to LV", + "290": "Best position in Dam Rider", + "291": "Best time in Dam Rider", + "292": "Best position in Desert Tricks", + "293": "Best time in Desert Tricks", + "294": "Best position in LV Ringroad", + "295": "Best time in LV Ringroad", + "296": "Best time in World War Aces", + "297": "Best time in Barnstorming", + "298": "Best time in Military Service", + "299": "Best time in Chopper Checkpoint", + "300": "Best time in Whirly Bird Waypoint", + "301": "Best time in Heli Hell", + "302": "Drive-thru mission accomplished", + "303": "Management Issues mission accomplished", + "304": "555 WE TIP mission accomplished", + "305": "Yay Ka-Boom-Boom mission accomplished", + "306": "Fish in a Barrel mission accomplished", + "307": "Breaking the Bank at Caligula's mission accomplished", + "308": "A Home In The Hills mission accomplished", + "309": "maybe set riot mode", + "310": "Ryder's mission Robbing Uncle Sam accomplished", + "311": "Mike Toreno mission accomplished", + "312": "Architectural Espionage mission accomplished", + "313": "Jizzy mission accomplished", + "314": "Reuniting the Families mission accomplished", + "315": "Small Town Bank mission accomplished", + "316": "Photo Opportunity mission accomplished", + "317": "Don Peyote mission accomplished", + "318": "Local Liquor Store mission accomplished", + "319": "Badlands mission accomplished", + "335": "Riot Mission accomplished", + "337": "Territory under control", + "338": "Are you going to San Fierro? mission accomplished", + "339": "High Noon mission accomplished", + "340": "The Green Sabre mission accomplished", + "341": "maybe Catalina meeting", + "342": "maybe Wu Zi meeting", + "58": "Time spent on longest mission", + "59": "Time spent on quickest mission", + "60": "Average mission time" + }, + "Money": { + "14": "Fashion Budget", + "15": "Property Budget", + "20": "Food Budget", + "30": "Tattoo budget", + "31": "Hairdressing budget", + "33": "Prostitute budget", + "34": "Furniture budget", + "35": "Money spent gambling", + "36": "Money made from pimping", + "37": "Money won gambling", + "38": "Biggest gambling win", + "39": "Biggest gambling loss", + "40": "Largest burglary swag", + "41": "Money made from burglary", + "42": "Money spent building property", + "53": "Wage bill", + "54": "Strip club budget", + "56": "Time spent shopping", + "57": "Time spent gambling", + "61": "Drugs budget", + "62": "Total shopping budget" + }, + "Vehicle": { + "10": "Longest Wheelie distance", + "11": "Longest Stoppie distance", + "12": "Longest 2 wheels distance", + "122": "Road Vehicles destroyed", + "123": "Boats destroyed", + "124": "Planes & Helicopters destroyed", + "125": "Cost of property damaged", + "138": "Vehicle Resprays", + "139": "Maximum INSANE Jump distance", + "140": "Maximum INSANE Jump height", + "141": "Maximum INSANE Jump flips", + "142": "Maximum INSANE Jump rotation", + "143": "Best INSANE stunt awarded", + "144": "Unique Jumps found", + "145": "Unique Jumps done", + "149": "Cash made in a Taxi", + "150": "Passengers dropped off", + "151": "People saved in an Ambulance", + "153": "Total fires extinguished", + "154": "Packages Delivered", + "155": "Assassinations", + "16": "Auto Repair and Painting Budget", + "160": "Driving skill", + "162": "Money made in Truck", + "17": "Longest Wheelie time", + "18": "Longest Stoppie time", + "19": "Longest 2 wheels time", + "2": "Furthest Hoop", + "219": "Best lap time in dirt track", + "220": "Best time in dirt track", + "221": "Best position in dirt track", + "222": "NRG-500 best time", + "223": "Flying skill", + "229": "Bike skill", + "230": "Cycling skill", + "26": "Distance travelled by swimming", + "27": "Distance travelled by bicycle", + "28": "Distance travelled on treadmill", + "29": "Distance travelled on exercise bike", + "3": "Distance travelled on foot", + "4": "Distance travelled by car", + "49": "BMX best time", + "5": "Distance travelled by motorbike", + "55": "Car modification budget", + "6": "Distance travelled by boat", + "7": "Distance travelled by golf cart", + "8": "Distance travelled by helicopter", + "9": "Distance travelled by plane" + }, + "Weapons": { + "126": "Bullets fired", + "127": "Kgs of explosives used", + "128": "Bullets that hit", + "129": "Tires popped with gunfire", + "13": "Weapon Budget", + "130": "Number of headshots", + "328": "Current weapon skill", + "329": "Weapon skill levels", + "69": "Pistol Skill", + "70": "Silenced Pistol Skill", + "71": "Desert Eagle Skill", + "72": "Shotgun Skill", + "73": "Sawn-Off Shotgun Skill", + "74": "Combat Shotgun Skill", + "75": "Machine Pistol Skill", + "76": "SMG Skill", + "77": "AK-47 Skill", + "78": "M4 Skill", + "79": "Rifle Skill" + } +} diff --git a/Files/CheatMenu/json/teleport.json b/Files/CheatMenu/json/teleport.json new file mode 100644 index 0000000..4fbc28a --- /dev/null +++ b/Files/CheatMenu/json/teleport.json @@ -0,0 +1,850 @@ +{ + "All": {}, + "Bribes": { + "Bribe 1": "0, 2743, 1316, 8", + "Bribe 10": "0, 1592.91, 2053.83, 10.26", + "Bribe 11": "0, 1971.29, 2330.26, 10.41", + "Bribe 12": "0, 1700.74, 1792.7, 10.41", + "Bribe 13": "0, 2581, -1491, 24", + "Bribe 14": "0, 2296, -1696, 14", + "Bribe 15": "0, 2273, -1099, 38", + "Bribe 16": "0, 2716, -1048, 66", + "Bribe 17": "0, 2614, -2496, 33", + "Bribe 18": "0, 1183.85, -1250.68, 14.7", + "Bribe 19": "0, 1970, -1158, 21", + "Bribe 2": "0, 2168.66, 2267.96, 15.34", + "Bribe 20": "0, 734, -1137, 18", + "Bribe 21": "0, 2553.76, -2464.31, 13.62", + "Bribe 22": "0, 1204.06, -1613.89, 13.28", + "Bribe 23": "0, 611.21, -1459.63, 14.01", + "Bribe 24": "0, 1116.67, -719.91, 100.17", + "Bribe 25": "0, -1903.1, -466.44, 25.18", + "Bribe 26": "0, -2657, -144, 4", + "Bribe 27": "0, -2454, -166, 35", + "Bribe 28": "0, -2009, 1227, 32", + "Bribe 29": "0, -2120, 96.39, 39", + "Bribe 3": "0, 2408, 1389, 22", + "Bribe 30": "0, -2411, -334, 37", + "Bribe 31": "0, -1690, 450, 13", + "Bribe 32": "0, -1991.26, -1144.13, 29.69", + "Bribe 33": "0, -2636.13, -492.83, 70.09", + "Bribe 34": "0, -2022.68, 345.98, 35.17", + "Bribe 35": "0, -2683.2, 784.13, 49.98", + "Bribe 36": "0, -1820.67, -154.12, 9.4", + "Bribe 37": "0, -736, 66, 24", + "Bribe 38": "0, 262.33, -149.12, 1.58", + "Bribe 39": "0, 1643, 264, 20", + "Bribe 4": "0, 2034, 842, 10", + "Bribe 40": "0, 601.98, 2150.38, 39.41", + "Bribe 41": "0, -1407, -2039, 1", + "Bribe 42": "0, -2156, -2371, 31", + "Bribe 43": "0, -419.25, 1362.36, 12.21", + "Bribe 44": "0, 629.04, 2842.83, 25.21", + "Bribe 45": "0, 690.49, -209.59, 25.6", + "Bribe 46": "0, 88.82, -125.1, 0.85", + "Bribe 47": "0, -2305.24, 2310.11, 4.98", + "Bribe 48": "0, -213.61, 2717.44, 62.68", + "Bribe 5": "0, 2096, 1287, 10.8", + "Bribe 6": "0, 1987, 1543, 16", + "Bribe 7": "0, 1854, 912, 10.8", + "Bribe 8": "0, 2540.38, 2527.85, 10.39", + "Bribe 9": "0, 1548.02, 1024.47, 10.39" + }, + "Custom": {}, + "Exports": { + "Export 1": "0, -1006.41, -628.27, 32", + "Export 10": "0, 1122.29, -1699.76, 13.43", + "Export 11": "0, 1923.9301, -2118.8899, 13.35", + "Export 12": "0, -1675.9399, -618.74, 13.86", + "Export 13": "0, -2430.22, 320.84, 34.97", + "Export 14": "0, -2265.3301, 200.65, 34.97", + "Export 15": "0, 2282.7, 2535.8799, 10.39", + "Export 16": "0, 1272.24, 2603.03, 10.49", + "Export 17": "0, -112.4, -41.82, 3.26", + "Export 18": "0, -2456.1001, 741.65, 34.92", + "Export 19": "0, -1951.8101, 2393.8301, 50.08", + "Export 2": "0, -2085.23, -2437.52, 30.31", + "Export 20": "0, -2751.79, -281.5, 6.81", + "Export 21": "0, 1747.87, -2098.03, 13.28", + "Export 22": "0, 1144.46, -1101.26, 25.35", + "Export 23": "0, -2406.25, -2180.8401, 33.39", + "Export 24": "0, 2163.79, 1810.23, 10.58", + "Export 25": "0, 2207.4299, 1286.13, 10.57", + "Export 26": "0, 2133.04, 1009.75, 10.49", + "Export 27": "0, 2229.3, 1402.99, 10.82", + "Export 28": "0, -1550.4, 2687.54, 56.22", + "Export 29": "0, -2068.6899, -83.75, 35.1", + "Export 3": "0, -1922.1899, 288.34, 40.84", + "Export 30": "0, 682.17, -1867.46, 4.82", + "Export 4": "0, -16.66, -2521.1699, 36.37", + "Export 5": "0, 1803.38, -1931.05, 13.66", + "Export 6": "0, -1673.9399, 439.02, 7.01", + "Export 7": "0, 926.45, -1292.29, 13.6", + "Export 8": "0, -2665.4399, 990.77, 64.45", + "Export 9": "0, -2516.5979, 1228.9192, 36.4283" + }, + "Horseshoes": { + "Horseshoe 1": "0, 1224, 2617, 11", + "Horseshoe 10": "0, 2612, 2200, -1", + "Horseshoe 11": "0, 2274, 1507, 24", + "Horseshoe 12": "0, 2184, 2529, 11", + "Horseshoe 13": "0, 1863, 2314, 15", + "Horseshoe 14": "0, 2054, 2434, 166", + "Horseshoe 15": "0, 1603, 1435, 11", + "Horseshoe 16": "0, 1362.92, 1015.24, 11", + "Horseshoe 17": "0, 2058.7, 2159.1, 16", + "Horseshoe 18": "0, 2003, 1672, 12", + "Horseshoe 19": "0, 2238, 1135, 49", + "Horseshoe 2": "0, 2323, 1284, 98", + "Horseshoe 20": "0, 1934.06, 988.79, 22", + "Horseshoe 21": "0, 1768, 2847, 9", + "Horseshoe 22": "0, 1084, 1076, 11", + "Horseshoe 23": "0, 2879, 2522, 11", + "Horseshoe 24": "0, 2371, 2009, 15", + "Horseshoe 25": "0, 1521, 1690, 10.6", + "Horseshoe 26": "0, 2417, 1281, 21", + "Horseshoe 27": "0, 1376, 2304, 15", + "Horseshoe 28": "0, 1393, 1832, 12.34", + "Horseshoe 29": "0, 984, 2563, 12", + "Horseshoe 3": "0, 2035, 2305, 18", + "Horseshoe 30": "0, 1767, 601, 13", + "Horseshoe 31": "0, 2108, 1003, 46", + "Horseshoe 32": "0, 2705.98, 1862.52, 24.41", + "Horseshoe 33": "0, 2493, 922, 16", + "Horseshoe 34": "0, 1881, 2846, 11", + "Horseshoe 35": "0, 2020, 2352, 11", + "Horseshoe 36": "0, 1680.3, 2226.86, 16.11", + "Horseshoe 37": "0, 1462, 936, 10", + "Horseshoe 38": "0, 2125.5, 789.23, 11.45", + "Horseshoe 39": "0, 2588, 1902, 15", + "Horseshoe 4": "0, 2491, 2263, 15", + "Horseshoe 40": "0, 919, 2070, 11", + "Horseshoe 41": "0, 2173, 2465, 11", + "Horseshoe 42": "0, 2031.25, 2207.33, 11", + "Horseshoe 43": "0, 2509, 1144, 19", + "Horseshoe 44": "0, 2215, 1968, 11", + "Horseshoe 45": "0, 2626, 2841, 11", + "Horseshoe 46": "0, 2440.08, 2161.07, 20", + "Horseshoe 47": "0, 1582, 2401, 19", + "Horseshoe 48": "0, 2077, 1912, 14", + "Horseshoe 49": "0, 970, 1787, 11", + "Horseshoe 5": "0, 1433, 2796, 20", + "Horseshoe 50": "0, 1526.22, 751, 29.04", + "Horseshoe 6": "0, 2071, 712, 11", + "Horseshoe 7": "0, 2239, 1839, 18", + "Horseshoe 8": "0, 2583, 2387, 16", + "Horseshoe 9": "0, 2864, 857, 13" + }, + "Interior": { + "24/7 1": "17, -25.884498, -185.868988, 1003.546875", + "24/7 2": "10, 6.091179, -29.271898, 1003.549438", + "24/7 3": "18, -30.946699, -89.609596, 1003.546875", + "24/7 4": "16, -25.132598, -139.066986, 1003.546875", + "24/7 5": "4, -27.312299, -29.277599, 1003.557250", + "24/7 6": "6, -26.691598, -55.714897, 1003.546875", + "8-Track": "7, -1398.065307, -217.028900, 1051.115844", + "Airport baggage reclaim": "14, -1861.936889, 54.908092, 1061.143554", + "Airport ticket desk": "14, -1827.147338, 7.207417, 1061.143554", + "Ammunation 1": "1, 286.148986, -40.644397, 1001.515625", + "Ammunation 2": "4, 286.800994, -82.547599, 1001.515625", + "Ammunation 3": "6, 296.919982, -108.071998, 1001.515625", + "Ammunation 4": "7, 314.820983, -141.431991, 999.601562", + "Ammunation 5": "6, 316.524993, -167.706985, 999.593750", + "Ammunation booths": "7, 302.292877, -143.139099, 1004.062500", + "Ammunation range": "7, 298.507934, -141.647048, 1004.054748", + "Andromada": "9, 315.745086, 984.969299, 1958.919067", + "Area 51": "0, 223.431976, 1872.400268, 13.734375", + "B Dups crack pad": "2, 1523.509887, -47.821197, 1002.130981", + "B Dups house": "3, 1527.229980, -11.574499, 1002.097106", + "Bank": "0, 2319.714843, -14.838361, 26.749565", + "Bar": "11, 501.980987, -69.150199, 998.757812", + "Barbara room": "5, 322.197998, 302.497985, 999.148437", + "Barber 1": "2, 411.625976, -21.433298, 1001.804687", + "Barber 2": "3, 418.652984, -82.639793, 1001.804687", + "Barber 3": "12, 412.021972, -52.649898, 1001.898437", + "Barn": "3, 291.141082763672, 310.135040283203, 999.1484375", + "Big spread ranch": "3, 1212.019897, -28.663099, 1000.953125", + "Binco": "15, 207.737991, -109.019996, 1005.132812", + "Blastin fools hallway": "3, 1038.531372, 0.111030, 1001.284484", + "Bloodbowl": "15, -1398.103515, 937.631164, 1036.479125", + "Blueberry warehouse": "0, 76.632553, -301.156829, 1.578125", + "Budget inn motel room": "12, 444.646911, 508.239044, 1001.419494", + "Burger shot": "10, 375.962463, -65.816848, 1001.507812", + "Cafe": "5, 450.560333251953, -107.105247497559, 1000.88635253906", + "Car school": "3, -2029.798339, -106.675910, 1035.171875", + "Catigulas": "1, 2131.507812, 1600.818481, 1008.359375", + "Catigulas basement": "1, 2169.461181, 1618.798339, 999.976562", + "Cj's house": "3, 2496.049804, -1695.238159, 1014.742187", + "Club": "17, 493.390991, -22.722799, 1000.679687", + "Cluckin bell": "9, 369.579528, -4.487294, 1001.858886", + "Colonel Furhberger's": "8, 2807.619873, -1171.899902, 1025.570312", + "Crack den": "5, 318.564971, 1118.209960, 1083.882812", + "Crack factory": "2, 2543.462646, -1308.379882, 1026.728393", + "Denise room": "1, 244.411987, 305.032989, 999.148437", + "Didier sachs": "14, 204.332992, -166.694992, 1000.523437", + "Dillimore gas station": "0, 663.836242, -575.605407, 16.343263", + "Dirt track": "4, -1444.645507, -664.526000, 1053.572998", + "FDC Janitors room": "10, 1889.953369, 1017.438293, 31.882812", + "Fanny batters": "6, 761.412963, 1440.191650, 1102.703125", + "Gang house": "5, 2350.339843, -1181.649902, 1027.976562", + "Gant bridge diner": "5, 454.973937, -110.104995, 1000.077209", + "Helena room": "3, 291.282989, 310.031982, 999.148437", + "Jays diner": "4, 457.304748, -88.428497, 999.554687", + "Jefferson motel": "15, 2215.454833, -1147.475585, 1025.796875", + "Katie room": "2, 271.884979, 306.631988, 999.148437", + "Kickstart": "14, -1465.268676, 1557.868286, 1052.531250", + "LS Atruim": "18, 1710.433715, -1669.379272, 20.225049", + "LS Garage": "0, 1643.839843, -1514.819580, 13.566620", + "LS gym": "5, 772.111999, -3.898649, 1000.728820", + "LS police HQ": "6, 246.783996, 63.900199, 1003.640625", + "LV Warehouse 1": "0, 1059.895996, 2081.685791, 10.820312", + "LV Warehouse 2": "0, 1059.180175, 2148.938720, 10.820312", + "LV gym": "7, 773.579956, -77.096694, 1000.655029", + "LV police HQ": "3, 288.745971, 169.350997, 1007.171875", + "Liberty city inside": "1, -794.806396, 497.738037, 1376.195312", + "Liberty city outside": "1, -729.276000, 503.086944, 1371.971801", + "Lil probe inn": "18, -227.027999, 1401.229980, 27.765625", + "Lil probe inn toilet": "18, -221.059051, 1408.984008, 27.773437", + "Madd Doggs mansion": "5, 1267.663208, -781.323242, 1091.906250", + "Meat factory": "1, 963.418762, 2108.292480, 1011.030273", + "Michelle room": "4, 302.180999, 300.722991, 999.148437", + "Millie room": "6, 346.870025, 309.259033, 999.155700", + "Millie's House": "6, 345.892669677734, 306.162902832031, 999.1484375", + "Off track betting shop": "3, 833.269775, 10.588416, 1004.179687", + "Og Locs house": "3, 513.882507, -11.269994, 1001.565307", + "Place A": "3, 1041.75390625, 10.1560220718384, 1001.28448486328", + "Place B": "3, 959.504577636719, -7.69411325454712, 1001.1484375", + "Place C": "3, 962.10498046875, -50.9754791259766, 1001.1171875", + "Planning Department": "3, 388.872009277344, 173.811111450195, 1008.3828125", + "Planning dept": "3, 384.808624, 173.804992, 1008.382812", + "Pleasure domes": "3, -2640.762939, 1406.682006, 906.460937", + "Prolaps": "3, 207.054992, -138.804992, 1003.507812", + "RC Battlefield": "10, -975.975708, 1060.983032, 1345.671875", + "Rusty browns donuts": "17, 381.169189, -188.803024, 1000.632812", + "Ryders house": "2, 2454.717041, -1700.871582, 1013.515197", + "SF Bomb shop": "0, -1685.636474, 1035.476196, 45.210937", + "SF Garage": "0, -1790.378295, 1436.949829, 7.187500", + "SF gym": "6, 774.213989, -48.924297, 1000.585937", + "SF police HQ": "10, 246.375991, 109.245994, 1003.218750", + "Secret valley diner": "6, 435.271331, -80.958938, 999.554687", + "Sex shop": "3, -103.559165, -24.225606, 1000.718750", + "Shamal": "1, 1.808619, 32.384357, 1199.593750", + "Sherman dam": "17, -959.564392, 1848.576782, 9.000000", + "Strip club": "2, 1204.809936, -11.586799, 1000.921875", + "Strip club private room": "2, 1204.809936, 13.897239, 1000.921875", + "Suburban": "1, 203.777999, -48.492397, 1001.804687", + "Sweets garage": "0, 2522.000000, -1673.383911, 14.866223", + "Sweets house": "1, 2527.654052, -1679.388305, 1015.498596", + "Tatoo parlour 1": "16, -204.439987, -26.453998, 1002.273437", + "Tatoo parlour 2": "17, -204.439987, -8.469599, 1002.273437", + "Tatoo parlour 3": "3, -204.439987, -43.652496, 1002.273437", + "Tiger skin brothel": "3, 964.106994, -53.205497, 1001.124572", + "Unnamed brothel": "3, 942.171997, -16.542755, 1000.929687", + "Unused safe house": "12, 2324.419921, -1145.568359, 1050.710083", + "Vice stadium": "1, -1401.829956, 107.051300, 1032.273437", + "Victim": "5, 226.293991, -7.431529, 1002.210937", + "Warehouse 1": "1, 1412.639892, -1.787510, 1000.924377", + "Warehouse 2": "18, 1302.519897, -1.787510, 1001.028259", + "Welcome pump": "1, 681.557861, -455.680053, -25.609874", + "Well stacked pizza": "5, 373.825653, -117.270904, 1001.499511", + "Woozies office": "1, -2159.122802, 641.517517, 1052.381713", + "World of coq": "1, 452.489990, -18.179698, 1001.132812", + "Zeros RC shop": "6, -2240.468505, 137.060440, 1035.414062", + "Zip": "18, 161.391006, -93.159156, 1001.804687" + }, + "Map": { + "Angel Pine : Vice City Maps": "0, -2177.60961914063, -2437.34497070313, 30.625", + "Back o Beyond : Ghost Car": "0, -862.708190917969, -2280.87768554688, 26.2417907714844", + "Blueberry : Liquor Store": "0, 254.497406005859, -66.0255889892578, 1.578125", + "Blueberry : Locals Only Shop": "0, 276.548187255859, -157.536209106445, 1.5704517364502", + "Bone County : Antena": "0, -225.078796386719, 1396.11413574219, 172.4140625", + "Bone County : Area 69 (inside)": "0, 268.621276855469, 1887.26489257813, -29.53125", + "Bone County : Astro Drive-In": "0, 148.567153930664, 1100.38610839844, 14.0299491882324", + "Bone County : Cave": "0, -400.1201171875, 1233.3515625, 5.85399532318115", + "Bone County : Lil' Probe Inn": "0, -84.36767578125, 1370.42724609375, 10.2734375", + "Bone County : Los Brujas": "0, -373.940795898438, 2196.25903320313, 42.0821113586426", + "Bone County : Regular Tom": "0, -318.049346923828, 1843.87377929688, 42.359375", + "Bone County : The Big Ear": "0, -367.559143066406, 1581.53552246094, 76.1306381225586", + "Bone County : The Big Spread Ranch Strip Club": "0, 693.90673828125, 1940.20239257813, 5.5390625", + "Chiliad Mountain : House on the slope": "0, -2799.70458984375, -1528.5595703125, 139.274612426758", + "Chiliad Mountain : Top of Chiliad Mountain": "0, -2329.65673828125, -1624.35437011719, 483.707550048828", + "Dillimore : Max Pane - Bulletproof Glass": "0, 658.372924804688, -569.527587890625, 16.3359375", + "Dillimore : Police Departament": "0, 635.456298828125, -571.612915039063, 16.3359375", + "El Castillo del Diablo : Mass Grave": "0, -132.202545166016, 2249.17138671875, 32.933177947998", + "El Castillo del Diablo : Snake Ferm": "0, -36.4142532348633, 2336.65209960938, 24.1347389221191", + "Fern Ridge : Catalina's Ex-boyfriends": "0, 843.333190917969, -23.9582138061523, 62.7258110046387", + "Flint County : Nazca Symbol": "0, -687.696716308594, -1017.00006103516, 73.6602172851563", + "Flint County : Suicidal Photographer": "0, -61.9707489013672, -1622.80908203125, 3.51299381256104", + "Fort Carson : Driveway Beagle": "0, -29.5530853271484, 1084.95336914063, 19.7455101013184", + "Las Barrancas : Hopi Ruins": "0, -722.901062011719, 1522.61572265625, 39.5409965515137", + "Las Barrancas : Largest Cow": "0, -857.239135742188, 1535.8515625, 28.1875", + "Las Payasadas : Largest Chicken": "0, -217.903747558594, 2662.41235351563, 62.6015625", + "Las Venturas : Airport": "0, 1697.70825195313, 1436.81311035156, 10.7489976882935", + "Las Venturas : Caligula's Palace Casino": "0, 2179.212890625, 1676.203125, 11.046875", + "Las Venturas : Caligula's Palace Casino basement": "0, 2170.4248046875, 1618.86999511719, 999.9765625", + "Las Venturas : Casino Floor Casino": "0, 1658.6943359375, 2259.54443359375, 10.8203125", + "Las Venturas : Club": "0, 2507.13940429688, 1247.13256835938, 10.8203125", + "Las Venturas : Girls XXX Strip Club": "0, 2506.6494140625, 2129.15478515625, 10.8203125", + "Las Venturas : Lemmings Pedestrians": "0, 2014.46105957031, 2356.97924804688, 10.8203125", + "Las Venturas : Minigun - 01": "0, 2678.95947265625, 835.770690917969, 21.7657508850098", + "Las Venturas : Minigun - 02": "0, 2495.65014648438, 2398.44189453125, 4.2109375", + "Las Venturas : Minigun - 03": "0, 242.109191894531, 1859.30590820313, 14.0840120315552", + "Las Venturas : Nude Strippers Daily Strip Club": "0, 2543.13793945313, 1018.91442871094, 10.8125171661377", + "Las Venturas : Police Departament": "0, 2286.89965820313, 2424.51220703125, 10.8203125", + "Las Venturas : Sex shop": "0, 2096.162109375, 2077.07177734375, 10.8203125", + "Las Venturas : The Craw Bar": "0, 2441.26611328125, 2059.05712890625, 10.8203125", + "Las Venturas : The Four Dragons Casino": "0, 2035.13293457031, 1007.79144287109, 10.8203125", + "Las Venturas : VRock Hotel": "0, 2628.52221679688, 2321.35693359375, 10.671875", + "Las Venturas : Wedding Chapel Open 24HR": "0, 2434.20092773438, 1293.18017578125, 10.8203125", + "Las Venturas : Wedding Chapel Open 7 Days": "0, 2476.23413085938, 920.440734863281, 10.8203125", + "Las Venturas : Welding & Weddings": "0, 2002.8212890625, 2288.66259765625, 10.8203125", + "Liberty City : Inside Marco's Bistro": "1, -781.811340332031, 489.323181152344, 1376.1953125", + "Liberty City : Marco's Bistro": "1, -748.254211425781, 488.972473144531, 1371.58898925781", + "Los Santos : 8 Ball's Autos": "0, 1834.70385742188, -1856.40185546875, 13.3897476196289", + "Los Santos : Airport": "0, 1682.73156738281, -2264.05786132813, 13.5079345703125", + "Los Santos : Alhambra Club": "0, 1828.20690917969, -1682.60571289063, 13.546875", + "Los Santos : Atrium": "0, 1722.0576171875, -1605.82824707031, 13.546875", + "Los Santos : Big Smoke's Crack Palace": "0, 2518.2197265625, -1272.61791992188, 34.8740921020508", + "Los Santos : Big Smoke's Crack Palace (inside)": "2, 2580.02124023438, -1300.33801269531, 1060.9921875", + "Los Santos : CJ's home": "0, 2495.32275390625, -1685.42651367188, 13.5127220153809", + "Los Santos : Candy Suxx Billboard": "0, 419.148376464844, -1368.41320800781, 41.140625X", + "Los Santos : Cathay Theater": "0, 1022.50787353516, -1133.8857421875, 23.828125", + "Los Santos : Cemetery": "0, 832.375915527344, -1101.96203613281, 24.296875", + "Los Santos : Colonel Fuhrberger's": "0, 2820.60961914063, -1182.16235351563, 25.232967376709", + "Los Santos : Didier Sachs Shop": "0, 450.887725830078, -1479.1318359375, 30.8057765960693", + "Los Santos : GTA III and GTA: Vice City logos": "0, 788.071899414063, -1035.47729492188, 24.6282062530518", + "Los Santos : Ghost Graffiti (20:00-6:00)": "0, 927.000305175781, -1058.16821289063, 24.7002906799316", + "Los Santos : Grotti (Ferrari) Billboard": "0, 487.795166015625, -1326.62707519531, 28.0078125", + "Los Santos : Highest building of Los Santos": "0, 1531.17175292969, -1357.61804199219, 329.453460693359", + "Los Santos : Inside Track Betting": "0, 1631.77648925781, -1167.0690979688, 24.078125", + "Los Santos : Jefferson Hotel": "0, 2221.89038085938, -1159.849609375, 25.7330799102783", + "Los Santos : Jesus Saves": "0, 2719.21704101563, -2009.17846679688, 13.5546875", + "Los Santos : Lemmings Pole": "0, 2392.33569335938, -1511.87316894531, 23.8348655700684", + "Los Santos : Lowrider Competition": "0, 1816.08728027344, -1929.91040039063, 13.5433483123779", + "Los Santos : Market Station": "0, 826.761840820313, -1358.68713378906, -0.5078125", + "Los Santos : Observatory": "0, 1191.98645019531, -2036.88049316406, 69.0078125", + "Los Santos : Ocean Docks": "0, 2184.40185546875, -2260.38232421875, 13.4100790023804", + "Los Santos : Police Departament": "0, 1540.84509277344, -1675.45324707031, 13.5513896942139", + "Los Santos : Police brutality": "0, 1540.00646972656, -1627.77075195313, 13.3828125", + "Los Santos : Roboi's Food Mart": "0, 1350.62097167969, -1744.802734375, 13.3808469772339", + "Los Santos : Stadium": "0, 2684.78198242188, -1689.56359863281, 9.43039894104004", + "Los Santos : Ten Green Bottles": "0, 2304.39965820313, -1651.30908203125, 14.5202884674072", + "Los Santos : The Pig Pen Strip Club": "0, 2421.12280273438, -1228.55883789063, 24.8796482086182", + "Los Santos : Tiki Theater": "0, 2348.78637695313, -1463.54272460938, 24", + "Los Santos : Triathalon": "0, 181.06819152832, -1866.71862792969, 3.04375839233398", + "Los Santos : Verona Beach Gym": "0, 666.700561523438, -1880.67272949219, 5.46000003814697", + "Los Santos : Vice City Hidden Package": "0, 2354.03198242188, -1467.3642578125, 31.9559421539307", + "Los Santos : Vinewood Sign": "0, 1386.48901367188, -822.793640136719, 73.6923141479492", + "Montgomery : Biowaste Well": "0, 1277.96606445313, 292.559906005859, 19.5546875", + "Montgomery : Inside Track Betting": "0, 1292.03247070313, 269.481689453125, 19.5546875", + "Palomino Creek : Bank": "0, 2306.333984375, -15.3912973403931, 26.7495651245117", + "Palomino Creek : Cementry": "0, 2240.06396484375, -61.6567649841309, 26.50661277771", + "Palomino Creek : Empty Diner": "0, 2337.83618164063, 6.2173113822937, 26.484375", + "Palomino Creek : Glowing headstones": "0, 2240.09130859375, -70.5344467163086, 26.5068187713623", + "Palomino Creek : Rusty Wheelchair": "0, 2123.24487304688, -90.2263793945313, 2.16398048400879", + "Palomino Creek : Triathalon": "0, 2139.28759765625, -65.8627624511719, 2.96075963973999", + "Red County : North Rock": "0, 2570.11279296875, -644.1416015625, 136.548034667969", + "San Fierro : Actual Piece of Cable": "0, -2540.97973632813, 1228.51245117188, 37.421875", + "San Fierro : Airport": "0, -1425.78784179688, -292.410827636719, 14.1484375", + "San Fierro : Big Pointy Building": "0, -1754.5322265625, 885.199584960938, 295.875", + "San Fierro : Bridge Facts": "0, -2556.43603515625, 1224.98254394531, 42.1484375", + "San Fierro : Cargo Ship": "0, -2474.16943359375, 1547.40283203125, 33.2273330688477", + "San Fierro : Gaydar Station Club": "0, -2557.06982421875, 192.114242553711, 6.1554012298584", + "San Fierro : Highest building of San Fierro": "0, -1791.02185058594, 567.774047851563, 332.801940917969", + "San Fierro : Hippy Shopper": "0, -2597.46752929688, 59.5114707946777, 4.3359375", + "San Fierro : Hippy Statue": "0, -2496.01245117188, -16.239330291748, 25.765625", + "San Fierro : Michelle's Autorepair": "0, -1786.46594238281, 1197.98132324219, 25.1193962097168", + "San Fierro : Misty's Club": "0, -2246.36303710938, -88.0900344848633, 35.3203125", + "San Fierro : No Easter Eggs Up Here": "0, -2677.59228515625, 1594.87243652344, 217.273895263672", + "San Fierro : Otto's Autos": "0, -1639.01281738281, 1202.3388671875, 7.22374629974365", + "San Fierro : USS Numnutz": "0, -1878.22204589844, 1455.84631347656, 8.36595344543457", + "San Fierro : Wang Cars": "0, -1990.1318359375, 288.736297607422, 34.149341583252", + "San Fierro : War Memorial": "0, -2591.06958007813, -15.1639175415039, 4.328125", + "San Fierro : Zero's RC Shop": "0, -2245.77856445313, 128.705490112305, 35.3203125", + "San Fierro : Zombotech Corporation": "0, -1921.11633300781, 721.838928222656, 45.4453125", + "The Sherman Dam : Generator Hall": "0, -593.485046386719, 2020.72277832031, 60.3828125", + "The Sherman Dam : Sherman Dam Memorial": "0, -889.46484375, 1972.90734863281, 60.3285140991211", + "Tierra Robada : Aldea Malvada: the Lost Pueblo": "0, -1298.81420898438, 2505.07299804688, 86.9625854492188", + "Tierra Robada : Phalic Rock": "0, -547.985473632813, 2478.28100585938, 66.7793350219727", + "Verdant Meadows : Abandoned Airfield": "0, 404.54638671875, 2488.81689453125, 16.484375" + }, + "Oysters": { + "Oyster 1": "0, 979, -2210, -3", + "Oyster 10": "0, 723, -1586, -3", + "Oyster 11": "0, 155, -1975, -8", + "Oyster 12": "0, 1968, -1203, 17", + "Oyster 13": "0, -2657, 1564, -6", + "Oyster 14": "0, -1252, 501, -8", + "Oyster 15": "0, -1625, 4, -10", + "Oyster 16": "0, -1484, 1489, -10", + "Oyster 17": "0, -2505.406, 1543.724, -22.555", + "Oyster 18": "0, -2727, -469, -5", + "Oyster 19": "0, -1266, 966, -10", + "Oyster 2": "0, 2750, -2584, -5", + "Oyster 20": "0, -1013, 478, -7", + "Oyster 21": "0, -1364, 390, -5", + "Oyster 22": "0, 2578, 2382, 16", + "Oyster 23": "0, 2090, 1898, 8", + "Oyster 24": "0, 2130, 1152, 7", + "Oyster 25": "0, 2013, 1670, 7", + "Oyster 26": "0, 2531, 1569, 9", + "Oyster 27": "0, 2991, 2991, -10", + "Oyster 28": "0, -832, 925, -2", + "Oyster 29": "0, 486, -253, -4", + "Oyster 3": "0, 1279, -806, 85", + "Oyster 30": "0, -90, -910, -5", + "Oyster 31": "0, 26.43, -1320.94, -10.04", + "Oyster 32": "0, -207, -1682, -8", + "Oyster 33": "0, -1672, -1641, -2", + "Oyster 34": "0, -1175, -2639, -2.5", + "Oyster 35": "0, -1097, -2858, -8", + "Oyster 36": "0, -2889, -1042, -9", + "Oyster 37": "0, -659, 874, -2", + "Oyster 38": "0, -955, 2628, 35", + "Oyster 39": "0, -1066, 2197, 32", + "Oyster 4": "0, 2945.13, -2051.93, -3", + "Oyster 40": "0, 40, -531, -8", + "Oyster 41": "0, -765, 247, -8", + "Oyster 42": "0, 2098, -108, -2", + "Oyster 43": "0, 2767, 470, -8", + "Oyster 44": "0, -783, 2116, 35", + "Oyster 45": "0, -821, 1374, -8", + "Oyster 46": "0, -2110.5, 2329.72, -7.5", + "Oyster 47": "0, -1538, 1708, -3.27", + "Oyster 48": "0, -2685, 2153, -5", + "Oyster 49": "0, 796, 2939, -5", + "Oyster 5": "0, 67, -1018, -5", + "Oyster 50": "0, 2179, 235, -5", + "Oyster 6": "0, 2327, -2662, -5", + "Oyster 7": "0, 2621, -2506, -5", + "Oyster 8": "0, 1249, -2687, -1", + "Oyster 9": "0, 725, -1849, -5" + }, + "Snapshots": { + "Snapshot 1": "0, -2511.28, -672.99, 195.75", + "Snapshot 10": "0, -2773.04, 783.45, 67.66", + "Snapshot 11": "0, -2680.07, 1590.8, 143.53", + "Snapshot 12": "0, -2476.75, 1543.44, 49.26", + "Snapshot 13": "0, -1879.04, 1456.52, 9.34", + "Snapshot 14": "0, -1561.55, 655.19, 56.52", + "Snapshot 15": "0, -1325.15, 494.19, 26.83", + "Snapshot 16": "0, -1941.41, 137.72, 37.83", + "Snapshot 17": "0, -2153.23, 462.25, 103.27", + "Snapshot 18": "0, -2243.96, 577.76, 49", + "Snapshot 19": "0, -2051, 456, 167", + "Snapshot 2": "0, -2723.63, -314.72, 55.79", + "Snapshot 20": "0, -1951, 659, 81", + "Snapshot 21": "0, -2064, 926, 63", + "Snapshot 22": "0, -2357.33, 1017.01, 59.76", + "Snapshot 23": "0, -2072, 1066, 74", + "Snapshot 24": "0, -1744, 972.46, 156.89", + "Snapshot 25": "0, -1941, 883, 68", + "Snapshot 26": "0, -1839.51, 1086.88, 101.29", + "Snapshot 27": "0, -1704.8, 1338, 14", + "Snapshot 28": "0, -2346.62, 536.85, 86.02", + "Snapshot 29": "0, -2443, 755, 49", + "Snapshot 3": "0, -1737.71, -579.55, 26.19", + "Snapshot 30": "0, -2765, 375, 15", + "Snapshot 31": "0, -2880.31, -935.83, 40.82", + "Snapshot 32": "0, -2083, -808, 69", + "Snapshot 33": "0, -1954, -760, 53", + "Snapshot 34": "0, -964.53, -331.59, 47.16", + "Snapshot 35": "0, -1689, 51, 38", + "Snapshot 36": "0, -2080, 256.05, 107", + "Snapshot 37": "0, -2413, 331, 37", + "Snapshot 38": "0, -2244.42, 731.32, 61.88", + "Snapshot 39": "0, -2462, 369, 59", + "Snapshot 4": "0, -1486.08, 920.04, 41.37", + "Snapshot 40": "0, -1124.44, -153.15, 18.5", + "Snapshot 41": "0, -1275.78, 53.68, 89.07", + "Snapshot 42": "0, -2430, 38, 51", + "Snapshot 43": "0, -2591, 162, 15", + "Snapshot 44": "0, -2591, -16, 17", + "Snapshot 45": "0, -2648, -5, 31", + "Snapshot 46": "0, -2593, 56, 16", + "Snapshot 47": "0, -1619.31, 1341.39, 11.3", + "Snapshot 48": "0, -2307, 207, 42", + "Snapshot 49": "0, -2343, -79, 38", + "Snapshot 5": "0, -1269.82, 963.63, 130.37", + "Snapshot 50": "0, -1906.66, 518.58, 61.71", + "Snapshot 6": "0, -1650.01, 422, 21.17", + "Snapshot 7": "0, -1851.72, -96.73, 24.37", + "Snapshot 8": "0, -2732, -244, 19", + "Snapshot 9": "0, -2802.75, 375.47, 36.59" + }, + "Tags": { + "Tag 1": "0, 2046.40625, -1635.84375, 13.5859375", + "Tag 10": "0, 2074.179688, -1579.148438, 14.03125", + "Tag 100": "0, 1098.8125, -1292.546875, 17.140625", + "Tag 11": "0, 2182.234375, -1467.898438, 25.5546875", + "Tag 12": "0, 2132.234375, -1258.09375, 24.0546875", + "Tag 13": "0, 2233.953125, -1367.617188, 24.53125", + "Tag 14": "0, 2224.765625, -1193.0625, 25.8359375", + "Tag 15": "0, 2119.203125, -1196.617188, 24.6328125", + "Tag 16": "0, 1974.085938, -1351.164063, 24.5625", + "Tag 17": "0, 2093.757813, -1413.445313, 24.1171875", + "Tag 18": "0, 1969.59375, -1289.695313, 24.5625", + "Tag 19": "0, 1966.945313, -1174.726563, 20.0390625", + "Tag 2": "0, 2066.429688, -1652.476563, 14.28125", + "Tag 20": "0, 1911.867188, -1064.398438, 25.1875", + "Tag 21": "0, 2281.460938, -1118.960938, 27.0078125", + "Tag 22": "0, 2239.78125, -999.75, 59.7578125", + "Tag 23": "0, 2122.6875, -1060.898438, 25.390625", + "Tag 24": "0, 2062.71875, -996.4609375, 48.265625", + "Tag 25": "0, 2076.726563, -1071.132813, 27.609375", + "Tag 26": "0, 2399.414063, -1552.03125, 28.75", + "Tag 27": "0, 2353.539063, -1508.210938, 24.75", + "Tag 28": "0, 2394.101563, -1468.367188, 24.78125", + "Tag 29": "0, 2841.367188, -1312.960938, 18.8203125", + "Tag 3": "0, 2102.195313, -1648.757813, 13.5859375", + "Tag 30": "0, 2820.34375, -1190.976563, 25.671875", + "Tag 31": "0, 2766.085938, -1197.140625, 69.0703125", + "Tag 32": "0, 2756.007813, -1388.125, 39.4609375", + "Tag 33": "0, 2821.234375, -1465.09375, 16.5390625", + "Tag 34": "0, 2767.78125, -1621.1875, 11.234375", + "Tag 35": "0, 2767.757813, -1819.945313, 12.2265625", + "Tag 36": "0, 2667.890625, -1469.132813, 31.6796875", + "Tag 37": "0, 2612.929688, -1390.773438, 35.4296875", + "Tag 38": "0, 2536.21875, -1352.765625, 31.0859375", + "Tag 39": "0, 2580.945313, -1274.09375, 46.59375", + "Tag 4": "0, 2162.78125, -1786.070313, 14.1875", + "Tag 40": "0, 2603.15625, -1197.8125, 60.9921875", + "Tag 41": "0, 2542.953125, -1363.242188, 31.765625", + "Tag 42": "0, 2462.265625, -1541.414063, 25.421875", + "Tag 43": "0, 2522.460938, -1478.742188, 24.1640625", + "Tag 44": "0, 2346.515625, -1350.78125, 24.28125", + "Tag 45": "0, 2322.453125, -1254.414063, 22.921875", + "Tag 46": "0, 2273.015625, -1687.429688, 14.96875", + "Tag 47": "0, 2422.90625, -1682.296875, 13.9921875", + "Tag 48": "0, 2576.820313, -1143.273438, 48.203125", + "Tag 49": "0, 2621.507813, -1092.203125, 69.796875", + "Tag 5": "0, 2034.398438, -1801.671875, 14.546875", + "Tag 50": "0, 2797.921875, -1097.695313, 31.0625", + "Tag 51": "0, 1549.890625, -1714.523438, 15.1015625", + "Tag 52": "0, 1448.234375, -1755.898438, 14.5234375", + "Tag 53": "0, 1332.132813, -1722.304688, 14.1875", + "Tag 54": "0, 1724.734375, -1741.5, 14.1015625", + "Tag 55": "0, 1767.210938, -1617.539063, 15.0390625", + "Tag 56": "0, 1799.132813, -1708.765625, 14.1015625", + "Tag 57": "0, 1498.632813, -1207.351563, 24.6796875", + "Tag 58": "0, 1732.734375, -963.078125, 41.4375", + "Tag 59": "0, 1746.75, -1359.773438, 16.2109375", + "Tag 6": "0, 1910.164063, -1779.664063, 18.75", + "Tag 60": "0, 1519.421875, -1010.945313, 24.609375", + "Tag 61": "0, 1687.226563, -1239.125, 15.8125", + "Tag 62": "0, 1783.96875, -2156.539063, 14.3125", + "Tag 63": "0, 1574.710938, -2691.882813, 13.6015625", + "Tag 64": "0, 1118.90625, -2008.242188, 75.0234375", + "Tag 65": "0, 1850.007813, -1876.835938, 14.359375", + "Tag 66": "0, 1889.242188, -1982.507813, 15.7578125", + "Tag 67": "0, 1950.617188, -2034.398438, 14.09375", + "Tag 68": "0, 1936.882813, -2134.90625, 14.21875", + "Tag 69": "0, 1808.34375, -2092.265625, 14.21875", + "Tag 7": "0, 1837.195313, -1814.1875, 4.3359375", + "Tag 70": "0, 1624.625, -2296.242188, 14.3125", + "Tag 71": "0, 1071.140625, -1863.789063, 14.09375", + "Tag 72": "0, 2065.4375, -1897.234375, 13.609375", + "Tag 73": "0, 2763, -2012.109375, 14.1328125", + "Tag 74": "0, 2379.320313, -2166.21875, 24.9453125", + "Tag 75": "0, 2134.328125, -2011.203125, 10.515625", + "Tag 76": "0, 2392.359375, -1914.570313, 14.7421875", + "Tag 77": "0, 2430.328125, -1997.90625, 14.7421875", + "Tag 78": "0, 2587.320313, -2063.523438, 4.609375", + "Tag 79": "0, 2704.195313, -1966.6875, 13.7578125", + "Tag 8": "0, 1837.664063, -1640.382813, 13.7578125", + "Tag 80": "0, 2489.242188, -1959.070313, 13.7578125", + "Tag 81": "0, 2273.898438, -2265.804688, 14.5625", + "Tag 82": "0, 2173.59375, -2165.1875, 15.3046875", + "Tag 83": "0, 2273.195313, -2529.117188, 8.515625", + "Tag 84": "0, 2704.226563, -2144.304688, 11.8203125", + "Tag 85": "0, 2794.53125, -1906.8125, 14.671875", + "Tag 86": "0, 2812.9375, -1942.070313, 11.0625", + "Tag 87": "0, 2874.5, -1909.382813, 8.390625", + "Tag 88": "0, 1295.179688, -1465.21875, 10.28125", + "Tag 89": "0, 1271.484375, -1662.320313, 20.25", + "Tag 9": "0, 1959.398438, -1577.757813, 13.7578125", + "Tag 90": "0, 810.5703125, -1797.570313, 13.6171875", + "Tag 91": "0, 730.4453125, -1482.007813, 2.25", + "Tag 92": "0, 947.484375, -1466.71875, 17.2421875", + "Tag 93": "0, 482.625, -1761.585938, 5.9140625", + "Tag 94": "0, 399.0078125, -2066.882813, 11.234375", + "Tag 95": "0, 466.9765625, -1283.023438, 16.3203125", + "Tag 96": "0, 583.4609375, -1502.109375, 16", + "Tag 97": "0, 944.2734375, -985.8203125, 39.296875", + "Tag 98": "0, 1072.90625, -1012.796875, 35.515625", + "Tag 99": "0, 1206.25, -1162, 23.875" + }, + "Unique jumps": { + "Unique jump 1": "0, 1939.1357, -1968.052, 17.6649", + "Unique jump 10": "0, 2634.3975, -2107.9841, 17.0887", + "Unique jump 11": "0, 2352.3, -1259.0685, 28.9962", + "Unique jump 12": "0, 1013.1629, -1270.3624, 24.4456", + "Unique jump 13": "0, -973.357, -223.2307, 53.3717", + "Unique jump 14": "0, -2637.0688, 780.3949, 50.0166", + "Unique jump 15": "0, -2520.1995, 1169.2032, 59.5525", + "Unique jump 16": "0, -1794.9822, 1211.6116, 35.6794", + "Unique jump 17": "0, -2659.5508, 1533.6698, 53.2004", + "Unique jump 18": "0, -1690.6622, 1110.3917, 57.2776", + "Unique jump 19": "0, -2145.4607, -112.0259, 44.3452", + "Unique jump 2": "0, 2209.2747, -1843.6862, 19.0964", + "Unique jump 20": "0, -267.7739, 2662.0359, 68.7405", + "Unique jump 21": "0, -249.6904, 2590.8052, 66.1194", + "Unique jump 22": "0, -871.5031, 2308.7898, 164.5739", + "Unique jump 23": "0, 2073.7126, 2366.6531, 50.8534", + "Unique jump 24": "0, 2170.9465, 2402.6086, 62.2905", + "Unique jump 25": "0, 2418.0557, 1353.2336, 12.3641", + "Unique jump 26": "0, 2407.3083, 1364.3785, 14.5734", + "Unique jump 27": "0, 2784.7629, 2208.7197, 15.1934", + "Unique jump 28": "0, 1482.3834, 2037.004, 17.0576", + "Unique jump 29": "0, 1976.3966, 2593.686, 17.2126", + "Unique jump 3": "0, 1177.2153, -1696.7614, 21.368", + "Unique jump 30": "0, 1636.2639, 2399.7122, 15.8903", + "Unique jump 31": "0, 2119.2305, 2385.2126, 33.7094", + "Unique jump 32": "0, -2082.5291, -2498.9316, 33.9682", + "Unique jump 33": "0, 2112.4077, 97.9, 39.993", + "Unique jump 34": "0, -2100.4128, -1743.5951, 199.7312", + "Unique jump 35": "0, -2287.6707, -2800.7786, 22.0541", + "Unique jump 36": "0, 110.8902, 2428.0488, 23.7936", + "Unique jump 37": "0, -894.4963, 2693.1987, 44.7303", + "Unique jump 38": "0, 89.9936, -243.2046, 7.5581", + "Unique jump 39": "0, 160.7991, -160.2479, 6.1453", + "Unique jump 4": "0, 2278.2896, -1357.8571, 31.3255", + "Unique jump 40": "0, -72.3, 17.7, 8.4132", + "Unique jump 41": "0, -39.7989, 53.3007, 6.9223", + "Unique jump 42": "0, 638.7504, -520.0714, 18.8519", + "Unique jump 43": "0, 1749.723, 779.6028, 13.4757", + "Unique jump 44": "0, 110.2446, -257.9929, 6.2739", + "Unique jump 45": "0, 2125.6423, 95.2542, 37.3959", + "Unique jump 46": "0, -344.6466, -9.8812, 44.9609", + "Unique jump 47": "0, -2589.1804, 1164.37, 59.8256", + "Unique jump 48": "0, -2292.0442, 1097.7101, 84.7347", + "Unique jump 49": "0, -2408.2852, 723.2977, 38.6835", + "Unique jump 5": "0, 2335.3513, -2163.947, 18.5147", + "Unique jump 50": "0, -2116.3557, 925.6832, 87.819", + "Unique jump 51": "0, -1903.1918, 223.3468, 37.7965", + "Unique jump 52": "0, -1687.323, -162.201, 17.8603", + "Unique jump 53": "0, -1729.9243, -364.5276, 18.2246", + "Unique jump 54": "0, -1972.0991, -543.0899, 38.9862", + "Unique jump 55": "0, 2770.2141, -1177.4768, 70.7527", + "Unique jump 56": "0, 2248.8379, -2463.2581, 15.1049", + "Unique jump 57": "0, 2248.832, -2627.6233, 15.1806", + "Unique jump 58": "0, 2326.1216, -1508.751, 27.0066", + "Unique jump 59": "0, 1623.574, -1110.9561, 61.8178", + "Unique jump 6": "0, 2825.9329, -1582.6599, 18.126", + "Unique jump 60": "0, 1679.6456, -962.2209, 65.6737", + "Unique jump 61": "0, 1667.1671, -992.8579, 32.7591", + "Unique jump 62": "0, 347, -1662.299, 35.8218", + "Unique jump 63": "0, 743.1525, -1132.8186, 25.7991", + "Unique jump 64": "0, 1395.5621, -1460.5657, 12.3906", + "Unique jump 65": "0, 1586.4889, 312.8876, 23.9965", + "Unique jump 66": "0, 2058.1001, -2677.5168, 15.4946", + "Unique jump 67": "0, 586.0102, -1773.7693, 15.2312", + "Unique jump 68": "0, 2172.0779, 2430.5071, 61.747", + "Unique jump 69": "0, 2176.1326, 2268.1958, 13.4683", + "Unique jump 7": "0, 2460.1765, -2567.9106, 18.8162", + "Unique jump 70": "0, -2213.7732, -311.0786, 38.5339", + "Unique jump 8": "0, 1832.453, -2386.8049, 17.9247", + "Unique jump 9": "0, 1839.745, -2514.4766, 16.1769" + }, + "Weapons": { + "Weapon 1": "0, 1339, -1765, 14", + "Weapon 10": "0, -2222, -302, 43", + "Weapon 100": "0, -2038.664, 137.469, 28.336", + "Weapon 101": "0, 1569, 2150, 11", + "Weapon 102": "0, 924, 2138, 11", + "Weapon 103": "0, 2428, -1214, 36", + "Weapon 104": "0, 2366, 23, 28", + "Weapon 105": "0, 1706.352, 1242.019, 34.295", + "Weapon 106": "0, 2254.378, -2261.69, 14.375", + "Weapon 107": "0, 832.603, -1273.861, 14.483", + "Weapon 108": "0, 1407, 1098, 11", + "Weapon 109": "0, 297.829, 1846.623, 6.727", + "Weapon 11": "0, 911.649, -1235.39, 17.68", + "Weapon 110": "0, 2021.327, 1013.35, 10.32", + "Weapon 111": "0, 1446.35, 1900.03, 11", + "Weapon 112": "0, 2551.33, -1740, 6.49", + "Weapon 113": "0, -1679, 1410, 7", + "Weapon 114": "0, -2038, -2562, 31", + "Weapon 115": "0, 119, 2409, 17", + "Weapon 116": "0, 2790.343, -1427.489, 39.626", + "Weapon 117": "0, -2038.43, 139.628, 28.336", + "Weapon 118": "0, 2175.614, -2282.959, 13.54", + "Weapon 119": "0, 2243, 1132, 11", + "Weapon 12": "0, -819, 1929, 7", + "Weapon 120": "0, 1764, -1930, 14", + "Weapon 121": "0, 2266, -1028, 59", + "Weapon 122": "0, -2678, -128, 4", + "Weapon 123": "0, 1296, 392, 20", + "Weapon 124": "0, -1474, 2577, 56", + "Weapon 125": "0, 2198.11, -1170.22, 33.5", + "Weapon 126": "0, 2293.686, 1982.286, 31.434", + "Weapon 127": "0, 2025.286, 1001.496, 10.32", + "Weapon 128": "0, 1625, 1944, 11", + "Weapon 129": "0, 1923, 1011, 22", + "Weapon 13": "0, -938.39, 1901.649, 4.3", + "Weapon 130": "0, 1308.97, -874.4, 40", + "Weapon 131": "0, -1968, -923, 32", + "Weapon 132": "0, -121, -232, 1", + "Weapon 133": "0, -585, 2714, 72", + "Weapon 134": "0, 2129.4, -2280.71, 14.42", + "Weapon 135": "0, 825.921, -1165.813, 17.894", + "Weapon 136": "0, -1683.497, 716.274, 30.645", + "Weapon 137": "0, 2575, 1562, 16", + "Weapon 138": "0, 1379, -2547, 14", + "Weapon 139": "0, -2903, 784, 35", + "Weapon 14": "0, 1124, -1335, 13", + "Weapon 140": "0, 113, 1811, 18", + "Weapon 141": "0, 2021.879, 1001.467, 10.32", + "Weapon 142": "0, 1102, -661, 114", + "Weapon 143": "0, -2094, -488, 36", + "Weapon 144": "0, -1035, -2258, 70", + "Weapon 145": "0, 733.433, -1356.47, 23.523", + "Weapon 146": "0, 2225, 2530, 17", + "Weapon 147": "0, 2337, 1806, 72", + "Weapon 148": "0, 2047, -1406, 68", + "Weapon 149": "0, -1629, 1167, 24", + "Weapon 15": "0, -1871, 351, 26", + "Weapon 150": "0, 935.744, -926.045, 57.764", + "Weapon 151": "0, 2015.744, 1004.045, 39.1", + "Weapon 152": "0, -2035.773, 139.434, 28.336", + "Weapon 153": "0, 0, 0, 0", + "Weapon 154": "0, -1837, -21.43, 15.16", + "Weapon 155": "0, -686, 934, 13.5", + "Weapon 156": "0, -431.372, 2240.132, 42.618", + "Weapon 157": "0, -808.152, 2430.788, 156.987", + "Weapon 158": "0, 2072, 2370, 61", + "Weapon 159": "0, 1646, 1349, 11", + "Weapon 16": "0, -23, 2322, 24", + "Weapon 160": "0, 1740, -1231, 92", + "Weapon 161": "0, 2055.356, 2435.356, 40.368", + "Weapon 162": "0, -1831, -21.43, 15.16", + "Weapon 163": "0, -1688.86, 695.308, 30.345", + "Weapon 164": "0, -1100.3, -1640.4, 76.4", + "Weapon 165": "0, -1100.3, -1640.4, 76.4", + "Weapon 166": "0, -1100.3, -1640.4, 76.4", + "Weapon 167": "0, -690, 934, 13.5", + "Weapon 168": "0, 1155, 2341, 17", + "Weapon 169": "0, -1126.69, -150.82, 14.61", + "Weapon 17": "0, 777.867, 1948.123, 5.363", + "Weapon 170": "0, -1317, 2509, 87", + "Weapon 171": "0, -686, 939, 13.5", + "Weapon 172": "0, 2649, 2733, 11", + "Weapon 173": "0, -1579, 29.45, 17", + "Weapon 174": "0, -2132.52, 189.251, 35.538", + "Weapon 175": "0, -1358, -2115, 30", + "Weapon 176": "0, -601.401, -1068.6, 23.667", + "Weapon 177": "0, -366.066, -1418.683, 25.5", + "Weapon 178": "0, -1100.3, -1640.4, 76.4", + "Weapon 179": "0, -690, 939, 13.5", + "Weapon 18": "0, -1595, 1345, -7.5", + "Weapon 180": "0, 2676, 836, 22", + "Weapon 181": "0, -1496, 591, 42", + "Weapon 182": "0, 2492.051, 2398.377, 4.529", + "Weapon 183": "0, 244.98, 1859.185, 14.08", + "Weapon 184": "0, -2754, -400, 7", + "Weapon 185": "0, -2542.262, 922.24, 67.122", + "Weapon 186": "0, 1284.894, 278.571, 19.555", + "Weapon 187": "0, 2023.775, 1013.527, 10.52", + "Weapon 188": "0, 1339, -1765, 14", + "Weapon 189": "0, -2206, 961, 80", + "Weapon 19": "0, -1456.289, 1497.905, 6.7", + "Weapon 190": "0, -246, 2725, 63", + "Weapon 191": "0, 2428.499, -1679.27, 13.163", + "Weapon 192": "0, 1418, 2774, 15", + "Weapon 193": "0, 1457, -792, 90", + "Weapon 194": "0, -2715, -314, 7", + "Weapon 195": "0, -2227, -2401, 31.4", + "Weapon 196": "0, 2241, 2425, 11", + "Weapon 197": "0, -2222, -302, 43", + "Weapon 198": "0, 911.649, -1235.39, 17.68", + "Weapon 199": "0, -819, 1929, 7", + "Weapon 2": "0, -2206, 961, 80", + "Weapon 20": "0, -2306, 93, 35", + "Weapon 21": "0, 1308.466, 2111.289, 10.722", + "Weapon 22": "0, 1081.133, 1603.697, 5.6", + "Weapon 23": "0, 2285.743, -1647.309, 14.078", + "Weapon 24": "0, 1393, 2174, 10", + "Weapon 25": "0, 1997, 1658, 12", + "Weapon 26": "0, 2459, -1708, 13.6", + "Weapon 27": "0, -2796.416, 123.686, 6.844", + "Weapon 28": "0, -532, -106, 63", + "Weapon 29": "0, -1809, -1662, 24", + "Weapon 3": "0, -246, 2725, 63", + "Weapon 30": "0, 2240, -83, 27", + "Weapon 31": "0, 637, 832, -43", + "Weapon 32": "0, 842.978, -17.379, 64.2", + "Weapon 33": "0, 1888.27, 2877.262, 10.162", + "Weapon 34": "0, 2854, 944, 11", + "Weapon 35": "0, -2135, 197, 35", + "Weapon 36": "0, 294, -188, 2", + "Weapon 37": "0, 2000, 1526, 15", + "Weapon 38": "0, 1862, -1862, 14", + "Weapon 39": "0, -2208, 696, 50", + "Weapon 4": "0, 2428.499, -1679.27, 13.163", + "Weapon 40": "0, -1568, 2718, 56", + "Weapon 41": "0, -2535.631, 51.703, 8.651", + "Weapon 42": "0, 2631.263, 1722.395, 11.031", + "Weapon 43": "0, 2002.263, 981.395, 10.5", + "Weapon 44": "0, 1061, 2074, 11", + "Weapon 45": "0, 2371, -2543, 3", + "Weapon 46": "0, 2192.243, -1988.751, 13.419", + "Weapon 47": "0, -2083, 298, 42", + "Weapon 48": "0, -2359, -82, 35", + "Weapon 49": "0, -761, -126, 66", + "Weapon 5": "0, 1418, 2774, 15", + "Weapon 50": "0, 680, 826, -39", + "Weapon 51": "0, 752, 260, 27", + "Weapon 52": "0, -2752.243, -272.289, 6.596", + "Weapon 53": "0, -365.791, -1425.253, 25.5", + "Weapon 54": "0, 2550.967, 2824.343, 10.6", + "Weapon 55": "0, 2809, 864, 21", + "Weapon 56": "0, 2142, -1804, 16", + "Weapon 57": "0, 397, -1924, 8", + "Weapon 58": "0, 2441, -1013, 54", + "Weapon 59": "0, -2520, 2293, 5", + "Weapon 6": "0, 1457, -792, 90", + "Weapon 60": "0, 2820.013, -1426.519, 23.805", + "Weapon 61": "0, -2035.474, 137.251, 28.336", + "Weapon 62": "0, -2412.4, 1547.9, 25", + "Weapon 63": "0, 2725, 2727, 11", + "Weapon 64": "0, 1319, 1636, 10.6", + "Weapon 65": "0, 2213, -2283, 15", + "Weapon 66": "0, 1463, -1013, 27", + "Weapon 67": "0, -1386, 509, 4", + "Weapon 68": "0, -366.224, -1429.088, 25.5", + "Weapon 69": "0, 0, 0, 0", + "Weapon 7": "0, -2715, -314, 7", + "Weapon 70": "0, 2832, 2405, 18", + "Weapon 71": "0, 1781, 2072, 11", + "Weapon 72": "0, 2478, 1182, 22", + "Weapon 73": "0, 886, -966, 37", + "Weapon 74": "0, 2426, -1416, 24", + "Weapon 75": "0, 2197, -2475, 14", + "Weapon 76": "0, 2255, -74, 32", + "Weapon 77": "0, -170, 1025, 20", + "Weapon 78": "0, 2444.895, -1981.524, 13.933", + "Weapon 79": "0, 2447.773, -1975.663, 13", + "Weapon 8": "0, -2227, -2401, 31.4", + "Weapon 80": "0, 2538, -1630, 14", + "Weapon 81": "0, 338, -1875, 4", + "Weapon 82": "0, -2206, -23, 35", + "Weapon 83": "0, -639, 1181, 13", + "Weapon 84": "0, 2423.892, -1117.452, 41.246", + "Weapon 85": "0, -365.477, -1422.402, 25.5", + "Weapon 86": "0, 2444.895, -1981.524, 13.933", + "Weapon 87": "0, 2447.773, -1975.663, 13", + "Weapon 88": "0, 1098, 1681, 7", + "Weapon 89": "0, 1214, -1816, 17", + "Weapon 9": "0, 2241, 2425, 11", + "Weapon 90": "0, -1542.022, -437.736, 5.926", + "Weapon 91": "0, 2766, -2182, 11", + "Weapon 92": "0, -2212, 109, 35", + "Weapon 93": "0, -1870, -1625, 22", + "Weapon 94": "0, 36, 1372, 9", + "Weapon 95": "0, -2352, 2456, 6", + "Weapon 96": "0, 1345, 2367, 11", + "Weapon 97": "0, -1841.106, -74.217, 14.761", + "Weapon 98": "0, 24, 969, 20", + "Weapon 99": "0, -932.02, 2649.92, 42" + } +} diff --git a/Files/CheatMenu/json/weapon.json b/Files/CheatMenu/json/weapon.json new file mode 100644 index 0000000..6c8cf8d --- /dev/null +++ b/Files/CheatMenu/json/weapon.json @@ -0,0 +1,47 @@ +{ + "-1": "Jetpack", + "0": "Unarmed", + "1": "Brass knuckles", + "10": "Purple dildo", + "11": "White dildo", + "12": "White vibrator", + "13": "Silver vibrator", + "14": "Flowers", + "15": "Cane", + "16": "Grenade", + "17": "Teargas", + "18": "Molotov", + "2": "Golf club", + "22": "Colt45", + "23": "Silenced", + "24": "Desert eagle", + "25": "Shotgun", + "26": "Sawn off shotgun", + "27": "Combat shotgun", + "28": "Uzi", + "29": "Mp5", + "3": "Night stick", + "30": "Ak47", + "31": "M4", + "32": "Tec9", + "33": "Rifle", + "34": "Sniper rifle", + "35": "Rocket launcher", + "36": "Heat seeker", + "37": "Flame thrower", + "38": "Minigun", + "39": "Satchel charge", + "4": "Knife", + "40": "Detonator", + "41": "Spraycan", + "42": "Fire extinguisher", + "43": "Camera", + "44": "Night vision", + "45": "Thermal vision", + "46": "Parachute", + "5": "Baseball bat", + "6": "Shovel", + "7": "Poolcue", + "8": "Katana", + "9": "Chainsaw" +} diff --git a/moonloader/lib/cheat-menu/peds/Ballas/102.jpg b/Files/CheatMenu/peds/Ballas/102.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Ballas/102.jpg rename to Files/CheatMenu/peds/Ballas/102.jpg diff --git a/moonloader/lib/cheat-menu/peds/Ballas/103.jpg b/Files/CheatMenu/peds/Ballas/103.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Ballas/103.jpg rename to Files/CheatMenu/peds/Ballas/103.jpg diff --git a/moonloader/lib/cheat-menu/peds/Ballas/104.jpg b/Files/CheatMenu/peds/Ballas/104.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Ballas/104.jpg rename to Files/CheatMenu/peds/Ballas/104.jpg diff --git a/moonloader/lib/cheat-menu/peds/Beach/138.jpg b/Files/CheatMenu/peds/Beach/138.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Beach/138.jpg rename to Files/CheatMenu/peds/Beach/138.jpg diff --git a/moonloader/lib/cheat-menu/peds/Beach/139.jpg b/Files/CheatMenu/peds/Beach/139.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Beach/139.jpg rename to Files/CheatMenu/peds/Beach/139.jpg diff --git a/moonloader/lib/cheat-menu/peds/Beach/140.jpg b/Files/CheatMenu/peds/Beach/140.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Beach/140.jpg rename to Files/CheatMenu/peds/Beach/140.jpg diff --git a/moonloader/lib/cheat-menu/peds/Beach/154.jpg b/Files/CheatMenu/peds/Beach/154.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Beach/154.jpg rename to Files/CheatMenu/peds/Beach/154.jpg diff --git a/moonloader/lib/cheat-menu/peds/Beach/18.jpg b/Files/CheatMenu/peds/Beach/18.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Beach/18.jpg rename to Files/CheatMenu/peds/Beach/18.jpg diff --git a/moonloader/lib/cheat-menu/peds/Beach/45.jpg b/Files/CheatMenu/peds/Beach/45.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Beach/45.jpg rename to Files/CheatMenu/peds/Beach/45.jpg diff --git a/moonloader/lib/cheat-menu/peds/Biker/247.jpg b/Files/CheatMenu/peds/Biker/247.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Biker/247.jpg rename to Files/CheatMenu/peds/Biker/247.jpg diff --git a/moonloader/lib/cheat-menu/peds/Biker/248.jpg b/Files/CheatMenu/peds/Biker/248.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Biker/248.jpg rename to Files/CheatMenu/peds/Biker/248.jpg diff --git a/moonloader/lib/cheat-menu/peds/Body guard/24.jpg b/Files/CheatMenu/peds/Body guard/24.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Body guard/24.jpg rename to Files/CheatMenu/peds/Body guard/24.jpg diff --git a/moonloader/lib/cheat-menu/peds/Body guard/25.jpg b/Files/CheatMenu/peds/Body guard/25.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Body guard/25.jpg rename to Files/CheatMenu/peds/Body guard/25.jpg diff --git a/moonloader/lib/cheat-menu/peds/Bouncer/163.jpg b/Files/CheatMenu/peds/Bouncer/163.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Bouncer/163.jpg rename to Files/CheatMenu/peds/Bouncer/163.jpg diff --git a/moonloader/lib/cheat-menu/peds/Bouncer/164.jpg b/Files/CheatMenu/peds/Bouncer/164.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Bouncer/164.jpg rename to Files/CheatMenu/peds/Bouncer/164.jpg diff --git a/moonloader/lib/cheat-menu/peds/Bouncer/165.jpg b/Files/CheatMenu/peds/Bouncer/165.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Bouncer/165.jpg rename to Files/CheatMenu/peds/Bouncer/165.jpg diff --git a/moonloader/lib/cheat-menu/peds/Bouncer/166.jpg b/Files/CheatMenu/peds/Bouncer/166.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Bouncer/166.jpg rename to Files/CheatMenu/peds/Bouncer/166.jpg diff --git a/moonloader/lib/cheat-menu/peds/Boxer/80.jpg b/Files/CheatMenu/peds/Boxer/80.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Boxer/80.jpg rename to Files/CheatMenu/peds/Boxer/80.jpg diff --git a/moonloader/lib/cheat-menu/peds/Boxer/81.jpg b/Files/CheatMenu/peds/Boxer/81.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Boxer/81.jpg rename to Files/CheatMenu/peds/Boxer/81.jpg diff --git a/moonloader/lib/cheat-menu/peds/Businessman/141.jpg b/Files/CheatMenu/peds/Businessman/141.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Businessman/141.jpg rename to Files/CheatMenu/peds/Businessman/141.jpg diff --git a/moonloader/lib/cheat-menu/peds/Businessman/147.jpg b/Files/CheatMenu/peds/Businessman/147.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Businessman/147.jpg rename to Files/CheatMenu/peds/Businessman/147.jpg diff --git a/moonloader/lib/cheat-menu/peds/Businessman/148.jpg b/Files/CheatMenu/peds/Businessman/148.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Businessman/148.jpg rename to Files/CheatMenu/peds/Businessman/148.jpg diff --git a/moonloader/lib/cheat-menu/peds/Businessman/150.jpg b/Files/CheatMenu/peds/Businessman/150.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Businessman/150.jpg rename to Files/CheatMenu/peds/Businessman/150.jpg diff --git a/moonloader/lib/cheat-menu/peds/Businessman/17.jpg b/Files/CheatMenu/peds/Businessman/17.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Businessman/17.jpg rename to Files/CheatMenu/peds/Businessman/17.jpg diff --git a/moonloader/lib/cheat-menu/peds/Businessman/227.jpg b/Files/CheatMenu/peds/Businessman/227.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Businessman/227.jpg rename to Files/CheatMenu/peds/Businessman/227.jpg diff --git a/moonloader/lib/cheat-menu/peds/Businessman/228.jpg b/Files/CheatMenu/peds/Businessman/228.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Businessman/228.jpg rename to Files/CheatMenu/peds/Businessman/228.jpg diff --git a/moonloader/lib/cheat-menu/peds/Cab driver/182.jpg b/Files/CheatMenu/peds/Cab driver/182.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Cab driver/182.jpg rename to Files/CheatMenu/peds/Cab driver/182.jpg diff --git a/moonloader/lib/cheat-menu/peds/Cab driver/206.jpg b/Files/CheatMenu/peds/Cab driver/206.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Cab driver/206.jpg rename to Files/CheatMenu/peds/Cab driver/206.jpg diff --git a/moonloader/lib/cheat-menu/peds/Cab driver/220.jpg b/Files/CheatMenu/peds/Cab driver/220.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Cab driver/220.jpg rename to Files/CheatMenu/peds/Cab driver/220.jpg diff --git a/moonloader/lib/cheat-menu/peds/Cab driver/234.jpg b/Files/CheatMenu/peds/Cab driver/234.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Cab driver/234.jpg rename to Files/CheatMenu/peds/Cab driver/234.jpg diff --git a/moonloader/lib/cheat-menu/peds/Cab driver/261.jpg b/Files/CheatMenu/peds/Cab driver/261.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Cab driver/261.jpg rename to Files/CheatMenu/peds/Cab driver/261.jpg diff --git a/moonloader/lib/cheat-menu/peds/Cab driver/262.jpg b/Files/CheatMenu/peds/Cab driver/262.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Cab driver/262.jpg rename to Files/CheatMenu/peds/Cab driver/262.jpg diff --git a/moonloader/lib/cheat-menu/peds/Clothes seller/211.jpg b/Files/CheatMenu/peds/Clothes seller/211.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Clothes seller/211.jpg rename to Files/CheatMenu/peds/Clothes seller/211.jpg diff --git a/moonloader/lib/cheat-menu/peds/Clothes seller/217.jpg b/Files/CheatMenu/peds/Clothes seller/217.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Clothes seller/217.jpg rename to Files/CheatMenu/peds/Clothes seller/217.jpg diff --git a/moonloader/lib/cheat-menu/peds/Construction/153.jpg b/Files/CheatMenu/peds/Construction/153.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Construction/153.jpg rename to Files/CheatMenu/peds/Construction/153.jpg diff --git a/moonloader/lib/cheat-menu/peds/Construction/260.jpg b/Files/CheatMenu/peds/Construction/260.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Construction/260.jpg rename to Files/CheatMenu/peds/Construction/260.jpg diff --git a/moonloader/lib/cheat-menu/peds/Construction/27.jpg b/Files/CheatMenu/peds/Construction/27.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Construction/27.jpg rename to Files/CheatMenu/peds/Construction/27.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/157.jpg b/Files/CheatMenu/peds/Country/157.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/157.jpg rename to Files/CheatMenu/peds/Country/157.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/158.jpg b/Files/CheatMenu/peds/Country/158.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/158.jpg rename to Files/CheatMenu/peds/Country/158.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/159.jpg b/Files/CheatMenu/peds/Country/159.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/159.jpg rename to Files/CheatMenu/peds/Country/159.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/160.jpg b/Files/CheatMenu/peds/Country/160.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/160.jpg rename to Files/CheatMenu/peds/Country/160.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/161.jpg b/Files/CheatMenu/peds/Country/161.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/161.jpg rename to Files/CheatMenu/peds/Country/161.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/162.jpg b/Files/CheatMenu/peds/Country/162.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/162.jpg rename to Files/CheatMenu/peds/Country/162.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/196.jpg b/Files/CheatMenu/peds/Country/196.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/196.jpg rename to Files/CheatMenu/peds/Country/196.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/197.jpg b/Files/CheatMenu/peds/Country/197.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/197.jpg rename to Files/CheatMenu/peds/Country/197.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/198.jpg b/Files/CheatMenu/peds/Country/198.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/198.jpg rename to Files/CheatMenu/peds/Country/198.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/199.jpg b/Files/CheatMenu/peds/Country/199.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/199.jpg rename to Files/CheatMenu/peds/Country/199.jpg diff --git a/moonloader/lib/cheat-menu/peds/Country/200.jpg b/Files/CheatMenu/peds/Country/200.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Country/200.jpg rename to Files/CheatMenu/peds/Country/200.jpg diff --git a/moonloader/lib/cheat-menu/peds/Criminal/100.jpg b/Files/CheatMenu/peds/Criminal/100.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Criminal/100.jpg rename to Files/CheatMenu/peds/Criminal/100.jpg diff --git a/moonloader/lib/cheat-menu/peds/Criminal/143.jpg b/Files/CheatMenu/peds/Criminal/143.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Criminal/143.jpg rename to Files/CheatMenu/peds/Criminal/143.jpg diff --git a/moonloader/lib/cheat-menu/peds/Criminal/181.jpg b/Files/CheatMenu/peds/Criminal/181.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Criminal/181.jpg rename to Files/CheatMenu/peds/Criminal/181.jpg diff --git a/moonloader/lib/cheat-menu/peds/Criminal/183.jpg b/Files/CheatMenu/peds/Criminal/183.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Criminal/183.jpg rename to Files/CheatMenu/peds/Criminal/183.jpg diff --git a/moonloader/lib/cheat-menu/peds/Criminal/184.jpg b/Files/CheatMenu/peds/Criminal/184.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Criminal/184.jpg rename to Files/CheatMenu/peds/Criminal/184.jpg diff --git a/moonloader/lib/cheat-menu/peds/Criminal/21.jpg b/Files/CheatMenu/peds/Criminal/21.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Criminal/21.jpg rename to Files/CheatMenu/peds/Criminal/21.jpg diff --git a/moonloader/lib/cheat-menu/peds/Criminal/223.jpg b/Files/CheatMenu/peds/Criminal/223.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Criminal/223.jpg rename to Files/CheatMenu/peds/Criminal/223.jpg diff --git a/moonloader/lib/cheat-menu/peds/Criminal/250.jpg b/Files/CheatMenu/peds/Criminal/250.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Criminal/250.jpg rename to Files/CheatMenu/peds/Criminal/250.jpg diff --git a/moonloader/lib/cheat-menu/peds/Criminal/47.jpg b/Files/CheatMenu/peds/Criminal/47.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Criminal/47.jpg rename to Files/CheatMenu/peds/Criminal/47.jpg diff --git a/moonloader/lib/cheat-menu/peds/Croupier/11.jpg b/Files/CheatMenu/peds/Croupier/11.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Croupier/11.jpg rename to Files/CheatMenu/peds/Croupier/11.jpg diff --git a/moonloader/lib/cheat-menu/peds/Croupier/171.jpg b/Files/CheatMenu/peds/Croupier/171.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Croupier/171.jpg rename to Files/CheatMenu/peds/Croupier/171.jpg diff --git a/moonloader/lib/cheat-menu/peds/Croupier/172.jpg b/Files/CheatMenu/peds/Croupier/172.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Croupier/172.jpg rename to Files/CheatMenu/peds/Croupier/172.jpg diff --git a/moonloader/lib/cheat-menu/peds/Da nang boys/121.jpg b/Files/CheatMenu/peds/Da nang boys/121.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Da nang boys/121.jpg rename to Files/CheatMenu/peds/Da nang boys/121.jpg diff --git a/moonloader/lib/cheat-menu/peds/Da nang boys/122.jpg b/Files/CheatMenu/peds/Da nang boys/122.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Da nang boys/122.jpg rename to Files/CheatMenu/peds/Da nang boys/122.jpg diff --git a/moonloader/lib/cheat-menu/peds/Da nang boys/123.jpg b/Files/CheatMenu/peds/Da nang boys/123.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Da nang boys/123.jpg rename to Files/CheatMenu/peds/Da nang boys/123.jpg diff --git a/moonloader/lib/cheat-menu/peds/Drug dealer/254.jpg b/Files/CheatMenu/peds/Drug dealer/254.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Drug dealer/254.jpg rename to Files/CheatMenu/peds/Drug dealer/254.jpg diff --git a/moonloader/lib/cheat-menu/peds/Drug dealer/28.jpg b/Files/CheatMenu/peds/Drug dealer/28.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Drug dealer/28.jpg rename to Files/CheatMenu/peds/Drug dealer/28.jpg diff --git a/moonloader/lib/cheat-menu/peds/Drug dealer/29.jpg b/Files/CheatMenu/peds/Drug dealer/29.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Drug dealer/29.jpg rename to Files/CheatMenu/peds/Drug dealer/29.jpg diff --git a/moonloader/lib/cheat-menu/peds/Drug dealer/30.jpg b/Files/CheatMenu/peds/Drug dealer/30.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Drug dealer/30.jpg rename to Files/CheatMenu/peds/Drug dealer/30.jpg diff --git a/moonloader/lib/cheat-menu/peds/Elvis/82.jpg b/Files/CheatMenu/peds/Elvis/82.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Elvis/82.jpg rename to Files/CheatMenu/peds/Elvis/82.jpg diff --git a/moonloader/lib/cheat-menu/peds/Elvis/83.jpg b/Files/CheatMenu/peds/Elvis/83.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Elvis/83.jpg rename to Files/CheatMenu/peds/Elvis/83.jpg diff --git a/moonloader/lib/cheat-menu/peds/Elvis/84.jpg b/Files/CheatMenu/peds/Elvis/84.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Elvis/84.jpg rename to Files/CheatMenu/peds/Elvis/84.jpg diff --git a/moonloader/lib/cheat-menu/peds/Fire fighter/277.jpg b/Files/CheatMenu/peds/Fire fighter/277.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Fire fighter/277.jpg rename to Files/CheatMenu/peds/Fire fighter/277.jpg diff --git a/moonloader/lib/cheat-menu/peds/Fire fighter/278.jpg b/Files/CheatMenu/peds/Fire fighter/278.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Fire fighter/278.jpg rename to Files/CheatMenu/peds/Fire fighter/278.jpg diff --git a/moonloader/lib/cheat-menu/peds/Fire fighter/279.jpg b/Files/CheatMenu/peds/Fire fighter/279.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Fire fighter/279.jpg rename to Files/CheatMenu/peds/Fire fighter/279.jpg diff --git a/moonloader/lib/cheat-menu/peds/Golf/36.jpg b/Files/CheatMenu/peds/Golf/36.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Golf/36.jpg rename to Files/CheatMenu/peds/Golf/36.jpg diff --git a/moonloader/lib/cheat-menu/peds/Golf/37.jpg b/Files/CheatMenu/peds/Golf/37.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Golf/37.jpg rename to Files/CheatMenu/peds/Golf/37.jpg diff --git a/moonloader/lib/cheat-menu/peds/Golf/38.jpg b/Files/CheatMenu/peds/Golf/38.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Golf/38.jpg rename to Files/CheatMenu/peds/Golf/38.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/190-1.jpg b/Files/CheatMenu/peds/Grl/190-1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/190-1.jpg rename to Files/CheatMenu/peds/Grl/190-1.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/190-2.jpg b/Files/CheatMenu/peds/Grl/190-2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/190-2.jpg rename to Files/CheatMenu/peds/Grl/190-2.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/190.jpg b/Files/CheatMenu/peds/Grl/190.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/190.jpg rename to Files/CheatMenu/peds/Grl/190.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/191-1.jpg b/Files/CheatMenu/peds/Grl/191-1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/191-1.jpg rename to Files/CheatMenu/peds/Grl/191-1.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/191-2.jpg b/Files/CheatMenu/peds/Grl/191-2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/191-2.jpg rename to Files/CheatMenu/peds/Grl/191-2.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/191.jpg b/Files/CheatMenu/peds/Grl/191.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/191.jpg rename to Files/CheatMenu/peds/Grl/191.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/192-1.jpg b/Files/CheatMenu/peds/Grl/192-1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/192-1.jpg rename to Files/CheatMenu/peds/Grl/192-1.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/192-2.jpg b/Files/CheatMenu/peds/Grl/192-2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/192-2.jpg rename to Files/CheatMenu/peds/Grl/192-2.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/192.jpg b/Files/CheatMenu/peds/Grl/192.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/192.jpg rename to Files/CheatMenu/peds/Grl/192.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/193-1.jpg b/Files/CheatMenu/peds/Grl/193-1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/193-1.jpg rename to Files/CheatMenu/peds/Grl/193-1.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/193-2.jpg b/Files/CheatMenu/peds/Grl/193-2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/193-2.jpg rename to Files/CheatMenu/peds/Grl/193-2.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/193.jpg b/Files/CheatMenu/peds/Grl/193.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/193.jpg rename to Files/CheatMenu/peds/Grl/193.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/194-1.jpg b/Files/CheatMenu/peds/Grl/194-1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/194-1.jpg rename to Files/CheatMenu/peds/Grl/194-1.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/194-2.jpg b/Files/CheatMenu/peds/Grl/194-2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/194-2.jpg rename to Files/CheatMenu/peds/Grl/194-2.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/194.jpg b/Files/CheatMenu/peds/Grl/194.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/194.jpg rename to Files/CheatMenu/peds/Grl/194.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/195-1.jpg b/Files/CheatMenu/peds/Grl/195-1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/195-1.jpg rename to Files/CheatMenu/peds/Grl/195-1.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/195-2.jpg b/Files/CheatMenu/peds/Grl/195-2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/195-2.jpg rename to Files/CheatMenu/peds/Grl/195-2.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grl/195.jpg b/Files/CheatMenu/peds/Grl/195.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grl/195.jpg rename to Files/CheatMenu/peds/Grl/195.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grove street families/105.jpg b/Files/CheatMenu/peds/Grove street families/105.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grove street families/105.jpg rename to Files/CheatMenu/peds/Grove street families/105.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grove street families/106.jpg b/Files/CheatMenu/peds/Grove street families/106.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grove street families/106.jpg rename to Files/CheatMenu/peds/Grove street families/106.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grove street families/107.jpg b/Files/CheatMenu/peds/Grove street families/107.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grove street families/107.jpg rename to Files/CheatMenu/peds/Grove street families/107.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grove street families/149.jpg b/Files/CheatMenu/peds/Grove street families/149.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grove street families/149.jpg rename to Files/CheatMenu/peds/Grove street families/149.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grove street families/269.jpg b/Files/CheatMenu/peds/Grove street families/269.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grove street families/269.jpg rename to Files/CheatMenu/peds/Grove street families/269.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grove street families/270.jpg b/Files/CheatMenu/peds/Grove street families/270.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grove street families/270.jpg rename to Files/CheatMenu/peds/Grove street families/270.jpg diff --git a/moonloader/lib/cheat-menu/peds/Grove street families/271.jpg b/Files/CheatMenu/peds/Grove street families/271.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Grove street families/271.jpg rename to Files/CheatMenu/peds/Grove street families/271.jpg diff --git a/moonloader/lib/cheat-menu/peds/Heckler/258.jpg b/Files/CheatMenu/peds/Heckler/258.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Heckler/258.jpg rename to Files/CheatMenu/peds/Heckler/258.jpg diff --git a/moonloader/lib/cheat-menu/peds/Heckler/259.jpg b/Files/CheatMenu/peds/Heckler/259.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Heckler/259.jpg rename to Files/CheatMenu/peds/Heckler/259.jpg diff --git a/moonloader/lib/cheat-menu/peds/Hippie/72.jpg b/Files/CheatMenu/peds/Hippie/72.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Hippie/72.jpg rename to Files/CheatMenu/peds/Hippie/72.jpg diff --git a/moonloader/lib/cheat-menu/peds/Hippie/73.jpg b/Files/CheatMenu/peds/Hippie/73.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Hippie/73.jpg rename to Files/CheatMenu/peds/Hippie/73.jpg diff --git a/moonloader/lib/cheat-menu/peds/Jogger/90.jpg b/Files/CheatMenu/peds/Jogger/90.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Jogger/90.jpg rename to Files/CheatMenu/peds/Jogger/90.jpg diff --git a/moonloader/lib/cheat-menu/peds/Jogger/96.jpg b/Files/CheatMenu/peds/Jogger/96.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Jogger/96.jpg rename to Files/CheatMenu/peds/Jogger/96.jpg diff --git a/moonloader/lib/cheat-menu/peds/Karate student/203.jpg b/Files/CheatMenu/peds/Karate student/203.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Karate student/203.jpg rename to Files/CheatMenu/peds/Karate student/203.jpg diff --git a/moonloader/lib/cheat-menu/peds/Karate student/204.jpg b/Files/CheatMenu/peds/Karate student/204.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Karate student/204.jpg rename to Files/CheatMenu/peds/Karate student/204.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/265.jpg b/Files/CheatMenu/peds/Law enforcement/265.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/265.jpg rename to Files/CheatMenu/peds/Law enforcement/265.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/266.jpg b/Files/CheatMenu/peds/Law enforcement/266.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/266.jpg rename to Files/CheatMenu/peds/Law enforcement/266.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/267.jpg b/Files/CheatMenu/peds/Law enforcement/267.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/267.jpg rename to Files/CheatMenu/peds/Law enforcement/267.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/280.jpg b/Files/CheatMenu/peds/Law enforcement/280.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/280.jpg rename to Files/CheatMenu/peds/Law enforcement/280.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/281.jpg b/Files/CheatMenu/peds/Law enforcement/281.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/281.jpg rename to Files/CheatMenu/peds/Law enforcement/281.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/282.jpg b/Files/CheatMenu/peds/Law enforcement/282.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/282.jpg rename to Files/CheatMenu/peds/Law enforcement/282.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/283.jpg b/Files/CheatMenu/peds/Law enforcement/283.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/283.jpg rename to Files/CheatMenu/peds/Law enforcement/283.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/284.jpg b/Files/CheatMenu/peds/Law enforcement/284.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/284.jpg rename to Files/CheatMenu/peds/Law enforcement/284.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/285.jpg b/Files/CheatMenu/peds/Law enforcement/285.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/285.jpg rename to Files/CheatMenu/peds/Law enforcement/285.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/286.jpg b/Files/CheatMenu/peds/Law enforcement/286.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/286.jpg rename to Files/CheatMenu/peds/Law enforcement/286.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/287.jpg b/Files/CheatMenu/peds/Law enforcement/287.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/287.jpg rename to Files/CheatMenu/peds/Law enforcement/287.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/288.jpg b/Files/CheatMenu/peds/Law enforcement/288.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/288.jpg rename to Files/CheatMenu/peds/Law enforcement/288.jpg diff --git a/moonloader/lib/cheat-menu/peds/Law enforcement/71.jpg b/Files/CheatMenu/peds/Law enforcement/71.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Law enforcement/71.jpg rename to Files/CheatMenu/peds/Law enforcement/71.jpg diff --git a/moonloader/lib/cheat-menu/peds/Life guard/251.jpg b/Files/CheatMenu/peds/Life guard/251.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Life guard/251.jpg rename to Files/CheatMenu/peds/Life guard/251.jpg diff --git a/moonloader/lib/cheat-menu/peds/Life guard/97.jpg b/Files/CheatMenu/peds/Life guard/97.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Life guard/97.jpg rename to Files/CheatMenu/peds/Life guard/97.jpg diff --git a/moonloader/lib/cheat-menu/peds/Los santos vagos/108.jpg b/Files/CheatMenu/peds/Los santos vagos/108.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Los santos vagos/108.jpg rename to Files/CheatMenu/peds/Los santos vagos/108.jpg diff --git a/moonloader/lib/cheat-menu/peds/Los santos vagos/109.jpg b/Files/CheatMenu/peds/Los santos vagos/109.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Los santos vagos/109.jpg rename to Files/CheatMenu/peds/Los santos vagos/109.jpg diff --git a/moonloader/lib/cheat-menu/peds/Los santos vagos/110.jpg b/Files/CheatMenu/peds/Los santos vagos/110.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Los santos vagos/110.jpg rename to Files/CheatMenu/peds/Los santos vagos/110.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class female/10.jpg b/Files/CheatMenu/peds/Low class female/10.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class female/10.jpg rename to Files/CheatMenu/peds/Low class female/10.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class female/129.jpg b/Files/CheatMenu/peds/Low class female/129.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class female/129.jpg rename to Files/CheatMenu/peds/Low class female/129.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class female/130.jpg b/Files/CheatMenu/peds/Low class female/130.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class female/130.jpg rename to Files/CheatMenu/peds/Low class female/130.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class female/131.jpg b/Files/CheatMenu/peds/Low class female/131.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class female/131.jpg rename to Files/CheatMenu/peds/Low class female/131.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class female/151.jpg b/Files/CheatMenu/peds/Low class female/151.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class female/151.jpg rename to Files/CheatMenu/peds/Low class female/151.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class female/201.jpg b/Files/CheatMenu/peds/Low class female/201.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class female/201.jpg rename to Files/CheatMenu/peds/Low class female/201.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class female/31.jpg b/Files/CheatMenu/peds/Low class female/31.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class female/31.jpg rename to Files/CheatMenu/peds/Low class female/31.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class male/128.jpg b/Files/CheatMenu/peds/Low class male/128.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class male/128.jpg rename to Files/CheatMenu/peds/Low class male/128.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class male/132.jpg b/Files/CheatMenu/peds/Low class male/132.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class male/132.jpg rename to Files/CheatMenu/peds/Low class male/132.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class male/133.jpg b/Files/CheatMenu/peds/Low class male/133.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class male/133.jpg rename to Files/CheatMenu/peds/Low class male/133.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class male/202.jpg b/Files/CheatMenu/peds/Low class male/202.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class male/202.jpg rename to Files/CheatMenu/peds/Low class male/202.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class male/32.jpg b/Files/CheatMenu/peds/Low class male/32.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class male/32.jpg rename to Files/CheatMenu/peds/Low class male/32.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class male/33.jpg b/Files/CheatMenu/peds/Low class male/33.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class male/33.jpg rename to Files/CheatMenu/peds/Low class male/33.jpg diff --git a/moonloader/lib/cheat-menu/peds/Low class male/34.jpg b/Files/CheatMenu/peds/Low class male/34.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Low class male/34.jpg rename to Files/CheatMenu/peds/Low class male/34.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mafia/111.jpg b/Files/CheatMenu/peds/Mafia/111.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mafia/111.jpg rename to Files/CheatMenu/peds/Mafia/111.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mafia/112.jpg b/Files/CheatMenu/peds/Mafia/112.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mafia/112.jpg rename to Files/CheatMenu/peds/Mafia/112.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mafia/113.jpg b/Files/CheatMenu/peds/Mafia/113.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mafia/113.jpg rename to Files/CheatMenu/peds/Mafia/113.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mafia/124.jpg b/Files/CheatMenu/peds/Mafia/124.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mafia/124.jpg rename to Files/CheatMenu/peds/Mafia/124.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mafia/125.jpg b/Files/CheatMenu/peds/Mafia/125.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mafia/125.jpg rename to Files/CheatMenu/peds/Mafia/125.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mafia/126.jpg b/Files/CheatMenu/peds/Mafia/126.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mafia/126.jpg rename to Files/CheatMenu/peds/Mafia/126.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mafia/127.jpg b/Files/CheatMenu/peds/Mafia/127.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mafia/127.jpg rename to Files/CheatMenu/peds/Mafia/127.jpg diff --git a/moonloader/lib/cheat-menu/peds/Medic/274.jpg b/Files/CheatMenu/peds/Medic/274.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Medic/274.jpg rename to Files/CheatMenu/peds/Medic/274.jpg diff --git a/moonloader/lib/cheat-menu/peds/Medic/275.jpg b/Files/CheatMenu/peds/Medic/275.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Medic/275.jpg rename to Files/CheatMenu/peds/Medic/275.jpg diff --git a/moonloader/lib/cheat-menu/peds/Medic/276.jpg b/Files/CheatMenu/peds/Medic/276.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Medic/276.jpg rename to Files/CheatMenu/peds/Medic/276.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/0.jpg b/Files/CheatMenu/peds/Misc/0.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/0.jpg rename to Files/CheatMenu/peds/Misc/0.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/1.jpg b/Files/CheatMenu/peds/Misc/1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/1.jpg rename to Files/CheatMenu/peds/Misc/1.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/10.jpg b/Files/CheatMenu/peds/Misc/10.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/10.jpg rename to Files/CheatMenu/peds/Misc/10.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/119.jpg b/Files/CheatMenu/peds/Misc/119.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/119.jpg rename to Files/CheatMenu/peds/Misc/119.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/13.jpg b/Files/CheatMenu/peds/Misc/13.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/13.jpg rename to Files/CheatMenu/peds/Misc/13.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/144.jpg b/Files/CheatMenu/peds/Misc/144.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/144.jpg rename to Files/CheatMenu/peds/Misc/144.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/145.jpg b/Files/CheatMenu/peds/Misc/145.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/145.jpg rename to Files/CheatMenu/peds/Misc/145.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/146.jpg b/Files/CheatMenu/peds/Misc/146.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/146.jpg rename to Files/CheatMenu/peds/Misc/146.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/187.jpg b/Files/CheatMenu/peds/Misc/187.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/187.jpg rename to Files/CheatMenu/peds/Misc/187.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/19.jpg b/Files/CheatMenu/peds/Misc/19.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/19.jpg rename to Files/CheatMenu/peds/Misc/19.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/2.jpg b/Files/CheatMenu/peds/Misc/2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/2.jpg rename to Files/CheatMenu/peds/Misc/2.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/208.jpg b/Files/CheatMenu/peds/Misc/208.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/208.jpg rename to Files/CheatMenu/peds/Misc/208.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/209.jpg b/Files/CheatMenu/peds/Misc/209.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/209.jpg rename to Files/CheatMenu/peds/Misc/209.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/210.jpg b/Files/CheatMenu/peds/Misc/210.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/210.jpg rename to Files/CheatMenu/peds/Misc/210.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/214.jpg b/Files/CheatMenu/peds/Misc/214.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/214.jpg rename to Files/CheatMenu/peds/Misc/214.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/218.jpg b/Files/CheatMenu/peds/Misc/218.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/218.jpg rename to Files/CheatMenu/peds/Misc/218.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/225.jpg b/Files/CheatMenu/peds/Misc/225.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/225.jpg rename to Files/CheatMenu/peds/Misc/225.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/226.jpg b/Files/CheatMenu/peds/Misc/226.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/226.jpg rename to Files/CheatMenu/peds/Misc/226.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/23.jpg b/Files/CheatMenu/peds/Misc/23.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/23.jpg rename to Files/CheatMenu/peds/Misc/23.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/232.jpg b/Files/CheatMenu/peds/Misc/232.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/232.jpg rename to Files/CheatMenu/peds/Misc/232.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/233.jpg b/Files/CheatMenu/peds/Misc/233.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/233.jpg rename to Files/CheatMenu/peds/Misc/233.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/263.jpg b/Files/CheatMenu/peds/Misc/263.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/263.jpg rename to Files/CheatMenu/peds/Misc/263.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/264.jpg b/Files/CheatMenu/peds/Misc/264.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/264.jpg rename to Files/CheatMenu/peds/Misc/264.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/272.jpg b/Files/CheatMenu/peds/Misc/272.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/272.jpg rename to Files/CheatMenu/peds/Misc/272.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/273.jpg b/Files/CheatMenu/peds/Misc/273.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/273.jpg rename to Files/CheatMenu/peds/Misc/273.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/289.jpg b/Files/CheatMenu/peds/Misc/289.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/289.jpg rename to Files/CheatMenu/peds/Misc/289.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/3.jpg b/Files/CheatMenu/peds/Misc/3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/3.jpg rename to Files/CheatMenu/peds/Misc/3.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/35.jpg b/Files/CheatMenu/peds/Misc/35.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/35.jpg rename to Files/CheatMenu/peds/Misc/35.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/39.jpg b/Files/CheatMenu/peds/Misc/39.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/39.jpg rename to Files/CheatMenu/peds/Misc/39.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/4.jpg b/Files/CheatMenu/peds/Misc/4.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/4.jpg rename to Files/CheatMenu/peds/Misc/4.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/41.jpg b/Files/CheatMenu/peds/Misc/41.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/41.jpg rename to Files/CheatMenu/peds/Misc/41.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/42.jpg b/Files/CheatMenu/peds/Misc/42.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/42.jpg rename to Files/CheatMenu/peds/Misc/42.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/49.jpg b/Files/CheatMenu/peds/Misc/49.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/49.jpg rename to Files/CheatMenu/peds/Misc/49.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/5.jpg b/Files/CheatMenu/peds/Misc/5.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/5.jpg rename to Files/CheatMenu/peds/Misc/5.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/54.jpg b/Files/CheatMenu/peds/Misc/54.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/54.jpg rename to Files/CheatMenu/peds/Misc/54.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/56.jpg b/Files/CheatMenu/peds/Misc/56.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/56.jpg rename to Files/CheatMenu/peds/Misc/56.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/6.jpg b/Files/CheatMenu/peds/Misc/6.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/6.jpg rename to Files/CheatMenu/peds/Misc/6.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/62.jpg b/Files/CheatMenu/peds/Misc/62.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/62.jpg rename to Files/CheatMenu/peds/Misc/62.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/65.jpg b/Files/CheatMenu/peds/Misc/65.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/65.jpg rename to Files/CheatMenu/peds/Misc/65.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/68.jpg b/Files/CheatMenu/peds/Misc/68.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/68.jpg rename to Files/CheatMenu/peds/Misc/68.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/69.jpg b/Files/CheatMenu/peds/Misc/69.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/69.jpg rename to Files/CheatMenu/peds/Misc/69.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/7.jpg b/Files/CheatMenu/peds/Misc/7.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/7.jpg rename to Files/CheatMenu/peds/Misc/7.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/70.jpg b/Files/CheatMenu/peds/Misc/70.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/70.jpg rename to Files/CheatMenu/peds/Misc/70.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/76.jpg b/Files/CheatMenu/peds/Misc/76.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/76.jpg rename to Files/CheatMenu/peds/Misc/76.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/8.jpg b/Files/CheatMenu/peds/Misc/8.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/8.jpg rename to Files/CheatMenu/peds/Misc/8.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/89.jpg b/Files/CheatMenu/peds/Misc/89.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/89.jpg rename to Files/CheatMenu/peds/Misc/89.jpg diff --git a/moonloader/lib/cheat-menu/peds/Misc/93.jpg b/Files/CheatMenu/peds/Misc/93.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Misc/93.jpg rename to Files/CheatMenu/peds/Misc/93.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mountain cloud triad/117.jpg b/Files/CheatMenu/peds/Mountain cloud triad/117.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mountain cloud triad/117.jpg rename to Files/CheatMenu/peds/Mountain cloud triad/117.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mountain cloud triad/118.jpg b/Files/CheatMenu/peds/Mountain cloud triad/118.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mountain cloud triad/118.jpg rename to Files/CheatMenu/peds/Mountain cloud triad/118.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mountain cloud triad/120.jpg b/Files/CheatMenu/peds/Mountain cloud triad/120.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mountain cloud triad/120.jpg rename to Files/CheatMenu/peds/Mountain cloud triad/120.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mountain/26.jpg b/Files/CheatMenu/peds/Mountain/26.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mountain/26.jpg rename to Files/CheatMenu/peds/Mountain/26.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mountain/51.jpg b/Files/CheatMenu/peds/Mountain/51.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mountain/51.jpg rename to Files/CheatMenu/peds/Mountain/51.jpg diff --git a/moonloader/lib/cheat-menu/peds/Mountain/52.jpg b/Files/CheatMenu/peds/Mountain/52.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Mountain/52.jpg rename to Files/CheatMenu/peds/Mountain/52.jpg diff --git a/moonloader/lib/cheat-menu/peds/Pol/66.jpg b/Files/CheatMenu/peds/Pol/66.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Pol/66.jpg rename to Files/CheatMenu/peds/Pol/66.jpg diff --git a/moonloader/lib/cheat-menu/peds/Pol/67.jpg b/Files/CheatMenu/peds/Pol/67.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Pol/67.jpg rename to Files/CheatMenu/peds/Pol/67.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/152.jpg b/Files/CheatMenu/peds/Prostitute/152.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/152.jpg rename to Files/CheatMenu/peds/Prostitute/152.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/178.jpg b/Files/CheatMenu/peds/Prostitute/178.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/178.jpg rename to Files/CheatMenu/peds/Prostitute/178.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/207.jpg b/Files/CheatMenu/peds/Prostitute/207.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/207.jpg rename to Files/CheatMenu/peds/Prostitute/207.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/237.jpg b/Files/CheatMenu/peds/Prostitute/237.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/237.jpg rename to Files/CheatMenu/peds/Prostitute/237.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/238.jpg b/Files/CheatMenu/peds/Prostitute/238.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/238.jpg rename to Files/CheatMenu/peds/Prostitute/238.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/243.jpg b/Files/CheatMenu/peds/Prostitute/243.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/243.jpg rename to Files/CheatMenu/peds/Prostitute/243.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/244.jpg b/Files/CheatMenu/peds/Prostitute/244.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/244.jpg rename to Files/CheatMenu/peds/Prostitute/244.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/245.jpg b/Files/CheatMenu/peds/Prostitute/245.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/245.jpg rename to Files/CheatMenu/peds/Prostitute/245.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/246.jpg b/Files/CheatMenu/peds/Prostitute/246.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/246.jpg rename to Files/CheatMenu/peds/Prostitute/246.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/249.jpg b/Files/CheatMenu/peds/Prostitute/249.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/249.jpg rename to Files/CheatMenu/peds/Prostitute/249.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/63.jpg b/Files/CheatMenu/peds/Prostitute/63.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/63.jpg rename to Files/CheatMenu/peds/Prostitute/63.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/64.jpg b/Files/CheatMenu/peds/Prostitute/64.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/64.jpg rename to Files/CheatMenu/peds/Prostitute/64.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/75.jpg b/Files/CheatMenu/peds/Prostitute/75.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/75.jpg rename to Files/CheatMenu/peds/Prostitute/75.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/85.jpg b/Files/CheatMenu/peds/Prostitute/85.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/85.jpg rename to Files/CheatMenu/peds/Prostitute/85.jpg diff --git a/moonloader/lib/cheat-menu/peds/Prostitute/87.jpg b/Files/CheatMenu/peds/Prostitute/87.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Prostitute/87.jpg rename to Files/CheatMenu/peds/Prostitute/87.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/12.jpg b/Files/CheatMenu/peds/Rich female/12.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/12.jpg rename to Files/CheatMenu/peds/Rich female/12.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/169.jpg b/Files/CheatMenu/peds/Rich female/169.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/169.jpg rename to Files/CheatMenu/peds/Rich female/169.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/215.jpg b/Files/CheatMenu/peds/Rich female/215.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/215.jpg rename to Files/CheatMenu/peds/Rich female/215.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/216.jpg b/Files/CheatMenu/peds/Rich female/216.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/216.jpg rename to Files/CheatMenu/peds/Rich female/216.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/219.jpg b/Files/CheatMenu/peds/Rich female/219.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/219.jpg rename to Files/CheatMenu/peds/Rich female/219.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/224.jpg b/Files/CheatMenu/peds/Rich female/224.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/224.jpg rename to Files/CheatMenu/peds/Rich female/224.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/231.jpg b/Files/CheatMenu/peds/Rich female/231.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/231.jpg rename to Files/CheatMenu/peds/Rich female/231.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/40.jpg b/Files/CheatMenu/peds/Rich female/40.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/40.jpg rename to Files/CheatMenu/peds/Rich female/40.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/53.jpg b/Files/CheatMenu/peds/Rich female/53.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/53.jpg rename to Files/CheatMenu/peds/Rich female/53.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/55.jpg b/Files/CheatMenu/peds/Rich female/55.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/55.jpg rename to Files/CheatMenu/peds/Rich female/55.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/88.jpg b/Files/CheatMenu/peds/Rich female/88.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/88.jpg rename to Files/CheatMenu/peds/Rich female/88.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/9.jpg b/Files/CheatMenu/peds/Rich female/9.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/9.jpg rename to Files/CheatMenu/peds/Rich female/9.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich female/91.jpg b/Files/CheatMenu/peds/Rich female/91.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich female/91.jpg rename to Files/CheatMenu/peds/Rich female/91.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/14.jpg b/Files/CheatMenu/peds/Rich male/14.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/14.jpg rename to Files/CheatMenu/peds/Rich male/14.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/185.jpg b/Files/CheatMenu/peds/Rich male/185.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/185.jpg rename to Files/CheatMenu/peds/Rich male/185.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/186.jpg b/Files/CheatMenu/peds/Rich male/186.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/186.jpg rename to Files/CheatMenu/peds/Rich male/186.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/20.jpg b/Files/CheatMenu/peds/Rich male/20.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/20.jpg rename to Files/CheatMenu/peds/Rich male/20.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/221.jpg b/Files/CheatMenu/peds/Rich male/221.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/221.jpg rename to Files/CheatMenu/peds/Rich male/221.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/235.jpg b/Files/CheatMenu/peds/Rich male/235.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/235.jpg rename to Files/CheatMenu/peds/Rich male/235.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/240.jpg b/Files/CheatMenu/peds/Rich male/240.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/240.jpg rename to Files/CheatMenu/peds/Rich male/240.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/43.jpg b/Files/CheatMenu/peds/Rich male/43.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/43.jpg rename to Files/CheatMenu/peds/Rich male/43.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/46.jpg b/Files/CheatMenu/peds/Rich male/46.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/46.jpg rename to Files/CheatMenu/peds/Rich male/46.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/57.jpg b/Files/CheatMenu/peds/Rich male/57.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/57.jpg rename to Files/CheatMenu/peds/Rich male/57.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/59.jpg b/Files/CheatMenu/peds/Rich male/59.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/59.jpg rename to Files/CheatMenu/peds/Rich male/59.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/94.jpg b/Files/CheatMenu/peds/Rich male/94.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/94.jpg rename to Files/CheatMenu/peds/Rich male/94.jpg diff --git a/moonloader/lib/cheat-menu/peds/Rich male/98.jpg b/Files/CheatMenu/peds/Rich male/98.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Rich male/98.jpg rename to Files/CheatMenu/peds/Rich male/98.jpg diff --git a/moonloader/lib/cheat-menu/peds/Roller blade/92.jpg b/Files/CheatMenu/peds/Roller blade/92.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Roller blade/92.jpg rename to Files/CheatMenu/peds/Roller blade/92.jpg diff --git a/moonloader/lib/cheat-menu/peds/Roller blade/99.jpg b/Files/CheatMenu/peds/Roller blade/99.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Roller blade/99.jpg rename to Files/CheatMenu/peds/Roller blade/99.jpg diff --git a/moonloader/lib/cheat-menu/peds/San fierro rifa/173.jpg b/Files/CheatMenu/peds/San fierro rifa/173.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/San fierro rifa/173.jpg rename to Files/CheatMenu/peds/San fierro rifa/173.jpg diff --git a/moonloader/lib/cheat-menu/peds/San fierro rifa/174.jpg b/Files/CheatMenu/peds/San fierro rifa/174.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/San fierro rifa/174.jpg rename to Files/CheatMenu/peds/San fierro rifa/174.jpg diff --git a/moonloader/lib/cheat-menu/peds/San fierro rifa/175.jpg b/Files/CheatMenu/peds/San fierro rifa/175.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/San fierro rifa/175.jpg rename to Files/CheatMenu/peds/San fierro rifa/175.jpg diff --git a/moonloader/lib/cheat-menu/peds/Shop seller/155.jpg b/Files/CheatMenu/peds/Shop seller/155.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Shop seller/155.jpg rename to Files/CheatMenu/peds/Shop seller/155.jpg diff --git a/moonloader/lib/cheat-menu/peds/Shop seller/156.jpg b/Files/CheatMenu/peds/Shop seller/156.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Shop seller/156.jpg rename to Files/CheatMenu/peds/Shop seller/156.jpg diff --git a/moonloader/lib/cheat-menu/peds/Shop seller/167.jpg b/Files/CheatMenu/peds/Shop seller/167.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Shop seller/167.jpg rename to Files/CheatMenu/peds/Shop seller/167.jpg diff --git a/moonloader/lib/cheat-menu/peds/Shop seller/168.jpg b/Files/CheatMenu/peds/Shop seller/168.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Shop seller/168.jpg rename to Files/CheatMenu/peds/Shop seller/168.jpg diff --git a/moonloader/lib/cheat-menu/peds/Shop seller/176.jpg b/Files/CheatMenu/peds/Shop seller/176.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Shop seller/176.jpg rename to Files/CheatMenu/peds/Shop seller/176.jpg diff --git a/moonloader/lib/cheat-menu/peds/Shop seller/177.jpg b/Files/CheatMenu/peds/Shop seller/177.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Shop seller/177.jpg rename to Files/CheatMenu/peds/Shop seller/177.jpg diff --git a/moonloader/lib/cheat-menu/peds/Shop seller/179.jpg b/Files/CheatMenu/peds/Shop seller/179.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Shop seller/179.jpg rename to Files/CheatMenu/peds/Shop seller/179.jpg diff --git a/moonloader/lib/cheat-menu/peds/Shop seller/180.jpg b/Files/CheatMenu/peds/Shop seller/180.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Shop seller/180.jpg rename to Files/CheatMenu/peds/Shop seller/180.jpg diff --git a/moonloader/lib/cheat-menu/peds/Shop seller/205.jpg b/Files/CheatMenu/peds/Shop seller/205.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Shop seller/205.jpg rename to Files/CheatMenu/peds/Shop seller/205.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/290.jpg b/Files/CheatMenu/peds/Special/290.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/290.jpg rename to Files/CheatMenu/peds/Special/290.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/291.jpg b/Files/CheatMenu/peds/Special/291.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/291.jpg rename to Files/CheatMenu/peds/Special/291.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/292.jpg b/Files/CheatMenu/peds/Special/292.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/292.jpg rename to Files/CheatMenu/peds/Special/292.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/293.jpg b/Files/CheatMenu/peds/Special/293.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/293.jpg rename to Files/CheatMenu/peds/Special/293.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/294.jpg b/Files/CheatMenu/peds/Special/294.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/294.jpg rename to Files/CheatMenu/peds/Special/294.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/295.jpg b/Files/CheatMenu/peds/Special/295.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/295.jpg rename to Files/CheatMenu/peds/Special/295.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/296.jpg b/Files/CheatMenu/peds/Special/296.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/296.jpg rename to Files/CheatMenu/peds/Special/296.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/297.jpg b/Files/CheatMenu/peds/Special/297.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/297.jpg rename to Files/CheatMenu/peds/Special/297.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/298.jpg b/Files/CheatMenu/peds/Special/298.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/298.jpg rename to Files/CheatMenu/peds/Special/298.jpg diff --git a/moonloader/lib/cheat-menu/peds/Special/299.jpg b/Files/CheatMenu/peds/Special/299.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Special/299.jpg rename to Files/CheatMenu/peds/Special/299.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/101.jpg b/Files/CheatMenu/peds/Street male/101.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/101.jpg rename to Files/CheatMenu/peds/Street male/101.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/142.jpg b/Files/CheatMenu/peds/Street male/142.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/142.jpg rename to Files/CheatMenu/peds/Street male/142.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/15.jpg b/Files/CheatMenu/peds/Street male/15.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/15.jpg rename to Files/CheatMenu/peds/Street male/15.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/170.jpg b/Files/CheatMenu/peds/Street male/170.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/170.jpg rename to Files/CheatMenu/peds/Street male/170.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/188.jpg b/Files/CheatMenu/peds/Street male/188.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/188.jpg rename to Files/CheatMenu/peds/Street male/188.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/22.jpg b/Files/CheatMenu/peds/Street male/22.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/22.jpg rename to Files/CheatMenu/peds/Street male/22.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/222.jpg b/Files/CheatMenu/peds/Street male/222.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/222.jpg rename to Files/CheatMenu/peds/Street male/222.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/229.jpg b/Files/CheatMenu/peds/Street male/229.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/229.jpg rename to Files/CheatMenu/peds/Street male/229.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/236.jpg b/Files/CheatMenu/peds/Street male/236.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/236.jpg rename to Files/CheatMenu/peds/Street male/236.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/241.jpg b/Files/CheatMenu/peds/Street male/241.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/241.jpg rename to Files/CheatMenu/peds/Street male/241.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/242.jpg b/Files/CheatMenu/peds/Street male/242.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/242.jpg rename to Files/CheatMenu/peds/Street male/242.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/44.jpg b/Files/CheatMenu/peds/Street male/44.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/44.jpg rename to Files/CheatMenu/peds/Street male/44.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/48.jpg b/Files/CheatMenu/peds/Street male/48.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/48.jpg rename to Files/CheatMenu/peds/Street male/48.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/58.jpg b/Files/CheatMenu/peds/Street male/58.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/58.jpg rename to Files/CheatMenu/peds/Street male/58.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/60.jpg b/Files/CheatMenu/peds/Street male/60.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/60.jpg rename to Files/CheatMenu/peds/Street male/60.jpg diff --git a/moonloader/lib/cheat-menu/peds/Street male/95.jpg b/Files/CheatMenu/peds/Street male/95.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Street male/95.jpg rename to Files/CheatMenu/peds/Street male/95.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp female/256.jpg b/Files/CheatMenu/peds/Tramp female/256.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp female/256.jpg rename to Files/CheatMenu/peds/Tramp female/256.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp female/257.jpg b/Files/CheatMenu/peds/Tramp female/257.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp female/257.jpg rename to Files/CheatMenu/peds/Tramp female/257.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp female/77.jpg b/Files/CheatMenu/peds/Tramp female/77.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp female/77.jpg rename to Files/CheatMenu/peds/Tramp female/77.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/134.jpg b/Files/CheatMenu/peds/Tramp male/134.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/134.jpg rename to Files/CheatMenu/peds/Tramp male/134.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/135.jpg b/Files/CheatMenu/peds/Tramp male/135.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/135.jpg rename to Files/CheatMenu/peds/Tramp male/135.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/136.jpg b/Files/CheatMenu/peds/Tramp male/136.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/136.jpg rename to Files/CheatMenu/peds/Tramp male/136.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/137.jpg b/Files/CheatMenu/peds/Tramp male/137.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/137.jpg rename to Files/CheatMenu/peds/Tramp male/137.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/212.jpg b/Files/CheatMenu/peds/Tramp male/212.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/212.jpg rename to Files/CheatMenu/peds/Tramp male/212.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/213.jpg b/Files/CheatMenu/peds/Tramp male/213.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/213.jpg rename to Files/CheatMenu/peds/Tramp male/213.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/230.jpg b/Files/CheatMenu/peds/Tramp male/230.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/230.jpg rename to Files/CheatMenu/peds/Tramp male/230.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/239.jpg b/Files/CheatMenu/peds/Tramp male/239.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/239.jpg rename to Files/CheatMenu/peds/Tramp male/239.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/78.jpg b/Files/CheatMenu/peds/Tramp male/78.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/78.jpg rename to Files/CheatMenu/peds/Tramp male/78.jpg diff --git a/moonloader/lib/cheat-menu/peds/Tramp male/79.jpg b/Files/CheatMenu/peds/Tramp male/79.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Tramp male/79.jpg rename to Files/CheatMenu/peds/Tramp male/79.jpg diff --git a/moonloader/lib/cheat-menu/peds/Valet/189.jpg b/Files/CheatMenu/peds/Valet/189.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Valet/189.jpg rename to Files/CheatMenu/peds/Valet/189.jpg diff --git a/moonloader/lib/cheat-menu/peds/Valet/252.jpg b/Files/CheatMenu/peds/Valet/252.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Valet/252.jpg rename to Files/CheatMenu/peds/Valet/252.jpg diff --git a/moonloader/lib/cheat-menu/peds/Varrios los aztecas/114.jpg b/Files/CheatMenu/peds/Varrios los aztecas/114.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Varrios los aztecas/114.jpg rename to Files/CheatMenu/peds/Varrios los aztecas/114.jpg diff --git a/moonloader/lib/cheat-menu/peds/Varrios los aztecas/115.jpg b/Files/CheatMenu/peds/Varrios los aztecas/115.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Varrios los aztecas/115.jpg rename to Files/CheatMenu/peds/Varrios los aztecas/115.jpg diff --git a/moonloader/lib/cheat-menu/peds/Varrios los aztecas/116.jpg b/Files/CheatMenu/peds/Varrios los aztecas/116.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Varrios los aztecas/116.jpg rename to Files/CheatMenu/peds/Varrios los aztecas/116.jpg diff --git a/moonloader/lib/cheat-menu/peds/Worker/16.jpg b/Files/CheatMenu/peds/Worker/16.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Worker/16.jpg rename to Files/CheatMenu/peds/Worker/16.jpg diff --git a/moonloader/lib/cheat-menu/peds/Worker/253.jpg b/Files/CheatMenu/peds/Worker/253.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Worker/253.jpg rename to Files/CheatMenu/peds/Worker/253.jpg diff --git a/moonloader/lib/cheat-menu/peds/Worker/255.jpg b/Files/CheatMenu/peds/Worker/255.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Worker/255.jpg rename to Files/CheatMenu/peds/Worker/255.jpg diff --git a/moonloader/lib/cheat-menu/peds/Worker/268.jpg b/Files/CheatMenu/peds/Worker/268.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Worker/268.jpg rename to Files/CheatMenu/peds/Worker/268.jpg diff --git a/moonloader/lib/cheat-menu/peds/Worker/50.jpg b/Files/CheatMenu/peds/Worker/50.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Worker/50.jpg rename to Files/CheatMenu/peds/Worker/50.jpg diff --git a/moonloader/lib/cheat-menu/peds/Worker/61.jpg b/Files/CheatMenu/peds/Worker/61.jpg similarity index 100% rename from moonloader/lib/cheat-menu/peds/Worker/61.jpg rename to Files/CheatMenu/peds/Worker/61.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Bullbar/1100.jpg b/Files/CheatMenu/vehicles/components/Bullbar/1100.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Bullbar/1100.jpg rename to Files/CheatMenu/vehicles/components/Bullbar/1100.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Bullbar/1109.jpg b/Files/CheatMenu/vehicles/components/Bullbar/1109.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Bullbar/1109.jpg rename to Files/CheatMenu/vehicles/components/Bullbar/1109.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Bullbar/1110.jpg b/Files/CheatMenu/vehicles/components/Bullbar/1110.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Bullbar/1110.jpg rename to Files/CheatMenu/vehicles/components/Bullbar/1110.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Bullbar/1115.jpg b/Files/CheatMenu/vehicles/components/Bullbar/1115.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Bullbar/1115.jpg rename to Files/CheatMenu/vehicles/components/Bullbar/1115.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Bullbar/1116.jpg b/Files/CheatMenu/vehicles/components/Bullbar/1116.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Bullbar/1116.jpg rename to Files/CheatMenu/vehicles/components/Bullbar/1116.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Bullbar/1123.jpg b/Files/CheatMenu/vehicles/components/Bullbar/1123.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Bullbar/1123.jpg rename to Files/CheatMenu/vehicles/components/Bullbar/1123.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Bullbar/1125.jpg b/Files/CheatMenu/vehicles/components/Bullbar/1125.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Bullbar/1125.jpg rename to Files/CheatMenu/vehicles/components/Bullbar/1125.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1018.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1018.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1018.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1018.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1019.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1019.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1019.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1019.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1020.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1020.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1020.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1020.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1021.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1021.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1021.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1021.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1022.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1022.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1022.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1022.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1028.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1028.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1028.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1028.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1029.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1029.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1029.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1029.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1034.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1034.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1034.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1034.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1037.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1037.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1037.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1037.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1043.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1043.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1043.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1043.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1044.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1044.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1044.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1044.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1045.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1045.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1045.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1045.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1046.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1046.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1046.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1046.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1059.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1059.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1059.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1059.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1064.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1064.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1064.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1064.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1065.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1065.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1065.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1065.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1066.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1066.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1066.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1066.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1089.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1089.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1089.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1089.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1092.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1092.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1092.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1092.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1104.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1104.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1104.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1104.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1105.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1105.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1105.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1105.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1113.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1113.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1113.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1113.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1114.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1114.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1114.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1114.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1126.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1126.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1126.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1126.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1127.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1127.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1127.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1127.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1129.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1129.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1129.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1129.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1132.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1132.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1132.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1132.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1135.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1135.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1135.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1135.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Exhaust/1136.jpg b/Files/CheatMenu/vehicles/components/Exhaust/1136.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Exhaust/1136.jpg rename to Files/CheatMenu/vehicles/components/Exhaust/1136.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1117.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1117.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1117.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1117.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1152.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1152.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1152.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1152.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1153.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1153.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1153.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1153.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1155.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1155.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1155.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1155.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1157.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1157.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1157.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1157.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1160.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1160.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1160.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1160.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1165.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1165.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1165.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1165.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1166.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1166.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1166.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1166.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1169.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1169.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1169.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1169.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1170.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1170.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1170.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1170.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1171.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1171.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1171.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1171.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1172.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1172.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1172.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1172.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1173.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1173.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1173.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1173.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1174.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1174.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1174.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1174.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1175.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1175.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1175.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1175.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1179.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1179.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1179.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1179.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1181.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1181.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1181.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1181.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1182.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1182.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1182.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1182.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1185.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1185.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1185.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1185.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1188.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1188.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1188.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1188.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1189.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1189.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1189.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1189.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1190.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1190.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1190.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1190.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front bumper/1191.jpg b/Files/CheatMenu/vehicles/components/Front bumper/1191.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front bumper/1191.jpg rename to Files/CheatMenu/vehicles/components/Front bumper/1191.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front sign/1111.jpg b/Files/CheatMenu/vehicles/components/Front sign/1111.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front sign/1111.jpg rename to Files/CheatMenu/vehicles/components/Front sign/1111.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Front sign/1112.jpg b/Files/CheatMenu/vehicles/components/Front sign/1112.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Front sign/1112.jpg rename to Files/CheatMenu/vehicles/components/Front sign/1112.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Hood/1004.jpg b/Files/CheatMenu/vehicles/components/Hood/1004.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Hood/1004.jpg rename to Files/CheatMenu/vehicles/components/Hood/1004.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Hood/1005.jpg b/Files/CheatMenu/vehicles/components/Hood/1005.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Hood/1005.jpg rename to Files/CheatMenu/vehicles/components/Hood/1005.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Hood/1011.jpg b/Files/CheatMenu/vehicles/components/Hood/1011.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Hood/1011.jpg rename to Files/CheatMenu/vehicles/components/Hood/1011.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Hood/1012.jpg b/Files/CheatMenu/vehicles/components/Hood/1012.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Hood/1012.jpg rename to Files/CheatMenu/vehicles/components/Hood/1012.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Lamps/1013.jpg b/Files/CheatMenu/vehicles/components/Lamps/1013.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Lamps/1013.jpg rename to Files/CheatMenu/vehicles/components/Lamps/1013.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Lamps/1024.jpg b/Files/CheatMenu/vehicles/components/Lamps/1024.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Lamps/1024.jpg rename to Files/CheatMenu/vehicles/components/Lamps/1024.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Misc/1086.jpg b/Files/CheatMenu/vehicles/components/Misc/1086.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Misc/1086.jpg rename to Files/CheatMenu/vehicles/components/Misc/1086.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Misc/1087.jpg b/Files/CheatMenu/vehicles/components/Misc/1087.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Misc/1087.jpg rename to Files/CheatMenu/vehicles/components/Misc/1087.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Nitros/1008.jpg b/Files/CheatMenu/vehicles/components/Nitros/1008.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Nitros/1008.jpg rename to Files/CheatMenu/vehicles/components/Nitros/1008.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Nitros/1009.jpg b/Files/CheatMenu/vehicles/components/Nitros/1009.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Nitros/1009.jpg rename to Files/CheatMenu/vehicles/components/Nitros/1009.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Nitros/1010.jpg b/Files/CheatMenu/vehicles/components/Nitros/1010.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Nitros/1010.jpg rename to Files/CheatMenu/vehicles/components/Nitros/1010.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1140.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1140.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1140.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1140.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1141.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1141.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1141.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1141.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1148.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1148.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1148.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1148.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1149.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1149.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1149.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1149.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1150.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1150.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1150.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1150.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1151.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1151.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1151.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1151.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1154.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1154.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1154.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1154.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1156.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1156.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1156.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1156.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1159.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1159.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1159.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1159.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1161.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1161.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1161.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1161.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1167.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1167.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1167.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1167.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1168.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1168.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1168.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1168.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1176.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1176.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1176.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1176.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1177.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1177.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1177.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1177.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1178.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1178.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1178.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1178.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1180.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1180.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1180.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1180.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1183.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1183.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1183.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1183.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1184.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1184.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1184.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1184.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1186.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1186.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1186.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1186.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1187.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1187.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1187.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1187.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1192.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1192.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1192.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1192.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1193.jpg b/Files/CheatMenu/vehicles/components/Rear bumper/1193.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Rear bumper/1193.jpg rename to Files/CheatMenu/vehicles/components/Rear bumper/1193.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1006.jpg b/Files/CheatMenu/vehicles/components/Roof/1006.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1006.jpg rename to Files/CheatMenu/vehicles/components/Roof/1006.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1032.jpg b/Files/CheatMenu/vehicles/components/Roof/1032.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1032.jpg rename to Files/CheatMenu/vehicles/components/Roof/1032.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1033.jpg b/Files/CheatMenu/vehicles/components/Roof/1033.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1033.jpg rename to Files/CheatMenu/vehicles/components/Roof/1033.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1035.jpg b/Files/CheatMenu/vehicles/components/Roof/1035.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1035.jpg rename to Files/CheatMenu/vehicles/components/Roof/1035.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1038.jpg b/Files/CheatMenu/vehicles/components/Roof/1038.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1038.jpg rename to Files/CheatMenu/vehicles/components/Roof/1038.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1053.jpg b/Files/CheatMenu/vehicles/components/Roof/1053.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1053.jpg rename to Files/CheatMenu/vehicles/components/Roof/1053.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1054.jpg b/Files/CheatMenu/vehicles/components/Roof/1054.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1054.jpg rename to Files/CheatMenu/vehicles/components/Roof/1054.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1055.jpg b/Files/CheatMenu/vehicles/components/Roof/1055.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1055.jpg rename to Files/CheatMenu/vehicles/components/Roof/1055.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1061.jpg b/Files/CheatMenu/vehicles/components/Roof/1061.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1061.jpg rename to Files/CheatMenu/vehicles/components/Roof/1061.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1067.jpg b/Files/CheatMenu/vehicles/components/Roof/1067.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1067.jpg rename to Files/CheatMenu/vehicles/components/Roof/1067.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1068.jpg b/Files/CheatMenu/vehicles/components/Roof/1068.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1068.jpg rename to Files/CheatMenu/vehicles/components/Roof/1068.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1088.jpg b/Files/CheatMenu/vehicles/components/Roof/1088.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1088.jpg rename to Files/CheatMenu/vehicles/components/Roof/1088.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1091.jpg b/Files/CheatMenu/vehicles/components/Roof/1091.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1091.jpg rename to Files/CheatMenu/vehicles/components/Roof/1091.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1103.jpg b/Files/CheatMenu/vehicles/components/Roof/1103.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1103.jpg rename to Files/CheatMenu/vehicles/components/Roof/1103.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1128.jpg b/Files/CheatMenu/vehicles/components/Roof/1128.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1128.jpg rename to Files/CheatMenu/vehicles/components/Roof/1128.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1130.jpg b/Files/CheatMenu/vehicles/components/Roof/1130.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1130.jpg rename to Files/CheatMenu/vehicles/components/Roof/1130.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Roof/1131.jpg b/Files/CheatMenu/vehicles/components/Roof/1131.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Roof/1131.jpg rename to Files/CheatMenu/vehicles/components/Roof/1131.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1007.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1007 similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1007.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1007 diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1017.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1017.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1017.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1017.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1026.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1026.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1026.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1026.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1027.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1027.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1027.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1027.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1030.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1030.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1030.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1030.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1031.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1031.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1031.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1031.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1036.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1036.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1036.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1036.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1039.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1039.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1039.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1039.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1040.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1040.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1040.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1040.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1041.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1041.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1041.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1041.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1042.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1042.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1042.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1042.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1047.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1047.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1047.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1047.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1048.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1048.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1048.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1048.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1051.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1051.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1051.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1051.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1052.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1052.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1052.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1052.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1056.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1056.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1056.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1056.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1057.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1057.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1057.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1057.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1062.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1062.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1062.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1062.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1063.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1063.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1063.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1063.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1069.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1069.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1069.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1069.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1070.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1070.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1070.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1070.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1071.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1071.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1071.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1071.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1072.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1072.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1072.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1072.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1090.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1090.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1090.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1090.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1093.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1093.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1093.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1093.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1094.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1094.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1094.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1094.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1095.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1095.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1095.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1095.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1099.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1099.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1099.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1099.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1101.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1101.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1101.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1101.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1102.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1102.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1102.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1102.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1106.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1106.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1106.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1106.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1107.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1107.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1107.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1107.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1108.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1108.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1108.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1108.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1118.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1118.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1118.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1118.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1119.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1119.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1119.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1119.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1120.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1120.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1120.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1120.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1121.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1121.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1121.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1121.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1122.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1122.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1122.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1122.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1124.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1124.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1124.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1124.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1133.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1133.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1133.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1133.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1134.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1134.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1134.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1134.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1137.jpg b/Files/CheatMenu/vehicles/components/Sideskirt/1137.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Sideskirt/1137.jpg rename to Files/CheatMenu/vehicles/components/Sideskirt/1137.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1000.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1000.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1000.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1000.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1001.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1001.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1001.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1001.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1002.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1002.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1002.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1002.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1003.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1003.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1003.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1003.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1014.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1014.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1014.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1014.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1015.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1015.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1015.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1015.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1016.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1016.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1016.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1016.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1023.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1023.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1023.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1023.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1049.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1049.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1049.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1049.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1050.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1050.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1050.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1050.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1058.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1058.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1058.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1058.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1060.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1060.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1060.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1060.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1138.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1138.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1138.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1138.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1139.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1139.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1139.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1139.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1146.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1146.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1146.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1146.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1147.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1147.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1147.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1147.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1158.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1158.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1158.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1158.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1162.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1162.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1162.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1162.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1163.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1163.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1163.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1163.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Spoiler/1164.jpg b/Files/CheatMenu/vehicles/components/Spoiler/1164.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Spoiler/1164.jpg rename to Files/CheatMenu/vehicles/components/Spoiler/1164.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Vents/1142.jpg b/Files/CheatMenu/vehicles/components/Vents/1142.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Vents/1142.jpg rename to Files/CheatMenu/vehicles/components/Vents/1142.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Vents/1143.jpg b/Files/CheatMenu/vehicles/components/Vents/1143.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Vents/1143.jpg rename to Files/CheatMenu/vehicles/components/Vents/1143.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Vents/1144.jpg b/Files/CheatMenu/vehicles/components/Vents/1144.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Vents/1144.jpg rename to Files/CheatMenu/vehicles/components/Vents/1144.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Vents/1145.jpg b/Files/CheatMenu/vehicles/components/Vents/1145.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Vents/1145.jpg rename to Files/CheatMenu/vehicles/components/Vents/1145.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1025.jpg b/Files/CheatMenu/vehicles/components/Wheels/1025.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1025.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1025.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1073.jpg b/Files/CheatMenu/vehicles/components/Wheels/1073.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1073.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1073.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1074.jpg b/Files/CheatMenu/vehicles/components/Wheels/1074.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1074.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1074.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1075.jpg b/Files/CheatMenu/vehicles/components/Wheels/1075.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1075.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1075.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1076.jpg b/Files/CheatMenu/vehicles/components/Wheels/1076.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1076.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1076.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1077.jpg b/Files/CheatMenu/vehicles/components/Wheels/1077.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1077.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1077.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1078.jpg b/Files/CheatMenu/vehicles/components/Wheels/1078.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1078.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1078.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1079.jpg b/Files/CheatMenu/vehicles/components/Wheels/1079.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1079.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1079.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1080.jpg b/Files/CheatMenu/vehicles/components/Wheels/1080.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1080.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1080.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1081.jpg b/Files/CheatMenu/vehicles/components/Wheels/1081.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1081.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1081.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1082.jpg b/Files/CheatMenu/vehicles/components/Wheels/1082.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1082.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1082.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1083.jpg b/Files/CheatMenu/vehicles/components/Wheels/1083.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1083.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1083.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1084.jpg b/Files/CheatMenu/vehicles/components/Wheels/1084.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1084.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1084.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1085.jpg b/Files/CheatMenu/vehicles/components/Wheels/1085.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1085.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1085.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1096.jpg b/Files/CheatMenu/vehicles/components/Wheels/1096.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1096.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1096.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1097.jpg b/Files/CheatMenu/vehicles/components/Wheels/1097.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1097.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1097.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/components/Wheels/1098.jpg b/Files/CheatMenu/vehicles/components/Wheels/1098.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/components/Wheels/1098.jpg rename to Files/CheatMenu/vehicles/components/Wheels/1098.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/401.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/401.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/401.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/401.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/410.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/410.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/410.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/410.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/419.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/419.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/419.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/419.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/434.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/434.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/434.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/434.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/436.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/436.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/436.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/436.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/439.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/439.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/439.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/439.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/474.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/474.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/474.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/474.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/480.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/480.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/480.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/480.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/491.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/491.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/491.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/491.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/496.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/496.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/496.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/496.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/517.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/517.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/517.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/517.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/518.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/518.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/518.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/518.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/526.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/526.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/526.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/526.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/527.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/527.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/527.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/527.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/533.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/533.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/533.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/533.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/545.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/545.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/545.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/545.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/555.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/555.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/555.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/555.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/558.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/558.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/558.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/558.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/559.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/559.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/559.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/559.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/562.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/562.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/562.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/562.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/565.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/565.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/565.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/565.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/587.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/587.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/587.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/587.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/589.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/589.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/589.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/589.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/600.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/600.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/600.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/600.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/602.jpg b/Files/CheatMenu/vehicles/images/2 door & compact cars/602.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/2 door & compact cars/602.jpg rename to Files/CheatMenu/vehicles/images/2 door & compact cars/602.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/405.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/405.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/405.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/405.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/409.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/409.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/409.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/409.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/421.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/421.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/421.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/421.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/426.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/426.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/426.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/426.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/445.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/445.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/445.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/445.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/466.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/466.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/466.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/466.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/467.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/467.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/467.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/467.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/492.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/492.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/492.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/492.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/507.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/507.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/507.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/507.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/516.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/516.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/516.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/516.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/529.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/529.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/529.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/529.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/540.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/540.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/540.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/540.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/546.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/546.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/546.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/546.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/547.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/547.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/547.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/547.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/550.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/550.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/550.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/550.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/551.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/551.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/551.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/551.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/560.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/560.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/560.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/560.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/566.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/566.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/566.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/566.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/580.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/580.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/580.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/580.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/585.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/585.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/585.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/585.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/604.jpg b/Files/CheatMenu/vehicles/images/4 door & luxary cars/604.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/4 door & luxary cars/604.jpg rename to Files/CheatMenu/vehicles/images/4 door & luxary cars/604.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/460.jpg b/Files/CheatMenu/vehicles/images/Airplanes/460.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/460.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/460.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/476.jpg b/Files/CheatMenu/vehicles/images/Airplanes/476.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/476.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/476.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/511.jpg b/Files/CheatMenu/vehicles/images/Airplanes/511.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/511.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/511.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/512.jpg b/Files/CheatMenu/vehicles/images/Airplanes/512.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/512.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/512.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/513.jpg b/Files/CheatMenu/vehicles/images/Airplanes/513.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/513.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/513.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/519.jpg b/Files/CheatMenu/vehicles/images/Airplanes/519.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/519.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/519.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/520.jpg b/Files/CheatMenu/vehicles/images/Airplanes/520.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/520.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/520.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/553.jpg b/Files/CheatMenu/vehicles/images/Airplanes/553.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/553.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/553.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/577.jpg b/Files/CheatMenu/vehicles/images/Airplanes/577.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/577.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/577.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/592.jpg b/Files/CheatMenu/vehicles/images/Airplanes/592.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/592.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/592.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Airplanes/593.jpg b/Files/CheatMenu/vehicles/images/Airplanes/593.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Airplanes/593.jpg rename to Files/CheatMenu/vehicles/images/Airplanes/593.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/448.jpg b/Files/CheatMenu/vehicles/images/Bikes/448.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/448.jpg rename to Files/CheatMenu/vehicles/images/Bikes/448.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/461.jpg b/Files/CheatMenu/vehicles/images/Bikes/461.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/461.jpg rename to Files/CheatMenu/vehicles/images/Bikes/461.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/462.jpg b/Files/CheatMenu/vehicles/images/Bikes/462.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/462.jpg rename to Files/CheatMenu/vehicles/images/Bikes/462.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/463.jpg b/Files/CheatMenu/vehicles/images/Bikes/463.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/463.jpg rename to Files/CheatMenu/vehicles/images/Bikes/463.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/468.jpg b/Files/CheatMenu/vehicles/images/Bikes/468.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/468.jpg rename to Files/CheatMenu/vehicles/images/Bikes/468.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/481.jpg b/Files/CheatMenu/vehicles/images/Bikes/481.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/481.jpg rename to Files/CheatMenu/vehicles/images/Bikes/481.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/509.jpg b/Files/CheatMenu/vehicles/images/Bikes/509.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/509.jpg rename to Files/CheatMenu/vehicles/images/Bikes/509.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/510.jpg b/Files/CheatMenu/vehicles/images/Bikes/510.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/510.jpg rename to Files/CheatMenu/vehicles/images/Bikes/510.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/521.jpg b/Files/CheatMenu/vehicles/images/Bikes/521.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/521.jpg rename to Files/CheatMenu/vehicles/images/Bikes/521.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/522.jpg b/Files/CheatMenu/vehicles/images/Bikes/522.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/522.jpg rename to Files/CheatMenu/vehicles/images/Bikes/522.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/581.jpg b/Files/CheatMenu/vehicles/images/Bikes/581.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/581.jpg rename to Files/CheatMenu/vehicles/images/Bikes/581.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Bikes/586.jpg b/Files/CheatMenu/vehicles/images/Bikes/586.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Bikes/586.jpg rename to Files/CheatMenu/vehicles/images/Bikes/586.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/430.jpg b/Files/CheatMenu/vehicles/images/Boats/430.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/430.jpg rename to Files/CheatMenu/vehicles/images/Boats/430.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/446.jpg b/Files/CheatMenu/vehicles/images/Boats/446.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/446.jpg rename to Files/CheatMenu/vehicles/images/Boats/446.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/452.jpg b/Files/CheatMenu/vehicles/images/Boats/452.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/452.jpg rename to Files/CheatMenu/vehicles/images/Boats/452.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/453.jpg b/Files/CheatMenu/vehicles/images/Boats/453.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/453.jpg rename to Files/CheatMenu/vehicles/images/Boats/453.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/454.jpg b/Files/CheatMenu/vehicles/images/Boats/454.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/454.jpg rename to Files/CheatMenu/vehicles/images/Boats/454.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/472.jpg b/Files/CheatMenu/vehicles/images/Boats/472.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/472.jpg rename to Files/CheatMenu/vehicles/images/Boats/472.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/473.jpg b/Files/CheatMenu/vehicles/images/Boats/473.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/473.jpg rename to Files/CheatMenu/vehicles/images/Boats/473.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/484.jpg b/Files/CheatMenu/vehicles/images/Boats/484.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/484.jpg rename to Files/CheatMenu/vehicles/images/Boats/484.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/493.jpg b/Files/CheatMenu/vehicles/images/Boats/493.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/493.jpg rename to Files/CheatMenu/vehicles/images/Boats/493.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Boats/595.jpg b/Files/CheatMenu/vehicles/images/Boats/595.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Boats/595.jpg rename to Files/CheatMenu/vehicles/images/Boats/595.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Civil service/408.jpg b/Files/CheatMenu/vehicles/images/Civil service/408.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Civil service/408.jpg rename to Files/CheatMenu/vehicles/images/Civil service/408.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Civil service/420.jpg b/Files/CheatMenu/vehicles/images/Civil service/420.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Civil service/420.jpg rename to Files/CheatMenu/vehicles/images/Civil service/420.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Civil service/431.jpg b/Files/CheatMenu/vehicles/images/Civil service/431.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Civil service/431.jpg rename to Files/CheatMenu/vehicles/images/Civil service/431.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Civil service/437.jpg b/Files/CheatMenu/vehicles/images/Civil service/437.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Civil service/437.jpg rename to Files/CheatMenu/vehicles/images/Civil service/437.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Civil service/438.jpg b/Files/CheatMenu/vehicles/images/Civil service/438.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Civil service/438.jpg rename to Files/CheatMenu/vehicles/images/Civil service/438.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Civil service/485.jpg b/Files/CheatMenu/vehicles/images/Civil service/485.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Civil service/485.jpg rename to Files/CheatMenu/vehicles/images/Civil service/485.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Civil service/525.jpg b/Files/CheatMenu/vehicles/images/Civil service/525.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Civil service/525.jpg rename to Files/CheatMenu/vehicles/images/Civil service/525.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Civil service/552.jpg b/Files/CheatMenu/vehicles/images/Civil service/552.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Civil service/552.jpg rename to Files/CheatMenu/vehicles/images/Civil service/552.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Civil service/574.jpg b/Files/CheatMenu/vehicles/images/Civil service/574.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Civil service/574.jpg rename to Files/CheatMenu/vehicles/images/Civil service/574.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/407.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/407.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/407.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/407.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/416.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/416.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/416.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/416.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/427.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/427.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/427.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/427.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/428.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/428.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/428.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/428.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/432.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/432.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/432.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/432.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/433.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/433.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/433.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/433.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/470.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/470.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/470.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/470.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/490.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/490.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/490.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/490.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/523.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/523.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/523.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/523.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/528.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/528.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/528.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/528.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/544.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/544.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/544.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/544.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/596.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/596.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/596.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/596.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/597.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/597.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/597.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/597.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/598.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/598.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/598.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/598.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/599.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/599.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/599.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/599.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Government vehicles/601.jpg b/Files/CheatMenu/vehicles/images/Government vehicles/601.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Government vehicles/601.jpg rename to Files/CheatMenu/vehicles/images/Government vehicles/601.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/403.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/403.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/403.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/403.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/406.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/406.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/406.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/406.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/414.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/414.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/414.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/414.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/423.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/423.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/423.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/423.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/443.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/443.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/443.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/443.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/455.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/455.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/455.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/455.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/456.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/456.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/456.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/456.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/486.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/486.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/486.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/486.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/498.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/498.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/498.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/498.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/499.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/499.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/499.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/499.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/514.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/514.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/514.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/514.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/515.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/515.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/515.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/515.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/524.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/524.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/524.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/524.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/531.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/531.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/531.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/531.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/532.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/532.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/532.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/532.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/573.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/573.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/573.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/573.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/578.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/578.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/578.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/578.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/588.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/588.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/588.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/588.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/609.jpg b/Files/CheatMenu/vehicles/images/Heavy & utility truck/609.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Heavy & utility truck/609.jpg rename to Files/CheatMenu/vehicles/images/Heavy & utility truck/609.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Helicopters/417.jpg b/Files/CheatMenu/vehicles/images/Helicopters/417.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Helicopters/417.jpg rename to Files/CheatMenu/vehicles/images/Helicopters/417.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Helicopters/425.jpg b/Files/CheatMenu/vehicles/images/Helicopters/425.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Helicopters/425.jpg rename to Files/CheatMenu/vehicles/images/Helicopters/425.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Helicopters/447.jpg b/Files/CheatMenu/vehicles/images/Helicopters/447.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Helicopters/447.jpg rename to Files/CheatMenu/vehicles/images/Helicopters/447.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Helicopters/469.jpg b/Files/CheatMenu/vehicles/images/Helicopters/469.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Helicopters/469.jpg rename to Files/CheatMenu/vehicles/images/Helicopters/469.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Helicopters/487.jpg b/Files/CheatMenu/vehicles/images/Helicopters/487.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Helicopters/487.jpg rename to Files/CheatMenu/vehicles/images/Helicopters/487.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Helicopters/488.jpg b/Files/CheatMenu/vehicles/images/Helicopters/488.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Helicopters/488.jpg rename to Files/CheatMenu/vehicles/images/Helicopters/488.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Helicopters/497.jpg b/Files/CheatMenu/vehicles/images/Helicopters/497.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Helicopters/497.jpg rename to Files/CheatMenu/vehicles/images/Helicopters/497.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Helicopters/548.jpg b/Files/CheatMenu/vehicles/images/Helicopters/548.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Helicopters/548.jpg rename to Files/CheatMenu/vehicles/images/Helicopters/548.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Helicopters/563.jpg b/Files/CheatMenu/vehicles/images/Helicopters/563.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Helicopters/563.jpg rename to Files/CheatMenu/vehicles/images/Helicopters/563.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/413.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/413.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/413.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/413.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/418.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/418.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/418.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/418.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/422.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/422.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/422.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/422.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/440.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/440.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/440.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/440.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/459.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/459.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/459.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/459.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/478.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/478.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/478.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/478.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/482.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/482.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/482.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/482.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/530.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/530.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/530.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/530.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/543.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/543.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/543.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/543.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/554.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/554.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/554.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/554.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/572.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/572.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/572.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/572.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/582.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/582.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/582.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/582.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/583.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/583.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/583.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/583.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/605.jpg b/Files/CheatMenu/vehicles/images/Light trucks & vans/605.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Light trucks & vans/605.jpg rename to Files/CheatMenu/vehicles/images/Light trucks & vans/605.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Low riders/412.jpg b/Files/CheatMenu/vehicles/images/Low riders/412.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Low riders/412.jpg rename to Files/CheatMenu/vehicles/images/Low riders/412.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Low riders/534.jpg b/Files/CheatMenu/vehicles/images/Low riders/534.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Low riders/534.jpg rename to Files/CheatMenu/vehicles/images/Low riders/534.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Low riders/535.jpg b/Files/CheatMenu/vehicles/images/Low riders/535.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Low riders/535.jpg rename to Files/CheatMenu/vehicles/images/Low riders/535.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Low riders/536.jpg b/Files/CheatMenu/vehicles/images/Low riders/536.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Low riders/536.jpg rename to Files/CheatMenu/vehicles/images/Low riders/536.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Low riders/567.jpg b/Files/CheatMenu/vehicles/images/Low riders/567.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Low riders/567.jpg rename to Files/CheatMenu/vehicles/images/Low riders/567.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Low riders/575.jpg b/Files/CheatMenu/vehicles/images/Low riders/575.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Low riders/575.jpg rename to Files/CheatMenu/vehicles/images/Low riders/575.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Low riders/576.jpg b/Files/CheatMenu/vehicles/images/Low riders/576.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Low riders/576.jpg rename to Files/CheatMenu/vehicles/images/Low riders/576.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Muscle cars/402.jpg b/Files/CheatMenu/vehicles/images/Muscle cars/402.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Muscle cars/402.jpg rename to Files/CheatMenu/vehicles/images/Muscle cars/402.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Muscle cars/475.jpg b/Files/CheatMenu/vehicles/images/Muscle cars/475.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Muscle cars/475.jpg rename to Files/CheatMenu/vehicles/images/Muscle cars/475.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Muscle cars/542.jpg b/Files/CheatMenu/vehicles/images/Muscle cars/542.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Muscle cars/542.jpg rename to Files/CheatMenu/vehicles/images/Muscle cars/542.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Muscle cars/549.jpg b/Files/CheatMenu/vehicles/images/Muscle cars/549.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Muscle cars/549.jpg rename to Files/CheatMenu/vehicles/images/Muscle cars/549.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Muscle cars/603.jpg b/Files/CheatMenu/vehicles/images/Muscle cars/603.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Muscle cars/603.jpg rename to Files/CheatMenu/vehicles/images/Muscle cars/603.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/RC vehicles/441.jpg b/Files/CheatMenu/vehicles/images/RC vehicles/441.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/RC vehicles/441.jpg rename to Files/CheatMenu/vehicles/images/RC vehicles/441.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/RC vehicles/464.jpg b/Files/CheatMenu/vehicles/images/RC vehicles/464.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/RC vehicles/464.jpg rename to Files/CheatMenu/vehicles/images/RC vehicles/464.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/RC vehicles/465.jpg b/Files/CheatMenu/vehicles/images/RC vehicles/465.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/RC vehicles/465.jpg rename to Files/CheatMenu/vehicles/images/RC vehicles/465.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/RC vehicles/501.jpg b/Files/CheatMenu/vehicles/images/RC vehicles/501.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/RC vehicles/501.jpg rename to Files/CheatMenu/vehicles/images/RC vehicles/501.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/RC vehicles/564.jpg b/Files/CheatMenu/vehicles/images/RC vehicles/564.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/RC vehicles/564.jpg rename to Files/CheatMenu/vehicles/images/RC vehicles/564.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/RC vehicles/594.jpg b/Files/CheatMenu/vehicles/images/RC vehicles/594.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/RC vehicles/594.jpg rename to Files/CheatMenu/vehicles/images/RC vehicles/594.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/424.jpg b/Files/CheatMenu/vehicles/images/Recreational/424.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/424.jpg rename to Files/CheatMenu/vehicles/images/Recreational/424.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/444.jpg b/Files/CheatMenu/vehicles/images/Recreational/444.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/444.jpg rename to Files/CheatMenu/vehicles/images/Recreational/444.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/457.jpg b/Files/CheatMenu/vehicles/images/Recreational/457.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/457.jpg rename to Files/CheatMenu/vehicles/images/Recreational/457.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/471.jpg b/Files/CheatMenu/vehicles/images/Recreational/471.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/471.jpg rename to Files/CheatMenu/vehicles/images/Recreational/471.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/483.jpg b/Files/CheatMenu/vehicles/images/Recreational/483.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/483.jpg rename to Files/CheatMenu/vehicles/images/Recreational/483.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/495.jpg b/Files/CheatMenu/vehicles/images/Recreational/495.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/495.jpg rename to Files/CheatMenu/vehicles/images/Recreational/495.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/500.jpg b/Files/CheatMenu/vehicles/images/Recreational/500.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/500.jpg rename to Files/CheatMenu/vehicles/images/Recreational/500.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/504.jpg b/Files/CheatMenu/vehicles/images/Recreational/504.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/504.jpg rename to Files/CheatMenu/vehicles/images/Recreational/504.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/508.jpg b/Files/CheatMenu/vehicles/images/Recreational/508.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/508.jpg rename to Files/CheatMenu/vehicles/images/Recreational/508.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/539.jpg b/Files/CheatMenu/vehicles/images/Recreational/539.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/539.jpg rename to Files/CheatMenu/vehicles/images/Recreational/539.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/556.jpg b/Files/CheatMenu/vehicles/images/Recreational/556.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/556.jpg rename to Files/CheatMenu/vehicles/images/Recreational/556.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/557.jpg b/Files/CheatMenu/vehicles/images/Recreational/557.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/557.jpg rename to Files/CheatMenu/vehicles/images/Recreational/557.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/568.jpg b/Files/CheatMenu/vehicles/images/Recreational/568.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/568.jpg rename to Files/CheatMenu/vehicles/images/Recreational/568.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Recreational/571.jpg b/Files/CheatMenu/vehicles/images/Recreational/571.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Recreational/571.jpg rename to Files/CheatMenu/vehicles/images/Recreational/571.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/400.jpg b/Files/CheatMenu/vehicles/images/SUVs & wagons/400.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/400.jpg rename to Files/CheatMenu/vehicles/images/SUVs & wagons/400.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/404.jpg b/Files/CheatMenu/vehicles/images/SUVs & wagons/404.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/404.jpg rename to Files/CheatMenu/vehicles/images/SUVs & wagons/404.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/442.jpg b/Files/CheatMenu/vehicles/images/SUVs & wagons/442.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/442.jpg rename to Files/CheatMenu/vehicles/images/SUVs & wagons/442.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/458.jpg b/Files/CheatMenu/vehicles/images/SUVs & wagons/458.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/458.jpg rename to Files/CheatMenu/vehicles/images/SUVs & wagons/458.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/479.jpg b/Files/CheatMenu/vehicles/images/SUVs & wagons/479.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/479.jpg rename to Files/CheatMenu/vehicles/images/SUVs & wagons/479.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/489.jpg b/Files/CheatMenu/vehicles/images/SUVs & wagons/489.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/489.jpg rename to Files/CheatMenu/vehicles/images/SUVs & wagons/489.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/505.jpg b/Files/CheatMenu/vehicles/images/SUVs & wagons/505.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/505.jpg rename to Files/CheatMenu/vehicles/images/SUVs & wagons/505.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/561.jpg b/Files/CheatMenu/vehicles/images/SUVs & wagons/561.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/561.jpg rename to Files/CheatMenu/vehicles/images/SUVs & wagons/561.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/579.jpg b/Files/CheatMenu/vehicles/images/SUVs & wagons/579.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/SUVs & wagons/579.jpg rename to Files/CheatMenu/vehicles/images/SUVs & wagons/579.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/411.jpg b/Files/CheatMenu/vehicles/images/Street racers/411.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/411.jpg rename to Files/CheatMenu/vehicles/images/Street racers/411.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/415.jpg b/Files/CheatMenu/vehicles/images/Street racers/415.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/415.jpg rename to Files/CheatMenu/vehicles/images/Street racers/415.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/429.jpg b/Files/CheatMenu/vehicles/images/Street racers/429.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/429.jpg rename to Files/CheatMenu/vehicles/images/Street racers/429.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/451.jpg b/Files/CheatMenu/vehicles/images/Street racers/451.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/451.jpg rename to Files/CheatMenu/vehicles/images/Street racers/451.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/477.jpg b/Files/CheatMenu/vehicles/images/Street racers/477.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/477.jpg rename to Files/CheatMenu/vehicles/images/Street racers/477.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/494.jpg b/Files/CheatMenu/vehicles/images/Street racers/494.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/494.jpg rename to Files/CheatMenu/vehicles/images/Street racers/494.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/502.jpg b/Files/CheatMenu/vehicles/images/Street racers/502.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/502.jpg rename to Files/CheatMenu/vehicles/images/Street racers/502.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/503.jpg b/Files/CheatMenu/vehicles/images/Street racers/503.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/503.jpg rename to Files/CheatMenu/vehicles/images/Street racers/503.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/506.jpg b/Files/CheatMenu/vehicles/images/Street racers/506.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/506.jpg rename to Files/CheatMenu/vehicles/images/Street racers/506.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Street racers/541.jpg b/Files/CheatMenu/vehicles/images/Street racers/541.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Street racers/541.jpg rename to Files/CheatMenu/vehicles/images/Street racers/541.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trailers/435.jpg b/Files/CheatMenu/vehicles/images/Trailers/435.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trailers/435.jpg rename to Files/CheatMenu/vehicles/images/Trailers/435.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trailers/450.jpg b/Files/CheatMenu/vehicles/images/Trailers/450.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trailers/450.jpg rename to Files/CheatMenu/vehicles/images/Trailers/450.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trailers/584.jpg b/Files/CheatMenu/vehicles/images/Trailers/584.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trailers/584.jpg rename to Files/CheatMenu/vehicles/images/Trailers/584.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trailers/591.jpg b/Files/CheatMenu/vehicles/images/Trailers/591.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trailers/591.jpg rename to Files/CheatMenu/vehicles/images/Trailers/591.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trailers/606.jpg b/Files/CheatMenu/vehicles/images/Trailers/606.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trailers/606.jpg rename to Files/CheatMenu/vehicles/images/Trailers/606.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trailers/607.jpg b/Files/CheatMenu/vehicles/images/Trailers/607.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trailers/607.jpg rename to Files/CheatMenu/vehicles/images/Trailers/607.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trailers/608.jpg b/Files/CheatMenu/vehicles/images/Trailers/608.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trailers/608.jpg rename to Files/CheatMenu/vehicles/images/Trailers/608.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trailers/610.jpg b/Files/CheatMenu/vehicles/images/Trailers/610.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trailers/610.jpg rename to Files/CheatMenu/vehicles/images/Trailers/610.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trailers/611.jpg b/Files/CheatMenu/vehicles/images/Trailers/611.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trailers/611.jpg rename to Files/CheatMenu/vehicles/images/Trailers/611.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trains/449.jpg b/Files/CheatMenu/vehicles/images/Trains/449.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trains/449.jpg rename to Files/CheatMenu/vehicles/images/Trains/449.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trains/537.jpg b/Files/CheatMenu/vehicles/images/Trains/537.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trains/537.jpg rename to Files/CheatMenu/vehicles/images/Trains/537.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/images/Trains/538.jpg b/Files/CheatMenu/vehicles/images/Trains/538.jpg similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/images/Trains/538.jpg rename to Files/CheatMenu/vehicles/images/Trains/538.jpg diff --git a/moonloader/lib/cheat-menu/vehicles/paintjobs/carbonfiber.png b/Files/CheatMenu/vehicles/paintjobs/carbonfiber.png similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/paintjobs/carbonfiber.png rename to Files/CheatMenu/vehicles/paintjobs/carbonfiber.png diff --git a/moonloader/lib/cheat-menu/vehicles/paintjobs/stickerbomb.png b/Files/CheatMenu/vehicles/paintjobs/stickerbomb.png similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/paintjobs/stickerbomb.png rename to Files/CheatMenu/vehicles/paintjobs/stickerbomb.png diff --git a/moonloader/lib/cheat-menu/vehicles/paintjobs/uvtest.png b/Files/CheatMenu/vehicles/paintjobs/uvtest.png similarity index 100% rename from moonloader/lib/cheat-menu/vehicles/paintjobs/uvtest.png rename to Files/CheatMenu/vehicles/paintjobs/uvtest.png diff --git a/moonloader/lib/cheat-menu/weapons/Assault rifles/30.jpg b/Files/CheatMenu/weapons/Assault rifles/30.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Assault rifles/30.jpg rename to Files/CheatMenu/weapons/Assault rifles/30.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Assault rifles/31.jpg b/Files/CheatMenu/weapons/Assault rifles/31.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Assault rifles/31.jpg rename to Files/CheatMenu/weapons/Assault rifles/31.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Handguns/22.jpg b/Files/CheatMenu/weapons/Handguns/22.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Handguns/22.jpg rename to Files/CheatMenu/weapons/Handguns/22.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Handguns/23.jpg b/Files/CheatMenu/weapons/Handguns/23.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Handguns/23.jpg rename to Files/CheatMenu/weapons/Handguns/23.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Handguns/24.jpg b/Files/CheatMenu/weapons/Handguns/24.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Handguns/24.jpg rename to Files/CheatMenu/weapons/Handguns/24.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Heavy weapons/35.jpg b/Files/CheatMenu/weapons/Heavy weapons/35.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Heavy weapons/35.jpg rename to Files/CheatMenu/weapons/Heavy weapons/35.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Heavy weapons/36.jpg b/Files/CheatMenu/weapons/Heavy weapons/36.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Heavy weapons/36.jpg rename to Files/CheatMenu/weapons/Heavy weapons/36.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Heavy weapons/37.jpg b/Files/CheatMenu/weapons/Heavy weapons/37.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Heavy weapons/37.jpg rename to Files/CheatMenu/weapons/Heavy weapons/37.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Heavy weapons/38.jpg b/Files/CheatMenu/weapons/Heavy weapons/38.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Heavy weapons/38.jpg rename to Files/CheatMenu/weapons/Heavy weapons/38.jpg diff --git a/Files/CheatMenu/weapons/Melee/0.jpg b/Files/CheatMenu/weapons/Melee/0.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e227bdc0d83a46a88385260f4aff5be17e49ebd6 GIT binary patch literal 15896 zcmeHucU%)&u<(Z7q=OA5L=jPegbr7TK#(H6S0N;!NJuaR5H4W77F0w)R8&wvl%`S@ z)QAdry^7KTf`E!59T5T=O1|At)O+vuz4yKM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%GNvZ z6Vm-YR=shu0ZH&ADNMTOAN&PvUIHqij(HqldW|0YnIlzZxcjqyXKQb1yB=8s@v^xl zeW>4~@q1LNCNU}2+S+*R$hit}*4Qw*4_E%UFz-+Gh;IQ@e73OH(_?{g>GzMbl7g!k zJfm3UY-Otot&Wbkr?!SW%0#ulyBXMSMQy>i1w1dsD&)0o`#yay&Df7Dc-VK%%awIC zlfw~b{vNZgnYHCqDcw z6`8pS<9THxoP9*nznv;|#HO96oUGUI&cWw!^6z?vdP*MACmTI;vl>f3E5(FJUlqwM zN1=|KaVp7*@<~)GI3A=*_IWR$Z{o7sDyHJTrPWOYkL@LTy_`tqEuQE}gX;`&SqYUc z;>3%mjdSj6whmXEcZ}>A^Hq; z6=5O!+#mY+N^jcuNObVb+-Cc>^TJKFnOR7^R`P_dkD{tjW2^R+wWs$q?GkDKtkQj# zT6p}3Z|WU%U{7`5RhtJ5_2Cl^COQHXn+*LM2mH_Q?|MHNbvLy!IjY6D;{?;xGw<59 zrqcVO^&xFFf0*QT3yyLC$BN`9r*DSaeY?zi=JctEw2~RYcRn^BbL#zS@}rWT`((Vh zJyNcs|L|E0(3^f(%IawuCV<-fmpM&gB*V2HbL{M=RZFIbT;P(P}l9%4L4l_}$lBO?y$5)*+ZmS8O z#>#kl)>dRW7KQfeII;?G1$Xft=c5jP)9PCHWSVs8xaO)ci?>G44BlYsWS>$)MN=aC3U$E v`jrH%_NQET%gv#;Jw01@bAy!Cr~*zkw&&!{RZLXRahcb6`_741oHzdmj%xEz literal 0 HcmV?d00001 diff --git a/moonloader/lib/cheat-menu/weapons/Melee/1.jpg b/Files/CheatMenu/weapons/Melee/1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Melee/1.jpg rename to Files/CheatMenu/weapons/Melee/1.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Melee/2.jpg b/Files/CheatMenu/weapons/Melee/2.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Melee/2.jpg rename to Files/CheatMenu/weapons/Melee/2.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Melee/3.jpg b/Files/CheatMenu/weapons/Melee/3.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Melee/3.jpg rename to Files/CheatMenu/weapons/Melee/3.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Melee/4.jpg b/Files/CheatMenu/weapons/Melee/4.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Melee/4.jpg rename to Files/CheatMenu/weapons/Melee/4.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Melee/5.jpg b/Files/CheatMenu/weapons/Melee/5.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Melee/5.jpg rename to Files/CheatMenu/weapons/Melee/5.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Melee/6.jpg b/Files/CheatMenu/weapons/Melee/6.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Melee/6.jpg rename to Files/CheatMenu/weapons/Melee/6.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Melee/7.jpg b/Files/CheatMenu/weapons/Melee/7.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Melee/7.jpg rename to Files/CheatMenu/weapons/Melee/7.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Melee/8.jpg b/Files/CheatMenu/weapons/Melee/8.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Melee/8.jpg rename to Files/CheatMenu/weapons/Melee/8.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Melee/9.jpg b/Files/CheatMenu/weapons/Melee/9.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Melee/9.jpg rename to Files/CheatMenu/weapons/Melee/9.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/Jetpack.jpg b/Files/CheatMenu/weapons/Misc/-1.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/Jetpack.jpg rename to Files/CheatMenu/weapons/Misc/-1.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/10.jpg b/Files/CheatMenu/weapons/Misc/10.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/10.jpg rename to Files/CheatMenu/weapons/Misc/10.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/11.jpg b/Files/CheatMenu/weapons/Misc/11.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/11.jpg rename to Files/CheatMenu/weapons/Misc/11.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/12.jpg b/Files/CheatMenu/weapons/Misc/12.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/12.jpg rename to Files/CheatMenu/weapons/Misc/12.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/13.jpg b/Files/CheatMenu/weapons/Misc/13.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/13.jpg rename to Files/CheatMenu/weapons/Misc/13.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/14.jpg b/Files/CheatMenu/weapons/Misc/14.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/14.jpg rename to Files/CheatMenu/weapons/Misc/14.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/15.jpg b/Files/CheatMenu/weapons/Misc/15.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/15.jpg rename to Files/CheatMenu/weapons/Misc/15.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/41.jpg b/Files/CheatMenu/weapons/Misc/41.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/41.jpg rename to Files/CheatMenu/weapons/Misc/41.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/42.jpg b/Files/CheatMenu/weapons/Misc/42.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/42.jpg rename to Files/CheatMenu/weapons/Misc/42.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/43.jpg b/Files/CheatMenu/weapons/Misc/43.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/43.jpg rename to Files/CheatMenu/weapons/Misc/43.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/44.jpg b/Files/CheatMenu/weapons/Misc/44.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/44.jpg rename to Files/CheatMenu/weapons/Misc/44.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/45.jpg b/Files/CheatMenu/weapons/Misc/45.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/45.jpg rename to Files/CheatMenu/weapons/Misc/45.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Misc/46.jpg b/Files/CheatMenu/weapons/Misc/46.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Misc/46.jpg rename to Files/CheatMenu/weapons/Misc/46.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Projectiles/16.jpg b/Files/CheatMenu/weapons/Projectiles/16.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Projectiles/16.jpg rename to Files/CheatMenu/weapons/Projectiles/16.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Projectiles/17.jpg b/Files/CheatMenu/weapons/Projectiles/17.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Projectiles/17.jpg rename to Files/CheatMenu/weapons/Projectiles/17.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Projectiles/18.jpg b/Files/CheatMenu/weapons/Projectiles/18.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Projectiles/18.jpg rename to Files/CheatMenu/weapons/Projectiles/18.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Projectiles/39.jpg b/Files/CheatMenu/weapons/Projectiles/39.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Projectiles/39.jpg rename to Files/CheatMenu/weapons/Projectiles/39.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Rifles/33.jpg b/Files/CheatMenu/weapons/Rifles/33.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Rifles/33.jpg rename to Files/CheatMenu/weapons/Rifles/33.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Rifles/34.jpg b/Files/CheatMenu/weapons/Rifles/34.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Rifles/34.jpg rename to Files/CheatMenu/weapons/Rifles/34.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Shotguns/25.jpg b/Files/CheatMenu/weapons/Shotguns/25.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Shotguns/25.jpg rename to Files/CheatMenu/weapons/Shotguns/25.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Shotguns/26.jpg b/Files/CheatMenu/weapons/Shotguns/26.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Shotguns/26.jpg rename to Files/CheatMenu/weapons/Shotguns/26.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Shotguns/27.jpg b/Files/CheatMenu/weapons/Shotguns/27.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Shotguns/27.jpg rename to Files/CheatMenu/weapons/Shotguns/27.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Sub machine guns/28.jpg b/Files/CheatMenu/weapons/Sub machine guns/28.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Sub machine guns/28.jpg rename to Files/CheatMenu/weapons/Sub machine guns/28.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Sub machine guns/29.jpg b/Files/CheatMenu/weapons/Sub machine guns/29.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Sub machine guns/29.jpg rename to Files/CheatMenu/weapons/Sub machine guns/29.jpg diff --git a/moonloader/lib/cheat-menu/weapons/Sub machine guns/32.jpg b/Files/CheatMenu/weapons/Sub machine guns/32.jpg similarity index 100% rename from moonloader/lib/cheat-menu/weapons/Sub machine guns/32.jpg rename to Files/CheatMenu/weapons/Sub machine guns/32.jpg diff --git a/neon_api.asi b/Files/neon_api.asi similarity index 100% rename from neon_api.asi rename to Files/neon_api.asi diff --git a/README.md b/README.md index ebfce4c..050d198 100644 --- a/README.md +++ b/README.md @@ -1,43 +1,39 @@

+

+

+ Press Left Ctrl + M to open the menu. Doesn't work in multiplayer

# -![GitHub repo size](https://img.shields.io/github/repo-size/user-grinch/Cheat-Menu?label=Size&style=for-the-badge) [![License](https://img.shields.io/github/license/user-grinch/Cheat-Menu?style=for-the-badge)](https://github.com/user-grinch/Cheat-Menu/blob/master/LICENSE) [![Discord](https://img.shields.io/discord/689515979847237649?label=Discord&style=for-the-badge)](https://discord.gg/ZzW7kmf) - [![MixMods](https://img.shields.io/badge/Topic-Mixmods-%234e4784?style=for-the-badge)](https://forum.mixmods.com.br/f5-scripts-codigos/t1777-lua-cheat-menu) [![GTAF](https://img.shields.io/badge/Topic-GTA%20Forums-%23244052?style=for-the-badge)](https://gtaforums.com/topic/961636-moon-cheat-menu/) ## Introduction Cheat menu for Grand Theft Auto SanAndreas which allows a large set of modifications/cheats to be applied enabling a much more easier & amusing gameplay. -It's based on [Moonloader](https://gtaforums.com/topic/890987-moonloader/) and uses [mimgui](https://github.com/THE-FYP/mimgui) for its interface. - -Press Left Ctrl + M to open the menu. Doesn't work in SAMP. - -## Versions - -### Releases -[Releases](https://github.com/inanahammad/Cheat-Menu/releases) are the most up to date & stable versions. If you want a smooth experience with minimal bugs as possible this is the one to get. - -### Master Branch -[Master branch](https://github.com/inanahammad/Cheat-Menu) contains all the recent work done to the menu. While this can be the best way to live on the edge & try the latest features out, it could come with a fair number of bugs. +Get stable binaries from [here](https://github.com/user-grinch/Cheat-Menu/releases). Alpha binaries are available at the discord server. A portuguese translation of the menu is [here](https://github.com/Dowglass/Cheat-Menu) ## Installation -1. Install [DirectX](https://www.microsoft.com/en-us/download/details.aspx?id=35) & [Visual C++ Redistributable 2017](https://aka.ms/vs/16/release/vc_redist.x86.exe) if not already installed. +1. Install [DirectX9](https://www.microsoft.com/en-us/download/details.aspx?id=35) & [Visual C++ Redistributable 2015 x86](https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe) if not already installed. 2. If your game version isn't v1.0 then you'll need to [downgrade](https://gtaforums.com/topic/927016-san-andreas-downgrader/). 3. Install asi loader from [here](https://www.gtagarage.com/mods/show.php?id=21709) -4. Download [Moonloader](https://gtaforums.com/topic/890987-moonloader/) from [here](https://blast.hk/moonloader/files/moonloader-026.zip).Then extract all these files to your game folder (replace if necessary). -5. Download [Cheat Menu](https://forum.mixmods.com.br/f5-scripts-codigos/t1777-lua-cheat-menu) from [here](https://github.com/inanahammad/Cheat-Menu/releases). -6. Open up that achieve file and extract everything in game directory (replace if necessary). +4. Download CheatMenu and extract everything in game directory (replace if necessary). -Now try it out in-game. If it doesn't work open an issue here or create a post in one of the topics above with 'moonloader.log'. +## Building +You'll need to install Visual Studio 2015 (v140), [DirectX9 SDK](https://www.microsoft.com/en-us/download/details.aspx?id=6812) & [Plugin SDK](https://github.com/DK22Pac/plugin-sdk). + +## Projects used +1. [ImGui](https://github.com/ocornut/imgui) +2. [Kiero](https://github.com/Rebzzel/kiero) +3. [MinHook](https://github.com/TsudaKageyu/minhook) +4. [Plugin SDK](https://github.com/DK22Pac/plugin-sdk) ## Images ![1](https://raw.githubusercontent.com/user-grinch/user-grinch.github.io/master/assets/img/mods/cheat-menu/teleport.gif) @@ -54,7 +50,7 @@ Now try it out in-game. If it doesn't work open an issue here or create a post i ### Adding custom peds/skin images - jpg -Ped/skin images are loaded from '\moonloader\lib\cheat-menu\peds\' directory. The image name should contain the ped model id. Names for custom peds have to be added inside '\moonloader\lib\cheat-menu\json\ped.json' file. +Ped/skin images are loaded from 'CheatMenu\peds\' directory. The image name should contain the ped model id. Names for custom peds have to be added inside 'CheatMenu\json\ped.json' file. ### Add custom player skins #2 @@ -62,20 +58,20 @@ You can also add player skins by using a different method. Place your skin txd & ### Adding custom vehicle images - jpg -Vehicle images are loaded from '\moonloader\lib\cheat-menu\vehicles\images\' directory. The image name should contain the vehicle model id. You don't need to add custom vehicle names in v2.0-beta & above. +Vehicle images are loaded from 'CheatMenu\vehicles\images\' directory. The image name should contain the vehicle model id. You don't need to add custom vehicle names in v2.0-beta & above. ### Adding custom vehicle component images - jpg -Vehicle component images are loaded from '\moonloader\lib\cheat-menu\vehicles\component \' directory. The image name should contain the component model id. +Vehicle component images are loaded from 'CheatMenu\vehicles\component\' directory. The image name should contain the component model id. ### Adding custom vehicle paint jobs images - png -Paintjob images are loaded from '\moonloader\lib\cheat-menu\vehicles\paintjobs\' directory. Image names can be any string and their name will show up on the menu. +Paintjob images are loaded from 'CheatMenu\vehicles\paintjobs\' directory. Image names can be any string and their name will show up on the menu. ### Adding custom weapons images - jpg -Weapon images are loaded from '\moonloader\lib\cheat-menu\weapons\' directory. The image name should contain the weapon model id. Names for custom weapons have to be added inside '\moonloader\lib\cheat-menu\json\weapon.json' file. +Weapon images are loaded from 'CheatMenu\weapons\' directory. The image name should contain the weapon model id. Names for custom weapons have to be added inside 'CheatMenu\json\weapon.json' file. ### Adding custom clothes - jpg -Cloth images are loaded from '\moonloader\lib\cheat-menu\clothes\' directory. The image name should in this format 'body_part$model_name$texture_name' +Cloth images are loaded from 'CheatMenu\clothes\' directory. The image name should in this format 'body_part$model_name$texture_name' diff --git a/moonloader/cheat-menu.lua b/moonloader/cheat-menu.lua deleted file mode 100644 index aed68e6..0000000 --- a/moonloader/cheat-menu.lua +++ /dev/null @@ -1,779 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -script_name('Cheat Menu') -script_author("Grinch_") -script_description("Cheat Menu for Grand Theft Auto San Andreas") -script_url("https://forum.mixmods.com.br/f5-scripts-codigos/t1777-moon-cheat-menu") -script_dependencies("ffi","lfs","memory","mimgui","MoonAdditions") -script_properties('work-in-pause') -script_version("2.3-beta") -script_version_number(2020112201) -- YYYYMMDDNN - -print(string.format("Loading v%s (%d)",script.this.version,script.this.version_num)) - -resX, resY = getScreenResolution() - -tcheatmenu = -{ - dir = string.format( "%s%s",getWorkingDirectory(),"/lib/cheat-menu/"), - fail_loading_json = false, -} - --------------------------------------------------- --- Libraries -casts = require 'cheat-menu.libraries.casts' -ffi = require 'ffi' -glob = require 'game.globals' -imgui = require 'mimgui' -lfs = require 'lfs' -mad = require 'MoonAdditions' -memory = require 'cheat-menu.libraries.memory' -os = require 'os' -vkeys = require 'vkeys' -ziplib = ffi.load(string.format( "%s/lib/ziplib.dll",getWorkingDirectory())) - --------------------------------------------------- --- Menu modules -fcommon = require 'cheat-menu.modules.common' -fconfig = require 'cheat-menu.modules.config' -fconst = require 'cheat-menu.modules.const' - -fanimation = require 'cheat-menu.modules.animation' -fgame = require 'cheat-menu.modules.game' -fmemory = require 'cheat-menu.modules.memory' -fmenu = require 'cheat-menu.modules.menu' -fmission = require 'cheat-menu.modules.mission' -fped = require 'cheat-menu.modules.ped' -fplayer = require 'cheat-menu.modules.player' -fstat = require 'cheat-menu.modules.stat' -fstyle = require 'cheat-menu.modules.style' -fteleport = require 'cheat-menu.modules.teleport' -fvehicle = require 'cheat-menu.modules.vehicle' -fvisual = require 'cheat-menu.modules.visual' -fweapon = require 'cheat-menu.modules.weapon' - --------------------------------------------------- - -ffi.cdef[[ - int zip_extract(const char *zipname, const char *dir,int *func, void *arg); -]] - -tcheatmenu = -{ - coord = - { - X = fconfig.Get('tcheatmenu.coord.X',50), - Y = fconfig.Get('tcheatmenu.coord.Y',50), - }, - dir = tcheatmenu.dir, - current_menu = fconfig.Get('tcheatmenu.current_menu',0), - fail_loading_json = tcheatmenu.fail_loading_json, - restart_required = false, - show = imgui.new.bool(fmenu.tmenu.fast_load_images[0]), - size = - { - X = fconfig.Get('tcheatmenu.size.X',resX/4), - Y = fconfig.Get('tcheatmenu.size.Y',resY/1.2), - }, - title = string.format("%s v%s",script.this.name,script.this.version), -} - -imgui.OnInitialize(function() -- Called once - - local io = imgui.GetIO() - - -- Load fonts - if fmenu.tmenu.font.size[0] < 12 then fmenu.tmenu.font.size[0] = 12 end - local mask = tcheatmenu.dir .. "fonts//*.ttf" - - local handle, name = findFirstFile(mask) - while handle and name do - fmenu.tmenu.font.list[name] = io.Fonts:AddFontFromFileTTF(string.format( "%sfonts//%s",tcheatmenu.dir,name), fmenu.tmenu.font.size[0]) - name = findNextFile(handle) - end - - io.FontDefault = fmenu.tmenu.font.list[fmenu.tmenu.font.selected] - io.IniFilename = nil - io.WantSaveIniSettings = false - - if not doesFileExist(tcheatmenu.dir .. "json//styles.json") then - fstyle.saveStyles(imgui.GetStyle(), "Default") - end - - fstyle.tstyle.status = fstyle.loadStyles() - - if fstyle.tstyle.status then - fstyle.tstyle.list = fstyle.getStyles() - fstyle.tstyle.array = imgui.new['const char*'][#fstyle.tstyle.list](fstyle.tstyle.list) - - for i=1,#fstyle.tstyle.list,1 do - if fstyle.tstyle.list[i] == fstyle.tstyle.selected_name then - fstyle.tstyle.selected[0] = i - 1 - end - end - - fstyle.applyStyle(imgui.GetStyle(), fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1]) - else - print("Failed loading styles") - end - - if fmenu.tmenu.fast_load_images[0] then - showCursor(false) - tcheatmenu.show[0] = false - end - - -- Indexing images - lua_thread.create( - function() - fcommon.IndexFiles(fvehicle.tvehicle.path,fvehicle.tvehicle.images,"jpg") - fcommon.IndexFiles(fweapon.tweapon.path,fweapon.tweapon.images,"jpg") - fcommon.IndexFiles(fped.tped.path,fped.tped.images,"jpg") - fcommon.IndexFiles(fplayer.tplayer.clothes.path,fplayer.tplayer.clothes.images,"jpg") - fcommon.IndexFiles(fvehicle.tvehicle.components.path,fvehicle.tvehicle.components.images,"jpg") - fcommon.IndexFiles(fvehicle.tvehicle.paintjobs.path,fvehicle.tvehicle.paintjobs.images,"png") - end) - -end) - -imgui.OnFrame( -function() -- condition - return tcheatmenu.show[0] and not isGamePaused() -end, -function(self) -- render frame - - self.LockPlayer = fmenu.tmenu.lock_player[0] - imgui.SetNextWindowSize(imgui.ImVec2(tcheatmenu.size.X,tcheatmenu.size.Y),imgui.Cond.Once) - imgui.SetNextWindowPos(imgui.ImVec2(tcheatmenu.coord.X,tcheatmenu.coord.Y),imgui.Cond.Once) - - imgui.PushStyleVarVec2(imgui.StyleVar.WindowMinSize,imgui.ImVec2(250,350)) - imgui.PushStyleVarVec2(imgui.StyleVar.FramePadding,imgui.ImVec2(math.floor(tcheatmenu.size.X/85),math.floor(tcheatmenu.size.Y/200))) - - imgui.Begin(tcheatmenu.title, tcheatmenu.show,imgui.WindowFlags.NoCollapse + imgui.WindowFlags.NoSavedSettings) - - -------------------------------------------------- - -- Warnings - - if tcheatmenu.fail_loading_json then - imgui.Button("Failed to load some json files!",imgui.ImVec2(fcommon.GetSize(1))) - if imgui.Button("Reinstall latest",imgui.ImVec2(fcommon.GetSize(2))) then - fmenu.DownloadUpdate() - tcheatmenu.fail_loading_json = false - end - imgui.SameLine() - if imgui.Button("Hide message",imgui.ImVec2(fcommon.GetSize(2))) then - tcheatmenu.fail_loading_json = false - end - imgui.Spacing() - end - - if tcheatmenu.restart_required then - imgui.Button("Restart is required to apply some changes",imgui.ImVec2(fcommon.GetSize(1))) - if imgui.Button("Restart menu",imgui.ImVec2(fcommon.GetSize(2))) then - fmenu.tmenu.crash_text = "Cheat Menu ~g~reloaded" - thisScript():reload() - end - imgui.SameLine() - if imgui.Button("Hide message",imgui.ImVec2(fcommon.GetSize(2))) then - tcheatmenu.restart_required = false - end - imgui.Spacing() - end - - -------------------------------------------------- - -- Updater code - if fmenu.tmenu.update_status == fconst.UPDATE_STATUS.NEW_UPDATE then - imgui.Button("An updated version is available",imgui.ImVec2(fcommon.GetSize(1))) - if imgui.Button("Download now",imgui.ImVec2(fcommon.GetSize(3))) then - fmenu.DownloadUpdate() - end - imgui.SameLine() - if imgui.Button("Hide message",imgui.ImVec2(fcommon.GetSize(3))) then - fmenu.tmenu.update_status =fconst.UPDATE_STATUS.HIDE_MSG - end - imgui.SameLine() - if imgui.Button("View changelog",imgui.ImVec2(fcommon.GetSize(3))) then - if fmenu.tmenu.get_beta_updates[0] then - os.execute('explorer "https://github.com/user-grinch/Cheat-Menu/commits/master"') - else - os.execute('explorer "https://github.com/user-grinch/Cheat-Menu/releases/tag/' .. fmenu.tmenu.repo_version ..'"') - end - end - imgui.Spacing() - end - - if fmenu.tmenu.update_status == fconst.UPDATE_STATUS.DOWNLOADING then - imgui.Button("Downloading update...",imgui.ImVec2(fcommon.GetSize(1))) - imgui.Spacing() - end - - if fmenu.tmenu.update_status == fconst.UPDATE_STATUS.DOWNLOADED then - if imgui.Button("Install update. This might take a while.",imgui.ImVec2(fcommon.GetSize(1))) then - fmenu.InstallUpdate() - end - imgui.Spacing() - end - -------------------------------------------------- - -- Main code - fcommon.CreateMenus({"Teleport","Memory","Player","Ped","Animation","Vehicle","Weapon","Mission","Stat","Game","Visual","Menu"}, - {fteleport.TeleportMain,fmemory.MemoryMain,fplayer.PlayerMain,fped.PedMain,fanimation.AnimationMain,fvehicle.VehicleMain, - fweapon.WeaponMain,fmission.MissionMain,fstat.StatMain,fgame.GameMain,fvisual.VisualMain,fmenu.MenuMain}) - - -------------------------------------------------- - -- Welcome page - if tcheatmenu.current_menu == 0 then - - if imgui.BeginChild("Welcome") then - imgui.Dummy(imgui.ImVec2(0,10)) - imgui.TextWrapped("Welcome to " .. tcheatmenu.title .. " by Grinch_") - imgui.Dummy(imgui.ImVec2(0,10)) - imgui.TextWrapped("Please configure the settings below,\n(Recommanded settings are already applied)") - imgui.Dummy(imgui.ImVec2(0,20)) - - if fstyle.tstyle.status then - if imgui.Combo('Select style', fstyle.tstyle.selected, fstyle.tstyle.array, #fstyle.tstyle.list) then - fstyle.applyStyle(imgui.GetStyle(), fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1]) - fstyle.tstyle.selected_name = fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1] - end - end - imgui.Spacing() - fcommon.HotKey("Cheat Menu open/close hotkey",fmenu.tmenu.hot_keys.menu_open) - - imgui.Dummy(imgui.ImVec2(0,10)) - - imgui.Columns(2,nil,false) - fcommon.CheckBoxVar("Auto reload",fmenu.tmenu.auto_reload,"Reload cheat menu automatically\nin case of a crash.\n\nMight cause crash loop sometimes.") - fcommon.CheckBoxVar("Check for updates",fmenu.tmenu.auto_update_check,"Cheat Menu will automatically check for updates\nonline. This requires an internet connection and\ -will download files from github repository.") - imgui.NextColumn() - fcommon.CheckBoxVar("Fast load images",fmenu.tmenu.fast_load_images,"Loads images at the menu startup. Enabling this may\ndecrease fps loss when opening the image tabs but\ -can freeze the game at startup for a few seconds.\n\nBest to enable if you won't reload the menu frequently.") - fcommon.CheckBoxVar("Show tooltips",fmenu.tmenu.show_tooltips,"Shows usage tips beside options.") - imgui.Columns(1) - imgui.Spacing() - imgui.TextWrapped("You can configure everything here anytime from the 'Menu' section.") - imgui.Spacing() - imgui.TextWrapped("This modification is licensed under the terms of GPLv3. For more details see ") - imgui.EndChild() - end - end - - -------------------------------------------------- - -- Update the menu size & positon variables so they can be saved later - tcheatmenu.size.X = imgui.GetWindowWidth() - tcheatmenu.size.Y = imgui.GetWindowHeight() - tcheatmenu.coord.X = imgui.GetWindowPos().x - tcheatmenu.coord.Y = imgui.GetWindowPos().y - - -------------------------------------------------- - imgui.End() - imgui.PopStyleVar(2) -end) - --------------------------------------------------- --- Overlay window -imgui.OnFrame(function() - - -- return true if any overlay element needs to be displayed - return not isGamePaused() and fmenu.tmenu.overlay.show[0] and (fmenu.tmenu.overlay.fps[0] or fmenu.tmenu.overlay.coordinates[0] or fmenu.tmenu.overlay.location[0] - or ((fmenu.tmenu.overlay.speed[0] or fmenu.tmenu.overlay.health[0]) and isCharInAnyCar(PLAYER_PED))) -end, -function() - local io = imgui.GetIO() - local overlay = fmenu.tmenu.overlay - local pos = overlay.position_index[0] - - if pos > 0 then - x = (pos == 1 or pos == 3) and 10 or io.DisplaySize.x - 10 - y = (pos == 1 or pos == 2) and 10 or io.DisplaySize.y - 10 - local window_pos_pivot = imgui.ImVec2((pos == 1 or pos == 3) and 0 or 1, (pos == 1 or pos == 2) and 0 or 1) - imgui.SetNextWindowPos(imgui.ImVec2(x, y), imgui.Cond.Always, window_pos_pivot) - end - - local flags = imgui.WindowFlags.NoDecoration + imgui.WindowFlags.AlwaysAutoResize + imgui.WindowFlags.NoSavedSettings - if pos ~= 0 then - flags = flags + imgui.WindowFlags.NoMove - end - - if pos == 0 then - imgui.SetNextWindowPos(imgui.ImVec2(fmenu.tmenu.overlay.pos_x[0], fmenu.tmenu.overlay.pos_y[0]), imgui.Cond.Once , window_pos_pivot) - end - - imgui.PushStyleVarFloat(imgui.StyleVar.Alpha,0.65) - imgui.PushStyleVarVec2(imgui.StyleVar.WindowMinSize,imgui.ImVec2(0,0)) - - if fmenu.tmenu.overlay.transparent_bg[0] then - imgui.PushStyleColor(imgui.Col.WindowBg,imgui.ImVec4(0,0,0,0)) - end - - imgui.Begin("Overlay", nil, flags) - - if fmenu.tmenu.overlay.fps[0] then - imgui.Text("Frames: " .. tostring(math.floor(imgui.GetIO().Framerate))) - end - if isCharInAnyCar(PLAYER_PED) then - local hveh = getCarCharIsUsing(PLAYER_PED) - if fmenu.tmenu.overlay.speed[0] then - imgui.Text(string.format("Speed: %d %d/%d",math.floor(getCarSpeed(hveh)),getCarCurrentGear(hveh) - ,getCarNumberOfGears(hveh))) - end - - if fmenu.tmenu.overlay.health[0] then - imgui.Text(string.format("Health: %.0f%%",getCarHealth(hveh)/10)) - end - end - - if fmenu.tmenu.overlay.location[0] then - imgui.Text("Location: " .. fcommon.GetLocationInfo(getCharCoordinates(PLAYER_PED))) - end - - if fmenu.tmenu.overlay.coordinates[0] then - local x,y,z = getCharCoordinates(PLAYER_PED) - imgui.Text(string.format("Coordinates: %d %d %d", math.floor(x) , math.floor(y) , math.floor(z)),1000) - end - - if fmenu.tmenu.overlay.transparent_bg[0] then - imgui.PopStyleColor() - end - - imgui.PopStyleVar(2) - - -------------------------------------------------- - -- Overlay right click context menu - if imgui.BeginPopupContextWindow() then - - imgui.Text("Position") - imgui.Separator() - - if imgui.MenuItemBool("Custom",nil,fmenu.tmenu.overlay.position_index[0] == 0) then - fmenu.tmenu.overlay.position_index[0] = 0 - end - if imgui.MenuItemBool("Top Left",nil,fmenu.tmenu.overlay.position_index[0] == 1) then - fmenu.tmenu.overlay.position_index[0] = 1 - end - if imgui.MenuItemBool("Top Right",nil,fmenu.tmenu.overlay.position_index[0] == 2) then - fmenu.tmenu.overlay.position_index[0] = 2 - end - if imgui.MenuItemBool("Bottom Left",nil,fmenu.tmenu.overlay.position_index[0] == 3) then - fmenu.tmenu.overlay.position_index[0] = 3 - end - if imgui.MenuItemBool("Bottom Right",nil,fmenu.tmenu.overlay.position_index[0] == 4) then - fmenu.tmenu.overlay.position_index[0] = 4 - end - imgui.Separator() - if imgui.MenuItemBool("No background",nil,fmenu.tmenu.overlay.transparent_bg[0]) then - fmenu.tmenu.overlay.transparent_bg[0] = not fmenu.tmenu.overlay.transparent_bg[0] - end - if imgui.MenuItemBool("Close") then - fmenu.tmenu.overlay.fps[0] = false - fmenu.tmenu.overlay.speed[0] = false - fmenu.tmenu.overlay.health[0] = false - fmenu.tmenu.overlay.coordinates[0] = false - fmenu.tmenu.overlay.location[0] = false - end - imgui.EndPopup() - end - - -------------------------------------------------- - -- Update overlay position variables - if pos == 0 then - fmenu.tmenu.overlay.pos_x[0] = imgui.GetWindowPos().x - fmenu.tmenu.overlay.pos_y[0] = imgui.GetWindowPos().y - end - -------------------------------------------------- - - imgui.End() - -end).HideCursor = true - --------------------------------------------------- --- Command window -imgui.OnFrame(function() - return not isGamePaused() and fmenu.tmenu.command.show[0] -end, -function() - - - imgui.SetNextWindowPos(imgui.ImVec2(0, resY-fmenu.tmenu.command.height), imgui.Cond.Always) - imgui.SetNextWindowSize(imgui.ImVec2(resX,fmenu.tmenu.command.height)) - - local frame_padding = {imgui.GetStyle().FramePadding.x,imgui.GetStyle().FramePadding.y} - local window_padding = {imgui.GetStyle().WindowPadding.x,imgui.GetStyle().WindowPadding.y} - imgui.PushStyleVarVec2(imgui.StyleVar.FramePadding, imgui.ImVec2(frame_padding[1],resY/130)) - imgui.PushStyleVarVec2(imgui.StyleVar.WindowPadding, imgui.ImVec2(3,3)) - - - imgui.Begin("Command Window", nil, imgui.WindowFlags.NoDecoration + imgui.WindowFlags.AlwaysAutoResize - + imgui.WindowFlags.NoSavedSettings + imgui.WindowFlags.NoMove) - - imgui.SetNextItemWidth(resX) - imgui.SetKeyboardFocusHere(-1) - if imgui.InputTextWithHint("##TEXTFIELD","Enter command",fmenu.tmenu.command.input_field,ffi.sizeof(fmenu.tmenu.command.input_field),imgui.InputTextFlags.EnterReturnsTrue - or imgui.InputTextFlags.CallbackCompletion or imgui.InputTextFlags.CallbackHistory) then - if imgui.IsKeyPressed(vkeys.VK_RETURN,false) then - fmenu.tmenu.command.show[0] = not fmenu.tmenu.command.show[0] - fmenu.ExecuteCommand() - imgui.StrCopy(fmenu.tmenu.command.input_field, "", 1) - end - end - imgui.End() - - imgui.PushStyleVarVec2(imgui.StyleVar.FramePadding, imgui.ImVec2(frame_padding[1],frame_padding[2])) - imgui.PushStyleVarVec2(imgui.StyleVar.WindowPadding, imgui.ImVec2(window_padding[1],window_padding[2])) - -end).HideCursor = true - -function main() - - -------------------------------------------------- - -- Functions that need to lunch only once at startup - - --writeMemory(0x4b331f,6,0xE9,false) - if isSampLoaded() then - fgame.tgame.script_manager.skip_auto_reload = true - print("SAMP detected, unloading script.") - thisScript():unload() - end - - if tcheatmenu.current_menu == 0 and not string.find(script.this.version,"beta") then -- first startup - fmenu.tmenu.get_beta_updates[0] = false - end - - math.randomseed(getGameTimer()) - - if fmenu.tmenu.auto_update_check[0] then - fmenu.CheckUpdates() - end - - fplayer.CustomSkinsSetup() - - if fplayer.tplayer.enable_saving[0] then - if fplayer.tplayer.save_data["player_skin"] ~= nil then - fplayer.ChangePlayerModel(tostring(fplayer.tplayer.save_data["player_skin"]),true) - else - for i=0, 18 do - local name = fplayer.tplayer.save_data["clothes"][tostring(i)] - if name ~= nil then - if name == "none" then - givePlayerClothes(PLAYER_HANDLE,0,0,i) - buildPlayerModel(PLAYER_HANDLE) - else - fplayer.ChangePlayerCloth(name,true) - end - end - end - end - end - - if fweapon.tweapon.gang.enable_weapon_editor[0] then - local weapons = fweapon.tweapon.gang.used_weapons - for x=1,10,1 do - setGangWeapons(x-1,weapons[x][1],weapons[x][2],weapons[x][3]) - end - end - - fplayer.SetPlayerInvisible(fplayer.tplayer.invisible[0]) - - if fgame.tgame.freeze_mission_timer[0] then - freezeOnscreenTimer(true) - end - - if fvehicle.tvehicle.no_vehicles[0] then - writeMemory(0x434237,1,0x73,false) - writeMemory(0x434224,1,0,false) - writeMemory(0x484D19,1,0x83,false) - writeMemory(0x484D17,1,0,false) - end - - if fgame.tgame.disable_help_popups[0] == true then - setGameGlobal(glob.Help_Wasted_Shown,1) - setGameGlobal(glob.Help_Busted_Shown,1) - removePickup(glob.Pickup_Info_Hospital) - removePickup(glob.Pickup_Info_Hospital_2) - removePickup(glob.Pickup_Info_Police) - end - - setGameGlobal(glob.STAT_Unlocked_Cities_Number,4) - - if fgame.tgame.disable_cheats[0] == true then - writeMemory(0x4384D0,1,0xE9,false) - writeMemory(0x4384D1,4,0xD0,false) - writeMemory(0x4384D5,4,0x90909090,false) - end - - if not fgame.tgame.forbidden_area_wanted_level[0] then - writeMemory(0x441770,1,0xC3,false) - end - - switchArrestPenalties(not(fgame.tgame.keep_stuff[0])) - switchDeathPenalties(not(fgame.tgame.keep_stuff[0])) - - if fped.tped.gang.wars[0] then - setGangWarsActive(fped.tped.gang.wars[0]) - end - - setPlayerFastReload(PLAYER_HANDLE,fweapon.tweapon.fast_reload[0]) - - if fgame.tgame.disable_replay[0] then - writeMemory(0x460500,4,0xC3,false) - end - - -- Vehicle gxt names - for gxt_name,veh_name in pairs(fvehicle.tvehicle.gxt_name_table) do - setGxtEntry(gxt_name,veh_name) - end - - -- Command window - fmenu.RegisterAllCommands() - - -- Set saved values of addresses - fconfig.SetConfigData() - - if fvisual.tvisual.disable_motion_blur[0] then - writeMemory(0x7030A0,4,0xC3,false) - end - - if not fvisual.tvisual.radio_channel_names[0] then - writeMemory(0x507035,4,0x90,false) - end - - fvehicle.ParseCarcols() - fvehicle.ParseVehiclesIDE() - - fcommon.CreateThread(fplayer.KeepPosition) - fcommon.CreateThread(fplayer.RegenerateHealth) - fcommon.CreateThread(fped.PedHealthDisplay) - fcommon.CreateThread(fgame.FreezeTime) - fcommon.CreateThread(fgame.LoadScriptsOnKeyPress) - fcommon.CreateThread(fgame.RandomCheatsActivate) - fcommon.CreateThread(fgame.RandomCheatsDeactivate) - fcommon.CreateThread(fgame.SolidWater) - fcommon.CreateThread(fgame.SyncSystemTime) - fcommon.CreateThread(fvehicle.OnEnterVehicle) - fcommon.CreateThread(fvehicle.RainbowColors) - fcommon.CreateThread(fvehicle.RainbowNeons) - fcommon.CreateThread(fvehicle.TrafficNeons) - fcommon.CreateThread(fvisual.LockWeather) - fcommon.CreateThread(fweapon.AutoAim) - - ------------------------------------------------ - - while true do - - -------------------------------------------------- - -- Functions that neeed to run constantly - - -------------------------------------------------- - -- Weapons - local CurWeapon = getCurrentCharWeapon(PLAYER_PED) - - local pPed = getCharPointer(PLAYER_PED) - - local skill = callMethod(0x5E3B60,pPed,1,0,CurWeapon) - local pWeaponInfo = callFunction(0x743C60,2,2,CurWeapon,skill) - - if fweapon.tweapon.huge_damage[0] then - writeMemory(pWeaponInfo+0x22,2,1000,false) - end - if fweapon.tweapon.long_range[0] then - memory.setfloat(pWeaponInfo+0x04,1000.0) - memory.setfloat(pWeaponInfo+0x08,1000.0) - end - if fweapon.tweapon.max_accuracy[0] then - memory.setfloat(pWeaponInfo+0x38,1.0) - end - if fweapon.tweapon.max_ammo_clip[0] then - writeMemory(pWeaponInfo+0x20,2,9999,false) - end - if fweapon.tweapon.max_move_speed[0] then - memory.setfloat(pWeaponInfo+0x3C,1.0) - end - -------------------------------------------------- - - if fanimation.tanimation.ped[0] == true or fweapon.tweapon.ped[0] == true then - local bool, ped = getCharPlayerIsTargeting(PLAYER_HANDLE) - if bool == true then - fped.tped.selected = ped - end - end - - if fped.tped.selected ~= nil then - if not doesCharExist(fped.tped.selected) or isCharDead(fped.tped.selected) then - fped.tped.selected = nil - end - end - - -- Camera mode - fcommon.OnHotKeyPress(fmenu.tmenu.hot_keys.camera_mode,function() - fgame.tgame.camera.bool[0] = not fgame.tgame.camera.bool[0] - if fgame.tgame.camera.bool[0] then - fcommon.CreateThread(fgame.CameraMode,"CameraMode") - printHelpString("Camera mode enabled") - else - printHelpString("Camera mode disabled") - end - end) - - -- Quick screenshot - if fgame.tgame.ss_shortcut[0] then - fcommon.OnHotKeyPress(fmenu.tmenu.hot_keys.quick_screenshot,function() - takePhoto(true) - printHelpString("Screenshot ~g~taken") - end) - end - - -- Qucik teleport - if fteleport.tteleport.shortcut[0] then - fcommon.OnHotKeyPress(fmenu.tmenu.hot_keys.quick_teleport,function() - fteleport.Teleport() - end) - end - - if fplayer.tplayer.god[0] then - writeMemory(0x96916D,1,1,false) - setCharProofs(PLAYER_PED,true,true,true,true,true) - end - - -- Aim skin changer - if fplayer.tplayer.aimSkinChanger[0] then - fcommon.OnHotKeyPress(fmenu.tmenu.hot_keys.asc_key,function() - local bool,char = getCharPlayerIsTargeting(PLAYER_HANDLE) - if bool == true then - local model = getCharModel(char) - fplayer.ChangePlayerModel(tostring(model)) - end - end) - end - - -- Vehicle functions - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - - if fvehicle.tvehicle.car_engine[0] == fconst.CHECKBOX_STATE.ON then - setCarEngineOn(car,true) - end - if fvehicle.tvehicle.car_engine[0] == fconst.CHECKBOX_STATE.OFF then - setCarEngineOn(car,false) - end - - -- Reset car colors if player changed color in tune shop - if fvehicle.tvehicle.color.default ~= -1 then - if fvehicle.tvehicle.color.default ~= getCarColours(car) then - fvehicle.ForEachCarComponent(function(mat,comp,car) - mat:reset_color() - end) - end - end - - if fvehicle.tvehicle.lock_speed[0] then - if fvehicle.tvehicle.speed[0] > 500 then - fvehicle.tvehicle.speed[0] = 500 - end - setCarForwardSpeed(car,fvehicle.tvehicle.speed[0]) - end - - if getCarDoorLockStatus(car) == 4 then - fvehicle.tvehicle.lock_doors[0] = true - else - fvehicle.tvehicle.lock_doors[0] = false - end - - setCarVisible(car,not(fvehicle.tvehicle.invisible_car[0])) - setCarWatertight(car,fvehicle.tvehicle.watertight_car[0]) - setCarCanBeDamaged(car,not(fvehicle.tvehicle.no_damage[0])) - setCarCanBeVisiblyDamaged(car,not(fvehicle.tvehicle.visual_damage[0])) - setCharCanBeKnockedOffBike(PLAYER_PED,fvehicle.tvehicle.stay_on_bike[0]) - setCarHeavy(car,fvehicle.tvehicle.heavy[0]) - - else - fvehicle.tvehicle.lock_doors[0] = false - fvehicle.tvehicle.lights[0] = false - end - - ------------------------------------------------ - -- Menu open close - fcommon.OnHotKeyPress(fmenu.tmenu.hot_keys.menu_open,function() - tcheatmenu.show[0] = not tcheatmenu.show[0] - end) - - fcommon.OnHotKeyPress(fmenu.tmenu.hot_keys.command_window,function() - fmenu.tmenu.command.show[0] = not fmenu.tmenu.command.show[0] - end) - - wait(0) - end -end - -function onScriptTerminate(script, quitGame) - if script == thisScript() then - - fconfig.Write() - fcommon.SaveJson("animation",fanimation.tanimation.list) - fteleport.tteleport.coordinates["Radar"] = nil - fcommon.SaveJson("coordinate",fteleport.tteleport.coordinates) - fcommon.SaveJson("memory",fmemory.tmemory.list) - - if isCharInAnyCar(PLAYER_PED) then - local model = getCarModel(getCarCharIsUsing(PLAYER_PED)) - fvehicle.tvehicle.first_person_camera.offsets[tostring(model)].x = fvehicle.tvehicle.first_person_camera.offset_x_var[0] - fvehicle.tvehicle.first_person_camera.offsets[tostring(model)].y = fvehicle.tvehicle.first_person_camera.offset_y_var[0] - fvehicle.tvehicle.first_person_camera.offsets[tostring(model)].z = fvehicle.tvehicle.first_person_camera.offset_z_var[0] - fcommon.SaveJson("first person camera offsets",fvehicle.tvehicle.first_person_camera.offsets) - end - - if fgame.tgame.camera.bool[0] then - displayRadar(true) - displayHud(true) - end - - restoreCameraJumpcut() - - if doesObjectExist(fgame.tgame.solid_water_object) then - deleteObject(fgame.tgame.solid_water_object) - end - - fgame.RemoveAllObjects() - fped.RemoveAllSpawnedPeds() - fweapon.RemoveAllWeaponDrops() - - fcommon.ReleaseImages(fvehicle.tvehicle.images) - fcommon.ReleaseImages(fweapon.tweapon.images) - fcommon.ReleaseImages(fvehicle.tvehicle.paintjobs.images) - fcommon.ReleaseImages(fvehicle.tvehicle.components.images) - fcommon.ReleaseImages(fped.tped.images) - fcommon.ReleaseImages(fplayer.tplayer.clothes.images) - - if fconfig.tconfig.reset == false then - if fmenu.tmenu.crash_text == "" then - fmenu.tmenu.crash_text = "Cheat menu crashed unexpectedly" - - if fmenu.tmenu.auto_reload[0] and not fgame.tgame.script_manager.skip_auto_reload then - script:reload() - fmenu.tmenu.crash_text = fmenu.tmenu.crash_text .. " but reloaded" - end - end - end - if fmenu.tmenu.show_crash_message[0] and not fgame.tgame.script_manager.skip_auto_reload then - printHelpString(fmenu.tmenu.crash_text) - end - end -end - -function onSaveGame() - fgame.RemoveAllObjects() - fped.RemoveAllSpawnedPeds() - fweapon.RemoveAllWeaponDrops() -end diff --git a/moonloader/lib/MoonAdditions.dll b/moonloader/lib/MoonAdditions.dll deleted file mode 100644 index b38e4feb0f7d337a2c7c53cdd2e03d0a2b2e7a1c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 765440 zcme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?_6lPltr4^RalCr!}V#iD=C@eG-my|2V z<%ykCm?u7vQ&L=(H@O0hFUT$&g-41D$_pwT&p5i|VvM1z~#Tm--@|3hI zfhr=5+&m0QVHtWl2YOK8X}h6i_V01A9!geBj5v^UfM51@-R%(5CFIBmBTE;Qo54<4Ex;~ODDEBLiQY2Z<~z`U>GGO9KV>=;fpW+eDJ5dmc?02 ze$y=`kNyu(2E+d)WpJkknDT}{eQAu`e>3fAXa3(#drZ7+L%Fpv&M?wsh)FUf4>zQz zm}1k?5{=hV1H*q!4&0`QJ2{}_cW__hBnQ1dGA}m?EJqE|Lv^qgZ{to zz4WE&<45jl)_wNI_NNvqWe?t*Xx%w=(%I>oHaE|no!kHF$*Q`kJp&)CDt zLd(*%H+?+$=cb=CbuSf`=qGkQ@WbN%qc3T`xEvsV{@l3rLxb;}|Ab-Oy_e1eZ>=(6 z9mJxS0C|eB^M7IOX0PXhuMy((b{{kbx;E?z&g8z5^I*OP*L6=(05terXAB#BkT?1A z>MIJL>dx);Wos_n=k@(=uZ6}2x5vFq(~VPmRv^}j23*y~J8cZJF-NiP&a3uTc zuDYG^XB#?i{-?U?i^Ee&4p_hD?Y$L^7oyq38E00+9Zu}IVZgJ-)}O!J`0=y99k1QE z^qaGN!I@W=z4%4JHhO-u3^y zl;MvACD-E4G$TTlI7Dzj9Z%O6IU;0bryIbhMA?R%y3(!J-OPmCDqIj$%5-Dk?xzYV{4(s+-%B4_h+ z|Gv2K{4nqPRZX2|?*C=UI#bkrOYT@>_v_d`=as6>ej9FE@v7yy+tW46ZCT0c{VAI_ p9D6tRSoF?s_kT5Hi+||9=6un3>>t0}lJL?q5nqg|^o4Zx{{WZYt=a$p diff --git a/moonloader/lib/cheat-menu/fonts/tahoma.ttf b/moonloader/lib/cheat-menu/fonts/tahoma.ttf deleted file mode 100644 index f5a011e9a5163fdbcb54ef2f720e0f4cb5012a30..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 383140 zcmb@v37~98RqtJ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=^p==~--gvZ?cI^zUz8ZGSJSkfx1YZ&*w#F|Fq*W8*UY)eTVf!q@C2cj1!FDA zAc&t>xES9Ul0yU|8zN+7^A*x#h>*A7SCbTbKk>IzCZQ}p)I$;U@D1aGg5d)B5Wu~; zAX*I5x4||DXp7&>ln%oT`e#ZD1VylJ0ah{&gH?}jPhl7~7)$<>Yp(!#zt^fNwwb~w z5jtA~6EGv7m_VMmNpS2Z{?mqZ_Gr>XL+RnS8GN*Fl?60>+-cfL}wmYVJb9Nc{O; zxel>NjIr88{>Q?r#a>2tgz6)4@Zu<0lJ1nvIx6+{(9IX2o%fa<6_;V8+BU(=^zxT_a5jr8lZhlrIRO@#4p_O}nC5TeUAN;YHl7*;*yyMgf=A zCnqguKED`$!n4}mQtj(`?u=hNN8XW<2&b7b6aO2{eJpUF1g_5xoZS;rnUcbnBCM~& z`p*Zg^arrWm1K2SaA$Jk+0+qNFY-#v2=L~lX6RXSv*uJCUh+vZ^thnKARX6r#b;>t Oo}f$2tSgbyIR9T7!`lr2 diff --git a/moonloader/lib/cheat-menu/fonts/tahomabd.ttf b/moonloader/lib/cheat-menu/fonts/tahomabd.ttf deleted file mode 100644 index 1fd9f04f656581a464216ca401b87035ccfde776..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 355436 zcmb@P37~98Rj#Yg>A8FF-b2sB8Sc5~=H8p!goH4QARvQ)NFoTRK$r~zfgps*fIv`0 zP(g$^f;>eO6a@4I9uGku4j@VdL_tyJQO3xFB>ldB)voS7eQ!+iNbOTqd#GK*TC3K- zYS?{T$vM|0D7!n}<@|fx?Xur^#baINzISnMa`bL@`To1!`aZY4(p7%wy`*}|-Oj(? zoi058zCY|LKk)0$RnNTF51)Vc7r%Yuo6hZi*16hM_c{NpbKZH`E9=gc{)+VXzyDqC z{eVmU>(a+NckJWNRX+ak$6atyTZ7rB9JP~MBkFM0G&KJ8KWe&wqUxzZyqa+^PYug5&% zahKdRz5mtDo%K%Vu6o&H9(lndKJe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|;^+xMYE?#?i@x|GuoQ(}Hl-2bP?2)g&5%6&_(gAiF{E z07Sj2ldI^$S7vV5ux~<9!i~zQGs0h+JG`Qg0-FOe1gfklnY!nW*kj7J2S40&y!w9W z`nETJx;DF6uVdXjJ*b@7np z@*Vd_MV)u|2)^{v!_e=CD_5rsD~>!9GyKRmC-oVByj|gw%y!!fY4Fqj8~Qc;V*kVCzn9$m!y1y^MmP8Jxy+8&k_UeCXl48FOfi{v F{}&Pk=1>3t diff --git a/moonloader/lib/cheat-menu/fonts/verdana.ttf b/moonloader/lib/cheat-menu/fonts/verdana.ttf deleted file mode 100644 index 8f25a642311b8dde62b6154184aea935999b7c15..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 171792 zcmeFad7M`)7{h4J=3%IFwDTrus9&A2#N>-vdAW&f-9m3;u4nx zqtS?(Xxt(KF@pQP0kXtIV>Fn>#N>(km_(Bpo%eg{b~6K#&-?qmf4%xXRddh1b#K+F zs#E7%=TzP99wsoxTp$|O-8*IM=sm;6EoQ0>I~nuO95;2!m}%dBv&fix3}fm`Crl}p zMxS%tbBqZuqtvu%z2m2^{_hKyGUnUEnD+48rE^yNar{+RF{Xc-G2PX3&s{B#yK{t! zvBV~n`R@FAtLvLow@qfM3;)QN;ng!&ELhq)=|GmT*mZdR>4G_{RxmF!GNzKj-?m`M z+A~v@4jp5+-^zsh7B8H)bd7PWbuVL$F2d>hJ+L;jY9xZ&(D?nnA^ zq>~Gmu3qzscI9x!Qs5{4?X3ALm!0#}#Z#DS#YDy|Tb3-JJ7@ce0XJRxDq&`oN1zw=vZT2FB83R;--AV(t7l2N;Vy zfIPotBumvY*T=cUJEu#-{?3BPhH&4-z33xjkBYY%25$LshWSPVO_8RqBf`=;MZnqgX&R!ZQ=J{=GRt!{WE@T z!?jg)m|r__?NEKluU(V}LZ$w?acxsu__c@M5Akb1uB~dNJwcwQh2IbJJfrw^lwVKg z*GZm#7Qe3J*GuTyz}u`opIu3jZip1*4T%5&$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E}ZGUSMA#Q%r__ItsFXXQ_QQQ zCi{$yaPx4V-#=?a$`d(eMf{ybIb&XFZo=7cUY_1=9;L1cCjcsjInJj4^%vy+;*#Qn zZd0Q5Yi}LVxyd^!1WqHng+k{^b9cA|5DRZ2+;u~W9a_Ux_?hlgC)ksLXH>gF51&%Q7%A~E>6(qW%; z-+A1-Px$q(4IP`0{x)`P@wUgFey`B`>FA+jhd=i8&};8qSn+a8=+DZoB;k2}=VKEZ zhgOtdR~2b~e0f3kk&8>+R6o?_Wci<({)XF|mw#Jl>{NJl>P;UH*GqG<)*l_c^uB6M zl&$x&@z>pLc6-B|M?8yP$l7^;7C-hPz+Eno?_7!_HG@svVsNc?U{|^E4+b#eA diff --git a/moonloader/lib/cheat-menu/json/animation.json b/moonloader/lib/cheat-menu/json/animation.json deleted file mode 100644 index 2c7b4cf..0000000 --- a/moonloader/lib/cheat-menu/json/animation.json +++ /dev/null @@ -1 +0,0 @@ -{"POOR":{"WINWASH_Wash2Beg":"WINWASH_Wash2Beg","WINWASH_Start":"WINWASH_Start"},"DILDO":{"DILDO_3":"DILDO_3","DILDO_Hit_3":"DILDO_Hit_3","DILDO_block":"DILDO_block","DILDO_1":"DILDO_1","DILDO_Hit_2":"DILDO_Hit_2","DILDO_2":"DILDO_2","DILDO_IDLE":"DILDO_IDLE","DILDO_Hit_1":"DILDO_Hit_1","DILDO_G":"DILDO_G"},"QUAD_DBZ":{"Pass_Driveby_BWD":"Pass_Driveby_BWD","Pass_Driveby_LHS":"Pass_Driveby_LHS","Pass_Driveby_FWD":"Pass_Driveby_FWD","Pass_Driveby_RHS":"Pass_Driveby_RHS"},"WEAPONS":{"SHP_1H_Lift":"SHP_1H_Lift","SHP_Tray_Out":"SHP_Tray_Out","SHP_G_Lift_In":"SHP_G_Lift_In","SHP_Ar_Ret":"SHP_Ar_Ret","SHP_2H_Ret":"SHP_2H_Ret","SHP_Tray_In":"SHP_Tray_In","SHP_1H_Ret":"SHP_1H_Ret","SHP_2H_Lift_End":"SHP_2H_Lift_End","SHP_2H_Ret_S":"SHP_2H_Ret_S","SHP_2H_Lift":"SHP_2H_Lift","SHP_1H_Lift_End":"SHP_1H_Lift_End","SHP_Ar_Lift_End":"SHP_Ar_Lift_End","SHP_Ar_Ret_S":"SHP_Ar_Ret_S","SHP_Tray_Pose":"SHP_Tray_Pose","SHP_Ar_Lift":"SHP_Ar_Lift","SHP_G_Lift_Out":"SHP_G_Lift_Out","SHP_1H_Ret_S":"SHP_1H_Ret_S"},"BLOWJOBZ":{"BJ_COUCH_START_W":"BJ_COUCH_START_W","BJ_STAND_START_P":"BJ_STAND_START_P","BJ_STAND_END_W":"BJ_STAND_END_W","BJ_COUCH_LOOP_P":"BJ_COUCH_LOOP_P","BJ_COUCH_END_P":"BJ_COUCH_END_P","BJ_COUCH_END_W":"BJ_COUCH_END_W","BJ_STAND_START_W":"BJ_STAND_START_W","BJ_COUCH_START_P":"BJ_COUCH_START_P","BJ_STAND_LOOP_W":"BJ_STAND_LOOP_W","BJ_COUCH_LOOP_W":"BJ_COUCH_LOOP_W","BJ_STAND_LOOP_P":"BJ_STAND_LOOP_P","BJ_STAND_END_P":"BJ_STAND_END_P"},"KISSING":{"BD_GF_Wave":"BD_GF_Wave","gift_get":"gift_get","Playa_Kiss_01":"Playa_Kiss_01","GF_CarArgue_02":"GF_CarArgue_02","GF_CarSpot":"GF_CarSpot","gift_give":"gift_give","Playa_Kiss_03":"Playa_Kiss_03","Grlfrd_Kiss_02":"Grlfrd_Kiss_02","GF_CarArgue_01":"GF_CarArgue_01","GF_StreetArgue_01":"GF_StreetArgue_01","Grlfrd_Kiss_03":"Grlfrd_Kiss_03","Playa_Kiss_02":"Playa_Kiss_02","gfwave2":"gfwave2","GF_StreetArgue_02":"GF_StreetArgue_02","Grlfrd_Kiss_01":"Grlfrd_Kiss_01"},"CARRY":{"crry_prtial":"crry_prtial","liftup":"liftup","putdwn105":"putdwn105","liftup05":"liftup05","liftup105":"liftup105","putdwn":"putdwn","putdwn05":"putdwn05"},"BUDDY":{"buddy_crouchreload":"buddy_crouchreload","buddy_fire":"buddy_fire","buddy_reload":"buddy_reload","buddy_fire_poor":"buddy_fire_poor","buddy_crouchfire":"buddy_crouchfire"},"BD_FIRE":{"BD_GF_Wave":"BD_GF_Wave","BD_Fire3":"BD_Fire3","BD_Panic_Loop":"BD_Panic_Loop","Playa_Kiss_03":"Playa_Kiss_03","BD_Fire2":"BD_Fire2","BD_Panic_01":"BD_Panic_01","M_smklean_loop":"M_smklean_loop","Grlfrd_Kiss_03":"Grlfrd_Kiss_03","BD_Fire1":"BD_Fire1","BD_Panic_04":"BD_Panic_04","BD_Panic_02":"BD_Panic_02","wash_up":"wash_up","BD_Panic_03":"BD_Panic_03"},"TEC":{"TEC_crouchfire":"TEC_crouchfire","TEC_fire":"TEC_fire","TEC_crouchreload":"TEC_crouchreload","TEC_reload":"TEC_reload"},"SUNBATHE":{"SBATHE_F_Out":"SBATHE_F_Out","ParkSit_W_idleB":"ParkSit_W_idleB","ParkSit_M_IdleA":"ParkSit_M_IdleA","SitnWait_in_W":"SitnWait_in_W","SitnWait_out_W":"SitnWait_out_W","Lay_Bac_in":"Lay_Bac_in","ParkSit_M_IdleB":"ParkSit_M_IdleB","ParkSit_M_out":"ParkSit_M_out","SBATHE_F_LieB2Sit":"SBATHE_F_LieB2Sit","Lay_Bac_out":"Lay_Bac_out","batherup":"batherup","ParkSit_W_idleA":"ParkSit_W_idleA","ParkSit_M_IdleC":"ParkSit_M_IdleC","ParkSit_M_in":"ParkSit_M_in","batherdown":"batherdown","ParkSit_W_idleC":"ParkSit_W_idleC","ParkSit_W_out":"ParkSit_W_out","ParkSit_W_in":"ParkSit_W_in"},"MD_CHASE":{"MD_BIKE_Punch":"MD_BIKE_Punch","MD_BIKE_2_HANG":"MD_BIKE_2_HANG","MD_BIKE_Shot_F":"MD_BIKE_Shot_F","MD_BIKE_Lnd_Roll":"MD_BIKE_Lnd_Roll","MD_BIKE_Lnd_Roll_F":"MD_BIKE_Lnd_Roll_F","donutdrop":"donutdrop","Fen_Choppa_L3":"Fen_Choppa_L3","MD_BIKE_Jmp_F":"MD_BIKE_Jmp_F","MD_HANG_Lnd_Roll":"MD_HANG_Lnd_Roll","Fen_Choppa_R2":"Fen_Choppa_R2","MD_HANG_Loop":"MD_HANG_Loop","Fen_Choppa_L2":"Fen_Choppa_L2","MD_BIKE_Lnd_BL":"MD_BIKE_Lnd_BL","Carhit_Hangon":"Carhit_Hangon","Carhit_Tumble":"Carhit_Tumble","Fen_Choppa_R1":"Fen_Choppa_R1","MD_BIKE_Lnd_F":"MD_BIKE_Lnd_F","MD_BIKE_Punch_F":"MD_BIKE_Punch_F","Hangon_Stun_Turn":"Hangon_Stun_Turn","Fen_Choppa_R3":"Fen_Choppa_R3","Fen_Choppa_L1":"Fen_Choppa_L1","MD_BIKE_Lnd_Die_BL":"MD_BIKE_Lnd_Die_BL","MD_BIKE_Lnd_Die_F":"MD_BIKE_Lnd_Die_F","MD_BIKE_Jmp_BL":"MD_BIKE_Jmp_BL","Hangon_Stun_loop":"Hangon_Stun_loop"},"GHANDS":{"gsign5":"gsign5","LHGsign5":"LHGsign5","RHGsign5":"RHGsign5","gsign3LH":"gsign3LH","gsign5LH":"gsign5LH","LHGsign1":"LHGsign1","RHGsign1":"RHGsign1","gsign4LH":"gsign4LH","LHGsign3":"LHGsign3","RHGsign3":"RHGsign3","gsign1LH":"gsign1LH","LHGsign2":"LHGsign2","gsign3":"gsign3","RHGsign2":"RHGsign2","gsign2LH":"gsign2LH","LHGsign4":"LHGsign4","gsign1":"gsign1","RHGsign4":"RHGsign4","gsign4":"gsign4","gsign2":"gsign2"},"DEALER":{"DEALER_IDLE_02":"DEALER_IDLE_02","DEALER_IDLE_01":"DEALER_IDLE_01","DEALER_IDLE_03":"DEALER_IDLE_03","DEALER_DEAL":"DEALER_DEAL","shop_pay":"shop_pay","DRUGS_BUY":"DRUGS_BUY","DEALER_IDLE":"DEALER_IDLE"},"MD_END":{"END_SC1_SMO":"END_SC1_SMO","END_SC2_SMO":"END_SC2_SMO","END_SC1_PLY":"END_SC1_PLY","END_SC1_SWE":"END_SC1_SWE","END_SC2_SWE":"END_SC2_SWE","END_SC2_PLY":"END_SC2_PLY","END_SC1_RYD":"END_SC1_RYD","END_SC2_RYD":"END_SC2_RYD"},"CHOPPA":{"CHOPPA_pedal":"CHOPPA_pedal","CHOPPA_fwd":"CHOPPA_fwd","CHOPPA_driveby_RHS":"CHOPPA_driveby_RHS","CHOPPA_jumponR":"CHOPPA_jumponR","CHOPPA_getoffRHS":"CHOPPA_getoffRHS","CHOPPA_getoffLHS":"CHOPPA_getoffLHS","CHOPPA_driveby_LHS":"CHOPPA_driveby_LHS","CHOPPA_ride":"CHOPPA_ride","CHOPPA_bunnyhop":"CHOPPA_bunnyhop","CHOPPA_Pushes":"CHOPPA_Pushes","CHOPPA_drivebyFT":"CHOPPA_drivebyFT","CHOPPA_Left":"CHOPPA_Left","CHOPPA_Still":"CHOPPA_Still","CHOPPA_getoffBACK":"CHOPPA_getoffBACK","CHOPPA_Right":"CHOPPA_Right","CHOPPA_sprint":"CHOPPA_sprint","CHOPPA_jumponL":"CHOPPA_jumponL","CHOPPA_back":"CHOPPA_back"},"FAT":{"FatWalkSt_Rocket":"FatWalkSt_Rocket","FatWalk_Rocket":"FatWalk_Rocket","FatWalk_armed":"FatWalk_armed","FatIdle":"FatIdle","FatRun":"FatRun","FatWalkSt_armed":"FatWalkSt_armed","FatWalkstart":"FatWalkstart","FatIdle_Csaw":"FatIdle_Csaw","FatRun_armed":"FatRun_armed","FatWalkstart_Csaw":"FatWalkstart_Csaw","FatIdle_armed":"FatIdle_armed","IDLE_tired":"IDLE_tired","FatWalk":"FatWalk","FatIdle_Rocket":"FatIdle_Rocket","FatRun_Csaw":"FatRun_Csaw","FatWalk_Csaw":"FatWalk_Csaw","FatRun_Rocket":"FatRun_Rocket","FatSprint":"FatSprint"},"HEIST9":{"swt_wllshoot_in_L":"swt_wllshoot_in_L","Use_SwipeCard":"Use_SwipeCard","CAS_G2_GasKO":"CAS_G2_GasKO","swt_wllshoot_out_R":"swt_wllshoot_out_R","swt_wllshoot_out_L":"swt_wllshoot_out_L","swt_wllpk_R":"swt_wllpk_R","swt_wllshoot_in_R":"swt_wllshoot_in_R","swt_wllpk_L_back":"swt_wllpk_L_back","swt_wllpk_L":"swt_wllpk_L","swt_wllpk_R_back":"swt_wllpk_R_back"},"CAMERA":{"camstnd_lkabt":"camstnd_lkabt","camcrch_idleloop":"camcrch_idleloop","piccrch_take":"piccrch_take","camstnd_idleloop":"camstnd_idleloop","camcrch_stay":"camcrch_stay","picstnd_take":"picstnd_take","piccrch_out":"piccrch_out","picstnd_out":"picstnd_out","piccrch_in":"piccrch_in","camcrch_to_camstnd":"camcrch_to_camstnd","camstnd_cmon":"camstnd_cmon","picstnd_in":"picstnd_in","camcrch_cmon":"camcrch_cmon","camstnd_to_camcrch":"camstnd_to_camcrch"},"CASINO":{"cards_loop":"cards_loop","dealone":"dealone","Slot_Plyr":"Slot_Plyr","Roulette_loop":"Roulette_loop","cards_win":"cards_win","Slot_in":"Slot_in","cards_raise":"cards_raise","cards_in":"cards_in","Slot_win_out":"Slot_win_out","Slot_wait":"Slot_wait","Roulette_lose":"Roulette_lose","Slot_lose_out":"Slot_lose_out","Roulette_out":"Roulette_out","Roulette_bet":"Roulette_bet","cards_out":"cards_out","manwind":"manwind","Roulette_win":"Roulette_win","cards_pick_02":"cards_pick_02","Slot_bet_01":"Slot_bet_01","cards_pick_01":"cards_pick_01","wof":"wof","Slot_bet_02":"Slot_bet_02","manwinb":"manwinb","Roulette_in":"Roulette_in","cards_lose":"cards_lose"},"LOWRIDER":{"lrgirl_l0_to_l1":"lrgirl_l0_to_l1","M_smklean_loop":"M_smklean_loop","lrgirl_l2_bnce":"lrgirl_l2_bnce","F_smklean_loop":"F_smklean_loop","prtial_gngtlkB":"prtial_gngtlkB","lrgirl_l2_to_l3":"lrgirl_l2_to_l3","M_smkstnd_loop":"M_smkstnd_loop","Tap_hand":"Tap_hand","lrgirl_l4_to_l5":"lrgirl_l4_to_l5","lrgirl_bdbnce":"lrgirl_bdbnce","lrgirl_hurry":"lrgirl_hurry","lrgirl_l4_bnce":"lrgirl_l4_bnce","lrgirl_l3_bnce":"lrgirl_l3_bnce","lrgirl_l12_to_l0":"lrgirl_l12_to_l0","RAP_A_Loop":"RAP_A_Loop","lrgirl_l5_loop":"lrgirl_l5_loop","RAP_B_Loop":"RAP_B_Loop","lrgirl_l5_bnce":"lrgirl_l5_bnce","prtial_gngtlkF":"prtial_gngtlkF","lrgirl_l4_loop":"lrgirl_l4_loop","lrgirl_l345_to_l1":"lrgirl_l345_to_l1","lrgirl_l3_loop":"lrgirl_l3_loop","lrgirl_l1_bnce":"lrgirl_l1_bnce","prtial_gngtlkG":"prtial_gngtlkG","RAP_C_Loop":"RAP_C_Loop","prtial_gngtlkC":"prtial_gngtlkC","lrgirl_l0_bnce":"lrgirl_l0_bnce","lrgirl_l2_loop":"lrgirl_l2_loop","lrgirl_idleloop":"lrgirl_idleloop","prtial_gngtlkH":"prtial_gngtlkH","lrgirl_idle_to_l0":"lrgirl_idle_to_l0","Sit_relaxed":"Sit_relaxed","prtial_gngtlkD":"prtial_gngtlkD","lrgirl_hair":"lrgirl_hair","lrgirl_l3_to_l4":"lrgirl_l3_to_l4","lrgirl_l1_loop":"lrgirl_l1_loop","lrgirl_l0_loop":"lrgirl_l0_loop","lrgirl_l1_to_l2":"lrgirl_l1_to_l2","prtial_gngtlkE":"prtial_gngtlkE"},"All":{},"CAR_CHAT":{"carfone_in":"carfone_in","CAR_Sc4_FL":"CAR_Sc4_FL","CAR_Sc2_FL":"CAR_Sc2_FL","car_talkm_loop":"car_talkm_loop","CAR_Sc4_BL":"CAR_Sc4_BL","carfone_out":"carfone_out","car_talkm_in":"car_talkm_in","CAR_Sc3_BR":"CAR_Sc3_BR","carfone_loopA_to_B":"carfone_loopA_to_B","CAR_Sc3_FR":"CAR_Sc3_FR","CAR_Sc4_FR":"CAR_Sc4_FR","carfone_loopA":"carfone_loopA","car_talkm_out":"car_talkm_out","CAR_Sc1_FL":"CAR_Sc1_FL","CAR_Sc4_BR":"CAR_Sc4_BR","CAR_Sc1_BL":"CAR_Sc1_BL","CAR_Sc1_FR":"CAR_Sc1_FR","CAR_Sc3_FL":"CAR_Sc3_FL","carfone_loopB_to_A":"carfone_loopB_to_A","CAR_Sc1_BR":"CAR_Sc1_BR","carfone_loopB":"carfone_loopB"},"TRAIN":{"tran_gtup":"tran_gtup","tran_stmb":"tran_stmb","tran_ouch":"tran_ouch","tran_hng":"tran_hng"},"HAIRCUTS":{"BRB_Buy":"BRB_Buy","BRB_Cut":"BRB_Cut","BRB_Sit_Loop":"BRB_Sit_Loop","BRB_Out":"BRB_Out","BRB_Loop":"BRB_Loop","BRB_Sit_In":"BRB_Sit_In","BRB_Sit_Out":"BRB_Sit_Out","BRB_Cut_In":"BRB_Cut_In","BRB_Hair_01":"BRB_Hair_01","BRB_Beard_01":"BRB_Beard_01","BRB_In":"BRB_In","BRB_Hair_02":"BRB_Hair_02","BRB_Cut_Out":"BRB_Cut_Out"},"INT_SHOP":{"shop_lookA":"shop_lookA","shop_loop":"shop_loop","shop_shelf":"shop_shelf","shop_out":"shop_out","shop_cashier":"shop_cashier","shop_pay":"shop_pay","shop_in":"shop_in","shop_lookB":"shop_lookB"},"GYMNASIUM":{"gym_tread_geton":"gym_tread_geton","gym_tread_jog":"gym_tread_jog","gym_tread_falloff":"gym_tread_falloff","gym_bike_faster":"gym_bike_faster","GYMshadowbox":"GYMshadowbox","gym_bike_getoff":"gym_bike_getoff","gym_shadowbox":"gym_shadowbox","Pedals_med":"Pedals_med","gym_bike_geton":"gym_bike_geton","Pedals_slow":"Pedals_slow","gym_walk_falloff":"gym_walk_falloff","Pedals_fast":"Pedals_fast","gym_tread_celebrate":"gym_tread_celebrate","gym_bike_celebrate":"gym_bike_celebrate","gym_tread_tired":"gym_tread_tired","Pedals_still":"Pedals_still","gym_tread_sprint":"gym_tread_sprint","gym_bike_still":"gym_bike_still","gym_bike_slow":"gym_bike_slow","gym_bike_fast":"gym_bike_fast","gym_bike_pedal":"gym_bike_pedal","gym_tread_walk":"gym_tread_walk","gym_tread_getoff":"gym_tread_getoff","gym_jog_falloff":"gym_jog_falloff"},"BF_INJECTION":{"BF_getin_RHS":"BF_getin_RHS","BF_getout_RHS":"BF_getout_RHS","BF_getout_LHS":"BF_getout_LHS","BF_getin_LHS":"BF_getin_LHS"},"VORTEX":{"CAR_jumpin_LHS":"CAR_jumpin_LHS","vortex_getout_LHS":"vortex_getout_LHS","CAR_jumpin_RHS":"CAR_jumpin_RHS","vortex_getout_RHS":"vortex_getout_RHS"},"DOZER":{"DOZER_getout_RHS":"DOZER_getout_RHS","DOZER_Align_RHS":"DOZER_Align_RHS","DOZER_getout_LHS":"DOZER_getout_LHS","DOZER_Jacked_LHS":"DOZER_Jacked_LHS","DOZER_pullout_RHS":"DOZER_pullout_RHS","DOZER_getin_LHS":"DOZER_getin_LHS","DOZER_pullout_LHS":"DOZER_pullout_LHS","DOZER_getin_RHS":"DOZER_getin_RHS","DOZER_Align_LHS":"DOZER_Align_LHS","DOZER_Jacked_RHS":"DOZER_Jacked_RHS"},"BOX":{"boxhipin":"boxhipin","bxwlko":"bxwlko","bxshwlki":"bxshwlki","bxhwlki":"bxhwlki","boxshup":"boxshup","boxhipup":"boxhipup","catch_box":"catch_box","bxhipwlk":"bxhipwlk","boxshdwn":"boxshdwn","bxshwlk":"bxshwlk"},"PLAYIDLES":{"shldr":"shldr","shift":"shift","stretch":"stretch","time":"time","strleg":"strleg"},"KNIFE":{"Knife_4":"Knife_4","WEAPON_knifeidle":"WEAPON_knifeidle","knife_3":"knife_3","knife_hit_1":"knife_hit_1","knife_2":"knife_2","knife_hit_2":"knife_hit_2","KILL_Partial":"KILL_Partial","knife_part":"knife_part","knife_1":"knife_1","knife_IDLE":"knife_IDLE","KILL_Knife_Ped_Die":"KILL_Knife_Ped_Die","KILL_Knife_Ped_Damage":"KILL_Knife_Ped_Damage","knife_block":"knife_block","Knife_G":"Knife_G","knife_hit_3":"knife_hit_3","KILL_Knife_Player":"KILL_Knife_Player"},"GANGS":{"hndshkaa":"hndshkaa","DRUGS_BUY":"DRUGS_BUY","leanIDLE":"leanIDLE","hndshkea":"hndshkea","leanIN":"leanIN","prtial_gngtlkC":"prtial_gngtlkC","Invite_Yes":"Invite_Yes","prtial_hndshk_biz_01":"prtial_hndshk_biz_01","shake_cara":"shake_cara","leanOUT":"leanOUT","Invite_No":"Invite_No","hndshkfa_swt":"hndshkfa_swt","shake_carK":"shake_carK","drnkbr_prtl_F":"drnkbr_prtl_F","hndshkca":"hndshkca","smkcig_prtl":"smkcig_prtl","prtial_gngtlkA":"prtial_gngtlkA","prtial_gngtlkF":"prtial_gngtlkF","hndshkfa":"hndshkfa","prtial_gngtlkG":"prtial_gngtlkG","drnkbr_prtl":"drnkbr_prtl","prtial_gngtlkE":"prtial_gngtlkE","hndshkda":"hndshkda","prtial_gngtlkH":"prtial_gngtlkH","prtial_hndshk_01":"prtial_hndshk_01","prtial_gngtlkB":"prtial_gngtlkB","prtial_gngtlkD":"prtial_gngtlkD","hndshkba":"hndshkba","smkcig_prtl_F":"smkcig_prtl_F","DEALER_DEAL":"DEALER_DEAL","hndshkcb":"hndshkcb","shake_carSH":"shake_carSH","DEALER_IDLE":"DEALER_IDLE"},"BIKES":{"BIKEs_Snatch_R":"BIKEs_Snatch_R","BIKEs_Fwd":"BIKEs_Fwd","BIKEs_pushes":"BIKEs_pushes","BIKEs_getoffBACK":"BIKEs_getoffBACK","BIKEs_drivebyRHS":"BIKEs_drivebyRHS","BIKEs_Left":"BIKEs_Left","BIKEs_hit":"BIKEs_hit","BIKEs_jumponR":"BIKEs_jumponR","BIKEs_Still":"BIKEs_Still","BIKEs_Snatch_L":"BIKEs_Snatch_L","BIKEs_Right":"BIKEs_Right","BIKEs_Back":"BIKEs_Back","BIKEs_drivebyFT":"BIKEs_drivebyFT","BIKEs_getoffLHS":"BIKEs_getoffLHS","BIKEs_jumponL":"BIKEs_jumponL","BIKEs_Ride":"BIKEs_Ride","BIKEs_passenger":"BIKEs_passenger","BIKEs_getoffRHS":"BIKEs_getoffRHS","BIKEs_kick":"BIKEs_kick","BIKEs_drivebyLHS":"BIKEs_drivebyLHS"},"FIGHT_C":{"FightC_IDLE":"FightC_IDLE","HitC_2":"HitC_2","FightC_2":"FightC_2","FightC_G":"FightC_G","FightC_3":"FightC_3","FightC_Spar":"FightC_Spar","FightC_M":"FightC_M","HitC_3":"HitC_3","FightC_1":"FightC_1","HitC_1":"HitC_1","FightC_blocking":"FightC_blocking","FightC_block":"FightC_block"},"GRAVEYARD":{"prst_loopa":"prst_loopa","mrnF_loop":"mrnF_loop","mrnM_loop":"mrnM_loop"},"STRIP":{"PUN_CASH":"PUN_CASH","STR_Loop_A":"STR_Loop_A","strip_E":"strip_E","strip_D":"strip_D","STR_B2A":"STR_B2A","STR_C1":"STR_C1","PUN_HOLLER":"PUN_HOLLER","STR_C2B":"STR_C2B","strip_B":"strip_B","strip_C":"strip_C","strip_A":"strip_A","STR_Loop_C":"STR_Loop_C","STR_Loop_B":"STR_Loop_B","STR_C2":"STR_C2","strip_G":"strip_G","STR_A2B":"STR_A2B","strip_F":"strip_F","STR_B2C":"STR_B2C","PLY_CASH":"PLY_CASH","PUN_LOOP":"PUN_LOOP"},"SWORD":{"Sword_Hit_3":"Sword_Hit_3","sword_IDLE":"sword_IDLE","sword_block":"sword_block","Sword_Hit_1":"Sword_Hit_1","sword_3":"sword_3","Sword_Hit_2":"Sword_Hit_2","sword_4":"sword_4","sword_1":"sword_1","sword_2":"sword_2","sword_part":"sword_part"},"PYTHON":{"python_crouchfire":"python_crouchfire","python_fire":"python_fire","python_reload":"python_reload","python_crouchreload":"python_crouchreload","python_fire_poor":"python_fire_poor"},"COP_DVBYZ":{"COP_Dvby_B":"COP_Dvby_B","COP_Dvby_L":"COP_Dvby_L","COP_Dvby_R":"COP_Dvby_R","COP_Dvby_FT":"COP_Dvby_FT"},"BMX":{"BMX_getoffLHS":"BMX_getoffLHS","BMX_still":"BMX_still","BMX_driveby_RHS":"BMX_driveby_RHS","BMX_sprint":"BMX_sprint","BMX_back":"BMX_back","BMX_pushes":"BMX_pushes","BMX_drivebyFT":"BMX_drivebyFT","BMX_jumponR":"BMX_jumponR","BMX_Ride":"BMX_Ride","BMX_bunnyhop":"BMX_bunnyhop","BMX_fwd":"BMX_fwd","BMX_Right":"BMX_Right","BMX_driveby_LHS":"BMX_driveby_LHS","BMX_getoffRHS":"BMX_getoffRHS","BMX_pedal":"BMX_pedal","BMX_Left":"BMX_Left","BMX_jumponL":"BMX_jumponL","BMX_getoffBACK":"BMX_getoffBACK"},"ROB_BANK":{"SHP_HandsUp_Scr":"SHP_HandsUp_Scr","CAT_Safe_End":"CAT_Safe_End","CAT_Safe_Rob":"CAT_Safe_Rob","CAT_Safe_Open_O":"CAT_Safe_Open_O","CAT_Safe_Open":"CAT_Safe_Open"},"ON_LOOKERS":{"panic_cower":"panic_cower","shout_loop":"shout_loop","Pointup_shout":"Pointup_shout","panic_in":"panic_in","Pointup_out":"Pointup_out","shout_02":"shout_02","point_in":"point_in","panic_out":"panic_out","lkaround_loop":"lkaround_loop","point_out":"point_out","lkup_in":"lkup_in","shout_in":"shout_in","lkaround_out":"lkaround_out","Pointup_in":"Pointup_in","lkup_out":"lkup_out","wave_out":"wave_out","lkaround_in":"lkaround_in","wave_loop":"wave_loop","wave_in":"wave_in","shout_01":"shout_01","lkup_point":"lkup_point","Pointup_loop":"Pointup_loop","panic_shout":"panic_shout","panic_hide":"panic_hide","panic_loop":"panic_loop","point_loop":"point_loop","shout_out":"shout_out","panic_point":"panic_point","lkup_loop":"lkup_loop"},"DAM_JUMP":{"DAM_Dive_Loop":"DAM_Dive_Loop","SF_JumpWall":"SF_JumpWall","DAM_Land":"DAM_Land","Jump_Roll":"Jump_Roll","DAM_Launch":"DAM_Launch"},"MUSCULAR":{"MuscleIdle_armed":"MuscleIdle_armed","MuscleIdle_Csaw":"MuscleIdle_Csaw","Mscle_run_Csaw":"Mscle_run_Csaw","Musclewalk_rocket":"Musclewalk_rocket","Mscle_rckt_walkst":"Mscle_rckt_walkst","MscleWalkst_Csaw":"MscleWalkst_Csaw","MuscleWalk_armed":"MuscleWalk_armed","MuscleRun_armed":"MuscleRun_armed","Musclewalk_Csaw":"Musclewalk_Csaw","Mscle_rckt_run":"Mscle_rckt_run","MuscleSprint":"MuscleSprint","MuscleWalk":"MuscleWalk","MuscleWalkstart":"MuscleWalkstart","MscleWalkst_armed":"MscleWalkst_armed","MuscleRun":"MuscleRun","MuscleIdle_rocket":"MuscleIdle_rocket","MuscleIdle":"MuscleIdle"},"RUSTLER":{"Plane_close":"Plane_close","Plane_align_LHS":"Plane_align_LHS","Plane_open":"Plane_open","Plane_getout":"Plane_getout","Plane_getin":"Plane_getin"},"TRUCK":{"TRUCK_pullout_RHS":"TRUCK_pullout_RHS","TRUCK_ALIGN_LHS":"TRUCK_ALIGN_LHS","TRUCK_closedoor_LHS":"TRUCK_closedoor_LHS","TRUCK_Shuffle":"TRUCK_Shuffle","TRUCK_ALIGN_RHS":"TRUCK_ALIGN_RHS","TRUCK_jackedLHS":"TRUCK_jackedLHS","TRUCK_getin_RHS":"TRUCK_getin_RHS","TRUCK_pullout_LHS":"TRUCK_pullout_LHS","TRUCK_open_LHS":"TRUCK_open_LHS","TRUCK_open_RHS":"TRUCK_open_RHS","TRUCK_close_LHS":"TRUCK_close_LHS","TRUCK_getout_RHS":"TRUCK_getout_RHS","TRUCK_jackedRHS":"TRUCK_jackedRHS","TRUCK_closedoor_RHS":"TRUCK_closedoor_RHS","TRUCK_getout_LHS":"TRUCK_getout_LHS","TRUCK_getin_LHS":"TRUCK_getin_LHS","TRUCK_close_RHS":"TRUCK_close_RHS"},"PARACHUTE":{"PARA_steerR":"PARA_steerR","PARA_steerL_O":"PARA_steerL_O","PARA_decel":"PARA_decel","FALL_skyDive_DIE":"FALL_skyDive_DIE","PARA_Rip_Loop_O":"PARA_Rip_Loop_O","PARA_float":"PARA_float","FALL_SkyDive_R":"FALL_SkyDive_R","PARA_open_O":"PARA_open_O","FALL_SkyDive_Accel":"FALL_SkyDive_Accel","PARA_Land_O":"PARA_Land_O","PARA_steerL":"PARA_steerL","PARA_decel_O":"PARA_decel_O","PARA_Land":"PARA_Land","FALL_SkyDive_L":"FALL_SkyDive_L","PARA_Land_Water_O":"PARA_Land_Water_O","PARA_Rip_O":"PARA_Rip_O","FALL_skyDive":"FALL_skyDive","PARA_open":"PARA_open","PARA_float_O":"PARA_float_O","PARA_Rip_Land_O":"PARA_Rip_Land_O","PARA_Land_Water":"PARA_Land_Water","PARA_steerR_O":"PARA_steerR_O"},"SHOP":{"SHP_Rob_React":"SHP_Rob_React","SHP_Duck_Aim":"SHP_Duck_Aim","SHP_Serve_Idle":"SHP_Serve_Idle","ROB_Loop":"ROB_Loop","SHP_Jump_Land":"SHP_Jump_Land","SHP_Serve_End":"SHP_Serve_End","SHP_Rob_GiveCash":"SHP_Rob_GiveCash","SHP_Rob_HandsUp":"SHP_Rob_HandsUp","SHP_Duck":"SHP_Duck","SHP_Gun_Duck":"SHP_Gun_Duck","SHP_Gun_Fire":"SHP_Gun_Fire","SHP_Gun_Grab":"SHP_Gun_Grab","SHP_HandsUp_Scr":"SHP_HandsUp_Scr","SHP_Serve_Start":"SHP_Serve_Start","SHP_Jump_Glide":"SHP_Jump_Glide","SHP_Gun_Threat":"SHP_Gun_Threat","ROB_StickUp_In":"ROB_StickUp_In","ROB_Shifty":"ROB_Shifty","SHP_Serve_Loop":"SHP_Serve_Loop","SHP_Duck_Fire":"SHP_Duck_Fire","SHP_Gun_Aim":"SHP_Gun_Aim","Smoke_RYD":"Smoke_RYD","SHP_Jump_Launch":"SHP_Jump_Launch","ROB_Loop_Threat":"ROB_Loop_Threat","ROB_2Idle":"ROB_2Idle"},"LAPDAN1":{"LAPDAN_P":"LAPDAN_P","LAPDAN_D":"LAPDAN_D"},"GRAFFITI":{"graffiti_Chkout":"graffiti_Chkout","spraycan_fire":"spraycan_fire"},"TANK":{"TANK_align_LHS":"TANK_align_LHS","TANK_close_LHS":"TANK_close_LHS","TANK_getin_LHS":"TANK_getin_LHS","TANK_open_LHS":"TANK_open_LHS","TANK_doorlocked":"TANK_doorlocked","TANK_getout_LHS":"TANK_getout_LHS"},"BIKEH":{"BIKEh_Still":"BIKEh_Still","BIKEh_Right":"BIKEh_Right","BIKEh_drivebyFT":"BIKEh_drivebyFT","BIKEh_jumponR":"BIKEh_jumponR","BIKEh_getoffBACK":"BIKEh_getoffBACK","BIKEh_jumponL":"BIKEh_jumponL","BIKEh_drivebyRHS":"BIKEh_drivebyRHS","BIKEh_getoffLHS":"BIKEh_getoffLHS","BIKEh_getoffRHS":"BIKEh_getoffRHS","BIKEh_Left":"BIKEh_Left","BIKEh_hit":"BIKEh_hit","BIKEh_Ride":"BIKEh_Ride","BIKEh_kick":"BIKEh_kick","BIKEh_Fwd":"BIKEh_Fwd","BIKEh_pushes":"BIKEh_pushes","BIKEh_Back":"BIKEh_Back","BIKEh_passenger":"BIKEh_passenger","BIKEh_drivebyLHS":"BIKEh_drivebyLHS"},"RYDER":{"RYD_Beckon_03":"RYD_Beckon_03","RYD_Beckon_01":"RYD_Beckon_01","Van_Stand_Crate":"Van_Stand_Crate","Van_Fall_L":"Van_Fall_L","Van_Lean_R":"Van_Lean_R","Van_Stand":"Van_Stand","VAN_PickUp_E":"VAN_PickUp_E","Van_Throw":"Van_Throw","Van_Fall_R":"Van_Fall_R","VAN_PickUp_S":"VAN_PickUp_S","Van_Crate_L":"Van_Crate_L","RYD_Beckon_02":"RYD_Beckon_02","RYD_Die_PT1":"RYD_Die_PT1","RYD_Die_PT2":"RYD_Die_PT2","Van_Crate_R":"Van_Crate_R","Van_Lean_L":"Van_Lean_L"},"ROCKET":{"WALK_start_rocket":"WALK_start_rocket","RocketFire":"RocketFire","run_rocket":"run_rocket","walk_rocket":"walk_rocket","idle_rocket":"idle_rocket"},"SWIM":{"Swim_Breast":"Swim_Breast","Swim_Glide":"Swim_Glide","Swim_jumpout":"Swim_jumpout","Swim_Dive_Under":"Swim_Dive_Under","Swim_Under":"Swim_Under","SWIM_crawl":"SWIM_crawl","Swim_Tread":"Swim_Tread"},"LAPDAN2":{"LAPDAN_P":"LAPDAN_P","LAPDAN_D":"LAPDAN_D"},"COACH":{"COACH_opnL":"COACH_opnL","COACH_outR":"COACH_outR","COACH_opnR":"COACH_opnR","COACH_outL":"COACH_outL","COACH_inL":"COACH_inL","COACH_inR":"COACH_inR"},"BENCHPRESS":{"gym_bp_up_B":"gym_bp_up_B","gym_bp_up_smooth":"gym_bp_up_smooth","gym_bp_up_A":"gym_bp_up_A","gym_bp_geton":"gym_bp_geton","gym_bp_celebrate":"gym_bp_celebrate","gym_bp_down":"gym_bp_down","gym_bp_getoff":"gym_bp_getoff"},"CRIB":{"PED_Console_Loop":"PED_Console_Loop","CRIB_Console_Loop":"CRIB_Console_Loop","PED_Console_Win":"PED_Console_Win","PED_Console_Loose":"PED_Console_Loose","CRIB_Use_Switch":"CRIB_Use_Switch"},"SKATE":{"skate_idle":"skate_idle","skate_run":"skate_run","skate_sprint":"skate_sprint"},"SWEET":{"sweet_hndshldr_01":"sweet_hndshldr_01","sweet_ass_slap":"sweet_ass_slap","Sweet_injuredloop":"Sweet_injuredloop","ho_ass_slapped":"ho_ass_slapped","LaFin_Player":"LaFin_Player","plyr_hndshldr_01":"plyr_hndshldr_01","LaFin_Sweet":"LaFin_Sweet"},"VENDING":{"VEND_Eat_P":"VEND_Eat_P","VEND_Drink_P":"VEND_Drink_P","VEND_Drink2_P":"VEND_Drink2_P","VEND_Use_pt2":"VEND_Use_pt2","VEND_Use":"VEND_Use","vend_eat1_P":"vend_eat1_P"},"RAPPING":{"RAP_A_OUT":"RAP_A_OUT","RAP_A_IN":"RAP_A_IN","RAP_A_Loop":"RAP_A_Loop","RAP_C_Loop":"RAP_C_Loop","Laugh_01":"Laugh_01","RAP_B_Loop":"RAP_B_Loop","RAP_B_OUT":"RAP_B_OUT","RAP_B_IN":"RAP_B_IN"},"BIKE_DBZ":{"Pass_Driveby_BWD":"Pass_Driveby_BWD","Pass_Driveby_LHS":"Pass_Driveby_LHS","Pass_Driveby_RHS":"Pass_Driveby_RHS","Pass_Driveby_FWD":"Pass_Driveby_FWD"},"DRIVEBYS":{"Gang_DrivebyLHS":"Gang_DrivebyLHS","Gang_DrivebyLHS_Fwd":"Gang_DrivebyLHS_Fwd","Gang_DrivebyTop_LHS":"Gang_DrivebyTop_LHS","Gang_DrivebyRHS_Bwd":"Gang_DrivebyRHS_Bwd","Gang_DrivebyLHS_Bwd":"Gang_DrivebyLHS_Bwd","Gang_DrivebyRHS":"Gang_DrivebyRHS","Gang_DrivebyRHS_Fwd":"Gang_DrivebyRHS_Fwd","Gang_DrivebyTop_RHS":"Gang_DrivebyTop_RHS"},"FINALE":{"FIN_Cop1_Stomp":"FIN_Cop1_Stomp","FIN_Hang_L":"FIN_Hang_L","FIN_Hang_R":"FIN_Hang_R","FIN_Cop1_Loop":"FIN_Cop1_Loop","FIN_LegsUp_L":"FIN_LegsUp_L","FIN_Land_Car":"FIN_Land_Car","FIN_LegsUp_R":"FIN_LegsUp_R","FIN_Let_Go":"FIN_Let_Go","FIN_Hang_Loop":"FIN_Hang_Loop","FIN_LegsUp_Loop":"FIN_LegsUp_Loop","FIN_Jump_On":"FIN_Jump_On","FIN_Cop1_ClimbOut2":"FIN_Cop1_ClimbOut2","FIN_Climb_In":"FIN_Climb_In","FIN_LegsUp":"FIN_LegsUp","FIN_Hang_Slip":"FIN_Hang_Slip","FIN_Land_Die":"FIN_Land_Die"},"FLAME":{"FLAME_fire":"FLAME_fire"},"POLICE":{"CopTraf_Left":"CopTraf_Left","CopTraf_Away":"CopTraf_Away","Door_Kick":"Door_Kick","crm_drgbst_01":"crm_drgbst_01","plc_drgbst_02":"plc_drgbst_02","plc_drgbst_01":"plc_drgbst_01","COP_getoutcar_LHS":"COP_getoutcar_LHS","CopTraf_Come":"CopTraf_Come","CopTraf_Stop":"CopTraf_Stop","Cop_move_FWD":"Cop_move_FWD"},"UZI":{"UZI_crouchfire":"UZI_crouchfire","UZI_reload":"UZI_reload","UZI_fire":"UZI_fire","UZI_fire_poor":"UZI_fire_poor","UZI_crouchreload":"UZI_crouchreload"},"WUZI":{"Wuzi_grnd_chk":"Wuzi_grnd_chk","CS_Plyr_pt1":"CS_Plyr_pt1","Wuzi_stand_loop":"Wuzi_stand_loop","CS_Plyr_pt2":"CS_Plyr_pt2","Wuzi_Greet_Plyr":"Wuzi_Greet_Plyr","CS_Wuzi_pt2":"CS_Wuzi_pt2","Wuzi_follow":"Wuzi_follow","Walkstart_Idle_01":"Walkstart_Idle_01","CS_Wuzi_pt1":"CS_Wuzi_pt1","Wuzi_Walk":"Wuzi_Walk","Wuzi_Greet_Wuzi":"Wuzi_Greet_Wuzi","CS_Dead_Guy":"CS_Dead_Guy"},"DANCING":{"dnce_M_e":"dnce_M_e","DAN_Down_A":"DAN_Down_A","dnce_M_b":"dnce_M_b","DAN_Right_A":"DAN_Right_A","dance_loop":"dance_loop","bd_clap1":"bd_clap1","dnce_M_a":"dnce_M_a","dnce_M_d":"dnce_M_d","DAN_Up_A":"DAN_Up_A","bd_clap":"bd_clap","DAN_Loop_A":"DAN_Loop_A","dnce_M_c":"dnce_M_c","DAN_Left_A":"DAN_Left_A"},"WAYFARER":{"WF_Fwd":"WF_Fwd","WF_Ride":"WF_Ride","WF_drivebyLHS":"WF_drivebyLHS","WF_hit":"WF_hit","WF_jumponR":"WF_jumponR","WF_Back":"WF_Back","WF_Left":"WF_Left","WF_drivebyFT":"WF_drivebyFT","WF_getoffBACK":"WF_getoffBACK","WF_Right":"WF_Right","WF_pushes":"WF_pushes","WF_Still":"WF_Still","WF_getoffRHS":"WF_getoffRHS","WF_kick":"WF_kick","WF_passenger":"WF_passenger","WF_getoffLHS":"WF_getoffLHS","WF_drivebyRHS":"WF_drivebyRHS","WF_jumponL":"WF_jumponL"},"TATTOOS":{"TAT_Back_In_T":"TAT_Back_In_T","TAT_Sit_Loop_P":"TAT_Sit_Loop_P","TAT_Che_In_P":"TAT_Che_In_P","TAT_ArmR_Pose_P":"TAT_ArmR_Pose_P","TAT_ArmL_Out_T":"TAT_ArmL_Out_T","TAT_Bel_In_T":"TAT_Bel_In_T","TAT_Sit_Loop_O":"TAT_Sit_Loop_O","TAT_Back_Pose_P":"TAT_Back_Pose_P","TAT_ArmR_Pose_O":"TAT_ArmR_Pose_O","TAT_ArmL_Pose_P":"TAT_ArmL_Pose_P","TAT_Che_Out_T":"TAT_Che_Out_T","TAT_Sit_In_P":"TAT_Sit_In_P","TAT_Che_Pose_O":"TAT_Che_Pose_O","TAT_ArmL_In_T":"TAT_ArmL_In_T","TAT_Bel_Out_T":"TAT_Bel_Out_T","TAT_ArmL_Pose_O":"TAT_ArmL_Pose_O","TAT_Sit_In_O":"TAT_Sit_In_O","TAT_Sit_Out_P":"TAT_Sit_Out_P","TAT_Drop_O":"TAT_Drop_O","TAT_Che_Pose_P":"TAT_Che_Pose_P","TAT_ArmR_In_P":"TAT_ArmR_In_P","TAT_Che_In_O":"TAT_Che_In_O","TAT_ArmR_Out_T":"TAT_ArmR_Out_T","TAT_Sit_Out_O":"TAT_Sit_Out_O","TAT_Che_Out_O":"TAT_Che_Out_O","TAT_ArmR_Pose_T":"TAT_ArmR_Pose_T","TAT_ArmL_Out_P":"TAT_ArmL_Out_P","TAT_Bel_In_O":"TAT_Bel_In_O","TAT_Che_Pose_T":"TAT_Che_Pose_T","TAT_Back_In_O":"TAT_Back_In_O","TAT_Back_In_P":"TAT_Back_In_P","TAT_ArmR_In_T":"TAT_ArmR_In_T","TAT_Sit_In_T":"TAT_Sit_In_T","TAT_ArmL_In_O":"TAT_ArmL_In_O","TAT_Che_Out_P":"TAT_Che_Out_P","TAT_Back_Sit_Loop_P":"TAT_Back_Sit_Loop_P","TAT_ArmR_Out_O":"TAT_ArmR_Out_O","TAT_ArmL_In_P":"TAT_ArmL_In_P","TAT_Sit_Loop_T":"TAT_Sit_Loop_T","TAT_Idle_Loop_T":"TAT_Idle_Loop_T","TAT_Che_In_T":"TAT_Che_In_T","TAT_Back_Sit_Out_P":"TAT_Back_Sit_Out_P","TAT_ArmR_Out_P":"TAT_ArmR_Out_P","TAT_Back_Sit_In_P":"TAT_Back_Sit_In_P","TAT_Bel_Out_O":"TAT_Bel_Out_O","TAT_Back_Out_T":"TAT_Back_Out_T","TAT_ArmR_In_O":"TAT_ArmR_In_O","TAT_Back_Pose_T":"TAT_Back_Pose_T","TAT_ArmL_Out_O":"TAT_ArmL_Out_O","TAT_ArmL_Pose_T":"TAT_ArmL_Pose_T","TAT_Bel_Pose_T":"TAT_Bel_Pose_T","TAT_Back_Pose_O":"TAT_Back_Pose_O","TAT_Bel_Pose_O":"TAT_Bel_Pose_O","TAT_Idle_Loop_O":"TAT_Idle_Loop_O","TAT_Back_Out_P":"TAT_Back_Out_P","TAT_Back_Out_O":"TAT_Back_Out_O","TAT_Sit_Out_T":"TAT_Sit_Out_T"},"FIGHT_D":{"FightD_1":"FightD_1","FightD_G":"FightD_G","HitD_3":"HitD_3","FightD_3":"FightD_3","HitD_1":"HitD_1","FightD_2":"FightD_2","FightD_IDLE":"FightD_IDLE","HitD_2":"HitD_2","FightD_block":"FightD_block","FightD_M":"FightD_M"},"CAR":{"Tap_hand":"Tap_hand","Fixn_Car_Loop":"Fixn_Car_Loop","Tyd2car_high":"Tyd2car_high","Fixn_Car_Out":"Fixn_Car_Out","Tyd2car_bump":"Tyd2car_bump","Tyd2car_low":"Tyd2car_low","Tyd2car_TurnR":"Tyd2car_TurnR","Tyd2car_med":"Tyd2car_med","flag_drop":"flag_drop","Sit_relaxed":"Sit_relaxed","Tyd2car_TurnL":"Tyd2car_TurnL"},"FREEWEIGHTS":{"gym_free_loop":"gym_free_loop","gym_free_up_smooth":"gym_free_up_smooth","gym_barbell":"gym_barbell","gym_free_putdown":"gym_free_putdown","gym_free_celebrate":"gym_free_celebrate","gym_free_down":"gym_free_down","gym_free_pickup":"gym_free_pickup","gym_free_B":"gym_free_B","gym_free_A":"gym_free_A"},"PAULNMAC":{"Piss_out":"Piss_out","PnM_Argue1_A":"PnM_Argue1_A","PnM_Argue1_B":"PnM_Argue1_B","wank_out":"wank_out","PnM_Argue2_B":"PnM_Argue2_B","Piss_in":"Piss_in","PnM_Loop_A":"PnM_Loop_A","wank_in":"wank_in","PnM_Loop_B":"PnM_Loop_B","PnM_Argue2_A":"PnM_Argue2_A","wank_loop":"wank_loop","Piss_loop":"Piss_loop"},"COLT45":{"colt45_fire":"colt45_fire","2guns_crouchfire":"2guns_crouchfire","colt45_fire_2hands":"colt45_fire_2hands","colt45_reload":"colt45_reload","colt45_crouchfire":"colt45_crouchfire","sawnoff_reload":"sawnoff_reload","colt45_crouchreload":"colt45_crouchreload"},"CRACK":{"Bbalbat_Idle_02":"Bbalbat_Idle_02","crckidle2":"crckidle2","Bbalbat_Idle_01":"Bbalbat_Idle_01","crckdeth3":"crckdeth3","crckidle3":"crckidle3","crckdeth1":"crckdeth1","crckdeth4":"crckdeth4","crckdeth2":"crckdeth2","crckidle4":"crckidle4","crckidle1":"crckidle1"},"BOMBER":{"BOM_Plant_2Idle":"BOM_Plant_2Idle","BOM_Plant":"BOM_Plant","BOM_Plant_Crouch_In":"BOM_Plant_Crouch_In","BOM_Plant_Crouch_Out":"BOM_Plant_Crouch_Out","BOM_Plant_Loop":"BOM_Plant_Loop","BOM_Plant_In":"BOM_Plant_In"},"LAPDAN3":{"LAPDAN_P":"LAPDAN_P","LAPDAN_D":"LAPDAN_D"},"VAN":{"VAN_getin_Back_RHS":"VAN_getin_Back_RHS","VAN_getout_back_RHS":"VAN_getout_back_RHS","VAN_open_back_LHS":"VAN_open_back_LHS","VAN_getout_back_LHS":"VAN_getout_back_LHS","VAN_getin_Back_LHS":"VAN_getin_Back_LHS","VAN_open_back_RHS":"VAN_open_back_RHS","VAN_close_back_RHS":"VAN_close_back_RHS","VAN_close_back_LHS":"VAN_close_back_LHS"},"RIOT":{"RIOT_shout":"RIOT_shout","RIOT_ANGRY_B":"RIOT_ANGRY_B","RIOT_PUNCHES":"RIOT_PUNCHES","RIOT_ANGRY":"RIOT_ANGRY","RIOT_FUKU":"RIOT_FUKU","RIOT_challenge":"RIOT_challenge","RIOT_CHANT":"RIOT_CHANT"},"CLOTHES":{"CLO_Pose_Hat":"CLO_Pose_Hat","CLO_Pose_Loop":"CLO_Pose_Loop","CLO_Pose_Shoes":"CLO_Pose_Shoes","CLO_Pose_In":"CLO_Pose_In","CLO_Pose_Legs":"CLO_Pose_Legs","CLO_Out":"CLO_Out","CLO_Pose_In_O":"CLO_Pose_In_O","CLO_In":"CLO_In","CLO_Pose_Torso":"CLO_Pose_Torso","CLO_Buy":"CLO_Buy","CLO_Pose_Watch":"CLO_Pose_Watch","CLO_Pose_Out":"CLO_Pose_Out","CLO_Pose_Out_O":"CLO_Pose_Out_O"},"MEDIC":{"CPR":"CPR"},"PLAYER_DVBYS":{"Plyr_DrivebyLHS":"Plyr_DrivebyLHS","Plyr_DrivebyFwd":"Plyr_DrivebyFwd","Plyr_DrivebyRHS":"Plyr_DrivebyRHS","Plyr_DrivebyBwd":"Plyr_DrivebyBwd"},"BIKEV":{"BIKEv_hit":"BIKEv_hit","BIKEv_Still":"BIKEv_Still","BIKEv_pushes":"BIKEv_pushes","BIKEv_jumponL":"BIKEv_jumponL","BIKEv_kick":"BIKEv_kick","BIKEv_getoffBACK":"BIKEv_getoffBACK","BIKEv_drivebyRHS":"BIKEv_drivebyRHS","BIKEv_Fwd":"BIKEv_Fwd","BIKEv_Ride":"BIKEv_Ride","BIKEv_passenger":"BIKEv_passenger","BIKEv_getoffLHS":"BIKEv_getoffLHS","BIKEv_jumponR":"BIKEv_jumponR","BIKEv_drivebyFT":"BIKEv_drivebyFT","BIKEv_drivebyLHS":"BIKEv_drivebyLHS","BIKEv_getoffRHS":"BIKEv_getoffRHS","BIKEv_Left":"BIKEv_Left","BIKEv_Right":"BIKEv_Right","BIKEv_Back":"BIKEv_Back"},"SCRATCHING":{"scdlulp":"scdlulp","sc_ltor":"sc_ltor","scdrulp":"scdrulp","scdrdlp":"scdrdlp","sclng_r":"sclng_r","sc_rtol":"sc_rtol","scmid_r":"scmid_r","scdldlp":"scdldlp","sclng_l":"sclng_l","scshrtr":"scshrtr","scshrtl":"scshrtl","scmid_l":"scmid_l"},"SNIPER":{"WEAPON_sniper":"WEAPON_sniper"},"MISC":{"bmx_idleloop_02":"bmx_idleloop_02","bng_wndw_02":"bng_wndw_02","PASS_Rifle_Ped":"PASS_Rifle_Ped","Scratchballs_01":"Scratchballs_01","Run_Dive":"Run_Dive","BMX_comeon":"BMX_comeon","PASS_Rifle_Ply":"PASS_Rifle_Ply","Idle_Chat_02":"Idle_Chat_02","bmx_talkleft_in":"bmx_talkleft_in","KAT_Throw_O":"KAT_Throw_O","bmx_talkright_in":"bmx_talkright_in","bmx_talkright_out":"bmx_talkright_out","Hiker_Pose":"Hiker_Pose","smlplane_door":"smlplane_door","smalplane_door":"smalplane_door","Seat_talk_02":"Seat_talk_02","KAT_Throw_P":"KAT_Throw_P","Seat_talk_01":"Seat_talk_01","Plunger_01":"Plunger_01","GRAB_L":"GRAB_L","plyr_shkhead":"plyr_shkhead","Case_pickup":"Case_pickup","Plyrlean_loop":"Plyrlean_loop","BMX_celebrate":"BMX_celebrate","Plane_door":"Plane_door","Plane_hijack":"Plane_hijack","pickup_box":"pickup_box","bitchslap":"bitchslap","SEAT_LR":"SEAT_LR","SEAT_watch":"SEAT_watch","PASS_Rifle_O":"PASS_Rifle_O","bmx_talkleft_loop":"bmx_talkleft_loop","GRAB_R":"GRAB_R","Plane_exit":"Plane_exit","bmx_talkright_loop":"bmx_talkright_loop","bmx_idleloop_01":"bmx_idleloop_01","bng_wndw":"bng_wndw","KAT_Throw_K":"KAT_Throw_K","bmx_talkleft_out":"bmx_talkleft_out","Hiker_Pose_L":"Hiker_Pose_L","door_jet":"door_jet"},"BIKELEAP":{"bk_blnce_out":"bk_blnce_out","bk_jmp":"bk_jmp","struggle_driver":"struggle_driver","truck_getin":"truck_getin","truck_driver":"truck_driver","bk_rdy_out":"bk_rdy_out","bk_rdy_in":"bk_rdy_in","bk_blnce_in":"bk_blnce_in","struggle_cesar":"struggle_cesar"},"SWAT":{"swt_vnt_sht_in":"swt_vnt_sht_in","JMP_Wall1m_180":"JMP_Wall1m_180","swt_wllpk_L":"swt_wllpk_L","gnstwall_injurd":"gnstwall_injurd","swt_sty":"swt_sty","swt_breach_03":"swt_breach_03","swt_vent_02":"swt_vent_02","swt_lkt":"swt_lkt","swt_wllshoot_in_R":"swt_wllshoot_in_R","Rail_fall_crawl":"Rail_fall_crawl","swt_vnt_sht_loop":"swt_vnt_sht_loop","swt_wllshoot_in_L":"swt_wllshoot_in_L","swt_wllshoot_out_L":"swt_wllshoot_out_L","Rail_fall":"Rail_fall","swt_breach_02":"swt_breach_02","swt_go":"swt_go","swt_vnt_sht_die":"swt_vnt_sht_die","swt_vent_01":"swt_vent_01","swt_wllpk_R":"swt_wllpk_R","swt_breach_01":"swt_breach_01","swt_wllpk_L_back":"swt_wllpk_L_back","swt_wllshoot_out_R":"swt_wllshoot_out_R","swt_wllpk_R_back":"swt_wllpk_R_back"},"BSKTBALL":{"BBALL_idle2_O":"BBALL_idle2_O","BBALL_Dnk_Lnch":"BBALL_Dnk_Lnch","BBALL_Dnk":"BBALL_Dnk","BBALL_Jump_End":"BBALL_Jump_End","BBALL_Dnk_Lnch_O":"BBALL_Dnk_Lnch_O","BBALL_pickup_O":"BBALL_pickup_O","BBALL_Jump_Cancel":"BBALL_Jump_Cancel","BBALL_Dnk_Gli":"BBALL_Dnk_Gli","BBALL_WalkStop_L_O":"BBALL_WalkStop_L_O","BBALL_Jump_Cancel_O":"BBALL_Jump_Cancel_O","BBALL_walk":"BBALL_walk","BBALL_Net_Dnk_O":"BBALL_Net_Dnk_O","BBALL_run_O":"BBALL_run_O","BBALL_SkidStop_R_O":"BBALL_SkidStop_R_O","BBALL_SkidStop_L":"BBALL_SkidStop_L","BBALL_SkidStop_R":"BBALL_SkidStop_R","BBALL_Jump_Shot_O":"BBALL_Jump_Shot_O","BBALL_idleloop_O":"BBALL_idleloop_O","BBALL_WalkStop_R_O":"BBALL_WalkStop_R_O","BBALL_react_miss":"BBALL_react_miss","BBALL_react_score":"BBALL_react_score","BBALL_SkidStop_L_O":"BBALL_SkidStop_L_O","BBALL_Dnk_Lnd":"BBALL_Dnk_Lnd","BBALL_idle":"BBALL_idle","BBALL_idle2":"BBALL_idle2","BBALL_Dnk_Gli_O":"BBALL_Dnk_Gli_O","BBALL_walk_O":"BBALL_walk_O","BBALL_def_loop":"BBALL_def_loop","BBALL_idle_O":"BBALL_idle_O","BBALL_idleloop":"BBALL_idleloop","BBALL_def_stepL":"BBALL_def_stepL","BBALL_Dnk_O":"BBALL_Dnk_O","BBALL_walk_start":"BBALL_walk_start","BBALL_def_stepR":"BBALL_def_stepR","BBALL_def_jump_shot":"BBALL_def_jump_shot","BBALL_Jump_Shot":"BBALL_Jump_Shot","BBALL_walk_start_O":"BBALL_walk_start_O","BBALL_run":"BBALL_run","BBALL_pickup":"BBALL_pickup","BBALL_WalkStop_R":"BBALL_WalkStop_R","BBALL_WalkStop_L":"BBALL_WalkStop_L"},"MTB":{"MTB_Left":"MTB_Left","MTB_sprint":"MTB_sprint","MTB_fwd":"MTB_fwd","MTB_bunnyhop":"MTB_bunnyhop","MTB_drivebyFT":"MTB_drivebyFT","MTB_driveby_RHS":"MTB_driveby_RHS","MTB_pedal":"MTB_pedal","MTB_driveby_LHS":"MTB_driveby_LHS","MTB_getoffRHS":"MTB_getoffRHS","MTB_getoffBACK":"MTB_getoffBACK","MTB_getoffLHS":"MTB_getoffLHS","MTB_Right":"MTB_Right","MTB_back":"MTB_back","MTB_jumponL":"MTB_jumponL","MTB_still":"MTB_still","MTB_pushes":"MTB_pushes","MTB_Ride":"MTB_Ride","MTB_jumponR":"MTB_jumponR"},"BEACH":{"ParkSit_W_loop":"ParkSit_W_loop","SitnWait_loop_W":"SitnWait_loop_W","Lay_Bac_Loop":"Lay_Bac_Loop","ParkSit_M_loop":"ParkSit_M_loop","bather":"bather"},"OTB":{"betslp_out":"betslp_out","wtchrace_win":"wtchrace_win","wtchrace_cmon":"wtchrace_cmon","wtchrace_in":"wtchrace_in","wtchrace_lose":"wtchrace_lose","betslp_tnk":"betslp_tnk","betslp_loop":"betslp_loop","betslp_in":"betslp_in","wtchrace_loop":"wtchrace_loop","betslp_lkabt":"betslp_lkabt","wtchrace_out":"wtchrace_out"},"CHAINSAW":{"CSAW_1":"CSAW_1","CSAW_G":"CSAW_G","IDLE_csaw":"IDLE_csaw","CSAW_Hit_2":"CSAW_Hit_2","CSAW_3":"CSAW_3","WEAPON_csaw":"WEAPON_csaw","csaw_part":"csaw_part","CSAW_2":"CSAW_2","WEAPON_csawlo":"WEAPON_csawlo","CSAW_Hit_3":"CSAW_Hit_3","CSAW_Hit_1":"CSAW_Hit_1"},"SMOKING":{"M_smk_out":"M_smk_out","M_smk_in":"M_smk_in","M_smklean_loop":"M_smklean_loop","M_smk_drag":"M_smk_drag","F_smklean_loop":"F_smklean_loop","M_smk_tap":"M_smk_tap","M_smk_loop":"M_smk_loop","M_smkstnd_loop":"M_smkstnd_loop"},"QUAD":{"QUAD_getoff_B":"QUAD_getoff_B","QUAD_geton_LHS":"QUAD_geton_LHS","QUAD_getoff_RHS":"QUAD_getoff_RHS","QUAD_Right":"QUAD_Right","QUAD_kick":"QUAD_kick","QUAD_reverse":"QUAD_reverse","QUAD_getoff_LHS":"QUAD_getoff_LHS","QUAD_ride":"QUAD_ride","QUAD_FWD":"QUAD_FWD","QUAD_Left":"QUAD_Left","QUAD_driveby_FT":"QUAD_driveby_FT","QUAD_passenger":"QUAD_passenger","QUAD_back":"QUAD_back","QUAD_geton_RHS":"QUAD_geton_RHS","QUAD_driveby_LHS":"QUAD_driveby_LHS","QUAD_hit":"QUAD_hit","QUAD_driveby_RHS":"QUAD_driveby_RHS"},"FINALE2":{"FIN_Cop1_Shot":"FIN_Cop1_Shot","FIN_Cop1_ClimbOut":"FIN_Cop1_ClimbOut","FIN_Switch_P":"FIN_Switch_P","FIN_Cop1_Loop":"FIN_Cop1_Loop","FIN_Cop1_Fall":"FIN_Cop1_Fall","FIN_Cop1_Swing":"FIN_Cop1_Swing","FIN_Cop2_ClimbOut":"FIN_Cop2_ClimbOut","FIN_Switch_S":"FIN_Switch_S"},"GRENADE":{"WEAPON_start_throw":"WEAPON_start_throw","WEAPON_throw":"WEAPON_throw","WEAPON_throwu":"WEAPON_throwu"},"BUS":{"BUS_open_RHS":"BUS_open_RHS","BUS_pullout_LHS":"BUS_pullout_LHS","BUS_getin_LHS":"BUS_getin_LHS","BUS_getout_LHS":"BUS_getout_LHS","BUS_getin_RHS":"BUS_getin_RHS","BUS_close":"BUS_close","BUS_getout_RHS":"BUS_getout_RHS","BUS_jacked_LHS":"BUS_jacked_LHS","BUS_open":"BUS_open"},"FIGHT_B":{"FightB_M":"FightB_M","FightB_2":"FightB_2","FightB_block":"FightB_block","HitB_1":"HitB_1","FightB_1":"FightB_1","FightB_IDLE":"FightB_IDLE","FightB_G":"FightB_G","HitB_3":"HitB_3","FightB_3":"FightB_3","HitB_2":"HitB_2"},"GHETTO_DB":{"GDB_Car2_PLY":"GDB_Car2_PLY","GDB_Car_SMO":"GDB_Car_SMO","GDB_Car_SWE":"GDB_Car_SWE","GDB_Car_PLY":"GDB_Car_PLY","GDB_Car2_SMO":"GDB_Car2_SMO","GDB_Car_RYD":"GDB_Car_RYD","GDB_Car2_SWE":"GDB_Car2_SWE"},"DODGE":{"Crush_Jump":"Crush_Jump","Cover_Dive_02":"Cover_Dive_02","Cover_Dive_01":"Cover_Dive_01","Crushed":"Crushed"},"PED":{"DOOR_RHinge_O":"DOOR_RHinge_O","WOMAN_walkshop":"WOMAN_walkshop","CAR_alignHI_LHS":"CAR_alignHI_LHS","endchat_01":"endchat_01","run_fatold":"run_fatold","IDLE_HBHB":"IDLE_HBHB","Sprint_Wuzi":"Sprint_Wuzi","run_gang1":"run_gang1","IDLE_tired":"IDLE_tired","CLIMB_Stand":"CLIMB_Stand","CAR_pulloutL_RHS":"CAR_pulloutL_RHS","flee_lkaround_01":"flee_lkaround_01","Fight2Idle":"Fight2Idle","CAR_getoutL_RHS":"CAR_getoutL_RHS","factalk":"factalk","GunMove_FWD":"GunMove_FWD","HIT_L":"HIT_L","Tap_handP":"Tap_handP","CAR_open_LHS":"CAR_open_LHS","DAM_armR_frmRT":"DAM_armR_frmRT","WOMAN_walkold":"WOMAN_walkold","BIKE_pullupR":"BIKE_pullupR","CAR_fallout_RHS":"CAR_fallout_RHS","Drown":"Drown","Drive_L_weak":"Drive_L_weak","FALL_collapse":"FALL_collapse","DRIVE_BOAT_L":"DRIVE_BOAT_L","CLIMB_jump2fall":"CLIMB_jump2fall","CAR_alignHI_RHS":"CAR_alignHI_RHS","BIKE_fall_off":"BIKE_fall_off","CAR_tune_radio":"CAR_tune_radio","CAR_rolldoorLO":"CAR_rolldoorLO","KO_skid_front":"KO_skid_front","woman_run":"woman_run","pass_Smoke_in_car":"pass_Smoke_in_car","EV_dive":"EV_dive","WALK_player":"WALK_player","WOMAN_runbusy":"WOMAN_runbusy","CAR_pullout_RHS":"CAR_pullout_RHS","CAR_jumpin_LHS":"CAR_jumpin_LHS","CAR_Qjacked":"CAR_Qjacked","endchat_03":"endchat_03","CAR_LB_weak":"CAR_LB_weak","DAM_armL_frmFT":"DAM_armL_frmFT","CAR_dead_LHS":"CAR_dead_LHS","Drive_L_pro_slow":"Drive_L_pro_slow","JUMP_launch_R":"JUMP_launch_R","CAR_getin_RHS":"CAR_getin_RHS","CAR_closedoorL_RHS":"CAR_closedoorL_RHS","IDLE_taxi":"IDLE_taxi","CLIMB_jump":"CLIMB_jump","DRIVE_truck_R":"DRIVE_truck_R","phone_in":"phone_in","swat_run":"swat_run","HitA_1":"HitA_1","DRIVE_BOAT_back":"DRIVE_BOAT_back","WOMAN_walkpro":"WOMAN_walkpro","phone_talk":"phone_talk","run_right":"run_right","KO_skid_back":"KO_skid_back","CAR_rollout_RHS":"CAR_rollout_RHS","KO_shot_stom":"KO_shot_stom","WOMAN_walksexy":"WOMAN_walksexy","SHOT_partial":"SHOT_partial","DAM_stomach_frmBK":"DAM_stomach_frmBK","WALK_start_armed":"WALK_start_armed","Driveby_L":"Driveby_L","phone_out":"phone_out","WALK_gang2":"WALK_gang2","Drive_L_weak_slow":"Drive_L_weak_slow","CAR_close_LHS":"CAR_close_LHS","CAR_rolldoor":"CAR_rolldoor","run_old":"run_old","WALK_start_rocket":"WALK_start_rocket","Drive_R_weak":"Drive_R_weak","CAR_pullout_LHS":"CAR_pullout_LHS","CAR_align_LHS":"CAR_align_LHS","FightA_2":"FightA_2","DRIVE_BOAT_R":"DRIVE_BOAT_R","HIT_wall":"HIT_wall","CAR_doorlocked_RHS":"CAR_doorlocked_RHS","WALK_start":"WALK_start","DAM_LegL_frmLT":"DAM_LegL_frmLT","FightA_block":"FightA_block","gas_cwr":"gas_cwr","DAM_stomach_frmRT":"DAM_stomach_frmRT","DAM_LegL_frmBK":"DAM_LegL_frmBK","GunCrouchBwd":"GunCrouchBwd","CAR_getinL_RHS":"CAR_getinL_RHS","Run_stopR":"Run_stopR","WALK_drunk":"WALK_drunk","WALK_rocket":"WALK_rocket","BIKE_elbowL":"BIKE_elbowL","CAR_getinL_LHS":"CAR_getinL_LHS","FALL_skyDive":"FALL_skyDive","Idle_Gang1":"Idle_Gang1","Turn_R":"Turn_R","FALL_front":"FALL_front","ARRESTgun":"ARRESTgun","GunMove_R":"GunMove_R","JUMP_land":"JUMP_land","CAR_close_RHS":"CAR_close_RHS","Drive_LO_R":"Drive_LO_R","CAR_pulloutL_LHS":"CAR_pulloutL_LHS","Gun_2_IDLE":"Gun_2_IDLE","facsurpm":"facsurpm","facsurp":"facsurp","Drive_LO_l":"Drive_LO_l","ATM":"ATM","JUMP_launch":"JUMP_launch","Shove_Partial":"Shove_Partial","run_fat":"run_fat","facanger":"facanger","FightSh_FWD":"FightSh_FWD","DAM_LegR_frmBK":"DAM_LegR_frmBK","KO_spin_R":"KO_spin_R","run_1armed":"run_1armed","CAR_Lshuffle_RHS":"CAR_Lshuffle_RHS","DAM_stomach_frmLT":"DAM_stomach_frmLT","turn_180":"turn_180","BIKE_pullupL":"BIKE_pullupL","Turn_L":"Turn_L","FALL_land":"FALL_land","Smoke_in_car":"Smoke_in_car","WALK_shuffle":"WALK_shuffle","KD_left":"KD_left","BIKE_pickupR":"BIKE_pickupR","HIT_behind":"HIT_behind","DAM_armL_frmLT":"DAM_armL_frmLT","Drive_L":"Drive_L","run_csaw":"run_csaw","run_armed":"run_armed","Swim_Tread":"Swim_Tread","XPRESSscratch":"XPRESSscratch","Player_Sneak_walkstart":"Player_Sneak_walkstart","bomber":"bomber","gum_eat":"gum_eat","GUN_BUTT_crouch":"GUN_BUTT_crouch","WOMAN_walkfatold":"WOMAN_walkfatold","JUMP_glide":"JUMP_glide","KART_R":"KART_R","DrivebyL_R":"DrivebyL_R","run_left":"run_left","HIT_front":"HIT_front","getup":"getup","CAR_crawloutRHS":"CAR_crawloutRHS","SHOT_partial_B":"SHOT_partial_B","KO_shot_face":"KO_shot_face","Drive_R_pro":"Drive_R_pro","Drive_L_slow":"Drive_L_slow","idlestance_old":"idlestance_old","EV_step":"EV_step","CLIMB_Pull":"CLIMB_Pull","run_rocket":"run_rocket","CAR_sit_weak":"CAR_sit_weak","Run_Wuzi":"Run_Wuzi","DUCK_cower":"DUCK_cower","endchat_02":"endchat_02","woman_runpanic":"woman_runpanic","CAR_rollout_LHS":"CAR_rollout_LHS","CAR_open_RHS":"CAR_open_RHS","roadcross_old":"roadcross_old","run_civi":"run_civi","FightSh_BWD":"FightSh_BWD","HIT_walk":"HIT_walk","CAR_getoutL_LHS":"CAR_getoutL_LHS","Tap_hand":"Tap_hand","getup_front":"getup_front","GunMove_L":"GunMove_L","IDLE_chat":"IDLE_chat","HIT_back":"HIT_back","CAR_getout_RHS":"CAR_getout_RHS","WALK_fat":"WALK_fat","FLOOR_hit_f":"FLOOR_hit_f","run_player":"run_player","CAR_jackedLHS":"CAR_jackedLHS","HitA_2":"HitA_2","Jetpack_Idle":"Jetpack_Idle","CAR_getout_LHS":"CAR_getout_LHS","WEAPON_crouch":"WEAPON_crouch","Drive_R_weak_slow":"Drive_R_weak_slow","Driveby_R":"Driveby_R","FightShF":"FightShF","IDLE_armed":"IDLE_armed","FLOOR_hit":"FLOOR_hit","fucku":"fucku","Player_Sneak":"Player_Sneak","DAM_armR_frmBK":"DAM_armR_frmBK","Drive_R_slow":"Drive_R_slow","HIT_R":"HIT_R","WALK_old":"WALK_old","SHOT_rightP":"SHOT_rightP","CAR_align_RHS":"CAR_align_RHS","roadcross":"roadcross","gang_gunstand":"gang_gunstand","CAR_fallout_LHS":"CAR_fallout_LHS","SEAT_up":"SEAT_up","FightA_1":"FightA_1","roadcross_gang":"roadcross_gang","CAR_sitpLO":"CAR_sitpLO","JOG_femaleA":"JOG_femaleA","IDLE_ROCKET":"IDLE_ROCKET","JOG_maleA":"JOG_maleA","WOMAN_walknorm":"WOMAN_walknorm","BIKE_fallR":"BIKE_fallR","DAM_stomach_frmFT":"DAM_stomach_frmFT","DAM_LegR_frmFT":"DAM_LegR_frmFT","CAR_sit_pro":"CAR_sit_pro","DAM_LegR_frmRT":"DAM_LegR_frmRT","WALK_civi":"WALK_civi","KO_spin_L":"KO_spin_L","FightA_M":"FightA_M","Crouch_Roll_R":"Crouch_Roll_R","KART_drive":"KART_drive","CAR_doorlocked_LHS":"CAR_doorlocked_LHS","DRIVE_BOAT":"DRIVE_BOAT","woman_idlestance":"woman_idlestance","FightA_3":"FightA_3","sprint_panic":"sprint_panic","handsup":"handsup","CAR_dead_RHS":"CAR_dead_RHS","facurios":"facurios","WALK_gang1":"WALK_gang1","DRIVE_truck_L":"DRIVE_truck_L","facgum":"facgum","CAR_sitp":"CAR_sitp","Drive_R_pro_slow":"Drive_R_pro_slow","WALK_armed":"WALK_armed","KD_right":"KD_right","FALL_back":"FALL_back","Drive_R":"Drive_R","DRIVE_truck_back":"DRIVE_truck_back","FIGHTIDLE":"FIGHTIDLE","car_hookertalk":"car_hookertalk","Gun_stand":"Gun_stand","DrivebyL_L":"DrivebyL_L","Walk_Wuzi":"Walk_Wuzi","Drive_truck":"Drive_truck","FALL_fall":"FALL_fall","CAR_shuffle_RHS":"CAR_shuffle_RHS","HIT_GUN_BUTT":"HIT_GUN_BUTT","FightSh_Right":"FightSh_Right","GunCrouchFwd":"GunCrouchFwd","CLIMB_Stand_finish":"CLIMB_Stand_finish","CAR_closedoor_LHS":"CAR_closedoor_LHS","cower":"cower","Walk_DoorPartial":"Walk_DoorPartial","WOMAN_runfatold":"WOMAN_runfatold","DAM_armL_frmBK":"DAM_armL_frmBK","IDLE_csaw":"IDLE_csaw","FightShB":"FightShB","CAR_LB_pro":"CAR_LB_pro","abseil":"abseil","IDLE_stance":"IDLE_stance","CAR_getin_LHS":"CAR_getin_LHS","GUN_BUTT":"GUN_BUTT","WALK_csaw":"WALK_csaw","SHOT_leftP":"SHOT_leftP","CAR_jackedRHS":"CAR_jackedRHS","CLIMB_jump_B":"CLIMB_jump_B","SEAT_down":"SEAT_down","CAR_closedoorL_LHS":"CAR_closedoorL_LHS","SEAT_idle":"SEAT_idle","KO_shot_front":"KO_shot_front","handscower":"handscower","CAR_LjackedRHS":"CAR_LjackedRHS","WALK_fatold":"WALK_fatold","KART_L":"KART_L","Drive_L_pro":"Drive_L_pro","DAM_armR_frmFT":"DAM_armR_frmFT","FALL_glide":"FALL_glide","Crouch_Roll_L":"Crouch_Roll_L","CAR_LB":"CAR_LB","WOMAN_walkbusy":"WOMAN_walkbusy","GunMove_BWD":"GunMove_BWD","WOMAN_runsexy":"WOMAN_runsexy","sprint_civi":"sprint_civi","HitA_3":"HitA_3","CLIMB_idle":"CLIMB_idle","FightSh_Left":"FightSh_Left","DAM_LegL_frmFT":"DAM_LegL_frmFT","WALK_start_csaw":"WALK_start_csaw","FightA_G":"FightA_G","BIKE_elbowR":"BIKE_elbowR","CAR_sit":"CAR_sit","KART_LB":"KART_LB","Idlestance_fat":"Idlestance_fat","BIKE_pickupL":"BIKE_pickupL","CAR_LjackedLHS":"CAR_LjackedLHS","CAR_Lsit":"CAR_Lsit","DOOR_LHinge_O":"DOOR_LHinge_O","roadcross_female":"roadcross_female","Run_stop":"Run_stop","CAR_closedoor_RHS":"CAR_closedoor_RHS"},"Flowers":{"Flower_attack":"Flower_attack","Flower_attack_M":"Flower_attack_M","Flower_Hit":"Flower_Hit"},"FOOD":{"FF_Die_Left":"FF_Die_Left","FF_Dam_Right":"FF_Dam_Right","FF_Sit_In_R":"FF_Sit_In_R","FF_Sit_Loop":"FF_Sit_Loop","FF_Die_Fwd":"FF_Die_Fwd","SHP_Tray_Lift_Loop":"SHP_Tray_Lift_Loop","EAT_Vomit_P":"EAT_Vomit_P","EAT_Pizza":"EAT_Pizza","FF_Sit_Eat3":"FF_Sit_Eat3","EAT_Chicken":"EAT_Chicken","FF_Sit_Eat2":"FF_Sit_Eat2","SHP_Thank":"SHP_Thank","FF_Dam_Bkw":"FF_Dam_Bkw","FF_Sit_Out_L_180":"FF_Sit_Out_L_180","FF_Sit_Eat1":"FF_Sit_Eat1","SHP_Tray_Out":"SHP_Tray_Out","FF_Die_Right":"FF_Die_Right","FF_Dam_Fwd":"FF_Dam_Fwd","EAT_Vomit_SK":"EAT_Vomit_SK","SHP_Tray_Lift_Out":"SHP_Tray_Lift_Out","SHP_Tray_Lift":"SHP_Tray_Lift","EAT_Burger":"EAT_Burger","SHP_Tray_Pose":"SHP_Tray_Pose","SHP_Tray_In":"SHP_Tray_In","SHP_Tray_Lift_In":"SHP_Tray_Lift_In","FF_Die_Bkw":"FF_Die_Bkw","FF_Sit_In":"FF_Sit_In","FF_Sit_Out_180":"FF_Sit_Out_180","SHP_Tray_Return":"SHP_Tray_Return","FF_Sit_In_L":"FF_Sit_In_L","FF_Sit_Out_R_180":"FF_Sit_Out_R_180","FF_Sit_Look":"FF_Sit_Look","FF_Dam_Left":"FF_Dam_Left"},"NEVADA":{"NEVADA_getin":"NEVADA_getin","NEVADA_getout":"NEVADA_getout"},"PARK":{"Tai_Chi_Loop":"Tai_Chi_Loop","Tai_Chi_Out":"Tai_Chi_Out","Tai_Chi_in":"Tai_Chi_in"},"INT_OFFICE":{"OFF_Sit_Drink":"OFF_Sit_Drink","OFF_Sit_In":"OFF_Sit_In","OFF_Sit_Crash":"OFF_Sit_Crash","OFF_Sit_Read":"OFF_Sit_Read","OFF_Sit_2Idle_180":"OFF_Sit_2Idle_180","FF_Dam_Fwd":"FF_Dam_Fwd","OFF_Sit_Watch":"OFF_Sit_Watch","OFF_Sit_Idle_Loop":"OFF_Sit_Idle_Loop","OFF_Sit_Type_Loop":"OFF_Sit_Type_Loop","OFF_Sit_Bored_Loop":"OFF_Sit_Bored_Loop"},"GOGGLES":{"goggles_put_on":"goggles_put_on"},"FIGHT_E":{"Hit_fightkick_B":"Hit_fightkick_B","Hit_fightkick":"Hit_fightkick","FightKick":"FightKick","FightKick_B":"FightKick_B"},"INT_HOUSE":{"BED_Out_L":"BED_Out_L","BED_Loop_R":"BED_Loop_R","BED_Out_R":"BED_Out_R","wash_up":"wash_up","LOU_Out":"LOU_Out","BED_Loop_L":"BED_Loop_L","BED_In_L":"BED_In_L","LOU_In":"LOU_In","LOU_Loop":"LOU_Loop","BED_In_R":"BED_In_R"},"BAR":{"dnk_stndF_loop":"dnk_stndF_loop","Barserve_bottle":"Barserve_bottle","Barserve_order":"Barserve_order","dnk_stndM_loop":"dnk_stndM_loop","Barcustom_order":"Barcustom_order","Barserve_glass":"Barserve_glass","Barserve_give":"Barserve_give","Barserve_loop":"Barserve_loop","BARman_idle":"BARman_idle","Barcustom_get":"Barcustom_get","Barserve_in":"Barserve_in","Barcustom_loop":"Barcustom_loop"},"BASEBALL":{"Bat_block":"Bat_block","Bat_1":"Bat_1","BAT_PART":"BAT_PART","Bat_M":"Bat_M","Bat_3":"Bat_3","Bat_Hit_3":"Bat_Hit_3","Bat_IDLE":"Bat_IDLE","Bat_4":"Bat_4","Bat_Hit_1":"Bat_Hit_1","Bat_2":"Bat_2","Bat_Hit_2":"Bat_Hit_2"},"SHOTGUN":{"shotgun_fire":"shotgun_fire","shotgun_crouchfire":"shotgun_crouchfire","shotgun_fire_poor":"shotgun_fire_poor"},"RIFLE":{"RIFLE_crouchload":"RIFLE_crouchload","RIFLE_crouchfire":"RIFLE_crouchfire","RIFLE_load":"RIFLE_load","RIFLE_fire":"RIFLE_fire","RIFLE_fire_poor":"RIFLE_fire_poor"},"SILENCED":{"Silence_reload":"Silence_reload","SilenceCrouchfire":"SilenceCrouchfire","Silence_fire":"Silence_fire","CrouchReload":"CrouchReload"},"ATTRACTORS":{"Stepsit_loop":"Stepsit_loop","Stepsit_out":"Stepsit_out","Stepsit_in":"Stepsit_in"},"SHAMAL":{"SHAMAL_align":"SHAMAL_align","SHAMAL_getin_LHS":"SHAMAL_getin_LHS","SHAMAL_getout_LHS":"SHAMAL_getout_LHS","SHAMAL_open":"SHAMAL_open"},"JST_BUISNESS":{"girl_02":"girl_02","smoke_01":"smoke_01","girl_01":"girl_01","player_01":"player_01"},"BIKED":{"BIKEd_Back":"BIKEd_Back","BIKEd_Right":"BIKEd_Right","BIKEd_kick":"BIKEd_kick","BIKEd_Ride":"BIKEd_Ride","BIKEd_passenger":"BIKEd_passenger","BIKEd_getoffLHS":"BIKEd_getoffLHS","BIKEd_drivebyRHS":"BIKEd_drivebyRHS","BIKEd_Fwd":"BIKEd_Fwd","BIKEd_getoffRHS":"BIKEd_getoffRHS","BIKEd_jumponR":"BIKEd_jumponR","BIKEd_jumponL":"BIKEd_jumponL","BIKEd_Left":"BIKEd_Left","BIKEd_pushes":"BIKEd_pushes","BIKEd_Still":"BIKEd_Still","BIKEd_hit":"BIKEd_hit","BIKEd_shuffle":"BIKEd_shuffle","BIKEd_drivebyFT":"BIKEd_drivebyFT","BIKEd_getoffBACK":"BIKEd_getoffBACK","BIKEd_drivebyLHS":"BIKEd_drivebyLHS"},"POOL":{"POOL_Walk":"POOL_Walk","POOL_Long_Shot_O":"POOL_Long_Shot_O","POOL_Short_Shot_O":"POOL_Short_Shot_O","POOL_XLong_Start_O":"POOL_XLong_Start_O","POOL_Long_Start":"POOL_Long_Start","POOL_XLong_Shot":"POOL_XLong_Shot","POOL_Long_Start_O":"POOL_Long_Start_O","POOL_Idle_Stance":"POOL_Idle_Stance","POOL_Short_Start":"POOL_Short_Start","POOL_Med_Start":"POOL_Med_Start","POOL_Long_Shot":"POOL_Long_Shot","POOL_XLong_Start":"POOL_XLong_Start","POOL_Place_White":"POOL_Place_White","POOL_Walk_Start":"POOL_Walk_Start","POOL_Med_Start_O":"POOL_Med_Start_O","POOL_Med_Shot":"POOL_Med_Shot","POOL_XLong_Shot_O":"POOL_XLong_Shot_O","POOL_Short_Start_O":"POOL_Short_Start_O","POOL_Med_Shot_O":"POOL_Med_Shot_O","POOL_Short_Shot":"POOL_Short_Shot","POOL_ChalkCue":"POOL_ChalkCue"},"SPRAYCAN":{"spraycan_fire":"spraycan_fire","spraycan_full":"spraycan_full"},"KART":{"KART_getout_RHS":"KART_getout_RHS","KART_getin_RHS":"KART_getin_RHS","KART_getin_LHS":"KART_getin_LHS","KART_getout_LHS":"KART_getout_LHS"},"COP_AMBIENT":{"Coplook_in":"Coplook_in","Coplook_watch":"Coplook_watch","Copbrowse_shake":"Copbrowse_shake","Coplook_nod":"Coplook_nod","Copbrowse_nod":"Copbrowse_nod","Coplook_think":"Coplook_think","Coplook_shake":"Coplook_shake","Coplook_out":"Coplook_out","Coplook_loop":"Coplook_loop","Copbrowse_out":"Copbrowse_out","Copbrowse_loop":"Copbrowse_loop","Copbrowse_in":"Copbrowse_in"}} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/cheat name.json b/moonloader/lib/cheat-menu/json/cheat name.json deleted file mode 100644 index 452d890..0000000 --- a/moonloader/lib/cheat-menu/json/cheat name.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "0" : ["Weapon Set 1", "false" ], - "1" : ["Weapon Set 2", "false" ], - "2" : ["Weapon Set 3", "false" ], - "3" : ["Health Armor 250k", "false" ], - "4" : ["Wanted Level 2 Stars", "false" ], - "5" : ["Clear Wanted Level", "false" ], - "6" : ["Sunny Weather", "false" ], - "7" : ["Very Sunny Weather", "false" ], - "8" : ["Overcast Weather", "false" ], - "9" : ["Rainy Weather", "false" ], - "10" : ["Foggy Weather", "false" ], - "11" : ["Faster Clock", "true" ], - "12" : ["Faster Gameplay", "false" ], - "13" : ["Slower Gameplay", "false" ], - "14" : ["Peds Attack Other With Golfclub", "true" ], - "15" : ["Have A Bounty On Your Head", "false" ], - "16" : ["Everyone Armed", "true" ], - "17" : ["Spawn Rhino", "false" ], - "18" : ["Spawn Bloodring Banger", "false" ], - "19" : ["Spawn Rancher", "false" ], - "20" : ["Spawn HotringA", "false" ], - "21" : ["Spawn HotringB", "false" ], - "22" : ["Spawn Romero", "false" ], - "23" : ["Spawn Stretch", "false" ], - "24" : ["Spawn Trashmaster", "false" ], - "25" : ["Spawn Caddy", "false" ], - "26" : ["Blow Up All Cars", "false" ], - "27" : ["Invisible Car", "true" ], - "28" : ["Perfect Handling", "true" ], - "29" : ["Suicide", "false" ], - "30" : ["Green Lights Cheat", "true" ], - "31" : ["Aggressive Drivers", "true" ], - "32" : ["Pink Traffic", "false" ], - "33" : ["Black Traffic", "false" ], - "34" : ["Cars On Water", "true" ], - "35" : ["Boats Fly", "true" ], - "36" : ["Fat Player", "false" ], - "37" : ["Max Muscle", "false" ], - "38" : ["Skinny Player", "false" ], - "39" : ["Elvis Is Everywhere", "true" ], - "40" : ["Peds Attack You With Rockets", "true" ], - "41" : ["Beach Party", "false" ], - "42" : ["Gang Members Everywhere", "true" ], - "43" : ["Gangs Controls The Streets", "true" ], - "44" : ["Ninja Theme", "false" ], - "45" : ["Slut Magnet", "true" ], - "46" : ["Cheap Traffic", "false" ], - "47" : ["Fast Traffic", "false" ], - "48" : ["Cars Fly", "true" ], - "49" : ["Huge Bunny Hop", "true" ], - "50" : ["Spawn Hydra", "false" ], - "51" : ["Spawn Vortex", "false" ], - "52" : ["Smash N Boom", "false" ], - "53" : ["All Cars Have Nitro", "true" ], - "54" : ["Cars Float Away When Hit", "true" ], - "55" : ["Always Midnight", "true" ], - "56" : ["Stop Game Clock Orange Sky", "true" ], - "57" : ["Thunder Storm", "false" ], - "58" : ["Sand Storm", "false" ], - "59" : ["Unused", "false" ], - "60" : ["Mega Jump", "true" ], - "61" : ["Infinite Health", "true" ], - "62" : ["Infinite Oxygen", "true" ], - "63" : ["Get Parachute", "false" ], - "64" : ["Get Jetpack", "false" ], - "65" : ["I Do As I Please", "false" ], - "66" : ["Six Wanted Stars", "false" ], - "67" : ["Mega Punch", "true" ], - "68" : ["Never Get Hungry", "true" ], - "69" : ["Riot Mode", "true" ], - "70" : ["Funhouse Theme", "false" ], - "71" : ["Adrenaline Mode", "true" ], - "72" : ["Infinite Ammo", "false" ], - "73" : ["Weapon Aiming While Driving", "true" ], - "74" : ["Reduced Traffic", "true" ], - "75" : ["Country Traffic", "true" ], - "76" : ["Wanna Be In My Gang", "true" ], - "77" : ["No One Can Stop Us", "true" ], - "78" : ["Rocket Mayhem", "true" ], - "79" : ["Max Respect", "false" ], - "80" : ["Max Sex Appeal", "false" ], - "81" : ["Max Stamina", "false" ], - "82" : ["Hitman Level For All Weapons", "false" ], - "83" : ["Max Driving Skills", "false" ], - "84" : ["Spawn Hunter", "false" ], - "85" : ["Spawn Quad", "false" ], - "86" : ["Spawn Tanker Truck", "false" ], - "87" : ["Spawn Dozer", "false" ], - "88" : ["Spawn Stunt Plane", "false" ], - "89" : ["Spawn Monster", "false" ], - "90" : ["Prostitutes Pay You", "true" ], - "91" : ["All Taxis Nitro","true" ] -} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/coordinate.json b/moonloader/lib/cheat-menu/json/coordinate.json deleted file mode 100644 index 2135173..0000000 --- a/moonloader/lib/cheat-menu/json/coordinate.json +++ /dev/null @@ -1 +0,0 @@ -{"Map":{"Angel Pine : Vice City Maps":"0, -2177.60961914063, -2437.34497070313, 30.625","Las Venturas : Lemmings Pedestrians":"0, 2014.46105957031, 2356.97924804688, 10.8203125","Las Venturas : Minigun - 03":"0, 242.109191894531, 1859.30590820313, 14.0840120315552","Bone County : Regular Tom":"0, -318.049346923828, 1843.87377929688, 42.359375","Liberty City : Marco's Bistro":"1, -748.254211425781, 488.972473144531, 1371.58898925781","Bone County : Los Brujas":"0, -373.940795898438, 2196.25903320313, 42.0821113586426","Flint County : Suicidal Photographer":"0, -61.9707489013672, -1622.80908203125, 3.51299381256104","Los Santos : Ten Green Bottles":"0, 2304.39965820313, -1651.30908203125, 14.5202884674072","Las Venturas : Minigun - 01":"0, 2678.95947265625, 835.770690917969, 21.7657508850098","Las Venturas : Welding & Weddings":"0, 2002.8212890625, 2288.66259765625, 10.8203125","Blueberry : Locals Only Shop":"0, 276.548187255859, -157.536209106445, 1.5704517364502","Los Santos : Police Departament":"0, 1540.84509277344, -1675.45324707031, 13.5513896942139","Montgomery : Inside Track Betting":"0, 1292.03247070313, 269.481689453125, 19.5546875","Montgomery : Biowaste Well":"0, 1277.96606445313, 292.559906005859, 19.5546875","Los Santos : Vice City Hidden Package":"0, 2354.03198242188, -1467.3642578125, 31.9559421539307","Bone County : Cave":"0, -400.1201171875, 1233.3515625, 5.85399532318115","Las Venturas : Minigun - 02":"0, 2495.65014648438, 2398.44189453125, 4.2109375","San Fierro : Michelle's Autorepair":"0, -1786.46594238281, 1197.98132324219, 25.1193962097168","Los Santos : Alhambra Club":"0, 1828.20690917969, -1682.60571289063, 13.546875","Los Santos : The Pig Pen Strip Club":"0, 2421.12280273438, -1228.55883789063, 24.8796482086182","Bone County : The Big Ear":"0, -367.559143066406, 1581.53552246094, 76.1306381225586","Los Santos : Big Smoke's Crack Palace (inside)":"2, 2580.02124023438, -1300.33801269531, 1060.9921875","Las Venturas : The Craw Bar":"0, 2441.26611328125, 2059.05712890625, 10.8203125","Los Santos : CJ's home":"0, 2495.32275390625, -1685.42651367188, 13.5127220153809","Palomino Creek : Bank":"0, 2306.333984375, -15.3912973403931, 26.7495651245117","Los Santos : Observatory":"0, 1191.98645019531, -2036.88049316406, 69.0078125","Los Santos : Atrium":"0, 1722.0576171875, -1605.82824707031, 13.546875","Tierra Robada : Phalic Rock":"0, -547.985473632813, 2478.28100585938, 66.7793350219727","Los Santos : Police brutality":"0, 1540.00646972656, -1627.77075195313, 13.3828125","Palomino Creek : Glowing headstones":"0, 2240.09130859375, -70.5344467163086, 26.5068187713623","San Fierro : Wang Cars":"0, -1990.1318359375, 288.736297607422, 34.149341583252","Las Venturas : Nude Strippers Daily Strip Club":"0, 2543.13793945313, 1018.91442871094, 10.8125171661377","Las Venturas : Sex shop":"0, 2096.162109375, 2077.07177734375, 10.8203125","San Fierro : Hippy Shopper":"0, -2597.46752929688, 59.5114707946777, 4.3359375","Los Santos : Roboi's Food Mart":"0, 1350.62097167969, -1744.802734375, 13.3808469772339","Los Santos : Grotti (Ferrari) Billboard":"0, 487.795166015625, -1326.62707519531, 28.0078125","Las Venturas : Caligula's Palace Casino":"0, 2179.212890625, 1676.203125, 11.046875","Los Santos : Market Station":"0, 826.761840820313, -1358.68713378906, -0.5078125","Los Santos : Airport":"0, 1682.73156738281, -2264.05786132813, 13.5079345703125","Red County : North Rock":"0, 2570.11279296875, -644.1416015625, 136.548034667969","Las Venturas : Club":"0, 2507.13940429688, 1247.13256835938, 10.8203125","Palomino Creek : Triathalon":"0, 2139.28759765625, -65.8627624511719, 2.96075963973999","Los Santos : Verona Beach Gym":"0, 666.700561523438, -1880.67272949219, 5.46000003814697","Las Venturas : Caligula's Palace Casino basement":"0, 2170.4248046875, 1618.86999511719, 999.9765625","Las Venturas : Wedding Chapel Open 7 Days":"0, 2476.23413085938, 920.440734863281, 10.8203125","San Fierro : Misty's Club":"0, -2246.36303710938, -88.0900344848633, 35.3203125","San Fierro : Bridge Facts":"0, -2556.43603515625, 1224.98254394531, 42.1484375","San Fierro : Actual Piece of Cable":"0, -2540.97973632813, 1228.51245117188, 37.421875","Los Santos : Big Smoke's Crack Palace":"0, 2518.2197265625, -1272.61791992188, 34.8740921020508","Los Santos : Vinewood Sign":"0, 1386.48901367188, -822.793640136719, 73.6923141479492","El Castillo del Diablo : Snake Ferm":"0, -36.4142532348633, 2336.65209960938, 24.1347389221191","San Fierro : Highest building of San Fierro":"0, -1791.02185058594, 567.774047851563, 332.801940917969","Los Santos : Cemetery":"0, 832.375915527344, -1101.96203613281, 24.296875","Los Santos : Candy Suxx Billboard":"0, 419.148376464844, -1368.41320800781, 41.140625X","Las Venturas : The Four Dragons Casino":"0, 2035.13293457031, 1007.79144287109, 10.8203125","Tierra Robada : Aldea Malvada: the Lost Pueblo":"0, -1298.81420898438, 2505.07299804688, 86.9625854492188","San Fierro : Hippy Statue":"0, -2496.01245117188, -16.239330291748, 25.765625","Palomino Creek : Cementry":"0, 2240.06396484375, -61.6567649841309, 26.50661277771","Back o Beyond : Ghost Car":"0, -862.708190917969, -2280.87768554688, 26.2417907714844","San Fierro : Otto's Autos":"0, -1639.01281738281, 1202.3388671875, 7.22374629974365","San Fierro : Big Pointy Building":"0, -1754.5322265625, 885.199584960938, 295.875","San Fierro : USS Numnutz":"0, -1878.22204589844, 1455.84631347656, 8.36595344543457","Las Venturas : Airport":"0, 1697.70825195313, 1436.81311035156, 10.7489976882935","Los Santos : Ocean Docks":"0, 2184.40185546875, -2260.38232421875, 13.4100790023804","Liberty City : Inside Marco's Bistro":"1, -781.811340332031, 489.323181152344, 1376.1953125","El Castillo del Diablo : Mass Grave":"0, -132.202545166016, 2249.17138671875, 32.933177947998","Palomino Creek : Empty Diner":"0, 2337.83618164063, 6.2173113822937, 26.484375","Los Santos : Triathalon":"0, 181.06819152832, -1866.71862792969, 3.04375839233398","San Fierro : No Easter Eggs Up Here":"0, -2677.59228515625, 1594.87243652344, 217.273895263672","San Fierro : Zombotech Corporation":"0, -1921.11633300781, 721.838928222656, 45.4453125","Los Santos : Cathay Theater":"0, 1022.50787353516, -1133.8857421875, 23.828125","Los Santos : Jesus Saves":"0, 2719.21704101563, -2009.17846679688, 13.5546875","The Sherman Dam : Sherman Dam Memorial":"0, -889.46484375, 1972.90734863281, 60.3285140991211","Las Venturas : Casino Floor Casino":"0, 1658.6943359375, 2259.54443359375, 10.8203125","Dillimore : Max Pane - Bulletproof Glass":"0, 658.372924804688, -569.527587890625, 16.3359375","Bone County : Antena":"0, -225.078796386719, 1396.11413574219, 172.4140625","Los Santos : Didier Sachs Shop":"0, 450.887725830078, -1479.1318359375, 30.8057765960693","San Fierro : Zero's RC Shop":"0, -2245.77856445313, 128.705490112305, 35.3203125","The Sherman Dam : Generator Hall":"0, -593.485046386719, 2020.72277832031, 60.3828125","Verdant Meadows : Abandoned Airfield":"0, 404.54638671875, 2488.81689453125, 16.484375","Dillimore : Police Departament":"0, 635.456298828125, -571.612915039063, 16.3359375","Los Santos : Stadium":"0, 2684.78198242188, -1689.56359863281, 9.43039894104004","Los Santos : 8 Ball's Autos":"0, 1834.70385742188, -1856.40185546875, 13.3897476196289","San Fierro : Cargo Ship":"0, -2474.16943359375, 1547.40283203125, 33.2273330688477","Bone County : Astro Drive-In":"0, 148.567153930664, 1100.38610839844, 14.0299491882324","Palomino Creek : Rusty Wheelchair":"0, 2123.24487304688, -90.2263793945313, 2.16398048400879","Fern Ridge : Catalina's Ex-boyfriends":"0, 843.333190917969, -23.9582138061523, 62.7258110046387","Los Santos : Lemmings Pole":"0, 2392.33569335938, -1511.87316894531, 23.8348655700684","Los Santos : Highest building of Los Santos":"0, 1531.17175292969, -1357.61804199219, 329.453460693359","Chiliad Mountain : Top of Chiliad Mountain":"0, -2329.65673828125, -1624.35437011719, 483.707550048828","Bone County : Area 69 (inside)":"0, 268.621276855469, 1887.26489257813, -29.53125","Los Santos : Tiki Theater":"0, 2348.78637695313, -1463.54272460938, 24","Chiliad Mountain : House on the slope":"0, -2799.70458984375, -1528.5595703125, 139.274612426758","San Fierro : War Memorial":"0, -2591.06958007813, -15.1639175415039, 4.328125","Las Venturas : Wedding Chapel Open 24HR":"0, 2434.20092773438, 1293.18017578125, 10.8203125","Flint County : Nazca Symbol":"0, -687.696716308594, -1017.00006103516, 73.6602172851563","Los Santos : Jefferson Hotel":"0, 2221.89038085938, -1159.849609375, 25.7330799102783","Los Santos : Lowrider Competition":"0, 1816.08728027344, -1929.91040039063, 13.5433483123779","Bone County : The Big Spread Ranch Strip Club":"0, 693.90673828125, 1940.20239257813, 5.5390625","Fort Carson : Driveway Beagle":"0, -29.5530853271484, 1084.95336914063, 19.7455101013184","Los Santos : GTA III and GTA: Vice City logos":"0, 788.071899414063, -1035.47729492188, 24.6282062530518","Las Venturas : Police Departament":"0, 2286.89965820313, 2424.51220703125, 10.8203125","Los Santos : Ghost Graffiti (20:00-6:00)":"0, 927.000305175781, -1058.16821289063, 24.7002906799316","Las Venturas : VRock Hotel":"0, 2628.52221679688, 2321.35693359375, 10.671875","Las Barrancas : Hopi Ruins":"0, -722.901062011719, 1522.61572265625, 39.5409965515137","Las Barrancas : Largest Cow":"0, -857.239135742188, 1535.8515625, 28.1875","San Fierro : Gaydar Station Club":"0, -2557.06982421875, 192.114242553711, 6.1554012298584","Los Santos : Colonel Fuhrberger's":"0, 2820.60961914063, -1182.16235351563, 25.232967376709","Blueberry : Liquor Store":"0, 254.497406005859, -66.0255889892578, 1.578125","Bone County : Lil' Probe Inn":"0, -84.36767578125, 1370.42724609375, 10.2734375","San Fierro : Airport":"0, -1425.78784179688, -292.410827636719, 14.1484375","Las Venturas : Girls XXX Strip Club":"0, 2506.6494140625, 2129.15478515625, 10.8203125","Las Payasadas : Largest Chicken":"0, -217.903747558594, 2662.41235351563, 62.6015625","Los Santos : Inside Track Betting":"0, 1631.77648925781, -1167.0690979688, 24.078125"},"Exports":{"Export 22":"0, 1144.46, -1101.26, 25.35","Export 24":"0, 2163.79, 1810.23, 10.58","Export 28":"0, -1550.4, 2687.54, 56.22","Export 25":"0, 2207.4299, 1286.13, 10.57","Export 5":"0, 1803.38, -1931.05, 13.66","Export 30":"0, 682.17, -1867.46, 4.82","Export 23":"0, -2406.25, -2180.8401, 33.39","Export 3":"0, -1922.1899, 288.34, 40.84","Export 2":"0, -2085.23, -2437.52, 30.31","Export 26":"0, 2133.04, 1009.75, 10.49","Export 29":"0, -2068.6899, -83.75, 35.1","Export 19":"0, -1951.8101, 2393.8301, 50.08","Export 14":"0, -2265.3301, 200.65, 34.97","Export 7":"0, 926.45, -1292.29, 13.6","Export 27":"0, 2229.3, 1402.99, 10.82","Export 12":"0, -1675.9399, -618.74, 13.86","Export 4":"0, -16.66, -2521.1699, 36.37","Export 18":"0, -2456.1001, 741.65, 34.92","Export 15":"0, 2282.7, 2535.8799, 10.39","Export 8":"0, -2665.4399, 990.77, 64.45","Export 20":"0, -2751.79, -281.5, 6.81","Export 13":"0, -2430.22, 320.84, 34.97","Export 9":"0, -2516.5979, 1228.9192, 36.4283","Export 6":"0, -1673.9399, 439.02, 7.01","Export 16":"0, 1272.24, 2603.03, 10.49","Export 1":"0, -1006.41, -628.27, 32","Export 21":"0, 1747.87, -2098.03, 13.28","Export 11":"0, 1923.9301, -2118.8899, 13.35","Export 10":"0, 1122.29, -1699.76, 13.43","Export 17":"0, -112.4, -41.82, 3.26"},"Tags":{"Tag 84":"0, 2704.226563, -2144.304688, 11.8203125","Tag 28":"0, 2394.101563, -1468.367188, 24.78125","Tag 67":"0, 1950.617188, -2034.398438, 14.09375","Tag 56":"0, 1799.132813, -1708.765625, 14.1015625","Tag 55":"0, 1767.210938, -1617.539063, 15.0390625","Tag 41":"0, 2542.953125, -1363.242188, 31.765625","Tag 46":"0, 2273.015625, -1687.429688, 14.96875","Tag 35":"0, 2767.757813, -1819.945313, 12.2265625","Tag 29":"0, 2841.367188, -1312.960938, 18.8203125","Tag 54":"0, 1724.734375, -1741.5, 14.1015625","Tag 9":"0, 1959.398438, -1577.757813, 13.7578125","Tag 34":"0, 2767.78125, -1621.1875, 11.234375","Tag 44":"0, 2346.515625, -1350.78125, 24.28125","Tag 37":"0, 2612.929688, -1390.773438, 35.4296875","Tag 3":"0, 2102.195313, -1648.757813, 13.5859375","Tag 80":"0, 2489.242188, -1959.070313, 13.7578125","Tag 24":"0, 2062.71875, -996.4609375, 48.265625","Tag 19":"0, 1966.945313, -1174.726563, 20.0390625","Tag 45":"0, 2322.453125, -1254.414063, 22.921875","Tag 36":"0, 2667.890625, -1469.132813, 31.6796875","Tag 100":"0, 1098.8125, -1292.546875, 17.140625","Tag 31":"0, 2766.085938, -1197.140625, 69.0703125","Tag 25":"0, 2076.726563, -1071.132813, 27.609375","Tag 68":"0, 1936.882813, -2134.90625, 14.21875","Tag 18":"0, 1969.59375, -1289.695313, 24.5625","Tag 17":"0, 2093.757813, -1413.445313, 24.1171875","Tag 94":"0, 399.0078125, -2066.882813, 11.234375","Tag 30":"0, 2820.34375, -1190.976563, 25.671875","Tag 2":"0, 2066.429688, -1652.476563, 14.28125","Tag 33":"0, 2821.234375, -1465.09375, 16.5390625","Tag 69":"0, 1808.34375, -2092.265625, 14.21875","Tag 27":"0, 2353.539063, -1508.210938, 24.75","Tag 16":"0, 1974.085938, -1351.164063, 24.5625","Tag 20":"0, 1911.867188, -1064.398438, 25.1875","Tag 15":"0, 2119.203125, -1196.617188, 24.6328125","Tag 92":"0, 947.484375, -1466.71875, 17.2421875","Tag 32":"0, 2756.007813, -1388.125, 39.4609375","Tag 91":"0, 730.4453125, -1482.007813, 2.25","Tag 21":"0, 2281.460938, -1118.960938, 27.0078125","Tag 14":"0, 2224.765625, -1193.0625, 25.8359375","Tag 22":"0, 2239.78125, -999.75, 59.7578125","Tag 7":"0, 1837.195313, -1814.1875, 4.3359375","Tag 4":"0, 2162.78125, -1786.070313, 14.1875","Tag 1":"0, 2046.40625, -1635.84375, 13.5859375","Tag 71":"0, 1071.140625, -1863.789063, 14.09375","Tag 23":"0, 2122.6875, -1060.898438, 25.390625","Tag 12":"0, 2132.234375, -1258.09375, 24.0546875","Tag 59":"0, 1746.75, -1359.773438, 16.2109375","Tag 11":"0, 2182.234375, -1467.898438, 25.5546875","Tag 38":"0, 2536.21875, -1352.765625, 31.0859375","Tag 48":"0, 2576.820313, -1143.273438, 48.203125","Tag 96":"0, 583.4609375, -1502.109375, 16","Tag 70":"0, 1624.625, -2296.242188, 14.3125","Tag 60":"0, 1519.421875, -1010.945313, 24.609375","Tag 73":"0, 2763, -2012.109375, 14.1328125","Tag 89":"0, 1271.484375, -1662.320313, 20.25","Tag 97":"0, 944.2734375, -985.8203125, 39.296875","Tag 93":"0, 482.625, -1761.585938, 5.9140625","Tag 10":"0, 2074.179688, -1579.148438, 14.03125","Tag 95":"0, 466.9765625, -1283.023438, 16.3203125","Tag 49":"0, 2621.507813, -1092.203125, 69.796875","Tag 47":"0, 2422.90625, -1682.296875, 13.9921875","Tag 88":"0, 1295.179688, -1465.21875, 10.28125","Tag 90":"0, 810.5703125, -1797.570313, 13.6171875","Tag 72":"0, 2065.4375, -1897.234375, 13.609375","Tag 83":"0, 2273.195313, -2529.117188, 8.515625","Tag 75":"0, 2134.328125, -2011.203125, 10.515625","Tag 76":"0, 2392.359375, -1914.570313, 14.7421875","Tag 61":"0, 1687.226563, -1239.125, 15.8125","Tag 82":"0, 2173.59375, -2165.1875, 15.3046875","Tag 62":"0, 1783.96875, -2156.539063, 14.3125","Tag 53":"0, 1332.132813, -1722.304688, 14.1875","Tag 81":"0, 2273.898438, -2265.804688, 14.5625","Tag 79":"0, 2704.195313, -1966.6875, 13.7578125","Tag 78":"0, 2587.320313, -2063.523438, 4.609375","Tag 77":"0, 2430.328125, -1997.90625, 14.7421875","Tag 74":"0, 2379.320313, -2166.21875, 24.9453125","Tag 99":"0, 1206.25, -1162, 23.875","Tag 8":"0, 1837.664063, -1640.382813, 13.7578125","Tag 5":"0, 2034.398438, -1801.671875, 14.546875","Tag 63":"0, 1574.710938, -2691.882813, 13.6015625","Tag 52":"0, 1448.234375, -1755.898438, 14.5234375","Tag 64":"0, 1118.90625, -2008.242188, 75.0234375","Tag 51":"0, 1549.890625, -1714.523438, 15.1015625","Tag 6":"0, 1910.164063, -1779.664063, 18.75","Tag 13":"0, 2233.953125, -1367.617188, 24.53125","Tag 42":"0, 2462.265625, -1541.414063, 25.421875","Tag 98":"0, 1072.90625, -1012.796875, 35.515625","Tag 39":"0, 2580.945313, -1274.09375, 46.59375","Tag 86":"0, 2812.9375, -1942.070313, 11.0625","Tag 58":"0, 1732.734375, -963.078125, 41.4375","Tag 85":"0, 2794.53125, -1906.8125, 14.671875","Tag 65":"0, 1850.007813, -1876.835938, 14.359375","Tag 50":"0, 2797.921875, -1097.695313, 31.0625","Tag 66":"0, 1889.242188, -1982.507813, 15.7578125","Tag 57":"0, 1498.632813, -1207.351563, 24.6796875","Tag 43":"0, 2522.460938, -1478.742188, 24.1640625","Tag 26":"0, 2399.414063, -1552.03125, 28.75","Tag 40":"0, 2603.15625, -1197.8125, 60.9921875","Tag 87":"0, 2874.5, -1909.382813, 8.390625"},"Horseshoes":{"Horseshoe 17":"0, 2058.7, 2159.1, 16","Horseshoe 21":"0, 1768, 2847, 9","Horseshoe 6":"0, 2071, 712, 11","Horseshoe 23":"0, 2879, 2522, 11","Horseshoe 16":"0, 1362.92, 1015.24, 11","Horseshoe 37":"0, 1462, 936, 10","Horseshoe 49":"0, 970, 1787, 11","Horseshoe 22":"0, 1084, 1076, 11","Horseshoe 24":"0, 2371, 2009, 15","Horseshoe 36":"0, 1680.3, 2226.86, 16.11","Horseshoe 40":"0, 919, 2070, 11","Horseshoe 38":"0, 2125.5, 789.23, 11.45","Horseshoe 19":"0, 2238, 1135, 49","Horseshoe 25":"0, 1521, 1690, 10.6","Horseshoe 41":"0, 2173, 2465, 11","Horseshoe 27":"0, 1376, 2304, 15","Horseshoe 39":"0, 2588, 1902, 15","Horseshoe 43":"0, 2509, 1144, 19","Horseshoe 35":"0, 2020, 2352, 11","Horseshoe 44":"0, 2215, 1968, 11","Horseshoe 3":"0, 2035, 2305, 18","Horseshoe 48":"0, 2077, 1912, 14","Horseshoe 30":"0, 1767, 601, 13","Horseshoe 42":"0, 2031.25, 2207.33, 11","Horseshoe 28":"0, 1393, 1832, 12.34","Horseshoe 46":"0, 2440.08, 2161.07, 20","Horseshoe 4":"0, 2491, 2263, 15","Horseshoe 11":"0, 2274, 1507, 24","Horseshoe 2":"0, 2323, 1284, 98","Horseshoe 50":"0, 1526.22, 751, 29.04","Horseshoe 10":"0, 2612, 2200, -1","Horseshoe 13":"0, 1863, 2314, 15","Horseshoe 31":"0, 2108, 1003, 46","Horseshoe 8":"0, 2583, 2387, 16","Horseshoe 29":"0, 984, 2563, 12","Horseshoe 45":"0, 2626, 2841, 11","Horseshoe 14":"0, 2054, 2434, 166","Horseshoe 12":"0, 2184, 2529, 11","Horseshoe 47":"0, 1582, 2401, 19","Horseshoe 33":"0, 2493, 922, 16","Horseshoe 9":"0, 2864, 857, 13","Horseshoe 20":"0, 1934.06, 988.79, 22","Horseshoe 32":"0, 2705.98, 1862.52, 24.41","Horseshoe 5":"0, 1433, 2796, 20","Horseshoe 18":"0, 2003, 1672, 12","Horseshoe 34":"0, 1881, 2846, 11","Horseshoe 15":"0, 1603, 1435, 11","Horseshoe 7":"0, 2239, 1839, 18","Horseshoe 26":"0, 2417, 1281, 21","Horseshoe 1":"0, 1224, 2617, 11"},"All":{},"Interior":{"Pleasure domes":"3, -2640.762939, 1406.682006, 906.460937","Bloodbowl":"15, -1398.103515, 937.631164, 1036.479125","24\/7 2":"10, 6.091179, -29.271898, 1003.549438","Barber 3":"12, 412.021972, -52.649898, 1001.898437","Crack den":"5, 318.564971, 1118.209960, 1083.882812","RC Battlefield":"10, -975.975708, 1060.983032, 1345.671875","SF Garage":"0, -1790.378295, 1436.949829, 7.187500","LS Garage":"0, 1643.839843, -1514.819580, 13.566620","24\/7 1":"17, -25.884498, -185.868988, 1003.546875","Ammunation 3":"6, 296.919982, -108.071998, 1001.515625","Barber 1":"2, 411.625976, -21.433298, 1001.804687","Tatoo parlour 3":"3, -204.439987, -43.652496, 1002.273437","LV Warehouse 1":"0, 1059.895996, 2081.685791, 10.820312","Gang house":"5, 2350.339843, -1181.649902, 1027.976562","24\/7 3":"18, -30.946699, -89.609596, 1003.546875","Rusty browns donuts":"17, 381.169189, -188.803024, 1000.632812","Fanny batters":"6, 761.412963, 1440.191650, 1102.703125","Jays diner":"4, 457.304748, -88.428497, 999.554687","Colonel Furhberger's":"8, 2807.619873, -1171.899902, 1025.570312","Sweets garage":"0, 2522.000000, -1673.383911, 14.866223","LV Warehouse 2":"0, 1059.180175, 2148.938720, 10.820312","Tatoo parlour 2":"17, -204.439987, -8.469599, 1002.273437","Sex shop":"3, -103.559165, -24.225606, 1000.718750","Catigulas basement":"1, 2169.461181, 1618.798339, 999.976562","Prolaps":"3, 207.054992, -138.804992, 1003.507812","LS Atruim":"18, 1710.433715, -1669.379272, 20.225049","Cj's house":"3, 2496.049804, -1695.238159, 1014.742187","SF gym":"6, 774.213989, -48.924297, 1000.585937","Well stacked pizza":"5, 373.825653, -117.270904, 1001.499511","LV police HQ":"3, 288.745971, 169.350997, 1007.171875","Ryders house":"2, 2454.717041, -1700.871582, 1013.515197","SF police HQ":"10, 246.375991, 109.245994, 1003.218750","Welcome pump":"1, 681.557861, -455.680053, -25.609874","LV gym":"7, 773.579956, -77.096694, 1000.655029","Gant bridge diner":"5, 454.973937, -110.104995, 1000.077209","Ammunation booths":"7, 302.292877, -143.139099, 1004.062500","Zip":"18, 161.391006, -93.159156, 1001.804687","Budget inn motel room":"12, 444.646911, 508.239044, 1001.419494","Airport baggage reclaim":"14, -1861.936889, 54.908092, 1061.143554","Unnamed brothel":"3, 942.171997, -16.542755, 1000.929687","LS gym":"5, 772.111999, -3.898649, 1000.728820","Cafe":"5, 450.560333251953, -107.105247497559, 1000.88635253906","Unused safe house":"12, 2324.419921, -1145.568359, 1050.710083","Catigulas":"1, 2131.507812, 1600.818481, 1008.359375","Zeros RC shop":"6, -2240.468505, 137.060440, 1035.414062","Vice stadium":"1, -1401.829956, 107.051300, 1032.273437","24\/7 6":"6, -26.691598, -55.714897, 1003.546875","LS police HQ":"6, 246.783996, 63.900199, 1003.640625","Ammunation 2":"4, 286.800994, -82.547599, 1001.515625","Ammunation range":"7, 298.507934, -141.647048, 1004.054748","8-Track":"7, -1398.065307, -217.028900, 1051.115844","Denise room":"1, 244.411987, 305.032989, 999.148437","Didier sachs":"14, 204.332992, -166.694992, 1000.523437","Lil probe inn toilet":"18, -221.059051, 1408.984008, 27.773437","Ammunation 5":"6, 316.524993, -167.706985, 999.593750","Airport ticket desk":"14, -1827.147338, 7.207417, 1061.143554","24\/7 5":"4, -27.312299, -29.277599, 1003.557250","Area 51":"0, 223.431976, 1872.400268, 13.734375","Burger shot":"10, 375.962463, -65.816848, 1001.507812","Planning Department":"3, 388.872009277344, 173.811111450195, 1008.3828125","SF Bomb shop":"0, -1685.636474, 1035.476196, 45.210937","Katie room":"2, 271.884979, 306.631988, 999.148437","Ammunation 1":"1, 286.148986, -40.644397, 1001.515625","B Dups crack pad":"2, 1523.509887, -47.821197, 1002.130981","Strip club":"2, 1204.809936, -11.586799, 1000.921875","Barn":"3, 291.141082763672, 310.135040283203, 999.1484375","Warehouse 2":"18, 1302.519897, -1.787510, 1001.028259","Off track betting shop":"3, 833.269775, 10.588416, 1004.179687","Liberty city inside":"1, -794.806396, 497.738037, 1376.195312","Shamal":"1, 1.808619, 32.384357, 1199.593750","Blueberry warehouse":"0, 76.632553, -301.156829, 1.578125","Sweets house":"1, 2527.654052, -1679.388305, 1015.498596","Club":"17, 493.390991, -22.722799, 1000.679687","Binco":"15, 207.737991, -109.019996, 1005.132812","Place C":"3, 962.10498046875, -50.9754791259766, 1001.1171875","Woozies office":"1, -2159.122802, 641.517517, 1052.381713","Barbara room":"5, 322.197998, 302.497985, 999.148437","Dirt track":"4, -1444.645507, -664.526000, 1053.572998","Cluckin bell":"9, 369.579528, -4.487294, 1001.858886","Place A":"3, 1041.75390625, 10.1560220718384, 1001.28448486328","Andromada":"9, 315.745086, 984.969299, 1958.919067","Millie room":"6, 346.870025, 309.259033, 999.155700","Planning dept":"3, 384.808624, 173.804992, 1008.382812","Kickstart":"14, -1465.268676, 1557.868286, 1052.531250","Tatoo parlour 1":"16, -204.439987, -26.453998, 1002.273437","Michelle room":"4, 302.180999, 300.722991, 999.148437","Jefferson motel":"15, 2215.454833, -1147.475585, 1025.796875","Place B":"3, 959.504577636719, -7.69411325454712, 1001.1484375","Madd Doggs mansion":"5, 1267.663208, -781.323242, 1091.906250","Secret valley diner":"6, 435.271331, -80.958938, 999.554687","Big spread ranch":"3, 1212.019897, -28.663099, 1000.953125","Barber 2":"3, 418.652984, -82.639793, 1001.804687","Blastin fools hallway":"3, 1038.531372, 0.111030, 1001.284484","Og Locs house":"3, 513.882507, -11.269994, 1001.565307","Bank":"0, 2319.714843, -14.838361, 26.749565","B Dups house":"3, 1527.229980, -11.574499, 1002.097106","Helena room":"3, 291.282989, 310.031982, 999.148437","Suburban":"1, 203.777999, -48.492397, 1001.804687","Bar":"11, 501.980987, -69.150199, 998.757812","World of coq":"1, 452.489990, -18.179698, 1001.132812","Sherman dam":"17, -959.564392, 1848.576782, 9.000000","Tiger skin brothel":"3, 964.106994, -53.205497, 1001.124572","Millie's House":"6, 345.892669677734, 306.162902832031, 999.1484375","FDC Janitors room":"10, 1889.953369, 1017.438293, 31.882812","Warehouse 1":"1, 1412.639892, -1.787510, 1000.924377","24\/7 4":"16, -25.132598, -139.066986, 1003.546875","Victim":"5, 226.293991, -7.431529, 1002.210937","Car school":"3, -2029.798339, -106.675910, 1035.171875","Crack factory":"2, 2543.462646, -1308.379882, 1026.728393","Dillimore gas station":"0, 663.836242, -575.605407, 16.343263","Lil probe inn":"18, -227.027999, 1401.229980, 27.765625","Strip club private room":"2, 1204.809936, 13.897239, 1000.921875","Ammunation 4":"7, 314.820983, -141.431991, 999.601562","Meat factory":"1, 963.418762, 2108.292480, 1011.030273","Liberty city outside":"1, -729.276000, 503.086944, 1371.971801"},"Unique jumps":{"Unique jump 8":"0, 1832.453, -2386.8049, 17.9247","Unique jump 19":"0, -2145.4607, -112.0259, 44.3452","Unique jump 15":"0, -2520.1995, 1169.2032, 59.5525","Unique jump 52":"0, -1687.323, -162.201, 17.8603","Unique jump 50":"0, -2116.3557, 925.6832, 87.819","Unique jump 32":"0, -2082.5291, -2498.9316, 33.9682","Unique jump 6":"0, 2825.9329, -1582.6599, 18.126","Unique jump 42":"0, 638.7504, -520.0714, 18.8519","Unique jump 56":"0, 2248.8379, -2463.2581, 15.1049","Unique jump 30":"0, 1636.2639, 2399.7122, 15.8903","Unique jump 40":"0, -72.3, 17.7, 8.4132","Unique jump 22":"0, -871.5031, 2308.7898, 164.5739","Unique jump 54":"0, -1972.0991, -543.0899, 38.9862","Unique jump 36":"0, 110.8902, 2428.0488, 23.7936","Unique jump 33":"0, 2112.4077, 97.9, 39.993","Unique jump 38":"0, 89.9936, -243.2046, 7.5581","Unique jump 46":"0, -344.6466, -9.8812, 44.9609","Unique jump 20":"0, -267.7739, 2662.0359, 68.7405","Unique jump 43":"0, 1749.723, 779.6028, 13.4757","Unique jump 62":"0, 347, -1662.299, 35.8218","Unique jump 48":"0, -2292.0442, 1097.7101, 84.7347","Unique jump 34":"0, -2100.4128, -1743.5951, 199.7312","Unique jump 31":"0, 2119.2305, 2385.2126, 33.7094","Unique jump 44":"0, 110.2446, -257.9929, 6.2739","Unique jump 26":"0, 2407.3083, 1364.3785, 14.5734","Unique jump 41":"0, -39.7989, 53.3007, 6.9223","Unique jump 23":"0, 2073.7126, 2366.6531, 50.8534","Unique jump 28":"0, 1482.3834, 2037.004, 17.0576","Unique jump 60":"0, 1679.6456, -962.2209, 65.6737","Unique jump 12":"0, 1013.1629, -1270.3624, 24.4456","Unique jump 3":"0, 1177.2153, -1696.7614, 21.368","Unique jump 37":"0, -894.4963, 2693.1987, 44.7303","Unique jump 24":"0, 2170.9465, 2402.6086, 62.2905","Unique jump 47":"0, -2589.1804, 1164.37, 59.8256","Unique jump 21":"0, -249.6904, 2590.8052, 66.1194","Unique jump 66":"0, 2058.1001, -2677.5168, 15.4946","Unique jump 10":"0, 2634.3975, -2107.9841, 17.0887","Unique jump 63":"0, 743.1525, -1132.8186, 25.7991","Unique jump 49":"0, -2408.2852, 723.2977, 38.6835","Unique jump 35":"0, -2287.6707, -2800.7786, 22.0541","Unique jump 68":"0, 2172.0779, 2430.5071, 61.747","Unique jump 45":"0, 2125.6423, 95.2542, 37.3959","Unique jump 27":"0, 2784.7629, 2208.7197, 15.1934","Unique jump 64":"0, 1395.5621, -1460.5657, 12.3906","Unique jump 16":"0, -1794.9822, 1211.6116, 35.6794","Unique jump 61":"0, 1667.1671, -992.8579, 32.7591","Unique jump 13":"0, -973.357, -223.2307, 53.3717","Unique jump 55":"0, 2770.2141, -1177.4768, 70.7527","Unique jump 18":"0, -1690.6622, 1110.3917, 57.2776","Unique jump 39":"0, 160.7991, -160.2479, 6.1453","Unique jump 25":"0, 2418.0557, 1353.2336, 12.3641","Unique jump 57":"0, 2248.832, -2627.6233, 15.1806","Unique jump 29":"0, 1976.3966, 2593.686, 17.2126","Unique jump 14":"0, -2637.0688, 780.3949, 50.0166","Unique jump 67":"0, 586.0102, -1773.7693, 15.2312","Unique jump 11":"0, 2352.3, -1259.0685, 28.9962","Unique jump 53":"0, -1729.9243, -364.5276, 18.2246","Unique jump 4":"0, 2278.2896, -1357.8571, 31.3255","Unique jump 1":"0, 1939.1357, -1968.052, 17.6649","Unique jump 7":"0, 2460.1765, -2567.9106, 18.8162","Unique jump 9":"0, 1839.745, -2514.4766, 16.1769","Unique jump 2":"0, 2209.2747, -1843.6862, 19.0964","Unique jump 70":"0, -2213.7732, -311.0786, 38.5339","Unique jump 51":"0, -1903.1918, 223.3468, 37.7965","Unique jump 58":"0, 2326.1216, -1508.751, 27.0066","Unique jump 5":"0, 2335.3513, -2163.947, 18.5147","Unique jump 65":"0, 1586.4889, 312.8876, 23.9965","Unique jump 17":"0, -2659.5508, 1533.6698, 53.2004","Unique jump 59":"0, 1623.574, -1110.9561, 61.8178","Unique jump 69":"0, 2176.1326, 2268.1958, 13.4683"},"Custom":{"Untitled":"0, "},"Bribes":{"Bribe 23":"0, 611.21, -1459.63, 14.01","Bribe 16":"0, 2716, -1048, 66","Bribe 29":"0, -2120, 96.39, 39","Bribe 15":"0, 2273, -1099, 38","Bribe 43":"0, -419.25, 1362.36, 12.21","Bribe 2":"0, 2168.66, 2267.96, 15.34","Bribe 18":"0, 1183.85, -1250.68, 14.7","Bribe 1":"0, 2743, 1316, 8","Bribe 39":"0, 1643, 264, 20","Bribe 20":"0, 734, -1137, 18","Bribe 17":"0, 2614, -2496, 33","Bribe 26":"0, -2657, -144, 4","Bribe 12":"0, 1700.74, 1792.7, 10.41","Bribe 25":"0, -1903.1, -466.44, 25.18","Bribe 9":"0, 1548.02, 1024.47, 10.39","Bribe 30":"0, -2411, -334, 37","Bribe 46":"0, 88.82, -125.1, 0.85","Bribe 38":"0, 262.33, -149.12, 1.58","Bribe 28":"0, -2009, 1227, 32","Bribe 36":"0, -1820.67, -154.12, 9.4","Bribe 6":"0, 1987, 1543, 16","Bribe 14":"0, 2296, -1696, 14","Bribe 45":"0, 690.49, -209.59, 25.6","Bribe 44":"0, 629.04, 2842.83, 25.21","Bribe 4":"0, 2034, 842, 10","Bribe 35":"0, -2683.2, 784.13, 49.98","Bribe 5":"0, 2096, 1287, 10.8","Bribe 13":"0, 2581, -1491, 24","Bribe 48":"0, -213.61, 2717.44, 62.68","Bribe 7":"0, 1854, 912, 10.8","Bribe 22":"0, 1204.06, -1613.89, 13.28","Bribe 19":"0, 1970, -1158, 21","Bribe 27":"0, -2454, -166, 35","Bribe 3":"0, 2408, 1389, 22","Bribe 47":"0, -2305.24, 2310.11, 4.98","Bribe 34":"0, -2022.68, 345.98, 35.17","Bribe 21":"0, 2553.76, -2464.31, 13.62","Bribe 37":"0, -736, 66, 24","Bribe 33":"0, -2636.13, -492.83, 70.09","Bribe 11":"0, 1971.29, 2330.26, 10.41","Bribe 42":"0, -2156, -2371, 31","Bribe 40":"0, 601.98, 2150.38, 39.41","Bribe 24":"0, 1116.67, -719.91, 100.17","Bribe 32":"0, -1991.26, -1144.13, 29.69","Bribe 8":"0, 2540.38, 2527.85, 10.39","Bribe 10":"0, 1592.91, 2053.83, 10.26","Bribe 41":"0, -1407, -2039, 1","Bribe 31":"0, -1690, 450, 13"},"Snapshots":{"Snapshot 38":"0, -2244.42, 731.32, 61.88","Snapshot 9":"0, -2802.75, 375.47, 36.59","Snapshot 26":"0, -1839.51, 1086.88, 101.29","Snapshot 31":"0, -2880.31, -935.83, 40.82","Snapshot 14":"0, -1561.55, 655.19, 56.52","Snapshot 42":"0, -2430, 38, 51","Snapshot 45":"0, -2648, -5, 31","Snapshot 30":"0, -2765, 375, 15","Snapshot 1":"0, -2511.28, -672.99, 195.75","Snapshot 21":"0, -2064, 926, 63","Snapshot 47":"0, -1619.31, 1341.39, 11.3","Snapshot 44":"0, -2591, -16, 17","Snapshot 2":"0, -2723.63, -314.72, 55.79","Snapshot 19":"0, -2051, 456, 167","Snapshot 32":"0, -2083, -808, 69","Snapshot 3":"0, -1737.71, -579.55, 26.19","Snapshot 20":"0, -1951, 659, 81","Snapshot 46":"0, -2593, 56, 16","Snapshot 23":"0, -2072, 1066, 74","Snapshot 49":"0, -2343, -79, 38","Snapshot 18":"0, -2243.96, 577.76, 49","Snapshot 4":"0, -1486.08, 920.04, 41.37","Snapshot 22":"0, -2357.33, 1017.01, 59.76","Snapshot 28":"0, -2346.62, 536.85, 86.02","Snapshot 29":"0, -2443, 755, 49","Snapshot 11":"0, -2680.07, 1590.8, 143.53","Snapshot 43":"0, -2591, 162, 15","Snapshot 5":"0, -1269.82, 963.63, 130.37","Snapshot 37":"0, -2413, 331, 37","Snapshot 48":"0, -2307, 207, 42","Snapshot 25":"0, -1941, 883, 68","Snapshot 16":"0, -1941.41, 137.72, 37.83","Snapshot 33":"0, -1954, -760, 53","Snapshot 50":"0, -1906.66, 518.58, 61.71","Snapshot 6":"0, -1650.01, 422, 21.17","Snapshot 10":"0, -2773.04, 783.45, 67.66","Snapshot 36":"0, -2080, 256.05, 107","Snapshot 13":"0, -1879.04, 1456.52, 9.34","Snapshot 41":"0, -1275.78, 53.68, 89.07","Snapshot 7":"0, -1851.72, -96.73, 24.37","Snapshot 39":"0, -2462, 369, 59","Snapshot 34":"0, -964.53, -331.59, 47.16","Snapshot 24":"0, -1744, 972.46, 156.89","Snapshot 27":"0, -1704.8, 1338, 14","Snapshot 35":"0, -1689, 51, 38","Snapshot 17":"0, -2153.23, 462.25, 103.27","Snapshot 8":"0, -2732, -244, 19","Snapshot 12":"0, -2476.75, 1543.44, 49.26","Snapshot 40":"0, -1124.44, -153.15, 18.5","Snapshot 15":"0, -1325.15, 494.19, 26.83"},"Weapons":{"Weapon 128":"0, 1625, 1944, 11","Weapon 45":"0, 2371, -2543, 3","Weapon 53":"0, -365.791, -1425.253, 25.5","Weapon 1":"0, 1339, -1765, 14","Weapon 13":"0, -938.39, 1901.649, 4.3","Weapon 87":"0, 2447.773, -1975.663, 13","Weapon 109":"0, 297.829, 1846.623, 6.727","Weapon 126":"0, 2293.686, 1982.286, 31.434","Weapon 76":"0, 2255, -74, 32","Weapon 3":"0, -246, 2725, 63","Weapon 10":"0, -2222, -302, 43","Weapon 84":"0, 2423.892, -1117.452, 41.246","Weapon 63":"0, 2725, 2727, 11","Weapon 89":"0, 1214, -1816, 17","Weapon 97":"0, -1841.106, -74.217, 14.761","Weapon 23":"0, 2285.743, -1647.309, 14.078","Weapon 31":"0, 637, 832, -43","Weapon 139":"0, -2903, 784, 35","Weapon 170":"0, -1317, 2509, 87","Weapon 60":"0, 2820.013, -1426.519, 23.805","Weapon 86":"0, 2444.895, -1981.524, 13.933","Weapon 94":"0, 36, 1372, 9","Weapon 20":"0, -2306, 93, 35","Weapon 151":"0, 2015.744, 1004.045, 39.1","Weapon 62":"0, -2412.4, 1547.9, 25","Weapon 96":"0, 1345, 2367, 11","Weapon 22":"0, 1081.133, 1603.697, 5.6","Weapon 103":"0, 2428, -1214, 36","Weapon 152":"0, -2035.773, 139.434, 28.336","Weapon 43":"0, 2002.263, 981.395, 10.5","Weapon 51":"0, 752, 260, 27","Weapon 141":"0, 2021.879, 1001.467, 10.32","Weapon 104":"0, 2366, 23, 28","Weapon 85":"0, -365.477, -1422.402, 25.5","Weapon 40":"0, -1568, 2718, 56","Weapon 142":"0, 1102, -661, 114","Weapon 157":"0, -808.152, 2430.788, 156.987","Weapon 171":"0, -686, 939, 13.5","Weapon 61":"0, -2035.474, 137.251, 28.336","Weapon 95":"0, -2352, 2456, 6","Weapon 21":"0, 1308.466, 2111.289, 10.722","Weapon 158":"0, 2072, 2370, 61","Weapon 172":"0, 2649, 2733, 11","Weapon 147":"0, 2337, 1806, 72","Weapon 161":"0, 2055.356, 2435.356, 40.368","Weapon 124":"0, -1474, 2577, 56","Weapon 156":"0, -431.372, 2240.132, 42.618","Weapon 148":"0, 2047, -1406, 68","Weapon 38":"0, 1862, -1862, 14","Weapon 145":"0, 733.433, -1356.47, 23.523","Weapon 177":"0, -366.066, -1418.683, 25.5","Weapon 191":"0, 2428.499, -1679.27, 13.163","Weapon 41":"0, -2535.631, 51.703, 8.651","Weapon 178":"0, -1100.3, -1640.4, 76.4","Weapon 175":"0, -1358, -2115, 30","Weapon 83":"0, -639, 1181, 13","Weapon 167":"0, -690, 934, 13.5","Weapon 140":"0, 113, 1811, 18","Weapon 9":"0, 2241, 2425, 11","Weapon 48":"0, -2359, -82, 35","Weapon 72":"0, 2478, 1182, 22","Weapon 4":"0, 2428.499, -1679.27, 13.163","Weapon 159":"0, 1646, 1349, 11","Weapon 176":"0, -601.401, -1068.6, 23.667","Weapon 160":"0, 1740, -1231, 92","Weapon 80":"0, 2538, -1630, 14","Weapon 168":"0, 1155, 2341, 17","Weapon 37":"0, 2000, 1526, 15","Weapon 93":"0, -1870, -1625, 22","Weapon 114":"0, -2038, -2562, 31","Weapon 59":"0, -2520, 2293, 5","Weapon 18":"0, -1595, 1345, -7.5","Weapon 81":"0, 338, -1875, 4","Weapon 180":"0, 2676, 836, 22","Weapon 110":"0, 2021.327, 1013.35, 10.32","Weapon 77":"0, -170, 1025, 20","Weapon 166":"0, -1100.3, -1640.4, 76.4","Weapon 149":"0, -1629, 1167, 24","Weapon 90":"0, -1542.022, -437.736, 5.926","Weapon 39":"0, -2208, 696, 50","Weapon 8":"0, -2227, -2401, 31.4","Weapon 198":"0, 911.649, -1235.39, 17.68","Weapon 36":"0, 294, -188, 2","Weapon 195":"0, -2227, -2401, 31.4","Weapon 68":"0, -366.224, -1429.088, 25.5","Weapon 73":"0, 886, -966, 37","Weapon 187":"0, 2023.775, 1013.527, 10.52","Weapon 99":"0, -932.02, 2649.92, 42","Weapon 28":"0, -532, -106, 63","Weapon 100":"0, -2038.664, 137.469, 28.336","Weapon 92":"0, -2212, 109, 35","Weapon 34":"0, 2854, 944, 11","Weapon 179":"0, -690, 939, 13.5","Weapon 196":"0, 2241, 2425, 11","Weapon 184":"0, -2754, -400, 7","Weapon 190":"0, -246, 2725, 63","Weapon 188":"0, 1339, -1765, 14","Weapon 57":"0, 397, -1924, 8","Weapon 185":"0, -2542.262, 922.24, 67.122","Weapon 153":"0, 0, 0, 0","Weapon 192":"0, 1418, 2774, 15","Weapon 17":"0, 777.867, 1948.123, 5.363","Weapon 30":"0, 2240, -83, 27","Weapon 123":"0, 1296, 392, 20","Weapon 130":"0, 1308.97, -874.4, 40","Weapon 113":"0, -1679, 1410, 7","Weapon 197":"0, -2222, -302, 43","Weapon 169":"0, -1126.69, -150.82, 14.61","Weapon 186":"0, 1284.894, 278.571, 19.555","Weapon 154":"0, -1837, -21.43, 15.16","Weapon 7":"0, -2715, -314, 7","Weapon 14":"0, 1124, -1335, 13","Weapon 11":"0, 911.649, -1235.39, 17.68","Weapon 19":"0, -1456.289, 1497.905, 6.7","Weapon 67":"0, -1386, 509, 4","Weapon 182":"0, 2492.051, 2398.377, 4.529","Weapon 111":"0, 1446.35, 1900.03, 11","Weapon 144":"0, -1035, -2258, 70","Weapon 27":"0, -2796.416, 123.686, 6.844","Weapon 120":"0, 1764, -1930, 14","Weapon 91":"0, 2766, -2182, 11","Weapon 183":"0, 244.98, 1859.185, 14.08","Weapon 199":"0, -819, 1929, 7","Weapon 16":"0, -23, 2322, 24","Weapon 64":"0, 1319, 1636, 10.6","Weapon 79":"0, 2447.773, -1975.663, 13","Weapon 69":"0, 0, 0, 0","Weapon 33":"0, 1888.27, 2877.262, 10.162","Weapon 24":"0, 1393, 2174, 10","Weapon 173":"0, -1579, 29.45, 17","Weapon 29":"0, -1809, -1662, 24","Weapon 101":"0, 1569, 2150, 11","Weapon 122":"0, -2678, -128, 4","Weapon 46":"0, 2192.243, -1988.751, 13.419","Weapon 194":"0, -2715, -314, 7","Weapon 133":"0, -585, 2714, 72","Weapon 66":"0, 1463, -1013, 27","Weapon 189":"0, -2206, 961, 80","Weapon 52":"0, -2752.243, -272.289, 6.596","Weapon 174":"0, -2132.52, 189.251, 35.538","Weapon 26":"0, 2459, -1708, 13.6","Weapon 102":"0, 924, 2138, 11","Weapon 116":"0, 2790.343, -1427.489, 39.626","Weapon 163":"0, -1688.86, 695.308, 30.345","Weapon 117":"0, -2038.43, 139.628, 28.336","Weapon 134":"0, 2129.4, -2280.71, 14.42","Weapon 131":"0, -1968, -923, 32","Weapon 6":"0, 1457, -792, 90","Weapon 47":"0, -2083, 298, 42","Weapon 55":"0, 2809, 864, 21","Weapon 164":"0, -1100.3, -1640.4, 76.4","Weapon 132":"0, -121, -232, 1","Weapon 78":"0, 2444.895, -1981.524, 13.933","Weapon 15":"0, -1871, 351, 26","Weapon 118":"0, 2175.614, -2282.959, 13.54","Weapon 193":"0, 1457, -792, 90","Weapon 115":"0, 119, 2409, 17","Weapon 58":"0, 2441, -1013, 54","Weapon 44":"0, 1061, 2074, 11","Weapon 107":"0, 832.603, -1273.861, 14.483","Weapon 49":"0, -761, -126, 66","Weapon 121":"0, 2266, -1028, 59","Weapon 35":"0, -2135, 197, 35","Weapon 56":"0, 2142, -1804, 16","Weapon 42":"0, 2631.263, 1722.395, 11.031","Weapon 155":"0, -686, 934, 13.5","Weapon 65":"0, 2213, -2283, 15","Weapon 129":"0, 1923, 1011, 22","Weapon 112":"0, 2551.33, -1740, 6.49","Weapon 108":"0, 1407, 1098, 11","Weapon 25":"0, 1997, 1658, 12","Weapon 105":"0, 1706.352, 1242.019, 34.295","Weapon 2":"0, -2206, 961, 80","Weapon 12":"0, -819, 1929, 7","Weapon 137":"0, 2575, 1562, 16","Weapon 125":"0, 2198.11, -1170.22, 33.5","Weapon 165":"0, -1100.3, -1640.4, 76.4","Weapon 88":"0, 1098, 1681, 7","Weapon 75":"0, 2197, -2475, 14","Weapon 181":"0, -1496, 591, 42","Weapon 5":"0, 1418, 2774, 15","Weapon 106":"0, 2254.378, -2261.69, 14.375","Weapon 71":"0, 1781, 2072, 11","Weapon 82":"0, -2206, -23, 35","Weapon 138":"0, 1379, -2547, 14","Weapon 70":"0, 2832, 2405, 18","Weapon 135":"0, 825.921, -1165.813, 17.894","Weapon 162":"0, -1831, -21.43, 15.16","Weapon 146":"0, 2225, 2530, 17","Weapon 127":"0, 2025.286, 1001.496, 10.32","Weapon 98":"0, 24, 969, 20","Weapon 143":"0, -2094, -488, 36","Weapon 54":"0, 2550.967, 2824.343, 10.6","Weapon 32":"0, 842.978, -17.379, 64.2","Weapon 50":"0, 680, 826, -39","Weapon 119":"0, 2243, 1132, 11","Weapon 136":"0, -1683.497, 716.274, 30.645","Weapon 150":"0, 935.744, -926.045, 57.764","Weapon 74":"0, 2426, -1416, 24"},"Oysters":{"Oyster 29":"0, 486, -253, -4","Oyster 1":"0, 979, -2210, -3","Oyster 30":"0, -90, -910, -5","Oyster 7":"0, 2621, -2506, -5","Oyster 28":"0, -832, 925, -2","Oyster 33":"0, -1672, -1641, -2","Oyster 45":"0, -821, 1374, -8","Oyster 6":"0, 2327, -2662, -5","Oyster 46":"0, -2110.5, 2329.72, -7.5","Oyster 39":"0, -1066, 2197, 32","Oyster 4":"0, 2945.13, -2051.93, -3","Oyster 44":"0, -783, 2116, 35","Oyster 41":"0, -765, 247, -8","Oyster 38":"0, -955, 2628, 35","Oyster 47":"0, -1538, 1708, -3.27","Oyster 40":"0, 40, -531, -8","Oyster 15":"0, -1625, 4, -10","Oyster 50":"0, 2179, 235, -5","Oyster 43":"0, 2767, 470, -8","Oyster 48":"0, -2685, 2153, -5","Oyster 32":"0, -207, -1682, -8","Oyster 14":"0, -1252, 501, -8","Oyster 49":"0, 796, 2939, -5","Oyster 11":"0, 155, -1975, -8","Oyster 22":"0, 2578, 2382, 16","Oyster 9":"0, 725, -1849, -5","Oyster 8":"0, 1249, -2687, -1","Oyster 17":"0, -2505.406, 1543.724, -22.555","Oyster 25":"0, 2013, 1670, 7","Oyster 10":"0, 723, -1586, -3","Oyster 26":"0, 2531, 1569, 9","Oyster 16":"0, -1484, 1489, -10","Oyster 37":"0, -659, 874, -2","Oyster 12":"0, 1968, -1203, 17","Oyster 24":"0, 2130, 1152, 7","Oyster 13":"0, -2657, 1564, -6","Oyster 21":"0, -1364, 390, -5","Oyster 2":"0, 2750, -2584, -5","Oyster 42":"0, 2098, -108, -2","Oyster 19":"0, -1266, 966, -10","Oyster 27":"0, 2991, 2991, -10","Oyster 35":"0, -1097, -2858, -8","Oyster 20":"0, -1013, 478, -7","Oyster 36":"0, -2889, -1042, -9","Oyster 5":"0, 67, -1018, -5","Oyster 18":"0, -2727, -469, -5","Oyster 3":"0, 1279, -806, 85","Oyster 34":"0, -1175, -2639, -2.5","Oyster 23":"0, 2090, 1898, 8","Oyster 31":"0, 26.43, -1320.94, -10.04"}} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/first person camera offsets.json b/moonloader/lib/cheat-menu/json/first person camera offsets.json deleted file mode 100644 index 04c9d67..0000000 --- a/moonloader/lib/cheat-menu/json/first person camera offsets.json +++ /dev/null @@ -1 +0,0 @@ -{"531":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"401":{"y":-0.23999999463558,"x":0,"z":0.60000002384186},"405":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"514":{"y":0,"x":0,"z":0},"527":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"468":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"536":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"487":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"575":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"445":{"y":0,"x":0,"z":0},"432":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"404":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"581":{"y":0.30000001192093,"x":0.029999922960997,"z":0.49000009894371},"600":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"415":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"541":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"20839":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"451":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"587":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"567":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"411":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"496":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"522":{"y":0.77999985218048,"x":-4.4703482582342e-10,"z":0.3400000333786},"407":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"596":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"593":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"403":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"480":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"559":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"414":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"448":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"512":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"443":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"566":{"y":0,"x":0,"z":0},"434":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"447":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"547":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"429":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"573":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"534":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"438":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"502":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"506":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"456":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"466":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"481":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"602":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"517":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"562":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"418":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"461":{"y":0.62000000476837,"x":0,"z":0.38000005483627},"420":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"586":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"470":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"589":{"y":0.10000000149012,"x":0,"z":0.60000002384186},"533":{"y":0,"x":0,"z":0},"423":{"y":0.10000000149012,"x":0,"z":0.60000002384186}} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/handling flags.json b/moonloader/lib/cheat-menu/json/handling flags.json deleted file mode 100644 index 310145f..0000000 --- a/moonloader/lib/cheat-menu/json/handling flags.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "1" : "1G_BOOST", - "2" : "2G_BOOST", - "3" : "NPC_ANTI_ROLL", - "4" : "NPC_NEUTRAL_HANDL", - "5" : "NO_HANDBRAKE", - "6" : "STEER_REARWHEELS", - "7" : "HB_REARWHEEL_STEER", - "8" : "ALT_STEER_OPT", - "9" : "WHEEL_F_NARROW2", - "10" : "WHEEL_F_NARROW", - "11" : "WHEEL_F_WIDE", - "12" : "WHEEL_F_WIDE2", - "13" : "WHEEL_R_NARROW2", - "14" : "WHEEL_R_NARROW", - "15" : "WHEEL_R_WIDE", - "16" : "WHEEL_R_WIDE2", - "17" : "HYDRAULIC_GEOM", - "18" : "HYDRAULIC_INST", - "19" : "HYDRAULIC_NONE", - "20" : "NOS_INST", - "21" : "OFFROAD_ABILITY", - "22" : "OFFROAD_ABILITY2", - "23" : "HALOGEN_LIGHTS", - "24" : "PROC_REARWHEEL_1ST", - "25" : "USE_MAXSP_LIMIT", - "26" : "LOW_RIDER", - "27" : "STREET_RACER", - "28" : "SWINGING_CHASSIS" -} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/memory.json b/moonloader/lib/cheat-menu/json/memory.json deleted file mode 100644 index 2eac39a..0000000 --- a/moonloader/lib/cheat-menu/json/memory.json +++ /dev/null @@ -1 +0,0 @@ -{"float":{"Game speed in percent":"0xB7CB64","Change solid clouds":"0x716642","Muscle":"0xB793DC","Health":"0xB793E0","SMG":"0xB794B0","Desert eagle":"0xB7949C","Wanted Level":"0xBAA420","Mouse sensitivity":"0xB6EC1C","Stamina":"0xB793D8","Shotgun":"0xB794A0","AK47":"0xB794B4","Respect":"0xB79480","Pistol":"0xB79494","Fat":"0xB793D4","Sawn-off shotgun":"0xB794A4","Draw Distance":"0xBA6788","Sex Appeal":"0xB793E4","Combat shotgun":"0xB794A8","Gambling":"0xB794C4","Silenced pistol":"0xB79498","Gravity":"0x863984","Disable solid clouds":"0x716655","Vehicle density multiplier":"0x8A5B20","Machine pistol":"0xB794AC","Pedestrian density multiplier":"0x8D2530","M4":"0xB794B8"},"dword":{"Katie Progress":"0xA49F0C","Denise Progress":"0xA49EFC","Timer related to weather and time in ms":"0xB70158","Driving":"0xB790A0","Cycling":"0xB791B8","Money":"0xB7CE50","A global timer in ms":"0xB7CB84","Barbara Progress":"0xA49F08","Max wanted level":"0x8CDEE4","Timer for firefighter missions":"0xA519BC","Lung capacity":"0xB791A4","Timer for vigilante missions":"0xA519D8","Timer for taxi driver missions":"0xA5197C","Millie Progress":"0xA49F10","Current Car ID":"0xB700F0","Luck at gambling":"0xB791C4","Tip Bar timer for taxi driver missions":"0xA51980","How many days have passed in game":"0xB79038","Flying":"0xB7919C","Helena Progress":"0xA49F04","Timer for boat\/bike missions":"0xA51974","Timer for driving\/flying missions":"0xA49D54","Bike":"0xB791B4","Mission timer from a number to 0":"0xA5153C","Michelle Progress":"0xA49F00","Brightness":"0xBA6784","Timer for paramedic missions":"0xA519A8"},"byte":{"Funhouse Theme":"0x969176","Elvis Everywhere":"0x969157","Rainy Weather":"0x969139","Buffer of 30 last typed chars":"0x969110","Widescreen":"0xBA6793","Cars can Fly":"0x969160","Infinite Oxygen":"0x96916E","Radio Volume [0 through 64]":"0xBA6798","Game freezes like when in menu:":"0xB7CB49","Decreased Traffic":"0x96917A","Blow up All Cars":"0x96914A","Current blur level":"0x8D5104","Six Star Wanted Level":"0x969172","Is infinite run":"0xB7CEE4","Perfect \/ Insane Handling":"0x96914C","Is player fireproof":"0xB7CEE6","Thunderstorm":"0x969169","Black Traffic":"0x969151","Always Midnight":"0x969167","Peds Riot (Chaos Mode)":"0x969175","Tank Mode \/ Smash'n Boom":"0x969164","Max Muscle":"0x969155","Country Theme":"0x96917B","Current Weekday":"0xB7014E","Max Respect":"0x96917F","Menu show:":"0xB7CB49","Recruit Anyone (Rockets)":"0x96917E","Steer with mouse":"0xC1CC02","Tags number":"0xA9AD74","Antialiasing values:":"0xBA6814","Cars can drive on water":"0x969152","Boats Can Fly":"0x969153","Gangs control the streets":"0x96915B","People dropped off in taxi":"0xA49C30","CJ is Skinny":"0x969156","Overcast Weather":"0x969138","Slower Gameplay":"0x969177","Horseshoes number":"0xB791E4","All Green Lights":"0x96914E","Have Bounty on Head":"0x96913F","Resolution values:":"0xBA6820","Photographs taken number":"0xB790B8","Radar Mode":"0xBA676C","All cars have nitro":"0x969165","Is paynspray free":"0x96C009","Mip Mapping":"0xBA680C","Subtitles":"0xBA678C","Traffic is Cheap Cars":"0x96915E","Faster Gameplay":"0x96913C","Fly with mouse":"0xC1CC03","Radio Station ID values:":"0xBA679A","Current Radiostation-ID":"0x8CB7A5","Spawn Hydra":"0x969162","Sandstorm":"0x96916A","Radio Equalizer":"0xBA6799","Legend":"0xBA6792","All Taxis Have Nitro":"0x96918B","Everyone is Armed":"0x969140","Usertrack\/Automatic Media Scan":"0xBA680D","Never get Hungry":"0x969174","Pink Traffic":"0x969150","Mega Punch":"0x969173","Clear Wanted Level":"0x969135","Hud Mode":"0xBA6769","Very Sunny Weather":"0x969137","Current Minute":"0xB70152","Weapon Set 3":"0x969132","Peds Attack Each other with Golfclub":"0x96913E","Cars Float Away when hit":"0x969166","Aggressive Drivers":"0x96914F","Recruit Anyone (9mm)":"0x96917C","Weapon Set 1":"0x969130","Store gallery photos":"0xBA6830","Get Parachute":"0x96916F","Hitman in All Weapons":"0x969183","SFX Volume [0 through 64]":"0xBA6797","Infinite Ammo, No Reload":"0x969178","Gang Members everywhere":"0x96915A","Controller Configuration values:":"0xBA6818","Oysters number":"0xB791EC","Stop Game Clock - Orange Sky":"0x969168","Mega Jump":"0x96916C","Current Hour":"0xB70153","Never Wanted":"0x969171","Radio Auto-tune":"0xBA6795","Max Stamina":"0x969181","Faster Clock":"0x96913B","Traffic is Fast Cars":"0x96915F","Foggy Weather":"0x96913A","Suicide":"0x96914D","Slut Magnet":"0x96915D","Beach Theme":"0x969159","Recruit Anyone (AK47)":"0x96917D","Frame limiter":"0xBA6794","Infinite Health":"0x96916D","Get Jetpack":"0x969170","Increase Wanted Level 2 Stars":"0x969134","Is radar greyed out":"0xA444A4","Safehouse visits number":"0xB79040","CJ is Fat":"0x969154","Max Sex Appeal":"0x969180","Usertrack\/Play mode values:":"0xBA67F8","Ninja Theme":"0x96915C","Huge Bunny Hop":"0x969161","Wheels Only":"0x96914B","Full Weapon Aiming while driving":"0x969179","Sunny Weather":"0x969136","Visual FX Quality":"0xA9AE54","Weapon Set 2":"0x969131","Peds attack with rockets":"0x969158","Health+Armor+250K":"0x969133"},"word":{},"All":{}} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/mission.json b/moonloader/lib/cheat-menu/json/mission.json deleted file mode 100644 index e4cf8c2..0000000 --- a/moonloader/lib/cheat-menu/json/mission.json +++ /dev/null @@ -1,160 +0,0 @@ -{ - "Loco syndicate": { - "Outrider": 60, - "T-Bone Mendez": 65, - "Mike Toreno": 66, - "Jizzy": 59, - "Yay Ka-Boom-Boom": 63, - "Photo Opportunity": 58, - "Ice Cold Killa": 61, - "Torenos Last Flight": 62, - "Pier 69": 64 - }, - "Frank tenpenny": { - "Gray Imports": 23, - "Snail Trail": 52, - "Badlands": 39, - "Burning Desire": 22, - "Misappropriation": 93, - "High Noon": 94 - }, - "Big smoke": { - "Wrong Side of the Tracks": 29, - "OG Loc": 27, - "Just Business": 30, - "Running Dog": 28 - }, - "The truth": { - "Body Harvest": 46, - "Are you going to San Fierro?": 47 - }, - "Wang cars": { - "Test Drive": 68, - "Back to School": 71, - "Zeroing In": 67, - "Customs Fast Track": 69, - "Puncture Wounds": 70 - }, - "Zero": { - "Supply Lines": 73, - "New Model Army": 74, - "Air Raid": 72 - }, - "Introduction": { - "Ryder": 12, - "Big Smoke": 11 - }, - "Heist": { - "Key To Her Heart": 97, - "Architectural Espionage": 96, - "Breaking the Bank at Caligulas": 101, - "Dam And Blast": 98, - "Cop Wheels": 99, - "Up, Up and Away!": 100 - }, - "Cesar vialpando": { - "King in Exile": 45 - }, - "WuZiMu": { - "Lure": 55, - "Mountain Cloud Boys": 53, - "Amphibious Assault": 56, - "The Da Nang Thang": 57, - "Ran Fa Li": 54 - }, - "Sweet": { - "The Green Sabre": 38, - "Doberman": 21, - "Tagging Up Turf": 13, - "Drive-By": 17, - "Drive-Thru": 15, - "Cleaning The Hood": 14, - "Beat Down on B Dup": 106, - "Sweets Girl": 18, - "Grove 4 Life": 107, - "Nines And AKs": 16, - "Reuniting The Families": 37, - "Cesar Vialpando": 19, - "Los Sepulcros": 20 - }, - "Arena missions": { - "Blood Ring": 128, - "Beat the Cock!": 130, - "Kickstart": 129 - }, - "Video games": { - "They Crawled From Uranus": 3, - "Lets Get Ready To Bumble": 6, - "Dualuty": 4, - "Go Go Space Monkey": 5, - "Beefy Baron": 10, - "Lowrider (Bet And Dance)": 9, - "Inside Track Betting": 7 - }, - "Caligulas casino": { - "The Meat Business": 90, - "Intensive Care": 89, - "Freefall": 91, - "Saint Marks Bistro": 92 - }, - "OG loc": { - "Madd Doggs Rhymes": 32, - "House Party": 34, - "Lifes a Beach": 31, - "Management Issues": 33 - }, - "Miscellaneous": { - "Trucking": 117, - "Quarry": 118 - }, - "Ryder": { - "Catalyst": 25, - "Robbing Uncle Sam": 26, - "Home Invasion": 24 - }, - "Madd dogg": { - "Madd Dogg": 95 - }, - "Verdant meadows airstrip": { - "N.O.E.": 79, - "Green Goo": 82, - "Stowaway": 80, - "Learning to Fly": 83, - "Black Project": 81 - }, - "Mike toreno": { - "Interdiction": 77, - "Monster": 75, - "Verdant Meadows": 78, - "Highjack": 76 - }, - "Riot": { - "Riot": 108, - "Los Desperados": 109, - "End Of The Line 1": 110, - "End Of The Line 2": 111, - "End Of The Line 3": 112 - }, - "The four dragons casino": { - "Explosive Situation": 85, - "Don Peyote": 88, - "A Home In The Hills": 102, - "Fender Ketchup": 84, - "Fish in a Barrel": 87, - "Youve Had Your Chips": 86 - }, - "Robbery": { - "Small Town Bank": 42, - "Against All Odds": 44, - "Tanker Commander": 43, - "Local Liquor Store": 41 - }, - "Carl johnson": { - "Deconstruction": 50, - "Vertical Bird": 103, - "Wear Flowers In Your Hair": 49, - "Home Coming": 104, - "555 WE TIP": 51, - "Cut Throat Business": 105 - } -} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/model flags.json b/moonloader/lib/cheat-menu/json/model flags.json deleted file mode 100644 index 7677b1b..0000000 --- a/moonloader/lib/cheat-menu/json/model flags.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "1" : "IS_VAN", - "2" : "IS_BUS", - "3" : "IS_LOW", - "4" : "IS_BIG", - "5" : "REVERSE_BONNET", - "6" : "HANGING_BOOT", - "7" : "TAILGATE_BOOT", - "8" : "NOSWING_BOOT", - "9" : "NO_DOORS", - "10" : "TANDEM_SEATS", - "11" : "SIT_IN_BOAT", - "12" : "CONVERTIBLE", - "13" : "NO_EXHAUST", - "14" : "DOUBLE_EXHAUST", - "15" : "NO1FPS_LOOK_BEHIND", - "16" : "FORCE_DOOR_CHECK", - "17" : "AXLE_F_NOTILT", - "18" : "AXLE_F_SOLID", - "19" : "AXLE_F_MCPHERSON", - "20" : "AXLE_F_REVERSE", - "21" : "AXLE_R_NOTILT", - "22" : "AXLE_R_SOLID", - "23" : "AXLE_R_MCPHERSON", - "24" : "AXLE_R_REVERSE", - "25" : "IS_BIKE", - "26" : "IS_HELI", - "27" : "IS_PLANE", - "28" : "IS_BOAT", - "29" : "BOUNCE_PANELS", - "30" : "DOUBLE_RWHEELS", - "31" : "FORCE_GROUND_CLEARANCE", - "32" : "IS_HATCHBAC1K" -} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/neon data.json b/moonloader/lib/cheat-menu/json/neon data.json deleted file mode 100644 index 444ca33..0000000 --- a/moonloader/lib/cheat-menu/json/neon data.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "buffalo":{ - "X":0.2, - "Y":0.4 - }, - "stretch":{ - "X":0.15, - "Y":0.5 - }, - "infernu":{ - "X":0.15, - "Y":0.15 - }, - "cheetah":{ - "X":0.15, - "Y":0.1 - }, - "banshee":{ - "X":0.15, - "Y":0.4 - }, - "turismo":{ - "X":0.1, - "Y":0.25 - }, - "comet":{ - "X":0.15, - "Y":0.35 - }, - "supergt":{ - "Y":0.4, - "X":0.16 - }, - "feltzer":{ - "X":0.15, - "Y":0.3 - }, - "blade":{ - "X":0.17, - "Y":0.75 - }, - "bullet":{ - "X":0.18, - "Y":0.1 - }, - "windsor":{ - "Y":0.15, - "X":0.17 - }, - "alpha":{ - "X":0.18, - "Y":0.4 - } - } \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/ped special.json b/moonloader/lib/cheat-menu/json/ped special.json deleted file mode 100644 index 2e3c56d..0000000 --- a/moonloader/lib/cheat-menu/json/ped special.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "1" : "TRUTH", - "2" : "MACCER", - "3" : "ANDRE", - "4" : "BBTHIN", - "5" : "BB", - "6" : "EMMET", - "8" : "JANITOR", - "42" : "JETHRO", - "65" : "KENDL", - "119" : "SINDACO", - "149" : "SMOKEV", - "190-1" : "COPGRL1", - "190-2" : "COPGRL2", - "191-1" : "GUNGRL1", - "191-2" : "GUNGRL2", - "192-1" : "MECGRL1", - "192-2" : "MECGRL2", - "193-1" : "NURGRL1", - "193-2" : "NURGRL2", - "194-1" : "CROGRL1", - "194-2" : "CROGRL2", - "195-1" : "GANGRL1", - "195-2" : "GANGRL2", - "208" : "SUZIE", - "265" : "TENPEN", - "266" : "PULASKI", - "267" : "HERN", - "268" : "DWAYNE", - "269" : "SMOKE", - "270" : "SWEET", - "271" : "RYDER", - "272" : "FORELLI", - "273" : "TBONE", - "289" : "ZERO", - "290" : "ROSE", - "291" : "PAUL", - "292" : "CESAR", - "293" : "OGLOC", - "294" : "WUZIMU", - "295" : "TORINO", - "296" : "JIZZY", - "297" : "MADDOGG", - "298" : "CAT", - "299" : "CLAUDE" -} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/ped.json b/moonloader/lib/cheat-menu/json/ped.json deleted file mode 100644 index c8dbf36..0000000 --- a/moonloader/lib/cheat-menu/json/ped.json +++ /dev/null @@ -1,316 +0,0 @@ -{ - "Model" : "Name", - - "0" : "CJ", - "1" : "TRUTH", - "2" : "MACCER", - "3" : "ANDRE", - "4" : "BBTHIN", - "5" : "BB", - "6" : "EMMET", - "7" : "MALE01", - "8" : "JANITOR", - "9" : "BFORI", - "10" : "BFOST", - "11" : "VBFYCRP", - "12" : "BFYRI", - "13" : "BFYST", - "14" : "BMORI", - "15" : "BMOST", - "16" : "BMYAP", - "17" : "BMYBU", - "18" : "BMYBE", - "19" : "BMYDJ", - "20" : "BMYRI", - "21" : "BMYCR", - "22" : "BMYST", - "23" : "WMYBMX", - "24" : "WBDYG1", - "25" : "WBDYG2", - "26" : "WMYBP", - "27" : "WMYCON", - "28" : "BMYDRUG", - "29" : "WMYDRUG", - "30" : "HMYDRUG", - "31" : "DWFOLC", - "32" : "DWMOLC1", - "33" : "DWMOLC2", - "34" : "DWMYLC1", - "35" : "HMOGAR", - "36" : "WMYGOL1", - "37" : "WMYGOL2", - "38" : "HFORI", - "39" : "HFOST", - "40" : "HFYRI", - "41" : "HFYST", - "42" : "JETHRO", - "43" : "HMORI", - "44" : "HMOST", - "45" : "HMYBE", - "46" : "HMYRI", - "47" : "HMYCR", - "48" : "HMYST", - "49" : "OMOKUNG", - "50" : "WMYMECH", - "51" : "BMYMOUN", - "52" : "WMYMOUN", - "53" : "OFORI", - "54" : "OFOST", - "55" : "OFYRI", - "56" : "OFYST", - "57" : "OMORI", - "58" : "OMOST", - "59" : "OMYRI", - "60" : "OMYST", - "61" : "WMYPLT", - "62" : "WMOPJ", - "63" : "BFYPRO", - "64" : "HFYPRO", - "65" : "KENDL", - "66" : "BMYPOL1", - "67" : "BMYPOL2", - "68" : "WMOPREA", - "69" : "SBFYST", - "70" : "WMOSCI", - "71" : "WMYSGRD", - "72" : "SWMYHP1", - "73" : "SWMYHP2", - "75" : "SWFOPRO", - "76" : "WFYSTEW", - "77" : "SWMOTR1", - "78" : "WMOTR1", - "79" : "BMOTR1", - "80" : "VBMYBOX", - "81" : "VWMYBOX", - "82" : "VHMYELV", - "83" : "VBMYELV", - "84" : "VIMYELV", - "85" : "VWFYPRO", - "87" : "VWFYST1", - "88" : "WFORI", - "89" : "WFOST", - "90" : "WFYJG", - "91" : "WFYRI", - "92" : "WFYRO", - "93" : "WFYST", - "94" : "WMORI", - "95" : "WMOST", - "96" : "WMYJG", - "97" : "WMYLG", - "98" : "WMYRI", - "99" : "WMYRO", - "100" : "WMYCR", - "101" : "WMYST", - "102" : "BALLAS1", - "103" : "BALLAS2", - "104" : "BALLAS3", - "105" : "FAM1", - "106" : "FAM2", - "107" : "FAM3", - "108" : "LSV1", - "109" : "LSV2", - "110" : "LSV3", - "111" : "MAFFA", - "112" : "MAFFB", - "113" : "MAFBOSS", - "114" : "VLA1", - "115" : "VLA2", - "116" : "VLA3", - "117" : "TRIADA", - "118" : "TRIADB", - "119" : "SINDACO", - "120" : "TRIBOSS", - "121" : "DNB1", - "122" : "DNB2", - "123" : "DNB3", - "124" : "VMAFF1", - "125" : "VMAFF2", - "126" : "VMAFF3", - "127" : "VMAFF4", - "128" : "DNMYLC", - "129" : "DNFOLC1", - "130" : "DNFOLC2", - "131" : "DNFYLC", - "132" : "DNMOLC1", - "133" : "DNMOLC2", - "134" : "SBMOTR2", - "135" : "SWMOTR2", - "136" : "SBMYTR3", - "137" : "SWMOTR3", - "138" : "WFYBE", - "139" : "BFYBE", - "140" : "HFYBE", - "141" : "SOFYBU", - "142" : "SBMYST", - "143" : "SBMYCR", - "144" : "BMYCG", - "145" : "WFYCRK", - "146" : "HMYCM", - "147" : "WMYBU", - "148" : "BFYBU", - "149" : "SMOKEV", - "150" : "WFYBU", - "151" : "DWFYLC1", - "152" : "WFYPRO", - "153" : "WMYCONB", - "154" : "WMYBE", - "155" : "WMYPIZZ", - "156" : "BMOBAR", - "157" : "CWFYHB", - "158" : "CWMOFR", - "159" : "CWMOHB1", - "160" : "CWMOHB2", - "161" : "CWMYFR", - "162" : "CWMYHB1", - "163" : "BMYBOUN", - "164" : "WMYBOUN", - "165" : "WMOMIB", - "166" : "BMYMIB", - "167" : "WMYBELL", - "168" : "BMOCHIL", - "169" : "SOFYRI", - "170" : "SOMYST", - "171" : "VWMYBJD", - "172" : "VWFYCRP", - "173" : "SFR1", - "174" : "SFR2", - "175" : "SFR3", - "176" : "BMYBAR", - "177" : "WMYBAR", - "178" : "WFYSEX", - "179" : "WMYAMMO", - "180" : "BMYTATT", - "181" : "VWMYCR", - "182" : "VBMOCD", - "183" : "VBMYCR", - "184" : "VHMYCR", - "185" : "SBMYRI", - "186" : "SOMYRI", - "187" : "SOMYBU", - "188" : "SWMYST", - "189" : "WMYVA", - "190" : "COPGRL3", - "190-1" : "COPGRL1", - "190-2" : "COPGRL2", - "191" : "GUNGRL3", - "191-1" : "GUNGRL1", - "191-2" : "GUNGRL2", - "192" : "MECGRL3", - "192-1" : "MECGRL1", - "192-2" : "MECGRL2", - "193" : "NURGRL3", - "193-1" : "NURGRL1", - "193-2" : "NURGRL2", - "194" : "CROGRL3", - "194-1" : "CROGRL1", - "194-2" : "CROGRL2", - "195" : "GANGRL3", - "195-1" : "GANGRL1", - "195-2" : "GANGRL2", - "196" : "CWFOFR", - "197" : "CWFOHB", - "198" : "CWFYFR1", - "199" : "CWFYFR2", - "200" : "CWMYHB2", - "201" : "DWFYLC2", - "202" : "DWMYLC2", - "203" : "OMYKARA", - "204" : "WMYKARA", - "205" : "WFYBURG", - "206" : "VWMYCD", - "207" : "VHFYPRO", - "208" : "SUZIE", - "209" : "OMONOOD", - "210" : "OMOBOAT", - "211" : "WFYCLOT", - "212" : "VWMOTR1", - "213" : "VWMOTR2", - "214" : "VWFYWAI", - "215" : "SBFORI", - "216" : "SWFYRI", - "217" : "WMYCLOT", - "218" : "SBFOST", - "219" : "SBFYRI", - "220" : "SBMOCD", - "221" : "SBMORI", - "222" : "SBMOST", - "223" : "SHMYCR", - "224" : "SOFORI", - "225" : "SOFOST", - "226" : "SOFYST", - "227" : "SOMOBU", - "228" : "SOMORI", - "229" : "SOMOST", - "230" : "SWMOTR5", - "231" : "SWFORI", - "232" : "SWFOST", - "233" : "SWFYST", - "234" : "SWMOCD", - "235" : "SWMORI", - "236" : "SWMOST", - "237" : "SHFYPRO", - "238" : "SBFYPRO", - "239" : "SWMOTR4", - "240" : "SWMYRI", - "241" : "SMYST", - "242" : "SMYST2", - "243" : "SFYPRO", - "244" : "VBFYST2", - "245" : "VBFYPRO", - "246" : "VHFYST3", - "247" : "BIKERA", - "248" : "BIKERB", - "249" : "BMYPIMP", - "250" : "SWMYCR", - "251" : "WFYLG", - "252" : "WMYVA2", - "253" : "BMOSEC", - "254" : "BIKDRUG", - "255" : "WMYCH", - "256" : "SBFYSTR", - "257" : "SWFYSTR", - "258" : "HECK1", - "259" : "HECK2", - "260" : "BMYCON", - "261" : "WMYCD1", - "262" : "BMOCD", - "263" : "VWFYWA2", - "264" : "WMOICE", - "265" : "TENPEN", - "266" : "PULASKI", - "267" : "HERN", - "268" : "DWAYNE", - "269" : "SMOKE", - "270" : "SWEET", - "271" : "RYDER", - "272" : "FORELLI", - "273" : "TBONE", - "274" : "LAEMT1", - "275" : "LVEMT1", - "276" : "SFEMT1", - "277" : "LAFD1", - "278" : "LVFD1", - "279" : "SFFD1", - "280" : "LAPD1", - "281" : "SFPD1", - "282" : "LVPD1", - "283" : "CSHER", - "284" : "LAPDM1", - "285" : "SWAT", - "286" : "FBI", - "287" : "ARMY", - "288" : "DSHER", - "289" : "ZERO", - "290" : "ROSE", - "291" : "PAUL", - "292" : "CESAR", - "293" : "OGLOC", - "294" : "WUZIMU", - "295" : "TORINO", - "296" : "JIZZY", - "297" : "MADDOGG", - "298" : "CAT", - "299" : "CLAUDE", - - "Note" : "Last line should not have comma at the end" -} diff --git a/moonloader/lib/cheat-menu/json/radar sprite.json b/moonloader/lib/cheat-menu/json/radar sprite.json deleted file mode 100644 index f346644..0000000 --- a/moonloader/lib/cheat-menu/json/radar sprite.json +++ /dev/null @@ -1,66 +0,0 @@ -{ -"0" : "No sprite", -"1" : "White sprite", -"2" : "Centre sprite", -"3" : "Map sprite", -"4" : "North sprite", -"5" : "Airport sprite", -"6" : "Ammunation sprite", -"7" : "Barber sprite", -"8" : "Bigsmoke sprite", -"9" : "Boatyard sprite", -"10" : "Burgershot sprite", -"11" : "Bulldozer sprite", -"12" : "Catalinapink sprite", -"13" : "Cesarviapando sprite", -"14" : "Chicken sprite", -"15" : "Cj sprite", -"16" : "Crash1 sprite", -"17" : "Diner sprite", -"18" : "Emmetgun sprite", -"19" : "Enemyattack sprite", -"20" : "Fire sprite", -"21" : "Girlfriend sprite", -"22" : "Hostpital sprite", -"23" : "Logosyndicate sprite", -"24" : "Maddog sprite", -"25" : "Mafiacasino sprite", -"26" : "Mcstrap sprite", -"27" : "Modgarage sprite", -"28" : "Ogloc sprite", -"29" : "Pizza sprite", -"30" : "Police sprite", -"31" : "Propertyg sprite", -"32" : "Propertyr sprite", -"33" : "Race sprite", -"34" : "Ryder sprite", -"35" : "Savegame sprite", -"36" : "School sprite", -"37" : "Qmark sprite", -"38" : "Sweet sprite", -"39" : "Tattoo sprite", -"40" : "Thetruth sprite", -"41" : "Waypoint sprite", -"42" : "Torenoranch sprite", -"43" : "Triads sprite", -"44" : "Triadscasino sprite", -"45" : "Tshirt sprite", -"46" : "Woozie sprite", -"47" : "Zero sprite", -"48" : "Datedisco sprite", -"49" : "Datedrink sprite", -"50" : "Datefood sprite", -"51" : "Truck sprite", -"52" : "Cash sprite", -"53" : "Flag sprite", -"54" : "Gym sprite", -"55" : "Impound sprite", -"56" : "Light sprite", -"57" : "Runway sprite", -"58" : "Gangb sprite", -"59" : "Gangp sprite", -"60" : "Gangy sprite", -"61" : "Gangn sprite", -"62" : "Gangg sprite", -"63" : "Sprayshop sprite" -} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/stat.json b/moonloader/lib/cheat-menu/json/stat.json deleted file mode 100644 index 737dfca..0000000 --- a/moonloader/lib/cheat-menu/json/stat.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "0" : "Progress made", - "1" : "Total progress", - "2" : "Furthest Hoop", - "3" : "Distance travelled on foot", - "4" : "Distance travelled by car", - "5" : "Distance travelled by motorbike", - "6" : "Distance travelled by boat", - "7" : "Distance travelled by golf cart", - "8" : "Distance travelled by helicopter", - "9" : "Distance travelled by plane", - "10" : "Longest Wheelie distance", - "11" : "Longest Stoppie distance", - "12" : "Longest 2 wheels distance", - "13" : "Weapon Budget", - "14" : "Fashion Budget", - "15" : "Property Budget", - "16" : "Auto Repair and Painting Budget", - "17" : "Longest Wheelie time", - "18" : "Longest Stoppie time", - "19" : "Longest 2 wheels time", - "20" : "Food Budget", - "21" : "Fat", - "22" : "Stamina", - "23" : "Muscle", - "24" : "Max Health", - "25" : "Sex appeal", - "26" : "Distance travelled by swimming", - "27" : "Distance travelled by bicycle", - "28" : "Distance travelled on treadmill", - "29" : "Distance travelled on exercise bike", - "30" : "Tattoo budget", - "31" : "Hairdressing budget", - "32" : "Girlfriend budget", - "33" : "Prostitute budget", - "34" : "Furniture budget", - "35" : "Money spent gambling", - "36" : "Money made from pimping", - "37" : "Money won gambling", - "38" : "Biggest gambling win", - "39" : "Biggest gambling loss", - "40" : "Largest burglary swag", - "41" : "Money made from burglary", - "42" : "Money spent building property", - "43" : "unused", - "44" : "Longest treadmill time", - "45" : "Longest exercise bike time", - "46" : "Heaviest weight on bench press", - "47" : "Heaviest weight on dumbbells", - "48" : "Best time in 8-Track", - "49" : "BMX best time", - "50" : "Lightest weight", - "51" : "Longest chase time with 5 or more stars", - "52" : "Last chase time with 5 or more stars", - "53" : "Wage bill", - "54" : "Strip club budget", - "55" : "Car modification budget", - "56" : "Time spent shopping", - "57" : "Time spent gambling", - "58" : "Time spent on longest mission", - "59" : "Time spent on quickest mission", - "60" : "Average mission time", - "61" : "Drugs budget", - "62" : "Total shopping budget", - "63" : "Time spent underwater", - "64" : "Total respect", - "65" : "Girlfriend respect", - "66" : "Clothes respect", - "67" : "Fitness respect", - "68" : "Respect", - "69" : "Pistol Skill", - "70" : "Silenced Pistol Skill", - "71" : "Desert Eagle Skill", - "72" : "Shotgun Skill", - "73" : "Sawn-Off Shotgun Skill", - "74" : "Combat Shotgun Skill", - "75" : "Machine Pistol Skill", - "76" : "SMG Skill", - "77" : "AK-47 Skill", - "78" : "M4 Skill", - "79" : "Rifle Skill", - "80" : "Appearance", - "81" : "Gambling", - "120" : "People wasted by others", - "121" : "People you've wasted", - "122" : "Road Vehicles destroyed", - "123" : "Boats destroyed", - "124" : "Planes & Helicopters destroyed", - "125" : "Cost of property damaged", - "126" : "Bullets fired", - "127" : "Kgs of explosives used", - "128" : "Bullets that hit", - "129" : "Tires popped with gunfire", - "130" : "Number of headshots", - "131" : "Total number of wanted stars attained", - "132" : "Total number of wanted stars evaded", - "133" : "Times busted", - "134" : "Days passed in game", - "135" : "Number of hospital visits", - "136" : "Safehouse visits", - "137" : "Times cheated", - "138" : "Vehicle Resprays", - "139" : "Maximum INSANE Jump distance", - "140" : "Maximum INSANE Jump height", - "141" : "Maximum INSANE Jump flips", - "142" : "Maximum INSANE Jump rotation", - "143" : "Best INSANE stunt awarded", - "144" : "Unique Jumps found", - "145" : "Unique Jumps done", - "146" : "Mission attempts", - "147" : "Missions passed", - "148" : "Total number of missions in game", - "149" : "Cash made in a Taxi", - "150" : "Passengers dropped off", - "151" : "People saved in an Ambulance", - "152" : "Criminals killed on Vigilante Mission", - "153" : "Total fires extinguished", - "154" : "Packages Delivered", - "155" : "Assassinations", - "156" : "Last dance score", - "157" : "Highest Vigilante Mission level", - "158" : "Highest Paramedic Mission level", - "159" : "Highest Firefighter Mission level", - "160" : "Driving skill", - "161" : "Number of Truck missions passed", - "162" : "Money made in Truck", - "163" : "Recruited gang members killed", - "164" : "Armor", - "165" : "Energy", - "166" : "Photographs Taken", - "167" : "Rampages attempted", - "168" : "Rampages passed", - "169" : "Flight time", - "170" : "Times drowned", - "171" : "Number of girls pimped", - "172" : "Best position in 8-Track", - "173" : "Time on jetpack", - "174" : "Shooting range levels passed", - "175" : "Most cars parked on 'Valet Parking'", - "176" : "Kills since last checkpoint", - "177" : "Total legitimate kills", - "178" : "Number of 'Bloodring' kills", - "179" : "Total time in bloodring", - "180" : "No more hurricanes Flag", - "181" : "City unlocked", - "182" : "Number of Police bribes", - "183" : "Number of cars stolen", - "184" : "Current number of girlfriends", - "185" : "Number of disastrous dates", - "186" : "Number of girls dated", - "187" : "Number of times scored with a girl", - "188" : "Number of successful dates", - "189" : "Number of girls dumped", - "190" : "Number of prostitutes visited", - "191" : "Number of houses burgled", - "192" : "Number of safes cracked", - "193" : "Burgular status", - "194" : "Number of stolen items sold", - "195" : "Number of eight balls in pool", - "196" : "Total number of wins playing pool", - "197" : "Total number of losses playing pool", - "198" : "Times visited the gym", - "199" : "Body type", - "200" : "Number of meals eaten", - "201" : "Money made in Quarry", - "202" : "Time taken to Complete Quarry", - "203" : "Number of furniture purchased", - "204" : "Favorite console game", - "205" : "Highest civilian peds killed on Rampage", - "206" : "Highest police peds killed on Rampage", - "207" : "Highest civilian vehicles destroyed on Rampage", - "208" : "Highest police vehicles destroyed on Rampage", - "209" : "Highest number of tanks destroyed on Rampage", - "210" : "Pimping level", - "211" : "Kickstart best score", - "212" : "Best lap time in 8-Track", - "213" : "Number of vehicles exported", - "214" : "Number of vehicles imported", - "215" : "Highest basketball score", - "216" : "Fires started", - "217" : "Amount of drugs sold", - "218" : "Amount of drugs bought", - "219" : "Best lap time in dirt track", - "220" : "Best time in dirt track", - "221" : "Best position in dirt track", - "222" : "NRG-500 best time", - "223" : "Flying skill", - "224" : "Respect Mission", - "225" : "Lung capacity", - "226" : "Game gore rating", - "227" : "Game sex rating", - "228" : "Respect Mission Total", - "229" : "Bike skill", - "230" : "Cycling skill", - "231" : "Snapshots taken", - "232" : "Total snapshots", - "233" : "Luck", - "234" : "Territories taken over", - "235" : "Territories lost", - "236" : "Territories held", - "237" : "Highest number of territories held", - "238" : "Gang members recruited", - "239" : "Enemy gang members killed", - "240" : "Friendly gang members killed", - "241" : "Horseshoes collected", - "242" : "Total horseshoes", - "243" : "Oysters collected", - "244" : "Total oysters", - "245" : "Calories", - "246" : "2 Player Rampage best time", - "247" : "2 Player Car Rampage best time", - "248" : "2 Player On Foot Rampage best time", - "249" : "2 Player Chopper Rampage best time", - "250" : "2 Player Bike Rampage best time", - "251" : "'Keepie Uppy' best time", - "252" : "Progress with Denise", - "253" : "Progress with Michelle", - "254" : "Progress with Helena", - "255" : "Progress with Barbara", - "256" : "Progress with Katie", - "257" : "Progress with Millie", - "258" : "Best position in Lowrider Race", - "259" : "Best time in Lowrider Race", - "260" : "Best position in Little Loop", - "261" : "Best time in Little Loop", - "262" : "Best position in Backroad Wanderer", - "263" : "Best time in Backroad Wanderer", - "264" : "Best position in City Circuit", - "265" : "Best time in City Circuit", - "266" : "Best position in Vinewood", - "267" : "Best time in Vinewood", - "268" : "Best position in Freeway", - "269" : "Best time in Freeway", - "270" : "Best position in Into the Country", - "271" : "Best time in Into the Country", - "272" : "Best position in Badlands A", - "273" : "Best time in Badlands A", - "274" : "Best position in Badlands B", - "275" : "Best time in Badlands B", - "276" : "Best position in Dirtbike Danger", - "277" : "Best time in Dirtbike Danger", - "278" : "Best position in Bandito County", - "279" : "Best time in Bandito County", - "280" : "Best position in Go-Go-Kart", - "281" : "Best time in Go-Go-Kart", - "282" : "Best position in San Fierro Fastlane", - "283" : "Best time in San Fierro Fastlane", - "284" : "Best position in San Fierro Hills", - "285" : "Best time in San Fierro Hills", - "286" : "Best position in Country Endurance", - "287" : "Best time in Country Endurance", - "288" : "Best position in SF to LV", - "289" : "Best time in SF to LV", - "290" : "Best position in Dam Rider", - "291" : "Best time in Dam Rider", - "292" : "Best position in Desert Tricks", - "293" : "Best time in Desert Tricks", - "294" : "Best position in LV Ringroad", - "295" : "Best time in LV Ringroad", - "296" : "Best time in World War Aces", - "297" : "Best time in Barnstorming", - "298" : "Best time in Military Service", - "299" : "Best time in Chopper Checkpoint", - "300" : "Best time in Whirly Bird Waypoint", - "301" : "Best time in Heli Hell", - "302" : "Drive-thru mission accomplished", - "303" : "Management Issues mission accomplished", - "304" : "555 WE TIP mission accomplished", - "305" : "Yay Ka-Boom-Boom mission accomplished", - "306" : "Fish in a Barrel mission accomplished", - "307" : "Breaking the Bank at Caligula's mission accomplished", - "308" : "A Home In The Hills mission accomplished", - "309" : "maybe set riot mode", - "310" : "Ryder's mission Robbing Uncle Sam accomplished", - "311" : "Mike Toreno mission accomplished", - "312" : "Architectural Espionage mission accomplished", - "313" : "Jizzy mission accomplished", - "314" : "Reuniting the Families mission accomplished", - "315" : "Small Town Bank mission accomplished", - "316" : "Photo Opportunity mission accomplished", - "317" : "Don Peyote mission accomplished", - "318" : "Local Liquor Store mission accomplished", - "319" : "Badlands mission accomplished", - "320" : "Playing time", - "321" : "Hidden Packages found", - "322" : "Tags sprayed", - "323" : "Least favorite gang", - "324" : "Gang members wasted", - "325" : "Criminals wasted", - "326" : "Most Favorite Radio Station", - "327" : "Least Favorite Radio Station", - "328" : "Current weapon skill", - "329" : "Weapon skill levels", - "330" : "Pilot ranking", - "331" : "Strongest Gang", - "332" : "2nd strongest gang", - "333" : "3rd strongest gang", - "334" : "Money lost gambling", - "335" : "Riot Mission accomplished", - "336" : "Gang strength", - "337" : "Territory under control", - "338" : "Are you going to San Fierro? mission accomplished", - "339" : "High Noon mission accomplished", - "340" : "The Green Sabre mission accomplished", - "341" : "maybe Catalina meeting", - "342" : "maybe Wu Zi meeting" -} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/styles.json b/moonloader/lib/cheat-menu/json/styles.json deleted file mode 100644 index 7a1eb80..0000000 --- a/moonloader/lib/cheat-menu/json/styles.json +++ /dev/null @@ -1 +0,0 @@ -{"Classic":{"FrameBorderSize":0,"TabHovered":"0xcce67373","ButtonHovered":"0xcce67373","ButtonActive":"0xd7b96767","ResizeGripActive":"0xe6ffd1c7","ChildRounding":0,"GrabRounding":0,"WindowBorderSize":0,"ResizeGripHovered":"0x99ffd1c7","SliderGrab":"0x4dffffff","DisplaySafeAreaPadding":"3 3","TouchExtraPadding":"0 0","TabRounding":3,"TitleBgCollapsed":"0x33cc6666","TitleBg":"0xff8a4545","ResizeGrip":"0x29ffffff","PopupRounding":3,"IndentSpacing":21,"HeaderHovered":"0xcce67373","PopupBorderSize":0,"WindowTitleAlign":"0.5 0.5","CheckMark":"0x80e6e6e6","ColumnsMinSpacing":6,"HeaderActive":"0xccde8787","AntiAliasedFill":true,"BorderShadow":"0x00000000","ScrollbarGrab":"0x4dcc6666","MouseCursorScale":1,"AntiAliasedLines":true,"FrameBgActive":"0x64a3696a","ChildBorderSize":0,"ChildBg":"0x00000000","PlotHistogram":"0xff00b3e6","SliderGrabActive":"0x99cc6369","ColorButtonPosition":1,"ModalWindowDimBg":"0x82ae5656","FrameBg":"0x636e6e6e","ItemSpacing":"4 4","TabBorderSize":0,"ScrollbarSize":12,"PlotLines":"0xffffffff","TitleBgActive":"0xffa15252","MenuBarBg":"0xcc8c6666","Alpha":1,"TextSelectedBg":"0x59ff0000","Border":"0x80808080","Tab":"0xc8ae5656","FrameRounding":0,"DisplayWindowPadding":"19 19","WindowPadding":"8 8","NavHighlight":"0xcce67373","DragDropTarget":"0xe600ffff","PlotLinesHovered":"0xff00b3e6","TabActive":"0xd7b96767","GrabMinSize":10,"FramePadding":"4 3","SeparatorActive":"0xffe6b3b3","NavWindowingHighlight":"0xb3ffffff","CurveTessellationTol":1.25,"WindowMinSize":"250 350","ScrollbarGrabActive":"0x99cc6369","Separator":"0x99808080","ScrollbarBg":"0x994d4033","FrameBgHovered":"0x66b07878","ScrollbarRounding":3,"ItemInnerSpacing":"4 4","TabUnfocused":"0xd1914848","WindowRounding":3,"SelectableTextAlign":"0 0","PopupBg":"0xff241c1c","WindowMenuButtonPosition":0,"Button":"0xdea15252","TextDisabled":"0xff999999","NavWindowingDimBg":"0x33cccccc","ScrollbarGrabHovered":"0x66cc6666","WindowBg":"0xd2000000","ButtonTextAlign":"0.5 0.5","SeparatorHovered":"0xffb39999","Header":"0x00a25a5a","TabUnfocusedActive":"0xd5a65959","PlotHistogramHovered":"0xff0099ff","Text":"0xffe6e6e6"},"Dark":{"FrameBorderSize":0,"TabHovered":"0xff4a3b3d","ButtonHovered":"0xff4a3b3d","ButtonActive":"0xff3f3738","ResizeGripActive":"0xff120d0f","ChildRounding":1,"GrabRounding":1,"WindowBorderSize":0,"ResizeGripHovered":"0xff948f8f","SliderGrab":"0x4fd4cccc","DisplaySafeAreaPadding":"3 3","TouchExtraPadding":"0 0","TabRounding":1,"TitleBgCollapsed":"0xbff2faff","TitleBg":"0xff1f171a","ResizeGrip":"0x00000000","PopupRounding":1,"IndentSpacing":25,"HeaderHovered":"0xff4a3b3d","PopupBorderSize":0,"WindowTitleAlign":"0.5 0.5","CheckMark":"0x4fd4cccc","ColumnsMinSpacing":6,"HeaderActive":"0xff3f3738","AntiAliasedFill":true,"BorderShadow":"0x00e0e8eb","ScrollbarGrab":"0xff3f3738","MouseCursorScale":1,"AntiAliasedLines":true,"FrameBgActive":"0x645c5657","ChildBorderSize":0,"ChildBg":"0x00000000","PlotHistogram":"0xff3f3738","SliderGrabActive":"0xff120d0f","ColorButtonPosition":1,"ModalWindowDimBg":"0x82272023","FrameBg":"0xff1f171a","ItemSpacing":"4 4","TabBorderSize":0,"ScrollbarSize":12,"PlotLines":"0xa1616366","TitleBgActive":"0xff3f3738","MenuBarBg":"0xff3f3738","Alpha":1,"TextSelectedBg":"0xff3f3738","Border":"0xe0d4cccc","Tab":"0xff272023","FrameRounding":0,"DisplayWindowPadding":"19 19","WindowPadding":"8 8","NavHighlight":"0xff3f3738","DragDropTarget":"0xff3f3738","PlotLinesHovered":"0xff4a3b3d","TabActive":"0xff3f3738","GrabMinSize":10,"FramePadding":"4 3","SeparatorActive":"0xff120d0f","NavWindowingHighlight":"0xb3ffffff","CurveTessellationTol":1.25,"WindowMinSize":"250 350","ScrollbarGrabActive":"0xff3f3738","Separator":"0x80806e6e","ScrollbarBg":"0xff272023","FrameBgHovered":"0xff4a3b3d","ScrollbarRounding":1,"ItemInnerSpacing":"4 4","TabUnfocused":"0xf8261a11","WindowRounding":2,"SelectableTextAlign":"0 0","PopupBg":"0xff171212","WindowMenuButtonPosition":0,"Button":"0xff272023","TextDisabled":"0xff4a3b3d","NavWindowingDimBg":"0x33cccccc","ScrollbarGrabHovered":"0xff494445","WindowBg":"0xff120d0f","ButtonTextAlign":"0.5 0.5","SeparatorHovered":"0xff4a3b3d","Header":"0x00272023","TabUnfocusedActive":"0xff6c4323","PlotHistogramHovered":"0xff3f3738","Text":"0xffd4cccc"},"Light":{"FrameBorderSize":0,"TabHovered":"0xffc8c8c8","ButtonHovered":"0xffc8c8c8","ButtonActive":"0xffc8c8c8","ResizeGripActive":"0xffc8c8c8","ChildRounding":1,"GrabRounding":1,"WindowBorderSize":0,"ResizeGripHovered":"0xffc8c8c8","SliderGrab":"0xff7d7d7d","DisplaySafeAreaPadding":"3 3","TouchExtraPadding":"0 0","TabRounding":1,"TitleBgCollapsed":"0x82ffffff","TitleBg":"0xfff1f1f1","ResizeGrip":"0x8fcccccc","PopupRounding":1,"IndentSpacing":21,"HeaderHovered":"0xffc8c8c8","PopupBorderSize":0,"WindowTitleAlign":"0.5 0.5","CheckMark":"0xff7d7d7d","ColumnsMinSpacing":6,"HeaderActive":"0xffc8c8c8","AntiAliasedFill":true,"BorderShadow":"0x00000000","ScrollbarGrab":"0xccb0b0b0","MouseCursorScale":1,"AntiAliasedLines":true,"FrameBgActive":"0x64c8c8c8","ChildBorderSize":0,"ChildBg":"0x00000000","PlotHistogram":"0xff00b3e6","SliderGrabActive":"0x99cc8a75","ColorButtonPosition":1,"ModalWindowDimBg":"0x82dedede","FrameBg":"0xffdedede","ItemSpacing":"4 4","TabBorderSize":0,"ScrollbarSize":12,"PlotLines":"0xff636363","TitleBgActive":"0xffdedede","MenuBarBg":"0xffdbdbdb","Alpha":1,"TextSelectedBg":"0xffb3b3b3","Border":"0x4d000000","Tab":"0xffdedede","FrameRounding":0,"DisplayWindowPadding":"19 19","WindowPadding":"8 8","NavHighlight":"0xccfa9642","DragDropTarget":"0xf2fa9642","PlotLinesHovered":"0xff596eff","TabActive":"0xffc8c8c8","GrabMinSize":10,"FramePadding":"4 3","SeparatorActive":"0xffc8c8c8","NavWindowingHighlight":"0xb3b3b3b3","CurveTessellationTol":1.25,"WindowMinSize":"250 350","ScrollbarGrabActive":"0xff7d7d7d","Separator":"0xffdedede","ScrollbarBg":"0xffdbdbdb","FrameBgHovered":"0xffc8c8c8","ScrollbarRounding":1,"ItemInnerSpacing":"4 4","TabUnfocused":"0xfbeeeceb","WindowRounding":1,"SelectableTextAlign":"0 0","PopupBg":"0xfaffffff","WindowMenuButtonPosition":0,"Button":"0xffdedede","TextDisabled":"0xff999999","NavWindowingDimBg":"0x33333333","ScrollbarGrabHovered":"0xcc7d7d7d","WindowBg":"0xfff0f0f0","ButtonTextAlign":"0.5 0.5","SeparatorHovered":"0xffc8c8c8","Header":"0xfff0f0f0","TabUnfocusedActive":"0xffe9d1bd","PlotHistogramHovered":"0xff0073ff","Text":"0xff000000"},"Default":{"FrameBorderSize":0,"TabHovered":"0xccfa9642","ButtonHovered":"0xccfa9642","ButtonActive":"0xffad6933","ResizeGripActive":"0xf2fa9642","ChildRounding":1,"GrabRounding":1,"MenuBarBg":"0xff242424","ResizeGripHovered":"0xabfa9642","SliderGrab":"0xffe0853d","DisplaySafeAreaPadding":"3 3","TouchExtraPadding":"0 0","TabRounding":1,"TitleBgCollapsed":"0x82000000","TitleBg":"0xff0a0a0a","FrameRounding":0,"PopupRounding":1,"IndentSpacing":21,"HeaderHovered":"0xccfa9642","PopupBorderSize":0,"WindowTitleAlign":"0.5 0.5","CheckMark":"0xfffa9642","ScrollbarGrabHovered":"0xff696969","HeaderActive":"0xffad6933","AntiAliasedFill":true,"BorderShadow":"0x00000000","ScrollbarGrab":"0xff4f4f4f","MouseCursorScale":1,"AntiAliasedLines":true,"ItemSpacing":"4 4","ChildBorderSize":0,"ChildBg":"0x00000000","PlotHistogram":"0xff00b3e6","SliderGrabActive":"0xfffa9642","ColorButtonPosition":1,"ModalWindowDimBg":"0x8294592e","SelectableTextAlign":"0 0","FrameBgHovered":"0x64fa9442","TabBorderSize":0,"ScrollbarSize":12,"PlotLines":"0xff9c9c9c","TitleBgActive":"0xff7a4a29","NavWindowingHighlight":"0xb3ffffff","ScrollbarGrabActive":"0xff828282","GrabMinSize":10,"DragDropTarget":"0xe600ffff","TextSelectedBg":"0x59fa9642","PlotHistogramHovered":"0xff0099ff","DisplayWindowPadding":"19 19","PlotLinesHovered":"0xff596eff","NavHighlight":"0xfffa9642","SeparatorHovered":"0xc7bf661a","TabUnfocused":"0xf8261a11","TabActive":"0xffad6933","Tab":"0xdc94592e","FramePadding":"4 3","SeparatorActive":"0xffbf661a","ResizeGrip":"0x40fa9642","CurveTessellationTol":1.25,"WindowBorderSize":0,"WindowMinSize":"250 350","Separator":"0xffad6933","ScrollbarBg":"0x87050505","FrameBgActive":"0xabfa9642","ScrollbarRounding":1,"ItemInnerSpacing":"4 4","WindowPadding":"8 8","WindowRounding":1,"WindowBg":"0xf00f0f0f","ColumnsMinSpacing":6,"WindowMenuButtonPosition":0,"Button":"0xff7a4a29","Alpha":1,"NavWindowingDimBg":"0x33cccccc","FrameBg":"0x8a7a4a29","PopupBg":"0xff1c1c1c","Border":"0x80806e6e","ButtonTextAlign":"0.5 0.5","Header":"0x00000000","TabUnfocusedActive":"0xff6c4323","TextDisabled":"0xff808080","Text":"0xffffffff"}} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/json/weapon.json b/moonloader/lib/cheat-menu/json/weapon.json deleted file mode 100644 index fa36e26..0000000 --- a/moonloader/lib/cheat-menu/json/weapon.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "0" : "Unarmed", - "1" : "Brass knuckles", - "2" : "Golf club", - "3" : "Night stick", - "4" : "Knife", - "5" : "Baseball bat", - "6" : "Shovel", - "7" : "Poolcue", - "8" : "Katana", - "9" : "Chainsaw", - "10" : "Purple dildo", - "11" : "White dildo", - "12" : "White vibrator", - "13" : "Silver vibrator", - "14" : "Flowers", - "15" : "Cane", - "16" : "Grenade", - "17" : "Teargas", - "18" : "Molotov", - "22" : "Colt45", - "23" : "Silenced", - "24" : "Desert eagle", - "25" : "Shotgun", - "26" : "Sawn off shotgun", - "27" : "Combat shotgun", - "28" : "Uzi", - "29" : "Mp5", - "30" : "Ak47", - "31" : "M4", - "32" : "Tec9", - "33" : "Rifle", - "34" : "Sniper rifle", - "35" : "Rocket launcher", - "36" : "Heat seeker", - "37" : "Flame thrower", - "38" : "Minigun", - "39" : "Satchel charge", - "40" : "Detonator", - "41" : "Spraycan", - "42" : "Fire extinguisher", - "43" : "Camera", - "44" : "Night vision", - "45" : "Thermal vision", - "46" : "Parachute" -} \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/libraries/casts.lua b/moonloader/lib/cheat-menu/libraries/casts.lua deleted file mode 100644 index 9db7d5d..0000000 --- a/moonloader/lib/cheat-menu/libraries/casts.lua +++ /dev/null @@ -1,147 +0,0 @@ -local module = {} -local ffi = require 'ffi' -local memory = require 'memory' - -ffi.cdef -[[ - typedef unsigned int CBaseModelInfo; -]] - -module.CBaseModelInfo = -{ -} - -module.CCutsceneMgr = -{ - ms_running = readMemory(0x00B5F851,1,false) -} - -module.CEntity = -{ - SetRwObjectAlpha = ffi.cast("int(__thiscall *)(int pentity, int alpha)",0x5332C0) -} - -module.CModelInfo = -{ - GetModelInfoFromModel = ffi.cast("CBaseModelInfo(*)(unsigned int model)",0x403DA0), - GetModelInfoFromName = ffi.cast("CBaseModelInfo(*)(const char *modelName, unsigned int pmodel_id_return)",0x4C5940), - IsTrainModel = ffi.cast('bool(*)(int model)',0x4C5AD0), - IsVehicleModel = ffi.cast('int(*)(int model)',0x4C5C80), - ms_modelInfoPtrs = ffi.cast("uintptr_t*",readMemory(0x403DA4 + 3,4,false)) -- FLA Compatible -} - -module.CVehicle = -{ - IsValidModForVehicle = ffi.cast('bool(*)(int model, int pVeh)',0x49B010) -} - -function module.CModelInfo.GetNameFromModel(model) - return ffi.string(ffi.cast("char*", casts.CModelInfo.ms_modelInfoPtrs[tonumber(model)] + 0x32)) or "" -end - -function module.CModelInfo.GetModelFromName(name) - local pmodel = allocateMemory(4) - - casts.CModelInfo.GetModelInfoFromName(name,pmodel) - - local model = readMemory(pmodel,4,false) - freeMemory(pmodel) - - if model > 0 and model < 1000000 and module.CModelInfo.GetNameFromModel(model) ~= "" then - return model - else - return 0 - end -end - - -module.CTimeCyc = -{ - curr_weather = ffi.cast("short*", 0xC81320), - next_weather = ffi.cast("short*", 0xC8131C), - - hours = ffi.cast("unsigned char*", 0xB70153), - mins = ffi.cast("unsigned char*", 0xB70152), - secs = ffi.cast("unsigned short*", 0xB70150), - - time_scale = ffi.cast("unsigned int*", 0xB7015C), - - initialise = ffi.cast("void (__cdecl*)(void)", 0x5BBAC0), - - ambient_red = ffi.cast("unsigned char*", memory.getuint32(0x560C61)), - ambient_green = ffi.cast("unsigned char*", memory.getuint32(0x55F4D6)), - ambient_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F4E8)), - - ambient_obj_red = ffi.cast("unsigned char*", memory.getuint32(0x55F4FA)), - ambient_obj_green = ffi.cast("unsigned char*", memory.getuint32(0x55F50C)), - ambient_obj_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F51E)), - - sky_top_red = ffi.cast("unsigned char*", memory.getuint32(0x55F531)), - sky_top_green = ffi.cast("unsigned char*", memory.getuint32(0x55F53D)), - sky_top_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F549)), - - sky_bottom_red = ffi.cast("unsigned char*", memory.getuint32(0x55F555)), - sky_bottom_green = ffi.cast("unsigned char*", memory.getuint32(0x55F561)), - sky_bottom_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F56D)), - - sun_core_red = ffi.cast("unsigned char*", memory.getuint32(0x55F579)), - sun_core_green = ffi.cast("unsigned char*", memory.getuint32(0x55F585)), - sun_core_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F591)), - - sun_corona_red = ffi.cast("unsigned char*", memory.getuint32(0x55F59D)), - sun_corona_green = ffi.cast("unsigned char*", memory.getuint32(0x55F5A9)), - sun_corona_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F5B5)), - - sun_size = ffi.cast("unsigned char*", memory.getuint32(0x55F5C0)), - sprite_size = ffi.cast("unsigned char*", memory.getuint32(0x55F5D2)), - sprite_brightness = ffi.cast("unsigned char*", memory.getuint32(0x55F5E4)), - - shadow_strength = ffi.cast("unsigned char*", memory.getuint32(0x55F5F7)), - light_shadow_strength = ffi.cast("unsigned char*", memory.getuint32(0x55F603)), - pole_shadow_strength = ffi.cast("unsigned char*", memory.getuint32(0x55F60F)), - - far_clip = ffi.cast("short*", memory.getuint32(0x55F61B)), - fog_start = ffi.cast("short*", memory.getuint32(0x55F62E)), - lights_on_ground_brightness = ffi.cast("unsigned char*", memory.getuint32(0x55F640)), - - low_clouds_red = ffi.cast("unsigned char*", memory.getuint32(0x55F653)), - low_clouds_green = ffi.cast("unsigned char*", memory.getuint32(0x55F65F)), - low_clouds_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F66B)), - - fluffy_clouds_red = ffi.cast("unsigned char*", memory.getuint32(0x55F677)), - fluffy_clouds_green = ffi.cast("unsigned char*", memory.getuint32(0x55F683)), - fluffy_clouds_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F690)), - - water_red = ffi.cast("unsigned char*", memory.getuint32(0x55F69C)), - water_green = ffi.cast("unsigned char*", memory.getuint32(0x55F6B0)), - water_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F6C3)), - water_alpha = ffi.cast("unsigned char*", memory.getuint32(0x55F6D6)), - - postfx1_red = ffi.cast("unsigned char*", memory.getuint32(0x55F6E9)), - postfx1_green = ffi.cast("unsigned char*", memory.getuint32(0x55F6FC)), - postfx1_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F70F)), - postfx1_alpha = ffi.cast("unsigned char*", memory.getuint32(0x55F725)), - - postfx2_red = ffi.cast("unsigned char*", memory.getuint32(0x55F73B)), - postfx2_green = ffi.cast("unsigned char*", memory.getuint32(0x55F751)), - postfx2_blue = ffi.cast("unsigned char*", memory.getuint32(0x55F767)), - postfx2_alpha = ffi.cast("unsigned char*", memory.getuint32(0x55F77D)), - - cloud_alpha = ffi.cast("unsigned char*", memory.getuint32(0x55F793)), - waterfog_alpha = ffi.cast("unsigned char*", memory.getuint32(0x55F7B8)), - high_light_min_intensity = ffi.cast("unsigned char*", memory.getuint32(0x55F7A9)), - directional_mult = ffi.cast("unsigned char*", memory.getuint32(0x55F7C7)), -} - - -function module.CBaseModelInfo.GetModelType(model_id) - - local pinfo = module.CModelInfo.GetModelInfoFromModel(model_id) - local info = readMemory(pinfo,4,false) - - if info ~= 0 then - return callFunction(readMemory(info+0x10, 4,false), 1, 1, model_id) - end -end - -return module \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/libraries/memory.lua b/moonloader/lib/cheat-menu/libraries/memory.lua deleted file mode 100644 index 8b3042c..0000000 --- a/moonloader/lib/cheat-menu/libraries/memory.lua +++ /dev/null @@ -1,238 +0,0 @@ --- Virtual memory I/O module for internal process. --- --- This file is part of SA MoonLoader package. --- Licensed under the MIT License. --- Copyright (c) 2019, BlastHack Team - -local ffi = require 'ffi' -local memory = {} -- all function must accept number-type address - -local page_access = { - NOACCESS = 0x01, - READONLY = 0x02, - READWRITE = 0x04, - WRITECOPY = 0x08, - EXECUTE = 0x10, - EXECUTE_READ = 0x20, - EXECUTE_READWRITE = 0x40, - EXECUTE_WRITECOPY = 0x80, - GUARD = 0x100, - NOCACHE = 0x200, - WRITECOMBINE = 0x400, -} -local pvoid_t = ffi.typeof('void*') - -ffi.cdef [[ -int __stdcall VirtualProtect(void* lpAddress, unsigned long dwSize, unsigned long flNewProtect, unsigned long* lpflOldProtect); -int memcmp(const void* ptr1, const void* ptr2, size_t num); -]] - -local function set_protection(address, size, access) - local old = ffi.new('unsigned long[1]') - -- TODO ? - --[[ - MEMORY_BASIC_INFORMATION mbi = query(address); - if (mbi.BaseAddress == NULL) - return 0; - --]] - if ffi.C.VirtualProtect(address, size, access, old) == 0 then - return nil - end - return old[0] -end - -local function unprotect(address, size) - return set_protection(address, size, page_access.EXECUTE_READWRITE) -end - -local function unprotect_maybe(address, size, unprot) - if unprot then - return unprotect(address, size) - end -end - -local function protect_maybe(address, size, prot) - if prot then - return set_protection(address, size, prot) - end -end - -function memory.read(address, size, unprot) - if size > 0 then - if size > 8 then - size = 8 - end - address = ffi.cast(pvoid_t, address) - local value = ffi.new('int64_t[1]') - local prot = unprotect_maybe(address, size, unprot) - if not unprot or prot then - ffi.copy(value, address, size) - protect_maybe(address, size, prot) - if size <= 4 then - return tonumber(value[0]) - end - return value[0] - end - end -end - -function memory.write(address, value, size, unprot) - if size > 0 then - if size > 8 then - size = 8 - end - address = ffi.cast(pvoid_t, address) - local val = ffi.new('int64_t[1]', value) - local prot = unprotect_maybe(address, size, unprot) - if not unprot or prot then - ffi.copy(address, val, size) - protect_maybe(address, size, prot) - end - end -end - -function memory.unprotect(address, size) - address = ffi.cast(pvoid_t, address) - return unprotect(address, size) -end - -function memory.protect(address, size, prot) - address = ffi.cast(pvoid_t, address) - return set_protection(address, size, prot) -end - -function memory.copy(dst, src, size, unprot) - dst = ffi.cast(pvoid_t, dst) - if type(src) ~= 'string' then - src = ffi.cast(pvoid_t, src) - end - local prot = unprotect_maybe(dst, size, unprot) - if not unprot or prot then - ffi.copy(dst, src, size) - protect_maybe(dst, size, prot) - end -end - -function memory.fill(address, value, size, unprot) - address = ffi.cast(pvoid_t, address) - local prot = unprotect_maybe(address, size, unprot) - if not unprot or prot then - ffi.fill(address, size, value) - protect_maybe(address, size, prot) - end -end - -function memory.tostring(address, size, unprot) - address = ffi.cast(pvoid_t, address) - local prot = unprotect_maybe(address, size, unprot) - if not unprot or prot then - local str = ffi.string(address, size) - protect_maybe(address, size, prot) - return str - end -end - -function memory.compare(m1, m2, size) - m1 = ffi.cast(pvoid_t, m1) - m2 = ffi.cast(pvoid_t, m2) - return ffi.C.memcmp(m1, m2, size) == 0 -end - -function memory.strptr(str) - return tonumber(ffi.cast('intptr_t', ffi.cast('const char*', str))) -end - -function memory.tohex(data, size, unprot) - data = ffi.cast('const uint8_t*', data) - local prot = unprotect_maybe(data, size, unprot) - if not unprot or prot then - local str = {} - for i = 0, size - 1 do - str[#str + 1] = bit.tohex(data[i], 2) - end - protect_maybe(data, size, prot) - return table.concat(str):upper() - end -end - -function memory.hex2bin(hex, dst, size) - if #hex == 0 or #hex % 2 ~= 0 then - return false - end - if dst then - if not size or size == 0 then - return false - end - dst = ffi.cast('uint8_t*', dst) - local idx = 0 - for i = 1, #hex, 2 do - local byte = tonumber(hex:sub(i, i + 1), 16) - if not byte then - return false - end - dst[idx] = byte - idx = idx + 1 - if idx >= size then - return true - end - end - return true - else - local str = {} - for i = 1, #hex, 2 do - local byte = tonumber(hex:sub(i, i + 1), 16) - if not byte then - return nil - end - str[#str + 1] = string.char(byte) - end - return table.concat(str) - end -end - -local function get_value(ctype, address, unprot) - address = ffi.cast(pvoid_t, address) - local size = ffi.sizeof(ctype) - local prot = unprotect_maybe(address, size, unprot) - if not unprot or prot then - local val = ffi.cast(ctype..'*', address)[0] - protect_maybe(address, size, prot) - return val - end -end - -local function set_value(ctype, address, value, unprot) - address = ffi.cast(pvoid_t, address) - local size = ffi.sizeof(ctype) - local prot = unprotect_maybe(address, size, unprot) - if not unprot or prot then - ffi.cast(ctype..'*', address)[0] = value - protect_maybe(address, size, prot) - end -end - -memory.getvalue = get_value -memory.setvalue = set_value -memory.getint8 = function(address, unprot) return get_value('int8_t', address, unprot) end -memory.getint16 = function(address, unprot) return get_value('int16_t', address, unprot) end -memory.getint32 = function(address, unprot) return get_value('int32_t', address, unprot) end -memory.getint64 = function(address, unprot) return get_value('int64_t', address, unprot) end -memory.getuint8 = function(address, unprot) return get_value('uint8_t', address, unprot) end -memory.getuint16 = function(address, unprot) return get_value('uint16_t', address, unprot) end -memory.getuint32 = function(address, unprot) return get_value('uint32_t', address, unprot) end -memory.getuint64 = function(address, unprot) return get_value('uint64_t', address, unprot) end -memory.getfloat = function(address, unprot) return get_value('float', address, unprot) end -memory.getdouble = function(address, unprot) return get_value('double', address, unprot) end -memory.setint8 = function(address, value, unprot) return set_value('int8_t', address, value, unprot) end -memory.setint16 = function(address, value, unprot) return set_value('int16_t', address, value, unprot) end -memory.setint32 = function(address, value, unprot) return set_value('int32_t', address, value, unprot) end -memory.setint64 = function(address, value, unprot) return set_value('int64_t', address, value, unprot) end -memory.setuint8 = function(address, value, unprot) return set_value('uint8_t', address, value, unprot) end -memory.setuint16 = function(address, value, unprot) return set_value('uint16_t', address, value, unprot) end -memory.setuint32 = function(address, value, unprot) return set_value('uint32_t', address, value, unprot) end -memory.setuint64 = function(address, value, unprot) return set_value('uint64_t', address, value, unprot) end -memory.setfloat = function(address, value, unprot) return set_value('float', address, value, unprot) end -memory.setdouble = function(address, value, unprot) return set_value('double', address, value, unprot) end -memory.pageaccess = page_access - -return memory diff --git a/moonloader/lib/cheat-menu/modules/animation.lua b/moonloader/lib/cheat-menu/modules/animation.lua deleted file mode 100644 index 7879789..0000000 --- a/moonloader/lib/cheat-menu/modules/animation.lua +++ /dev/null @@ -1,166 +0,0 @@ - --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . -local module = {} - -module.tanimation = -{ - fighting = - { - selected = imgui.new.int(fconfig.Get('tanimation.fighting.selected',1)), - names = {"Default","Boxing","Kung fu","Kick Boxing","Punch Kick"}, - }, - filter = imgui.ImGuiTextFilter(), - ifp_name = imgui.new.char[20](), - list = fcommon.LoadJson("animation"), - loop = imgui.new.bool(fconfig.Get('tanimation.loop',false)), - name = imgui.new.char[20](), - ped = imgui.new.bool(fconfig.Get('tanimation.ped',false)), - secondary = imgui.new.bool(fconfig.Get('tanimation.secondary',false)), - walking = - { - selected = imgui.new.int(fconfig.Get('tanimation.walking.selected',1)), - names = {"default","man","shuffle","oldman","gang1","gang2","oldfatman","fatman","jogger","drunkman","blindman","swat","woman","shopping","busywoman","sexywoman","pro","oldwoman","fatwoman","jogwoman","oldfatwoman","skate"}, - }, -} - -function PlayAnimation(file,animation) - if module.tanimation.ped[0] == true then - if doesCharExist(fped.tped.selected) then - char = fped.tped.selected - else - printHelpString("~r~No~w~ ped selected") - return - end - else - char = PLAYER_PED - end - - if file ~= "PED" then -- don't remove if animation is from ped.ifp - requestAnimation(file) - loadAllModelsNow() - end - - if module.tanimation.secondary[0] == true then - taskPlayAnimSecondary(char,animation,file,4.0,module.tanimation.loop[0],0,0,0,-1) - else - taskPlayAnim(char,animation,file,4.0,module.tanimation.loop[0],0,0,0,-1) - end - fcommon.CheatActivated() - if file ~= "PED" then -- don't remove if animation is from ped.ifp - removeAnimation(file) - end -end - --- Main function -function module.AnimationMain() - imgui.Spacing() - if imgui.Button("Stop animation",imgui.ImVec2(fcommon.GetSize(1))) then - local char = nil - if module.tanimation.ped[0] == true then - if fped.tped.selected ~= nil then - char = fped.tped.selected - else - printHelpString("~r~No~w~ ped selected") - return - end - else - char = PLAYER_PED - end - clearCharTasks(char) - fcommon.CheatActivated() - end - imgui.Spacing() - - -- Checkboxes - imgui.Columns(3,nil,false) - fcommon.CheckBoxVar("Loop##Animation",module.tanimation.loop) - imgui.NextColumn() - fcommon.CheckBoxVar("Ped##Animation",module.tanimation.ped,"Play animation on ped.Aim with a gun to select.") - imgui.NextColumn() - fcommon.CheckBoxVar("Secondary##Animation",module.tanimation.secondary) - imgui.Columns(1) - - if fcommon.BeginTabBar('Animation') then - if fcommon.BeginTabItem('Search') then - fcommon.DrawEntries(fconst.IDENTIFIER.ANIMATION,fconst.DRAW_TYPE.TEXT,function(anim,file) - PlayAnimation(file,anim) - end, - function(text,category) - if imgui.MenuItemBool("Remove animation") then - module.tanimation.list[category][text] = nil - - local bool = false - for k,v in pairs(module.tanimation.list[category]) do - bool = true - end - - if not bool then - module.tanimation.list[category] = nil - end - - printHelpString("Animation ~r~removed") - end - end,function(a) return a end,module.tanimation.list) - end - if fcommon.BeginTabItem('Misc') then - if fcommon.DropDownListNumber("Fighting",module.tanimation.fighting.names,module.tanimation.fighting.selected) then - giveMeleeAttackToChar(PLAYER_PED,module.tanimation.fighting.selected[0]+3,6) - fcommon.CheatActivated() - end - if fcommon.DropDownListNumber("Walking",module.tanimation.walking.names,module.tanimation.walking.selected) then - if module.tanimation.walking.names[module.tanimation.walking.selected[0]] == "default" then - writeMemory(0x609A4E,4,0x4D48689,false) - writeMemory(0x609A52,2,0,false) - else - writeMemory(0x609A4E,4,-0x6F6F6F70,false) - writeMemory(0x609A52,2,0x9090,false) - - requestAnimation(module.tanimation.walking.names[module.tanimation.walking.selected[0]]) - loadAllModelsNow() - setAnimGroupForChar(PLAYER_PED,module.tanimation.walking.names[module.tanimation.walking.selected[0]]) - removeAnimation(module.tanimation.walking.names[module.tanimation.walking.selected[0]]) - end - fcommon.CheatActivated() - end - end - if fcommon.BeginTabItem('Custom') then - imgui.InputTextWithHint("File","ped",module.tanimation.ifp_name,ffi.sizeof(module.tanimation.ifp_name)) - imgui.InputTextWithHint("Animation##input","cower",module.tanimation.name,ffi.sizeof(module.tanimation.name)) - imgui.Spacing() - if imgui.Button("Add animation",imgui.ImVec2(fcommon.GetSize(1))) then - if ffi.string(module.tanimation.ifp_name) == "" then - printHelpString("No file name found") - else - if ffi.string(module.tanimation.name) == "" then - printHelpString("No animation name found") - else - if module.tanimation.list[ffi.string(module.tanimation.ifp_name)] == nil then - module.tanimation.list[ffi.string(module.tanimation.ifp_name)] = {} - end - module.tanimation.list[ffi.string(module.tanimation.ifp_name)][ffi.string(module.tanimation.name)] = ffi.string(module.tanimation.name) - - printHelpString("Animation ~g~added") - end - end - - end - end - fcommon.EndTabBar() - end -end - -return module \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/modules/common.lua b/moonloader/lib/cheat-menu/modules/common.lua deleted file mode 100644 index fb7242b..0000000 --- a/moonloader/lib/cheat-menu/modules/common.lua +++ /dev/null @@ -1,1338 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -function module.spairs(t, f) - local a = {} - for n in pairs(t) do table.insert(a, n) end - table.sort(a, f) - local i = 0 - local iter = function () - i = i + 1 - if a[i] == nil then return nil - else return a[i], t[a[i]] - end - end - return iter -end - -function module.CalcTableSize(table) - local count = 0 - for k,v in pairs(table) do - count = count + 1 - end - return count -end - -function module.pool(pool) - - local entities = {} - local cur_index = 0 - local address = nil - - if pool == "veh" then - address = 0xB74494 - end - if pool == "char" then - address = 0xB74490 - end - if pool == "obj" then - address = 0xB7449C - end - - local address = readMemory(address,4,false) - address = address + 0x04 - address = readMemory(address,4,false) - local x = 0 - - while x <= 0x6D00 do - local entity = readMemory(address,1,false) - address = address + 1 - if entity >= 0x00 and entity < 0x80 then - entity = entity + x - table.insert(entities,entity) - end - x = x + 0x100 - end - - local iter = function () - cur_index = cur_index + 1 - return entities[cur_index] - end - return iter -end - - -local thread_locks = {} - -function module.CreateThread(func) - - lua_thread.create(function(func) - - if thread_locks[func] == nil then -- is thread key unlcoked - thread_locks[func] = true - func() - thread_locks[func] = nil -- unlock the thread key - end - - end,func) -end - --------------------------------------------------- --- JSON functions - -function module.LoadJson(filename) - local full_path = tcheatmenu.dir .. "json//" .. filename .. ".json" - if doesFileExist(full_path) then - local file = io.open(full_path, "r") - local status, table = pcall(decodeJson,file:read("*a")) - file:close() - - if status and table then - return table - else - tcheatmenu.fail_loading_json = true - print("Failed to load json file, " .. filename) - end - end - return {} -end - -function module.SaveJson(filename,table) - local full_path = tcheatmenu.dir .. "json//" .. filename .. ".json" - local file = assert(io.open(full_path, "w")) - file:write(encodeJson(table)) - file:close() -end - - -function module.MoveFiles(main_dir,dest_dir) - for f in lfs.dir(main_dir) do - local main_file = main_dir .. "/" .. f - - if doesDirectoryExist(main_file) and f ~= "." and f ~= ".." then - module.MoveFiles(main_file,dest_dir .. "/" .. f) - end - - if doesFileExist(main_file) then - dest_file = dest_dir .. "/" .. f - if not doesDirectoryExist(dest_dir) then - lfs.mkdir(dest_dir) - end - - if doesFileExist(dest_file) then - os.remove(dest_file) - end - if doesFileExist(dest_file) then - os.remove(main_file) - print("Unable to delete file " .. dest_file) - else - os.rename(main_file,dest_file) - end - - end - end - lfs.rmdir(main_dir) -end - -function module.InformationTooltip(text) - if fmenu.tmenu.show_tooltips[0] then - if text ~= nil then - imgui.SameLine() - imgui.InvisibleButton("?##".. text,imgui.CalcTextSize("?")) - local drawlist = imgui.GetWindowDrawList() - drawlist:AddText(imgui.ImVec2(imgui.GetItemRectMin().x,imgui.GetItemRectMin().y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.TextDisabled),"?") - - if imgui.IsItemHovered() then - imgui.BeginTooltip() - imgui.SetTooltip(text) - imgui.EndTooltip() - end - end - end -end - --------------------------------------------------- --- imgui functions - --- Calculates width of element(button) acoording to count -function module.GetSize(count,no_spacing) - - x = x or 20 - count = count or 1 - if count == 1 then no_spacing = true end - - local factor = imgui.GetStyle().ItemSpacing.x/2 - - if count == 3 then - factor = imgui.GetStyle().ItemSpacing.x/1.403 - end - - if no_spacing == true then - x = imgui.GetWindowContentRegionWidth()/count - else - x = imgui.GetWindowContentRegionWidth()/count - factor - end - - return x,imgui.GetFrameHeight()*1.3 -end - -function module.CRGBAColorPicker(label,base_addr,default_col,save) - save = save or true - local CRGBA = imgui.new.float[4](memory.read(base_addr,1)/255,memory.read(base_addr+1,1)/255,memory.read(base_addr+2,1)/255,memory.read(base_addr+3,1)/255) - - fcommon.DropDownMenu(label,function() - if imgui.ColorPicker4("Pick color##" ..label,CRGBA) then - memory.write(base_addr,CRGBA[0]*255,1) - memory.write(base_addr+1,CRGBA[1]*255,1) - memory.write(base_addr+2,CRGBA[2]*255,1) - memory.write(base_addr+3,CRGBA[3]*255,1) - if save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",base_addr),{1,CRGBA[0]*255,false,1}) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",base_addr+1),{1,CRGBA[1]*255,false,1}) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",base_addr+2),{1,CRGBA[2]*255,false,1}) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",base_addr+3),{1,CRGBA[3]*255,false,1}) - end - end - imgui.Spacing() - if imgui.Button("Reset to default",imgui.ImVec2(module.GetSize(1))) then - memory.write(base_addr,default_col[1],1) - memory.write(base_addr+1,default_col[2],1) - memory.write(base_addr+2,default_col[3],1) - memory.write(base_addr+3,255,1) - - fconfig.tconfig.memory_data[tostring(base_addr)] = nil - fconfig.tconfig.memory_data[tostring(base_addr+1)] = nil - fconfig.tconfig.memory_data[tostring(base_addr+2)] = nil - fconfig.tconfig.memory_data[tostring(base_addr+3)] = nil - end - end) -end - - -function module.GetLocationInfo(x,y,z) - local interior = getActiveInterior() - - local town_name = "San Andreas" - local city = getCityPlayerIsIn(PLAYER_PED) - - if city == 0 then - town_name = "CS" - end - if city == 1 then - town_name = "LS" - end - if city == 2 then - town_name = "SF" - end - if city == 3 then - town_name = "LV" - end - - if interior == 0 then - local zone_name = getGxtText(getNameOfZone(x,y,z)) - - return string.format("%s, %s",zone_name,town_name) - else - return string.format("Interior %d, %s",getCharActiveInterior(PLAYER_PED),town_name) - end -end - --------------------------------------------------- --- Function DrawEntries - -local draw_entries_data = {} - -function DrawImage(identifier,func_on_left_click,func_on_right_click,image_table,const_image_height,const_image_width,model,image,model_name) - - if type(image) ~= "string" then - local images_in_row = math.floor(imgui.GetWindowContentRegionWidth()/const_image_width) - local const_image_width = (imgui.GetWindowContentRegionWidth() - imgui.StyleVar.ItemSpacing*(images_in_row-0.6*images_in_row))/images_in_row - - if imgui.ImageButton(image,imgui.ImVec2(const_image_width,const_image_height),imgui.ImVec2(0,0),imgui.ImVec2(1,1),1,imgui.ImVec4(1,1,1,1),imgui.ImVec4(1,1,1,1)) then - func_on_left_click(model) - end - if func_on_right_click ~= nil and imgui.IsItemClicked(1) then - draw_entries_data[identifier].context_menu_data = - { - func = func_on_right_click, - key = model, - category = model_name - } - end - - if imgui.IsItemHovered() then - local drawlist = imgui.GetWindowDrawList() - drawlist:AddRectFilled(imgui.GetItemRectMin(), imgui.GetItemRectMax(), imgui.GetColorU32(imgui.Col.ModalWindowDimBg)) - - if imgui.CalcTextSize(model_name).x > const_image_width then - model_name = model_name:gsub(" ","\n") - end - - local offset_x = (imgui.GetItemRectSize().x - imgui.CalcTextSize(model_name).x)/2 - local offset_y = 10 - drawlist:AddText(imgui.ImVec2(imgui.GetItemRectMin().x+offset_x,imgui.GetItemRectMin().y+offset_y), imgui.GetColorU32(imgui.Col.Text),model_name) - end - - if draw_entries_data[identifier].entry_count % images_in_row ~= 0 then - imgui.SameLine(0.0,4.0) - end - draw_entries_data[identifier].entry_count = draw_entries_data[identifier].entry_count + 1 - end -end - -function DrawText(identifier,func_on_left_click,func_on_right_click,entry,text,key,category) - if imgui.MenuItemBool(text) then - func_on_left_click(entry,category) - end - - if func_on_right_click ~= nil and imgui.IsItemClicked(1) then - draw_entries_data[identifier].context_menu_data = - { - func = func_on_right_click, - key = key - } - end -end - - -function module.DrawEntries(identifier,draw_type,func_on_left_click,func_on_right_click,func_get_name,data_table,const_image_height,const_image_width,verify_model_func) - - -------------------------------------------------- - -- Setup the temp table - - if draw_entries_data[identifier] == nil then - draw_entries_data[identifier] = { - filter = imgui.ImGuiTextFilter(), - entry_count = 1, - selected = "All", - } - - if draw_type == fconst.DRAW_TYPE.IMAGE then - lua_thread.create(function(data_table) - for _,table in pairs(data_table) do - for model,image in pairs(table) do - if type(image) == "string" then - table[model] = imgui.CreateTextureFromFile(image) - wait(0) - end - end - end - end,data_table) - end - data_table[draw_entries_data[identifier].selected] = {} - end - - if imgui.IsMouseClicked(1) then - draw_entries_data[identifier].context_menu_data = nil - end - - -------------------------------------------------- - -- Interface Header - - local width = imgui.GetWindowContentRegionWidth() - 8 - - imgui.SetNextItemWidth(width/2) - fcommon.DropDownListStr("##List",data_table,draw_entries_data[identifier].selected, - function(key,val) - draw_entries_data[identifier].selected = key - end) - - imgui.SameLine() - - imgui.SetNextItemWidth(width/2) - - draw_entries_data[identifier].filter:Draw("##Filter") - if draw_entries_data[identifier].filter:PassFilter('') then - local min = imgui.GetItemRectMin() - local drawlist = imgui.GetWindowDrawList() - drawlist:AddText(imgui.ImVec2(min.x+imgui.GetStyle().ItemInnerSpacing.x,min.y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.TextDisabled),"Search") - end - imgui.Spacing() - - -------------------------------------------------- - -- Call the drawing function - - if imgui.BeginChild("##Draw") then - - for category,table in pairs(data_table) do - if draw_entries_data[identifier].selected == "All" or category == draw_entries_data[identifier].selected then - for label,entry in pairs(table) do - local name = func_get_name(label) - if draw_entries_data[identifier].filter:PassFilter(name) and (verify_model_func == nil or verify_model_func(label)) then - if draw_type == fconst.DRAW_TYPE.IMAGE then - if identifier ~= fconst.IDENTIFIER.COMPONENT - or casts.CVehicle.IsValidModForVehicle(tonumber(label),getCarPointer(getCarCharIsUsing(PLAYER_PED))) then - DrawImage(identifier,func_on_left_click,func_on_right_click,table,const_image_height,const_image_width,label,entry,name) - end - else - DrawText(identifier,func_on_left_click,func_on_right_click,entry,name,label,category) - end - end - end - end - end - if draw_entries_data[identifier].context_menu_data ~= nil and imgui.BeginPopupContextWindow() then - - if draw_type == fconst.DRAW_TYPE.IMAGE then - imgui.Text(draw_entries_data[identifier].context_menu_data.key) - end - imgui.Separator() - imgui.Spacing() - draw_entries_data[identifier].context_menu_data.func(draw_entries_data[identifier].context_menu_data.key,draw_entries_data[identifier].context_menu_data.category) - if imgui.MenuItemBool("Close") then - draw_entries_data[identifier].context_menu_data = nil - end - imgui.EndPopup() - end - - draw_entries_data[identifier].entry_count = 1 - imgui.EndChild() - end - -------------------------------------------------- - -end --------------------------------------------------- - -function module.RadioButtonAddressEx(label,label_table,values,memory,save) - if save == nil then save = true end - fcommon.DropDownMenu(label,function() - local button = imgui.new.int(module.RwMemory(memory,1)) - - local btn_in_column = math.floor(#label_table/2) - - if (#label_table % 2) ~= 0 then -- if odd number - btn_in_column = btn_in_column + 1 - end - - if #label_table > 1 then - imgui.Columns(2,nil,false) - end - for i = 1, #label_table,1 do - - if imgui.RadioButtonIntPtr(label_table[i] .. "##" .. label,button,values[i]) then - module.RwMemory(memory,1,values[i]) - if save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",memory),{1,values[i]}) - end - button[0] = i - end - if i == btn_in_column then - imgui.NextColumn() - end - end - imgui.Columns(1) - - end) -end - -function module.RadioButtonAddress(label,rb_table,addr_table,default) - - if default == nil then default = true end - - local button = imgui.new.int(#addr_table + 1) - local btn_in_column = math.floor(#addr_table/2+1) - - imgui.Text(label) - imgui.Columns(2,nil,false) - for i = 1, #addr_table,1 do - if readMemory(addr_table[i],1,false) == 1 then - button[0] = i - end - if imgui.RadioButtonIntPtr(rb_table[i],button,i) then - for j = 1,#addr_table,1 do - writeMemory(addr_table[j],1,0,false) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",addr_table[j]),{1,0}) - end - button[0] = i - writeMemory(addr_table[i],1,1,false) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",addr_table[i]),{1,1}) - module.CheatActivated() - end - if i == btn_in_column then - imgui.NextColumn() - end - end - - if default == true then -- unused in handling section - if imgui.RadioButtonIntPtr("Default ##" ..label,button,#addr_table + 1) then - for j = 1,#addr_table,1 do - writeMemory(addr_table[j],1,0,false) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",addr_table[j]),{1,0}) - end - module.CheatActivated() - end - end - imgui.Columns(1) -end - - -function module.CallFuncButtons(label,table) - - fcommon.DropDownMenu(label,function() - - local count = 1 - for name,address in fcommon.spairs(table) do - if imgui.Button(name,imgui.ImVec2(module.GetSize(3))) then - callFunction(address,0,0) - fcommon.CheatActivated() - end - if count % 3 ~= 0 then - imgui.SameLine() - end - count = count + 1 - end - end) -end - - --------------------------------------------------- --- Checkbox functions - -function module.CheckBoxValue(name,address,tooltip,enable_value,disable_value) - - if enable_value == nil then enable_value = 1 end - if disable_value == nil then disable_value = 0 end - - local var = imgui.new.bool(false) - - if fcommon.RwMemory(address,1) == enable_value then - var[0] = true - end - - if imgui.Checkbox(name, var) then - if var[0] then - fcommon.RwMemory(address,1,enable_value) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",address),{1,enable_value}) - fcommon.CheatActivated() - else - fcommon.RwMemory(address,1,disable_value) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",address),{1,disable_value}) - fcommon.CheatDeactivated() - end - end - - module.InformationTooltip(tooltip) - -end - -function module.CheckBoxVar(name,var,tooltip,panel_func,show_help_msg) - show_help_msg = show_help_msg or true - local temp = var[0] - - if imgui.Checkbox(name, var) then - - if show_help_msg then - if var[0] then - fcommon.CheatActivated() - else - fcommon.CheatDeactivated() - end - end - end - - module.InformationTooltip(tooltip) - module.ConfigPanel(name,panel_func) - - if temp ~= var[0] then return true end -end - -function module.CheckBoxFunc(name,var,func,tooltip) - - if imgui.Checkbox(name, var) then - func() - end - - module.InformationTooltip(tooltip) - -end - -function module.CheckBox3Var(name,var,tooltip,panel_func,show_help_msg) - show_help_msg = show_help_msg or true - local temp = var[0] - tooltip = "Check mark - Enabled\nSquare mark - No changes\nEmpty box - Disabled\n\n" .. tooltip - - fcommon.CheckBox3(name, var) - - if imgui.IsItemClicked(0) or imgui.IsItemClicked(1) then - if show_help_msg then - fcommon.CheatActivated() - end - end - - module.InformationTooltip(tooltip) - module.ConfigPanel(name,panel_func) - - if temp ~= var[0] then return true end -end - --------------------------------------------------- - -function module.InputFloat(label,var,func,min,max,cval) - - cval = cval or 1 - - if imgui.InputFloat("##".. label,var,0.0,0.0,"%.5f") then - if func ~= nil then - func() - end - end - - local size = imgui.GetItemRectSize().y - imgui.SameLine(0.0,4.0) - - if imgui.Button("-##".. label,imgui.ImVec2(size,size)) then - var[0] = var[0] - cval - end - - imgui.SameLine(0.0,4.0) - - if imgui.Button("+##".. label,imgui.ImVec2(size,size)) then - var[0] = var[0] + cval - end - - imgui.SameLine(0.0,4.0) - - imgui.Text(label) - - if min ~= nil and var[0] < min then - var[0] = min - end - - if max ~= nil and var[0] > max then - var[0] = max - end -end - -function module.UpdateStat(arg) - if arg.min == nil then arg.min = 0 end - if arg.default == nil then arg.default = 0 end - if arg.max == nil then arg.max = 1000 end - - fcommon.DropDownMenu(arg.name,function() - - if arg.help_text ~= nil then - fcommon.InformationTooltip(arg.help_text) - end - - local change_value = math.floor((arg.max - arg.min)/10) - local value = imgui.new.int(math.floor(getFloatStat(arg.stat))) - - imgui.Columns(2,nil,false) - if arg.min ~= nil then - imgui.Text("Minimum = " .. arg.min) - end - imgui.NextColumn() - if arg.max ~= nil then - imgui.Text("Maximum = " .. arg.max) - end - - imgui.Columns(1) - - imgui.PushItemWidth(imgui.GetWindowWidth()-70) - if imgui.InputInt("Set##".. arg.name,value) then - setFloatStat(arg.stat,value[0]) - fconfig.Set(fconfig.tconfig.stat_data,tostring(arg.stat),value[0]) - end - imgui.PopItemWidth() - - imgui.Spacing() - if imgui.Button("Minimum##".. arg.name,imgui.ImVec2(module.GetSize(3))) then - setFloatStat(arg.stat,arg.min) - fconfig.Set(fconfig.tconfig.stat_data,tostring(arg.stat),arg.min) - end - imgui.SameLine() - if imgui.Button("Default##".. arg.name,imgui.ImVec2(module.GetSize(3))) then - setFloatStat(arg.stat,arg.default) - fconfig.Set(fconfig.tconfig.stat_data,tostring(arg.stat),arg.default) - end - imgui.SameLine() - if imgui.Button("Maximum##".. arg.name,imgui.ImVec2(module.GetSize(3))) then - setFloatStat(arg.stat,arg.max) - fconfig.Set(fconfig.tconfig.stat_data,tostring(arg.stat),arg.max) - end - if value[0] < arg.min then - setFloatStat(arg.stat,arg.min) - fconfig.Set(fconfig.tconfig.stat_data,tostring(arg.stat),arg.min) - end - if value[0] > arg.max then - setFloatStat(arg.stat,arg.max) - fconfig.Set(fconfig.tconfig.stat_data,tostring(arg.stat),arg.max) - end - end) -end - -function module.UpdateAddress(arg) - - if arg.cvalue == nil then arg.cvalue = 1.0 end - if arg.save == nil then arg.save = true end - if arg.mul == nil then arg.mul = 1.0 end - - local buttons = 3 - - if arg.min == nil then - buttons = buttons - 1 - end - - if arg.default == nil then - buttons = buttons - 1 - end - - if arg.max == nil then - buttons = buttons - 1 - end - - fcommon.DropDownMenu(arg.name,function() - - local value = imgui.new.float(module.RwMemory(arg.address,arg.size,nil,nil,arg.is_float,arg.mul)) - - imgui.Columns(2,nil,false) - if arg.min ~= nil then - imgui.Text("Minimum = " .. arg.min) - end - imgui.NextColumn() - if arg.max ~= nil then - imgui.Text("Maximum = " .. arg.max) - end - imgui.Columns(1) - - imgui.Spacing() - - if imgui.InputFloat("##".. arg.name,value) then - module.RwMemory(arg.address,arg.size,value[0],nil,arg.is_float,arg.mul) - if arg.save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",arg.address),{arg.size,value[0],arg.is_float,arg.mul}) - end - end - imgui.SameLine(0.0,4.0) - if imgui.Button("-##".. arg.name,imgui.ImVec2(20,20)) then - module.RwMemory(arg.address,arg.size,(value[0] - arg.cvalue),nil,arg.is_float,arg.mul) - if arg.save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",arg.address),{arg.size,(value[0] - arg.cvalue),arg.is_float,arg.mul}) - end - end - imgui.SameLine(0.0,4.0) - if imgui.Button("+##".. arg.name,imgui.ImVec2(20,20)) then - module.RwMemory(arg.address,arg.size,(value[0] + arg.cvalue),nil,arg.is_float,arg.mul) - if arg.save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",arg.address),{arg.size,(value[0] + arg.cvalue),arg.is_float,arg.mul}) - end - end - imgui.SameLine(0.0,4.0) - imgui.Text("Set") - if buttons > 0 then - imgui.Spacing() - if imgui.Button("Minimum##".. arg.name,imgui.ImVec2(module.GetSize(buttons))) then - module.RwMemory(arg.address,arg.size,arg.min,nil,arg.is_float,arg.mul) - if arg.save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",arg.address),{arg.size,arg.min,arg.is_float,arg.mul}) - end - end - - if arg.default ~= nil then - imgui.SameLine() - if imgui.Button("Default##".. arg.name,imgui.ImVec2(module.GetSize(buttons))) then - module.RwMemory(arg.address,arg.size,arg.default,nil,arg.is_float,arg.mul) - if arg.save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",arg.address),{arg.size,arg.default,arg.is_float,arg.mul}) - end - end - end - - if arg.max ~= nil then - imgui.SameLine() - if imgui.Button("Maximum##".. arg.name,imgui.ImVec2(module.GetSize(buttons))) then - module.RwMemory(arg.address,arg.size,arg.max,nil,arg.is_float,arg.mul) - if arg.save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",arg.address),{arg.size,arg.max,arg.is_float,arg.mul}) - end - end - end - imgui.SameLine() - imgui.Spacing() - end - if (arg.min ~= nil) and (value[0] < arg.min) then - module.RwMemory(arg.address,arg.size,arg.min,nil,arg.is_float,arg.mul) - if arg.save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",arg.address),{arg.size,arg.min,arg.is_float,arg.mul}) - end - end - - if (arg.max ~= nil) and (value[0] > arg.max) then - module.RwMemory(arg.address,arg.size,arg.max,nil,arg.is_float,arg.mul) - if arg.save then - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",arg.address),{arg.size,arg.max,arg.is_float,arg.mul}) - end - end - end) -end - --- Provides options to change memory bits -function module.UpdateBits(label,name_table,address,size) - - if name_table == nil then name_table = {} end - local bits = size*8 - local val = readMemory(address,size,false) - local number = 1 - fcommon.DropDownMenu(label,function() - imgui.Columns(2,nil,false) - for i=1,bits,1 do - - local state = imgui.new.bool(false) - - if bit.band(val,number) == number then - state[0] = true - end - - if name_table[tostring(i)] == nil then name_table[tostring(i)] = "Unknown ##" .. tostring(i) end - - if imgui.Checkbox(name_table[tostring(i)],state) then - val = bit.bxor(val,number) - writeMemory(address,size,val,false) - end - - if i == bits/2 then - imgui.NextColumn() - end - number = number * 2 - end - imgui.Columns(1) - end) -end - --------------------------------------------------- --- Misc - --- Indexes image paths recursively from root directory -function module.IndexFiles(mainDir,store_table,req_ext) - load_images = load_images or false - - process_file = function(file_path,element) - if doesFileExist(file_path) then - local _,file_name,file_ext = string.match(file_path, "(.-)([^\\/]-%.?([^%.\\/]*))$") - file_name = string.sub(file_name,1,-5) - if req_ext == file_ext then - if store_table[element] == nil then - store_table[element] = {} - end - if (req_ext == "jpg" or req_ext == "png") and fmenu.tmenu.fast_load_images[0] then - store_table[element][file_name] = imgui.CreateTextureFromFile(file_path) - else - store_table[element][file_name] = file_path - end - end - end - end - - for element in lfs.dir(mainDir) do - local ele_path = mainDir .. "\\" .. element - if doesDirectoryExist(ele_path) and element ~= "." and element ~= ".." then - for file in lfs.dir(ele_path) do - local file_path = ele_path .. "\\" .. file - process_file(file_path,element) - end - end - if doesFileExist(ele_path) then - process_file(ele_path,element) - end - end -end - -function module.ReleaseImages(main_table) - for _,image_table in pairs(main_table) do - for model,image in pairs(image_table) do - if type(image) ~= "string" then - imgui.ReleaseTexture(image) - end - end - end -end - --- Used to read/write from/to memory -function module.RwMemory(address,size,value,protect,is_float,mul) - if protect == nil then protect = false end - if mul == nil then mul = 1 end - - if value == nil then - local return_val = nil - if is_float == true then - return_val = memory.getfloat(address,protect) - else - return_val = readMemory(address,size,protect) - end - - return return_val*mul - else - if is_float == true then - memory.setfloat(address,value/mul,protect) - else - writeMemory(address,size,value/mul,protect) - end - end -end - -function module.CheatActivated() - printHelpString("Cheat ~g~Activated") -end - -function module.CheatDeactivated() - printHelpString("Cheat ~r~Deactivated") -end - -function module.KeyWait(key1,key2) - while isKeyDown(key1) - and isKeyDown(key2) do - wait(0) - end -end --------------------------------------------------- - - --------------------------------------------------- --- Custom imgui widgets --------------------------------------------------- --- Scrollable Tabs Implementation - -local _tabs = -{ - current_bar = nil, - panel_func = nil, -} - - -function module.BeginTabBar(label) - - if _tabs[label] == nil then - _tabs[label] = - { - bar_data = {}, - selected_tab = "", - } - end - _tabs.current_bar = label - - local draw_list = imgui.GetWindowDrawList(), - - imgui.Spacing() - if #_tabs[label].bar_data > 0 then - imgui.BeginChild(label,imgui.ImVec2(imgui.GetWindowWidth()-imgui.GetStyle().WindowPadding.x*2,imgui.GetFrameHeight()*0.9)) - - imgui.PushStyleVarVec2(imgui.StyleVar.ItemSpacing, imgui.ImVec2(4.0)) - for k,v in ipairs(_tabs[label].bar_data) do - DrawTabElements(draw_list,v) - end - imgui.PopStyleVar() - - local minx = imgui.GetWindowPos().x - local maxy = imgui.GetItemRectMax().y - draw_list:AddLine(imgui.ImVec2(minx-5,maxy), imgui.ImVec2(minx+imgui.GetWindowWidth()+3,maxy), imgui.GetColorU32(imgui.Col.TabActive)) - - imgui.InvisibleButton("?##InfoTooltip",imgui.CalcTextSize("?")) - draw_list:AddText(imgui.ImVec2(imgui.GetItemRectMin().x,imgui.GetItemRectMin().y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.TextDisabled),"?") - - if imgui.IsItemHovered() then - imgui.BeginTooltip() - imgui.SetTooltip("If your window width is small you\ncan scroll by Shift + Mouse wheel") - imgui.EndTooltip() - end - imgui.EndChild() - imgui.Spacing() - end - imgui.BeginChild("##TabStuff" .. label) - return true -end - -function module.BeginTabItem(label) - - if _tabs.current_bar == nil then return false end - - local exists = false - - for k,v in ipairs(_tabs[_tabs.current_bar].bar_data) do - if v == label then - exists = true - end - end - if not exists then - _tabs[_tabs.current_bar].bar_data[#(_tabs[_tabs.current_bar].bar_data)+1] = label - end - - - if _tabs[_tabs.current_bar].selected_tab == label then - if _tabs.panel_func == nil then - return true - else - _tabs.panel_func() - end - end -end - -function DrawTabElements(draw_list,label) - - if _tabs[_tabs.current_bar].selected_tab == "" then _tabs[_tabs.current_bar].selected_tab = label end - - if _tabs[_tabs.current_bar].selected_tab == label then - btn_color = imgui.GetColorU32(imgui.Col.TabActive) - else - btn_color = imgui.GetColorU32(imgui.Col.Tab) - end - - if imgui.InvisibleButton("##InvisibleButton".. label, imgui.ImVec2(imgui.CalcTextSize(label).x+10,imgui.GetFrameHeight()*0.9)) then - _tabs[_tabs.current_bar].selected_tab = label - _tabs.panel_func = nil - end - - if imgui.IsItemHovered() then - btn_color = imgui.GetColorU32(imgui.Col.TabHovered) - end - - draw_list:AddRectFilled(imgui.GetItemRectMin(), imgui.GetItemRectMax(), btn_color) - local offset_x = (imgui.GetItemRectSize().x - imgui.CalcTextSize(label).x)/2 - local offset_y = (imgui.GetItemRectSize().y - imgui.CalcTextSize(label).y)/2 - - draw_list:AddText(imgui.ImVec2(imgui.GetItemRectMin().x+offset_x,imgui.GetItemRectMin().y+offset_y), imgui.GetColorU32(imgui.Col.Text),label) - imgui.SameLine() - -end - -function module.EndTabItem(label) end -function module.EndTabBar(label) - imgui.EndChild() - _tabs.current_bar = nil -end - - -function module.ConfigPanel(label,func) - if func ~= nil then - imgui.SameLine() - imgui.InvisibleButton("c##".. label,imgui.CalcTextSize("c")) - local drawlist = imgui.GetWindowDrawList() - drawlist:AddText(imgui.ImVec2(imgui.GetItemRectMin().x,imgui.GetItemRectMin().y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.TextDisabled),"c") - - - if imgui.IsItemClicked(0) then - _tabs.panel_func = function() - imgui.TextWrapped(string.format("%s configuraion",label)) - imgui.Separator() - if imgui.Button("Hide",imgui.ImVec2(module.GetSize(1))) then - _tabs.panel_func = nil - end - - imgui.Dummy(imgui.ImVec2(0,10)) - func() - end - end - end -end - - -function module.CreateMenus(names,funcs) - - imgui.PushStyleVarVec2(imgui.StyleVar.ItemSpacing,imgui.ImVec2(0,0.5)) - - local button = imgui.ColorConvertFloat4ToU32(imgui.GetStyle()['Colors'][21]) - - for i=1,#names,1 do - if tcheatmenu.current_menu == i then - imgui.GetStyle().Colors[imgui.Col.Button] = imgui.GetStyle().Colors[imgui.Col.ButtonActive] - end - if imgui.Button(names[i],imgui.ImVec2(module.GetSize(4,true))) then - tcheatmenu.current_menu = i - _tabs.panel_func = nil - end - if tcheatmenu.current_menu == i then - imgui.GetStyle().Colors[imgui.Col.Button] = imgui.ColorConvertU32ToFloat4(button) - end - - if i%4 ~= 0 then - imgui.SameLine() - end - end - - imgui.PopStyleVar() - imgui.Dummy(imgui.ImVec2(0,5)) - if tcheatmenu.current_menu ~= 0 then - funcs[tcheatmenu.current_menu]() - end -end - - --------------------------------------------------- --- Hotkey Implementation - -local _hotkeys = -{ - currently_active = nil, -} - -function module.GetHotKeyNames(hotkeys) - - if hotkeys[1] == hotkeys[2] then - return string.format(" %s",vkeys.id_to_name(hotkeys[1])) - else - return string.format(" %s + %s",vkeys.id_to_name(hotkeys[1]),vkeys.id_to_name(hotkeys[2])) - end - -end - -function module.OnHotKeyPress(hotkeys,func) - if isKeyDown(hotkeys[1]) and isKeyDown(hotkeys[2]) and _hotkeys.currently_active ~= hotkeys then - while isKeyDown(hotkeys[1]) and isKeyDown(hotkeys[2]) do - wait(0) - end - func() - end -end - - -function ReadKeyPress() - while _hotkeys.read_key_press do - - for i=32,255,1 do - if isKeyDown(i) then - _hotkeys.currently_active[1] = i - break - end - end - - for i=255,32,-1 do - if isKeyDown(i) then - _hotkeys.currently_active[2] = i - break - end - end - - if _hotkeys.currently_active[1] ~= _hotkeys.currently_active[2] then - while isKeyDown(_hotkeys.currently_active[1]) or isKeyDown(_hotkeys.currently_active[2]) do - wait(0) - end - end - wait(0) - end -end - -function module.HotKey(label,hotkeys) - local active = false - local x,y = module.GetSize(3) - y = y/1.2 - - if hotkeys == _hotkeys.currently_active then - imgui.PushStyleColor(imgui.Col.Button,imgui.GetStyle().Colors[imgui.Col.ButtonActive]) - active = true - end - - if hotkeys[1] == hotkeys[2] then - text = vkeys.id_to_name(hotkeys[1]) - else - text = vkeys.id_to_name(hotkeys[1]) .. " + " .. vkeys.id_to_name(hotkeys[2]) - end - - if imgui.Button(text,imgui.ImVec2(x,y)) then - if _hotkeys.currently_active == hotkeys then - _hotkeys.read_key_press = false - _hotkeys.currently_active = {} - else - _hotkeys.currently_active = hotkeys - _hotkeys.read_key_press = true - lua_thread.create(ReadKeyPress) - end - end - - if active then - imgui.PopStyleColor() - end - - if not imgui.IsWindowFocused() or not imgui.IsItemVisible() then - _hotkeys.currently_active = {} - end - - - imgui.SameLine() - - imgui.Text(label) -end --------------------------------------------------- --- Misc - -function module.HorizontalSelector(label,var,table) - local rtn = false - local drawlist = imgui.GetWindowDrawList() - local hframe = imgui.GetFrameHeight() - local inner_spacing = imgui.GetStyle().ItemInnerSpacing.x - local width = imgui.GetWindowContentRegionWidth()*0.65 - 4*hframe - inner_spacing + 6 - - imgui.InvisibleButton("##1" .. label,imgui.ImVec2(width,hframe)) - local min = imgui.GetItemRectMin() - local max = imgui.GetItemRectMax() - drawlist:AddRectFilled(min, max, imgui.GetColorU32(imgui.Col.FrameBg)) - drawlist:AddText(imgui.ImVec2(min.x+inner_spacing,min.y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.Text),table[var[0]+2]) - - - imgui.SameLine(0,inner_spacing) - - if imgui.Button("<##2" .. label,imgui.ImVec2(2*hframe,hframe)) then - rtn = -1 - - if var[0] > -1 then - var[0] = var[0] - 1 - else - var[0] = #table-2 - end - end - - imgui.SameLine(0,inner_spacing) - - if imgui.Button(">##2" .. label,imgui.ImVec2(2*hframe,hframe)) then - rtn = 1 - - if var[0] < (#table-2) then - var[0] = var[0] + 1 - else - var[0] = -1 - end - end - - min = imgui.GetItemRectMin() - max = imgui.GetItemRectMax() - imgui.SameLine() - imgui.InvisibleButton("##4" ..label,imgui.ImVec2(imgui.CalcTextSize(label).x,hframe)) - drawlist:AddText(imgui.ImVec2(max.x+imgui.GetStyle().ItemInnerSpacing.x,min.y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.Text),label) - - return rtn -end - -function module.DropDownListStr(label,table,selected,func) - if imgui.BeginCombo(label, selected) then - for key,val in module.spairs(table) do - if key ~= selected then - if imgui.MenuItemBool(key) and func ~= nil then - func(key,val) - end - end - end - imgui.EndCombo() - end -end - -function module.DropDownListNumber(label,table,selected) - local rtn = false - - if imgui.BeginCombo(label, table[selected[0]]) then - for key,val in ipairs(table) do - if key ~= selected[0] then - if imgui.MenuItemBool(val)then - rtn = true - selected[0] = key - end - end - end - imgui.EndCombo() - end - return rtn -end - -function module.DropDownMenu(label,func,text_disabled) - if label ~= nil then - if text_disabled then - imgui.PushStyleColor(imgui.Col.Text,imgui.ImVec4(128,128,128,0.3)) - end - if imgui.CollapsingHeader(label) then - if text_disabled then - imgui.PopStyleColor() - end - imgui.Spacing() - - func() - - imgui.Spacing() - imgui.Separator() - imgui.Spacing() - else - if text_disabled then - imgui.PopStyleColor() - end - end - else - func() - - imgui.Spacing() - imgui.Separator() - imgui.Spacing() - end -end - -function RenderCheckMark(drawlist, pos, col, sz) - - local thickness = sz / 5.0 - thickness = thickness < 1.0 and 1.0 or thickness - - sz = sz - thickness * 0.5 - pos.x = pos.x + thickness * 0.25 - pos.y = pos.y + thickness * 0.25 - - local third = sz / 3.0 - local bx = pos.x + third - local by = pos.y + sz - third * 0.5 - - drawlist:PathLineTo(imgui.ImVec2(bx - third, by - third)) - drawlist:PathLineTo(imgui.ImVec2(bx, by)) - drawlist:PathLineTo(imgui.ImVec2(bx + third * 2.0, by - third * 2.0)) - drawlist:PathStroke(col, false, thickness) -end - --- 3 state checkbox, 1 = enabled, 0 = disabled, -1 = not configured -function module.CheckBox3(label,var) - local square_sz = imgui.GetFrameHeight() - local drawlist = imgui.GetWindowDrawList() - local color = imgui.GetColorU32(imgui.Col.FrameBg) - local text_size = imgui.CalcTextSize(label) - - if imgui.InvisibleButton("##InvCheckboxBtn" .. label, imgui.ImVec2(square_sz+text_size.x+imgui.GetStyle().ItemInnerSpacing.x,square_sz)) then - var[0] = var[0] - 1 - var[0] = var[0] < -1 and 1 or var[0] - end - - if imgui.IsItemClicked(1) then - var[0] = var[0] + 1 - var[0] = var[0] > 1 and -1 or var[0] - end - - if imgui.IsItemHovered() then - color = imgui.GetColorU32(imgui.Col.FrameBgHovered) - end - - local min = imgui.GetItemRectMin() - local max = imgui.ImVec2(imgui.GetItemRectMax().x-text_size.x-imgui.GetStyle().ItemInnerSpacing.x,imgui.GetItemRectMax().y) - drawlist:AddRectFilled(min, max, color) - local pad = math.floor(square_sz / 6.0) - pad = pad < 1.0 and 1.0 or pad - - if var[0] == -1 then - drawlist:AddRectFilled(imgui.ImVec2(min.x+3,min.y+3), imgui.ImVec2(max.x-3,max.y-3), imgui.GetColorU32(imgui.Col.CheckMark)) - end - if var[0] == 1 then - RenderCheckMark(drawlist, imgui.ImVec2(min.x+pad,min.y+pad), imgui.GetColorU32(imgui.Col.CheckMark), square_sz - pad * 2.0) - end - - drawlist:AddText(imgui.ImVec2(max.x+imgui.GetStyle().ItemInnerSpacing.x,min.y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.Text),label) - return imgui.IsItemClicked(0) -end - --------------------------------------------------- - - -return module diff --git a/moonloader/lib/cheat-menu/modules/config.lua b/moonloader/lib/cheat-menu/modules/config.lua deleted file mode 100644 index 062a9e9..0000000 --- a/moonloader/lib/cheat-menu/modules/config.lua +++ /dev/null @@ -1,416 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tconfig = -{ - memory_data = {}, - misc_data = {}, - path = tcheatmenu.dir .. "json/config.json", - reset = false, - read = fcommon.LoadJson("config"), - stat_data = {}, - save_config = true, -} - - -function module.Get(s,default,t) - if t == nil then t = module.tconfig.read end - if t == nil then return default end - - local status, rtn = pcall(function() - for key in s:gmatch('[^.]+') do - if t[key] == nil then return default end - t = t[key] - end - - if t == nil then - return default - else - return t - end - end) - - if status then - return rtn - else - print(string.format("Error occured while getting value of %s. Returning default value %s",s,tostring(default))) - return default - end -end - -function module.Set(t,path,value) - - local x = 0 - for key in path:gmatch('[^.]+') do - x = x + 1 - end - - local y = 0 - for key in path:gmatch('[^.]+') do - y = y + 1 - if x == y then - t[key] = value - else - if t[key] == nil then t[key] = {} end - t = t[key] - end - end -end - -module.tconfig.memory_data = module.Get('tmemory_data',{}) -module.tconfig.misc_data = module.Get('tmisc_data',{}) -module.tconfig.stat_data = module.Get('tstat_data',{}) - -function module.SetConfigData() - for k,v in pairs(module.tconfig.memory_data) do - fcommon.RwMemory(tonumber(k),v[1],v[2],nil,v[3],v[4]) - end - - if fmenu.tmenu.enable_stat_saving[0] then - for k,v in pairs(module.tconfig.stat_data) do - setFloatStat(tonumber(k),v) - end - - setCharHealth(PLAYER_PED,module.Get("tmisc_data.Health",getCharHealth(PLAYER_PED))) - - if getCharArmour(PLAYER_PED) < module.Get("tmisc_data.Armour",getCharArmour(PLAYER_PED)) then - addArmourToChar(PLAYER_PED,module.Get("tmisc_data.Armour",0)-getCharArmour(PLAYER_PED)) - else - damageChar(PLAYER_PED,getCharArmour(PLAYER_PED)-module.Get("tmisc_data.Armour",0),true) - end - - -- Body - local body = module.Get("tmisc_data.Body",nil) - if body == 1 then - callFunction(0x439110,1,1,false) - end - if body == 2 then - callFunction(0x439190,1,1,false) - callFunction(0x439150,1,1,false) - end - if body == 3 then - callFunction(0x439190,1,1,false) - end - end - - -- Never Wanted - if readMemory(0x969171,1,false) == 0 and module.Get("tmisc_data.Never Wanted",0) == true then - callFunction(0x4396C0,1,0,false) - end - - -- Car & zone names - local car_name = module.Get("tmisc_data.Display Car Names",nil) - - if car_name ~= nil then - displayCarNames(car_name) - fvisual.tvisual.car_names[0] = car_name - end - - local zone_name = module.Get("tmisc_data.Display Zone Names",nil) - - if zone_name ~= nil then - displayZoneNames(zone_name) - fvisual.tvisual.zone_names[0] = zone_name - end - -end - -function module.Write() - - if not module.tconfig.save_config then return end - - local write_table = {} - - if not fmenu.tmenu.dont_save[0] then - if not module.tconfig.reset then - if not fmenu.tmenu.enable_stat_saving[0] then - fmenu.tmenu.stat_data = {} - - -- Remove player health & armor too - module.tconfig.memory_data[string.format("0x%6.6X",getCharPointer(PLAYER_PED)+0x548)] = nil -- player armor - module.tconfig.memory_data[string.format("0x%6.6X",getCharPointer(PLAYER_PED)+0x540)] = nil -- player health - module.tconfig.memory_data[tostring(0xB7CE50)] = nil -- money - module.tconfig.misc_data["Body"] = nil - end - write_table = - { - tanimation = - { - fighting = - { - selected = fanimation.tanimation.fighting.selected[0], - }, - loop = fanimation.tanimation.loop[0], - ped = fanimation.tanimation.ped[0], - secondary = fanimation.tanimation.secondary[0], - walking = - { - selected = fanimation.tanimation.walking.selected[0], - }, - }, - tcheatmenu = - { - coord = - { - X = tcheatmenu.coord.X, - Y = tcheatmenu.coord.Y, - }, - current_menu = tcheatmenu.current_menu, - size = - { - X = tcheatmenu.size.X, - Y = tcheatmenu.size.Y, - }, - }, - tgame = - { - camera = - { - move_player = fgame.tgame.camera.move_player[0], - fov = fgame.tgame.camera.fov[0], - movement_speed = fgame.tgame.camera.movement_speed[0], - }, - disable_cheats = fgame.tgame.disable_cheats[0], - disable_help_popups = fgame.tgame.disable_help_popups[0], - disable_replay = fgame.tgame.disable_replay[0], - forbidden_area_wanted_level = fgame.tgame.forbidden_area_wanted_level[0], - fps_limit = fgame.tgame.fps_limit[0], - keep_stuff = fgame.tgame.keep_stuff[0], - freeze_mission_timer= fgame.tgame.freeze_mission_timer[0], - freeze_time = fgame.tgame.freeze_time[0], - object_spawner = - { - set_player_coord= fgame.tgame.object_spawner.set_player_coord[0], - }, - random_cheats = - { - cheat_activate_timer = fgame.tgame.random_cheats.cheat_activate_timer[0], - cheat_deactivate_timer = fgame.tgame.random_cheats.cheat_deactivate_timer[0], - checkbox = fgame.tgame.random_cheats.checkbox[0], - disabled_cheats = fgame.tgame.random_cheats.disabled_cheats, - disable_cheat_checkbox = fgame.tgame.random_cheats.disable_cheat_checkbox[0], - }, - script_manager = - { - scripts = fgame.tgame.script_manager.scripts, - }, - solid_water = fgame.tgame.solid_water[0], - ss_shortcut = fgame.tgame.ss_shortcut[0], - sync_system_time = fgame.tgame.sync_system_time[0], - }, - tmemory_data = module.tconfig.memory_data, - tmisc_data = module.tconfig.misc_data, - tstat_data = module.tconfig.stat_data, - tmenu = - { - auto_update_check = fmenu.tmenu.auto_update_check[0], - auto_reload = fmenu.tmenu.auto_reload[0], - dont_save = fmenu.tmenu.dont_save[0], - enable_stat_saving = fmenu.tmenu.enable_stat_saving[0], - fast_load_images = fmenu.tmenu.fast_load_images[0], - font = - { - selected = fmenu.tmenu.font.selected, - size = fmenu.tmenu.font.size[0], - }, - get_beta_updates = fmenu.tmenu.get_beta_updates[0], - hot_keys = - { - asc_key = fmenu.tmenu.hot_keys.asc_key, - camera_mode = fmenu.tmenu.hot_keys.camera_mode, - camera_mode_forward = fmenu.tmenu.hot_keys.camera_mode_forward, - camera_mode_backward = fmenu.tmenu.hot_keys.camera_mode_backward, - camera_mode_left = fmenu.tmenu.hot_keys.camera_mode_left, - camera_mode_right = fmenu.tmenu.hot_keys.camera_mode_right, - camera_mode_slow = fmenu.tmenu.hot_keys.camera_mode_slow, - camera_mode_fast = fmenu.tmenu.hot_keys.camera_mode_fast, - camera_mode_up = fmenu.tmenu.hot_keys.camera_mode_up, - camera_mode_down = fmenu.tmenu.hot_keys.camera_mode_down, - command_window = fmenu.tmenu.hot_keys.command_window, - menu_open = fmenu.tmenu.hot_keys.menu_open, - quick_screenshot = fmenu.tmenu.hot_keys.quick_screenshot, - quick_teleport = fmenu.tmenu.hot_keys.quick_teleport, - }, - lock_player = fmenu.tmenu.lock_player[0], - overlay = - { - coordinates = fmenu.tmenu.overlay.coordinates[0], - fps = fmenu.tmenu.overlay.fps[0], - health = fmenu.tmenu.overlay.health[0], - location = fmenu.tmenu.overlay.location[0], - position_index = fmenu.tmenu.overlay.position_index[0], - pos_x = fmenu.tmenu.overlay.pos_x[0], - pos_y = fmenu.tmenu.overlay.pos_y[0], - show = fmenu.tmenu.overlay.show[0], - speed = fmenu.tmenu.overlay.speed[0], - transparent_bg = fmenu.tmenu.overlay.transparent_bg[0], - }, - show_tooltips = fmenu.tmenu.show_tooltips[0], - show_crash_message = fmenu.tmenu.show_crash_message[0], - }, - tstyle = - { - font_size = fstyle.tstyle.font_size, - selected_name = fstyle.tstyle.selected_name, - }, - tped = - { - gang = - { - wars = fped.tped.gang.wars[0], - }, - ped_health_display = fped.tped.ped_health_display[0], - spawned_peds = - { - ped_bleed = fped.tped.spawned_peds.ped_bleed[0], - ped_accuracy= fped.tped.spawned_peds.ped_accuracy[0], - ped_health = fped.tped.spawned_peds.ped_health[0], - ped_type_selected = fped.tped.spawned_peds.ped_type_selected[0], - ped_weapon_ammo = fped.tped.spawned_peds.ped_weapon_ammo[0], - ped_weapon_selected = fped.tped.spawned_peds.ped_weapon_selected, - ped_weapon_id = fped.tped.spawned_peds.ped_weapon_id[0], - stand_still = fped.tped.spawned_peds.stand_still[0], - }, - }, - tplayer = - { - aimSkinChanger = fplayer.tplayer.aimSkinChanger[0], - cjBody = fplayer.tplayer.cjBody[0], - enable_saving = fplayer.tplayer.enable_saving[0], - god = fplayer.tplayer.god[0], - invisible = fplayer.tplayer.invisible[0], - keep_position = fplayer.tplayer.keep_position[0], - save_data = fplayer.tplayer.save_data, - }, - tteleport = - { - insert_coords = fteleport.tteleport.insert_coords[0], - shortcut = fteleport.tteleport.shortcut[0], - }, - tvehicle = - { - aircraft = - { - camera = fvehicle.tvehicle.aircraft.camera[0], - index = fvehicle.tvehicle.aircraft.index, - spawn_in_air = fvehicle.tvehicle.aircraft.spawn_in_air[0], - }, - car_engine = fvehicle.tvehicle.car_engine[0], - color = - { - show_all = fvehicle.tvehicle.color.show_all[0], - }, - components = - { - enable_saving = fvehicle.tvehicle.components.enable_saving[0], - save_data = fvehicle.tvehicle.components.save_data, - }, - apply_material_filter = fvehicle.tvehicle.apply_material_filter[0], - first_person_camera = - { - bool = fvehicle.tvehicle.first_person_camera.bool[0], - }, - gxt_name_table = fvehicle.tvehicle.gxt_name_table, - heavy = fvehicle.tvehicle.heavy[0], - invisible_car = fvehicle.tvehicle.invisible_car[0], - license_plate_text = ffi.string(fvehicle.tvehicle.license_plate_text), - lights = fvehicle.tvehicle.lights[0], - lock_speed = fvehicle.tvehicle.lock_speed[0], - neon = - { - checkbox = fvehicle.tvehicle.neon.checkbox[0], - }, - no_damage = fvehicle.tvehicle.no_damage[0], - no_vehicles = fvehicle.tvehicle.no_vehicles[0], - paintjobs = - { - enable_saving = fvehicle.tvehicle.paintjobs.enable_saving[0], - save_data = fvehicle.tvehicle.paintjobs.save_data, - }, - rainbow_colors = - { bool = fvehicle.tvehicle.rainbow_colors.bool[0], - traffic = fvehicle.tvehicle.rainbow_colors.traffic[0], - speed = fvehicle.tvehicle.rainbow_colors.speed[0], - }, - rainbow_neons = - { bool = fvehicle.tvehicle.rainbow_neons.bool[0], - traffic = fvehicle.tvehicle.rainbow_neons.traffic[0], - speed = fvehicle.tvehicle.rainbow_neons.speed[0], - }, - spawn_inside = fvehicle.tvehicle.spawn_inside[0], - speed = fvehicle.tvehicle.speed[0], - stay_on_bike = fvehicle.tvehicle.stay_on_bike[0], - visual_damage = fvehicle.tvehicle.visual_damage[0], - unlimited_nitro = fvehicle.tvehicle.unlimited_nitro[0], - watertight_car = fvehicle.tvehicle.watertight_car[0], - }, - tvisual = - { - lock_weather = fvisual.tvisual.lock_weather[0], - disable_motion_blur = fvisual.tvisual.disable_motion_blur[0], - radio_channel_names = fvisual.tvisual.radio_channel_names[0], - }, - tweapon = - { - auto_aim = fweapon.tweapon.auto_aim[0], - ammo_count = fweapon.tweapon.ammo_count[0], - gang = - { - enable_weapon_editor = fweapon.tweapon.gang.enable_weapon_editor[0], - }, - fast_reload = fweapon.tweapon.fast_reload[0], - max_accuracy = fweapon.tweapon.max_accuracy[0], - max_ammo_clip = fweapon.tweapon.max_ammo_clip[0], - max_move_speed = fweapon.tweapon.max_move_speed[0], - huge_damage = fweapon.tweapon.huge_damage[0], - gang_weapons = - { - {fweapon.tweapon.gang.used_weapons[1][1],fweapon.tweapon.gang.used_weapons[1][2],fweapon.tweapon.gang.used_weapons[1][3]}, -- Ballas - {fweapon.tweapon.gang.used_weapons[2][1],fweapon.tweapon.gang.used_weapons[2][2],fweapon.tweapon.gang.used_weapons[2][3]}, -- Grove - {fweapon.tweapon.gang.used_weapons[3][1],fweapon.tweapon.gang.used_weapons[3][2],fweapon.tweapon.gang.used_weapons[3][3]}, -- Vagos - {fweapon.tweapon.gang.used_weapons[4][1],fweapon.tweapon.gang.used_weapons[4][2],fweapon.tweapon.gang.used_weapons[4][3]}, -- SF Rifa - {fweapon.tweapon.gang.used_weapons[5][1],fweapon.tweapon.gang.used_weapons[5][2],fweapon.tweapon.gang.used_weapons[5][3]}, -- Da Nang Boys - {fweapon.tweapon.gang.used_weapons[6][1],fweapon.tweapon.gang.used_weapons[6][2],fweapon.tweapon.gang.used_weapons[6][3]}, -- Mafia - {fweapon.tweapon.gang.used_weapons[7][1],fweapon.tweapon.gang.used_weapons[7][2],fweapon.tweapon.gang.used_weapons[7][3]}, -- Triads - {fweapon.tweapon.gang.used_weapons[8][1],fweapon.tweapon.gang.used_weapons[8][2],fweapon.tweapon.gang.used_weapons[8][3]}, -- VLA - {fweapon.tweapon.gang.used_weapons[9][1],fweapon.tweapon.gang.used_weapons[9][2],fweapon.tweapon.gang.used_weapons[9][3]}, -- Gang 9 - {fweapon.tweapon.gang.used_weapons[10][1],fweapon.tweapon.gang.used_weapons[10][2],fweapon.tweapon.gang.used_weapons[10][3]}, -- Gang 10 - }, - long_range = fweapon.tweapon.long_range[0], - ped = fweapon.tweapon.ped[0], - }, - } - end - else - write_table = - { - tmenu = - { - dont_save = true; - } - } - end - - local file = io.open(module.tconfig.path,'w') - if file then - file:write(encodeJson(write_table)) - io.close(file) - end -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/const.lua b/moonloader/lib/cheat-menu/modules/const.lua deleted file mode 100644 index 39ede20..0000000 --- a/moonloader/lib/cheat-menu/modules/const.lua +++ /dev/null @@ -1,149 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - --- Constant variables used throughout the menu - -module.IDENTIFIER = -{ - VEHICLE = 0, - WEAPON = 1, - PAINTJOB = 2, - COMPONENT = 3, - PED = 4, - CLOTHES = 5, - TELEPORT = 6, - MEMORY = 8, - ANIMATION = 9, - MISSION = 10 -} - -module.DRAW_TYPE = -{ - TEXT = 0, - IMAGE = 1, -} - -module.VEHICLE = -{ - IMAGE_HEIGHT = 75, - IMAGE_WIDTH = 100, -} - -module.COMPONENT = -{ - IMAGE_HEIGHT = 80, - IMAGE_WIDTH = 100, - TOTAL_SLOTS = 14, -} - -module.PAINTJOB = -{ - IMAGE_HEIGHT = 75, - IMAGE_WIDTH = 100, -} - -module.PED = -{ - IMAGE_HEIGHT = 110, - IMAGE_WIDTH = 65, -} - -module.WEAPON = -{ - IMAGE_HEIGHT = 65, - IMAGE_WIDTH = 65, -} - -module.CLOTH = -{ - IMAGE_HEIGHT = 100, - IMAGE_WIDTH = 70, -} - -module.TRAIN_CAM_FIX = -{ - ON = 171, - OFF = 6, -} - -module.MEMORY_RB = -{ - NONE = 0, - CAR = 1, - CHAR = 2, -} - -module.DEFAULT_GANG_WEAPONS = -{ - {22,28,0}, -- Ballas - {22,0,0}, -- Grove - {22,0,0}, -- Vagos - {0,0,0}, -- SF Rifa - {22,28,0}, -- Da Nang Boys - {24,0,0}, -- Mafia - {22,30,0}, -- Triads - {22,28,0}, -- VLA - {0,0,0}, -- Gang 9 - {0,0,0}, -- Gang 10 -} - -module.UPDATE_STATUS = -{ - DOWNLOADING = 5, - DOWNLOADED = 58, - HIDE_MSG = 7, - NEW_UPDATE = 9, -} - -module.VEHICLE_CLASS = -{ - IGNORE = - 1, - NORMAL = 0, - POOR_FAMILY = 1, - RICH_FAMILY = 2, - EXECUTIVE = 3, - WORKER = 4, - BIG = 5, - TAXI = 6, - MOPED = 7, - MOTOR_BIKE = 8, - LEISURE_BOAT = 9, - WORKER_BOAT = 10, - BICYCLE = 11, -} - -module.CHECKBOX_STATE = -{ - NOT_CONFIGURED = -1, - OFF = 0, - ON = 1, -} - -module.MODEL_TYPE = -{ - INVALID = nil, - ATOMIC = 1, - TIME = 3, - WEAPON = 4, - CLUMP = 5, - VEHICLE = 6, - PED = 7, - LOD = 8 -} - -return module \ No newline at end of file diff --git a/moonloader/lib/cheat-menu/modules/game.lua b/moonloader/lib/cheat-menu/modules/game.lua deleted file mode 100644 index 988eb70..0000000 --- a/moonloader/lib/cheat-menu/modules/game.lua +++ /dev/null @@ -1,1223 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tgame = -{ - camera = - { - ped = nil, - move_player = imgui.new.bool(fconfig.Get('tgame.camera.move_player',true)), - bool = imgui.new.bool(false), - fov = imgui.new.int(fconfig.Get('tgame.camera.fov',70)), - lock_on_player = imgui.new.bool(false), - movement_speed = imgui.new.float(fconfig.Get('tgame.camera.movement_speed',0.4)), - shake = imgui.new.float(0.0), - }, - day_names = {"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"}, - disable_cheats = imgui.new.bool(fconfig.Get('tgame.disable_cheats',false)), - disable_help_popups = imgui.new.bool(fconfig.Get('tgame.disable_help_popups',false)), - disable_replay = imgui.new.bool(fconfig.Get('tgame.disable_replay',false)), - fps_limit = imgui.new.int(fconfig.Get('tgame.fps_limit',30)), - forbidden_area_wanted_level = imgui.new.bool(fconfig.Get('tgame.forbidden_area_wanted_level',true)), - freeze_mission_timer = imgui.new.bool(fconfig.Get('tgame.freeze_mission_timer',false)), - freeze_time = imgui.new.bool(fconfig.Get('tgame.freeze_time',false)), - gxt_save_name = imgui.new.char[22]("Untitled Save"), - keep_stuff = imgui.new.bool(fconfig.Get('tgame.keep_stuff',false)), - object_spawner = - { - coord = - { - x = imgui.new.float(0), - y = imgui.new.float(0), - z = imgui.new.float(0), - }, - categories = {"Group view","Object view"}, - selected = imgui.new.int(1), - filter = imgui.ImGuiTextFilter(), - group_name = imgui.new.char[32]("Group 1"), - obj_name = imgui.new.char[32]("New object"), - model = imgui.new.int(1427), - placed = {}, - set_player_coord = imgui.new.bool(fconfig.Get('tgame.object_spawner.set_player_coord',false)), - }, - random_cheats = - { - activated_cheats = {}, - cheat_activate_timer = imgui.new.int(fconfig.Get('tgame.random_cheats.cheat_activate_timer',10)), - cheat_deactivate_timer = imgui.new.int(fconfig.Get('tgame.random_cheats.cheat_deactivate_timer',10)), - cheat_name = fcommon.LoadJson("cheat name"), - checkbox = imgui.new.bool(fconfig.Get('tgame.random_cheats.checkbox',false)), - disable_cheat_checkbox = imgui.new.bool(fconfig.Get('tgame.random_cheats.disable_cheat_checkbox',false)), - disabled_cheats = fconfig.Get('tgame.random_cheats.disabled_cheats',{}), - }, - script_manager = - { - filter = imgui.ImGuiTextFilter(), - categories = {"All","Loaded","Not loaded"}, - selected = imgui.new.int(1), - scripts = fconfig.Get('tgame.script_manager.scripts',{}), - skip_auto_reload = false, - not_loaded = {}, - }, - solid_water = imgui.new.bool(fconfig.Get('tgame.solid_water',false)), - solid_water_object = nil, - ss_shortcut = imgui.new.bool(fconfig.Get('tgame.ss_shortcut',false)), - sync_system_time = imgui.new.bool(fconfig.Get('tgame.sync_system_time',false)), -} - -function module.SolidWater() - while module.tgame.solid_water[0] do - wait(0) - local x,y,z = getCharCoordinates(PLAYER_PED) - local water_height = getWaterHeightAtCoords(x,y,false) - - if doesObjectExist(module.tgame.solid_water_object) then - deleteObject(module.tgame.solid_water_object) - end - - if z > water_height and water_height ~= -1000 and not isCharInAnyBoat(PLAYER_PED) then -- Don't create the object if player is under water/diving - module.tgame.solid_water_object = createObject(3095,x,y,water_height) - setObjectVisible(module.tgame.solid_water_object,false) - end - end - - if doesObjectExist(module.tgame.solid_water_object) then - deleteObject(module.tgame.solid_water_object) - end -end - -function module.CameraMode() - - while module.tgame.camera.bool[0] do - - local x,y,z = getCharCoordinates(PLAYER_PED) - - module.tgame.camera.ped = PLAYER_PED - if module.tgame.camera.move_player[0] then - module.tgame.camera.lock_on_player[0] = false - else - module.tgame.camera.ped = createRandomChar(x,y,z) - setCharVisible(module.tgame.camera.ped,false) - end - - - freezeCharPositionAndDontLoadCollision(module.tgame.camera.ped,true) - setCharCollision(module.tgame.camera.ped,false) - setLoadCollisionForCharFlag(module.tgame.camera.ped,false) - setEveryoneIgnorePlayer(0,true) - - displayRadar(false) - displayHud(false) - - local total_mouse_x = getCharHeading(PLAYER_PED) - local total_mouse_y = 0 - local total_mouse_delta = 0 - - setCharCoordinates(module.tgame.camera.ped,x,y,z-20) - - cameraSetLerpFov(getCameraFov(),module.tgame.camera.fov[0],1000,true) - cameraPersistFov(true) - - while module.tgame.camera.bool[0] do - local factor = 1.0 - x, y, z = getCharCoordinates(module.tgame.camera.ped) - local mouse_x, mouse_y = getPcMouseMovement() - - total_mouse_x = total_mouse_x - mouse_x/6 - total_mouse_y = total_mouse_y + mouse_y/3 - - if total_mouse_y > 150 then total_mouse_y = 150 end - if total_mouse_y < -150 then total_mouse_y = -150 end - - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_slow[1] and fmenu.tmenu.hot_keys.camera_mode_slow[2]) then - factor = factor*0.5 - end - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_fast[1] and fmenu.tmenu.hot_keys.camera_mode_fast[2]) then - factor = factor*2 - end - - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_forward[1] and fmenu.tmenu.hot_keys.camera_mode_forward[2]) then - local angle = getCharHeading(module.tgame.camera.ped) + 90 - - x = x + module.tgame.camera.movement_speed[0] * math.cos(angle * math.pi/180) * factor - y = y + module.tgame.camera.movement_speed[0] * math.sin(angle * math.pi/180) * factor - z = z + module.tgame.camera.movement_speed[0] * math.sin(total_mouse_y/3* math.pi/180) * factor - end - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_backward[1] and fmenu.tmenu.hot_keys.camera_mode_backward[2]) then - local angle = getCharHeading(module.tgame.camera.ped) + 90 - - x = x - module.tgame.camera.movement_speed[0] * math.cos(angle * math.pi/180) * factor - y = y - module.tgame.camera.movement_speed[0] * math.sin(angle * math.pi/180) * factor - z = z - module.tgame.camera.movement_speed[0] * math.sin(total_mouse_y/3* math.pi/180) * factor - end - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_left[1] and fmenu.tmenu.hot_keys.camera_mode_left[2]) then - local angle = getCharHeading(module.tgame.camera.ped) - - x = x - module.tgame.camera.movement_speed[0] * math.cos(angle * math.pi/180) * factor - y = y - module.tgame.camera.movement_speed[0] * math.sin(angle * math.pi/180) * factor - end - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_right[1] and fmenu.tmenu.hot_keys.camera_mode_right[2]) then - local angle = getCharHeading(module.tgame.camera.ped) - - x = x + module.tgame.camera.movement_speed[0] * math.cos(angle * math.pi/180) * factor - y = y + module.tgame.camera.movement_speed[0] * math.sin(angle * math.pi/180) * factor - end - - if module.tgame.camera.lock_on_player[0] then - - local right = 0 - local front = 0 - local up = 0 - total_mouse_x = 0 - total_mouse_y = 0 - while module.tgame.camera.lock_on_player[0] and module.tgame.camera.bool[0] do - local mouse_x, mouse_y = getPcMouseMovement() - - total_mouse_x = total_mouse_x - mouse_x/6 - total_mouse_y = total_mouse_y + mouse_y/6 - if total_mouse_x > 300 then total_mouse_x = 300 end - if total_mouse_x < -300 then total_mouse_x = -300 end - if total_mouse_y > 170 then total_mouse_y = 170 end - if total_mouse_y < -170 then total_mouse_y = -170 end - factor = 1 - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_slow[1] and fmenu.tmenu.hot_keys.camera_mode_slow[2]) then - factor = factor*0.5 - end - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_fast[1] and fmenu.tmenu.hot_keys.camera_mode_fast[2]) then - factor = factor*2 - end - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_forward[1] and fmenu.tmenu.hot_keys.camera_mode_forward[2]) then - front = front + factor * module.tgame.camera.movement_speed[0] - end - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_backward[1] and fmenu.tmenu.hot_keys.camera_mode_backward[2]) then - front = front - factor * module.tgame.camera.movement_speed[0] - end - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_left[1] and fmenu.tmenu.hot_keys.camera_mode_left[2]) then - right = right - factor * module.tgame.camera.movement_speed[0] - end - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_right[1] and fmenu.tmenu.hot_keys.camera_mode_right[2]) then - right = right + factor * module.tgame.camera.movement_speed[0] - end - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_up[1] and fmenu.tmenu.hot_keys.camera_mode_up[2]) then - up = up - factor * module.tgame.camera.movement_speed[0] - end - - if isKeyDown(fmenu.tmenu.hot_keys.camera_mode_down[1] and fmenu.tmenu.hot_keys.camera_mode_down[2]) then - up = up + factor * module.tgame.camera.movement_speed[0] - end - attachCameraToChar(PLAYER_PED,right, front, up, total_mouse_x*-1, 90.0, total_mouse_y, 0.0, 2) - - if total_mouse_delta + getMousewheelDelta() ~= total_mouse_delta then - total_mouse_delta = total_mouse_delta + getMousewheelDelta() - module.tgame.camera.fov[0] = module.tgame.camera.fov[0] - getMousewheelDelta() - if module.tgame.camera.fov[0] > 120 then - module.tgame.camera.fov[0] = 120 - end - if module.tgame.camera.fov[0] < 5 then - module.tgame.camera.fov[0] = 5 - end - cameraSetLerpFov(getCameraFov(),module.tgame.camera.fov[0],100,true) - cameraPersistFov(true) - end - - wait(0) - end - else - setCharHeading(module.tgame.camera.ped,total_mouse_x) - attachCameraToChar(module.tgame.camera.ped,0.0, 0.0, 20.0, 0.0, 180, total_mouse_y, 0.0, 2) - setCharCoordinates(module.tgame.camera.ped,x,y,z-1.0) - end - - if total_mouse_delta + getMousewheelDelta() ~= total_mouse_delta then - total_mouse_delta = total_mouse_delta + getMousewheelDelta() - module.tgame.camera.fov[0] = module.tgame.camera.fov[0] - getMousewheelDelta() - if module.tgame.camera.fov[0] > 120 then - module.tgame.camera.fov[0] = 120 - end - if module.tgame.camera.fov[0] < 5 then - module.tgame.camera.fov[0] = 5 - end - cameraSetLerpFov(getCameraFov(),module.tgame.camera.fov[0],100,true) - cameraPersistFov(true) - end - wait(0) - end - - cameraPersistFov(false) - - displayRadar(true) - displayHud(true) - - freezeCharPositionAndDontLoadCollision(module.tgame.camera.ped,false) - setCharCollision(module.tgame.camera.ped,true) - setLoadCollisionForCharFlag(module.tgame.camera.ped,true) - setEveryoneIgnorePlayer(0,false) - - if module.tgame.camera.move_player[0] then - local x,y,z = getCharCoordinates(PLAYER_PED) - z = getGroundZFor3dCoord(x,y,1000) - setCharCoordinates(PLAYER_PED,x,y,z) - else - markCharAsNoLongerNeeded(module.tgame.camera.ped) - deleteChar(module.tgame.camera.ped) - end - module.tgame.camera.ped = nil - - restoreCameraJumpcut() - wait(0) - end -end - -function module.SyncSystemTime() - while module.tgame.sync_system_time[0] do - local time = os.date("*t") - setTimeOfDay(time.hour,time.min) - wait(30) - end -end - -function module.RandomCheatsActivate() - while module.tgame.random_cheats.checkbox[0] do - wait(module.tgame.random_cheats.cheat_activate_timer[0]*1000) - - if not module.tgame.random_cheats.checkbox[0] then break end - - local cheatid = math.random(0,91) - callFunction(0x438370,1,1,cheatid) - table.insert(module.tgame.random_cheats.activated_cheats,cheatid) - printHelpString("~g~" .. module.tgame.random_cheats.cheat_name[tostring(cheatid)][1]) - end -end - -function module.RandomCheatsDeactivate() - while module.tgame.random_cheats.disable_cheat_checkbox[0] and module.tgame.random_cheats.checkbox[0] do - for _,x in ipairs(module.tgame.random_cheats.activated_cheats) do - if module.tgame.random_cheats.cheat_name[tostring(x)][2] == "true" then - wait(module.tgame.random_cheats.cheat_deactivate_timer[0]*1000) - - if not (module.tgame.random_cheats.checkbox[0] or module.tgame.random_cheats.checkbox[0]) then break end - - if module.tgame.random_cheats.disable_cheat_checkbox[0] then - callFunction(0x438370,1,1,module.tgame.random_cheats.activated_cheats[x]) - printHelpString("~r~" .. module.tgame.random_cheats.cheat_name[tostring(x)][1]) - end - end - end - wait(0) - end -end - -function module.FreezeTime() - while module.tgame.freeze_time[0] do - - local status = fvisual.tvisual.lock_weather[0] - memory.write(0x969168,1,1) -- Freeze time - while module.tgame.freeze_time[0] do - fvisual.tvisual.lock_weather[0] = true - wait(0) - end - fvisual.tvisual.lock_weather[0] = status - memory.write(0x969168,0,1) -- Freeze time - wait(0) - end -end - --------------------------------------------------- --- Functions of script manager - -function module.LoadScriptsOnKeyPress() - while true do - for name,table in pairs(module.tgame.script_manager.scripts) do - fcommon.OnHotKeyPress(table,function() - local full_file_path = string.format( "%s\\%s.loadonkeypress",getWorkingDirectory(),name) - local is_loaded = false - local sc_handle = nil - for index, script in ipairs(script.list()) do - if full_file_path == script.path then - is_loaded = true - sc_handle = script - end - end - if is_loaded == false then - script.load(full_file_path) - printHelpString("Script loaded") - else - sc_handle:unload() - printHelpString("Script unloaded") - end - module.tgame.script_manager.not_loaded[name .. ".loadonkeypress"] = nil - end) - end - wait(0) - end -end - -function module.MonitorScripts() - local mainDir = getWorkingDirectory() - for file in lfs.dir(mainDir) do - local full_file_path = mainDir .. "\\" .. file - if doesFileExist(full_file_path) then - - local file_path,file_name,file_ext = string.match(full_file_path, "(.-)([^\\/]-%.?([^%.\\/]*))$") - - if (file_ext == "lua" or file_ext == "neverload" or file_ext == "loadonkeypress") and module.tgame.script_manager.not_loaded[file_name] == nil then - local is_loaded = false - for index, script in ipairs(script.list()) do - if full_file_path == script.path then - is_loaded = true - end - end - if is_loaded == false then - module.tgame.script_manager.not_loaded[file_name] = full_file_path - end - end - end - end -end - -function ShowNotLoadedScripts(name,path) - - local _,file_name,file_ext = string.match(path, "(.-)([^\\/]-%.?([^%.\\/]*))$") - - fcommon.DropDownMenu(name .. "##" .. path,function() - - imgui.Spacing() - imgui.SameLine() - - if file_ext == "lua" then - imgui.Text("Status: Not loaded") - end - if file_ext == "neverload" then - imgui.Text("Status: Never load") - end - if file_ext == "loadonkeypress" then - imgui.Text("Status: Load on key press") - end - - imgui.Spacing() - imgui.SameLine() - imgui.TextWrapped("Filepath: " .. path) - - if imgui.Button("Load##" .. path,imgui.ImVec2(fcommon.GetSize(1))) then - if doesFileExist(path) then - - local load_path = path - if file_ext == "neverload" then - load_path = string.sub(path,1,-11) - os.rename(path,load_path) - end - if file_ext == "loadonkeypress" then - module.tgame.script_manager.scripts[name:sub(1,-16)] = nil - load_path = string.sub(path,1,-16) - os.rename(path,load_path) - end - module.tgame.script_manager.not_loaded[name] = nil - script.load(load_path) - printHelpString("Script loaded") - end - end - end,true) -end - -function ShowLoadedScript(script,index) - fcommon.DropDownMenu(script.name .. "##" .. index,function() - local _,file_name,file_ext = string.match(script.path, "(.-)([^\\/]-%.?([^%.\\/]*))$") - local authors = "" - for _,author in ipairs(script.authors) do - authors = authors .. author .. ", " - end - local properties = "" - for _,property in ipairs(script.properties) do - properties = properties .. property .. ", " - end - local dependencies = "" - for _,dependency in ipairs(script.dependencies) do - dependencies = dependencies .. dependency .. ", " - end - - imgui.Columns(2,nil,false) - imgui.Text("Authors: ") - imgui.SameLine(0.0,0.0) - imgui.TextWrapped(string.sub(authors,1,-3)) - imgui.Text("Version: " .. tostring(script.version)) - imgui.Text("Version num: " .. tostring(script.version_num)) - imgui.NextColumn() - imgui.Text("Script ID: " .. script.id) - imgui.Text("Status: Loaded") - imgui.Text("Filename: ") - imgui.SameLine(0.0,0.0) - imgui.TextWrapped(script.filename) - imgui.Columns(1) - if properties ~= "" then - imgui.Spacing() - imgui.SameLine() - imgui.Text("Properties: ") - imgui.SameLine(0.0,0.0) - imgui.TextWrapped(string.sub(properties,1,-3)) - end - if dependencies ~= "" then - imgui.Spacing() - imgui.SameLine() - imgui.Text("Dependencies: ") - imgui.SameLine(0.0,0.0) - imgui.TextWrapped(string.sub(dependencies,1,-3)) - end - if script.description ~= "" then - imgui.Spacing() - imgui.SameLine() - imgui.Text("Description: ") - imgui.SameLine(0.0,0.0) - imgui.TextWrapped(script.description) - end - imgui.Spacing() - - if script.path:match(".loadonkeypress") then - file_name = file_name:sub(1,-16) - end - - fmenu.tmenu.hot_keys.script_manager_temp = module.tgame.script_manager.scripts[file_name] or fmenu.tmenu.hot_keys.script_manager_temp - - fcommon.HotKey("Load on keypress hotkey",fmenu.tmenu.hot_keys.script_manager_temp,fcommon.GetSize(3)) - fcommon.InformationTooltip("Load & unload this script\nby pressing this hotkey.") - imgui.Spacing() - - if imgui.Button("Never load##" .. index,imgui.ImVec2(fcommon.GetSize(2))) then - printHelpString("Script set to never load") - os.rename(script.path,script.path.. ".neverload") - script:unload() - end - imgui.SameLine() - - if imgui.Button("Load on keypress##" .. index,imgui.ImVec2(fcommon.GetSize(2))) then - if script.name == thisScript().name then - printHelpString("Can't set for Cheat Menu") - else - module.tgame.script_manager.scripts[file_name] = {fmenu.tmenu.hot_keys.script_manager_temp[1],fmenu.tmenu.hot_keys.script_manager_temp[2]} - printHelpString("Key set for the script.") - - if not script.path:match(".loadonkeypress") then - os.rename(script.path,script.path.. ".loadonkeypress") - end - script:unload() - end - end - - if imgui.Button("Reload##" .. index,imgui.ImVec2(fcommon.GetSize(2))) then - if script.name == thisScript().name then - module.tgame.script_manager.skip_auto_reload = true - end - printHelpString("Script reloaded") - script:reload() - end - imgui.SameLine() - if imgui.Button("Unload##" .. index,imgui.ImVec2(fcommon.GetSize(2))) then - if script.name == thisScript().name then - module.tgame.script_manager.skip_auto_reload = true - end - printHelpString("Script unloaded") - script:unload() - end - end) -end - -function SpawnObject(model,obj_name,grp_name,x,y,z) - - if isModelAvailable(model) and casts.CBaseModelInfo.GetModelType(model) == fconst.MODEL_TYPE.ATOMIC then - requestModel(model) - loadAllModelsNow() - - local obj = createObject(model,x,y,z) - setObjectRotation(obj,0,0,0) - setObjectCollision(obj,false) - - if module.tgame.object_spawner.placed[grp_name] == nil then - module.tgame.object_spawner.placed[grp_name] = {} - end - - module.tgame.object_spawner.placed[grp_name][string.format("%d##%d",model,obj)] = - { - name = obj_name, - collision = imgui.new.bool(false), - rotx = imgui.new.float(0), - roty = imgui.new.float(0), - rotz = imgui.new.float(0), - } - - markModelAsNoLongerNeeded(model) - printHelpString("Model Spawned") - else - printHelpString("Invalid model") - end -end - -function GenerateIPL() - local file = io.open("generated.ipl","w") - local write_string = "inst\n" - - for grp,data in pairs(module.tgame.object_spawner.placed) do - for key,value in pairs(data) do - local model, handle = string.match(key,"(%w+)##(%w+)") - local _,posx,posy,posz = getObjectCoordinates(handle) - local rotx,roty,rotz,rotw = getObjectQuaternion(handle) - local interior = getActiveInterior() - - local inst_line = string.format("%d, dummy, %d, %f, %f, %f, %f, %f, %f, %f, -1\n",model,interior,posx,posy,posz,rotx,roty,rotz,rotw) - write_string = write_string .. inst_line - end - end - write_string = write_string .. "end" - file:write(write_string) - file:close() - printHelpString("IPL generated") -end - -function module.RemoveAllObjects() - for grp,data in pairs(module.tgame.object_spawner.placed) do - for key,value in pairs(data) do - local model, handle = string.match(key,"(%w+)##(%w+)") - deleteObject(tonumber(handle)) - module.tgame.object_spawner.placed[grp][key] = nil - end - module.tgame.object_spawner.placed[grp] = nil - end -end - -function ApplyToObjects(grp,func) - for lgrp,ldata in pairs(module.tgame.object_spawner.placed) do - if grp == lgrp then - for lkey,value in pairs(ldata) do - local model, handle = string.match(lkey,"(%w+)##(%w+)") - func(handle,value) - end - break - end - end -end - --------------------------------------------------- - - --- Main function -function module.GameMain() - if imgui.Button("Save game",imgui.ImVec2(fcommon.GetSize(1))) then - if isCharOnFoot(PLAYER_PED) then - activateSaveMenu() - else - printHelpString("Player is ~r~not~w~ on foot") - end - end - - if fcommon.BeginTabBar('Game') then - if fcommon.BeginTabItem('Checkboxes') then - - imgui.Columns(2,nil,false) - if fcommon.CheckBoxVar("Camera mode",module.tgame.camera.bool,string.format("Toggle: %s\n\nForward: %s\tBackward: %s\ -Left: %s\t\t Right: %s\n\nSlow movement: %s\nFast movement: %s\n\nRotation: Mouse\nZoom in/out : Mouse wheel \n\ -Up : %s (Lock on player)\nDown: %s (Lock on player)",fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.camera_mode), - fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.camera_mode_forward),fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.camera_mode_backward), - fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.camera_mode_left),fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.camera_mode_right), - fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.camera_mode_slow),fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.camera_mode_fast), - fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.camera_mode_up), - fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.camera_mode_down)), - function() - imgui.Columns(2,nil,false) - if fcommon.CheckBoxVar("Move player",module.tgame.camera.move_player,"Moves the player with the camera\nSimilar to how airbreak modes work") then - - module.tgame.camera.lock_on_player[0] = false - -- Update the camera mode stuff while it's running - if module.tgame.camera.bool[0] and module.tgame.camera.ped ~= nil then - - local heading = getCharHeading(module.tgame.camera.ped) - local x,y,z = getCharCoordinates(module.tgame.camera.ped) - z = z - 1 - - freezeCharPositionAndDontLoadCollision(module.tgame.camera.ped,false) - setCharCollision(module.tgame.camera.ped,true) - setLoadCollisionForCharFlag(module.tgame.camera.ped,true) - - if module.tgame.camera.move_player[0] then - markCharAsNoLongerNeeded(module.tgame.camera.ped) - deleteChar(module.tgame.camera.ped) - module.tgame.camera.ped = PLAYER_PED - else - module.tgame.camera.ped = createRandomChar(x,y,z) - - -- place place properly at ground - local cx,cy,cz = getActiveCameraCoordinates() - cz = getGroundZFor3dCoord(cx,cy,cz) - setCharCoordinates(PLAYER_PED,cx,cy,cz) - end - - freezeCharPositionAndDontLoadCollision(module.tgame.camera.ped,true) - setCharCollision(module.tgame.camera.ped,false) - setLoadCollisionForCharFlag(module.tgame.camera.ped,false) - - setCharCoordinates(module.tgame.camera.ped,x,y,z) - setCharHeading(module.tgame.camera.ped,heading) - end - end - imgui.NextColumn() - if not module.tgame.camera.move_player[0] then - fcommon.CheckBoxVar("Lock on player",module.tgame.camera.lock_on_player,"Locks camera on player") - end - imgui.Columns(1) - - imgui.Spacing() - if imgui.SliderInt("FOV", module.tgame.camera.fov, 5,120) then - if module.tgame.camera.bool[0] then - cameraSetLerpFov(getCameraFov(),module.tgame.camera.fov[0],1000,true) - cameraPersistFov(true) - end - end - imgui.SliderFloat("Movement Speed",module.tgame.camera.movement_speed, 0.0, 5.0) - if imgui.SliderFloat("Shake", module.tgame.camera.shake, 0.0,100) then - if module.tgame.camera.bool[0] then - cameraSetShakeSimulationSimple(1,10000,module.tgame.camera.shake[0]) - end - end - - if not module.tgame.camera.move_player[0] then - imgui.Spacing() - if imgui.Button("Warp player to camera location",imgui.ImVec2(fcommon.GetSize(1))) then - local cx,cy,cz = getActiveCameraCoordinates() - cz = getGroundZFor3dCoord(cx,cy,cz) - setCharCoordinates(PLAYER_PED,cx,cy,cz) - printHelpString("Player warped") - end - end - end) then - fcommon.CreateThread(module.CameraMode) - end - if fcommon.CheckBoxVar("Disable cheats",module.tgame.disable_cheats) then - if module.tgame.disable_cheats[0] then - writeMemory(0x4384D0 ,1,0xE9 ,false) - writeMemory(0x4384D1 ,4,0xD0 ,false) - writeMemory(0x4384D5 ,4,0x90909090 ,false) - else - writeMemory(0x4384D0 ,1,0x83,false) - writeMemory(0x4384D1 ,4,-0x7DF0F908,false) - writeMemory(0x4384D5 ,4,0xCC,false) - end - end - if fcommon.CheckBoxVar("Disable help popups",module.tgame.disable_help_popups,"Disables wasted & arrested popups that\nappear in a new game.") then - tcheatmenu.restart_required = true - end - fcommon.CheckBoxValue('Free pay n spray',0x96C009) - if fcommon.CheckBoxVar("Freeze misson timer",module.tgame.freeze_mission_timer) then - if module.tgame.freeze_mission_timer[0] then - freezeOnscreenTimer(true) - else - freezeOnscreenTimer(false) - end - end - if fcommon.CheckBoxVar("Disable F1 & F3 replay",module.tgame.disable_replay) then - if module.tgame.disable_replay[0] then - writeMemory(0x460500,4,0xC3,false) - else - writeMemory(0x460500,4,0xBD844BB,false) - end - end - fcommon.CheckBoxValue("Faster clock",0x96913B) - if fcommon.CheckBoxVar("Forbidden area wl",module.tgame.forbidden_area_wanted_level,"Wanted levels that appears outside\ -of LS without completing missions") then - if module.tgame.forbidden_area_wanted_level[0] then - writeMemory(0x441770,1,0x83,false) - else - writeMemory(0x441770,1,0xC3,false) - end - end - - imgui.NextColumn() - - if fcommon.CheckBoxVar("Freeze time",module.tgame.freeze_time) then - fcommon.CreateThread(module.FreezeTime) - end - if fcommon.CheckBoxVar("Keep stuff",module.tgame.keep_stuff,"Keep stuff after arrest/death") then - switchArrestPenalties(module.tgame.keep_stuff[0]) - switchDeathPenalties(module.tgame.keep_stuff[0]) - end - if fcommon.CheckBoxVar("Random cheats",module.tgame.random_cheats.checkbox,"Activates random cheats after certain time", - function() - if fcommon.CheckBoxVar('Disable cheats',module.tgame.random_cheats.disable_cheat_checkbox,"Disable activated cheats after certain time") then - fcommon.CreateThread(fgame.RandomCheatsDeactivate) - end - imgui.Spacing() - imgui.SetNextItemWidth(imgui.GetWindowWidth()/2) - imgui.SliderInt("Activate cheat timer", module.tgame.random_cheats.cheat_activate_timer, 10, 100) - imgui.SetNextItemWidth(imgui.GetWindowWidth()/2) - imgui.SliderInt("Deactivate cheat timer", module.tgame.random_cheats.cheat_deactivate_timer, 10, 100) - imgui.Spacing() - - imgui.TextWrapped("Enabled cheats") - imgui.Separator() - if imgui.BeginChild("Cheats list") then - for i=0,91,1 do -- Cheat ids 0 -> 91 - if module.tgame.random_cheats.disabled_cheats[tostring(i)] then - selected = false - else - selected = true - end - - if imgui.MenuItemBool(tostring(module.tgame.random_cheats.cheat_name[tostring(i)][1]),nil,selected) then - module.tgame.random_cheats.disabled_cheats[tostring(i)] = selected - end - end - imgui.EndChild() - end - end) then - fcommon.CreateThread(fgame.RandomCheatsActivate) - end - fcommon.CheckBoxVar('Screenshot shortcut',module.tgame.ss_shortcut,"Take screenshot using" .. fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.quick_screenshot)) - if fcommon.CheckBoxVar('Solid water',module.tgame.solid_water) then - fcommon.CreateThread(fgame.SolidWater) - end - if fcommon.CheckBoxVar('Sync system time',module.tgame.sync_system_time) then - fcommon.CreateThread(fgame.SyncSystemTime) - end - fcommon.CheckBoxValue('Widescreen',0xB6F065) - imgui.Columns(1) - end - if fcommon.BeginTabItem('Menus') then - if imgui.BeginChild("MenusChild") then - fcommon.DropDownMenu('Current day',function() - local current_day = imgui.new.int(readMemory(0xB7014E,1,false)) - imgui.SetNextItemWidth(imgui.GetWindowContentRegionWidth()/1.7) - if fcommon.DropDownListNumber("Day",module.tgame.day_names,current_day) then - writeMemory(0xB7014E,1,current_day[0],false) - fcommon.CheatActivated() - end - end) - fcommon.DropDownMenu('Custom save game name',function() - imgui.InputText("Name", module.tgame.gxt_save_name,ffi.sizeof(module.tgame.gxt_save_name)) - imgui.Spacing() - if imgui.Button("Save game with this name",imgui.ImVec2(fcommon.GetSize(1))) then - if isCharOnFoot(PLAYER_PED) then - registerMissionPassed(setFreeGxtEntry(ffi.string(module.tgame.gxt_save_name))) - activateSaveMenu() - else - printHelpString("Player is ~r~not~w~ on foot") - end - end - end) - - fcommon.UpdateAddress({name = 'Days passed',address = 0xB79038 ,size = 4,min = 0,max = 9999}) - fcommon.DropDownMenu('FPS',function() - - imgui.Columns(2,nil,false) - imgui.Text("Minimum" .. " = 1") - - imgui.NextColumn() - imgui.Text("Maximum" .. " = 999") - imgui.Columns(1) - - imgui.PushItemWidth(imgui.GetWindowWidth()-50) - if imgui.InputInt('Set',module.tgame.fps_limit) then - memory.write(0xC1704C,(module.tgame.fps_limit[0]+1),1) - memory.write(0xBA6794,1,1) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",0xC1704C),{1,module.tgame.fps_limit[0]+1}) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",0xBA6794),{1,1}) - end - if module.tgame.fps_limit[0] < 1 then - module.tgame.fps_limit[0] = 1 - end - - imgui.PopItemWidth() - - imgui.Spacing() - if imgui.Button("Minimum",imgui.ImVec2(fcommon.GetSize(3))) then - memory.write(0xC1704C,1,1) - memory.write(0xBA6794,1,1) - module.tgame.fps_limit[0] = 1 - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",0xC1704C),{1,1}) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",0xBA6794),{1,1}) - end - imgui.SameLine() - if imgui.Button("Default",imgui.ImVec2(fcommon.GetSize(3))) then - memory.write(0xC1704C,30,1) - memory.write(0xBA6794,1,1) - module.tgame.fps_limit[0] = 30 - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",0xC1704C),{1,30}) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",0xBA6794),{1,1}) - end - imgui.SameLine() - if imgui.Button("Maximum",imgui.ImVec2(fcommon.GetSize(3))) then - memory.write(0xBA6794,0,1) - memory.write(0xBA6794,1,1) - module.tgame.fps_limit[0] = 999 - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",0xC1704C),{1,999}) - fconfig.Set(fconfig.tconfig.memory_data,string.format("0x%6.6X",0xBA6794),{1,1}) - end - end) - fcommon.UpdateAddress({name = 'Game speed',address = 0xB7CB64,size = 4,max = 10,min = 0, is_float =true, default = 1}) - fcommon.UpdateAddress({name = 'Gravity',address = 0x863984,size = 4,max = 1,min = -1, default = 0.008,cvalue = 0.001 ,is_float = true}) - fcommon.DropDownMenu("Set time",function() - imgui.Spacing() - - local days_passed = imgui.new.int(memory.read(0xB79038 ,4)) - local hour = imgui.new.int(memory.read(0xB70153,1)) - local minute = imgui.new.int(memory.read(0xB70152,1)) - - if imgui.InputInt("Current hour",hour) then - memory.write(0xB70153 ,hour[0],1) - end - - if imgui.InputInt("Current minute",minute) then - memory.write(0xB70152 ,minute[0],1) - end - - if minute[0] > 59 then - hour[0] = hour[0] + 1 - minute[0] = 0 - end - - if hour[0] > 23 then - memory.write(0xB70153 ,0,1) - current_day = memory.read(0xB7014E,1) - memory.write(0xB7014E,(current_day+1),1) - days_passed = memory.read( 0xB79038,4) - memory.write( 0xB79038,(days_passed+1),4) - end - - if minute[0] < 0 then - hour[0] = hour[0] - 1 - minute[0] = 59 - end - - if hour[0] < 0 then - memory.write(0xB70153 ,23,1) - current_day = memory.read(0xB7014E,1) - memory.write(0xB7014E,(current_day-1),1) - days_passed = memory.read( 0xB79038,4) - memory.write( 0xB79038,(days_passed-1),4) - end - end) - fcommon.DropDownMenu('Themes',function() - fcommon.RadioButtonAddress('Select theme',{'Beach','Country','Fun house','Ninja'},{0x969159,0x96917D,0x969176,0x96915C}) - end) - fcommon.CallFuncButtons("Weather", {["Very Sunny"] = 0x438F50,["Overcast"] = 0x438F60,["Rainy"] = 0x438F70, - ["Foggy"] = 0x438F80,["Thunderstorm"] = 0x439570,["Sandstorm"] = 0x439590}) - imgui.EndChild() - end - end - if fcommon.BeginTabItem('Script manager') then - if imgui.Button("Reload all scripts",imgui.ImVec2(fcommon.GetSize(1))) then - fgame.tgame.script_manager.skip_auto_reload = true - reloadScripts() - end - imgui.Spacing() - local width = imgui.GetWindowContentRegionWidth() - imgui.SetNextItemWidth(width/2) - fcommon.DropDownListNumber("##List",module.tgame.script_manager.categories,module.tgame.script_manager.selected) - imgui.SameLine() - - imgui.SetNextItemWidth(width/2) - local filter = module.tgame.script_manager.filter - - filter:Draw("Search") - if filter:PassFilter('') then - local min = imgui.GetItemRectMin() - local drawlist = imgui.GetWindowDrawList() - drawlist:AddText(imgui.ImVec2(min.x+imgui.GetStyle().ItemInnerSpacing.x,min.y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.TextDisabled),"Search") - end - - if imgui.BeginChild("Script entries") then - - module.MonitorScripts() - - if module.tgame.script_manager.selected[0] ~= 3 then - for index, script in ipairs(script.list()) do - if filter:PassFilter(script.name) then - ShowLoadedScript(script,index) - end - end - end - - if module.tgame.script_manager.selected[0] ~= 2 then - for name,path in pairs(module.tgame.script_manager.not_loaded) do - if filter:PassFilter(name) then - ShowNotLoadedScripts(name,path) - end - end - end - imgui.EndChild() - end - end - if fcommon.BeginTabItem('Object spawner') then - if imgui.Button("Browse images",imgui.ImVec2(fcommon.GetSize(3))) then - os.execute('explorer "https://dev.prineside.com/en/gtasa_samp_model_id"') - end - imgui.SameLine() - if imgui.Button("Generate IPL",imgui.ImVec2(fcommon.GetSize(3))) then - GenerateIPL() - end - imgui.SameLine() - if imgui.Button("Remove all",imgui.ImVec2(fcommon.GetSize(3))) then - module.RemoveAllObjects() - printHelpString("Objects removed") - end - if fcommon.BeginTabBar('Object SpawnerBar') then - if fcommon.BeginTabItem('Spawn') then - fcommon.CheckBoxVar('Insert player coord',module.tgame.object_spawner.set_player_coord) - imgui.Spacing() - imgui.InputText("Object name", module.tgame.object_spawner.obj_name,ffi.sizeof(module.tgame.object_spawner.obj_name)) - imgui.InputText("Group name", module.tgame.object_spawner.group_name,ffi.sizeof(module.tgame.object_spawner.group_name)) - if module.tgame.object_spawner.set_player_coord[0] then - module.tgame.object_spawner.coord.x[0],module.tgame.object_spawner.coord.y[0],module.tgame.object_spawner.coord.z[0] = getCharCoordinates(PLAYER_PED) - end - imgui.Spacing() - imgui.InputInt("Model",module.tgame.object_spawner.model) - imgui.Spacing() - imgui.InputFloat("Coord X",module.tgame.object_spawner.coord.x,1.0, 1.0, "%.5f") - imgui.InputFloat("Coord Y",module.tgame.object_spawner.coord.y,1.0, 1.0, "%.5f") - imgui.InputFloat("Coord Z",module.tgame.object_spawner.coord.z,1.0, 1.0, "%.5f") - imgui.Dummy(imgui.ImVec2(0,10)) - if imgui.Button("Spawn object",imgui.ImVec2(fcommon.GetSize(1))) then - SpawnObject(module.tgame.object_spawner.model[0],ffi.string(module.tgame.object_spawner.obj_name),ffi.string(module.tgame.object_spawner.group_name),module.tgame.object_spawner.coord.x[0],module.tgame.object_spawner.coord.y[0],module.tgame.object_spawner.coord.z[0]) - end - end - if fcommon.BeginTabItem('Placed') then - imgui.Spacing() - local width = imgui.GetWindowContentRegionWidth() - imgui.SetNextItemWidth(width/2) - fcommon.DropDownListNumber("##List",module.tgame.object_spawner.categories,module.tgame.object_spawner.selected) - imgui.SameLine() - - imgui.SetNextItemWidth(width/2) - local filter = module.tgame.object_spawner.filter - - filter:Draw("Search") - if filter:PassFilter('') then - local min = imgui.GetItemRectMin() - local drawlist = imgui.GetWindowDrawList() - drawlist:AddText(imgui.ImVec2(min.x+imgui.GetStyle().ItemInnerSpacing.x,min.y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.TextDisabled),"Search") - end - imgui.Spacing() - if imgui.BeginChild("Placed") then - if module.tgame.object_spawner.selected[0] == 1 then - local size = imgui.GetFrameHeight() - for grp,data in pairs(module.tgame.object_spawner.placed) do - fcommon.DropDownMenu(grp,function() - - if imgui.Button("Set collisions on",imgui.ImVec2(fcommon.GetSize(2))) then - ApplyToObjects(grp,function(handle,value) - value.collision[0] = true - setObjectCollision(handle,true) - end) - printHelpString("Group collisions on") - end - imgui.SameLine() - if imgui.Button("Set collisions off",imgui.ImVec2(fcommon.GetSize(2))) then - ApplyToObjects(grp,function(handle,value) - value.collision[0] = false - setObjectCollision(handle,false) - end) - printHelpString("Group collisions off") - end - imgui.Spacing() - imgui.Columns(2,nil,false) - if imgui.Button("+##X",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - local _,x,y,z = getObjectCoordinates(handle) - x = x + 1 - setObjectCoordinates(handle,x,y,z) - end) - end - imgui.SameLine() - if imgui.Button("-##X",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - local _,x,y,z = getObjectCoordinates(handle) - x = x - 1 - setObjectCoordinates(handle,x,y,z) - end) - end - imgui.SameLine() - imgui.Text("Move X coord") - - if imgui.Button("+##Y",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - local _,x,y,z = getObjectCoordinates(handle) - y = y + 1 - setObjectCoordinates(handle,x,y,z) - end) - end - imgui.SameLine() - if imgui.Button("-##Y",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - local _,x,y,z = getObjectCoordinates(handle) - y = y - 1 - setObjectCoordinates(handle,x,y,z) - end) - end - imgui.SameLine() - imgui.Text("Move Y coord") - - if imgui.Button("+##Z",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - local _,x,y,z = getObjectCoordinates(handle) - z = z + 1 - setObjectCoordinates(handle,x,y,z) - end) - end - imgui.SameLine() - if imgui.Button("-##Z",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - local _,x,y,z = getObjectCoordinates(handle) - z = z - 1 - setObjectCoordinates(handle,x,y,z) - end) - end - imgui.SameLine() - imgui.Text("Move Z coord") - - imgui.NextColumn() - - if imgui.Button("+##rotX",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - value.rotx[0] = value.rotx[0] + 1 - setObjectRotation(tonumber(handle),value.rotx[0],value.roty[0],value.rotz[0]) - end) - end - imgui.SameLine() - if imgui.Button("-##rotX",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - value.rotx[0] = value.rotx[0] - 1 - setObjectRotation(tonumber(handle),value.rotx[0],value.roty[0],value.rotz[0]) - end) - end - imgui.SameLine() - imgui.Text("Rotate X") - - if imgui.Button("+##rotY",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - value.roty[0] = value.roty[0] + 1 - setObjectRotation(tonumber(handle),value.rotx[0],value.roty[0],value.rotz[0]) - end) - end - imgui.SameLine() - if imgui.Button("-##rotY",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - value.roty[0] = value.roty[0] - 1 - setObjectRotation(tonumber(handle),value.rotx[0],value.roty[0],value.rotz[0]) - end) - end - imgui.SameLine() - imgui.Text("Rotate Y") - - if imgui.Button("+##rotZ",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - value.rotz[0] = value.rotz[0] + 1 - setObjectRotation(tonumber(handle),value.rotx[0],value.roty[0],value.rotz[0]) - end) - end - imgui.SameLine() - if imgui.Button("-##rotZ",imgui.ImVec2(size,size)) then - ApplyToObjects(grp,function(handle,value) - value.rotz[0] = value.rotz[0] - 1 - setObjectRotation(tonumber(handle),value.rotx[0],value.roty[0],value.rotz[0]) - end) - end - imgui.SameLine() - imgui.Text("Rotate Z") - imgui.Columns(1) - - imgui.Spacing() - if imgui.Button("Remove group",imgui.ImVec2(fcommon.GetSize(1))) then - for lgrp,ldata in pairs(module.tgame.object_spawner.placed) do - if grp == lgrp then - for lkey,value in pairs(ldata) do - local model, handle = string.match(lkey,"(%w+)##(%w+)") - deleteObject(tonumber(handle)) - end - module.tgame.object_spawner.placed[lgrp] = nil - break - end - end - printHelpString("Group removed") - end - end) - end - else - for grp,data in pairs(module.tgame.object_spawner.placed) do - for key,value in pairs(data) do - local model, handle = string.match(key,"(%w+)##(%w+)") - if filter:PassFilter(tostring(model)) or filter:PassFilter(value.name) then - handle = tonumber(handle) - fcommon.DropDownMenu(string.format("%s - %s - %s",grp,value.name,key),function() - local _,x,y,z = getObjectCoordinates(handle) - - module.tgame.object_spawner.coord.x[0] = x - module.tgame.object_spawner.coord.y[0] = y - module.tgame.object_spawner.coord.z[0] = z - - if imgui.Checkbox("Collision",value.collision) then - setObjectCollision(handle,value.collision[0]) - end - imgui.InputFloat("Coord X",module.tgame.object_spawner.coord.x,1.0, 1.0, "%.5f") - imgui.InputFloat("Coord Y",module.tgame.object_spawner.coord.y,1.0, 1.0, "%.5f") - imgui.InputFloat("Coord Z",module.tgame.object_spawner.coord.z,1.0, 1.0, "%.5f") - setObjectCoordinates(handle,module.tgame.object_spawner.coord.x[0],module.tgame.object_spawner.coord.y[0],module.tgame.object_spawner.coord.z[0]) - - imgui.Spacing() - - imgui.SliderFloat("Rotation X",value.rotx,0,360, "%.5f") - imgui.SliderFloat("Rotation Y",value.roty,0,360, "%.5f") - imgui.SliderFloat("Rotation Z",value.rotz,0,360, "%.5f") - setObjectRotation(handle,value.rotx[0],value.roty[0],value.rotz[0]) - imgui.Spacing() - if imgui.Button("Remove object",imgui.ImVec2(fcommon.GetSize(1))) then - for lgrp,data in pairs(module.tgame.object_spawner.placed) do - if grp == lgrp then - for lkey,value in pairs(data) do - if key == lkey then - local model, handle = string.match(key,"(%w+)##(%w+)") - deleteObject(tonumber(handle)) - module.tgame.object_spawner.placed[grp][key] = nil - end - end - break - end - end - printHelpString("Object removed") - end - end) - end - end - end - end - imgui.EndChild() - end - end - fcommon.EndTabBar() - end - end - fcommon.EndTabBar() - end -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/memory.lua b/moonloader/lib/cheat-menu/modules/memory.lua deleted file mode 100644 index 7f7a235..0000000 --- a/moonloader/lib/cheat-menu/modules/memory.lua +++ /dev/null @@ -1,265 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tmemory = -{ - address = imgui.new.char[10](""), - filter = imgui.ImGuiTextFilter(), - offset = imgui.new.char[10]("0"), - is_float = imgui.new.bool(fconfig.Get('tmemory.is_float',false)), - list = fcommon.LoadJson("memory"), - name = imgui.new.char[20](""), - radio_button = imgui.new.int(fconfig.Get('tmemory.radio_button',0)), - size = imgui.new.int(fconfig.Get('tmemory.size',1)), - value = imgui.new.int(fconfig.Get('tmemory.value',0)), - vp = imgui.new.bool(fconfig.Get('tmemory.vp',false)), -} - --- Main function -function module.MemoryMain() - - if fcommon.BeginTabBar("MemoryBar") then - if fcommon.BeginTabItem("Read") then - imgui.Text("Pointer") - imgui.SameLine() - imgui.RadioButtonIntPtr("None", module.tmemory.radio_button, 0) - imgui.SameLine() - imgui.RadioButtonIntPtr("Car", module.tmemory.radio_button, 1) - fcommon.InformationTooltip("Get pointer of the nearest car") - imgui.SameLine() - imgui.RadioButtonIntPtr("Char", module.tmemory.radio_button, 2) - fcommon.InformationTooltip("Get pointer of the nearest char") - imgui.Dummy(imgui.ImVec2(0,10)) - - imgui.Columns(2,nil,false) - imgui.Text("Memory value : " .. module.tmemory.value[0]) - imgui.NextColumn() - - local car,ped = storeClosestEntities(PLAYER_PED) - - if module.tmemory.radio_button[0] == fconst.MEMORY_RB.CAR then - if car ~= -1 then - local pCar = getCarPointer(car) - imgui.StrCopy(module.tmemory.address,string.format("0x%8.8X",pCar)) - end - end - if module.tmemory.radio_button[0] == fconst.MEMORY_RB.CHAR then - - if ped ~= -1 then - local pChar = getCharPointer(ped) - imgui.StrCopy(module.tmemory.address,string.format("0x%8.8X",pChar)) - end - end - imgui.Columns(1) - imgui.Spacing() - - imgui.InputTextWithHint("Address","0x000000",module.tmemory.address,ffi.sizeof(module.tmemory.address)) - imgui.InputText("Offset", module.tmemory.offset,ffi.sizeof(module.tmemory.offset)) - - imgui.SliderInt("Size", module.tmemory.size,1,4) - - if module.tmemory.size[0] == 4 then - imgui.Columns(2,nil,false) - imgui.Checkbox("Float",module.tmemory.is_float) - imgui.NextColumn() - else - imgui.Columns(1,nil,false) - end - - - imgui.Checkbox("Virtual protect", module.tmemory.vp) - imgui.Columns(1) - imgui.Dummy(imgui.ImVec2(0,10)) - if imgui.Button("Read",imgui.ImVec2(fcommon.GetSize(2))) then - - if ffi.string(module.tmemory.offset) == "" then - imgui.StrCopy(module.tmemory.offset,"0") - end - - if ffi.string(module.tmemory.address) ~= "" then - module.tmemory.value[0] = fcommon.RwMemory((tonumber(ffi.string(module.tmemory.address))+tonumber(ffi.string(module.tmemory.offset))),module.tmemory.size[0],nil,module.tmemory.vp[0],module.tmemory.is_float[0]) - else - printHelpString("No address found") - end - end - imgui.SameLine() - if imgui.Button("Clear",imgui.ImVec2(fcommon.GetSize(2))) then - module.tmemory.value[0] = 0 - imgui.StrCopy(module.tmemory.address,"") - imgui.StrCopy(module.tmemory.offset,"0") - module.tmemory.size[0] = 0 - module.tmemory.vp[0] = false - module.tmemory.is_float[0] = false - module.tmemory.radio_button[0] = 0 - printHelpString("Entries cleared") - end - end - if fcommon.BeginTabItem("Write") then - imgui.Text("Pointer") - imgui.SameLine() - imgui.RadioButtonIntPtr("None", module.tmemory.radio_button, 0) - imgui.SameLine() - imgui.RadioButtonIntPtr("Car", module.tmemory.radio_button, 1) - fcommon.InformationTooltip("Get pointer of the nearest car") - imgui.SameLine() - imgui.RadioButtonIntPtr("Char", module.tmemory.radio_button, 2) - fcommon.InformationTooltip("Get pointer of the nearest char") - imgui.Dummy(imgui.ImVec2(0,10)) - - local car,ped = storeClosestEntities(PLAYER_PED) - - if module.tmemory.radio_button[0] == fconst.MEMORY_RB.CAR then - if car ~= -1 then - local pCar = getCarPointer(car) - imgui.StrCopy(module.tmemory.address,string.format("0x%8.8X",pCar)) - end - end - if module.tmemory.radio_button[0] == fconst.MEMORY_RB.CHAR then - - if ped ~= -1 then - local pChar = getCharPointer(ped) - imgui.StrCopy(module.tmemory.address,string.format("0x%8.8X",pChar)) - end - end - - imgui.InputInt("Value", module.tmemory.value) - imgui.InputTextWithHint("Address","0x000000",module.tmemory.address,ffi.sizeof(module.tmemory.address)) - imgui.InputText("Offset", module.tmemory.offset,ffi.sizeof(module.tmemory.offset)) - imgui.SliderInt("Size", module.tmemory.size,1,4) - - if module.tmemory.size[0] == 4 then - imgui.Columns(2,nil,false) - imgui.Checkbox("Float",module.tmemory.is_float) - imgui.NextColumn() - else - imgui.Columns(1,nil,false) - end - - - imgui.Checkbox("Virtual protect", module.tmemory.vp) - imgui.Columns(1) - imgui.Dummy(imgui.ImVec2(0,10)) - - if imgui.Button("Write",imgui.ImVec2(fcommon.GetSize(2))) then - - if ffi.string(module.tmemory.offset) == "" then - imgui.StrCopy(module.tmemory.offset,"0") - end - - if ffi.string(module.tmemory.address) ~= "" then - fcommon.RwMemory(tonumber(ffi.string(module.tmemory.address))+tonumber(ffi.string(module.tmemory.offset)),module.tmemory.size[0],module.tmemory.value[0],module.tmemory.vp[0],module.tmemory.is_float[0]) - printHelpString("Value Updated") - else - printHelpString("No address found") - end - end - imgui.SameLine() - if imgui.Button("Clear",imgui.ImVec2(fcommon.GetSize(2))) then - module.tmemory.value[0] = 0 - imgui.StrCopy(module.tmemory.address,"") - imgui.StrCopy(module.tmemory.offset,"0") - module.tmemory.size[0] = 0 - module.tmemory.vp[0] = false - module.tmemory.is_float[0] = false - module.tmemory.radio_button[0] = 0 - printHelpString("Entries cleared") - end - end - if fcommon.BeginTabItem("Search") then - fcommon.DrawEntries(fconst.IDENTIFIER.MEMORY,fconst.DRAW_TYPE.TEXT, - function(address,size) - imgui.StrCopy(module.tmemory.address,address) - imgui.StrCopy(module.tmemory.offset,"0") - if size == "byte" then - module.tmemory.size[0] = 1 - module.tmemory.is_float[0] = false - end - if size == "word" then - module.tmemory.size[0] = 2 - module.tmemory.is_float[0] = false - end - if size == "dword" then - module.tmemory.size[0] = 4 - module.tmemory.is_float[0] = false - end - if size == "float" then - module.tmemory.size[0] = 4 - module.tmemory.is_float[0] = true - end - printHelpString("Address set") - end, - function(text) - if imgui.MenuItemBool("Remove memory") then - for category,table in pairs(module.tmemory.list) do - for key,val in pairs(table) do - if key == text then - module.tmemory.list[category][key] = nil - goto end_loop - end - end - end - ::end_loop:: - - printHelpString("Address removed") - end - end, - function(a) return a end,module.tmemory.list) - end - if fcommon.BeginTabItem("Custom") then - imgui.InputTextWithHint("Name","New address",module.tmemory.name,ffi.sizeof(module.tmemory.name)) - imgui.InputTextWithHint("Address","0x000000",module.tmemory.address,ffi.sizeof(module.tmemory.address)) - imgui.SliderInt("Size", module.tmemory.size,1,4) - imgui.Checkbox("Float",module.tmemory.is_float) - imgui.Spacing() - if imgui.Button("Add address",imgui.ImVec2(fcommon.GetSize(1))) then - - if ffi.string(module.tmemory.name) == "" then - printHelpString("No name found") - else - if ffi.string(module.tmemory.address) == "" or tonumber(ffi.string(module.tmemory.address)) == nil then - printHelpString("No address found") - else - local mem_type = "" - if module.tmemory.size[0] == 1 then - mem_type = "byte" - end - if module.tmemory.size[0] == 2 then - mem_type = "word" - end - if module.tmemory.size[0] == 4 then - if module.tmemory.is_float[0] == true then - mem_type = "float" - else - mem_type = "dword" - end - end - - module.tmemory.list[mem_type][ffi.string(module.tmemory.name)] = ffi.string(module.tmemory.address) - fcommon.SaveJson("memory",module.tmemory.list) - module.tmemory.list = fcommon.LoadJson("memory") - printHelpString("Address added") - end - end - - end - end - fcommon.EndTabBar() - end -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/menu.lua b/moonloader/lib/cheat-menu/modules/menu.lua deleted file mode 100644 index 86b9e88..0000000 --- a/moonloader/lib/cheat-menu/modules/menu.lua +++ /dev/null @@ -1,557 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tmenu = -{ - auto_update_check = imgui.new.bool(fconfig.Get('tmenu.auto_update_check',true)), - auto_reload = imgui.new.bool(fconfig.Get('tmenu.auto_reload',true)), - command = - { - filter = imgui.ImGuiTextFilter(), - height = 40, - input_field = imgui.new.char[256](), - list = {}, - show = imgui.new.bool(false), - }, - crash_text = "", - dont_save = imgui.new.bool(fconfig.Get('tmenu.dont_save',false)), - enable_stat_saving = imgui.new.bool(fconfig.Get('tmenu.enable_stat_saving',false)), - fast_load_images = imgui.new.bool(fconfig.Get('tmenu.fast_load_images',true)), - font = - { - list = {}, - selected = fconfig.Get('tmenu.font.selected',"Trebucbd.ttf"), - size = imgui.new.int(fconfig.Get('tmenu.font.size',math.floor(resY/54.85))), - }, - get_beta_updates = imgui.new.bool(fconfig.Get('tmenu.get_beta_updates',true)), - hot_keys = - { - asc_key = fconfig.Get('tmenu.hot_keys.asc_key',{vkeys.VK_RETURN,vkeys.VK_RETURN}), - camera_mode = fconfig.Get('tmenu.hot_keys.camera_mode',{vkeys.VK_LMENU,vkeys.VK_C}), - camera_mode_forward = fconfig.Get('tmenu.hot_keys.camera_mode_forward',{vkeys.VK_I,vkeys.VK_I}), - camera_mode_backward = fconfig.Get('tmenu.hot_keys.camera_mode_backward',{vkeys.VK_K,vkeys.VK_K}), - camera_mode_left = fconfig.Get('tmenu.hot_keys.camera_mode_left',{vkeys.VK_J,vkeys.VK_J}), - camera_mode_right = fconfig.Get('tmenu.hot_keys.camera_mode_right',{vkeys.VK_L,vkeys.VK_L}), - camera_mode_slow = fconfig.Get('tmenu.hot_keys.camera_mode_slow',{vkeys.VK_RCONTROL,vkeys.VK_RCONTROL}), - camera_mode_fast = fconfig.Get('tmenu.hot_keys.camera_mode_fast',{vkeys.VK_RSHIFT,vkeys.VK_RSHIFT}), - camera_mode_up = fconfig.Get('tmenu.hot_keys.camera_mode_up',{vkeys.VK_O,vkeys.VK_O}), - camera_mode_down = fconfig.Get('tmenu.hot_keys.camera_mode_down',{vkeys.VK_P,vkeys.VK_P}), - command_window = fconfig.Get('tmenu.hot_keys.command_window',{vkeys.VK_LMENU,vkeys.VK_M}), - menu_open = fconfig.Get('tmenu.hot_keys.menu_open',{vkeys.VK_LCONTROL,vkeys.VK_M}), - quick_screenshot = fconfig.Get('tmenu.hot_keys.quick_screenshot',{vkeys.VK_LCONTROL,vkeys.VK_S}), - quick_teleport = fconfig.Get('tmenu.hot_keys.quick_teleport',{vkeys.VK_X,vkeys.VK_Y}), - script_manager_temp = {vkeys.VK_LCONTROL,vkeys.VK_1} - }, - lock_player = imgui.new.bool(fconfig.Get('tmenu.lock_player',false)), - overlay = - { - coordinates = imgui.new.bool(fconfig.Get('tmenu.overlay.coordinates',false)), - fps = imgui.new.bool(fconfig.Get('tmenu.overlay.fps',false)), - show = imgui.new.bool(true), - location = imgui.new.bool(fconfig.Get('tmenu.overlay.location',false)), - position = {"Custom","Top Left","Top Right","Bottom Left","Bottom Right"}, - position_array = {}, - position_index = imgui.new.int(fconfig.Get('tmenu.overlay.position_index',4)), - health = imgui.new.bool(fconfig.Get('tmenu.overlay.health',false)), - pos_x = imgui.new.int(fconfig.Get('tmenu.overlay.pos_x',0)), - pos_y = imgui.new.int(fconfig.Get('tmenu.overlay.pos_y',0)), - speed = imgui.new.bool(fconfig.Get('tmenu.overlay.speed',false)), - transparent_bg = imgui.new.bool(fconfig.Get('tmenu.overlay.transparent_bg',false)), - }, - repo_version = nil, - show_tooltips = imgui.new.bool(fconfig.Get('tmenu.show_tooltips',true)), - show_crash_message = imgui.new.bool(fconfig.Get('tmenu.show_crash_message',true)), - update_status = fconst.UPDATE_STATUS.HIDE_MSG, -} - -module.tmenu.overlay.position_array = imgui.new['const char*'][#module.tmenu.overlay.position](module.tmenu.overlay.position) - --------------------------------------------------- --- Command window - -function module.FindArgument(t,string) - for k,v in ipairs(t) do - if v == string then - return true - end - end - return false -end - -function module.RegisterCommand(string,call_back_func,desc,usage) - module.tmenu.command.list[string] = {call_back_func,desc,usage} -end - -function module.ExecuteCommand() - - local string = ffi.string(module.tmenu.command.input_field) - local t = {} - - for w in string:gmatch("%S+") do - table.insert(t,w) - end - - for v,k in pairs(module.tmenu.command.list) do - if v == t[1] then - k[1](t) - return - end - end -end - -function module.RegisterAllCommands() - - module.RegisterCommand("reload",function(t) - thisScript():reload() - end,"Reload cheat menu") - - module.RegisterCommand("reloadall",function(t) - reloadScripts() - end,"Reload all moonloader scripts") - - module.RegisterCommand("tp",function(t) - if t[2] == nil or t[3] == nil then - printHelpString("Required coordinate missing") - return - end - - if t[4] == nil then t[4] = getGroundZFor3dCoord(x,y,100) end - lua_thread.create(fteleport.Teleport,tonumber(t[2]),tonumber(t[3]),tonumber(t[4])) - end,"Teleport to coordinates","{int X} {int Y} {int Z}(optional)") - - module.RegisterCommand("settime",function(t) - setTimeOfDay(t[2],t[3]) - printHelpString("Time set") - end,"Sets in-game time","{int hour} {int minute}") - - module.RegisterCommand("cheatmenu",function(t) - tcheatmenu.show[0] = not tcheatmenu.show[0] - end,"Open or close cheat menu") - - module.RegisterCommand("sethealth",function(t) - setCharHealth(PLAYER_PED,tonumber(t[2])) - printHelpString("Set health to " .. t[2]) - end,"Sets player health to value","{int health}") - - module.RegisterCommand("setmaxhealth",function(t) - setCharMaxHealth(PLAYER_PED,tonumber(t[2])) - printHelpString("Set max health to " .. t[2]) - end,"Sets player max health to value","{int max_health}") - - module.RegisterCommand("copycoordinates",function(t) - local x,y,z = getCharCoordinates(PLAYER_PED) - setClipboardText(string.format("%s %s %s",math.floor(x),math.floor(y),math.floor(z))) - printHelpString("Coordinates copied to clipboard") - end,"Copies coordinates to clipboard") - - module.RegisterCommand("setcarspeed",function(t) - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - setCarForwardSpeed(car,tonumber(t[2])) - printHelpString("Car speed set to " ..t[2]) - else - printHelpString("Player is not in any car") - end - end,"Sets vehicle speed","{int speed}") - - module.RegisterCommand("restorecam",function(t) - restoreCamera() - end,"Restores camera to default") - - module.RegisterCommand("cameramode",function(t) - fgame.tgame.camera.bool[0] = not fgame.tgame.camera.bool[0] - fcommon.CreateThread(fgame.CameraMode) - end,"Enable or disable camera mode") - - module.RegisterCommand("veh",function(t) - if t[2] == nil then - printHelpString("No vehicle name provided") - return - end - - local model = tonumber(t[2]) - - if type(model) == "nil" then - print(string.upper(t[2])) - model = casts.CModelInfo.GetModelFromName(string.upper(t[2])) - - if model ~= 0 and isModelAvailable(model) then - fvehicle.GiveVehicleToPlayer(model) - else - printHelpString("Invalid vehicle name") - end - end - - - end,"Spawns vehicle","{vehicle name}") - - module.RegisterCommand("wep",function(t) - if t[2] == nil then - printHelpString("No weapon name provided") - return - end - - local model = tonumber(t[2]) - - if type(model) == "nil" then - model = fweapon.CBaseWeaponInfo(string.upper(t[2])) - if model == 0 then - printHelpString("Invalid weapon name") - return - end - t[2] = model - fweapon.GiveWeapon(t[2]) - end - end,"Spawns weapon","{weapon name}") -end --------------------------------------------------- --- Updater code - -function module.CheckUpdates() - - if fmenu.tmenu.get_beta_updates[0] then - link = "https://raw.githubusercontent.com/user-grinch/Cheat-Menu/master/moonloader/cheat-menu.lua" - else - link = "https://api.github.com/repos/user-grinch/Cheat-Menu/tags" - end - - downloadUrlToFile(link,string.format("%s/version.txt",tcheatmenu.dir), - function(id, status, p1, p2) - if status == fconst.UPDATE_STATUS.DOWNLOADED then - local file_path = string.format("%s\\version.txt",tcheatmenu.dir) - if doesFileExist(file_path) then - local file = io.open(file_path,"rb") - local content = file:read("*all") - - if fmenu.tmenu.get_beta_updates[0] then - repo_version = content:match("script_version_number%((%d+)%)") - this_version = script.this.version_num - else - repo_version = decodeJson(content)[1].name - this_version = script.this.version - end - - if repo_version ~= nil then - if tostring(repo_version) > tostring(this_version) then - module.tmenu.update_status = fconst.UPDATE_STATUS.NEW_UPDATE - module.tmenu.repo_version = tostring(repo_version) - printHelpString("New update available") - else - printHelpString("No update found") - end - else - printHelpString("Couldn't connect to github. The rest of the menu is still functional. You can disable auto update check from 'Menu'") - end - io.close(file) - os.remove(file_path) - else - print("Version.txt doesn't exist") - end - end - end) -end - -function module.DownloadUpdate() - if fmenu.tmenu.get_beta_updates[0] then - link = "https://github.com/user-grinch/Cheat-Menu/archive/master.zip" - else - link = "https://github.com/user-grinch/Cheat-Menu/archive/".. module.tmenu.repo_version .. ".zip" - end - - downloadUrlToFile(link,string.format("%supdate.zip",tcheatmenu.dir), - function(id, status, p1, p2) - if status == fconst.UPDATE_STATUS.DOWNLOADED then - fmenu.tmenu.update_status = fconst.UPDATE_STATUS.DOWNLOADED - printHelpString("Download complete. Click the 'Install update' button to finish.") - end - end) - - printHelpString("Download has started. You'll get notified when the download completes.") - module.tmenu.update_status = fconst.UPDATE_STATUS.DOWNLOADING -end - -function module.InstallUpdate() - fmenu.tmenu.update_status = fconst.UPDATE_STATUS.HIDE_MSG - fgame.tgame.script_manager.skip_auto_reload = true - ziplib.zip_extract(tcheatmenu.dir .. "update.zip",tcheatmenu.dir,nil,nil) - - local dir = tcheatmenu.dir - - if fmenu.tmenu.get_beta_updates[0] then - dir = dir .. "\\Cheat-Menu-master\\" - else - dir = dir .. "\\Cheat-Menu-" .. fmenu.tmenu.repo_version .. "\\" - end - - fcommon.MoveFiles(dir,getGameDirectory()) - - os.remove(tcheatmenu.dir .. "update.zip") - - -- Delete the old config file too, causes crash? - os.remove(string.format(tcheatmenu.dir .. "/json/config.json")) - fconfig.tconfig.save_config = false - - printHelpString("Update ~g~Installed") - print("Update installed. Reloading script.") - thisScript():reload() -end - --------------------------------------------------- - -function module.MenuMain() - - if fcommon.BeginTabBar('MenuBar') then - if fcommon.BeginTabItem('Config') then - if imgui.Button("Reset to default",imgui.ImVec2(fcommon.GetSize(2))) then - module.tmenu.crash_text = "Default configuration ~g~restored" - fconfig.tconfig.reset = true - thisScript():reload() - end - imgui.SameLine() - if imgui.Button("Reload",imgui.ImVec2(fcommon.GetSize(2))) then - module.tmenu.crash_text = "Cheat Menu ~g~reloaded" - thisScript():reload() - end - imgui.Spacing() - imgui.PushItemWidth((imgui.GetWindowContentRegionWidth()-imgui.GetStyle().ItemSpacing.x) * 0.50) - fcommon.DropDownListStr("##Selectfont",fmenu.tmenu.font.list,"Font - " ..fmenu.tmenu.font.selected, - function(key,val) - imgui.GetIO().FontDefault = val - fmenu.tmenu.font.selected = key - end) - imgui.SameLine() - if imgui.SliderInt("##Fontsize", module.tmenu.font.size, 12, 48) then - tcheatmenu.restart_required = true - end - imgui.PopItemWidth() - imgui.Dummy(imgui.ImVec2(0,5)) - imgui.Columns(2,nil,false) - fcommon.CheckBoxVar("Auto reload",module.tmenu.auto_reload,"Reload cheat menu automatically\nin case of a crash.\n\nMight cause crash loop sometimes.") - fcommon.CheckBoxVar("Check for updates",module.tmenu.auto_update_check,"Cheat Menu will automatically check for updates\nonline. This requires an internet connection and\ -will download files from github repository.") - fcommon.CheckBoxVar("Don't save changes",module.tmenu.dont_save,"Don't save any changes done to the menu.\nMenu will always start as a new install.") - fcommon.CheckBoxVar("Enable stat saving",module.tmenu.enable_stat_saving,"Save stats data in config file. These will be loaded\non new game start or save game load.\n\ -Includes health, armour, stamina, body, fat etc.") - fcommon.CheckBoxVar("Fast load images",module.tmenu.fast_load_images,"Loads images at the menu startup. Enabling this may\ndecrease fps loss when opening the image tabs but\ -can freeze the game at startup for a few seconds.\n\nBest to enable if you won't reload the menu frequently.") - imgui.NextColumn() - fcommon.CheckBoxVar("Get beta updates",module.tmenu.get_beta_updates,"Receive frequent beta updates.\ -These updates might be unstable.") - fcommon.CheckBoxVar("Lock player",module.tmenu.lock_player,"Lock player controls while the menu is open") - fcommon.CheckBoxVar("Show crash message",module.tmenu.show_crash_message) - fcommon.CheckBoxVar("Show tooltips",module.tmenu.show_tooltips,"Shows usage tips beside options") - imgui.Columns(1) - end - if fcommon.BeginTabItem('Overlay') then - imgui.Columns(2,nil,false) - fcommon.CheckBoxVar("No background",module.tmenu.overlay.transparent_bg) - fcommon.CheckBoxVar("Show coordinates",module.tmenu.overlay.coordinates) - fcommon.CheckBoxVar("Show FPS",module.tmenu.overlay.fps) - imgui.NextColumn() - - fcommon.CheckBoxVar("Show location",module.tmenu.overlay.location) - fcommon.CheckBoxVar("Show vehicle health",module.tmenu.overlay.health) - fcommon.CheckBoxVar("Show vehicle speed",module.tmenu.overlay.speed) - imgui.Columns(1) - - imgui.Spacing() - imgui.Combo("Position", module.tmenu.overlay.position_index,module.tmenu.overlay.position_array,#module.tmenu.overlay.position) - fcommon.InformationTooltip("You can also right click on the\noverlay to access these options") - end - if fcommon.BeginTabItem('Commands') then - module.tmenu.command.filter:Draw("Search") - fcommon.InformationTooltip(string.format("Open command window using %s\nand close using Enter",fcommon.GetHotKeyNames(module.tmenu.hot_keys.command_window))) - imgui.Spacing() - - if imgui.BeginChild("Command entries") then - for v,k in fcommon.spairs(module.tmenu.command.list) do - if module.tmenu.command.filter:PassFilter(v) and imgui.CollapsingHeader(v) then - imgui.Spacing() - if k[2] ~= nil then - imgui.TextWrapped("Description: " .. k[2]) - end - - if k[3] == nil then k[3] = "" end - imgui.TextWrapped("Usage: " .. v .. " " .. k[3]) - - imgui.Separator() - end - end - imgui.EndChild() - end - end - if fcommon.BeginTabItem('Hotkeys') then - local x,y = fcommon.GetSize(3) - y = y/1.2 - - fcommon.HotKey("Open/ close cheat menu",module.tmenu.hot_keys.menu_open) - fcommon.HotKey("Open command window",module.tmenu.hot_keys.command_window) - - imgui.Dummy(imgui.ImVec2(0,10)) - - fcommon.HotKey("Activate aim skin changer",module.tmenu.hot_keys.asc_key) - fcommon.HotKey("Take quick screenshot",module.tmenu.hot_keys.quick_screenshot) - fcommon.HotKey("Toggle quick teleport",module.tmenu.hot_keys.quick_teleport) - - imgui.Dummy(imgui.ImVec2(0,10)) - - fcommon.HotKey("Enable/ disable camera mode",module.tmenu.hot_keys.camera_mode) - fcommon.HotKey("Camera mode forward",module.tmenu.hot_keys.camera_mode_forward) - fcommon.HotKey("Camera mode backward",module.tmenu.hot_keys.camera_mode_backward) - fcommon.HotKey("Camera mode left",module.tmenu.hot_keys.camera_mode_left) - fcommon.HotKey("Camera mode right",module.tmenu.hot_keys.camera_mode_right) - fcommon.HotKey("Camera mode slower movement",module.tmenu.hot_keys.camera_mode_slow) - fcommon.HotKey("Camera mode faster movement",module.tmenu.hot_keys.camera_mode_fast) - fcommon.HotKey("Camera mode up (lock on player)",module.tmenu.hot_keys.camera_mode_up) - fcommon.HotKey("Camera mode down (lock on player)",module.tmenu.hot_keys.camera_mode_down) - imgui.Dummy(imgui.ImVec2(0,10)) - - imgui.TextWrapped("You can reset these config to default from 'Reset to default' button under 'Config' tab") - end - if fcommon.BeginTabItem('Styles') then - if fstyle.tstyle.status then - if imgui.Button("Delete style",imgui.ImVec2(fcommon.GetSize(2))) then - if fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1] == nil then - printHelpString("No style selected") - else - if fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1] == "Default" then - printHelpString("Can't delete default style") - else - fstyle.tstyle.styles_table[(fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1])] = nil - fstyle.tstyle.list = fstyle.getStyles() - fstyle.tstyle.array = imgui.new['const char*'][#fstyle.tstyle.list](fstyle.tstyle.list) - fcommon.SaveJson("styles",fstyle.tstyle.styles_table) - - for k,v in ipairs(fstyle.tstyle.list) do - if v == "Default" then - fstyle.tstyle.selected[0] = k-1 - end - end - - if fstyle.tstyle.list[fstyle.tstyle.selected[0]+1] == nil then - fstyle.tstyle.selected[0] = fstyle.tstyle.selected[0] - 1 - end - fstyle.applyStyle(imgui.GetStyle(), fstyle.tstyle.list[fstyle.tstyle.selected[0]+1]) - fstyle.tstyle.selected_name = fstyle.tstyle.list[fstyle.tstyle.selected[0]+1] - printHelpString("Style deleted") - end - end - end - imgui.SameLine() - if imgui.Button("Save style",imgui.ImVec2(fcommon.GetSize(2))) then - fstyle.saveStyles(imgui.GetStyle(), ffi.string(fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1])) - fstyle.tstyle.list = fstyle.getStyles() - fstyle.tstyle.array = imgui.new['const char*'][#fstyle.tstyle.list](fstyle.tstyle.list) - fstyle.applyStyle(imgui.GetStyle(), fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1]) - fstyle.tstyle.selected_name = fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1] - - printHelpString("Style saved") - end - end - - imgui.Spacing() - - imgui.InputText('##styleName', fstyle.tstyle.name, ffi.sizeof(fstyle.tstyle.name) - 1) - imgui.SameLine() - local vec_size = imgui.GetItemRectSize() - local text = "Add style" - vec_size.x = imgui.CalcTextSize(text).x+10 - if imgui.Button(text,vec_size) then - fstyle.saveStyles(imgui.GetStyle(), ffi.string(fstyle.tstyle.name)) - fstyle.tstyle.list = fstyle.getStyles() - fstyle.tstyle.array = imgui.new['const char*'][#fstyle.tstyle.list](fstyle.tstyle.list) - for k,v in ipairs(fstyle.tstyle.list) do - if v == ffi.string(fstyle.tstyle.name) then - fstyle.tstyle.selected[0] = k-1 - end - end - fstyle.tstyle.selected_name = fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1] - printHelpString("Style added") - end - - if fstyle.tstyle.status then - - if imgui.Combo('Select style', fstyle.tstyle.selected, fstyle.tstyle.array, #fstyle.tstyle.list) then - fstyle.applyStyle(imgui.GetStyle(), fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1]) - fstyle.tstyle.selected_name = fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1] - end - - fstyle.StyleEditor() - end - end - if fcommon.BeginTabItem('License') then - imgui.TextWrapped("This program is free software: you can redistribute it and/or modify it under the terms of the \z - GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or \z - (at your option) any later version. \n\n\z - - This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied \z - warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. \n\n\z - - You should have received a copy of the GNU General Public License along with this program. If not, see .\n\n\n\z - - Copyright (C) 2019-2020 Grinch_ \n") - end - if fcommon.BeginTabItem('About') then - if imgui.Button("Check updates",imgui.ImVec2(fcommon.GetSize(3))) then - module.CheckUpdates() - end - imgui.SameLine() - if imgui.Button("Discord server",imgui.ImVec2(fcommon.GetSize(3))) then - os.execute('explorer "https://discord.gg/ZzW7kmf"') - end - imgui.SameLine() - if imgui.Button("GitHub repo",imgui.ImVec2(fcommon.GetSize(3))) then - os.execute('explorer "https://github.com/user-grinch/Cheat-Menu"') - end - imgui.Spacing() - - if imgui.BeginChild("AboutChild") then - - imgui.Columns(2,nil,false) - imgui.Text(string.format("%s v%s",script.this.name,script.this.version)) - imgui.Text(string.format("Build: %d",script.this.version_num)) - - imgui.NextColumn() - imgui.Text(string.format("Author: %s",script.this.authors[1])) - imgui.Text(string.format("Imgui: v%s",imgui._VERSION)) - imgui.Columns(1) - - imgui.TextWrapped("\nPlease provide 'moonloader.log' in case of debugging.") - imgui.Dummy(imgui.ImVec2(0,10)) - imgui.TextWrapped("Special thanks to,") - imgui.Columns(2,nil,false) - - imgui.TextWrapped("Dowglas_") - imgui.TextWrapped("guru guru") - imgui.TextWrapped("Israel") - imgui.TextWrapped("Junior-Djjr") - - imgui.NextColumn() - imgui.TextWrapped("randazz0") - imgui.TextWrapped("Um_Geek") - imgui.TextWrapped("Modding community") - imgui.TextWrapped("Rockstar Games") - imgui.EndChild() - end - imgui.Columns(1) - end - fcommon.EndTabBar() - end -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/mission.lua b/moonloader/lib/cheat-menu/modules/mission.lua deleted file mode 100644 index 6eb5584..0000000 --- a/moonloader/lib/cheat-menu/modules/mission.lua +++ /dev/null @@ -1,56 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tmission = -{ - names = fcommon.LoadJson("mission"), -} - --- Main function -function module.MissionMain() - imgui.Spacing() - - if imgui.Button("Fail current mission",imgui.ImVec2(fcommon.GetSize(1))) then - if isPlayerControlOn(PLAYER_HANDLE) then - failCurrentMission() - fcommon.CheatActivated() - end - end - - imgui.Dummy(imgui.ImVec2(0,10)) - - fcommon.DrawEntries(fconst.IDENTIFIER.MISSION,fconst.DRAW_TYPE.TEXT,function(key,val) - if getCharActiveInterior(PLAYER_PED) == 0 then - if getGameGlobal(glob.ONMISSION) == 0 then - lockPlayerControl(true) - doFade(true,1000) - clearWantedLevel(PLAYER_HANDLE) - loadAndLaunchMissionInternal(tonumber(key)) - printString(tostring(key),100) - lockPlayerControl(false) - else - printHelpString('Already in a mission') - end - else - printHelpString("Can't start mission inside interior") - end - end, - nil,function(a) return a end,module.tmission.names) - -end -return module diff --git a/moonloader/lib/cheat-menu/modules/ped.lua b/moonloader/lib/cheat-menu/modules/ped.lua deleted file mode 100644 index 71c8751..0000000 --- a/moonloader/lib/cheat-menu/modules/ped.lua +++ /dev/null @@ -1,305 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tped = -{ - gang = - { - is_exgangwars_installed = false, - index = imgui.new.int(0), - list = - { - "Ballas", - "Grove street families", - "Los santos vagos", - "San fierro rifa", - "Da nang boys", - "Mafia", - "Mountain cloud triad", - "Varrio los aztecas", - "Gang9", - "Gang10", - }, - names = - { - ["Ballas"] = 0, - ["Da nang boys"] = 4, - ["Gang9"] = 8, - ["Gang10"] = 9, - ["Grove street families"] = 1, - ["Los santos vagos"] = 2, - ["Mafia"] = 5, - ["Mountain cloud triad"] = 6, - ["San fierro rifa"] = 3, - ["Varrio los aztecas"] = 7, - }, - wars = imgui.new.bool(fconfig.Get('tped.gang.wars',false)), - }, - images = {}, - names = fcommon.LoadJson("ped"), - path = tcheatmenu.dir .. "peds\\", - ped_health_display = imgui.new.bool(fconfig.Get('tped.ped_health_display',false)), - selected = nil, - spawned_peds= - { - list = {}, - ped_bleed = imgui.new.bool(fconfig.Get('tped.spawned_peds.ped_bleed',false)), - ped_accuracy= imgui.new.int(fconfig.Get('tped.spawned_peds.ped_accuracy',50)), - ped_health = imgui.new.int(fconfig.Get('tped.spawned_peds.ped_health',100)), - ped_type_list = {"Civ male","Civ female","Cop","Ballas","Grove Street Families","Los Santos Vagos", - "San Fierro Rifa","Da Nang Boys","Mafia","Mountain Cloud Triads","Varrio Los Aztecas", - "Gang 9","Medic","Dealer","Criminal","Fireman","Prostitute"}, - ped_type_selected = imgui.new.int(fconfig.Get('tped.spawned_peds.ped_type_selected',1)), - ped_weapon_ammo = imgui.new.int(fconfig.Get('tped.spawned_peds.ped_weapon_ammo',99999)), - ped_weapon_selected = fconfig.Get('tped.spawned_peds.ped_weapon_selected',"None"), - ped_weapon_id = imgui.new.int(fconfig.Get('tped.spawned_peds.ped_weapon_id',-1)), - stand_still = imgui.new.bool(fconfig.Get('tped.spawned_peds.stand_still',true)), - }, - special = fcommon.LoadJson("ped special"), -} - -module.tped.gang.array = imgui.new['const char*'][#module.tped.gang.list](module.tped.gang.list) - -if getModuleHandle("ExGangWars.asi") ~= 0 then - module.tped.gang.is_exgangwars_installed = true -end - --- Returns ped name -function module.GetModelName(model) - if module.tped.names[model] then - return module.tped.names[model] - else - return "" - end -end - -function module.SpawnPed(model) - - if module.tped.names[model] ~= nil then - local ped = nil - if module.tped.special[model] == nil then - model = tonumber(model) - requestModel(model) - loadAllModelsNow() - - local x,y,z = getCharCoordinates(PLAYER_PED) - ped = createChar(module.tped.spawned_peds.ped_type_selected[0]+3,model,x,y,z) - - markModelAsNoLongerNeeded(model) - module.tped.spawned_peds.list[ped] = tostring(getCharModel(ped)) - - else - if hasSpecialCharacterLoaded(model) then - unloadSpecialCharacter(model) - end - loadSpecialCharacter(module.tped.special[tostring(model)],1) - loadAllModelsNow() - - local x,y,z = getCharCoordinates(PLAYER_PED) - ped = createChar(module.tped.spawned_peds.ped_type_selected[0]+3,290,x,y,z) -- CIVMALE - - module.tped.spawned_peds.list[ped] = tostring(getCharModel(ped)) - markModelAsNoLongerNeeded(module.tped.special[tostring(model)]) - end - if ped ~= nil then - if not module.tped.spawned_peds.stand_still[0] then - markCharAsNoLongerNeeded(ped) - end - setCharHealth(ped,module.tped.spawned_peds.ped_health[0]) - setCharBleeding(ped,module.tped.spawned_peds.ped_bleed[0]) - setCharAccuracy(ped,module.tped.spawned_peds.ped_accuracy[0]) - - if module.tped.spawned_peds.ped_weapon_id ~= -1 then - local model = getWeapontypeModel(module.tped.spawned_peds.ped_weapon_id) - - if isModelAvailable(model) then - requestModel(model) - loadAllModelsNow() - giveWeaponToChar(ped,module.tped.spawned_peds.ped_weapon_id,module.tped.spawned_peds.ped_weapon_ammo[0]) - end - end - printHelpString("Ped ~g~Spawned") - end - end -end - -function module.PedHealthDisplay() - while module.tped.ped_health_display[0] do - local result, char = getCharPlayerIsTargeting(PLAYER_HANDLE) - - if result then - - local health = getCharHealth(char) - local x,y,z = getCharCoordinates(char) - local screenX,screenY = convert3DCoordsToScreen(x,y,z+1.0) - mad.draw_text(tostring(health),screenX,screenY,1,0.8,0.4,0,false,false,false,255,255,255,255,false) - - end - wait(0) - end - -end - -function module.RemoveAllSpawnedPeds() - for ped,model in pairs(module.tped.spawned_peds.list) do - removeCharElegantly(ped) - module.tped.spawned_peds.list[ped] = nil - end -end - -function GetLargestGangInZone() - local gang = 0 - local density = 0 - - for title,id in pairs(module.tped.gang.names) do - - local x,y,z = getCharCoordinates(PLAYER_PED) - - local gang_desity = getZoneGangStrength(getNameOfInfoZone(x,y,z),id) - - if gang_desity > density then - density = gang_desity - gang = id - end - end - return gang -end - - -function SetSelectedWeapon(weapon) - module.tped.spawned_peds.ped_weapon_id = weapon - module.tped.spawned_peds.ped_weapon_selected = fweapon.GetModelName(weapon) -end - -function module.PedMain() - - if fcommon.BeginTabBar('PedBar') then - if fcommon.BeginTabItem('Checkboxes') then - imgui.Columns(2,nil,false) - if fcommon.CheckBoxVar("Display target health",module.tped.ped_health_display) then - fcommon.CreateThread(module.PedHealthDisplay) - end - fcommon.CheckBoxValue("Elvis everywhere",0x969157) - fcommon.CheckBoxValue("Everyone is armed",0x969140) - fcommon.CheckBoxValue("Gangs control streets",0x96915B) - fcommon.CheckBoxValue("Gangs everywhere",0x96915A) - if fcommon.CheckBoxVar("Gang wars",module.tped.gang.wars,nil, - function() - if imgui.Button("Start gang war",imgui.ImVec2(fcommon.GetSize(2))) then - if GetLargestGangInZone() == 1 then - callFunction(0x444300,0,0) -- defensive gang war - else - callFunction(0x446050,0,0) -- offensive gang war - end - setGangWarsActive(true) - end - imgui.SameLine() - if imgui.Button("End gang war",imgui.ImVec2(fcommon.GetSize(2))) then - callFunction(0x4464C0,0,0) - setGangWarsActive(true) - end - - imgui.Dummy(imgui.ImVec2(0,20)) - imgui.TextWrapped("Gang zone density:") - imgui.Spacing() - for title,id in pairs(module.tped.gang.names) do - - local x,y,z = getCharCoordinates(PLAYER_PED) - - local density = imgui.new.int(getZoneGangStrength(getNameOfInfoZone(x,y,z),id)) - imgui.PushItemWidth(imgui.GetWindowWidth()/2) - if imgui.SliderInt(title,density,0,255) then - setZoneGangStrength(getNameOfInfoZone(x,y,z),id,density[0]) - clearSpecificZonesToTriggerGangWar() - end - end - imgui.PopItemWidth() - imgui.Dummy(imgui.ImVec2(0,20)) - if not module.tped.gang.is_exgangwars_installed then - imgui.TextWrapped("You'll need ExGangWars plugin to display some turf colors") - imgui.Spacing() - if imgui.Button("Download ExGangWars",imgui.ImVec2(fcommon.GetSize(1))) then - os.execute('explorer "https://gtaforums.com/topic/682194-extended-gang-wars/"') - end - end - end) then - setGangWarsActive(module.tped.gang.wars[0]) - end - - imgui.NextColumn() - - fcommon.CheckBoxValue("No road peds",0x8D2538,nil,0,25) - fcommon.CheckBoxValue("Peds mayhem",0x96913E) - fcommon.CheckBoxValue("Peds attack with rockets",0x969158) - fcommon.CheckBoxValue("Peds riot",0x969175) - fcommon.CheckBoxValue("Slut magnet",0x96915D) - - imgui.Columns(1) - imgui.Spacing() - end - if fcommon.BeginTabItem('Menus') then - fcommon.UpdateAddress({name = 'Pedestrian density multiplier',address = 0x8D2530,size = 4,min = 0,max = 10, default = 1,is_float = true}) - fcommon.DropDownMenu("Recruit anyone",function() - fcommon.RadioButtonAddress("Select Weapon",{"9mm","AK47","Rockets"},{0x96917C,0x96917D,0x96917E}) - end) - end - if fcommon.BeginTabItem('Spawn') then - if imgui.Button("Remove all spawned peds",imgui.ImVec2(fcommon.GetSize(1))) then - module.RemoveAllSpawnedPeds() - printHelpString("All peds removed") - end - imgui.Spacing() - - if fcommon.BeginTabBar("SpawnPedBar") then - if fcommon.BeginTabItem('Spawner') then - fcommon.DrawEntries(fconst.IDENTIFIER.PED,fconst.DRAW_TYPE.IMAGE,module.SpawnPed,nil,module.GetModelName,module.tped.images,fconst.PED.IMAGE_HEIGHT,fconst.PED.IMAGE_WIDTH) - end - if fcommon.BeginTabItem('Config') then - imgui.Columns(2,nil,false) - fcommon.CheckBoxVar("Don't move",module.tped.spawned_peds.stand_still) - imgui.NextColumn() - fcommon.CheckBoxVar("Ped bleed",module.tped.spawned_peds.ped_bleed) - imgui.Columns(1) - imgui.Spacing() - imgui.Text("Selected weapon: " .. module.tped.spawned_peds.ped_weapon_selected) - fcommon.ConfigPanel("Select weapon",function() - if imgui.Button("Clear weapon selection",imgui.ImVec2(fcommon.GetSize(1))) then - module.tped.spawned_peds.ped_weapon_id = -1 - module.tped.spawned_peds.ped_weapon_selected = "None" - end - imgui.Spacing() - imgui.InputInt("Weapon ammo", module.tped.spawned_peds.ped_weapon_ammo) - imgui.Spacing() - imgui.Text("Selected weapon: " .. module.tped.spawned_peds.ped_weapon_selected) - fcommon.DrawEntries(fconst.IDENTIFIER.WEAPON,fconst.DRAW_TYPE.IMAGE,SetSelectedWeapon,nil,fweapon.GetModelName,fweapon.tweapon.images,fconst.WEAPON.IMAGE_HEIGHT,fconst.WEAPON.IMAGE_WIDTH,function(a) return a ~= "Jetpack"end ) - end) - imgui.Spacing() - imgui.SliderInt("Accuracy", module.tped.spawned_peds.ped_accuracy, 0.0, 100.0) - if imgui.InputInt("Health", module.tped.spawned_peds.ped_health) then - module.tped.spawned_peds.ped_health[0] = module.tped.spawned_peds.ped_health[0] < 0 and 0 or module.tped.spawned_peds.ped_health[0] - module.tped.spawned_peds.ped_health[0] = module.tped.spawned_peds.ped_health[0] > 1000 and 1000 or module.tped.spawned_peds.ped_health[0] - end - fcommon.DropDownListNumber("Ped type",module.tped.spawned_peds.ped_type_list,module.tped.spawned_peds.ped_type_selected) - end - fcommon.EndTabBar() - end - end - fcommon.EndTabBar() - end -end -return module diff --git a/moonloader/lib/cheat-menu/modules/player.lua b/moonloader/lib/cheat-menu/modules/player.lua deleted file mode 100644 index e22e16f..0000000 --- a/moonloader/lib/cheat-menu/modules/player.lua +++ /dev/null @@ -1,460 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tplayer = -{ - aimSkinChanger = imgui.new.bool(fconfig.Get('tplayer.aimSkinChanger',false)), - cjBody = imgui.new.int(fconfig.Get('tplayer.cjBody',0)), - clothes = - { - images = {}, - path = tcheatmenu.dir .. "clothes\\", - }, - custom_skins = - { - filter = imgui.ImGuiTextFilter(), - is_modloader_installed = false, - names = {}, - path = string.format("%s\\modloader\\Custom Skins",getGameDirectory()) - }, - enable_saving = imgui.new.bool(fconfig.Get('tplayer.enable_saving',false)), - save_data = fconfig.Get('tplayer.save_data',{["clothes"] = {}}), - god = imgui.new.bool(fconfig.Get('tplayer.god',false)), - health_regeneration = { - bool = imgui.new.bool(fconfig.Get('tplayer.health_regeneration.bool',false)), - increment_value = imgui.new.int(fconfig.Get('tplayer.health_regeneration.increment_value',2)), - interval = imgui.new.int(fconfig.Get('tplayer.health_regeneration.interval',5000)), - }, - invisible = imgui.new.bool(fconfig.Get('tplayer.invisible',false)), - keep_position = imgui.new.bool(fconfig.Get('tplayer.keep_position',false)), - never_wanted = imgui.new.bool(false), -} - -function module.CustomSkinsSetup() - local hmodloader = getModuleHandle("modloader.asi") - if hmodloader ~= 0 then - local dir = fplayer.tplayer.custom_skins.path - - module.tplayer.custom_skins.is_modloader_installed = true - - if not doesDirectoryExist(dir) then - createDirectory(dir) - end - - fcommon.IndexFiles(dir,fplayer.tplayer.custom_skins.names,"dff") - - end -end - -function module.KeepPosition() - while module.tplayer.keep_position[0] do - if isPlayerDead(PLAYER_HANDLE) then - local x,y,z = getCharCoordinates(PLAYER_PED) - wait(1000) - setCharCoordinates(PLAYER_PED,x,y,z) - end - wait(0) - end -end - -function module.SetPlayerInvisible(bool) - local pplayer = getCharPointer(PLAYER_PED) - - if pplayer == nil then return end - if bool then - casts.CEntity.SetRwObjectAlpha(pplayer,0) - else - casts.CEntity.SetRwObjectAlpha(pplayer,255) - end -end - -function module.ChangePlayerModel(model,dont_show_msg) - dont_show_msg = dont_show_msg or false - local modeldff = (model .. ".dff") - - if fped.tped.names[model] ~= nil or fplayer.tplayer.custom_skins.names[modeldff] ~= nil then - if fped.tped.special[model] == nil and fplayer.tplayer.custom_skins.names[modeldff] == nil then - model = tonumber(model) - if isModelAvailable(model) then - requestModel(model) - loadAllModelsNow() - setPlayerModel(PLAYER_HANDLE,model) - markModelAsNoLongerNeeded(model) - - if module.tplayer.enable_saving[0] then - module.tplayer.save_data["player_skin"] = model - end - end - else - if fped.tped.special[model] ~= nil then - model = fped.tped.special[model] - end - - loadSpecialCharacter(model,1) - loadAllModelsNow() - setPlayerModel(PLAYER_HANDLE,290) - - if module.tplayer.enable_saving[0] then - module.tplayer.save_data["player_skin"] = model - end - - unloadSpecialCharacter(290) - end - - local hveh = nil - if isCharInAnyCar(PLAYER_PED) then - hveh = getCarCharIsUsing(PLAYER_PED) - speed = getCarSpeed(hveh) - end - clearCharTasksImmediately(PLAYER_PED) - if hveh ~= nil then - taskWarpCharIntoCarAsDriver(PLAYER_PED,hveh) - setCarForwardSpeed(hveh,speed) - end - - if not dont_show_msg then - printHelpString("~g~Skin~w~ changed") - end - end -end - -function WantedLevelMenu() - - fcommon.DropDownMenu("Wanted level",function() - local _,wl = storeWantedLevel(PLAYER_HANDLE) - local wanted_level = imgui.new.int(wl) - local max_wanted_level = imgui.new.int(readMemory(0x58DFE4,1,false)) - - imgui.Columns(2,nil,false) - imgui.Text("Minimum" .. " = " .. tostring(0)) - imgui.NextColumn() - imgui.Text("Maximum" .. " = " .. tostring(6)) - imgui.Columns(1) - - imgui.Spacing() - - imgui.PushItemWidth(imgui.GetWindowWidth()-50) - - if imgui.InputInt("Set",wanted_level) then - callFunction(0x4396F0,1,0,false) - alterWantedLevel(PLAYER_HANDLE,wanted_level[0]) - end - imgui.PopItemWidth() - - imgui.Spacing() - if imgui.Button("Minimum",imgui.ImVec2(fcommon.GetSize(3))) then - callFunction(0x4396F0,1,0,false) - alterWantedLevel(PLAYER_HANDLE,0) - end - imgui.SameLine() - if imgui.Button("Default",imgui.ImVec2(fcommon.GetSize(3))) then - callFunction(0x4396F0,1,0,false) - alterWantedLevel(PLAYER_HANDLE,0) - end - imgui.SameLine() - if imgui.Button("Maximum",imgui.ImVec2(fcommon.GetSize(3))) then - callFunction(0x4396F0,1,0,false) - alterWantedLevel(PLAYER_HANDLE,max_wanted_level[0]) - end - end) -end - - -function module.RegenerateHealth() - while module.tplayer.health_regeneration.bool[0] do - local max_health = math.floor(mad.get_char_max_health(PLAYER_PED)) - local health = getCharHealth(PLAYER_PED) - - if max_health > health then - setCharHealth(PLAYER_PED,health+module.tplayer.health_regeneration.increment_value[0]) - end - - wait(module.tplayer.health_regeneration.interval[0]) - end -end - --------------------------------------------------- --- Cloth functions - -function module.ChangePlayerCloth(name,dont_show_msg) - dont_show_msg = dont_show_msg or false - local body_part, model, texture = name:match("([^$]+)$([^$]+)$([^$]+)") - - if getCharModel(PLAYER_PED) ~= 0 then - setPlayerModel(PLAYER_HANDLE,0) - end - - if texture == "cutoffchinosblue" then - givePlayerClothes(PLAYER_HANDLE,-697413025,744365350,body_part) - else - if texture == "sneakerbincblue" then - givePlayerClothes(PLAYER_HANDLE,-915574819,-2099005073,body_part) - else - if texture == "12myfac" then - givePlayerClothes(PLAYER_HANDLE,-1750049245,1393983095,body_part) - else - givePlayerClothes(PLAYER_HANDLE,getHashKey(texture),getHashKey(model),body_part) - end - end - end - - if module.tplayer.enable_saving[0] then - module.tplayer.save_data["clothes"][body_part] = name - end - - buildPlayerModel(PLAYER_HANDLE) - - if not dont_show_msg then - printHelpString("Clothes changed") - end - - local veh = nil - local speed = 0 - if isCharInAnyCar(PLAYER_PED) then - veh = getCarCharIsUsing(PLAYER_PED) - speed = getCarSpeed(veh) - end - clearCharTasksImmediately(PLAYER_PED) - if veh ~= nil then - taskWarpCharIntoCarAsDriver(PLAYER_PED,veh) - setCarForwardSpeed(veh,speed) - end -end - -function module.RemoveThisCloth(name) - if imgui.MenuItemBool("Remove cloth") then - local body_part, model, texture = name:match("([^$]+)$([^$]+)$([^$]+)") - - if module.tplayer.enable_saving[0] then - module.tplayer.save_data["clothes"][body_part] = "none" - end - - givePlayerClothes(PLAYER_HANDLE,0,0,body_part) - buildPlayerModel(PLAYER_HANDLE) - printHelpString("Cloth ~r~removed") - end -end --------------------------------------------------- - --- Main function -function module.PlayerMain() - - if imgui.Button("Copy coordinates",imgui.ImVec2(fcommon.GetSize(2))) then - local x,y,z = getCharCoordinates(PLAYER_PED) - setClipboardText(string.format( "%d,%d,%d",x,y,z)) - printHelpString("Coordinates copied") - end - imgui.SameLine() - if imgui.Button("Suicide",imgui.ImVec2(fcommon.GetSize(2))) then - setCharHealth(PLAYER_PED,0) - end - - if fcommon.BeginTabBar("PlayerBar") then - if fcommon.BeginTabItem("Checkboxes") then - imgui.Columns(2,nil,false) - if fcommon.CheckBoxVar("God mode",module.tplayer.god) then - if not module.tplayer.god[0] then - writeMemory(0x96916D,1,0,false) - setCharProofs(PLAYER_PED,false,false,false,false,false) - end - end - fcommon.CheckBoxValue("Have bounty on head",0x96913F) - if fcommon.CheckBoxVar("Health regeneration",module.tplayer.health_regeneration.bool,nil, - function() - imgui.SliderInt("Increment value", module.tplayer.health_regeneration.increment_value, 0, 25) - imgui.SliderInt("Interval", module.tplayer.health_regeneration.interval, 0, 10000) - fcommon.InformationTooltip("The wait time between increment\nin milliseconds") - end) then - fcommon.CreateThread(module.RegenerateHealth) - end - fcommon.CheckBoxValue("Higher cycle jumps",0x969161) - fcommon.CheckBoxValue("Infinite oxygen",0x96916E) - fcommon.CheckBoxValue("Infinite run",0xB7CEE4) - if fcommon.CheckBoxVar("Invisible player",module.tplayer.invisible) then - module.SetPlayerInvisible(module.tplayer.invisible[0]) - end - imgui.NextColumn() - if fcommon.CheckBoxVar("Keep position",module.tplayer.keep_position,"Auto teleport to the position you died from") then - fcommon.CreateThread(module.KeepPosition) - end - fcommon.CheckBoxValue("Lock player control",getCharPointer(PLAYER_PED)+0x598) - fcommon.CheckBoxValue("Mega jump",0x96916C) - fcommon.CheckBoxValue("Mega punch",0x969173) - fcommon.CheckBoxValue("Never get hungry",0x969174) - - module.tplayer.never_wanted[0] = readMemory(0x969171 ,1,false) - if fcommon.CheckBoxVar("Never wanted",module.tplayer.never_wanted) then - callFunction(0x4396C0,1,0,false) - if module.tplayer.never_wanted[0] then - fcommon.CheatActivated() - else - fcommon.CheatDeactivated() - end - fconfig.Set(fconfig.tconfig.misc_data,"Never Wanted",module.tplayer.never_wanted[0]) - end - - imgui.Columns(1) - end - if fcommon.BeginTabItem("Menus") then - local pChar = getCharPointer(PLAYER_PED) - fcommon.UpdateAddress({name = "Armour",address = pChar+0x548,size = 4,min = 0,default =0,max = 150, is_float = true}) - fcommon.DropDownMenu("Body",function() - if getCharModel(PLAYER_PED) == 0 then - if imgui.RadioButtonIntPtr("Fat",module.tplayer.cjBody,1) then - callFunction(0x439110,1,1,false) - fconfig.Set(fconfig.tconfig.misc_data,"Body",1) - fcommon.CheatActivated() - end - if imgui.RadioButtonIntPtr("Muscle",module.tplayer.cjBody,2) then - -- body not changing to muscular after changing to fat fix - callFunction(0x439190,1,1,false) - callFunction(0x439150,1,1,false) - fconfig.Set(fconfig.tconfig.misc_data,"Body",2) - fcommon.CheatActivated() - end - if imgui.RadioButtonIntPtr("Skinny",module.tplayer.cjBody,3) then - callFunction(0x439190,1,1,false) - fconfig.Set(fconfig.tconfig.misc_data,"Body",3) - fcommon.CheatActivated() - end - if imgui.RadioButtonIntPtr("None",module.tplayer.cjBody,0) then - fconfig.Set(fconfig.tconfig.misc_data,"Body",0) - fcommon.CheatActivated() - end - else - imgui.TextWrapped("You need to be in CJ skin.") - imgui.Spacing() - if imgui.Button("Change to CJ skin",imgui.ImVec2(fcommon.GetSize(1))) then - setPlayerModel(PLAYER_HANDLE,0) - - local veh = nil - local speed = 0 - if isCharInAnyCar(PLAYER_PED) then - veh = getCarCharIsUsing(PLAYER_PED) - speed = getCarSpeed(veh) - end - clearCharTasksImmediately(PLAYER_PED) - if veh ~= nil then - taskWarpCharIntoCarAsDriver(PLAYER_PED,veh) - setCarForwardSpeed(veh,speed) - end - end - end - end) - fcommon.UpdateStat({ name = "Energy",stat = 165}) - fcommon.UpdateStat({ name = "Fat",stat = 21}) - fcommon.UpdateAddress({name = "Health",address = pChar+0x540,size = 4,min = 0,default =100,max = math.floor(mad.get_char_max_health(PLAYER_PED)), is_float = true}) - fcommon.UpdateStat({ name = "Lung capacity",stat = 225}) - fcommon.UpdateStat({ name = "Max health",stat = 24,min = 0,default = 569,max = 1450}) - fcommon.UpdateAddress({name = "Money",address = 0xB7CE50,size = 4,min = -9999999,default = 0,max = 9999999}) - fcommon.UpdateStat({ name = "Muscle",stat = 23}) - fcommon.UpdateStat({ name = "Respect",stat = 68,max = 2450}) - fcommon.UpdateStat({ name = "Stamina",stat = 22}) - - WantedLevelMenu() - end - if fcommon.BeginTabItem("Appearance") then - imgui.Columns(2,nil,false) - fcommon.CheckBoxVar("Aim skin changer", module.tplayer.aimSkinChanger,"Activate using, Aim ped +".. fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.asc_key)) - imgui.NextColumn() - fcommon.CheckBoxVar("Enable saving", module.tplayer.enable_saving,"Save & load clothes & ped skins.\n(Clothes only work with CJ skin)") - imgui.Columns(1) - if fcommon.BeginTabBar('Appearance') then - if fcommon.BeginTabItem('Clothes') then - if getCharModel(PLAYER_PED) == 0 then - if imgui.Button("Remove clothes",imgui.ImVec2(fcommon.GetSize(1))) then - for i=0, 18 do - givePlayerClothes(PLAYER_HANDLE,0,0,i) - if module.tplayer.enable_saving[0] then - module.tplayer.save_data["clothes"][tostring(i)] = "none" - end - end - buildPlayerModel(PLAYER_HANDLE) - printHelpString("Clothes ~r~removed") - end - - imgui.Dummy(imgui.ImVec2(0,10)) - fcommon.DrawEntries(fconst.IDENTIFIER.CLOTHES,fconst.DRAW_TYPE.IMAGE,module.ChangePlayerCloth,module.RemoveThisCloth,function() return "" end,module.tplayer.clothes.images,fconst.CLOTH.IMAGE_HEIGHT,fconst.CLOTH.IMAGE_WIDTH) - else - imgui.TextWrapped("You need to be in CJ skin to change clothes.") - imgui.Spacing() - if imgui.Button("Change to CJ skin",imgui.ImVec2(fcommon.GetSize(1))) then - - if module.tplayer.enable_saving[0] then - module.tplayer.save_data["player_skin"] = nil - end - - setPlayerModel(PLAYER_HANDLE,0) - - local veh = nil - local speed = 0 - if isCharInAnyCar(PLAYER_PED) then - veh = getCarCharIsUsing(PLAYER_PED) - speed = getCarSpeed(veh) - end - clearCharTasksImmediately(PLAYER_PED) - if veh ~= nil then - taskWarpCharIntoCarAsDriver(PLAYER_PED,veh) - setCarForwardSpeed(veh,speed) - end - end - end - end - if fcommon.BeginTabItem('Ped skins') then - fcommon.DrawEntries(fconst.IDENTIFIER.PED,fconst.DRAW_TYPE.IMAGE,module.ChangePlayerModel,nil,fped.GetModelName,fped.tped.images,fconst.PED.IMAGE_HEIGHT,fconst.PED.IMAGE_WIDTH) - end - if fcommon.BeginTabItem('Custom skins') then - if module.tplayer.custom_skins.is_modloader_installed then - module.tplayer.custom_skins.filter:Draw("Search") - if module.tplayer.custom_skins.filter:PassFilter('') then - local min = imgui.GetItemRectMin() - local drawlist = imgui.GetWindowDrawList() - drawlist:AddText(imgui.ImVec2(min.x+imgui.GetStyle().ItemInnerSpacing.x,min.y+imgui.GetStyle().FramePadding.y), imgui.GetColorU32(imgui.Col.TextDisabled),string.format("Total skins: %d",fcommon.CalcTableSize(fplayer.tplayer.custom_skins.names))) - end - fcommon.InformationTooltip(string.format("Place your dff & txd files inside,\n'%s'\n\ -Note:\nFile names can't exceed 8 characters.\nDon't change names while the game is running",fplayer.tplayer.custom_skins.path)) - imgui.Spacing() - - if imgui.BeginChild("Custom skins") then - for model_name,_ in pairs(fplayer.tplayer.custom_skins.names) do - if module.tplayer.custom_skins.filter:PassFilter(model_name) then - model_name = string.sub(model_name,1,-5) - if #model_name < 9 and imgui.MenuItemBool(model_name) then - fplayer.ChangePlayerModel(model_name) - print(model_name) - end - end - end - imgui.EndChild() - end - else - imgui.TextWrapped("Modloader is not installed. Please install modloader.") - imgui.Spacing() - if imgui.Button("Download Modloader",imgui.ImVec2(fcommon.GetSize(1))) then - os.execute('explorer "https://gtaforums.com/topic/669520-mod-loader/"') - end - end - end - fcommon.EndTabBar() - end - end - fcommon.EndTabBar() - end -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/stat.lua b/moonloader/lib/cheat-menu/modules/stat.lua deleted file mode 100644 index 1177439..0000000 --- a/moonloader/lib/cheat-menu/modules/stat.lua +++ /dev/null @@ -1,96 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - --- Please don't remove credits below. - -local module = {} - -module.tstat = -{ - filter = imgui.ImGuiTextFilter(), - names = fcommon.LoadJson("stat"), -} - --- Main function -function module.StatMain() - if fcommon.BeginTabBar('Stats') then - if fcommon.BeginTabItem('Vehicle') then - if imgui.Button("Max vehicle stats",imgui.ImVec2(fcommon.GetSize(1))) then - callFunction(0x4399D0,1,1) - fcommon.CheatActivated() - end - imgui.Spacing() - fcommon.UpdateStat({ name = "Bike",stat = 229}) - fcommon.UpdateStat({ name = "Cycling",stat = 230}) - fcommon.UpdateStat({ name = "Driving",stat = 160}) - fcommon.UpdateStat({ name = "Flying",stat = 223}) - end - if fcommon.BeginTabItem('Weapon') then - if imgui.Button("Max weapon stats",imgui.ImVec2(fcommon.GetSize(1))) then - callFunction(0x439940,1,1) - fcommon.CheatActivated() - end - imgui.Spacing() - fcommon.UpdateStat({ name = "AK47",stat = 77}) - fcommon.UpdateStat({ name = "Combat shotgun",stat = 74}) - fcommon.UpdateStat({ name = "Desert eagle",stat = 71}) - - fcommon.UpdateStat({ name = "Machine pistol",stat = 75}) - fcommon.UpdateStat({ name = "M4",stat = 78}) - fcommon.UpdateStat({ name = "Pistol",stat = 69}) - fcommon.UpdateStat({ name = "Sawn off shotgun",stat = 73}) - fcommon.UpdateStat({ name = "Shotgun",stat = 72}) - fcommon.UpdateStat({ name = "Silenced pistol",stat = 70}) - fcommon.UpdateStat({ name = "SMG",stat = 76}) - fcommon.UpdateStat({ name = "Rifle",stat = 79}) - end - if fcommon.BeginTabItem('Girlfriend') then - if imgui.Button("Max girlfriend stats",imgui.ImVec2(fcommon.GetSize(1))) then - for i=252,257,1 do - setFloatStat(i,100) - end - clearHelp() - fcommon.CheatActivated() - end - imgui.Spacing() - fcommon.UpdateStat({ name = "Barbara",stat = 255,max = 100}) - fcommon.UpdateStat({ name = "Denise",stat = 252,max = 100}) - fcommon.UpdateStat({ name = "Helena",stat = 254,max = 100}) - fcommon.UpdateStat({ name = "Katie",stat = 256,max = 100}) - fcommon.UpdateStat({ name = "Michelle",stat = 253,max = 100}) - fcommon.UpdateStat({ name = "Millie",stat = 257,max = 100}) - end - if fcommon.BeginTabItem('Search') then - module.tstat.filter:Draw("Search") - imgui.Spacing() - - if imgui.BeginChild("Stat Entries") then - for snum, sname in pairs(module.tstat.names) do - if snum ~= "" then - if module.tstat.filter:PassFilter(sname) then - fcommon.UpdateStat({ name = sname,stat = snum}) - end - end - end - imgui.Spacing() - imgui.EndChild() - end - end - fcommon.EndTabBar() - end -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/style.lua b/moonloader/lib/cheat-menu/modules/style.lua deleted file mode 100644 index a854eb1..0000000 --- a/moonloader/lib/cheat-menu/modules/style.lua +++ /dev/null @@ -1,311 +0,0 @@ ------------------------------------------------------------------------------- --- This specific module was created by randazzo ------------------------------------------------------------------------------- - --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tstyle = -{ - array = nil, - list = nil, - name = imgui.new.char[256]("Untitled"), - preparetoapply = false, - selected = imgui.new.int(0), - selected_name = fconfig.Get('tstyle.selected_name',"Default"), - status = nil, - styles_table = {}, -} - -local _ImGuiStyle = -{ - 'Alpha', - 'WindowPadding', - 'WindowRounding', - 'WindowBorderSize', - 'WindowMinSize', - 'WindowTitleAlign', - 'WindowMenuButtonPosition', - 'ChildRounding', - 'ChildBorderSize', - 'PopupRounding', - 'PopupBorderSize', - 'FramePadding', - 'FrameRounding', - 'FrameBorderSize', - 'ItemSpacing', - 'ItemInnerSpacing', - 'TouchExtraPadding', - 'IndentSpacing', - 'ColumnsMinSpacing', - 'ScrollbarSize', - 'ScrollbarRounding', - 'GrabMinSize', - 'GrabRounding', - 'TabRounding', - 'TabBorderSize', - 'ColorButtonPosition', - 'ButtonTextAlign', - 'SelectableTextAlign', - 'DisplayWindowPadding', - 'DisplaySafeAreaPadding', - 'MouseCursorScale', - 'AntiAliasedLines', - 'AntiAliasedFill', - 'CurveTessellationTol', - 'Colors', -}; - -local _ImGuiCol = -{ - 'Text', - 'TextDisabled', - 'WindowBg', - 'ChildBg', - 'PopupBg', - 'Border', - 'BorderShadow', - 'FrameBg', - 'FrameBgHovered', - 'FrameBgActive', - 'TitleBg', - 'TitleBgActive', - 'TitleBgCollapsed', - 'MenuBarBg', - 'ScrollbarBg', - 'ScrollbarGrab', - 'ScrollbarGrabHovered', - 'ScrollbarGrabActive', - 'CheckMark', - 'SliderGrab', - 'SliderGrabActive', - 'Button', - 'ButtonHovered', - 'ButtonActive', - 'Header', - 'HeaderHovered', - 'HeaderActive', - 'Separator', - 'SeparatorHovered', - 'SeparatorActive', - 'ResizeGrip', - 'ResizeGripHovered', - 'ResizeGripActive', - 'Tab', - 'TabHovered', - 'TabActive', - 'TabUnfocused', - 'TabUnfocusedActive', - 'PlotLines', - 'PlotLinesHovered', - 'PlotHistogram', - 'PlotHistogramHovered', - 'TextSelectedBg', - 'DragDropTarget', - 'NavHighlight', - 'NavWindowingHighlight', - 'NavWindowingDimBg', - 'ModalWindowDimBg' -}; - -local function split(str, delim, plain) - local lines, pos, plain = {}, 1, not (plain == false) --[[ delimiter is plain text by default ]] - repeat - local npos, epos = string.find(str, delim, pos, plain) - table.insert(lines, string.sub(str, pos, npos and npos - 1)) - pos = epos and epos + 1 - until not pos - return lines -end - -function module.getStyles() - local tmp = {} - for k in pairs(module.tstyle.styles_table) do - table.insert( tmp, k ) - module.tstyle.preparetoapply = true - end - return module.tstyle.preparetoapply and tmp or {"No styles"} -end - -function module.applyStyle(style, stylename) - imgui.SwitchContext() - if module.tstyle.preparetoapply and module.tstyle.styles_table[stylename] then - for _,v in pairs(_ImGuiStyle) do - if v == 'Colors' then - for k, d in pairs(_ImGuiCol) do - style[v][k-1] = imgui.ColorConvertU32ToFloat4(tonumber(bit.tohex(module.tstyle.styles_table[stylename][d]), 16)) - end - break - end - if tostring(module.tstyle.styles_table[stylename][v]):find("(%d+) (%d+)") then - local n = split(module.tstyle.styles_table[stylename][v], " ") - style[v] = imgui.ImVec2(tonumber(n[1]), tonumber(n[2])) - elseif tonumber(module.tstyle.styles_table[stylename][v]) then - style[v] = tonumber(module.tstyle.styles_table[stylename][v]) - end - end - return true - end - return false -end - -function module.loadStyles() - module.tstyle.preparetoapply = false - module.tstyle.styles_table = fcommon.LoadJson("styles") - - if module.tstyle.styles_table ~= nil then - module.tstyle.preparetoapply = true - end - - return module.tstyle.preparetoapply -end - -function StylerCheckbox(label,style) - - local var = imgui.new.bool((style > 0.0) and true or false) - if imgui.Checkbox(label, var) then - style = var[0] and 1.0 or 0.0 - end - - return style -end - -function StylerSliderFloat(label,style,min,max) - - local var = imgui.new.float(style) - if imgui.SliderFloat(label, var, min, max, "%.0f") then - style = var[0] - end - - return style -end - -function StylerSliderFloat2(label,style,min,max) - - local var = imgui.new.float[2](style.x,style.y) - if imgui.SliderFloat2(label, var, min, max, "%.0f") then - style = imgui.ImVec2(var[0],var[1]) - end - - return style -end - -function StylerColorPicker(style,i) - local name = imgui.GetStyleColorName(i) - imgui.PushIDInt(i) - - local float = imgui.new.float[4](style.Colors[i].x,style.Colors[i].y,style.Colors[i].z,style.Colors[i].w) - if imgui.ColorEdit4("##color", float,imgui.ColorEditFlags.AlphaBar) then - style.Colors[i].x = float[0] - style.Colors[i].y = float[1] - style.Colors[i].z = float[2] - style.Colors[i].w = float[3] - end - - imgui.SameLine() - imgui.TextUnformatted(name) - - if fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1] ~= nil - and module.tstyle.styles_table[fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1]][ffi.string(name)] ~= nil then - local s = imgui.ColorConvertU32ToFloat4(tonumber(bit.tohex(module.tstyle.styles_table[fstyle.tstyle.list[fstyle.tstyle.selected[0] + 1]][ffi.string(name)]), 16)) - - if float[0] ~= s.x or float[1] ~= s.y or float[2] ~= s.z or float[3] ~= s.w then - imgui.SameLine(0.0, style.ItemInnerSpacing.x) - if imgui.Button("Revert") then - style.Colors[i].x = s.x - style.Colors[i].y = s.y - style.Colors[i].z = s.z - style.Colors[i].w = s.w - end - end - end - imgui.PopID() -end -function module.StyleEditor() - - local style = imgui.GetStyle(); - - imgui.Spacing() - if fcommon.BeginTabBar('StyleBar') then - if fcommon.BeginTabItem('Borders') then - imgui.Columns(2,nil,false) - - style.ChildBorderSize = StylerCheckbox("Child border",style.ChildBorderSize) - style.FrameBorderSize = StylerCheckbox("Frame border",style.FrameBorderSize) - - imgui.NextColumn() - - style.PopupBorderSize = StylerCheckbox("Popup border",style.PopupBorderSize) - style.WindowBorderSize = StylerCheckbox("Window border",style.WindowBorderSize) - - imgui.Columns(1) - end - if fcommon.BeginTabItem('Colors') then - imgui.BeginChild("##colors") - imgui.PushItemWidth(-160) - - for i=0,35,1 do - StylerColorPicker(style,i) - end - StylerColorPicker(style,42) - imgui.PopItemWidth(); - imgui.EndChild(); - end - if fcommon.BeginTabItem('Sizes') then - imgui.BeginChild("##sizes"); - imgui.PushItemWidth(imgui.GetWindowWidth() * 0.50) - style.GrabMinSize = StylerSliderFloat("Grab min size",style.GrabMinSize,0.0,20.0) - style.IndentSpacing = StylerSliderFloat("Indent spacing",style.IndentSpacing,0.0,30.0) - style.ItemInnerSpacing = StylerSliderFloat2("Item inner spacing",style.ItemInnerSpacing,0.0,20.0) - style.ItemSpacing = StylerSliderFloat2("Item spacing",style.ItemSpacing,0.0,20.0) - style.ScrollbarSize = StylerSliderFloat("Scrollbar size",style.ScrollbarSize,1.0,20.0) - style.WindowPadding = StylerSliderFloat2("Window padding",style.WindowPadding,0.0,20.0) - - imgui.Dummy(imgui.ImVec2(0,10)) - - style.ChildRounding = StylerSliderFloat("Child rounding",style.ChildRounding,0.0,12.0) - style.FrameRounding = StylerSliderFloat("Frame rounding",style.FrameRounding,0.0,12.0) - style.GrabRounding = StylerSliderFloat("Grab rounding",style.GrabRounding,0.0,12.0) - style.PopupRounding = StylerSliderFloat("Popup rounding",style.PopupRounding,0.0,12.0) - style.ScrollbarRounding = StylerSliderFloat("Scrollbar rounding",style.ScrollbarRounding,0.0,12.0) - style.WindowRounding = StylerSliderFloat("Window rounding",style.WindowRounding,0.0,12.0) - - imgui.PopItemWidth() - imgui.EndChild() - end - fcommon.EndTabBar() - end -end - - - -function module.saveStyles( style, stylename ) - module.tstyle.styles_table[stylename] = {} - for _, v in pairs(_ImGuiStyle) do - if v == 'Colors' then - for k, d in pairs(_ImGuiCol) do - module.tstyle.styles_table[stylename][d] = "0x"..bit.tohex(imgui.ColorConvertFloat4ToU32(style[v][k-1])) - end - break - end - module.tstyle.styles_table[stylename][v] = type(style[v]) == 'cdata' and (style[v].x.." "..style[v].y) or style[v] - end - return fcommon.SaveJson("styles",module.tstyle.styles_table) and true or false -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/teleport.lua b/moonloader/lib/cheat-menu/modules/teleport.lua deleted file mode 100644 index 85f0413..0000000 --- a/moonloader/lib/cheat-menu/modules/teleport.lua +++ /dev/null @@ -1,212 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tteleport = -{ - coords = imgui.new.char[64](""), - coordinates = fcommon.LoadJson("coordinate"), - coord_name = imgui.new.char[64](""), - insert_coords = imgui.new.bool(fconfig.Get('tteleport.insert_coords',false)), - radar_sprites = fcommon.LoadJson("radar sprite"), - shortcut = imgui.new.bool(fconfig.Get('tteleport.shortcut',false)), -} - --- Teleports player to a specified coordinates -function module.Teleport(x, y, z,interior_id) - - local target = false - - if x == nil and y == nil then - target, x,y,z = getTargetBlipCoordinates() - - if not target then - printHelpString("No marker found") - return - end - end - - if math.abs(x) > 99999 or math.abs(y) > 99999 or math.abs(z) > 99999 then - printHelpString("Coordinate too high") - return - end - - if interior_id == nil then - interior_id = 0 - end - - lockPlayerControl(true) - doFade(false,200) - wait(200) - - setCharInterior(PLAYER_PED,interior_id) - setInteriorVisible(interior_id) - clearExtraColours(true) - activateInteriorPeds(true) - - if isCharInAnyCar(PLAYER_PED) then - local hveh = getCarCharIsUsing(PLAYER_PED) - setCarCoordinates(hveh,x,y,z) - setVehicleInterior(hveh,interior_id) - else - setCharCoordinates(PLAYER_PED, x, y, z) - end - - local timer = getGameTimer() - - if target or z == nil then - while true do - wait(0) - local px,py = getCharCoordinates(PLAYER_PED) - - if isCharInAnyCar(PLAYER_PED) then - local hveh = getCarCharIsUsing(PLAYER_PED) - setVehicleInterior(hveh,0) - setCarCoordinates(hveh,x,y,-100) - else - setCharCoordinates(PLAYER_PED, x, y, -100) - end - - if px == x and py == y then - break - end - - if getGameTimer() - timer > 500 then - break - end - - end - end - - doFade(true,200) - lockPlayerControl(false) -end - -function FetchRadarSpriteDara() - -- Get sprite data, isn't saved in coordinte.json - module.tteleport.coordinates["Radar"] = {} - for i = 0xBA86F0,0xBAA248,0x28 do -- 0xBAA248 = 0xBA86F0+175*0x28 - local radarSprite = memory.read(i+36,1) - if radarSprite ~= 0 then - local x,y,z = memory.getfloat(i+8),memory.getfloat(i+12),memory.getfloat(i+16) - module.tteleport.coordinates["Radar"][string.format("%s, %s",module.tteleport.radar_sprites[tostring(radarSprite)],fcommon.GetLocationInfo(x,y,z):sub(1,-5))] = string.format("0, %f, %f, %f",x,y,z) - end - end - wait(5000) -- delay -end - --- Main function -function module.TeleportMain() - - if fcommon.BeginTabBar("TeleportBar") then - if fcommon.BeginTabItem("Teleport") then - - imgui.Columns(2,nil,false) - fcommon.CheckBoxVar("Insert coordinates",module.tteleport.insert_coords) - imgui.NextColumn() - fcommon.CheckBoxVar("Quick teleport",module.tteleport.shortcut,"Teleport to marker using" .. fcommon.GetHotKeyNames(fmenu.tmenu.hot_keys.quick_teleport)) - imgui.Columns(1) - - imgui.Spacing() - imgui.InputTextWithHint("Coordinates","x, y, z",module.tteleport.coords,ffi.sizeof(module.tteleport.coords)) - - - if module.tteleport.insert_coords[0] then - local x,y,z = getCharCoordinates(PLAYER_PED) - imgui.StrCopy(module.tteleport.coords,string.format("%d, %d, %d", math.floor(x) , math.floor(y) , math.floor(z))) - end - - if (isKeyDown(vkeys.VK_LCONTROL) or isKeyDown(vkeys.VK_RCONTROL)) and isKeyDown(vkeys.VK_V) then - imgui.StrCopy(module.tteleport.coords,getClipboardText()) - end - imgui.Dummy(imgui.ImVec2(0,10)) - - if imgui.Button("Teleport to coord",imgui.ImVec2(fcommon.GetSize(2))) then - local x,y,z = (ffi.string(module.tteleport.coords)):match("([^,]+),([^,]+),([^,]+)") - if tonumber(x) ~= nil and tonumber(y) ~= nil and tonumber(z) ~= nil then - lua_thread.create(module.Teleport,x, y, z,0) - else - printHelpString("No coordinate found") - end - end - imgui.SameLine() - if imgui.Button("Teleport to marker",imgui.ImVec2(fcommon.GetSize(2))) then - lua_thread.create(module.Teleport) - end - - fcommon.EndTabItem() - end - if fcommon.BeginTabItem("Search") then - - fcommon.CreateThread(FetchRadarSpriteDara) - - fcommon.DrawEntries(fconst.IDENTIFIER.TELEPORT,fconst.DRAW_TYPE.TEXT,function(text) - local interior_id, x, y, z = text:match("([^, ]+), ([^, ]+), ([^, ]+), ([^, ]+)") - lua_thread.create(module.Teleport,x, y, z,interior_id) - end, - function(text) - - if imgui.MenuItemBool("Remove location") then - for category,table in pairs(module.tteleport.coordinates) do - for key,val in pairs(table) do - if key == text then - module.tteleport.coordinates[category][key] = nil - goto end_loop - end - end - end - ::end_loop:: - - printHelpString("Coordinate ~r~removed") - end - - end,function(a) return a end,module.tteleport.coordinates) - - fcommon.EndTabItem() - end - if fcommon.BeginTabItem("Custom") then - - imgui.InputTextWithHint("Name","Groove street",module.tteleport.coord_name,ffi.sizeof(module.tteleport.coord_name)) - imgui.InputTextWithHint("Coordinates","x, y, z",module.tteleport.coords,ffi.sizeof(module.tteleport.coords)) - - if module.tteleport.insert_coords[0] then - local x,y,z = getCharCoordinates(PLAYER_PED) - - imgui.StrCopy(module.tteleport.coords,string.format("%d, %d, %d", math.floor(x) , math.floor(y) , math.floor(z))) - end - imgui.Spacing() - if imgui.Button("Save location",imgui.ImVec2(fcommon.GetSize(1))) then - if ffi.string(module.tteleport.coord_name) == "" then - printHelpString("No name found") - else - local x,y,z = (ffi.string(module.tteleport.coords)):match("([^,]+),([^,]+),([^,]+)") - if tonumber(x) ~= nil and tonumber(y) ~= nil and tonumber(z) ~= nil then - module.tteleport.coordinates["Custom"][ffi.string(module.tteleport.coord_name)] = string.format("%d, %s",getCharActiveInterior(PLAYER_PED), ffi.string(module.tteleport.coords)) - fcommon.SaveJson("coordinate",module.tteleport.coordinates) - module.tteleport.coordinates = fcommon.LoadJson("coordinate") - printHelpString("Entry ~g~added") - else - printHelpString("No coordinate found") - end - end - end - end - fcommon.EndTabBar() - end -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/vehicle.lua b/moonloader/lib/cheat-menu/modules/vehicle.lua deleted file mode 100644 index 3feccac..0000000 --- a/moonloader/lib/cheat-menu/modules/vehicle.lua +++ /dev/null @@ -1,1458 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tvehicle = -{ - aircraft = - { - camera = imgui.new.bool(fconfig.Get('tvehicle.aircraft.camera',false)), - index = fconfig.Get('tvehicle.aircraft.index',2), - spawn_in_air = imgui.new.bool(fconfig.Get('tvehicle.aircraft.spawn_in_air',true)), - zoom = { -5.0,-15.0,-20.0,-30.0,-40.0}, - }, - apply_material_filter = imgui.new.bool(fconfig.Get('tvehicle.apply_material_filter',true)), - car_engine = imgui.new.int(fconfig.Get('tvehicle.car_engine',fconst.CHECKBOX_STATE.NOT_CONFIGURED)), - color = - { - car_data_table = {}, - col_data_table = {}, - default = -1, - radio_btn = imgui.new.int(1), - rgb = imgui.new.float[3](0.0,0.0,0.0), - show_all = imgui.new.bool(fconfig.Get('tvehicle.color.show_all',false)) - }, - components = - { - enable_saving = imgui.new.bool(fconfig.Get('tvehicle.components.enable_saving',false)), - save_data = fconfig.Get('tvehicle.components.save_data',{}), - images = {}, - list = {}, - names = {}, - path = tcheatmenu.dir .. "vehicles\\components\\", - saved = false, - selected = imgui.new.int(0), - value = imgui.new.int(0), - }, - doors = {"Hood","Boot","Front left door","Front right door","Rear left door","Rear right door","All"}, - door_menu_button = imgui.new.int(0), - first_person_camera = - { - bool = imgui.new.bool(fconfig.Get('tvehicle.first_person_camera.bool',false)), - offsets = fcommon.LoadJson("first person camera offsets"), - offset_x_var = imgui.new.float(0), - offset_y_var = imgui.new.float(0), - offset_z_var = imgui.new.float(0), - }, - gxt_name = imgui.new.char[32](""), - gxt_name_table = fconfig.Get('tvehicle.gxt_name_table',{}), - handling_flags = fcommon.LoadJson("handling flags"), - handling_name = {}, - heavy = imgui.new.bool(fconfig.Get('tvehicle.heavy',false)), - images = {}, - invisible_car = imgui.new.bool(fconfig.Get('tvehicle.invisible_car',false)), - license_plate_text = imgui.new.char[9](fconfig.Get('tvehicle.license_plate_text',"GTA__SAN")), - lights = imgui.new.bool(fconfig.Get('tvehicle.lights',false)), - lock_doors = imgui.new.bool(false), - lock_speed = imgui.new.bool(fconfig.Get('tvehicle.lock_speed',false)), - max_velocity_temp = imgui.new.int(-1), - model_flags = fcommon.LoadJson("model flags"), - names = fcommon.LoadJson("vehicle"), - paintjobs = - { - cache_images = {}, - current_paintjob = imgui.new.int(-1); - enable_saving = imgui.new.bool(fconfig.Get('tvehicle.paintjobs.enable_saving',false)), - save_data = fconfig.Get('tvehicle.paintjobs.save_data',{}), - names = 0, - path = tcheatmenu.dir .. "vehicles\\paintjobs", - paintjobs_count = 0, - images = {}, - texture = nil - }, - neon = - { - checkbox = imgui.new.bool(fconfig.Get('tvehicle.neon.checkbox',false)), - data = fcommon.LoadJson("neon data"), - rgb = imgui.new.float[3](0.0,0.0,0.0), - rb_value = imgui.new.int(-1), - }, - no_vehicles = imgui.new.bool(fconfig.Get('tvehicle.no_vehicles',false)), - no_damage = imgui.new.bool(fconfig.Get('tvehicle.no_damage',false)), - path = tcheatmenu.dir .. "vehicles\\images", - rainbow_colors = - { - bool = imgui.new.bool(fconfig.Get('tvehicle.rainbow_colors.bool',false)), - traffic = imgui.new.bool(fconfig.Get('tvehicle.rainbow_colors.traffic',false)), - speed = imgui.new.float(fconfig.Get('tvehicle.rainbow_colors.speed',0.5)), - }, - rainbow_neons = - { - bool = imgui.new.bool(fconfig.Get('tvehicle.rainbow_neons.bool',false)), - traffic = imgui.new.bool(fconfig.Get('tvehicle.rainbow_neons.traffic',false)), - speed = imgui.new.float(fconfig.Get('tvehicle.rainbow_neons.speed',0.5)), - }, - spawn_inside = imgui.new.bool(fconfig.Get('tvehicle.spawn_inside',true)), - speed = imgui.new.int(fconfig.Get('tvehicle.speed',0)), - stay_on_bike = imgui.new.bool(fconfig.Get('tvehicle.stay_on_bike',false)), - trains = - { - ["449"] = {8,9}, - ["537"] = {0,3,6,10,12,13}, - ["538"] = {1,5,15}, - }, - unlimited_nitro = imgui.new.bool(fconfig.Get('tvehicle.unlimited_nitro',false)), - visual_damage = imgui.new.bool(fconfig.Get('tvehicle.visual_damage',false)), - watertight_car = imgui.new.bool(fconfig.Get('tvehicle.watertight_car',false)), -} - --------------------------------------------------- --- Neon - -result, handle = loadDynamicLibrary("neon_api.asi") -module.tvehicle.neon["Handle"] = handle - -if module.tvehicle.neon["Handle"] ~= 0 then - result, proc = getDynamicLibraryProcedure("SetFlag",module.tvehicle.neon["Handle"]) - module.tvehicle.neon["SetFlag"] = proc - - result, proc = getDynamicLibraryProcedure("GetFlag",module.tvehicle.neon["Handle"]) - module.tvehicle.neon["GetFlag"] = proc - - result, proc = getDynamicLibraryProcedure("SetX",module.tvehicle.neon["Handle"]) - module.tvehicle.neon["SetX"] = proc - - result, proc = getDynamicLibraryProcedure("SetY",module.tvehicle.neon["Handle"]) - module.tvehicle.neon["SetY"] = proc - - result, proc = getDynamicLibraryProcedure("InstallNeon",module.tvehicle.neon["Handle"]) - module.tvehicle.neon["InstallNeon"] = proc - - result, proc = getDynamicLibraryProcedure("SetRed",module.tvehicle.neon["Handle"]) - module.tvehicle.neon["SetRed"] = proc - - result, proc = getDynamicLibraryProcedure("SetGreen",module.tvehicle.neon["Handle"]) - module.tvehicle.neon["SetGreen"] = proc - - result, proc = getDynamicLibraryProcedure("SetBlue",module.tvehicle.neon["Handle"]) - module.tvehicle.neon["SetBlue"] = proc -end - -function InstallNeon(car,color) - car = car or getCarCharIsUsing(PLAYER_PED) - local pveh = getCarPointer(car) - - if module.tvehicle.neon["Handle"] ~= 0 then - if module.tvehicle.neon["InstallNeon"] and module.tvehicle.neon["SetX"] and module.tvehicle.neon["SetY"] then - callFunction(module.tvehicle.neon["InstallNeon"],3,3,pveh,0,0) - - local data = module.tvehicle.neon.data[casts.CModelInfo.GetNameFromModel(getCarModel(car))] or { X = 0.0, Y = 0.0} - - callFunction(module.tvehicle.neon["SetX"],2,2,pveh,data.X) - callFunction(module.tvehicle.neon["SetY"],2,2,pveh,data.Y) - - callFunction(module.tvehicle.neon["SetRed"],2,2,pveh,color[1]) - callFunction(module.tvehicle.neon["SetGreen"],2,2,pveh,color[2]) - callFunction(module.tvehicle.neon["SetBlue"],2,2,pveh,color[3]) - - if module.tvehicle.paintjobs.enable_saving[0] then - fconfig.Set(module.tvehicle.paintjobs.save_data,string.format("%d.neon.red",getCarModel(car)),color[1]) - fconfig.Set(module.tvehicle.paintjobs.save_data,string.format("%d.neon.green",getCarModel(car)),color[2]) - fconfig.Set(module.tvehicle.paintjobs.save_data,string.format("%d.neon.blue",getCarModel(car)),color[3]) - end - end - end -end - -function module.TrafficNeons() - while module.tvehicle.neon.checkbox[0] and module.tvehicle.neon["Handle"] ~= 0 do - for hveh in fcommon.pool("veh") do - local temp = 0 - - if getVehicleClass(hveh) == fconst.VEHICLE_CLASS.NORMAL then - temp = math.random(1,20) -- 5% - end - if getVehicleClass(hveh) == fconst.VEHICLE_CLASS.RICH_FAMILY then - temp = math.random(1,5) -- 20% - end - if getVehicleClass(hveh) == fconst.VEHICLE_CLASS.EXECUTIVE then - temp = math.random(1,3) -- 30% - end - - if temp == 1 and callFunction(module.tvehicle.neon["GetFlag"],1,1,hveh) ~= 0x10 then - if getCarCharIsUsing(PLAYER_PED) ~= hveh then - InstallNeon(hveh,{math.random(0,255),math.random(0,255),math.random(0,255)}) - end - end - callFunction(module.tvehicle.neon["SetFlag"],2,2,hveh,0x10) - end - wait(100) - end -end - --------------------------------------------------- - -function module.GiveVehicleToPlayer(model) - model = tonumber(model) - local vehicle = nil - local interior = getCharActiveInterior(PLAYER_PED) - - if isModelAvailable(model) then - - local x,y,z = getCharCoordinates(PLAYER_PED) - - local speed = 0 - - if isCharInAnyCar(PLAYER_PED) and module.tvehicle.spawn_inside[0] then - - local hveh = getCarCharIsUsing(PLAYER_PED) - speed = getCarSpeed(hveh) - - warpCharFromCarToCoord(PLAYER_PED,x,y,z) - - if casts.CModelInfo.IsTrainModel(model) then - deleteMissionTrain(hveh) - else - deleteCar(hveh) - end - end - - if interior == 0 then - if (module.tvehicle.aircraft.spawn_in_air[0]) and (isThisModelAHeli(model) or isThisModelAPlane(model)) then - z = 400 - end - else - z = z - 5 - end - - if casts.CModelInfo.IsTrainModel(model) then - - local train_id_table = module.tvehicle.trains[tostring(model)] - local train_id = train_id_table[math.random(1,#train_id_table)] - - -- Loading all train related models - requestModel(590) - requestModel(538) - requestModel(570) - requestModel(569) - requestModel(537) - requestModel(449) - - loadAllModelsNow() - - if math.random(0,1) == 0 then - vehicle = createMissionTrain(train_id,x,y,z) - else - vehicle = createMissionTrain(train_id,x,y,z,true) - end - - deleteChar(getDriverOfCar(vehicle)) - - if module.tvehicle.spawn_inside[0] then - warpCharIntoCar(PLAYER_PED,vehicle) - setTrainCruiseSpeed(vehicle,speed) - end - - markMissionTrainAsNoLongerNeeded(vehicle) - markModelAsNoLongerNeeded(590) - markModelAsNoLongerNeeded(538) - markModelAsNoLongerNeeded(570) - markModelAsNoLongerNeeded(569) - markModelAsNoLongerNeeded(537) - markModelAsNoLongerNeeded(449) - - else - - requestModel(model) - loadAllModelsNow() - - customPlateForNextCar(model,ffi.string(module.tvehicle.license_plate_text)) - - if not module.tvehicle.spawn_inside[0] then - vehicle = spawnVehicleByCheating(model) - else - vehicle = createCar(model,x,y,z) - setCarHeading(vehicle,getCharHeading(PLAYER_PED)) - warpCharIntoCar(PLAYER_PED,vehicle) - setCarForwardSpeed(vehicle,speed) - end - - markCarAsNoLongerNeeded(vehicle) - markModelAsNoLongerNeeded(model) - end - - if doesVehicleExist(vehicle) then - setVehicleInterior(vehicle,interior) - end - - fcommon.CheatActivated() - end -end - --------------------------------------------------- --- Camera - -function module.AircraftCamera() - - if module.tvehicle.aircraft.camera[0] then - if isCharInAnyHeli(PLAYER_PED) - or isCharInAnyPlane(PLAYER_PED) then - while isCharInAnyHeli(PLAYER_PED) - or isCharInAnyPlane(PLAYER_PED) do - - -- FirstPersonCamera controls the camera if its enabled - if module.tvehicle.aircraft.camera[0] == false or module.tvehicle.first_person_camera.bool[0] then break end - - local vehicle = getCarCharIsUsing(PLAYER_PED) - local roll = getCarRoll(vehicle) - - attachCameraToVehicle(vehicle,0.0,module.tvehicle.aircraft.zoom[module.tvehicle.aircraft.index],2.5,0.0,0.0,0.0,(roll*-1),2) - if isKeyDown(0x56) then - while isKeyDown(0x56) do - wait(0) - end - module.tvehicle.aircraft.index = module.tvehicle.aircraft.index + 1 - if module.tvehicle.aircraft.index > #module.tvehicle.aircraft.zoom then - module.tvehicle.aircraft.index = 0 - end - end - wait(0) - end - restoreCameraJumpcut() - end - end -end - -function module.FirstPersonCamera() - local total_x = 0 - local total_y = 0 - - if module.tvehicle.first_person_camera.bool[0] and not isCharOnFoot(PLAYER_PED) and not fgame.tgame.camera.bool[0] then - while module.tvehicle.first_person_camera.bool[0] and not isCharOnFoot(PLAYER_PED) and not fgame.tgame.camera.bool[0] do - - local hveh = getCarCharIsUsing(PLAYER_PED) - - x,y = getPcMouseMovement() - total_x = total_x + x - total_y = total_y + y - - local roll = 0.0 - if module.tvehicle.aircraft.camera[0] == true then -- check if new aircraft camera is enabled - roll = getCarRoll(hveh) - end - - if fgame.tgame.camera.bool[0] then - break - end - attachCameraToChar(PLAYER_PED,module.tvehicle.first_person_camera.offset_x_var[0], module.tvehicle.first_person_camera.offset_y_var[0], module.tvehicle.first_person_camera.offset_z_var[0], total_x, 180, total_y, (roll*-1), 2) - wait(0) - end - restoreCameraJumpcut() - end -end - --------------------------------------------------- --- Color/ paintjob - -function module.ForEachCarComponent(func,skip,car) - car = car or getCarCharIsUsing(PLAYER_PED) - if car ~= nil then - - for _, comp in ipairs(mad.get_all_vehicle_components(car)) do - for _, obj in ipairs(comp:get_objects()) do - for _, mat in ipairs(obj:get_materials()) do - func(mat,comp,car) - if skip == true then - goto _skip - end - end - end - ::_skip:: - end - else - printHelpString("Player ~r~not ~w~in car") - end -end - -function module.GetTextureName(name) - if name == nil then - return "" - else - return name - end -end - -function module.ParseCarcols() - local file_path = string.format("%s/data/carcols.dat",getGameDirectory()) - local col_data = false - local car_data = false - - if doesFileExist(file_path) then - - for line in io.lines(file_path) do - if line == "col" then - col_data = true - goto continue - end - if line == "car" or line == "car4" then - car_data = true - goto continue - end - if line == "end" then - if col_data then col_data = false end - if car_data then car_data = false end - goto continue - end - if col_data then - local r, g, b = string.match(line,"(%d+).(%d+).(%d+)") - - if r and g and b then - table.insert(module.tvehicle.color.col_data_table,string.format("%d %d %d",r,g,b)) - end - end - if car_data then - local name = nil - for x in string.gmatch(line,"[^,]+") do - if type(tonumber(x)) == "nil" then - name = string.upper(x) - module.tvehicle.color.car_data_table[name] = {} - end - if type(tonumber(x)) == "number" then - table.insert(module.tvehicle.color.car_data_table[name],tonumber(x)) - end - end - end - ::continue:: - end - end -end - -function module.ParseVehiclesIDE() - local file_path = string.format("%s/data/vehicles.ide",getGameDirectory()) - local cars_data = false - local tt = module.tvehicle.handling_name - if doesFileExist(file_path) then - - for line in io.lines(file_path) do - if line == "cars" then - cars_data = true - end - if line == "end" then - if cars_data then cars_data = false end - goto continue - end - if cars_data then - local name = nil - local t = {} - for x in string.gmatch(line,"[^,]+") do - x = x:gsub(".",{["\t"] ="",[","] = "",[" "] = ""}) - table.insert(t,x) - end - t[1] = tonumber(t[1]) - if t[1] ~= nil then - tt[t[1]] = t[5] - end - end - end - ::continue:: - end -end - -function ApplyColor(load_saved_color,car) - - - module.ForEachCarComponent(function(mat,comp,car) - - local r, g, b, old_a = mat:get_color() - local model = getCarModel(car) - - if load_saved_color then - module.tvehicle.color.rgb[0] = fconfig.Get(string.format("%d.%s.red",model,comp.name),-1,module.tvehicle.paintjobs.save_data) - module.tvehicle.color.rgb[1] = fconfig.Get(string.format("%d.%s.green",model,comp.name),-1,module.tvehicle.paintjobs.save_data) - module.tvehicle.color.rgb[2] = fconfig.Get(string.format("%d.%s.blue",model,comp.name),-1,module.tvehicle.paintjobs.save_data) - end - - if (module.tvehicle.color.rgb[0] ~= -1.0 and module.tvehicle.color.rgb[1] ~= -1.0 and module.tvehicle.color.rgb[2] ~= -1.0) - and (not module.tvehicle.apply_material_filter[0] or (r == 0x3C and g == 0xFF and b == 0x00) or (r == 0xFF and g == 0x00 and b == 0xAF)) then - - local save_data = false - - if module.tvehicle.components.selected[0] == 0 and not load_saved_color then - mat:set_color(module.tvehicle.color.rgb[0]*255, module.tvehicle.color.rgb[1]*255, module.tvehicle.color.rgb[2]*255, 255.0) - save_data = true - end - - if comp.name == module.tvehicle.components.names[module.tvehicle.components.selected[0]+1] or load_saved_color then - mat:set_color(module.tvehicle.color.rgb[0]*255, module.tvehicle.color.rgb[1]*255, module.tvehicle.color.rgb[2]*255, 255.0) - save_data = true - end - - if save_data and module.tvehicle.paintjobs.enable_saving[0] then - fconfig.Set(module.tvehicle.paintjobs.save_data,string.format("%d.%s.red",model,comp.name),module.tvehicle.color.rgb[0]) - fconfig.Set(module.tvehicle.paintjobs.save_data,string.format("%d.%s.green",model,comp.name),module.tvehicle.color.rgb[1]) - fconfig.Set(module.tvehicle.paintjobs.save_data,string.format("%d.%s.blue",model,comp.name),module.tvehicle.color.rgb[2]) - end - end - module.tvehicle.color.default = getCarColours(car) - end,false,car) -end - -function ApplyTexture(filename,load_saved_texture,car) - - module.ForEachCarComponent(function(mat,comp,car) - local r, g, b, old_a = mat:get_color() - - local model = getCarModel(car) - - if load_saved_texture then - filename = fconfig.Get(string.format("%d.%s.texture",model,comp.name),nil,module.tvehicle.paintjobs.save_data) - end - - if filename ~= nil then - local fullpath = module.tvehicle.paintjobs.path .. "\\" .. filename .. ".png" - - if doesFileExist(fullpath) then - - if module.tvehicle.paintjobs.cache_images[filename] == nil then - module.tvehicle.paintjobs.cache_images[filename] = mad.load_png_texture(fullpath) - end - - module.tvehicle.paintjobs.texture = module.tvehicle.paintjobs.cache_images[filename] - - - if not module.tvehicle.apply_material_filter[0] or (r == 0x3C and g == 0xFF and b == 0x00) or (r == 0xFF and g == 0x00 and b == 0xAF) then - local save_data = false - - if module.tvehicle.components.selected[0] == 0 and not load_saved_texture then - mat:set_texture(module.tvehicle.paintjobs.texture) - save_data = true - end - if comp.name == module.tvehicle.components.names[module.tvehicle.components.selected[0]+1] or load_saved_texture then - mat:set_texture(module.tvehicle.paintjobs.texture) - save_data = true - end - - if save_data and module.tvehicle.paintjobs.enable_saving[0] then - fconfig.Set(module.tvehicle.paintjobs.save_data,string.format("%d.%s.texture",model,comp.name),filename) - end - end - end - end - module.tvehicle.color.default = getCarColours(car) - end,false,car) -end - -function Rainbow(speed) - local r = math.floor(math.sin(os.clock() * speed) * 127 + 128) - local g = math.floor(math.sin(os.clock() * speed + 2) * 127 + 128) - local b = math.floor(math.sin(os.clock() * speed + 4) * 127 + 128) - return r,g,b -end - -function RainbowVehicleColor(hveh) - module.ForEachCarComponent(function(mat,comp,hveh) - local r,g,b = mat:get_color() - - if not module.tvehicle.apply_material_filter[0] - or (r == 0x3C and g == 0xFF and b == 0x00) or (r == 0xFF and g == 0x00 and b == 0xAF) then - r,g,b = Rainbow(module.tvehicle.rainbow_colors.speed[0]) - mat:set_color(r,g,b,255) - end - end,false,hveh) -end - -function module.RainbowColors() - while module.tvehicle.rainbow_colors.bool[0] do - - if module.tvehicle.rainbow_colors.traffic[0] then -- Player + Traffic - - for hveh in fcommon.pool("veh") do - RainbowVehicleColor(hveh) - end - - else -- Only Player - if isCharInAnyCar(PLAYER_PED) then - local hveh = getCarCharIsUsing(PLAYER_PED) - RainbowVehicleColor(hveh) - else -- function not needed at this time - break - end - end - wait(0) - end -end - -function module.RainbowNeons() - - while module.tvehicle.rainbow_neons.bool[0] do - - if module.tvehicle.rainbow_neons.traffic[0] then -- Player + Traffic - - for hveh in fcommon.pool("veh") do - InstallNeon(hveh,{Rainbow(module.tvehicle.rainbow_neons.speed[0])}) - end - - else -- Only Player - if isCharInAnyCar(PLAYER_PED) then - local hveh = getCarCharIsUsing(PLAYER_PED) - InstallNeon(hveh,{Rainbow(module.tvehicle.rainbow_neons.speed[0])}) - else -- function not needed at this time - break - end - end - - wait(0) - end -end - --------------------------------------------------- --- Component/ tune - -function StoreComponentData(hveh) - if module.tvehicle.components.enable_saving[0] then - local model = tostring(getCarModel(hveh)) - module.tvehicle.components.save_data[model] = {} - - for x=1,14,1 do - local comp_model = getCurrentCarMod(hveh,x) - - if comp_model ~= -1 then - table.insert(module.tvehicle.components.save_data[model],comp_model) - end - end - end -end - -function module.AddComponentToVehicle(component,car,hide_msg) - component = tonumber(component) - if isCharInAnyCar(PLAYER_PED) then - if car == nil then - car = getCarCharIsUsing(PLAYER_PED) - end - if isModelAvailable(component) and doesVehicleExist(car) then - requestVehicleMod(component) - loadAllModelsNow() - addVehicleMod(car,component) - - StoreComponentData(car) - - if hide_msg ~= true then - printHelpString("Component ~g~added") - end - markModelAsNoLongerNeeded(component) - end - end -end - -function module.RemoveComponentFromVehicle(component,car,hide_msg) - component = tonumber(component) - if car == nil then - car = getCarCharIsUsing(PLAYER_PED) - end - if doesVehicleExist(car) then - removeVehicleMod(car,component) - - StoreComponentData(car) - - if hide_msg ~= true then - printHelpString("Component ~r~removed") - end - end -end - --------------------------------------------------- --- Misc - -function module.OnEnterVehicle() - - while true do - - if isCharInAnyCar(PLAYER_PED) then - local hveh = getCarCharIsUsing(PLAYER_PED) - local pVeh = getCarPointer(hveh) - local model = getCarModel(hveh) - - local model_name = module.tvehicle.gxt_name_table[casts.CModelInfo.GetNameFromModel(model)] or getGxtText(casts.CModelInfo.GetNameFromModel(model)) - - -- Get vehicle components - module.tvehicle.components.names = {"default"} - - module.ForEachCarComponent(function(mat,comp,hveh) - table.insert(module.tvehicle.components.names,comp.name) - end,true) - module.tvehicle.components.list = imgui.new['const char*'][#module.tvehicle.components.names](module.tvehicle.components.names) - - imgui.StrCopy(module.tvehicle.gxt_name,model_name) - - if module.tvehicle.first_person_camera.offsets[tostring(model)] == nil then - module.tvehicle.first_person_camera.offsets[tostring(model)] = - { - ["x"] = 0, - ["y"] = 0.1, - ["z"] = 0.6, - } - end - - module.tvehicle.first_person_camera.offset_x_var[0] = module.tvehicle.first_person_camera.offsets[tostring(model)]["x"] - module.tvehicle.first_person_camera.offset_y_var[0] = module.tvehicle.first_person_camera.offsets[tostring(model)]["y"] - module.tvehicle.first_person_camera.offset_z_var[0] = module.tvehicle.first_person_camera.offsets[tostring(model)]["z"] - - fcommon.CreateThread(module.AircraftCamera) - fcommon.CreateThread(module.FirstPersonCamera) - fcommon.CreateThread(module.RainbowColors) - fcommon.CreateThread(module.UnlimitedNitro) - - module.tvehicle.paintjobs.current_paintjob[0] = fconfig.Get(string.format("%d.paintjob",model),nil,module.tvehicle.paintjobs.save_data) or getCurrentVehiclePaintjob(hveh) - module.tvehicle.paintjobs.paintjobs_count = getNumAvailablePaintjobs(hveh) - - module.tvehicle.paintjobs.names = {"None"} - - for i=1,module.tvehicle.paintjobs.paintjobs_count,1 do - table.insert(module.tvehicle.paintjobs.names, string.format("Paintjob %d",i)) - end - - - if module.tvehicle.paintjobs.enable_saving[0] then - ApplyColor(true) - ApplyTexture(nil,true) - - if getNumAvailablePaintjobs(hveh) >= module.tvehicle.paintjobs.current_paintjob[0] then - giveVehiclePaintjob(hveh,module.tvehicle.paintjobs.current_paintjob[0]) - end - - local color = - { - fconfig.Get(string.format("tvehicle.paintjobs.save_data.%d.neon.red",model),0), - fconfig.Get(string.format("tvehicle.paintjobs.save_data.%d.neon.green",model),0), - fconfig.Get(string.format("tvehicle.paintjobs.save_data.%d.neon.blue",model),0) - } - InstallNeon(hveh,color) - end - - if module.tvehicle.components.enable_saving[0] then - for tmodel,table in pairs(module.tvehicle.components.save_data) do - if tmodel == tostring(model) then - for _,component in ipairs(table) do - module.AddComponentToVehicle(component,car,true) - end - break - end - end - end - - while isCharInCar(PLAYER_PED,hveh) do - wait(0) - end - - module.tvehicle.first_person_camera.offsets[tostring(model)].x = module.tvehicle.first_person_camera.offset_x_var[0] - module.tvehicle.first_person_camera.offsets[tostring(model)].y = module.tvehicle.first_person_camera.offset_y_var[0] - module.tvehicle.first_person_camera.offsets[tostring(model)].z = module.tvehicle.first_person_camera.offset_z_var[0] - module.tvehicle.max_velocity_temp[0] = -1 - end - wait(0) - end -end - -function DoorMenu(func) - local vehicle = getCarCharIsUsing(PLAYER_PED) - local seats = getMaximumNumberOfPassengers(vehicle) + 1 -- passenger + driver - - if seats == 4 then - doors = 5 - else - doors = 3 - end - if imgui.Button(module.tvehicle.doors[7],imgui.ImVec2(fcommon.GetSize(1))) then - for i=0,doors,1 do - func(vehicle,i) - end - end - for i=0,doors,1 do - if imgui.Button(module.tvehicle.doors[i+1],imgui.ImVec2(fcommon.GetSize(2))) then - func(vehicle,i) - end - if i%2 ~= 1 then - imgui.SameLine() - end - end - -end - -function module.UnlimitedNitro() - writeMemory(0x969165,1,0,true) -- ALl cars have nitro - writeMemory(0x96918B,1,0,true) -- All taxis have nitro - local hveh = getCarCharIsUsing(PLAYER_PED) - while isCharInCar(PLAYER_PED,hveh) and module.tvehicle.unlimited_nitro[0] and isThisModelACar(getCarModel(hveh)) do - - if isKeyDown(vkeys.VK_LBUTTON) then - module.AddComponentToVehicle(1010,hveh,true) - while isKeyDown(vkeys.VK_LBUTTON) do - wait(0) - end - module.RemoveComponentFromVehicle(1010,hveh,true) - end - - wait(0) - end -end - --------------------------------------------------- --- Main - -function module.VehicleMain() - if imgui.Button("Blow up cars",imgui.ImVec2(fcommon.GetSize(3))) then - callFunction(0x439D80,0,0) - fcommon.CheatActivated() - end - imgui.SameLine() - if imgui.Button("Fix vehicle",imgui.ImVec2(fcommon.GetSize(3))) then - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - fixCar(car) - fcommon.CheatActivated() - else - printHelpString("Player not in vehicle") - end - end - imgui.SameLine() - if imgui.Button("Flip vehicle",imgui.ImVec2(fcommon.GetSize(3))) then - - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - - setCarRoll(car,getCarRoll(car) + 180) - setCarRoll(car,getCarRoll(car)) -- rotation fix - fcommon.CheatActivated() - else - printHelpString("Player not in vehicle") - end - end - - if fcommon.BeginTabBar('VehiclesBar') then - if fcommon.BeginTabItem('Checkboxes') then - imgui.Columns(2,nil,false) - - fcommon.CheckBoxValue("Aggressive drivers",0x96914F) - fcommon.CheckBoxValue("Aim while driving",0x969179) - fcommon.CheckBoxValue("All cars have nitro",0x969165) - fcommon.CheckBoxValue("All taxis have nitro",0x96918B) - fcommon.CheckBoxValue("Boats fly",0x969153) - fcommon.CheckBox3Var("Car engine",module.tvehicle.car_engine,"Set to 'No changes' if you're using\ -mods which involve fuel systems") - fcommon.CheckBoxValue("Cars fly",0x969160) - fcommon.CheckBoxVar("Car heavy",module.tvehicle.heavy) - fcommon.CheckBoxValue("Decreased traffic",0x96917A) - fcommon.CheckBoxVar("Don't fall off bike",module.tvehicle.stay_on_bike) - fcommon.CheckBoxValue("Drive on water",0x969152) - if fcommon.CheckBoxVar("First person camera",module.tvehicle.first_person_camera.bool,nil, - function() - fcommon.InputFloat("Offset X", module.tvehicle.first_person_camera.offset_x_var,nil,-5,5,0.02) - fcommon.InputFloat("Offset Y", module.tvehicle.first_person_camera.offset_y_var,nil,-5,5,0.02) - fcommon.InputFloat("Offset Z", module.tvehicle.first_person_camera.offset_z_var,nil,-5,5,0.02) - end) then - fcommon.CreateThread(module.FirstPersonCamera) - end - if fcommon.CheckBoxVar("Fixed aircraft camera",module.tvehicle.aircraft.camera) then - fcommon.CreateThread(module.AircraftCamera) - end - fcommon.CheckBoxValue("Fixed train camera",5416239,nil,fconst.TRAIN_CAM_FIX.ON,fconst.TRAIN_CAM_FIX.OFF) - - imgui.NextColumn() - - fcommon.CheckBoxValue("Float away when hit",0x969166) - fcommon.CheckBoxValue("Green traffic lights",0x96914E) - if fcommon.CheckBoxVar("Invisible car",module.tvehicle.invisible_car) then - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - setCarVisible(car,not module.tvehicle.invisible_car[0]) - end - end - if fcommon.CheckBoxVar("Lights on",module.tvehicle.lights,nil,nil,false) then - if isCharInAnyCar(PLAYER_PED) then - local hveh = getCarCharIsUsing(PLAYER_PED) - if module.tvehicle.lights[0] then - forceCarLights(hveh,2) - addOneOffSound(x,y,z,1052) - fcommon.CheatActivated() - else - forceCarLights(hveh,1) - addOneOffSound(x,y,z,1053) - fcommon.CheatDeactivated() - end - else - printHelpString("Player ~r~not~w~ in car") - end - end - - if fcommon.CheckBoxVar("Lock doors",module.tvehicle.lock_doors,nil,nil,false) then - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - if getCarDoorLockStatus(car) == 4 then - lockCarDoors(car,1) - fcommon.CheatDeactivated() - else - lockCarDoors(car,4) - fcommon.CheatActivated() - end - else - printHelpString("Player ~r~not~w~ in car") - end - end - - fcommon.CheckBoxVar("No damage",module.tvehicle.no_damage) - if fcommon.CheckBoxVar("No traffic vehicles",module.tvehicle.no_vehicles) then - if module.tvehicle.no_vehicles[0] then - writeMemory(0x434237,1,0x73,false) -- change condition to unsigned (0-255) - writeMemory(0x434224,1,0,false) - writeMemory(0x484D19,1,0x83,false) -- change condition to unsigned (0-255) - writeMemory(0x484D17,1,0,false) - else - writeMemory(0x434237,1,-1063242627,false) -- change condition to unsigned (0-255) - writeMemory(0x434224,1,940431405,false) - writeMemory(0x484D19,1,292493,false) -- change condition to unsigned (0-255) - writeMemory(0x484D17,1,1988955949,false) - end - end - - fcommon.CheckBoxVar("No visual damage",module.tvehicle.visual_damage) - fcommon.CheckBoxValue("Perfect handling",0x96914C) - fcommon.CheckBoxValue("Tank mode",0x969164) - if fcommon.CheckBoxVar("Traffic neons",module.tvehicle.neon.checkbox,"Adds neon lights to traffic vehicles.\nOnly some vehicles will have them.") then - fcommon.CreateThread(fvehicle.TrafficNeons) - end - if fcommon.CheckBoxVar("Unlimited nitro",module.tvehicle.unlimited_nitro,"Nitro will activate when left clicked\n\nEnabling this would disable\nAll cars have nitro\nAll taxis have nitro") then - fcommon.CreateThread(module.UnlimitedNitro) - end - if fcommon.CheckBoxVar("Watertight car",module.tvehicle.watertight_car) then - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - setCarWatertight(car,module.tvehicle.watertight_car[0]) - end - end - fcommon.CheckBoxValue("Wheels only",0x96914B) - - imgui.Columns(1) - end - if fcommon.BeginTabItem('Menus') then - fcommon.DropDownMenu("Enter nearest vehicle as",function() - local vehicle = storeClosestEntities(PLAYER_PED) - if vehicle ~= -1 then - local seats = getMaximumNumberOfPassengers(vehicle) - imgui.Spacing() - imgui.Columns(2,nil,false) - imgui.Text(casts.CModelInfo.GetNameFromModel(getCarModel(vehicle))) - imgui.NextColumn() - imgui.Text(string.format("Total seats: %d",seats+1)) - imgui.Columns(1) - - imgui.Spacing() - if imgui.Button("Driver",imgui.ImVec2(fcommon.GetSize(2))) then - warpCharIntoCar(PLAYER_PED,vehicle) - end - for i=0,seats-1,1 do - if i%2 ~= 1 then - imgui.SameLine() - end - if imgui.Button("Passenger " .. tostring(i+1),imgui.ImVec2(fcommon.GetSize(2))) then - warpCharIntoCarAsPassenger(PLAYER_PED,vehicle,i) - end - end - else - imgui.Text("No near by vehicles") - end - end) - fcommon.DropDownMenu("License plate text",function() - imgui.InputText("Text", module.tvehicle.license_plate_text,ffi.sizeof(module.tvehicle.license_plate_text)) - fcommon.InformationTooltip("The text of vehicle license plate\nwhich you spawn using cheat-menu") - end) - - fcommon.DropDownMenu("Traffic options",function() - fcommon.RadioButtonAddress("Color",{"Black","Pink"},{0x969151,0x969150}) - imgui.Spacing() - fcommon.RadioButtonAddress("Type",{"Cheap","Country","Fast"},{0x96915E,0x96917B,0x96915F}) - end) - - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - local pCar = getCarPointer(car) - local model = getCarModel(car) - - fcommon.UpdateAddress({name = 'Density multiplier',address = 0x8A5B20,size = 4,min = 0,max = 10, default = 1,is_float = true}) - fcommon.UpdateAddress({name = 'Dirt level',address = pCar + 1200 ,size = 4,min = 0,max = 15, default = 7.5,is_float = true}) - fcommon.DropDownMenu("Doors",function() - if isCharInAnyCar(PLAYER_PED) and not (isCharOnAnyBike(PLAYER_PED) or isCharInAnyBoat(PLAYER_PED) - or isCharInAnyHeli(PLAYER_PED) or isCharInAnyPlane(PLAYER_PED)) then - imgui.Columns(2,nil,false) - imgui.RadioButtonIntPtr("Damage", module.tvehicle.door_menu_button,0) - imgui.RadioButtonIntPtr("Fix", module.tvehicle.door_menu_button,1) - imgui.NextColumn() - imgui.RadioButtonIntPtr("Open", module.tvehicle.door_menu_button,2) - imgui.RadioButtonIntPtr("Pop", module.tvehicle.door_menu_button,3) - imgui.Columns(1) - - imgui.Spacing() - - if module.tvehicle.door_menu_button[0] == 0 then - if module.tvehicle.visual_damage[0] == false then - DoorMenu(function(vehicle,door) - damageCarDoor(vehicle,door) - end) - else - imgui.Text("No visual damage enabled") - end - end - if module.tvehicle.door_menu_button[0] == 1 then - DoorMenu(function(vehicle,door) - fixCarDoor(vehicle,door) - end) - end - if module.tvehicle.door_menu_button[0] == 2 then - DoorMenu(function(vehicle,door) - openCarDoor(vehicle,door) - end) - end - if module.tvehicle.door_menu_button[0] == 3 then - DoorMenu(function(vehicle,door) - popCarDoor(vehicle,door,true) - end) - end - else - imgui.Text("Player not in car") - end - - end) - fcommon.DropDownMenu("Set name",function() - - imgui.Text(string.format( "Model name = %s",casts.CModelInfo.GetNameFromModel(getCarModel(car)))) - imgui.Spacing() - imgui.InputText("Name", module.tvehicle.gxt_name,ffi.sizeof(module.tvehicle.gxt_name)) - - imgui.Spacing() - if imgui.Button("Set",imgui.ImVec2(fcommon.GetSize(3))) then - setGxtEntry(casts.CModelInfo.GetNameFromModel(getCarModel(car)),ffi.string(module.tvehicle.gxt_name)) - fcommon.CheatActivated() - end - imgui.SameLine() - if imgui.Button("Save",imgui.ImVec2(fcommon.GetSize(3))) then - module.tvehicle.gxt_name_table[casts.CModelInfo.GetNameFromModel(getCarModel(car))] = ffi.string(module.tvehicle.gxt_name) - end - imgui.SameLine() - if imgui.Button("Clear all",imgui.ImVec2(fcommon.GetSize(3))) then - module.tvehicle.gxt_name_table = {} - end - end) - fcommon.DropDownMenu("Set speed",function() - - fcommon.CheckBoxVar("Lock speed",module.tvehicle.lock_speed) - imgui.Spacing() - imgui.InputInt("Set",module.tvehicle.speed) - - imgui.Spacing() - if imgui.Button("Set speed##brn",imgui.ImVec2(fcommon.GetSize(2))) then - if isCharInAnyCar(PLAYER_PED) then - car = getCarCharIsUsing(PLAYER_PED) - setCarForwardSpeed(car,module.tvehicle.speed[0]) - end - end - imgui.SameLine() - if imgui.Button("Instant stop",imgui.ImVec2(fcommon.GetSize(2))) then - if isCharInAnyCar(PLAYER_PED) then - car = getCarCharIsUsing(PLAYER_PED) - setCarForwardSpeed(car,0.0) - end - end - if module.tvehicle.speed[0] > 500 then - module.tvehicle.speed[0] = 500 - end - if module.tvehicle.speed[0] < 0 then - module.tvehicle.speed[0] = 0 - end - end) - fcommon.UpdateAddress({name = 'Wheel scale',address = pCar+0x458,size = 4,min = 0,max = 10, default = 1,is_float = true}) - end - end - if fcommon.BeginTabItem('Spawn') then - imgui.Columns(2,nil,false) - fcommon.CheckBoxVar("Spawn inside",module.tvehicle.spawn_inside,"Spawn inside vehicle as driver") - - imgui.NextColumn() - fcommon.CheckBoxVar("Spawn aircraft in air",module.tvehicle.aircraft.spawn_in_air) - imgui.Columns(1) - - imgui.Dummy(imgui.ImVec2(0,10)) - fcommon.DrawEntries(fconst.IDENTIFIER.VEHICLE,fconst.DRAW_TYPE.IMAGE,module.GiveVehicleToPlayer,nil,casts.CModelInfo.GetNameFromModel,module.tvehicle.images,fconst.VEHICLE.IMAGE_HEIGHT,fconst.VEHICLE.IMAGE_WIDTH) - - end - if fcommon.BeginTabItem('Paint') then - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - local model = getCarModel(car) - - if imgui.Button("Reset color",imgui.ImVec2(fcommon.GetSize(2))) then - - module.ForEachCarComponent(function(mat,comp,car) - mat:reset_color() - end) - module.tvehicle.color.default = -1 - printHelpString("Color reset") - end - imgui.SameLine() - if imgui.Button("Reset texture",imgui.ImVec2(fcommon.GetSize(2))) then - fconfig.tconfig.temp_texture_name = nil - module.ForEachCarComponent(function(mat,comp,car) - mat:reset_texture() - end) - module.tvehicle.paintjobs.texture = nil - printHelpString("Texture reset") - end - - imgui.Spacing() - imgui.Columns(2,nil,false) - if fcommon.CheckBoxVar("Enable saving",module.tvehicle.paintjobs.enable_saving,"Save and load vehicle paint data.\nApplies for all vehicles of this model.") then - if module.tvehicle.paintjobs.enable_saving[0] then - ApplyColor(true) - end - end - fcommon.CheckBoxVar("Material filter",module.tvehicle.apply_material_filter,"Filters material while applying color/ texture\nDisable if something doesn't work properly") - imgui.NextColumn() - if fcommon.CheckBoxVar("Rainbow colors",module.tvehicle.rainbow_colors.bool,"Rainbow color effect on players vehicle", - function() - if fcommon.CheckBoxVar("Apply for traffic",module.tvehicle.rainbow_colors.traffic,"Rainbow color effect on traffic vehicles") then - fcommon.CreateThread(module.RainbowColors) - end - imgui.Dummy(imgui.ImVec2(0,20)) - imgui.SliderFloat("Speed",module.tvehicle.rainbow_colors.speed,0,2) - end) then - fcommon.CreateThread(module.RainbowColors) - end - - if fcommon.CheckBoxVar("Rainbow neons",module.tvehicle.rainbow_neons.bool,"Rainbow neon effect on players vehicle", - function() - fcommon.CheckBoxVar("Apply for traffic",module.tvehicle.rainbow_neons.traffic,"Rainbow neon effect on traffic vehicles", - function() - fcommon.CreateThread(module.RainbowNeons) - end) - imgui.Dummy(imgui.ImVec2(0,20)) - imgui.SliderFloat("Speed",module.tvehicle.rainbow_neons.speed,0,2) - end) then - fcommon.CreateThread(module.RainbowNeons) - end - imgui.Columns(1) - imgui.Spacing() - - if imgui.ColorEdit3("Color",module.tvehicle.color.rgb) then - ApplyColor() - end - fcommon.ConfigPanel("Color",function() - if isCharInAnyCar(PLAYER_PED) then - fcommon.CheckBoxVar("Show all carcol colors", module.tvehicle.color.show_all) - imgui.Spacing() - local car = getCarCharIsUsing(PLAYER_PED) - local name = casts.CModelInfo.GetNameFromModel(getCarModel(car)) - - local shown_colors = {} - imgui.Text("Color:") - imgui.Spacing() - imgui.Columns(2,nil,false) - imgui.RadioButtonIntPtr("Primary", module.tvehicle.color.radio_btn, 1) - imgui.RadioButtonIntPtr("Secondary", module.tvehicle.color.radio_btn, 2) - imgui.NextColumn() - imgui.RadioButtonIntPtr("Tertiary", module.tvehicle.color.radio_btn, 3) - imgui.RadioButtonIntPtr("Quaternary", module.tvehicle.color.radio_btn, 4) - imgui.Spacing() - imgui.Columns(1) - imgui.Text("Select color preset:") - imgui.Spacing() - - if imgui.BeginChild("Colors") then - local x,y = fcommon.GetSize(1) - local btns_in_row = math.floor(imgui.GetWindowContentRegionWidth()/(y*2)) - local btn_size = (imgui.GetWindowContentRegionWidth() - imgui.StyleVar.ItemSpacing*(btns_in_row-0.75*btns_in_row))/btns_in_row - local btn_count = 1 - - func = function(v) - if not shown_colors[v] then - local t = {} - local k = 1 - - for i in string.gmatch(module.tvehicle.color.col_data_table[v+1],"%w+") do - table.insert( t,tonumber(i)) - end - - if imgui.ColorButton("Color " .. tostring(v),imgui.ImVec4(t[1]/255,t[2]/255,t[3]/255,255),0,imgui.ImVec2(btn_size,btn_size)) then - writeMemory(getCarPointer(car) + 1075 + module.tvehicle.color.radio_btn[0],1,tonumber(v),false) - module.ForEachCarComponent(function(mat,comp,car) - mat:reset_color() - end) - end - if imgui.IsItemHovered() then - local drawlist = imgui.GetWindowDrawList() - drawlist:AddRectFilled(imgui.GetItemRectMin(), imgui.GetItemRectMax(), imgui.GetColorU32(imgui.Col.ModalWindowDimBg)) - end - shown_colors[v] = true - if btn_count % btns_in_row ~= 0 then - imgui.SameLine(0.0,4.0) - end - btn_count = btn_count + 1 - end - end - - if module.tvehicle.color.show_all[0] then - for v=0,(#module.tvehicle.color.col_data_table-1),1 do - func(v) - end - else - if module.tvehicle.color.car_data_table[name] ~= nil then - for k,v in ipairs(module.tvehicle.color.car_data_table[name]) do - func(v) - end - end - end - imgui.EndChild() - end - end - - end) - - imgui.Combo("Component",module.tvehicle.components.selected,module.tvehicle.components.list,#module.tvehicle.components.names) - - if imgui.ColorEdit3("Neons",module.tvehicle.neon.rgb) then - InstallNeon(car,{module.tvehicle.neon.rgb[0]*255,module.tvehicle.neon.rgb[1]*255,module.tvehicle.neon.rgb[2]*255}) - end - - if module.tvehicle.paintjobs.paintjobs_count > 0 then - - if fcommon.HorizontalSelector("Paintjob",module.tvehicle.paintjobs.current_paintjob, - module.tvehicle.paintjobs.names) then - if module.tvehicle.paintjobs.current_paintjob[0] >= -1 and module.tvehicle.paintjobs.current_paintjob[0] <= module.tvehicle.paintjobs.paintjobs_count then - giveVehiclePaintjob(car,module.tvehicle.paintjobs.current_paintjob[0]) - - if module.tvehicle.paintjobs.enable_saving[0] then - fconfig.Set(module.tvehicle.paintjobs.save_data,string.format("%d.paintjob",model),module.tvehicle.paintjobs.current_paintjob[0]) - end - end - end - end - fcommon.DrawEntries(fconst.IDENTIFIER.PAINTJOB,fconst.DRAW_TYPE.IMAGE,ApplyTexture,nil,module.GetTextureName,module.tvehicle.paintjobs.images,fconst.VEHICLE.IMAGE_HEIGHT,fconst.VEHICLE.IMAGE_WIDTH) - else - imgui.TextWrapped("Player needs to be inside a vehicle for options to show up here.") - end - end - if fcommon.BeginTabItem('Tune') then - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - local model = getCarModel(car) - - if imgui.Button("Reset vehicle components",imgui.ImVec2(fcommon.GetSize(1))) then - for x=1,fconst.COMPONENT.TOTAL_SLOTS,1 do - local comp_model = getCurrentCarMod(car,x) - - if comp_model ~= -1 then - module.RemoveComponentFromVehicle(comp_model,car,true) - end - end - printHelpString("Vehicle components reset") - end - - if fcommon.CheckBoxVar("Enable saving",module.tvehicle.components.enable_saving,"Save and load vehicle tune data.\nApplies for all vehicles of this model.") then - if module.tvehicle.components.enable_saving[0] then - for tmodel,table in pairs(module.tvehicle.components.save_data) do - if tmodel == tostring(model) then - for _,component in ipairs(table) do - module.AddComponentToVehicle(component,car,true) - end - break - end - end - end - end - imgui.Dummy(imgui.ImVec2(0,10)) - fcommon.DrawEntries(fconst.IDENTIFIER.COMPONENT,fconst.DRAW_TYPE.IMAGE,module.AddComponentToVehicle, - function(component) - if imgui.MenuItemBool("Remove component") then - module.RemoveComponentFromVehicle(component) - end - end,function(a) return a end,module.tvehicle.components.images,fconst.COMPONENT.IMAGE_HEIGHT,fconst.COMPONENT.IMAGE_WIDTH) - - else - imgui.TextWrapped("Player needs to be inside a vehicle for options to show up here.") - end - end - if fcommon.BeginTabItem('Handling') then - if isCharInAnyCar(PLAYER_PED) then - local car = getCarCharIsUsing(PLAYER_PED) - local model = getCarModel(car) - - ------------------------------------------------------- - local phandling = readMemory((casts.CModelInfo.ms_modelInfoPtrs[model] + 0x4A),2,false) --m_nHandlingId - phandling = phandling * 0xE0 - phandling = phandling + 0xC2B9DC - - if module.tvehicle.max_velocity_temp[0] == -1 then - local velocity = memory.getfloat(phandling + 0x84) - velocity = velocity*206 + (velocity-0.918668)*1501 - module.tvehicle.max_velocity_temp[0] = velocity - end - - if imgui.Button("Reset handling",imgui.ImVec2(fcommon.GetSize(3))) then - local cHandlingDataMgr = readMemory(0x05BFA96,4,false) - callMethod(0x5BD830,cHandlingDataMgr,0,0) - printHelpString("Handling reset") - end - imgui.SameLine() - if imgui.Button("Save to file",imgui.ImVec2(fcommon.GetSize(3))) then - local name = module.tvehicle.handling_name[model] - local fMass = memory.getfloat(phandling + 0x4) - local fTurnMass = memory.getfloat(phandling + 0xC) - local fDragMult = memory.getfloat(phandling + 0x10) - local CentreOfMassX = memory.getfloat(phandling + 0x14) - local CentreOfMassY = memory.getfloat(phandling + 0x18) - local CentreOfMassZ = memory.getfloat(phandling + 0x1C) - local nPercentSubmerged = memory.read(phandling + 0x20,4) - local fTractionMultiplier = memory.getfloat(phandling + 0x28) - local fTractionLoss = memory.getfloat(phandling + 0xA4) - local TractionBias = memory.getfloat(phandling + 0xA8) - local nNumberOfGears= memory.read(phandling + 0x76,1) - local fMaxVelocity = module.tvehicle.max_velocity_temp[0] --memory.getfloat(phandling + 0x84) - --fMaxVelocity = fMaxVelocity*206 + (fMaxVelocity-0.918668)*1501 - local fEngineAcceleration = memory.getfloat(phandling + 0x7C)*12500 - local fEngineInertia = memory.getfloat(phandling + 0x80) - local nDriveType = memory.tostring(phandling + 0x74,1) - local nEngineType = memory.tostring(phandling + 0x75,1) - local BrakeDeceleration = memory.getfloat(phandling + 0x94)*2500 - local BrakeBias = memory.getfloat(phandling + 0x98) - local ABS = memory.read(phandling + 0x9C,1) - local SteeringLock = memory.getfloat(phandling + 0xA0) - local SuspensionForceLevel = memory.getfloat(phandling + 0xAC) - local SuspensionDampingLevel = memory.getfloat(phandling + 0xB0) - local SuspensionHighSpdComDamp = memory.getfloat(phandling + 0xB4) - local Suspension_upper_limit = memory.getfloat(phandling + 0xB8) - local Suspension_lower_limit = memory.getfloat(phandling + 0xBC) - local Suspension_bias = memory.getfloat(phandling + 0xC0) - local Suspension_anti_dive_multiplier = memory.getfloat(phandling + 0xC4) - local fSeatOffsetDistance = memory.getfloat(phandling + 0xD4) - local fCollisionDamageMultiplier = memory.getfloat(phandling + 0xC8)*0.338 - local nMonetaryValue = memory.read(phandling + 0xD8,4) - local modelFlags = string.format('%x',memory.read(phandling + 0xCC,4)) - local handlingFlags = string.format('%x',memory.read(phandling + 0xD0,4)) - local front_lights = memory.read(phandling + 0xDC,1) - local rear_lights = memory.read(phandling + 0xDD,1) - local vehicle_anim_group = memory.read(phandling + 0xDE,1) - - - local file = io.open(getGameDirectory() .. "/handling.txt","a+") - local data = string.format("\n%s\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%d\t%d\t%.5g\t%.5g\t%s\t%s\t%.5g\t%.5g\t%d\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%.5g\t%d\t%s\t%s\t%d\t%d\t%d", - name,fMass,fTurnMass,fDragMult,CentreOfMassX,CentreOfMassY,CentreOfMassZ,nPercentSubmerged,fTractionMultiplier,fTractionLoss,TractionBias,nNumberOfGears, - fMaxVelocity,fEngineAcceleration,fEngineInertia,tostring(nDriveType),nEngineType,BrakeDeceleration,BrakeBias,ABS,SteeringLock,SuspensionForceLevel,SuspensionDampingLevel, - SuspensionHighSpdComDamp,Suspension_upper_limit,Suspension_lower_limit,Suspension_bias,Suspension_anti_dive_multiplier,fSeatOffsetDistance, - fCollisionDamageMultiplier,nMonetaryValue,tostring(modelFlags),tostring(handlingFlags),front_lights,rear_lights,vehicle_anim_group) - file:write(data) - file:close() - printHelpString("Data saved") - end - imgui.SameLine() - if imgui.Button("Read more",imgui.ImVec2(fcommon.GetSize(3))) then - os.execute('explorer "https://projectcerbera.com/gta/sa/tutorials/handling"') - end - - imgui.Spacing() - if imgui.BeginChild("Handling") then - fcommon.RadioButtonAddressEx("ABS",{"On","Off"},{1.0,0.0},phandling + 0x9C,false) - fcommon.UpdateAddress({name = 'Anti dive multiplier',address = phandling + 0xC4 ,size = 4,min = 0,max = 1,is_float = true,cvalue = 0.01, save = false}) - fcommon.UpdateAddress({name = 'Brake bias',address = phandling + 0x98 ,size = 4,min = 0,max = 1,is_float = true,cvalue = 0.01, save = false}) - fcommon.UpdateAddress({name = 'Brake deceleration',address = phandling + 0x94 ,size = 4,min = 0.1,max = 20,is_float = true,mul = 2500,cvalue = 0.1, save = false}) - fcommon.UpdateAddress({name = 'Centre of mass X',address = phandling + 0x14 ,size = 1,min = -10.0,max = 10.0,is_float = true,cvalue = 0.05, save = false}) - fcommon.UpdateAddress({name = 'Centre of mass Y',address = phandling + 0x18 ,size = 1,min = -10.0,max = 10.0,is_float = true,cvalue = 0.05, save = false}) - fcommon.UpdateAddress({name = 'Centre of mass Z',address = phandling + 0x1C ,size = 1,min = -10.0,max = 10.0,is_float = true,cvalue = 0.05, save = false}) - fcommon.UpdateAddress({name = 'Collision damage multiplier',address = phandling + 0xC8,size = 4,min = 0,max = 1,is_float = true,cvalue = 0.01,mul = 0.3381, save = false}) - fcommon.UpdateAddress({name = 'Damping level',address = phandling + 0xB0 ,size = 4,is_float = true,cvalue = 0.01, save = false}) - fcommon.UpdateAddress({name = 'Drag mult',address = phandling + 0x10 ,size = 4,min = 0,max = 30.0,is_float = true, save = false}) - fcommon.RadioButtonAddressEx("Drive type",{"Front wheel drive","Rear wheel drive","Four wheel drive"},{70,82,52},phandling + 0x74,false) - fcommon.UpdateAddress({name = 'Engine acceleration',address = phandling + 0x7C ,size = 4,min = 0,max = 49,is_float = true,mul = 12500, save = false}) - fcommon.UpdateAddress({name = 'Engine inertia',address = phandling + 0x80 ,size = 4,min = 0,max = 400,is_float = true, save = false}) - fcommon.RadioButtonAddressEx("Engine type",{"Petrol","Diseal","Electric"},{80,68,69},phandling + 0x75,false) - fcommon.RadioButtonAddressEx("Front lights",{"Long","Small","Big","Tall"},{0,1,2,3},phandling + 0xDC,false) - fcommon.UpdateAddress({name = 'Force level',address = phandling + 0xAC ,size = 4,is_float = true,cvalue = 0.1, save = false}) - fcommon.UpdateBits("Handling flags",module.tvehicle.handling_flags,phandling + 0xD0,4) - fcommon.UpdateAddress({name = 'High speed damping',address = phandling + 0xB4 ,size = 4,is_float = true,cvalue = 0.1, save = false}) - fcommon.UpdateAddress({name = 'Lower limit',address = phandling + 0xBC ,size = 4,min = -1,max = 1,is_float = true,cvalue = 0.01, save = false}) - fcommon.UpdateAddress({name = 'Mass',address = phandling + 0x4 ,size = 4,min = 1,max = 50000,is_float = true, save = false}) - - -- fcommon.UpdateAddress({name = 'Max velocity',address = phandling + 0x84 ,size = 4,min = 0,max = 2,is_float = true,cvalue = 0.01 , save = false}) - fcommon.DropDownMenu("Max velocity",function() - imgui.Text("Info") - fcommon.InformationTooltip("Due to an issue, any changes made here won't\nbe applied in game. You can still generate your\ -data file with these values changed here") - imgui.Columns(2,nil,false) - imgui.Text("Minimum = 0") - imgui.NextColumn() - imgui.Text("Maximum = 500") - imgui.Columns(1) - imgui.Spacing() - - imgui.InputInt("Set##MaxVelocity",module.tvehicle.max_velocity_temp) - - if imgui.Button("Minimum##MaxVelocity",imgui.ImVec2(fcommon.GetSize(3))) then - module.tvehicle.max_velocity_temp[0] = 0 - end - - imgui.SameLine() - if imgui.Button("Default##MaxVelocity",imgui.ImVec2(fcommon.GetSize(3))) then - local fMaxVelocity = memory.getfloat(phandling + 0x84) - fMaxVelocity = fMaxVelocity*206 + (fMaxVelocity-0.918668)*1501 - module.tvehicle.max_velocity_temp[0] = math.floor(fMaxVelocity) - end - - imgui.SameLine() - if imgui.Button("Maximum##MaxVelocity",imgui.ImVec2(fcommon.GetSize(3))) then - module.tvehicle.max_velocity_temp[0] = 500 - end - - if module.tvehicle.max_velocity_temp[0] > 500 then - module.tvehicle.max_velocity_temp[0] = 500 - end - - if module.tvehicle.max_velocity_temp[0] < 0 then - module.tvehicle.max_velocity_temp[0] = 0 - end - end) - - fcommon.UpdateBits("Model flags",module.tvehicle.model_flags,phandling + 0xCC,4) - fcommon.UpdateAddress({name = 'Monetary value',address = phandling + 0xD8 ,size = 4, save = false}) - fcommon.UpdateAddress({name = 'Number of gears',address = phandling + 0x76 ,size = 1,min = 1,max = 10, save = false}) - fcommon.UpdateAddress({name = 'Percent submerged',address = phandling + 0x20 ,size = 1,min = 10,max = 120, save = false}) - fcommon.RadioButtonAddressEx("Rear lights",{"Long","Small","Big","Tall"},{0,1,2,3},phandling + 0xDD,false) - fcommon.UpdateAddress({name = 'Seat offset distance',address = phandling + 0xD4 ,size = 4,min = 0,max = 1,is_float = true,cvalue = 0.01, save = false}) - fcommon.UpdateAddress({name = 'Steering lock',address = phandling + 0xA0 ,size = 4,min = 10,max = 50,is_float = true, save = false}) - fcommon.UpdateAddress({name = 'Suspension bias',address = phandling + 0xC0 ,size = 4,min = 0,max = 1,is_float = true,cvalue = 0.01, save = false}) - fcommon.UpdateAddress({name = 'Traction bias',address = phandling + 0xA8 ,size = 4,min = 0,max = 1,is_float = true,cvalue = 0.01, save = false}) - fcommon.UpdateAddress({name = 'Traction loss',address = phandling + 0xA4 ,size = 4,min = 0,max = 1,is_float = true,cvalue = 0.01, save = false}) - fcommon.UpdateAddress({name = 'Traction multiplier',address = phandling + 0x28 ,size = 4,min = 0.5,max = 2,is_float = true,cvalue = 0.05, save = false}) - fcommon.UpdateAddress({name = 'Turn mass',address = phandling + 0xC ,size = 4,min = 20,is_float = true, save = false}) - fcommon.UpdateAddress({name = 'Upper limit',address = phandling + 0xB8 ,size = 4,min = -1,max = 1,is_float = true,cvalue = 0.01, save = false}) - fcommon.UpdateAddress({name = 'Vehicle anim group',address = phandling + 0xDE ,size = 1, save = false}) - imgui.EndChild() - end - else - imgui.TextWrapped("Player needs to be inside a vehicle for options to show up here.") - end - end - fcommon.EndTabBar() - end -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/visual.lua b/moonloader/lib/cheat-menu/modules/visual.lua deleted file mode 100644 index 0d25507..0000000 --- a/moonloader/lib/cheat-menu/modules/visual.lua +++ /dev/null @@ -1,503 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} -module.tvisual = -{ - car_names = imgui.new.bool(true), - disable_motion_blur = imgui.new.bool(fconfig.Get('tvisual.disable_motion_blur',false)), - lock_weather = imgui.new.bool(fconfig.Get('tvisual.lock_weather',false)), - radio_channel_names = imgui.new.bool(fconfig.Get('tvisual.radio_channel_names',true)), - timecyc = - { timecyc_24_plugin = getModuleHandle("timecycle24"), - ambient = imgui.new.float[3](), - ambient_obj = imgui.new.float[3](), - sky_top = imgui.new.float[3](), - sky_bottom = imgui.new.float[3](), - sun_core = imgui.new.float[3](), - sun_corona = imgui.new.float[3](), - sun_size = imgui.new.int(), - sprite_size = imgui.new.int(), - sprite_brightness = imgui.new.int(), - shadow_strength = imgui.new.int(), - light_shadow_strength = imgui.new.int(), - pole_shadow_strength = imgui.new.int(), - far_clip = imgui.new.int(), - fog_start = imgui.new.int(), - lights_on_ground_brightness = imgui.new.int(), - low_clouds = imgui.new.float[3](), - fluffy_clouds = imgui.new.float[3](), - water = imgui.new.float[4](), - postfx1 = imgui.new.float[4](), - postfx2 = imgui.new.float[4](), - cloud_alpha = imgui.new.int(), - waterfog_alpha = imgui.new.int(), - high_light_min_intensity= imgui.new.int(), - directional_mult = imgui.new.int(), - weather = - { - names = - { - "EXTRASUNNY LA", - "SUNNY LA", - "EXTRASUNNY SMOG LA", - "SUNNY SMOG LA", - "CLOUDY LA", - "SUNNY SF", - "EXTRASUNNY SF", - "CLOUDY SF", - "RAINY SF", - "FOGGY SF", - "SUNNY VEGAS", - "EXTRASUNNY VEGAS", - "CLOUDY VEGAS", - "EXTRASUNNY COUNTRYSIDE", - "SUNNY COUNTRYSIDE", - "CLOUDY COUNTRYSIDE", - "RAINY COUNTRYSIDE", - "EXTRASUNNY DESERT", - "SUNNY DESERT", - "SANDSTORM DESERT", - "UNDERWATER", - "EXTRACOLOURS 1", - "EXTRACOLOURS 2" - }, - array = {}, - }, - }, - zone_names = imgui.new.bool(true), -} - -module.tvisual.timecyc.weather.array = imgui.new['const char*'][#module.tvisual.timecyc.weather.names](module.tvisual.timecyc.weather.names) - -function module.LockWeather() - local weather = casts.CTimeCyc.curr_weather[0] - while module.tvisual.lock_weather[0] do - casts.CTimeCyc.curr_weather[0] = weather - casts.CTimeCyc.next_weather[0] = weather - wait(0) - end -end - -function GetCurrentHourTimeId(hour) - - local h = casts.CTimeCyc.hours[0] - - if hour == 24 then - return h - end - - if h < 5 then return 0 end - if h == 5 then return 1 end - if h == 6 then return 2 end - - if 7 <= h and h < 12 then return 3 end - if 12 <= h and h < 19 then return 4 end - - if h == 19 then return 5 end - if h == 20 or h == 21 then return 6 end - if h == 22 or h == 23 then return 7 end -end - -function UpdateTimecycData(val) - - module.tvisual.timecyc.ambient[0] = casts.CTimeCyc.ambient_red[val]/255 - module.tvisual.timecyc.ambient[1] = casts.CTimeCyc.ambient_green[val]/255 - module.tvisual.timecyc.ambient[2] = casts.CTimeCyc.ambient_blue[val]/255 - - module.tvisual.timecyc.ambient_obj[0] = casts.CTimeCyc.ambient_obj_red[val]/255 - module.tvisual.timecyc.ambient_obj[1] = casts.CTimeCyc.ambient_obj_green[val]/255 - module.tvisual.timecyc.ambient_obj[2] = casts.CTimeCyc.ambient_obj_blue[val]/255 - - module.tvisual.timecyc.sky_top[0] = casts.CTimeCyc.sky_top_red[val]/255 - module.tvisual.timecyc.sky_top[1] = casts.CTimeCyc.sky_top_green[val]/255 - module.tvisual.timecyc.sky_top[2] = casts.CTimeCyc.sky_top_blue[val]/255 - - module.tvisual.timecyc.sky_bottom[0] = casts.CTimeCyc.sky_bottom_red[val]/255 - module.tvisual.timecyc.sky_bottom[1] = casts.CTimeCyc.sky_bottom_green[val]/255 - module.tvisual.timecyc.sky_bottom[2] = casts.CTimeCyc.sky_bottom_blue[val]/255 - - module.tvisual.timecyc.sun_core[0] = casts.CTimeCyc.sun_core_red[val]/255 - module.tvisual.timecyc.sun_core[1] = casts.CTimeCyc.sun_core_green[val]/255 - module.tvisual.timecyc.sun_core[2] = casts.CTimeCyc.sun_core_blue[val]/255 - - module.tvisual.timecyc.sun_corona[0] = casts.CTimeCyc.sun_corona_red[val]/255 - module.tvisual.timecyc.sun_corona[1] = casts.CTimeCyc.sun_corona_green[val]/255 - module.tvisual.timecyc.sun_corona[2] = casts.CTimeCyc.sun_corona_blue[val]/255 - - module.tvisual.timecyc.sun_size[0] = casts.CTimeCyc.sun_size[val] - - module.tvisual.timecyc.sprite_brightness[0] = casts.CTimeCyc.sprite_brightness[val] - module.tvisual.timecyc.sprite_size[0] = casts.CTimeCyc.sprite_size[val] - - module.tvisual.timecyc.shadow_strength[0] = casts.CTimeCyc.shadow_strength[val] - module.tvisual.timecyc.light_shadow_strength[0] = casts.CTimeCyc.light_shadow_strength[val] - module.tvisual.timecyc.pole_shadow_strength[0] = casts.CTimeCyc.pole_shadow_strength[val] - - module.tvisual.timecyc.fog_start[0] = casts.CTimeCyc.fog_start[val] - module.tvisual.timecyc.far_clip[0] = casts.CTimeCyc.far_clip[val] - module.tvisual.timecyc.lights_on_ground_brightness[0] = casts.CTimeCyc.lights_on_ground_brightness[val] - - module.tvisual.timecyc.low_clouds[0] = casts.CTimeCyc.low_clouds_red[val]/255 - module.tvisual.timecyc.low_clouds[1] = casts.CTimeCyc.low_clouds_green[val]/255 - module.tvisual.timecyc.low_clouds[2] = casts.CTimeCyc.low_clouds_blue[val]/255 - - module.tvisual.timecyc.fluffy_clouds[0] = casts.CTimeCyc.fluffy_clouds_red[val]/255 - module.tvisual.timecyc.fluffy_clouds[1] = casts.CTimeCyc.fluffy_clouds_green[val]/255 - module.tvisual.timecyc.fluffy_clouds[2] = casts.CTimeCyc.fluffy_clouds_blue[val]/255 - - module.tvisual.timecyc.water[0] = casts.CTimeCyc.water_red[val]/255 - module.tvisual.timecyc.water[1] = casts.CTimeCyc.water_green[val]/255 - module.tvisual.timecyc.water[2] = casts.CTimeCyc.water_blue[val]/255 - module.tvisual.timecyc.water[3] = casts.CTimeCyc.water_alpha[val]/255 - - module.tvisual.timecyc.postfx1[0] = casts.CTimeCyc.postfx1_red[val]/255 - module.tvisual.timecyc.postfx1[1] = casts.CTimeCyc.postfx1_green[val]/255 - module.tvisual.timecyc.postfx1[2] = casts.CTimeCyc.postfx1_blue[val]/255 - module.tvisual.timecyc.postfx1[3] = casts.CTimeCyc.postfx1_alpha[val]/255 - - module.tvisual.timecyc.postfx2[0] = casts.CTimeCyc.postfx2_red[val]/255 - module.tvisual.timecyc.postfx2[1] = casts.CTimeCyc.postfx2_green[val]/255 - module.tvisual.timecyc.postfx2[2] = casts.CTimeCyc.postfx2_blue[val]/255 - module.tvisual.timecyc.postfx2[3] = casts.CTimeCyc.postfx2_alpha[val]/255 - - module.tvisual.timecyc.cloud_alpha[0] = casts.CTimeCyc.cloud_alpha[val] - module.tvisual.timecyc.waterfog_alpha[0] = casts.CTimeCyc.waterfog_alpha[val] - module.tvisual.timecyc.high_light_min_intensity[0] = casts.CTimeCyc.high_light_min_intensity[val] - module.tvisual.timecyc.directional_mult[0] = casts.CTimeCyc.directional_mult[val] -end - -function GenerateTimecycFile(hour) - - local file = io.open(getGameDirectory().."/timecyc.dat", "w") - if hour == 24 then - file = io.open(getGameDirectory().."/timecyc_24h.dat", "w") - end - - for i=0,(#module.tvisual.timecyc.weather.names-1),1 do - file:write("\n\n//////////// " .. module.tvisual.timecyc.weather.names[i+1].. "\n") - - file:write("//\tAmb\t\t\t\t\tAmb Obj \t\t\t\tDir \t\t\t\t\tSky top\t\t\t\tSky bot\t\t\t\tSunCore\t\t\t\t\tSunCorona\t\t\tSunSz\tSprSz\tSprBght\t\tShdw\tLightShd\tPoleShd\t\tFarClp\t\tFogSt\tLightOnGround\tLowCloudsRGB\tBottomCloudRGB\t\tWaterRGBA\t\t\t\tARGB1\t\t\t\t\tARGB2\t\t\tCloudAlpha\t\tIntensityLimit\t\tWaterFogAlpha\tDirMult \n\n") - - for j=0,(hour-1),1 do - - if hour == 24 then - if (j >= 12) then - file:write(string.format("// %s PM\n",j)) - else - file:write(string.format("// %s AM\n",j)) - end - else - if j == 0 then file:write("// Midnight\n") end - if j == 1 then file:write("// 5 AM\n") end - if j == 2 then file:write("// 6 AM\n") end - if j == 3 then file:write("// 7 AM\n") end - if j == 4 then file:write("// Midday\n") end - if j == 5 then file:write("// 7 PM\n") end - if j == 6 then file:write("// 8 PM\n") end - if j == 7 then file:write("// 10 PM\n") end - end - - local val = 23 * j + i - - file:write( - string.format( - "\t%d %d %d \t\t" .. -- AmbRGB - "\t%d %d %d \t\t" .. -- AmbObjRGB - "\t%d %d %d \t\t" .. -- DirRGB (unused?) - "\t%d %d %d \t\t" .. -- SkyTopRGB - "\t%d %d %d \t\t" .. -- SkyBotRGB - "\t%d %d %d \t\t" .. -- SunCore RGB - "\t%d %d %d \t\t" .. -- SunCorona RGB - "\t%.1f\t\t%.1f\t\t%.1f\t\t" .. -- SunSz, SpriteSz, SpriteBrightness - "\t%d \t%d \t\t\t%d\t\t" .. -- ShadStrenght, LightShadStreght, PoleShadStrenght - "\t%.1f\t\t%.1f\t\t%.1f\t\t" .. -- fFarClip, fFogStart, fLightsOnGroundBrightness - "\t\t%d %d %d\t" .. -- LowCloudsRGB - "\t%d %d %d\t\t" .. -- FluffyCloudsRGB - "\t%d %d %d %d\t\t" .. -- WaterRGBA - "\t%d %d %d %d\t\t" .. -- PostFx1ARGB - "\t%d %d %d %d" .. -- PostFx2ARGB - "\t%d\t\t\t\t%d\t\t\t\t\t%d\t\t\t\t%.2f\t\t\n", -- CloudAlpha HiLiMinIntensity WaterFogAlpha DirectionalMult - casts.CTimeCyc.ambient_red[val], casts.CTimeCyc.ambient_green[val], casts.CTimeCyc.ambient_blue[val], - casts.CTimeCyc.ambient_obj_red[val], casts.CTimeCyc.ambient_obj_green[val], casts.CTimeCyc.ambient_obj_blue[val], - 255, 255, 255, - casts.CTimeCyc.sky_top_red[val], casts.CTimeCyc.sky_top_green[val], casts.CTimeCyc.sky_top_blue[val], - casts.CTimeCyc.sky_bottom_red[val], casts.CTimeCyc.sky_bottom_green[val], casts.CTimeCyc.sky_bottom_blue[val], - casts.CTimeCyc.sun_core_red[val],casts.CTimeCyc.sun_core_green[val],casts.CTimeCyc.sun_core_blue[val], - casts.CTimeCyc.sun_corona_red[val], casts.CTimeCyc.sun_corona_green[val], casts.CTimeCyc.sun_corona_blue[val], - (casts.CTimeCyc.sprite_size[val] - 0.5) / 10.0,(casts.CTimeCyc.sprite_size[val] - 0.5) / 10.0,(casts.CTimeCyc.sprite_brightness[val] - 0.5) / 10.0, - casts.CTimeCyc.shadow_strength[val],casts.CTimeCyc.light_shadow_strength[val],casts.CTimeCyc.pole_shadow_strength[val], - casts.CTimeCyc.far_clip[val],casts.CTimeCyc.fog_start[val], (casts.CTimeCyc.lights_on_ground_brightness[val] - 0.5) / 10.0, - casts.CTimeCyc.low_clouds_red[val],casts.CTimeCyc.low_clouds_green[val],casts.CTimeCyc.low_clouds_blue[val], - casts.CTimeCyc.fluffy_clouds_red[val],casts.CTimeCyc.fluffy_clouds_green[val],casts.CTimeCyc.fluffy_clouds_blue[val], - casts.CTimeCyc.water_red[val],casts.CTimeCyc.water_blue[val],casts.CTimeCyc.water_blue[val],casts.CTimeCyc.water_alpha[val], - casts.CTimeCyc.postfx1_alpha[val],casts.CTimeCyc.postfx1_red[val],casts.CTimeCyc.postfx1_green[val],casts.CTimeCyc.postfx1_blue[val], - casts.CTimeCyc.postfx2_alpha[val],casts.CTimeCyc.postfx2_red[val],casts.CTimeCyc.postfx2_green[val],casts.CTimeCyc.postfx2_blue[val], - casts.CTimeCyc.cloud_alpha[val],casts.CTimeCyc.high_light_min_intensity[val], casts.CTimeCyc.waterfog_alpha[val], casts.CTimeCyc.directional_mult[val] / 100.0 - ) - ) - end - end - io.close(file) -end ------------------------------------------------- - --- Main function -function module.VisualMain() - if fcommon.BeginTabBar('VisualBar') then - if fcommon.BeginTabItem('Checkboxes') then - imgui.Columns(2,nil,false) - fcommon.CheckBoxValue('Armour border',0x589123) - fcommon.CheckBoxValue('Armour percentage',0x589125) - fcommon.CheckBoxValue('Breath border',0x589207) - fcommon.CheckBoxValue('Breath percentage',0x589209) - if fcommon.CheckBoxVar('Display car names',module.tvisual.car_names) then - displayCarNames(module.tvisual.car_names[0]) - fconfig.Set(fconfig.tconfig.misc_data,"Display Car Names",module.tvisual.car_names[0]) - end - if fcommon.CheckBoxVar('Disable motion blur',module.tvisual.disable_motion_blur) then - if module.tvisual.disable_motion_blur[0] then - writeMemory(0x7030A0,4,0xC3,false) - else - writeMemory(0x7030A0,4,0xF3CEC83,false) - end - end - if fcommon.CheckBoxVar('Display zone names',module.tvisual.zone_names) then - displayZoneNames(module.tvisual.zone_names[0]) - fconfig.Set(fconfig.tconfig.misc_data,"Display Zone Names",module.tvisual.zone_names[0]) - end - fcommon.CheckBoxValue('Enable hud',0xBA6769) - - imgui.NextColumn() - - fcommon.CheckBoxValue('Enable radar',0xBA676C,nil,0,2) - fcommon.CheckBoxValue('Gray radar',0xA444A4) - fcommon.CheckBoxValue('Health border',0x589353) - fcommon.CheckBoxValue('Health percentage',0x589355) - fcommon.CheckBoxValue('Hide wanted level',0x58DD1B,nil,0x90) - if fcommon.CheckBoxVar('Lock weather',module.tvisual.lock_weather) then - fcommon.CreateThread(fvisual.LockWeather) - end - if fcommon.CheckBoxVar('Radio channel names',module.tvisual.radio_channel_names) then - if module.tvisual.radio_channel_names[0] then - writeMemory(0x507035,5,-30533911,false) - else - writeMemory(0x507035,4,0x90,false) - end - end - imgui.Columns(1) - end - if fcommon.BeginTabItem('Menus') then - fcommon.CRGBAColorPicker("Health bar + debt color",0xBAB22C,{180,25,29}) - fcommon.CRGBAColorPicker("Main menu title border color",0xBAB240,{0,0,0}) - fcommon.CRGBAColorPicker("Money color",0xBAB230,{54,104,44}) - fcommon.RadioButtonAddressEx("Money font outline",{"No outline","Thin outline","Default outline"},{0,1,2},0x58F58D) - fcommon.RadioButtonAddressEx("Money font style",{"Style 1","Style 2","Default style"},{1,2,3},0x58F57F) - fcommon.UpdateAddress({ name = 'Radar Height',address = 0x866B74,size = 4,min=0,default = 76,max = 999,is_float = true}) - fcommon.UpdateAddress({ name = 'Radar Width',address = 0x866B78,size = 4,min=0,default = 94,max = 999,is_float = true}) - fcommon.UpdateAddress({ name = 'Radar X position',address = 0x858A10,size = 4,min=-999,default = 40,max = 999,is_float = true,help_text = "Changes radar vertical position"}) - fcommon.UpdateAddress({ name = 'Radar Y position',address = 0x866B70,size = 4,min=-999,default = 104,max = 999,is_float = true,help_text = "Changes radar horizantal position"}) - fcommon.UpdateAddress({ name = 'Radar zoom',address = 0xA444A3,size = 1,min=0,default = 0,max = 170}) - fcommon.CRGBAColorPicker("Radio station color",0xBAB24C,{150,150,150}) - fcommon.CRGBAColorPicker("Styled text color",0xBAB258,{226,192,99}) - fcommon.CRGBAColorPicker("Text color",0xBAB234,{50,60,127}) - fcommon.RadioButtonAddressEx("Wanted star border",{"No border","Default","Bold border"},{0,1,2},0x58DD41) - fcommon.CRGBAColorPicker("Wanted star color + some text",0xBAB244,{144,98,16}) - fcommon.UpdateAddress({ name = 'Wanted star Y position',address = 0x858CCC,size = 4,is_float = true,min=-500,default = 12,max = 500}) - end - if fcommon.BeginTabItem('Timecyc editor') then - if module.tvisual.timecyc.timecyc_24_plugin ~= 0 then - HOUR = 24 - else - HOUR = 8 - end - - local val = 23 * GetCurrentHourTimeId(HOUR) + casts.CTimeCyc.curr_weather[0] - UpdateTimecycData(val) - - imgui.SetNextItemWidth(imgui.GetWindowContentRegionWidth()/1.7) - if imgui.Button("Generate timecyc file",imgui.ImVec2(fcommon.GetSize(2))) then - GenerateTimecycFile(HOUR) - printHelpString("File generated") - end - imgui.SameLine() - if imgui.Button("Reset timecyc",imgui.ImVec2(fcommon.GetSize(2))) then - casts.CTimeCyc.initialise() - printHelpString("Timecyc reset") - end - - imgui.Spacing() - local weather = imgui.new.int(casts.CTimeCyc.curr_weather[0]) - if imgui.Combo("Current weather", weather,module.tvisual.timecyc.weather.array,#module.tvisual.timecyc.weather.names) then - if module.tvisual.lock_weather[0] then - printHelpString("Weather locked") - else - casts.CTimeCyc.curr_weather[0] = weather[0] - printHelpString("Current weather set") - end - end - - weather = imgui.new.int(casts.CTimeCyc.next_weather[0]) - if imgui.Combo("Next weather", weather,module.tvisual.timecyc.weather.array,#module.tvisual.timecyc.weather.names) then - if module.tvisual.lock_weather[0] then - printHelpString("Weather locked") - else - casts.CTimeCyc.next_weather[0] = weather[0] - printHelpString("Next weather set") - end - end - imgui.Spacing() - - if fcommon.BeginTabBar('Timecyc sub tab') then - if fcommon.BeginTabItem('Colors') then - if imgui.ColorEdit3("Ambient",module.tvisual.timecyc.ambient) then - casts.CTimeCyc.ambient_red[val] = module.tvisual.timecyc.ambient[0]*255 - casts.CTimeCyc.ambient_green[val] = module.tvisual.timecyc.ambient[1]*255 - casts.CTimeCyc.ambient_blue[val] = module.tvisual.timecyc.ambient[2]*255 - end - fcommon.InformationTooltip("Ambient color on static map objects") - - if imgui.ColorEdit3("Ambient obj",module.tvisual.timecyc.ambient_obj) then - casts.CTimeCyc.ambient_obj_red[val] = module.tvisual.timecyc.ambient_obj[0]*255 - casts.CTimeCyc.ambient_obj_green[val] = module.tvisual.timecyc.ambient_obj[1]*255 - casts.CTimeCyc.ambient_obj_blue[val] = module.tvisual.timecyc.ambient_obj[2]*255 - end - fcommon.InformationTooltip("Ambient color on dynamic map objects") - - if imgui.ColorEdit3("Fluffy clouds",module.tvisual.timecyc.fluffy_clouds) then - casts.CTimeCyc.fluffy_clouds_red[val] = module.tvisual.timecyc.fluffy_clouds[0]*255 - casts.CTimeCyc.fluffy_clouds_green[val] = module.tvisual.timecyc.fluffy_clouds[1]*255 - casts.CTimeCyc.fluffy_clouds_blue[val] = module.tvisual.timecyc.fluffy_clouds[2]*255 - end - - if imgui.ColorEdit3("Low clouds",module.tvisual.timecyc.low_clouds) then - casts.CTimeCyc.low_clouds_red[val] = module.tvisual.timecyc.low_clouds[0]*255 - casts.CTimeCyc.low_clouds_green[val] = module.tvisual.timecyc.low_clouds[1]*255 - casts.CTimeCyc.low_clouds_blue[val] = module.tvisual.timecyc.low_clouds[2]*255 - end - - if imgui.ColorEdit4("Postfx 1",module.tvisual.timecyc.postfx1) then - casts.CTimeCyc.postfx1_red[val] = module.tvisual.timecyc.postfx1[0]*255 - casts.CTimeCyc.postfx1_green[val] = module.tvisual.timecyc.postfx1[1]*255 - casts.CTimeCyc.postfx1_blue[val] = module.tvisual.timecyc.postfx1[2]*255 - casts.CTimeCyc.postfx1_alpha[val] = module.tvisual.timecyc.postfx1[3]*255 - end - fcommon.InformationTooltip("Color correction 1") - - if imgui.ColorEdit4("Postfx 2",module.tvisual.timecyc.postfx2) then - casts.CTimeCyc.postfx2_red[val] = module.tvisual.timecyc.postfx2[0]*255 - casts.CTimeCyc.postfx2_green[val] = module.tvisual.timecyc.postfx2[1]*255 - casts.CTimeCyc.postfx2_blue[val] = module.tvisual.timecyc.postfx2[2]*255 - casts.CTimeCyc.postfx2_alpha[val] = module.tvisual.timecyc.postfx2[3]*255 - end - fcommon.InformationTooltip("Color correction 2") - - if imgui.ColorEdit3("Sky bottom",module.tvisual.timecyc.sky_bottom) then - casts.CTimeCyc.sky_bottom_red[val] = module.tvisual.timecyc.sky_bottom[0]*255 - casts.CTimeCyc.sky_bottom_green[val] = module.tvisual.timecyc.sky_bottom[1]*255 - casts.CTimeCyc.sky_bottom_blue[val] = module.tvisual.timecyc.sky_bottom[2]*255 - end - - if imgui.ColorEdit3("Sun core",module.tvisual.timecyc.sun_core) then - casts.CTimeCyc.sun_core_red[val] = module.tvisual.timecyc.sun_core[0]*255 - casts.CTimeCyc.sun_core_green[val] = module.tvisual.timecyc.sun_core[1]*255 - casts.CTimeCyc.sun_core_blue[val] = module.tvisual.timecyc.sun_core[2]*255 - end - - if imgui.ColorEdit3("Sun corona",module.tvisual.timecyc.sun_corona) then - casts.CTimeCyc.sun_corona_red[val] = module.tvisual.timecyc.sun_corona[0]*255 - casts.CTimeCyc.sun_corona_green[val] = module.tvisual.timecyc.sun_corona[1]*255 - casts.CTimeCyc.sun_corona_blue[val] = module.tvisual.timecyc.sun_corona[2]*255 - end - - if imgui.ColorEdit3("Sky top",module.tvisual.timecyc.sky_top) then - casts.CTimeCyc.sky_top_red[val] = module.tvisual.timecyc.sky_top[0]*255 - casts.CTimeCyc.sky_top_green[val] = module.tvisual.timecyc.sky_top[1]*255 - casts.CTimeCyc.sky_top_blue[val] = module.tvisual.timecyc.sky_top[2]*255 - end - - if imgui.ColorEdit4("Water",module.tvisual.timecyc.water) then - casts.CTimeCyc.water_red[val] = module.tvisual.timecyc.water[0]*255 - casts.CTimeCyc.water_green[val] = module.tvisual.timecyc.water[1]*255 - casts.CTimeCyc.water_blue[val] = module.tvisual.timecyc.water[2]*255 - casts.CTimeCyc.water_alpha[val] = module.tvisual.timecyc.water[3]*255 - end - end - if fcommon.BeginTabItem('Misc') then - imgui.PushItemWidth(imgui.GetWindowContentRegionWidth()/2) - if imgui.SliderInt("Cloud alpha", module.tvisual.timecyc.cloud_alpha, 0, 255) then - casts.CTimeCyc.cloud_alpha[val] = module.tvisual.timecyc.cloud_alpha[0] - end - - if imgui.SliderInt("Directional mult", module.tvisual.timecyc.directional_mult, 0, 255) then - casts.CTimeCyc.directional_mult[val] = module.tvisual.timecyc.directional_mult[0] - end - fcommon.InformationTooltip("Direct light on peds & vehicles") - - if imgui.SliderInt("Far clip", module.tvisual.timecyc.far_clip, 0, 2000) then - casts.CTimeCyc.far_clip[val] = module.tvisual.timecyc.far_clip[0] - end - fcommon.InformationTooltip("Visibility range") - - if imgui.SliderInt("High light min intensity", module.tvisual.timecyc.high_light_min_intensity, 0, 255) then - casts.CTimeCyc.high_light_min_intensity[val] = module.tvisual.timecyc.high_light_min_intensity[0] - end - fcommon.InformationTooltip("Intensity limit for PS2 radiosity effect") - - if imgui.SliderInt("Fog start", module.tvisual.timecyc.fog_start, 0, 2000) then - casts.CTimeCyc.fog_start[val] = module.tvisual.timecyc.fog_start[0] - end - - if imgui.SliderInt("Light on ground brightness", module.tvisual.timecyc.lights_on_ground_brightness, 0, 255) then - casts.CTimeCyc.lights_on_ground_brightness[val] = module.tvisual.timecyc.lights_on_ground_brightness[0] - end - - if imgui.SliderInt("Light shadow strength", module.tvisual.timecyc.light_shadow_strength, 0, 255) then - casts.CTimeCyc.light_shadow_strength[val] = module.tvisual.timecyc.light_shadow_strength[0] - end - - if imgui.SliderInt("Pole shadow strength", module.tvisual.timecyc.pole_shadow_strength, 0, 255) then - casts.CTimeCyc.pole_shadow_strength[val] = module.tvisual.timecyc.pole_shadow_strength[0] - end - - if imgui.SliderInt("Shadow strength", module.tvisual.timecyc.shadow_strength, 0, 255) then - casts.CTimeCyc.shadow_strength[val] = module.tvisual.timecyc.shadow_strength[0] - end - - if imgui.SliderInt("Sprite brightness", module.tvisual.timecyc.sprite_brightness, 0, 127) then - casts.CTimeCyc.sprite_brightness[val] = module.tvisual.timecyc.sprite_brightness[0] - end - - if imgui.SliderInt("Sprite size", module.tvisual.timecyc.sprite_size, 0, 127) then - casts.CTimeCyc.sprite_size[val] = module.tvisual.timecyc.sprite_size[0] - end - - if imgui.SliderInt("Sun size", module.tvisual.timecyc.sun_size, 0, 127) then - casts.CTimeCyc.sun_size[val] = module.tvisual.timecyc.sun_size[0] - end - - if imgui.SliderInt("Water fog alpha", module.tvisual.timecyc.waterfog_alpha, 0, 255) then - casts.CTimeCyc.waterfog_alpha[val] = module.tvisual.timecyc.waterfog_alpha[0] - end - end - fcommon.EndTabBar() - end - end - fcommon.EndTabBar() - end -end - -return module diff --git a/moonloader/lib/cheat-menu/modules/weapon.lua b/moonloader/lib/cheat-menu/modules/weapon.lua deleted file mode 100644 index 34b8c36..0000000 --- a/moonloader/lib/cheat-menu/modules/weapon.lua +++ /dev/null @@ -1,344 +0,0 @@ --- Cheat Menu - Cheat menu for Grand Theft Auto SanAndreas --- Copyright (C) 2019-2020 Grinch_ - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - -local module = {} - -module.tweapon = -{ - auto_aim = imgui.new.bool(fconfig.Get('tweapon.auto_aim',false)), - ammo_count = imgui.new.int(fconfig.Get('tweapon.ammo_count',99999)), - fast_reload = imgui.new.bool(fconfig.Get('tweapon.fast_reload',false)), - max_accuracy = imgui.new.bool(fconfig.Get('tweapon.max_accuracy',false)), - max_ammo_clip = imgui.new.bool(fconfig.Get('tweapon.max_ammo_clip',false)), - max_move_speed = imgui.new.bool(fconfig.Get('tweapon.max_move_speed',false)), - huge_damage = imgui.new.bool(fconfig.Get('tweapon.huge_damage',false)), - images = {}, - long_range = imgui.new.bool(fconfig.Get('tweapon.long_range',false)), - names = fcommon.LoadJson("weapon"), - path = tcheatmenu.dir .. "weapons", - ped = imgui.new.bool(fconfig.Get('tweapon.ped',false)), - gang = - { - weapon_array = {}, - used_weapons = fconfig.Get('tweapon.gang_weapons',fconst.DEFAULT_GANG_WEAPONS), - enable_weapon_editor = imgui.new.bool(fconfig.Get('tweapon.gang.enable_weapon_editor',false)), - weapons_names = - { - "Unarmed", - "Brass knuckles", - "Golf club", - "Night stick", - "Knife", - "Baseball bat", - "Shovel", - "Poolcue", - "Katana", - "Chainsaw", - "Purple dildo", - "White dildo", - "White vibrator", - "Silver vibrator", - "Flowers", - "Cane", - "Grenade", - "Teargas", - "Molotov", - "No weapon", - "No weapon", - "No weapon", - "Colt45", - "Silenced", - "Desert eagle", - "Shotgun", - "Sawn off shotgun", - "Combat shotgun", - "Uzi", - "Mp5", - "Ak47", - "M4", - "Tec9", - "Rifle", - "Sniper rifle", - "Rocket launcher", - "Heat seeker", - "Flame thrower", - "Minigun", - "Satchel charge", - "Detonator", - "Spraycan", - "Fire extinguisher", - "Camera", - "Night vision", - "Thermal vision", - "Parachute", - }, - weapon1 = imgui.new.int(0), - weapon2 = imgui.new.int(0), - weapon3 = imgui.new.int(0), - }, - weapon_drops = {}, -} - - -module.tweapon.gang.weapon_array = imgui.new['const char*'][#module.tweapon.gang.weapons_names](module.tweapon.gang.weapons_names) -module.tweapon.gang.weapon1[0] = module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][1] -module.tweapon.gang.weapon2[0] = module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][2] -module.tweapon.gang.weapon3[0] = module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][3] - --- Returns weapon name -function module.GetModelName(id) - - if id == "Jetpack" then return id end - - if module.tweapon.names[id] ~= nil then - return module.tweapon.names[id] - else - return "" - end - -end - --- Used in quick spawner (fcommon) -function module.CBaseWeaponInfo(name) - local weapon = callFunction(0x743D10,1,1,name) - if name ~= "" and getWeapontypeModel(weapon) ~= 0 then - return weapon - else - return 0 - end -end - --- Gives weapon to player or ped -function module.GiveWeapon(weapon) - if weapon == "Jetpack" then -- exception - taskJetpack(PLAYER_PED) - fcommon.CheatActivated() - else - weapon = tonumber(weapon) - model = getWeapontypeModel(weapon) - if isModelAvailable(model) then - requestModel(model) - loadAllModelsNow() - - if module.tweapon.ped[0] == true then - if doesCharExist(fped.tped.selected) then - giveWeaponToChar(fped.tped.selected,weapon,module.tweapon.ammo_count[0]) - fcommon.CheatActivated() - else - printHelpString("~r~No~w~ ped selected") - end - else - giveWeaponToChar(PLAYER_PED,weapon,module.tweapon.ammo_count[0]) - fcommon.CheatActivated() - end - markModelAsNoLongerNeeded(model) - end - end -end - -function module.RemoveAllWeaponDrops() - for _, pickup in ipairs(module.tweapon.weapon_drops) do - if doesPickupExist(pickup) then - removePickup(pickup) - end - end -end - -function module.AutoAim() - while module.tweapon.auto_aim[0] do - if isCharOnFoot(PLAYER_PED) then - local x, y = getPcMouseMovement() - x = math.floor(x/2) - y = math.floor(y/2) - - if (y ~= 0 or x ~= 0) then - writeMemory(0xB6EC2E,1,1,false) - else - if isKeyDown(2) then - writeMemory(0xB6EC2E,1,0,false) - end - end - end - wait(0) - end - writeMemory(0xB6EC2E,1,1,false) -end - --- Main function -function module.WeaponMain() - - if imgui.Button("Drop weapon",imgui.ImVec2(fcommon.GetSize(3))) then - local ped = PLAYER_PED - - if module.tweapon.ped[0] == true then - if fped.tped.selected == nil then - ped = nil - printHelpString("~r~No~w~ ped selected") - end - end - - if ped ~= nil then - local x,y,z = getOffsetFromCharInWorldCoords(ped,0.0,3.0,0.0) - local weapon_type = getCurrentCharWeapon(ped) - if weapon_type == 0 then - printHelpString("No weapon to drop") - else - local weapon_model = getWeapontypeModel(weapon_type) - local weapon_ammo = getAmmoInCharWeapon(ped,weapon_type) - - local pickup = createPickupWithAmmo(weapon_model,3,weapon_ammo,x,y,z) - table.insert(module.tweapon.weapon_drops,pickup) - removeWeaponFromChar(PLAYER_PED,weapon_type) - printHelpString("Weapon dropped") - end - end - end - imgui.SameLine() - if imgui.Button("Remove all",imgui.ImVec2(fcommon.GetSize(3))) then - if module.tweapon.ped[0] == true then - if fped.tped.selected ~= nil then - removeAllCharWeapons(fped.tped.selected) - printHelpString("All weapons removed") - else - printHelpString("~r~No~w~ ped selected") - end - else - removeAllCharWeapons(PLAYER_PED) - printHelpString("All weapons removed") - end - end - imgui.SameLine() - if imgui.Button("Remove current",imgui.ImVec2(fcommon.GetSize(3))) then - - if module.tweapon.ped[0] == true then - if fped.tped.selected ~= nil then - removeWeaponFromChar(fped.tped.selected,getCurrentCharWeapon(fped.tped.selected)) - printHelpString("Current weapon removed") - else - printHelpString("~r~No~w~ ped selected") - end - else - removeWeaponFromChar(PLAYER_PED,getCurrentCharWeapon(PLAYER_PED)) - printHelpString("Current weapon removed") - end - end - - if fcommon.BeginTabBar('Weapons') then - if fcommon.BeginTabItem('Checkboxes') then - imgui.Columns(2,nil,false) - if fcommon.CheckBoxVar("Auto aim",module.tweapon.auto_aim,"Enables aim assist on keyboard\n\nQ = left E = right") then - fcommon.CreateThread(fweapon.AutoAim) - end - if fcommon.CheckBoxVar("Fast reload",module.tweapon.fast_reload) then - setPlayerFastReload(PLAYER_HANDLE,module.tweapon.fast_reload[0]) - end - if fcommon.CheckBoxVar("Huge damage",module.tweapon.huge_damage) then - if not module.tweapon.huge_damage[0] then - callFunction(0x5BE670,0,0) - end - end - fcommon.CheckBoxValue("Infinite ammo",0x969178) - - imgui.NextColumn() - - if fcommon.CheckBoxVar("Long range",module.tweapon.long_range) then - if not module.tweapon.long_range[0] then - callFunction(0x5BE670,0,0) - end - end - if fcommon.CheckBoxVar("Max accuracy",module.tweapon.max_accuracy) then - if not module.tweapon.max_accuracy[0] then - callFunction(0x5BE670,0,0) - end - end - if fcommon.CheckBoxVar("Max ammo clip",module.tweapon.max_ammo_clip) then - if not module.tweapon.max_ammo_clip[0] then - callFunction(0x5BE670,0,0) - end - end - if fcommon.CheckBoxVar("Max move speed",module.tweapon.max_move_speed) then - if not module.tweapon.max_move_speed[0] then - callFunction(0x5BE670,0,0) - end - end - imgui.Columns(1) - end - if fcommon.BeginTabItem('Menus') then - fcommon.DropDownMenu("Gang weapon editor",function() - fcommon.CheckBoxVar("Enable weapon editor",module.tweapon.gang.enable_weapon_editor,"Will apply changes on each start") - if module.tweapon.gang.enable_weapon_editor[0] then - imgui.Spacing() - if imgui.Combo("Gang", fped.tped.gang.index,fped.tped.gang.array,#fped.tped.gang.list) then - module.tweapon.gang.weapon1[0] = module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][1] - module.tweapon.gang.weapon2[0] = module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][2] - module.tweapon.gang.weapon3[0] = module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][3] - end - imgui.Spacing() - - if imgui.Combo("Weapon 1", module.tweapon.gang.weapon1,module.tweapon.gang.weapon_array,#module.tweapon.gang.weapons_names) then - setGangWeapons(fped.tped.gang.index[0],module.tweapon.gang.weapon1[0],module.tweapon.gang.weapon2[0],module.tweapon.gang.weapon3[0]) - module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][1] = module.tweapon.gang.weapon1[0] - fcommon.CheatActivated() - end - - if imgui.Combo("Weapon 2", module.tweapon.gang.weapon2,module.tweapon.gang.weapon_array,#module.tweapon.gang.weapons_names) then - setGangWeapons(fped.tped.gang.index[0],module.tweapon.gang.weapon1[0],module.tweapon.gang.weapon2[0],module.tweapon.gang.weapon3[0]) - module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][2] = module.tweapon.gang.weapon2[0] - fcommon.CheatActivated() - end - - if imgui.Combo("Weapon 3", module.tweapon.gang.weapon3,module.tweapon.gang.weapon_array,#module.tweapon.gang.weapons_names) then - setGangWeapons(fped.tped.gang.index[0],module.tweapon.gang.weapon1[0],module.tweapon.gang.weapon2[0],module.tweapon.gang.weapon3[0]) - module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][3] = module.tweapon.gang.weapon3[0] - fcommon.CheatActivated() - end - - imgui.Spacing() - if imgui.Button("Reset to default",imgui.ImVec2(fcommon.GetSize(1))) then - - module.tweapon.gang.used_weapons = fconst.DEFAULT_GANG_WEAPONS - - for x=1,10,1 do - setGangWeapons(x,module.tweapon.gang.used_weapons[x][1],module.tweapon.gang.used_weapons[x][2],module.tweapon.gang.used_weapons[x][3]) - end - module.tweapon.gang.weapon1[0] = module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][1] - module.tweapon.gang.weapon2[0] = module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][2] - module.tweapon.gang.weapon3[0] = module.tweapon.gang.used_weapons[fped.tped.gang.index[0]+1][3] - printHelpString("Gang weapons reset") - end - end - end) - fcommon.CallFuncButtons("Weapon presets", {["Set1"] = 0x4385B0,["Set2"] = 0x438890,["Set3"] = 0x438B30}) - end - if fcommon.BeginTabItem('Spawn') then - fcommon.CheckBoxVar("Ped",module.tweapon.ped,"Give weapon to ped. Aim with a gun to select") - imgui.SameLine() - imgui.Spacing() - imgui.SameLine() - imgui.SetNextItemWidth(imgui.GetWindowWidth()/2) - if imgui.InputInt('Ammo', module.tweapon.ammo_count) then - module.tweapon.ammo_count[0] = (module.tweapon.ammo_count[0] < 0) and 0 or module.tweapon.ammo_count[0] - module.tweapon.ammo_count[0] = (module.tweapon.ammo_count[0] > 99999) and 99999 or module.tweapon.ammo_count[0] - end - - imgui.Dummy(imgui.ImVec2(0,10)) - fcommon.DrawEntries(fconst.IDENTIFIER.WEAPON,fconst.DRAW_TYPE.IMAGE,module.GiveWeapon,nil,module.GetModelName,module.tweapon.images,fconst.WEAPON.IMAGE_HEIGHT,fconst.WEAPON.IMAGE_WIDTH) - - end - fcommon.EndTabBar() - end -end -return module diff --git a/moonloader/lib/lfs.dll b/moonloader/lib/lfs.dll deleted file mode 100644 index 606576ef6789d413404dc7f0d360b66cdc249aea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14848 zcmeHOe|%F_mcMBeh!|+pb}WhzHAP&0%uCYrccDmwWh@#EC$S5w%T6b`K*v@=9h=>kD_IvJoX$#`) z=d+*P&;GIV`nmVqd(OG%o_p@O_n!OmI{)GAER!*&MM|X@>jb2yg6Drey9DyMNw1A# z2X1)l&Q4ABTX)v@{1H=YIJ7cc-(qU04+cY`X@%Dmjs{KspsDg9m#HPx=$$ck>=?5u z`p(l+AN9WGn4V6}Z@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|}vW5`*gXVnIGDWwb5eqJiVTPQ4zDXLag@=r&fTUWs(1O|Vf7*eh8b z-7xt6;DIdlddF^1xSIUo2!#7>R??N)QNXVt7_1Q$F)8Sr6){-OFJhuwSn+VV&dX+# zR3BLY#5y|BpjAUC*yLXczp2CZG8|e{hefxVkwlWBOktYj4X*ZwLqUq4>0bdxa)h9b zU#wH_KW3U8Zv!rfbypE?MSsMHTW70(dP`*b8h>zlLs*=S|2HB1r#D-sTc#`1b`1yI z!XNrGbf34rbtL)P9%$Z`aQ@G6U8}_P4$=Q(+!VYQNZg8d41mU5X3Pf^0E+;ffE9qP zfR%vT0jmJ_13CeZ11<&}1oQzK@&2I|Pyk#D=mbm;kG_QCPa2`Ze;)sOCH*=PeMX6! z(y>&UjpC`lJpYRpzzmha$T`9kK@bXspdbn{VYiSFx`kf~mxT<=Xv<{FJj)i#cP&4# zoVJ{^d}d)*qxBB!WNU?WiFJ*&&H9SgN`$`U%oGdYvexvk`(m?5prLUIumEK%7qpZ4YTiL;~WZAFE zJ}m1mGnL<8zN|c2{@wDQl)qg5yYegL3um^@d~D`(GxyGXW#$_*Pt5#q=D^G^W*TQr zoHcb;$t=gLC9}j?kIi~&*6vv^&PvSs9Tf622|05jMi2ap6f}hw%5pF5ySQPlT6*SB2MwH(}v_75+oGBJ^8sv)*H^vd*_Q zSyx%tS`S&ft)E#_*0HupwnE$Ew(r?o`P=h@EDDaD35SMYf_@MGq7$DDo6F6#ZM#qs2ccK31$N znOag(GQXs@#9y+$WP8c;C9lEGJtgm#{HElA(#544N*^v;U)EOkT-iUA{bSjovJ++R zm3>mCDW6!rs=T%Q@$#q2|E~PG^4;Yxl>Za#{j>7J0XKJEaYniy wchar -int igImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end); // return output UTF-8 bytes count -int igImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); // return input UTF-8 bytes count -int igImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_remaining); // return input UTF-8 bytes count -int igImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); // return number of UTF-8 code-points (NOT bytes count) -int igImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); // return number of bytes to express string as UTF-8 code-points -]] - -return cdecl \ No newline at end of file diff --git a/moonloader/lib/mimgui/cimguidx9.dll b/moonloader/lib/mimgui/cimguidx9.dll deleted file mode 100644 index dd2416a298a8deb45c9509f49ab08e6f029f7f77..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 543744 zcmeFae|(h1wLiX_EMb9#-C)qDQDRNo*ib;A3I=t9*(54~jr>RyLZ~8A@CV{9U?s3| zNj49U3uyh-E3NciTDjG>Xt|1($_6kS1T`S7sI*2uTz%H$_C}=;HFZDlbLM$w_t`8E zdhhr3`u_3B3wF-ToS8XuX3m*2KcC85Hd-<*7K;u4<8g~+2VDAd^Y7_@>{g3q*vMCg zS+);)#LM9U?12PW)}NTOPdv#a=$pl9veW19=heP7Vc~ThisHz8&tl%maz(Mzu{6)+!jk@^s@Vw-G(r(E9y)G@@oi^A@fDd7ueNQriRSavVVV1?K(=BPWJeI+hwNM;yN(cpkqobP8*nA* zVaJ6FRm(!fHp!sBrC;>7e4T*`+guLbyDrOvYNc=p%7{@x7kHS_F6Z>!gw{8TNowS1MK zzTOfWnfba>X)o^aFA7h$qBA(C|ID@>?8)5SX$P=_`%jB=dYe+&Tm1U!Yr?kcTRJkm z+DNL-5!s0@RELEf*SCC_S>>If9gh#-zEot?s8_v4nMZv|MOkmvUs_aeM?PW4p0I5V zSJGHZQYfj{2X;UCyZQ z9SavOOjBRmKUrUe>pNy<-})+geQkPui-E%}n6|zO*LRm*-$JkU_BW~Zr3{VwI$ds; zGaI#~isy61^G{K6UF6PC|IB~B{^-7AW~8k@dhiU*hKi8xCmLl;Q2z{S?;O@z>mR9Bzbsl|SLj1{Jg$MEw_gqe`scB$@Mr8GM?J`njrMea7K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7D{^+FFlxN9@-6f9A^rDG*$I}uWs@@-PdE{W zJvDp96+y0Ee4Zm8-uYK(=V|y2+at{Lz9>n?)f%5+5Ug{t^~y?V@3ljy!#YkAP_hf@ z))X|$JZCX!?*{VTJ@C&H&Uv2hE*j<~xkG9<-p#^xO865NpTk62vfD5oE^?i1-zYDq zR|p2a58pNg4%26JMPrzE52o=rzjH92G-qx2x#N?CTA@`!WQDm=DPKff@=>@G$8nLO z$!v>~Ka?hYNTi>a@i~ha2D)v%&S2O~QKcxgL@Ip;_($^1@qg z7E&CQ8Qzn9zwmbFB5xz=`;>P-!br<D}m6NEHm%KNB=*X*#QFyqaf zri;@ymM+}Fmi2u!dc4TSzE)xO5(WCQ6|P!OHduzUy)qd_xB$%G0zOcXyt*Hc3 zt7gGqcJb!28N7?sK2$n+YzO)(_u&0f}uYD L|6l*lPT+q5-+$id diff --git a/moonloader/lib/mimgui/dx9.lua b/moonloader/lib/mimgui/dx9.lua deleted file mode 100644 index 40748a8..0000000 --- a/moonloader/lib/mimgui/dx9.lua +++ /dev/null @@ -1,171 +0,0 @@ --- This file is part of mimgui project --- Licensed under the MIT License --- Copyright (c) 2018, FYP - -local imgui = require 'mimgui.imgui' -local lib = imgui.lib -local ffi = require 'ffi' - -ffi.cdef [[ -typedef struct IDirect3DDevice9 *LPDIRECT3DDEVICE9, *PDIRECT3DDEVICE9; -typedef struct IDirect3DVertexBuffer9 *LPDIRECT3DVERTEXBUFFER9, *PDIRECT3DVERTEXBUFFER9; -typedef struct IDirect3DIndexBuffer9 *LPDIRECT3DINDEXBUFFER9, *PDIRECT3DINDEXBUFFER9; -typedef struct IDirect3DTexture9 *LPDIRECT3DTEXTURE9, *PDIRECT3DTEXTURE9; -typedef const char *LPCTSTR; -typedef const void *LPCVOID; -typedef unsigned int UINT; -typedef void *HWND; -typedef signed __int64 INT64, *PINT64; -typedef unsigned int UINT_PTR, *PUINT_PTR; -typedef long LONG_PTR, *PLONG_PTR; -typedef UINT_PTR WPARAM; -typedef LONG_PTR LPARAM; -typedef LONG_PTR LRESULT; -typedef struct ImGui_ImplDX9_Context -{ - LPDIRECT3DDEVICE9 pd3dDevice; - LPDIRECT3DVERTEXBUFFER9 pVB; - LPDIRECT3DINDEXBUFFER9 pIB; - LPDIRECT3DTEXTURE9 FontTexture; - int VertexBufferSize; - int IndexBufferSize; -} ImGui_ImplDX9_Context; - -bool ImGui_ImplWin32_Init(HWND hwnd, INT64* ticksPerSecond, INT64* time); -void ImGui_ImplWin32_NewFrame(HWND hwnd, INT64 ticksPerSecond, INT64* time); -LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); - -ImGui_ImplDX9_Context* ImGui_ImplDX9_Init(LPDIRECT3DDEVICE9 device); -void ImGui_ImplDX9_Shutdown(ImGui_ImplDX9_Context* context); -void ImGui_ImplDX9_NewFrame(ImGui_ImplDX9_Context* context); -void ImGui_ImplDX9_RenderDrawData(ImGui_ImplDX9_Context* context, ImDrawData* draw_data); -void ImGui_ImplDX9_InvalidateDeviceObjects(ImGui_ImplDX9_Context* context); - -bool ImGui_ImplDX9_CreateFontsTexture(ImGui_ImplDX9_Context* context); // replaces ImGui_ImplDX9_CreateDeviceObjects since they are the same -void ImGui_ImplDX9_InvalidateFontsTexture(ImGui_ImplDX9_Context* context); - -LPDIRECT3DTEXTURE9 ImGui_ImplDX9_CreateTextureFromFile(LPDIRECT3DDEVICE9 device, LPCTSTR path); -LPDIRECT3DTEXTURE9 ImGui_ImplDX9_CreateTextureFromFileInMemory(LPDIRECT3DDEVICE9 device, LPCVOID src, UINT size); -void ImGui_ImplDX9_ReleaseTexture(LPDIRECT3DTEXTURE9 tex); - -int __stdcall MultiByteToWideChar(UINT CodePage, unsigned long dwFlags, const char* lpMultiByteStr, int cbMultiByte, wchar_t* lpWideCharStr, int cchWideChar); -]] - -local ImplDX9 = {} -function ImplDX9.new(device, hwnd) - -- ImGui_ImplDX9_Context* ImGui_ImplDX9_Init(LPDIRECT3DDEVICE9 device); - local obj = {} - local d3dcontext = lib.ImGui_ImplDX9_Init(device) - if d3dcontext == nil then - return nil - end - local context = imgui.CreateContext() - obj.ticksPerSecond = ffi.new('INT64[1]', 0) - obj.time = ffi.new('INT64[1]', 0) - imgui.SetCurrentContext(context) - local imio = imgui.GetIO() - imio.BackendRendererName = 'imgui_impl_dx9_lua' - imio.BackendFlags = bit.bor(imio.BackendFlags, lib.ImGuiBackendFlags_RendererHasVtxOffset) -- We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. - -- bool ImGui_ImplWin32_Init(HWND hwnd, INT64* ticksPerSecond, INT64* time); - if not lib.ImGui_ImplWin32_Init(hwnd, obj.ticksPerSecond, obj.time) then - -- void ImGui_ImplDX9_Shutdown(ImGui_ImplDX9_Context* context); - lib.ImGui_ImplDX9_Shutdown(d3dcontext) - imgui.DestroyContext(context) - return nil - end - obj.context = context - obj.d3dcontext = d3dcontext - obj.d3ddevice = device - obj.hwnd = hwnd - -- set finalizer - ffi.gc(d3dcontext, function(cd) - imgui.SetCurrentContext(context) - -- void ImGui_ImplDX9_Shutdown(ImGui_ImplDX9_Context* context); - lib.ImGui_ImplDX9_Shutdown(cd) - imgui.DestroyContext(context) - end) - return setmetatable(obj, {__index = ImplDX9}) -end - -function ImplDX9:SwitchContext() - imgui.SetCurrentContext(self.context) -end - -function ImplDX9:NewFrame() - self:SwitchContext() - -- void ImGui_ImplDX9_NewFrame(ImGui_ImplDX9_Context* context); - lib.ImGui_ImplDX9_NewFrame(self.d3dcontext) - -- void ImGui_ImplWin32_NewFrame(HWND hwnd, INT64 ticksPerSecond, INT64* time); - lib.ImGui_ImplWin32_NewFrame(self.hwnd, self.ticksPerSecond[0], self.time) - imgui.NewFrame() -end - -function ImplDX9:EndFrame() - self:SwitchContext() - imgui.Render() - -- void ImGui_ImplDX9_RenderDrawData(ImGui_ImplDX9_Context* context, ImDrawData* draw_data); - lib.ImGui_ImplDX9_RenderDrawData(self.d3dcontext, imgui.GetDrawData()) -end - -function ImplDX9:WindowMessage(msg, wparam, lparam) - self:SwitchContext() - if msg == 0x0102 then -- WM_CHAR - if wparam < 256 then - local char = ffi.new('char[1]', wparam) - local wchar = ffi.new('wchar_t[1]', 0) - if ffi.C.MultiByteToWideChar(0, 0, char, 1, wchar, 1) > 0 then - wparam = wchar[0] - end - end - end - -- LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); - return lib.ImGui_ImplWin32_WndProcHandler(self.hwnd, msg, wparam, lparam) -end - -function ImplDX9:InvalidateDeviceObjects() - self:SwitchContext() - -- void ImGui_ImplDX9_InvalidateDeviceObjects(ImGui_ImplDX9_Context* context); - lib.ImGui_ImplDX9_InvalidateDeviceObjects(self.d3dcontext) -end - -function ImplDX9:CreateTextureFromFile(path) - -- LPDIRECT3DTEXTURE9 ImGui_ImplDX9_CreateTextureFromFile(LPDIRECT3DDEVICE9 device, LPCTSTR path); - local tex = lib.ImGui_ImplDX9_CreateTextureFromFile(self.d3ddevice, path) - if tex == nil then - return nil - end - -- void ImGui_ImplDX9_ReleaseTexture(LPDIRECT3DTEXTURE9 tex); - return ffi.gc(tex, lib.ImGui_ImplDX9_ReleaseTexture) -end - -function ImplDX9:CreateTextureFromFileInMemory(src, size) - -- LPDIRECT3DTEXTURE9 ImGui_ImplDX9_CreateTextureFromFileInMemory(LPDIRECT3DDEVICE9 device, LPCVOID src, UINT size); - if type(src) == 'number' then - src = ffi.cast('LPCVOID', src) - end - local tex = lib.ImGui_ImplDX9_CreateTextureFromFileInMemory(self.d3ddevice, src, size) - if tex == nil then - return nil - end - -- void ImGui_ImplDX9_ReleaseTexture(LPDIRECT3DTEXTURE9 tex); - return ffi.gc(tex, lib.ImGui_ImplDX9_ReleaseTexture) -end - -function ImplDX9:ReleaseTexture(tex) - ffi.gc(tex, nil) - lib.ImGui_ImplDX9_ReleaseTexture(tex) -end - -function ImplDX9:CreateFontsTexture() - self:SwitchContext() - -- bool ImGui_ImplDX9_CreateFontsTexture(ImGui_ImplDX9_Context* context); - return lib.ImGui_ImplDX9_CreateFontsTexture(self.d3dcontext) -end - -function ImplDX9:InvalidateFontsTexture() - self:SwitchContext() - -- void ImGui_ImplDX9_InvalidateFontsTexture(ImGui_ImplDX9_Context* context); - lib.ImGui_ImplDX9_InvalidateFontsTexture(self.d3dcontext) -end - -return ImplDX9 diff --git a/moonloader/lib/mimgui/imgui.lua b/moonloader/lib/mimgui/imgui.lua deleted file mode 100644 index 32a14ac..0000000 --- a/moonloader/lib/mimgui/imgui.lua +++ /dev/null @@ -1,2231 +0,0 @@ -local cimguimodule = getWorkingDirectory() .. [[\lib\mimgui\cimguidx9]] -local ffi = require "ffi" -local cdecl = assert(require "mimgui.cdefs", "imgui.lua not properly build") - -ffi.cdef(cdecl) - ---load dll -local lib = ffi.load(cimguimodule) - ------------ImVec2 definition -local ImVec2 -ImVec2 = ffi.metatype("ImVec2",{ - __add = function(a,b) return ImVec2(a.x + b.x, a.y + b.y) end, - __sub = function(a,b) return ImVec2(a.x - b.x, a.y - b.y) end, - __unm = function(a) return ImVec2(-a.x,-a.y) end, - __mul = function(a, b) --scalar mult - if not ffi.istype(ImVec2, b) then - return ImVec2(a.x * b, a.y * b) end - return ImVec2(a * b.x, a * b.y) - end, - __tostring = function(v) return 'ImVec2<'..v.x..','..v.y..'>' end -}) -local ImVec4= {} -ImVec4.__index = ImVec4 -ImVec4 = ffi.metatype("ImVec4",ImVec4) ---the module -local M = {ImVec2 = ImVec2, ImVec4 = ImVec4 ,lib = lib} - -if jit.os == "Windows" then - function M.ToUTF(unc_str) - local buf_len = lib.igImTextCountUtf8BytesFromStr(unc_str, nil) + 1; - local buf_local = ffi.new("char[?]",buf_len) - lib.igImTextStrToUtf8(buf_local, buf_len, unc_str, nil); - return buf_local - end - - function M.FromUTF(utf_str) - local wbuf_length = lib.igImTextCountCharsFromUtf8(utf_str, nil) + 1; - local buf_local = ffi.new("ImWchar[?]",wbuf_length) - lib.igImTextStrFromUtf8(buf_local, wbuf_length, utf_str, nil,nil); - return buf_local - end -end - -M.FLT_MAX = lib.igGET_FLT_MAX() - -------------convenience function -function M.U32(a,b,c,d) return lib.igGetColorU32Vec4(ImVec4(a,b,c,d or 1)) end -----------BEGIN_AUTOGENERATED_LUA--------------------------- ---------------------------ImVector_ImDrawVert---------------------------- -local ImVector_ImDrawVert= {} -ImVector_ImDrawVert.__index = ImVector_ImDrawVert -function ImVector_ImDrawVert.__new(ctype) - local ptr = lib.ImVector_ImDrawVert_ImVector_ImDrawVert() - return ffi.gc(ptr,lib.ImVector_ImDrawVert_destroy) -end -function ImVector_ImDrawVert.ImVector_ImDrawVertVector(src) - local ptr = lib.ImVector_ImDrawVert_ImVector_ImDrawVertVector(src) - return ffi.gc(ptr,lib.ImVector_ImDrawVert_destroy) -end -ImVector_ImDrawVert._grow_capacity = lib.ImVector_ImDrawVert__grow_capacity -ImVector_ImDrawVert.back = lib.ImVector_ImDrawVert_back -ImVector_ImDrawVert.back_const = lib.ImVector_ImDrawVert_back_const -ImVector_ImDrawVert.begin = lib.ImVector_ImDrawVert_begin -ImVector_ImDrawVert.begin_const = lib.ImVector_ImDrawVert_begin_const -ImVector_ImDrawVert.capacity = lib.ImVector_ImDrawVert_capacity -ImVector_ImDrawVert.clear = lib.ImVector_ImDrawVert_clear -ImVector_ImDrawVert.empty = lib.ImVector_ImDrawVert_empty -ImVector_ImDrawVert._end = lib.ImVector_ImDrawVert_end -ImVector_ImDrawVert.end_const = lib.ImVector_ImDrawVert_end_const -ImVector_ImDrawVert.erase = lib.ImVector_ImDrawVert_erase -ImVector_ImDrawVert.eraseTPtr = lib.ImVector_ImDrawVert_eraseTPtr -ImVector_ImDrawVert.erase_unsorted = lib.ImVector_ImDrawVert_erase_unsorted -ImVector_ImDrawVert.front = lib.ImVector_ImDrawVert_front -ImVector_ImDrawVert.front_const = lib.ImVector_ImDrawVert_front_const -ImVector_ImDrawVert.index_from_ptr = lib.ImVector_ImDrawVert_index_from_ptr -ImVector_ImDrawVert.insert = lib.ImVector_ImDrawVert_insert -ImVector_ImDrawVert.pop_back = lib.ImVector_ImDrawVert_pop_back -ImVector_ImDrawVert.push_back = lib.ImVector_ImDrawVert_push_back -ImVector_ImDrawVert.push_front = lib.ImVector_ImDrawVert_push_front -ImVector_ImDrawVert.reserve = lib.ImVector_ImDrawVert_reserve -ImVector_ImDrawVert.resize = lib.ImVector_ImDrawVert_resize -ImVector_ImDrawVert.resizeT = lib.ImVector_ImDrawVert_resizeT -ImVector_ImDrawVert.size = lib.ImVector_ImDrawVert_size -ImVector_ImDrawVert.size_in_bytes = lib.ImVector_ImDrawVert_size_in_bytes -ImVector_ImDrawVert.swap = lib.ImVector_ImDrawVert_swap -M.ImVector_ImDrawVert = ffi.metatype("ImVector_ImDrawVert",ImVector_ImDrawVert) ---------------------------ImFontConfig---------------------------- -local ImFontConfig= {} -ImFontConfig.__index = ImFontConfig -function ImFontConfig.__new(ctype) - local ptr = lib.ImFontConfig_ImFontConfig() - return ffi.gc(ptr,lib.ImFontConfig_destroy) -end -M.ImFontConfig = ffi.metatype("ImFontConfig",ImFontConfig) ---------------------------ImFontGlyphRangesBuilder---------------------------- -local ImFontGlyphRangesBuilder= {} -ImFontGlyphRangesBuilder.__index = ImFontGlyphRangesBuilder -ImFontGlyphRangesBuilder.AddChar = lib.ImFontGlyphRangesBuilder_AddChar -ImFontGlyphRangesBuilder.AddRanges = lib.ImFontGlyphRangesBuilder_AddRanges -function ImFontGlyphRangesBuilder:AddText(text,text_end) - text_end = text_end or nil - return lib.ImFontGlyphRangesBuilder_AddText(self,text,text_end) -end -ImFontGlyphRangesBuilder.BuildRanges = lib.ImFontGlyphRangesBuilder_BuildRanges -ImFontGlyphRangesBuilder.Clear = lib.ImFontGlyphRangesBuilder_Clear -ImFontGlyphRangesBuilder.GetBit = lib.ImFontGlyphRangesBuilder_GetBit -function ImFontGlyphRangesBuilder.__new(ctype) - local ptr = lib.ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder() - return ffi.gc(ptr,lib.ImFontGlyphRangesBuilder_destroy) -end -ImFontGlyphRangesBuilder.SetBit = lib.ImFontGlyphRangesBuilder_SetBit -M.ImFontGlyphRangesBuilder = ffi.metatype("ImFontGlyphRangesBuilder",ImFontGlyphRangesBuilder) ---------------------------ImDrawListSplitter---------------------------- -local ImDrawListSplitter= {} -ImDrawListSplitter.__index = ImDrawListSplitter -ImDrawListSplitter.Clear = lib.ImDrawListSplitter_Clear -ImDrawListSplitter.ClearFreeMemory = lib.ImDrawListSplitter_ClearFreeMemory -function ImDrawListSplitter.__new(ctype) - local ptr = lib.ImDrawListSplitter_ImDrawListSplitter() - return ffi.gc(ptr,lib.ImDrawListSplitter_destroy) -end -ImDrawListSplitter.Merge = lib.ImDrawListSplitter_Merge -ImDrawListSplitter.SetCurrentChannel = lib.ImDrawListSplitter_SetCurrentChannel -ImDrawListSplitter.Split = lib.ImDrawListSplitter_Split -M.ImDrawListSplitter = ffi.metatype("ImDrawListSplitter",ImDrawListSplitter) ---------------------------ImVector_ImFontPtr---------------------------- -local ImVector_ImFontPtr= {} -ImVector_ImFontPtr.__index = ImVector_ImFontPtr -function ImVector_ImFontPtr.__new(ctype) - local ptr = lib.ImVector_ImFontPtr_ImVector_ImFontPtr() - return ffi.gc(ptr,lib.ImVector_ImFontPtr_destroy) -end -function ImVector_ImFontPtr.ImVector_ImFontPtrVector(src) - local ptr = lib.ImVector_ImFontPtr_ImVector_ImFontPtrVector(src) - return ffi.gc(ptr,lib.ImVector_ImFontPtr_destroy) -end -ImVector_ImFontPtr._grow_capacity = lib.ImVector_ImFontPtr__grow_capacity -ImVector_ImFontPtr.back = lib.ImVector_ImFontPtr_back -ImVector_ImFontPtr.back_const = lib.ImVector_ImFontPtr_back_const -ImVector_ImFontPtr.begin = lib.ImVector_ImFontPtr_begin -ImVector_ImFontPtr.begin_const = lib.ImVector_ImFontPtr_begin_const -ImVector_ImFontPtr.capacity = lib.ImVector_ImFontPtr_capacity -ImVector_ImFontPtr.clear = lib.ImVector_ImFontPtr_clear -ImVector_ImFontPtr.empty = lib.ImVector_ImFontPtr_empty -ImVector_ImFontPtr._end = lib.ImVector_ImFontPtr_end -ImVector_ImFontPtr.end_const = lib.ImVector_ImFontPtr_end_const -ImVector_ImFontPtr.erase = lib.ImVector_ImFontPtr_erase -ImVector_ImFontPtr.eraseTPtr = lib.ImVector_ImFontPtr_eraseTPtr -ImVector_ImFontPtr.erase_unsorted = lib.ImVector_ImFontPtr_erase_unsorted -ImVector_ImFontPtr.front = lib.ImVector_ImFontPtr_front -ImVector_ImFontPtr.front_const = lib.ImVector_ImFontPtr_front_const -ImVector_ImFontPtr.index_from_ptr = lib.ImVector_ImFontPtr_index_from_ptr -ImVector_ImFontPtr.insert = lib.ImVector_ImFontPtr_insert -ImVector_ImFontPtr.pop_back = lib.ImVector_ImFontPtr_pop_back -ImVector_ImFontPtr.push_back = lib.ImVector_ImFontPtr_push_back -ImVector_ImFontPtr.push_front = lib.ImVector_ImFontPtr_push_front -ImVector_ImFontPtr.reserve = lib.ImVector_ImFontPtr_reserve -ImVector_ImFontPtr.resize = lib.ImVector_ImFontPtr_resize -ImVector_ImFontPtr.resizeT = lib.ImVector_ImFontPtr_resizeT -ImVector_ImFontPtr.size = lib.ImVector_ImFontPtr_size -ImVector_ImFontPtr.size_in_bytes = lib.ImVector_ImFontPtr_size_in_bytes -ImVector_ImFontPtr.swap = lib.ImVector_ImFontPtr_swap -M.ImVector_ImFontPtr = ffi.metatype("ImVector_ImFontPtr",ImVector_ImFontPtr) ---------------------------ImGuiTextBuffer---------------------------- -local ImGuiTextBuffer= {} -ImGuiTextBuffer.__index = ImGuiTextBuffer -function ImGuiTextBuffer.__new(ctype) - local ptr = lib.ImGuiTextBuffer_ImGuiTextBuffer() - return ffi.gc(ptr,lib.ImGuiTextBuffer_destroy) -end -function ImGuiTextBuffer:append(str,str_end) - str_end = str_end or nil - return lib.ImGuiTextBuffer_append(self,str,str_end) -end -ImGuiTextBuffer.appendf = lib.ImGuiTextBuffer_appendf -ImGuiTextBuffer.appendfv = lib.ImGuiTextBuffer_appendfv -ImGuiTextBuffer.begin = lib.ImGuiTextBuffer_begin -ImGuiTextBuffer.c_str = lib.ImGuiTextBuffer_c_str -ImGuiTextBuffer.clear = lib.ImGuiTextBuffer_clear -ImGuiTextBuffer.empty = lib.ImGuiTextBuffer_empty -ImGuiTextBuffer._end = lib.ImGuiTextBuffer_end -ImGuiTextBuffer.reserve = lib.ImGuiTextBuffer_reserve -ImGuiTextBuffer.size = lib.ImGuiTextBuffer_size -M.ImGuiTextBuffer = ffi.metatype("ImGuiTextBuffer",ImGuiTextBuffer) ---------------------------ImGuiStyle---------------------------- -local ImGuiStyle= {} -ImGuiStyle.__index = ImGuiStyle -function ImGuiStyle.__new(ctype) - local ptr = lib.ImGuiStyle_ImGuiStyle() - return ffi.gc(ptr,lib.ImGuiStyle_destroy) -end -ImGuiStyle.ScaleAllSizes = lib.ImGuiStyle_ScaleAllSizes -M.ImGuiStyle = ffi.metatype("ImGuiStyle",ImGuiStyle) ---------------------------ImDrawData---------------------------- -local ImDrawData= {} -ImDrawData.__index = ImDrawData -ImDrawData.Clear = lib.ImDrawData_Clear -ImDrawData.DeIndexAllBuffers = lib.ImDrawData_DeIndexAllBuffers -function ImDrawData.__new(ctype) - local ptr = lib.ImDrawData_ImDrawData() - return ffi.gc(ptr,lib.ImDrawData_destroy) -end -ImDrawData.ScaleClipRects = lib.ImDrawData_ScaleClipRects -M.ImDrawData = ffi.metatype("ImDrawData",ImDrawData) ---------------------------ImVector_ImVec2---------------------------- -local ImVector_ImVec2= {} -ImVector_ImVec2.__index = ImVector_ImVec2 -function ImVector_ImVec2.__new(ctype) - local ptr = lib.ImVector_ImVec2_ImVector_ImVec2() - return ffi.gc(ptr,lib.ImVector_ImVec2_destroy) -end -function ImVector_ImVec2.ImVector_ImVec2Vector(src) - local ptr = lib.ImVector_ImVec2_ImVector_ImVec2Vector(src) - return ffi.gc(ptr,lib.ImVector_ImVec2_destroy) -end -ImVector_ImVec2._grow_capacity = lib.ImVector_ImVec2__grow_capacity -ImVector_ImVec2.back = lib.ImVector_ImVec2_back -ImVector_ImVec2.back_const = lib.ImVector_ImVec2_back_const -ImVector_ImVec2.begin = lib.ImVector_ImVec2_begin -ImVector_ImVec2.begin_const = lib.ImVector_ImVec2_begin_const -ImVector_ImVec2.capacity = lib.ImVector_ImVec2_capacity -ImVector_ImVec2.clear = lib.ImVector_ImVec2_clear -ImVector_ImVec2.empty = lib.ImVector_ImVec2_empty -ImVector_ImVec2._end = lib.ImVector_ImVec2_end -ImVector_ImVec2.end_const = lib.ImVector_ImVec2_end_const -ImVector_ImVec2.erase = lib.ImVector_ImVec2_erase -ImVector_ImVec2.eraseTPtr = lib.ImVector_ImVec2_eraseTPtr -ImVector_ImVec2.erase_unsorted = lib.ImVector_ImVec2_erase_unsorted -ImVector_ImVec2.front = lib.ImVector_ImVec2_front -ImVector_ImVec2.front_const = lib.ImVector_ImVec2_front_const -ImVector_ImVec2.index_from_ptr = lib.ImVector_ImVec2_index_from_ptr -ImVector_ImVec2.insert = lib.ImVector_ImVec2_insert -ImVector_ImVec2.pop_back = lib.ImVector_ImVec2_pop_back -ImVector_ImVec2.push_back = lib.ImVector_ImVec2_push_back -ImVector_ImVec2.push_front = lib.ImVector_ImVec2_push_front -ImVector_ImVec2.reserve = lib.ImVector_ImVec2_reserve -ImVector_ImVec2.resize = lib.ImVector_ImVec2_resize -ImVector_ImVec2.resizeT = lib.ImVector_ImVec2_resizeT -ImVector_ImVec2.size = lib.ImVector_ImVec2_size -ImVector_ImVec2.size_in_bytes = lib.ImVector_ImVec2_size_in_bytes -ImVector_ImVec2.swap = lib.ImVector_ImVec2_swap -M.ImVector_ImVec2 = ffi.metatype("ImVector_ImVec2",ImVector_ImVec2) ---------------------------ImVector_ImFontAtlasCustomRect---------------------------- -local ImVector_ImFontAtlasCustomRect= {} -ImVector_ImFontAtlasCustomRect.__index = ImVector_ImFontAtlasCustomRect -function ImVector_ImFontAtlasCustomRect.__new(ctype) - local ptr = lib.ImVector_ImFontAtlasCustomRect_ImVector_ImFontAtlasCustomRect() - return ffi.gc(ptr,lib.ImVector_ImFontAtlasCustomRect_destroy) -end -function ImVector_ImFontAtlasCustomRect.ImVector_ImFontAtlasCustomRectVector(src) - local ptr = lib.ImVector_ImFontAtlasCustomRect_ImVector_ImFontAtlasCustomRectVector(src) - return ffi.gc(ptr,lib.ImVector_ImFontAtlasCustomRect_destroy) -end -ImVector_ImFontAtlasCustomRect._grow_capacity = lib.ImVector_ImFontAtlasCustomRect__grow_capacity -ImVector_ImFontAtlasCustomRect.back = lib.ImVector_ImFontAtlasCustomRect_back -ImVector_ImFontAtlasCustomRect.back_const = lib.ImVector_ImFontAtlasCustomRect_back_const -ImVector_ImFontAtlasCustomRect.begin = lib.ImVector_ImFontAtlasCustomRect_begin -ImVector_ImFontAtlasCustomRect.begin_const = lib.ImVector_ImFontAtlasCustomRect_begin_const -ImVector_ImFontAtlasCustomRect.capacity = lib.ImVector_ImFontAtlasCustomRect_capacity -ImVector_ImFontAtlasCustomRect.clear = lib.ImVector_ImFontAtlasCustomRect_clear -ImVector_ImFontAtlasCustomRect.empty = lib.ImVector_ImFontAtlasCustomRect_empty -ImVector_ImFontAtlasCustomRect._end = lib.ImVector_ImFontAtlasCustomRect_end -ImVector_ImFontAtlasCustomRect.end_const = lib.ImVector_ImFontAtlasCustomRect_end_const -ImVector_ImFontAtlasCustomRect.erase = lib.ImVector_ImFontAtlasCustomRect_erase -ImVector_ImFontAtlasCustomRect.eraseTPtr = lib.ImVector_ImFontAtlasCustomRect_eraseTPtr -ImVector_ImFontAtlasCustomRect.erase_unsorted = lib.ImVector_ImFontAtlasCustomRect_erase_unsorted -ImVector_ImFontAtlasCustomRect.front = lib.ImVector_ImFontAtlasCustomRect_front -ImVector_ImFontAtlasCustomRect.front_const = lib.ImVector_ImFontAtlasCustomRect_front_const -ImVector_ImFontAtlasCustomRect.index_from_ptr = lib.ImVector_ImFontAtlasCustomRect_index_from_ptr -ImVector_ImFontAtlasCustomRect.insert = lib.ImVector_ImFontAtlasCustomRect_insert -ImVector_ImFontAtlasCustomRect.pop_back = lib.ImVector_ImFontAtlasCustomRect_pop_back -ImVector_ImFontAtlasCustomRect.push_back = lib.ImVector_ImFontAtlasCustomRect_push_back -ImVector_ImFontAtlasCustomRect.push_front = lib.ImVector_ImFontAtlasCustomRect_push_front -ImVector_ImFontAtlasCustomRect.reserve = lib.ImVector_ImFontAtlasCustomRect_reserve -ImVector_ImFontAtlasCustomRect.resize = lib.ImVector_ImFontAtlasCustomRect_resize -ImVector_ImFontAtlasCustomRect.resizeT = lib.ImVector_ImFontAtlasCustomRect_resizeT -ImVector_ImFontAtlasCustomRect.size = lib.ImVector_ImFontAtlasCustomRect_size -ImVector_ImFontAtlasCustomRect.size_in_bytes = lib.ImVector_ImFontAtlasCustomRect_size_in_bytes -ImVector_ImFontAtlasCustomRect.swap = lib.ImVector_ImFontAtlasCustomRect_swap -M.ImVector_ImFontAtlasCustomRect = ffi.metatype("ImVector_ImFontAtlasCustomRect",ImVector_ImFontAtlasCustomRect) ---------------------------ImColor---------------------------- -local ImColor= {} -ImColor.__index = ImColor -function ImColor:HSV(h,s,v,a) - a = a or 1.0 - local nonUDT_out = ffi.new("ImColor") - lib.ImColor_HSV_nonUDT(nonUDT_out,self,h,s,v,a) - return nonUDT_out -end -function ImColor:HSV_nonUDT2(h,s,v,a) - a = a or 1.0 - return lib.ImColor_HSV_nonUDT2(self,h,s,v,a) -end -function ImColor.__new(ctype) - local ptr = lib.ImColor_ImColor() - return ffi.gc(ptr,lib.ImColor_destroy) -end -function ImColor.ImColorInt(r,g,b,a) - if a == nil then a = 255 end - local ptr = lib.ImColor_ImColorInt(r,g,b,a) - return ffi.gc(ptr,lib.ImColor_destroy) -end -function ImColor.ImColorU32(rgba) - local ptr = lib.ImColor_ImColorU32(rgba) - return ffi.gc(ptr,lib.ImColor_destroy) -end -function ImColor.ImColorFloat(r,g,b,a) - if a == nil then a = 1.0 end - local ptr = lib.ImColor_ImColorFloat(r,g,b,a) - return ffi.gc(ptr,lib.ImColor_destroy) -end -function ImColor.ImColorVec4(col) - local ptr = lib.ImColor_ImColorVec4(col) - return ffi.gc(ptr,lib.ImColor_destroy) -end -function ImColor:SetHSV(h,s,v,a) - a = a or 1.0 - return lib.ImColor_SetHSV(self,h,s,v,a) -end -M.ImColor = ffi.metatype("ImColor",ImColor) ---------------------------ImVector_ImDrawChannel---------------------------- -local ImVector_ImDrawChannel= {} -ImVector_ImDrawChannel.__index = ImVector_ImDrawChannel -function ImVector_ImDrawChannel.__new(ctype) - local ptr = lib.ImVector_ImDrawChannel_ImVector_ImDrawChannel() - return ffi.gc(ptr,lib.ImVector_ImDrawChannel_destroy) -end -function ImVector_ImDrawChannel.ImVector_ImDrawChannelVector(src) - local ptr = lib.ImVector_ImDrawChannel_ImVector_ImDrawChannelVector(src) - return ffi.gc(ptr,lib.ImVector_ImDrawChannel_destroy) -end -ImVector_ImDrawChannel._grow_capacity = lib.ImVector_ImDrawChannel__grow_capacity -ImVector_ImDrawChannel.back = lib.ImVector_ImDrawChannel_back -ImVector_ImDrawChannel.back_const = lib.ImVector_ImDrawChannel_back_const -ImVector_ImDrawChannel.begin = lib.ImVector_ImDrawChannel_begin -ImVector_ImDrawChannel.begin_const = lib.ImVector_ImDrawChannel_begin_const -ImVector_ImDrawChannel.capacity = lib.ImVector_ImDrawChannel_capacity -ImVector_ImDrawChannel.clear = lib.ImVector_ImDrawChannel_clear -ImVector_ImDrawChannel.empty = lib.ImVector_ImDrawChannel_empty -ImVector_ImDrawChannel._end = lib.ImVector_ImDrawChannel_end -ImVector_ImDrawChannel.end_const = lib.ImVector_ImDrawChannel_end_const -ImVector_ImDrawChannel.erase = lib.ImVector_ImDrawChannel_erase -ImVector_ImDrawChannel.eraseTPtr = lib.ImVector_ImDrawChannel_eraseTPtr -ImVector_ImDrawChannel.erase_unsorted = lib.ImVector_ImDrawChannel_erase_unsorted -ImVector_ImDrawChannel.front = lib.ImVector_ImDrawChannel_front -ImVector_ImDrawChannel.front_const = lib.ImVector_ImDrawChannel_front_const -ImVector_ImDrawChannel.index_from_ptr = lib.ImVector_ImDrawChannel_index_from_ptr -ImVector_ImDrawChannel.insert = lib.ImVector_ImDrawChannel_insert -ImVector_ImDrawChannel.pop_back = lib.ImVector_ImDrawChannel_pop_back -ImVector_ImDrawChannel.push_back = lib.ImVector_ImDrawChannel_push_back -ImVector_ImDrawChannel.push_front = lib.ImVector_ImDrawChannel_push_front -ImVector_ImDrawChannel.reserve = lib.ImVector_ImDrawChannel_reserve -ImVector_ImDrawChannel.resize = lib.ImVector_ImDrawChannel_resize -ImVector_ImDrawChannel.resizeT = lib.ImVector_ImDrawChannel_resizeT -ImVector_ImDrawChannel.size = lib.ImVector_ImDrawChannel_size -ImVector_ImDrawChannel.size_in_bytes = lib.ImVector_ImDrawChannel_size_in_bytes -ImVector_ImDrawChannel.swap = lib.ImVector_ImDrawChannel_swap -M.ImVector_ImDrawChannel = ffi.metatype("ImVector_ImDrawChannel",ImVector_ImDrawChannel) ---------------------------ImDrawList---------------------------- -local ImDrawList= {} -ImDrawList.__index = ImDrawList -function ImDrawList:AddBezierCurve(pos0,cp0,cp1,pos1,col,thickness,num_segments) - num_segments = num_segments or 0 - return lib.ImDrawList_AddBezierCurve(self,pos0,cp0,cp1,pos1,col,thickness,num_segments) -end -ImDrawList.AddCallback = lib.ImDrawList_AddCallback -function ImDrawList:AddCircle(centre,radius,col,num_segments,thickness) - num_segments = num_segments or 12 - thickness = thickness or 1.0 - return lib.ImDrawList_AddCircle(self,centre,radius,col,num_segments,thickness) -end -function ImDrawList:AddCircleFilled(centre,radius,col,num_segments) - num_segments = num_segments or 12 - return lib.ImDrawList_AddCircleFilled(self,centre,radius,col,num_segments) -end -ImDrawList.AddConvexPolyFilled = lib.ImDrawList_AddConvexPolyFilled -ImDrawList.AddDrawCmd = lib.ImDrawList_AddDrawCmd -function ImDrawList:AddImage(user_texture_id,a,b,uv_a,uv_b,col) - uv_b = uv_b or ImVec2(1,1) - uv_a = uv_a or ImVec2(0,0) - col = col or 4294967295 - return lib.ImDrawList_AddImage(self,user_texture_id,a,b,uv_a,uv_b,col) -end -function ImDrawList:AddImageQuad(user_texture_id,a,b,c,d,uv_a,uv_b,uv_c,uv_d,col) - uv_c = uv_c or ImVec2(1,1) - uv_a = uv_a or ImVec2(0,0) - col = col or 4294967295 - uv_b = uv_b or ImVec2(1,0) - uv_d = uv_d or ImVec2(0,1) - return lib.ImDrawList_AddImageQuad(self,user_texture_id,a,b,c,d,uv_a,uv_b,uv_c,uv_d,col) -end -function ImDrawList:AddImageRounded(user_texture_id,a,b,uv_a,uv_b,col,rounding,rounding_corners) - rounding_corners = rounding_corners or lib.ImDrawCornerFlags_All - return lib.ImDrawList_AddImageRounded(self,user_texture_id,a,b,uv_a,uv_b,col,rounding,rounding_corners) -end -function ImDrawList:AddLine(a,b,col,thickness) - thickness = thickness or 1.0 - return lib.ImDrawList_AddLine(self,a,b,col,thickness) -end -ImDrawList.AddPolyline = lib.ImDrawList_AddPolyline -function ImDrawList:AddQuad(a,b,c,d,col,thickness) - thickness = thickness or 1.0 - return lib.ImDrawList_AddQuad(self,a,b,c,d,col,thickness) -end -ImDrawList.AddQuadFilled = lib.ImDrawList_AddQuadFilled -function ImDrawList:AddRect(a,b,col,rounding,rounding_corners,thickness) - rounding = rounding or 0.0 - thickness = thickness or 1.0 - rounding_corners = rounding_corners or lib.ImDrawCornerFlags_All - return lib.ImDrawList_AddRect(self,a,b,col,rounding,rounding_corners,thickness) -end -function ImDrawList:AddRectFilled(a,b,col,rounding,rounding_corners) - rounding = rounding or 0.0 - rounding_corners = rounding_corners or lib.ImDrawCornerFlags_All - return lib.ImDrawList_AddRectFilled(self,a,b,col,rounding,rounding_corners) -end -ImDrawList.AddRectFilledMultiColor = lib.ImDrawList_AddRectFilledMultiColor -function ImDrawList:AddText(pos,col,text_begin,text_end) - text_end = text_end or nil - return lib.ImDrawList_AddText(self,pos,col,text_begin,text_end) -end -function ImDrawList:AddTextFontPtr(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect) - text_end = text_end or nil - cpu_fine_clip_rect = cpu_fine_clip_rect or nil - wrap_width = wrap_width or 0.0 - return lib.ImDrawList_AddTextFontPtr(self,font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect) -end -function ImDrawList:AddTriangle(a,b,c,col,thickness) - thickness = thickness or 1.0 - return lib.ImDrawList_AddTriangle(self,a,b,c,col,thickness) -end -ImDrawList.AddTriangleFilled = lib.ImDrawList_AddTriangleFilled -ImDrawList.ChannelsMerge = lib.ImDrawList_ChannelsMerge -ImDrawList.ChannelsSetCurrent = lib.ImDrawList_ChannelsSetCurrent -ImDrawList.ChannelsSplit = lib.ImDrawList_ChannelsSplit -ImDrawList.Clear = lib.ImDrawList_Clear -ImDrawList.ClearFreeMemory = lib.ImDrawList_ClearFreeMemory -ImDrawList.CloneOutput = lib.ImDrawList_CloneOutput -function ImDrawList:GetClipRectMax() - local nonUDT_out = ffi.new("ImVec2") - lib.ImDrawList_GetClipRectMax_nonUDT(nonUDT_out,self) - return nonUDT_out -end -ImDrawList.GetClipRectMax_nonUDT2 = lib.ImDrawList_GetClipRectMax_nonUDT2 -function ImDrawList:GetClipRectMin() - local nonUDT_out = ffi.new("ImVec2") - lib.ImDrawList_GetClipRectMin_nonUDT(nonUDT_out,self) - return nonUDT_out -end -ImDrawList.GetClipRectMin_nonUDT2 = lib.ImDrawList_GetClipRectMin_nonUDT2 -function ImDrawList.__new(ctype,shared_data) - local ptr = lib.ImDrawList_ImDrawList(shared_data) - return ffi.gc(ptr,lib.ImDrawList_destroy) -end -function ImDrawList:PathArcTo(centre,radius,a_min,a_max,num_segments) - num_segments = num_segments or 10 - return lib.ImDrawList_PathArcTo(self,centre,radius,a_min,a_max,num_segments) -end -ImDrawList.PathArcToFast = lib.ImDrawList_PathArcToFast -function ImDrawList:PathBezierCurveTo(p1,p2,p3,num_segments) - num_segments = num_segments or 0 - return lib.ImDrawList_PathBezierCurveTo(self,p1,p2,p3,num_segments) -end -ImDrawList.PathClear = lib.ImDrawList_PathClear -ImDrawList.PathFillConvex = lib.ImDrawList_PathFillConvex -ImDrawList.PathLineTo = lib.ImDrawList_PathLineTo -ImDrawList.PathLineToMergeDuplicate = lib.ImDrawList_PathLineToMergeDuplicate -function ImDrawList:PathRect(rect_min,rect_max,rounding,rounding_corners) - rounding = rounding or 0.0 - rounding_corners = rounding_corners or lib.ImDrawCornerFlags_All - return lib.ImDrawList_PathRect(self,rect_min,rect_max,rounding,rounding_corners) -end -function ImDrawList:PathStroke(col,closed,thickness) - thickness = thickness or 1.0 - return lib.ImDrawList_PathStroke(self,col,closed,thickness) -end -ImDrawList.PopClipRect = lib.ImDrawList_PopClipRect -ImDrawList.PopTextureID = lib.ImDrawList_PopTextureID -ImDrawList.PrimQuadUV = lib.ImDrawList_PrimQuadUV -ImDrawList.PrimRect = lib.ImDrawList_PrimRect -ImDrawList.PrimRectUV = lib.ImDrawList_PrimRectUV -ImDrawList.PrimReserve = lib.ImDrawList_PrimReserve -ImDrawList.PrimVtx = lib.ImDrawList_PrimVtx -ImDrawList.PrimWriteIdx = lib.ImDrawList_PrimWriteIdx -ImDrawList.PrimWriteVtx = lib.ImDrawList_PrimWriteVtx -function ImDrawList:PushClipRect(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect) - intersect_with_current_clip_rect = intersect_with_current_clip_rect or false - return lib.ImDrawList_PushClipRect(self,clip_rect_min,clip_rect_max,intersect_with_current_clip_rect) -end -ImDrawList.PushClipRectFullScreen = lib.ImDrawList_PushClipRectFullScreen -ImDrawList.PushTextureID = lib.ImDrawList_PushTextureID -ImDrawList.UpdateClipRect = lib.ImDrawList_UpdateClipRect -ImDrawList.UpdateTextureID = lib.ImDrawList_UpdateTextureID -M.ImDrawList = ffi.metatype("ImDrawList",ImDrawList) ---------------------------ImGuiTextRange---------------------------- -local ImGuiTextRange= {} -ImGuiTextRange.__index = ImGuiTextRange -function ImGuiTextRange.__new(ctype) - local ptr = lib.ImGuiTextRange_ImGuiTextRange() - return ffi.gc(ptr,lib.ImGuiTextRange_destroy) -end -function ImGuiTextRange.ImGuiTextRangeStr(_b,_e) - local ptr = lib.ImGuiTextRange_ImGuiTextRangeStr(_b,_e) - return ffi.gc(ptr,lib.ImGuiTextRange_destroy) -end -ImGuiTextRange.empty = lib.ImGuiTextRange_empty -ImGuiTextRange.split = lib.ImGuiTextRange_split -M.ImGuiTextRange = ffi.metatype("ImGuiTextRange",ImGuiTextRange) ---------------------------ImVector_ImFontConfig---------------------------- -local ImVector_ImFontConfig= {} -ImVector_ImFontConfig.__index = ImVector_ImFontConfig -function ImVector_ImFontConfig.__new(ctype) - local ptr = lib.ImVector_ImFontConfig_ImVector_ImFontConfig() - return ffi.gc(ptr,lib.ImVector_ImFontConfig_destroy) -end -function ImVector_ImFontConfig.ImVector_ImFontConfigVector(src) - local ptr = lib.ImVector_ImFontConfig_ImVector_ImFontConfigVector(src) - return ffi.gc(ptr,lib.ImVector_ImFontConfig_destroy) -end -ImVector_ImFontConfig._grow_capacity = lib.ImVector_ImFontConfig__grow_capacity -ImVector_ImFontConfig.back = lib.ImVector_ImFontConfig_back -ImVector_ImFontConfig.back_const = lib.ImVector_ImFontConfig_back_const -ImVector_ImFontConfig.begin = lib.ImVector_ImFontConfig_begin -ImVector_ImFontConfig.begin_const = lib.ImVector_ImFontConfig_begin_const -ImVector_ImFontConfig.capacity = lib.ImVector_ImFontConfig_capacity -ImVector_ImFontConfig.clear = lib.ImVector_ImFontConfig_clear -ImVector_ImFontConfig.empty = lib.ImVector_ImFontConfig_empty -ImVector_ImFontConfig._end = lib.ImVector_ImFontConfig_end -ImVector_ImFontConfig.end_const = lib.ImVector_ImFontConfig_end_const -ImVector_ImFontConfig.erase = lib.ImVector_ImFontConfig_erase -ImVector_ImFontConfig.eraseTPtr = lib.ImVector_ImFontConfig_eraseTPtr -ImVector_ImFontConfig.erase_unsorted = lib.ImVector_ImFontConfig_erase_unsorted -ImVector_ImFontConfig.front = lib.ImVector_ImFontConfig_front -ImVector_ImFontConfig.front_const = lib.ImVector_ImFontConfig_front_const -ImVector_ImFontConfig.index_from_ptr = lib.ImVector_ImFontConfig_index_from_ptr -ImVector_ImFontConfig.insert = lib.ImVector_ImFontConfig_insert -ImVector_ImFontConfig.pop_back = lib.ImVector_ImFontConfig_pop_back -ImVector_ImFontConfig.push_back = lib.ImVector_ImFontConfig_push_back -ImVector_ImFontConfig.push_front = lib.ImVector_ImFontConfig_push_front -ImVector_ImFontConfig.reserve = lib.ImVector_ImFontConfig_reserve -ImVector_ImFontConfig.resize = lib.ImVector_ImFontConfig_resize -ImVector_ImFontConfig.resizeT = lib.ImVector_ImFontConfig_resizeT -ImVector_ImFontConfig.size = lib.ImVector_ImFontConfig_size -ImVector_ImFontConfig.size_in_bytes = lib.ImVector_ImFontConfig_size_in_bytes -ImVector_ImFontConfig.swap = lib.ImVector_ImFontConfig_swap -M.ImVector_ImFontConfig = ffi.metatype("ImVector_ImFontConfig",ImVector_ImFontConfig) ---------------------------ImVector_ImU32---------------------------- -local ImVector_ImU32= {} -ImVector_ImU32.__index = ImVector_ImU32 -function ImVector_ImU32.__new(ctype) - local ptr = lib.ImVector_ImU32_ImVector_ImU32() - return ffi.gc(ptr,lib.ImVector_ImU32_destroy) -end -function ImVector_ImU32.ImVector_ImU32Vector(src) - local ptr = lib.ImVector_ImU32_ImVector_ImU32Vector(src) - return ffi.gc(ptr,lib.ImVector_ImU32_destroy) -end -ImVector_ImU32._grow_capacity = lib.ImVector_ImU32__grow_capacity -ImVector_ImU32.back = lib.ImVector_ImU32_back -ImVector_ImU32.back_const = lib.ImVector_ImU32_back_const -ImVector_ImU32.begin = lib.ImVector_ImU32_begin -ImVector_ImU32.begin_const = lib.ImVector_ImU32_begin_const -ImVector_ImU32.capacity = lib.ImVector_ImU32_capacity -ImVector_ImU32.clear = lib.ImVector_ImU32_clear -ImVector_ImU32.empty = lib.ImVector_ImU32_empty -ImVector_ImU32._end = lib.ImVector_ImU32_end -ImVector_ImU32.end_const = lib.ImVector_ImU32_end_const -ImVector_ImU32.erase = lib.ImVector_ImU32_erase -ImVector_ImU32.eraseTPtr = lib.ImVector_ImU32_eraseTPtr -ImVector_ImU32.erase_unsorted = lib.ImVector_ImU32_erase_unsorted -ImVector_ImU32.front = lib.ImVector_ImU32_front -ImVector_ImU32.front_const = lib.ImVector_ImU32_front_const -ImVector_ImU32.index_from_ptr = lib.ImVector_ImU32_index_from_ptr -ImVector_ImU32.insert = lib.ImVector_ImU32_insert -ImVector_ImU32.pop_back = lib.ImVector_ImU32_pop_back -ImVector_ImU32.push_back = lib.ImVector_ImU32_push_back -ImVector_ImU32.push_front = lib.ImVector_ImU32_push_front -ImVector_ImU32.reserve = lib.ImVector_ImU32_reserve -ImVector_ImU32.resize = lib.ImVector_ImU32_resize -ImVector_ImU32.resizeT = lib.ImVector_ImU32_resizeT -ImVector_ImU32.size = lib.ImVector_ImU32_size -ImVector_ImU32.size_in_bytes = lib.ImVector_ImU32_size_in_bytes -ImVector_ImU32.swap = lib.ImVector_ImU32_swap -M.ImVector_ImU32 = ffi.metatype("ImVector_ImU32",ImVector_ImU32) ---------------------------ImGuiListClipper---------------------------- -local ImGuiListClipper= {} -ImGuiListClipper.__index = ImGuiListClipper -function ImGuiListClipper:Begin(items_count,items_height) - items_height = items_height or -1.0 - return lib.ImGuiListClipper_Begin(self,items_count,items_height) -end -ImGuiListClipper.End = lib.ImGuiListClipper_End -function ImGuiListClipper.__new(ctype,items_count,items_height) - if items_height == nil then items_height = -1.0 end - if items_count == nil then items_count = -1 end - local ptr = lib.ImGuiListClipper_ImGuiListClipper(items_count,items_height) - return ffi.gc(ptr,lib.ImGuiListClipper_destroy) -end -ImGuiListClipper.Step = lib.ImGuiListClipper_Step -M.ImGuiListClipper = ffi.metatype("ImGuiListClipper",ImGuiListClipper) ---------------------------ImGuiIO---------------------------- -local ImGuiIO= {} -ImGuiIO.__index = ImGuiIO -ImGuiIO.AddInputCharacter = lib.ImGuiIO_AddInputCharacter -ImGuiIO.AddInputCharactersUTF8 = lib.ImGuiIO_AddInputCharactersUTF8 -ImGuiIO.ClearInputCharacters = lib.ImGuiIO_ClearInputCharacters -function ImGuiIO.__new(ctype) - local ptr = lib.ImGuiIO_ImGuiIO() - return ffi.gc(ptr,lib.ImGuiIO_destroy) -end -M.ImGuiIO = ffi.metatype("ImGuiIO",ImGuiIO) ---------------------------ImVector_ImTextureID---------------------------- -local ImVector_ImTextureID= {} -ImVector_ImTextureID.__index = ImVector_ImTextureID -function ImVector_ImTextureID.__new(ctype) - local ptr = lib.ImVector_ImTextureID_ImVector_ImTextureID() - return ffi.gc(ptr,lib.ImVector_ImTextureID_destroy) -end -function ImVector_ImTextureID.ImVector_ImTextureIDVector(src) - local ptr = lib.ImVector_ImTextureID_ImVector_ImTextureIDVector(src) - return ffi.gc(ptr,lib.ImVector_ImTextureID_destroy) -end -ImVector_ImTextureID._grow_capacity = lib.ImVector_ImTextureID__grow_capacity -ImVector_ImTextureID.back = lib.ImVector_ImTextureID_back -ImVector_ImTextureID.back_const = lib.ImVector_ImTextureID_back_const -ImVector_ImTextureID.begin = lib.ImVector_ImTextureID_begin -ImVector_ImTextureID.begin_const = lib.ImVector_ImTextureID_begin_const -ImVector_ImTextureID.capacity = lib.ImVector_ImTextureID_capacity -ImVector_ImTextureID.clear = lib.ImVector_ImTextureID_clear -ImVector_ImTextureID.empty = lib.ImVector_ImTextureID_empty -ImVector_ImTextureID._end = lib.ImVector_ImTextureID_end -ImVector_ImTextureID.end_const = lib.ImVector_ImTextureID_end_const -ImVector_ImTextureID.erase = lib.ImVector_ImTextureID_erase -ImVector_ImTextureID.eraseTPtr = lib.ImVector_ImTextureID_eraseTPtr -ImVector_ImTextureID.erase_unsorted = lib.ImVector_ImTextureID_erase_unsorted -ImVector_ImTextureID.front = lib.ImVector_ImTextureID_front -ImVector_ImTextureID.front_const = lib.ImVector_ImTextureID_front_const -ImVector_ImTextureID.index_from_ptr = lib.ImVector_ImTextureID_index_from_ptr -ImVector_ImTextureID.insert = lib.ImVector_ImTextureID_insert -ImVector_ImTextureID.pop_back = lib.ImVector_ImTextureID_pop_back -ImVector_ImTextureID.push_back = lib.ImVector_ImTextureID_push_back -ImVector_ImTextureID.push_front = lib.ImVector_ImTextureID_push_front -ImVector_ImTextureID.reserve = lib.ImVector_ImTextureID_reserve -ImVector_ImTextureID.resize = lib.ImVector_ImTextureID_resize -ImVector_ImTextureID.resizeT = lib.ImVector_ImTextureID_resizeT -ImVector_ImTextureID.size = lib.ImVector_ImTextureID_size -ImVector_ImTextureID.size_in_bytes = lib.ImVector_ImTextureID_size_in_bytes -ImVector_ImTextureID.swap = lib.ImVector_ImTextureID_swap -M.ImVector_ImTextureID = ffi.metatype("ImVector_ImTextureID",ImVector_ImTextureID) ---------------------------ImVector_ImDrawCmd---------------------------- -local ImVector_ImDrawCmd= {} -ImVector_ImDrawCmd.__index = ImVector_ImDrawCmd -function ImVector_ImDrawCmd.__new(ctype) - local ptr = lib.ImVector_ImDrawCmd_ImVector_ImDrawCmd() - return ffi.gc(ptr,lib.ImVector_ImDrawCmd_destroy) -end -function ImVector_ImDrawCmd.ImVector_ImDrawCmdVector(src) - local ptr = lib.ImVector_ImDrawCmd_ImVector_ImDrawCmdVector(src) - return ffi.gc(ptr,lib.ImVector_ImDrawCmd_destroy) -end -ImVector_ImDrawCmd._grow_capacity = lib.ImVector_ImDrawCmd__grow_capacity -ImVector_ImDrawCmd.back = lib.ImVector_ImDrawCmd_back -ImVector_ImDrawCmd.back_const = lib.ImVector_ImDrawCmd_back_const -ImVector_ImDrawCmd.begin = lib.ImVector_ImDrawCmd_begin -ImVector_ImDrawCmd.begin_const = lib.ImVector_ImDrawCmd_begin_const -ImVector_ImDrawCmd.capacity = lib.ImVector_ImDrawCmd_capacity -ImVector_ImDrawCmd.clear = lib.ImVector_ImDrawCmd_clear -ImVector_ImDrawCmd.empty = lib.ImVector_ImDrawCmd_empty -ImVector_ImDrawCmd._end = lib.ImVector_ImDrawCmd_end -ImVector_ImDrawCmd.end_const = lib.ImVector_ImDrawCmd_end_const -ImVector_ImDrawCmd.erase = lib.ImVector_ImDrawCmd_erase -ImVector_ImDrawCmd.eraseTPtr = lib.ImVector_ImDrawCmd_eraseTPtr -ImVector_ImDrawCmd.erase_unsorted = lib.ImVector_ImDrawCmd_erase_unsorted -ImVector_ImDrawCmd.front = lib.ImVector_ImDrawCmd_front -ImVector_ImDrawCmd.front_const = lib.ImVector_ImDrawCmd_front_const -ImVector_ImDrawCmd.index_from_ptr = lib.ImVector_ImDrawCmd_index_from_ptr -ImVector_ImDrawCmd.insert = lib.ImVector_ImDrawCmd_insert -ImVector_ImDrawCmd.pop_back = lib.ImVector_ImDrawCmd_pop_back -ImVector_ImDrawCmd.push_back = lib.ImVector_ImDrawCmd_push_back -ImVector_ImDrawCmd.push_front = lib.ImVector_ImDrawCmd_push_front -ImVector_ImDrawCmd.reserve = lib.ImVector_ImDrawCmd_reserve -ImVector_ImDrawCmd.resize = lib.ImVector_ImDrawCmd_resize -ImVector_ImDrawCmd.resizeT = lib.ImVector_ImDrawCmd_resizeT -ImVector_ImDrawCmd.size = lib.ImVector_ImDrawCmd_size -ImVector_ImDrawCmd.size_in_bytes = lib.ImVector_ImDrawCmd_size_in_bytes -ImVector_ImDrawCmd.swap = lib.ImVector_ImDrawCmd_swap -M.ImVector_ImDrawCmd = ffi.metatype("ImVector_ImDrawCmd",ImVector_ImDrawCmd) ---------------------------ImGuiStorage---------------------------- -local ImGuiStorage= {} -ImGuiStorage.__index = ImGuiStorage -ImGuiStorage.BuildSortByKey = lib.ImGuiStorage_BuildSortByKey -ImGuiStorage.Clear = lib.ImGuiStorage_Clear -function ImGuiStorage:GetBool(key,default_val) - default_val = default_val or false - return lib.ImGuiStorage_GetBool(self,key,default_val) -end -function ImGuiStorage:GetBoolRef(key,default_val) - default_val = default_val or false - return lib.ImGuiStorage_GetBoolRef(self,key,default_val) -end -function ImGuiStorage:GetFloat(key,default_val) - default_val = default_val or 0.0 - return lib.ImGuiStorage_GetFloat(self,key,default_val) -end -function ImGuiStorage:GetFloatRef(key,default_val) - default_val = default_val or 0.0 - return lib.ImGuiStorage_GetFloatRef(self,key,default_val) -end -function ImGuiStorage:GetInt(key,default_val) - default_val = default_val or 0 - return lib.ImGuiStorage_GetInt(self,key,default_val) -end -function ImGuiStorage:GetIntRef(key,default_val) - default_val = default_val or 0 - return lib.ImGuiStorage_GetIntRef(self,key,default_val) -end -ImGuiStorage.GetVoidPtr = lib.ImGuiStorage_GetVoidPtr -function ImGuiStorage:GetVoidPtrRef(key,default_val) - default_val = default_val or nil - return lib.ImGuiStorage_GetVoidPtrRef(self,key,default_val) -end -ImGuiStorage.SetAllInt = lib.ImGuiStorage_SetAllInt -ImGuiStorage.SetBool = lib.ImGuiStorage_SetBool -ImGuiStorage.SetFloat = lib.ImGuiStorage_SetFloat -ImGuiStorage.SetInt = lib.ImGuiStorage_SetInt -ImGuiStorage.SetVoidPtr = lib.ImGuiStorage_SetVoidPtr -M.ImGuiStorage = ffi.metatype("ImGuiStorage",ImGuiStorage) ---------------------------ImFontAtlasCustomRect---------------------------- -local ImFontAtlasCustomRect= {} -ImFontAtlasCustomRect.__index = ImFontAtlasCustomRect -function ImFontAtlasCustomRect.__new(ctype) - local ptr = lib.ImFontAtlasCustomRect_ImFontAtlasCustomRect() - return ffi.gc(ptr,lib.ImFontAtlasCustomRect_destroy) -end -ImFontAtlasCustomRect.IsPacked = lib.ImFontAtlasCustomRect_IsPacked -M.ImFontAtlasCustomRect = ffi.metatype("ImFontAtlasCustomRect",ImFontAtlasCustomRect) ---------------------------ImVector_ImWchar---------------------------- -local ImVector_ImWchar= {} -ImVector_ImWchar.__index = ImVector_ImWchar -function ImVector_ImWchar.__new(ctype) - local ptr = lib.ImVector_ImWchar_ImVector_ImWchar() - return ffi.gc(ptr,lib.ImVector_ImWchar_destroy) -end -function ImVector_ImWchar.ImVector_ImWcharVector(src) - local ptr = lib.ImVector_ImWchar_ImVector_ImWcharVector(src) - return ffi.gc(ptr,lib.ImVector_ImWchar_destroy) -end -ImVector_ImWchar._grow_capacity = lib.ImVector_ImWchar__grow_capacity -ImVector_ImWchar.back = lib.ImVector_ImWchar_back -ImVector_ImWchar.back_const = lib.ImVector_ImWchar_back_const -ImVector_ImWchar.begin = lib.ImVector_ImWchar_begin -ImVector_ImWchar.begin_const = lib.ImVector_ImWchar_begin_const -ImVector_ImWchar.capacity = lib.ImVector_ImWchar_capacity -ImVector_ImWchar.clear = lib.ImVector_ImWchar_clear -ImVector_ImWchar.contains = lib.ImVector_ImWchar_contains -ImVector_ImWchar.empty = lib.ImVector_ImWchar_empty -ImVector_ImWchar._end = lib.ImVector_ImWchar_end -ImVector_ImWchar.end_const = lib.ImVector_ImWchar_end_const -ImVector_ImWchar.erase = lib.ImVector_ImWchar_erase -ImVector_ImWchar.eraseTPtr = lib.ImVector_ImWchar_eraseTPtr -ImVector_ImWchar.erase_unsorted = lib.ImVector_ImWchar_erase_unsorted -ImVector_ImWchar.front = lib.ImVector_ImWchar_front -ImVector_ImWchar.front_const = lib.ImVector_ImWchar_front_const -ImVector_ImWchar.index_from_ptr = lib.ImVector_ImWchar_index_from_ptr -ImVector_ImWchar.insert = lib.ImVector_ImWchar_insert -ImVector_ImWchar.pop_back = lib.ImVector_ImWchar_pop_back -ImVector_ImWchar.push_back = lib.ImVector_ImWchar_push_back -ImVector_ImWchar.push_front = lib.ImVector_ImWchar_push_front -ImVector_ImWchar.reserve = lib.ImVector_ImWchar_reserve -ImVector_ImWchar.resize = lib.ImVector_ImWchar_resize -ImVector_ImWchar.resizeT = lib.ImVector_ImWchar_resizeT -ImVector_ImWchar.size = lib.ImVector_ImWchar_size -ImVector_ImWchar.size_in_bytes = lib.ImVector_ImWchar_size_in_bytes -ImVector_ImWchar.swap = lib.ImVector_ImWchar_swap -M.ImVector_ImWchar = ffi.metatype("ImVector_ImWchar",ImVector_ImWchar) ---------------------------ImVector_char---------------------------- -local ImVector_char= {} -ImVector_char.__index = ImVector_char -function ImVector_char.__new(ctype) - local ptr = lib.ImVector_char_ImVector_char() - return ffi.gc(ptr,lib.ImVector_char_destroy) -end -function ImVector_char.ImVector_charVector(src) - local ptr = lib.ImVector_char_ImVector_charVector(src) - return ffi.gc(ptr,lib.ImVector_char_destroy) -end -ImVector_char._grow_capacity = lib.ImVector_char__grow_capacity -ImVector_char.back = lib.ImVector_char_back -ImVector_char.back_const = lib.ImVector_char_back_const -ImVector_char.begin = lib.ImVector_char_begin -ImVector_char.begin_const = lib.ImVector_char_begin_const -ImVector_char.capacity = lib.ImVector_char_capacity -ImVector_char.clear = lib.ImVector_char_clear -ImVector_char.contains = lib.ImVector_char_contains -ImVector_char.empty = lib.ImVector_char_empty -ImVector_char._end = lib.ImVector_char_end -ImVector_char.end_const = lib.ImVector_char_end_const -ImVector_char.erase = lib.ImVector_char_erase -ImVector_char.eraseTPtr = lib.ImVector_char_eraseTPtr -ImVector_char.erase_unsorted = lib.ImVector_char_erase_unsorted -ImVector_char.front = lib.ImVector_char_front -ImVector_char.front_const = lib.ImVector_char_front_const -ImVector_char.index_from_ptr = lib.ImVector_char_index_from_ptr -ImVector_char.insert = lib.ImVector_char_insert -ImVector_char.pop_back = lib.ImVector_char_pop_back -ImVector_char.push_back = lib.ImVector_char_push_back -ImVector_char.push_front = lib.ImVector_char_push_front -ImVector_char.reserve = lib.ImVector_char_reserve -ImVector_char.resize = lib.ImVector_char_resize -ImVector_char.resizeT = lib.ImVector_char_resizeT -ImVector_char.size = lib.ImVector_char_size -ImVector_char.size_in_bytes = lib.ImVector_char_size_in_bytes -ImVector_char.swap = lib.ImVector_char_swap -M.ImVector_char = ffi.metatype("ImVector_char",ImVector_char) ---------------------------ImGuiStoragePair---------------------------- -local ImGuiStoragePair= {} -ImGuiStoragePair.__index = ImGuiStoragePair -function ImGuiStoragePair.ImGuiStoragePairInt(_key,_val_i) - local ptr = lib.ImGuiStoragePair_ImGuiStoragePairInt(_key,_val_i) - return ffi.gc(ptr,lib.ImGuiStoragePair_destroy) -end -function ImGuiStoragePair.ImGuiStoragePairFloat(_key,_val_f) - local ptr = lib.ImGuiStoragePair_ImGuiStoragePairFloat(_key,_val_f) - return ffi.gc(ptr,lib.ImGuiStoragePair_destroy) -end -function ImGuiStoragePair.ImGuiStoragePairPtr(_key,_val_p) - local ptr = lib.ImGuiStoragePair_ImGuiStoragePairPtr(_key,_val_p) - return ffi.gc(ptr,lib.ImGuiStoragePair_destroy) -end -M.ImGuiStoragePair = ffi.metatype("ImGuiStoragePair",ImGuiStoragePair) ---------------------------ImFont---------------------------- -local ImFont= {} -ImFont.__index = ImFont -ImFont.AddGlyph = lib.ImFont_AddGlyph -function ImFont:AddRemapChar(dst,src,overwrite_dst) - if overwrite_dst == nil then overwrite_dst = true end - return lib.ImFont_AddRemapChar(self,dst,src,overwrite_dst) -end -ImFont.BuildLookupTable = lib.ImFont_BuildLookupTable -function ImFont:CalcTextSizeA(size,max_width,wrap_width,text_begin,text_end,remaining) - text_end = text_end or nil - remaining = remaining or nil - local nonUDT_out = ffi.new("ImVec2") - lib.ImFont_CalcTextSizeA_nonUDT(nonUDT_out,self,size,max_width,wrap_width,text_begin,text_end,remaining) - return nonUDT_out -end -function ImFont:CalcTextSizeA_nonUDT2(size,max_width,wrap_width,text_begin,text_end,remaining) - text_end = text_end or nil - remaining = remaining or nil - return lib.ImFont_CalcTextSizeA_nonUDT2(self,size,max_width,wrap_width,text_begin,text_end,remaining) -end -ImFont.CalcWordWrapPositionA = lib.ImFont_CalcWordWrapPositionA -ImFont.ClearOutputData = lib.ImFont_ClearOutputData -ImFont.FindGlyph = lib.ImFont_FindGlyph -ImFont.FindGlyphNoFallback = lib.ImFont_FindGlyphNoFallback -ImFont.GetCharAdvance = lib.ImFont_GetCharAdvance -ImFont.GetDebugName = lib.ImFont_GetDebugName -ImFont.GrowIndex = lib.ImFont_GrowIndex -function ImFont.__new(ctype) - local ptr = lib.ImFont_ImFont() - return ffi.gc(ptr,lib.ImFont_destroy) -end -ImFont.IsLoaded = lib.ImFont_IsLoaded -ImFont.RenderChar = lib.ImFont_RenderChar -function ImFont:RenderText(draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip) - wrap_width = wrap_width or 0.0 - cpu_fine_clip = cpu_fine_clip or false - return lib.ImFont_RenderText(self,draw_list,size,pos,col,clip_rect,text_begin,text_end,wrap_width,cpu_fine_clip) -end -ImFont.SetFallbackChar = lib.ImFont_SetFallbackChar -M.ImFont = ffi.metatype("ImFont",ImFont) ---------------------------ImGuiOnceUponAFrame---------------------------- -local ImGuiOnceUponAFrame= {} -ImGuiOnceUponAFrame.__index = ImGuiOnceUponAFrame -function ImGuiOnceUponAFrame.__new(ctype) - local ptr = lib.ImGuiOnceUponAFrame_ImGuiOnceUponAFrame() - return ffi.gc(ptr,lib.ImGuiOnceUponAFrame_destroy) -end -M.ImGuiOnceUponAFrame = ffi.metatype("ImGuiOnceUponAFrame",ImGuiOnceUponAFrame) ---------------------------ImVector_ImVec4---------------------------- -local ImVector_ImVec4= {} -ImVector_ImVec4.__index = ImVector_ImVec4 -function ImVector_ImVec4.__new(ctype) - local ptr = lib.ImVector_ImVec4_ImVector_ImVec4() - return ffi.gc(ptr,lib.ImVector_ImVec4_destroy) -end -function ImVector_ImVec4.ImVector_ImVec4Vector(src) - local ptr = lib.ImVector_ImVec4_ImVector_ImVec4Vector(src) - return ffi.gc(ptr,lib.ImVector_ImVec4_destroy) -end -ImVector_ImVec4._grow_capacity = lib.ImVector_ImVec4__grow_capacity -ImVector_ImVec4.back = lib.ImVector_ImVec4_back -ImVector_ImVec4.back_const = lib.ImVector_ImVec4_back_const -ImVector_ImVec4.begin = lib.ImVector_ImVec4_begin -ImVector_ImVec4.begin_const = lib.ImVector_ImVec4_begin_const -ImVector_ImVec4.capacity = lib.ImVector_ImVec4_capacity -ImVector_ImVec4.clear = lib.ImVector_ImVec4_clear -ImVector_ImVec4.empty = lib.ImVector_ImVec4_empty -ImVector_ImVec4._end = lib.ImVector_ImVec4_end -ImVector_ImVec4.end_const = lib.ImVector_ImVec4_end_const -ImVector_ImVec4.erase = lib.ImVector_ImVec4_erase -ImVector_ImVec4.eraseTPtr = lib.ImVector_ImVec4_eraseTPtr -ImVector_ImVec4.erase_unsorted = lib.ImVector_ImVec4_erase_unsorted -ImVector_ImVec4.front = lib.ImVector_ImVec4_front -ImVector_ImVec4.front_const = lib.ImVector_ImVec4_front_const -ImVector_ImVec4.index_from_ptr = lib.ImVector_ImVec4_index_from_ptr -ImVector_ImVec4.insert = lib.ImVector_ImVec4_insert -ImVector_ImVec4.pop_back = lib.ImVector_ImVec4_pop_back -ImVector_ImVec4.push_back = lib.ImVector_ImVec4_push_back -ImVector_ImVec4.push_front = lib.ImVector_ImVec4_push_front -ImVector_ImVec4.reserve = lib.ImVector_ImVec4_reserve -ImVector_ImVec4.resize = lib.ImVector_ImVec4_resize -ImVector_ImVec4.resizeT = lib.ImVector_ImVec4_resizeT -ImVector_ImVec4.size = lib.ImVector_ImVec4_size -ImVector_ImVec4.size_in_bytes = lib.ImVector_ImVec4_size_in_bytes -ImVector_ImVec4.swap = lib.ImVector_ImVec4_swap -M.ImVector_ImVec4 = ffi.metatype("ImVector_ImVec4",ImVector_ImVec4) ---------------------------ImVector_ImDrawIdx---------------------------- -local ImVector_ImDrawIdx= {} -ImVector_ImDrawIdx.__index = ImVector_ImDrawIdx -function ImVector_ImDrawIdx.__new(ctype) - local ptr = lib.ImVector_ImDrawIdx_ImVector_ImDrawIdx() - return ffi.gc(ptr,lib.ImVector_ImDrawIdx_destroy) -end -function ImVector_ImDrawIdx.ImVector_ImDrawIdxVector(src) - local ptr = lib.ImVector_ImDrawIdx_ImVector_ImDrawIdxVector(src) - return ffi.gc(ptr,lib.ImVector_ImDrawIdx_destroy) -end -ImVector_ImDrawIdx._grow_capacity = lib.ImVector_ImDrawIdx__grow_capacity -ImVector_ImDrawIdx.back = lib.ImVector_ImDrawIdx_back -ImVector_ImDrawIdx.back_const = lib.ImVector_ImDrawIdx_back_const -ImVector_ImDrawIdx.begin = lib.ImVector_ImDrawIdx_begin -ImVector_ImDrawIdx.begin_const = lib.ImVector_ImDrawIdx_begin_const -ImVector_ImDrawIdx.capacity = lib.ImVector_ImDrawIdx_capacity -ImVector_ImDrawIdx.clear = lib.ImVector_ImDrawIdx_clear -ImVector_ImDrawIdx.empty = lib.ImVector_ImDrawIdx_empty -ImVector_ImDrawIdx._end = lib.ImVector_ImDrawIdx_end -ImVector_ImDrawIdx.end_const = lib.ImVector_ImDrawIdx_end_const -ImVector_ImDrawIdx.erase = lib.ImVector_ImDrawIdx_erase -ImVector_ImDrawIdx.eraseTPtr = lib.ImVector_ImDrawIdx_eraseTPtr -ImVector_ImDrawIdx.erase_unsorted = lib.ImVector_ImDrawIdx_erase_unsorted -ImVector_ImDrawIdx.front = lib.ImVector_ImDrawIdx_front -ImVector_ImDrawIdx.front_const = lib.ImVector_ImDrawIdx_front_const -ImVector_ImDrawIdx.index_from_ptr = lib.ImVector_ImDrawIdx_index_from_ptr -ImVector_ImDrawIdx.insert = lib.ImVector_ImDrawIdx_insert -ImVector_ImDrawIdx.pop_back = lib.ImVector_ImDrawIdx_pop_back -ImVector_ImDrawIdx.push_back = lib.ImVector_ImDrawIdx_push_back -ImVector_ImDrawIdx.push_front = lib.ImVector_ImDrawIdx_push_front -ImVector_ImDrawIdx.reserve = lib.ImVector_ImDrawIdx_reserve -ImVector_ImDrawIdx.resize = lib.ImVector_ImDrawIdx_resize -ImVector_ImDrawIdx.resizeT = lib.ImVector_ImDrawIdx_resizeT -ImVector_ImDrawIdx.size = lib.ImVector_ImDrawIdx_size -ImVector_ImDrawIdx.size_in_bytes = lib.ImVector_ImDrawIdx_size_in_bytes -ImVector_ImDrawIdx.swap = lib.ImVector_ImDrawIdx_swap -M.ImVector_ImDrawIdx = ffi.metatype("ImVector_ImDrawIdx",ImVector_ImDrawIdx) ---------------------------ImVector_ImGuiTextRange---------------------------- -local ImVector_ImGuiTextRange= {} -ImVector_ImGuiTextRange.__index = ImVector_ImGuiTextRange -function ImVector_ImGuiTextRange.__new(ctype) - local ptr = lib.ImVector_ImGuiTextRange_ImVector_ImGuiTextRange() - return ffi.gc(ptr,lib.ImVector_ImGuiTextRange_destroy) -end -function ImVector_ImGuiTextRange.ImVector_ImGuiTextRangeVector(src) - local ptr = lib.ImVector_ImGuiTextRange_ImVector_ImGuiTextRangeVector(src) - return ffi.gc(ptr,lib.ImVector_ImGuiTextRange_destroy) -end -ImVector_ImGuiTextRange._grow_capacity = lib.ImVector_ImGuiTextRange__grow_capacity -ImVector_ImGuiTextRange.back = lib.ImVector_ImGuiTextRange_back -ImVector_ImGuiTextRange.back_const = lib.ImVector_ImGuiTextRange_back_const -ImVector_ImGuiTextRange.begin = lib.ImVector_ImGuiTextRange_begin -ImVector_ImGuiTextRange.begin_const = lib.ImVector_ImGuiTextRange_begin_const -ImVector_ImGuiTextRange.capacity = lib.ImVector_ImGuiTextRange_capacity -ImVector_ImGuiTextRange.clear = lib.ImVector_ImGuiTextRange_clear -ImVector_ImGuiTextRange.empty = lib.ImVector_ImGuiTextRange_empty -ImVector_ImGuiTextRange._end = lib.ImVector_ImGuiTextRange_end -ImVector_ImGuiTextRange.end_const = lib.ImVector_ImGuiTextRange_end_const -ImVector_ImGuiTextRange.erase = lib.ImVector_ImGuiTextRange_erase -ImVector_ImGuiTextRange.eraseTPtr = lib.ImVector_ImGuiTextRange_eraseTPtr -ImVector_ImGuiTextRange.erase_unsorted = lib.ImVector_ImGuiTextRange_erase_unsorted -ImVector_ImGuiTextRange.front = lib.ImVector_ImGuiTextRange_front -ImVector_ImGuiTextRange.front_const = lib.ImVector_ImGuiTextRange_front_const -ImVector_ImGuiTextRange.index_from_ptr = lib.ImVector_ImGuiTextRange_index_from_ptr -ImVector_ImGuiTextRange.insert = lib.ImVector_ImGuiTextRange_insert -ImVector_ImGuiTextRange.pop_back = lib.ImVector_ImGuiTextRange_pop_back -ImVector_ImGuiTextRange.push_back = lib.ImVector_ImGuiTextRange_push_back -ImVector_ImGuiTextRange.push_front = lib.ImVector_ImGuiTextRange_push_front -ImVector_ImGuiTextRange.reserve = lib.ImVector_ImGuiTextRange_reserve -ImVector_ImGuiTextRange.resize = lib.ImVector_ImGuiTextRange_resize -ImVector_ImGuiTextRange.resizeT = lib.ImVector_ImGuiTextRange_resizeT -ImVector_ImGuiTextRange.size = lib.ImVector_ImGuiTextRange_size -ImVector_ImGuiTextRange.size_in_bytes = lib.ImVector_ImGuiTextRange_size_in_bytes -ImVector_ImGuiTextRange.swap = lib.ImVector_ImGuiTextRange_swap -M.ImVector_ImGuiTextRange = ffi.metatype("ImVector_ImGuiTextRange",ImVector_ImGuiTextRange) ---------------------------ImVector_float---------------------------- -local ImVector_float= {} -ImVector_float.__index = ImVector_float -function ImVector_float.__new(ctype) - local ptr = lib.ImVector_float_ImVector_float() - return ffi.gc(ptr,lib.ImVector_float_destroy) -end -function ImVector_float.ImVector_floatVector(src) - local ptr = lib.ImVector_float_ImVector_floatVector(src) - return ffi.gc(ptr,lib.ImVector_float_destroy) -end -ImVector_float._grow_capacity = lib.ImVector_float__grow_capacity -ImVector_float.back = lib.ImVector_float_back -ImVector_float.back_const = lib.ImVector_float_back_const -ImVector_float.begin = lib.ImVector_float_begin -ImVector_float.begin_const = lib.ImVector_float_begin_const -ImVector_float.capacity = lib.ImVector_float_capacity -ImVector_float.clear = lib.ImVector_float_clear -ImVector_float.contains = lib.ImVector_float_contains -ImVector_float.empty = lib.ImVector_float_empty -ImVector_float._end = lib.ImVector_float_end -ImVector_float.end_const = lib.ImVector_float_end_const -ImVector_float.erase = lib.ImVector_float_erase -ImVector_float.eraseTPtr = lib.ImVector_float_eraseTPtr -ImVector_float.erase_unsorted = lib.ImVector_float_erase_unsorted -ImVector_float.front = lib.ImVector_float_front -ImVector_float.front_const = lib.ImVector_float_front_const -ImVector_float.index_from_ptr = lib.ImVector_float_index_from_ptr -ImVector_float.insert = lib.ImVector_float_insert -ImVector_float.pop_back = lib.ImVector_float_pop_back -ImVector_float.push_back = lib.ImVector_float_push_back -ImVector_float.push_front = lib.ImVector_float_push_front -ImVector_float.reserve = lib.ImVector_float_reserve -ImVector_float.resize = lib.ImVector_float_resize -ImVector_float.resizeT = lib.ImVector_float_resizeT -ImVector_float.size = lib.ImVector_float_size -ImVector_float.size_in_bytes = lib.ImVector_float_size_in_bytes -ImVector_float.swap = lib.ImVector_float_swap -M.ImVector_float = ffi.metatype("ImVector_float",ImVector_float) ---------------------------ImGuiInputTextCallbackData---------------------------- -local ImGuiInputTextCallbackData= {} -ImGuiInputTextCallbackData.__index = ImGuiInputTextCallbackData -ImGuiInputTextCallbackData.DeleteChars = lib.ImGuiInputTextCallbackData_DeleteChars -ImGuiInputTextCallbackData.HasSelection = lib.ImGuiInputTextCallbackData_HasSelection -function ImGuiInputTextCallbackData.__new(ctype) - local ptr = lib.ImGuiInputTextCallbackData_ImGuiInputTextCallbackData() - return ffi.gc(ptr,lib.ImGuiInputTextCallbackData_destroy) -end -function ImGuiInputTextCallbackData:InsertChars(pos,text,text_end) - text_end = text_end or nil - return lib.ImGuiInputTextCallbackData_InsertChars(self,pos,text,text_end) -end -M.ImGuiInputTextCallbackData = ffi.metatype("ImGuiInputTextCallbackData",ImGuiInputTextCallbackData) ---------------------------ImGuiPayload---------------------------- -local ImGuiPayload= {} -ImGuiPayload.__index = ImGuiPayload -ImGuiPayload.Clear = lib.ImGuiPayload_Clear -function ImGuiPayload.__new(ctype) - local ptr = lib.ImGuiPayload_ImGuiPayload() - return ffi.gc(ptr,lib.ImGuiPayload_destroy) -end -ImGuiPayload.IsDataType = lib.ImGuiPayload_IsDataType -ImGuiPayload.IsDelivery = lib.ImGuiPayload_IsDelivery -ImGuiPayload.IsPreview = lib.ImGuiPayload_IsPreview -M.ImGuiPayload = ffi.metatype("ImGuiPayload",ImGuiPayload) ---------------------------ImDrawCmd---------------------------- -local ImDrawCmd= {} -ImDrawCmd.__index = ImDrawCmd -function ImDrawCmd.__new(ctype) - local ptr = lib.ImDrawCmd_ImDrawCmd() - return ffi.gc(ptr,lib.ImDrawCmd_destroy) -end -M.ImDrawCmd = ffi.metatype("ImDrawCmd",ImDrawCmd) ---------------------------ImVector_ImFontGlyph---------------------------- -local ImVector_ImFontGlyph= {} -ImVector_ImFontGlyph.__index = ImVector_ImFontGlyph -function ImVector_ImFontGlyph.__new(ctype) - local ptr = lib.ImVector_ImFontGlyph_ImVector_ImFontGlyph() - return ffi.gc(ptr,lib.ImVector_ImFontGlyph_destroy) -end -function ImVector_ImFontGlyph.ImVector_ImFontGlyphVector(src) - local ptr = lib.ImVector_ImFontGlyph_ImVector_ImFontGlyphVector(src) - return ffi.gc(ptr,lib.ImVector_ImFontGlyph_destroy) -end -ImVector_ImFontGlyph._grow_capacity = lib.ImVector_ImFontGlyph__grow_capacity -ImVector_ImFontGlyph.back = lib.ImVector_ImFontGlyph_back -ImVector_ImFontGlyph.back_const = lib.ImVector_ImFontGlyph_back_const -ImVector_ImFontGlyph.begin = lib.ImVector_ImFontGlyph_begin -ImVector_ImFontGlyph.begin_const = lib.ImVector_ImFontGlyph_begin_const -ImVector_ImFontGlyph.capacity = lib.ImVector_ImFontGlyph_capacity -ImVector_ImFontGlyph.clear = lib.ImVector_ImFontGlyph_clear -ImVector_ImFontGlyph.empty = lib.ImVector_ImFontGlyph_empty -ImVector_ImFontGlyph._end = lib.ImVector_ImFontGlyph_end -ImVector_ImFontGlyph.end_const = lib.ImVector_ImFontGlyph_end_const -ImVector_ImFontGlyph.erase = lib.ImVector_ImFontGlyph_erase -ImVector_ImFontGlyph.eraseTPtr = lib.ImVector_ImFontGlyph_eraseTPtr -ImVector_ImFontGlyph.erase_unsorted = lib.ImVector_ImFontGlyph_erase_unsorted -ImVector_ImFontGlyph.front = lib.ImVector_ImFontGlyph_front -ImVector_ImFontGlyph.front_const = lib.ImVector_ImFontGlyph_front_const -ImVector_ImFontGlyph.index_from_ptr = lib.ImVector_ImFontGlyph_index_from_ptr -ImVector_ImFontGlyph.insert = lib.ImVector_ImFontGlyph_insert -ImVector_ImFontGlyph.pop_back = lib.ImVector_ImFontGlyph_pop_back -ImVector_ImFontGlyph.push_back = lib.ImVector_ImFontGlyph_push_back -ImVector_ImFontGlyph.push_front = lib.ImVector_ImFontGlyph_push_front -ImVector_ImFontGlyph.reserve = lib.ImVector_ImFontGlyph_reserve -ImVector_ImFontGlyph.resize = lib.ImVector_ImFontGlyph_resize -ImVector_ImFontGlyph.resizeT = lib.ImVector_ImFontGlyph_resizeT -ImVector_ImFontGlyph.size = lib.ImVector_ImFontGlyph_size -ImVector_ImFontGlyph.size_in_bytes = lib.ImVector_ImFontGlyph_size_in_bytes -ImVector_ImFontGlyph.swap = lib.ImVector_ImFontGlyph_swap -M.ImVector_ImFontGlyph = ffi.metatype("ImVector_ImFontGlyph",ImVector_ImFontGlyph) ---------------------------ImGuiTextFilter---------------------------- -local ImGuiTextFilter= {} -ImGuiTextFilter.__index = ImGuiTextFilter -ImGuiTextFilter.Build = lib.ImGuiTextFilter_Build -ImGuiTextFilter.Clear = lib.ImGuiTextFilter_Clear -function ImGuiTextFilter:Draw(label,width) - label = label or "Filter(inc,-exc)" - width = width or 0.0 - return lib.ImGuiTextFilter_Draw(self,label,width) -end -function ImGuiTextFilter.__new(ctype,default_filter) - if default_filter == nil then default_filter = "" end - local ptr = lib.ImGuiTextFilter_ImGuiTextFilter(default_filter) - return ffi.gc(ptr,lib.ImGuiTextFilter_destroy) -end -ImGuiTextFilter.IsActive = lib.ImGuiTextFilter_IsActive -function ImGuiTextFilter:PassFilter(text,text_end) - text_end = text_end or nil - return lib.ImGuiTextFilter_PassFilter(self,text,text_end) -end -M.ImGuiTextFilter = ffi.metatype("ImGuiTextFilter",ImGuiTextFilter) ---------------------------ImVector_ImGuiStoragePair---------------------------- -local ImVector_ImGuiStoragePair= {} -ImVector_ImGuiStoragePair.__index = ImVector_ImGuiStoragePair -function ImVector_ImGuiStoragePair.__new(ctype) - local ptr = lib.ImVector_ImGuiStoragePair_ImVector_ImGuiStoragePair() - return ffi.gc(ptr,lib.ImVector_ImGuiStoragePair_destroy) -end -function ImVector_ImGuiStoragePair.ImVector_ImGuiStoragePairVector(src) - local ptr = lib.ImVector_ImGuiStoragePair_ImVector_ImGuiStoragePairVector(src) - return ffi.gc(ptr,lib.ImVector_ImGuiStoragePair_destroy) -end -ImVector_ImGuiStoragePair._grow_capacity = lib.ImVector_ImGuiStoragePair__grow_capacity -ImVector_ImGuiStoragePair.back = lib.ImVector_ImGuiStoragePair_back -ImVector_ImGuiStoragePair.back_const = lib.ImVector_ImGuiStoragePair_back_const -ImVector_ImGuiStoragePair.begin = lib.ImVector_ImGuiStoragePair_begin -ImVector_ImGuiStoragePair.begin_const = lib.ImVector_ImGuiStoragePair_begin_const -ImVector_ImGuiStoragePair.capacity = lib.ImVector_ImGuiStoragePair_capacity -ImVector_ImGuiStoragePair.clear = lib.ImVector_ImGuiStoragePair_clear -ImVector_ImGuiStoragePair.empty = lib.ImVector_ImGuiStoragePair_empty -ImVector_ImGuiStoragePair._end = lib.ImVector_ImGuiStoragePair_end -ImVector_ImGuiStoragePair.end_const = lib.ImVector_ImGuiStoragePair_end_const -ImVector_ImGuiStoragePair.erase = lib.ImVector_ImGuiStoragePair_erase -ImVector_ImGuiStoragePair.eraseTPtr = lib.ImVector_ImGuiStoragePair_eraseTPtr -ImVector_ImGuiStoragePair.erase_unsorted = lib.ImVector_ImGuiStoragePair_erase_unsorted -ImVector_ImGuiStoragePair.front = lib.ImVector_ImGuiStoragePair_front -ImVector_ImGuiStoragePair.front_const = lib.ImVector_ImGuiStoragePair_front_const -ImVector_ImGuiStoragePair.index_from_ptr = lib.ImVector_ImGuiStoragePair_index_from_ptr -ImVector_ImGuiStoragePair.insert = lib.ImVector_ImGuiStoragePair_insert -ImVector_ImGuiStoragePair.pop_back = lib.ImVector_ImGuiStoragePair_pop_back -ImVector_ImGuiStoragePair.push_back = lib.ImVector_ImGuiStoragePair_push_back -ImVector_ImGuiStoragePair.push_front = lib.ImVector_ImGuiStoragePair_push_front -ImVector_ImGuiStoragePair.reserve = lib.ImVector_ImGuiStoragePair_reserve -ImVector_ImGuiStoragePair.resize = lib.ImVector_ImGuiStoragePair_resize -ImVector_ImGuiStoragePair.resizeT = lib.ImVector_ImGuiStoragePair_resizeT -ImVector_ImGuiStoragePair.size = lib.ImVector_ImGuiStoragePair_size -ImVector_ImGuiStoragePair.size_in_bytes = lib.ImVector_ImGuiStoragePair_size_in_bytes -ImVector_ImGuiStoragePair.swap = lib.ImVector_ImGuiStoragePair_swap -M.ImVector_ImGuiStoragePair = ffi.metatype("ImVector_ImGuiStoragePair",ImVector_ImGuiStoragePair) ---------------------------ImFontAtlas---------------------------- -local ImFontAtlas= {} -ImFontAtlas.__index = ImFontAtlas -function ImFontAtlas:AddCustomRectFontGlyph(font,id,width,height,advance_x,offset) - offset = offset or ImVec2(0,0) - return lib.ImFontAtlas_AddCustomRectFontGlyph(self,font,id,width,height,advance_x,offset) -end -ImFontAtlas.AddCustomRectRegular = lib.ImFontAtlas_AddCustomRectRegular -ImFontAtlas.AddFont = lib.ImFontAtlas_AddFont -function ImFontAtlas:AddFontDefault(font_cfg) - font_cfg = font_cfg or nil - return lib.ImFontAtlas_AddFontDefault(self,font_cfg) -end -function ImFontAtlas:AddFontFromFileTTF(filename,size_pixels,font_cfg,glyph_ranges) - glyph_ranges = glyph_ranges or nil - font_cfg = font_cfg or nil - return lib.ImFontAtlas_AddFontFromFileTTF(self,filename,size_pixels,font_cfg,glyph_ranges) -end -function ImFontAtlas:AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges) - glyph_ranges = glyph_ranges or nil - font_cfg = font_cfg or nil - return lib.ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(self,compressed_font_data_base85,size_pixels,font_cfg,glyph_ranges) -end -function ImFontAtlas:AddFontFromMemoryCompressedTTF(compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges) - glyph_ranges = glyph_ranges or nil - font_cfg = font_cfg or nil - return lib.ImFontAtlas_AddFontFromMemoryCompressedTTF(self,compressed_font_data,compressed_font_size,size_pixels,font_cfg,glyph_ranges) -end -function ImFontAtlas:AddFontFromMemoryTTF(font_data,font_size,size_pixels,font_cfg,glyph_ranges) - glyph_ranges = glyph_ranges or nil - font_cfg = font_cfg or nil - return lib.ImFontAtlas_AddFontFromMemoryTTF(self,font_data,font_size,size_pixels,font_cfg,glyph_ranges) -end -ImFontAtlas.Build = lib.ImFontAtlas_Build -ImFontAtlas.CalcCustomRectUV = lib.ImFontAtlas_CalcCustomRectUV -ImFontAtlas.Clear = lib.ImFontAtlas_Clear -ImFontAtlas.ClearFonts = lib.ImFontAtlas_ClearFonts -ImFontAtlas.ClearInputData = lib.ImFontAtlas_ClearInputData -ImFontAtlas.ClearTexData = lib.ImFontAtlas_ClearTexData -ImFontAtlas.GetCustomRectByIndex = lib.ImFontAtlas_GetCustomRectByIndex -ImFontAtlas.GetGlyphRangesChineseFull = lib.ImFontAtlas_GetGlyphRangesChineseFull -ImFontAtlas.GetGlyphRangesChineseSimplifiedCommon = lib.ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon -ImFontAtlas.GetGlyphRangesCyrillic = lib.ImFontAtlas_GetGlyphRangesCyrillic -ImFontAtlas.GetGlyphRangesDefault = lib.ImFontAtlas_GetGlyphRangesDefault -ImFontAtlas.GetGlyphRangesJapanese = lib.ImFontAtlas_GetGlyphRangesJapanese -ImFontAtlas.GetGlyphRangesKorean = lib.ImFontAtlas_GetGlyphRangesKorean -ImFontAtlas.GetGlyphRangesThai = lib.ImFontAtlas_GetGlyphRangesThai -ImFontAtlas.GetGlyphRangesVietnamese = lib.ImFontAtlas_GetGlyphRangesVietnamese -ImFontAtlas.GetMouseCursorTexData = lib.ImFontAtlas_GetMouseCursorTexData -function ImFontAtlas:GetTexDataAsAlpha8(out_pixels,out_width,out_height,out_bytes_per_pixel) - out_bytes_per_pixel = out_bytes_per_pixel or nil - return lib.ImFontAtlas_GetTexDataAsAlpha8(self,out_pixels,out_width,out_height,out_bytes_per_pixel) -end -function ImFontAtlas:GetTexDataAsRGBA32(out_pixels,out_width,out_height,out_bytes_per_pixel) - out_bytes_per_pixel = out_bytes_per_pixel or nil - return lib.ImFontAtlas_GetTexDataAsRGBA32(self,out_pixels,out_width,out_height,out_bytes_per_pixel) -end -function ImFontAtlas.__new(ctype) - local ptr = lib.ImFontAtlas_ImFontAtlas() - return ffi.gc(ptr,lib.ImFontAtlas_destroy) -end -ImFontAtlas.IsBuilt = lib.ImFontAtlas_IsBuilt -ImFontAtlas.SetTexID = lib.ImFontAtlas_SetTexID -M.ImFontAtlas = ffi.metatype("ImFontAtlas",ImFontAtlas) ------------------------------------------------------- -function M.AcceptDragDropPayload(type,flags) - flags = flags or 0 - return lib.igAcceptDragDropPayload(type,flags) -end -M.AlignTextToFramePadding = lib.igAlignTextToFramePadding -M.ArrowButton = lib.igArrowButton -function M.Begin(name,p_open,flags) - p_open = p_open or nil - flags = flags or 0 - return lib.igBegin(name,p_open,flags) -end -function M.BeginChild(str_id,size,border,flags) - border = border or false - size = size or ImVec2(0,0) - flags = flags or 0 - return lib.igBeginChild(str_id,size,border,flags) -end -function M.BeginChildID(id,size,border,flags) - border = border or false - size = size or ImVec2(0,0) - flags = flags or 0 - return lib.igBeginChildID(id,size,border,flags) -end -function M.BeginChildFrame(id,size,flags) - flags = flags or 0 - return lib.igBeginChildFrame(id,size,flags) -end -function M.BeginCombo(label,preview_value,flags) - flags = flags or 0 - return lib.igBeginCombo(label,preview_value,flags) -end -function M.BeginDragDropSource(flags) - flags = flags or 0 - return lib.igBeginDragDropSource(flags) -end -M.BeginDragDropTarget = lib.igBeginDragDropTarget -M.BeginGroup = lib.igBeginGroup -M.BeginMainMenuBar = lib.igBeginMainMenuBar -function M.BeginMenu(label,enabled) - if enabled == nil then enabled = true end - return lib.igBeginMenu(label,enabled) -end -M.BeginMenuBar = lib.igBeginMenuBar -function M.BeginPopup(str_id,flags) - flags = flags or 0 - return lib.igBeginPopup(str_id,flags) -end -function M.BeginPopupContextItem(str_id,mouse_button) - mouse_button = mouse_button or 1 - str_id = str_id or nil - return lib.igBeginPopupContextItem(str_id,mouse_button) -end -function M.BeginPopupContextVoid(str_id,mouse_button) - mouse_button = mouse_button or 1 - str_id = str_id or nil - return lib.igBeginPopupContextVoid(str_id,mouse_button) -end -function M.BeginPopupContextWindow(str_id,mouse_button,also_over_items) - if also_over_items == nil then also_over_items = true end - mouse_button = mouse_button or 1 - str_id = str_id or nil - return lib.igBeginPopupContextWindow(str_id,mouse_button,also_over_items) -end -function M.BeginPopupModal(name,p_open,flags) - p_open = p_open or nil - flags = flags or 0 - return lib.igBeginPopupModal(name,p_open,flags) -end -function M.BeginTabBar(str_id,flags) - flags = flags or 0 - return lib.igBeginTabBar(str_id,flags) -end -function M.BeginTabItem(label,p_open,flags) - p_open = p_open or nil - flags = flags or 0 - return lib.igBeginTabItem(label,p_open,flags) -end -M.BeginTooltip = lib.igBeginTooltip -M.Bullet = lib.igBullet -M.BulletText = lib.igBulletText -M.BulletTextV = lib.igBulletTextV -function M.Button(label,size) - size = size or ImVec2(0,0) - return lib.igButton(label,size) -end -M.CalcItemWidth = lib.igCalcItemWidth -M.CalcListClipping = lib.igCalcListClipping -function M.CalcTextSize(text,text_end,hide_text_after_double_hash,wrap_width) - text_end = text_end or nil - wrap_width = wrap_width or -1.0 - hide_text_after_double_hash = hide_text_after_double_hash or false - local nonUDT_out = ffi.new("ImVec2") - lib.igCalcTextSize_nonUDT(nonUDT_out,text,text_end,hide_text_after_double_hash,wrap_width) - return nonUDT_out -end -function M.CalcTextSize_nonUDT2(text,text_end,hide_text_after_double_hash,wrap_width) - text_end = text_end or nil - wrap_width = wrap_width or -1.0 - hide_text_after_double_hash = hide_text_after_double_hash or false - return lib.igCalcTextSize_nonUDT2(text,text_end,hide_text_after_double_hash,wrap_width) -end -function M.CaptureKeyboardFromApp(want_capture_keyboard_value) - if want_capture_keyboard_value == nil then want_capture_keyboard_value = true end - return lib.igCaptureKeyboardFromApp(want_capture_keyboard_value) -end -function M.CaptureMouseFromApp(want_capture_mouse_value) - if want_capture_mouse_value == nil then want_capture_mouse_value = true end - return lib.igCaptureMouseFromApp(want_capture_mouse_value) -end -M.Checkbox = lib.igCheckbox -M.CheckboxFlags = lib.igCheckboxFlags -M.CloseCurrentPopup = lib.igCloseCurrentPopup -function M.CollapsingHeader(label,flags) - flags = flags or 0 - return lib.igCollapsingHeader(label,flags) -end -function M.CollapsingHeaderBoolPtr(label,p_open,flags) - flags = flags or 0 - return lib.igCollapsingHeaderBoolPtr(label,p_open,flags) -end -function M.ColorButton(desc_id,col,flags,size) - size = size or ImVec2(0,0) - flags = flags or 0 - return lib.igColorButton(desc_id,col,flags,size) -end -M.ColorConvertFloat4ToU32 = lib.igColorConvertFloat4ToU32 -M.ColorConvertHSVtoRGB = lib.igColorConvertHSVtoRGB -M.ColorConvertRGBtoHSV = lib.igColorConvertRGBtoHSV -function M.ColorConvertU32ToFloat4(_in) - local nonUDT_out = ffi.new("ImVec4") - lib.igColorConvertU32ToFloat4_nonUDT(nonUDT_out,_in) - return nonUDT_out -end -M.ColorConvertU32ToFloat4_nonUDT2 = lib.igColorConvertU32ToFloat4_nonUDT2 -function M.ColorEdit3(label,col,flags) - flags = flags or 0 - return lib.igColorEdit3(label,col,flags) -end -function M.ColorEdit4(label,col,flags) - flags = flags or 0 - return lib.igColorEdit4(label,col,flags) -end -function M.ColorPicker3(label,col,flags) - flags = flags or 0 - return lib.igColorPicker3(label,col,flags) -end -function M.ColorPicker4(label,col,flags,ref_col) - ref_col = ref_col or nil - flags = flags or 0 - return lib.igColorPicker4(label,col,flags,ref_col) -end -function M.Columns(count,id,border) - if border == nil then border = true end - count = count or 1 - id = id or nil - return lib.igColumns(count,id,border) -end -function M.Combo(label,current_item,items,items_count,popup_max_height_in_items) - popup_max_height_in_items = popup_max_height_in_items or -1 - return lib.igCombo(label,current_item,items,items_count,popup_max_height_in_items) -end -function M.ComboStr(label,current_item,items_separated_by_zeros,popup_max_height_in_items) - popup_max_height_in_items = popup_max_height_in_items or -1 - return lib.igComboStr(label,current_item,items_separated_by_zeros,popup_max_height_in_items) -end -function M.ComboFnPtr(label,current_item,items_getter,data,items_count,popup_max_height_in_items) - popup_max_height_in_items = popup_max_height_in_items or -1 - return lib.igComboFnPtr(label,current_item,items_getter,data,items_count,popup_max_height_in_items) -end -function M.CreateContext(shared_font_atlas) - shared_font_atlas = shared_font_atlas or nil - return lib.igCreateContext(shared_font_atlas) -end -M.DebugCheckVersionAndDataLayout = lib.igDebugCheckVersionAndDataLayout -function M.DestroyContext(ctx) - ctx = ctx or nil - return lib.igDestroyContext(ctx) -end -function M.DragFloat(label,v,v_speed,v_min,v_max,format,power) - v_max = v_max or 0.0 - format = format or "%.3f" - power = power or 1.0 - v_speed = v_speed or 1.0 - v_min = v_min or 0.0 - return lib.igDragFloat(label,v,v_speed,v_min,v_max,format,power) -end -function M.DragFloat2(label,v,v_speed,v_min,v_max,format,power) - v_max = v_max or 0.0 - format = format or "%.3f" - power = power or 1.0 - v_speed = v_speed or 1.0 - v_min = v_min or 0.0 - return lib.igDragFloat2(label,v,v_speed,v_min,v_max,format,power) -end -function M.DragFloat3(label,v,v_speed,v_min,v_max,format,power) - v_max = v_max or 0.0 - format = format or "%.3f" - power = power or 1.0 - v_speed = v_speed or 1.0 - v_min = v_min or 0.0 - return lib.igDragFloat3(label,v,v_speed,v_min,v_max,format,power) -end -function M.DragFloat4(label,v,v_speed,v_min,v_max,format,power) - v_max = v_max or 0.0 - format = format or "%.3f" - power = power or 1.0 - v_speed = v_speed or 1.0 - v_min = v_min or 0.0 - return lib.igDragFloat4(label,v,v_speed,v_min,v_max,format,power) -end -function M.DragFloatRange2(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,power) - format_max = format_max or nil - format = format or "%.3f" - power = power or 1.0 - v_speed = v_speed or 1.0 - v_min = v_min or 0.0 - v_max = v_max or 0.0 - return lib.igDragFloatRange2(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max,power) -end -function M.DragInt(label,v,v_speed,v_min,v_max,format) - v_max = v_max or 0 - format = format or "%d" - v_speed = v_speed or 1.0 - v_min = v_min or 0 - return lib.igDragInt(label,v,v_speed,v_min,v_max,format) -end -function M.DragInt2(label,v,v_speed,v_min,v_max,format) - v_max = v_max or 0 - format = format or "%d" - v_speed = v_speed or 1.0 - v_min = v_min or 0 - return lib.igDragInt2(label,v,v_speed,v_min,v_max,format) -end -function M.DragInt3(label,v,v_speed,v_min,v_max,format) - v_max = v_max or 0 - format = format or "%d" - v_speed = v_speed or 1.0 - v_min = v_min or 0 - return lib.igDragInt3(label,v,v_speed,v_min,v_max,format) -end -function M.DragInt4(label,v,v_speed,v_min,v_max,format) - v_max = v_max or 0 - format = format or "%d" - v_speed = v_speed or 1.0 - v_min = v_min or 0 - return lib.igDragInt4(label,v,v_speed,v_min,v_max,format) -end -function M.DragIntRange2(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max) - format_max = format_max or nil - format = format or "%d" - v_speed = v_speed or 1.0 - v_max = v_max or 0 - v_min = v_min or 0 - return lib.igDragIntRange2(label,v_current_min,v_current_max,v_speed,v_min,v_max,format,format_max) -end -function M.DragScalar(label,data_type,v,v_speed,v_min,v_max,format,power) - v_max = v_max or nil - format = format or nil - v_min = v_min or nil - power = power or 1.0 - return lib.igDragScalar(label,data_type,v,v_speed,v_min,v_max,format,power) -end -function M.DragScalarN(label,data_type,v,components,v_speed,v_min,v_max,format,power) - v_max = v_max or nil - format = format or nil - v_min = v_min or nil - power = power or 1.0 - return lib.igDragScalarN(label,data_type,v,components,v_speed,v_min,v_max,format,power) -end -M.Dummy = lib.igDummy -M.End = lib.igEnd -M.EndChild = lib.igEndChild -M.EndChildFrame = lib.igEndChildFrame -M.EndCombo = lib.igEndCombo -M.EndDragDropSource = lib.igEndDragDropSource -M.EndDragDropTarget = lib.igEndDragDropTarget -M.EndFrame = lib.igEndFrame -M.EndGroup = lib.igEndGroup -M.EndMainMenuBar = lib.igEndMainMenuBar -M.EndMenu = lib.igEndMenu -M.EndMenuBar = lib.igEndMenuBar -M.EndPopup = lib.igEndPopup -M.EndTabBar = lib.igEndTabBar -M.EndTabItem = lib.igEndTabItem -M.EndTooltip = lib.igEndTooltip -M.GetBackgroundDrawList = lib.igGetBackgroundDrawList -M.GetClipboardText = lib.igGetClipboardText -function M.GetColorU32(idx,alpha_mul) - alpha_mul = alpha_mul or 1.0 - return lib.igGetColorU32(idx,alpha_mul) -end -M.GetColorU32Vec4 = lib.igGetColorU32Vec4 -M.GetColorU32U32 = lib.igGetColorU32U32 -M.GetColumnIndex = lib.igGetColumnIndex -function M.GetColumnOffset(column_index) - column_index = column_index or -1 - return lib.igGetColumnOffset(column_index) -end -function M.GetColumnWidth(column_index) - column_index = column_index or -1 - return lib.igGetColumnWidth(column_index) -end -M.GetColumnsCount = lib.igGetColumnsCount -function M.GetContentRegionAvail() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetContentRegionAvail_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetContentRegionAvail_nonUDT2 = lib.igGetContentRegionAvail_nonUDT2 -function M.GetContentRegionMax() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetContentRegionMax_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetContentRegionMax_nonUDT2 = lib.igGetContentRegionMax_nonUDT2 -M.GetCurrentContext = lib.igGetCurrentContext -function M.GetCursorPos() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetCursorPos_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetCursorPos_nonUDT2 = lib.igGetCursorPos_nonUDT2 -M.GetCursorPosX = lib.igGetCursorPosX -M.GetCursorPosY = lib.igGetCursorPosY -function M.GetCursorScreenPos() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetCursorScreenPos_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetCursorScreenPos_nonUDT2 = lib.igGetCursorScreenPos_nonUDT2 -function M.GetCursorStartPos() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetCursorStartPos_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetCursorStartPos_nonUDT2 = lib.igGetCursorStartPos_nonUDT2 -M.GetDragDropPayload = lib.igGetDragDropPayload -M.GetDrawData = lib.igGetDrawData -M.GetDrawListSharedData = lib.igGetDrawListSharedData -M.GetFont = lib.igGetFont -M.GetFontSize = lib.igGetFontSize -function M.GetFontTexUvWhitePixel() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetFontTexUvWhitePixel_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetFontTexUvWhitePixel_nonUDT2 = lib.igGetFontTexUvWhitePixel_nonUDT2 -M.GetForegroundDrawList = lib.igGetForegroundDrawList -M.GetFrameCount = lib.igGetFrameCount -M.GetFrameHeight = lib.igGetFrameHeight -M.GetFrameHeightWithSpacing = lib.igGetFrameHeightWithSpacing -M.GetIDStr = lib.igGetIDStr -M.GetIDRange = lib.igGetIDRange -M.GetIDPtr = lib.igGetIDPtr -M.GetIO = lib.igGetIO -function M.GetItemRectMax() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetItemRectMax_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetItemRectMax_nonUDT2 = lib.igGetItemRectMax_nonUDT2 -function M.GetItemRectMin() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetItemRectMin_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetItemRectMin_nonUDT2 = lib.igGetItemRectMin_nonUDT2 -function M.GetItemRectSize() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetItemRectSize_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetItemRectSize_nonUDT2 = lib.igGetItemRectSize_nonUDT2 -M.GetKeyIndex = lib.igGetKeyIndex -M.GetKeyPressedAmount = lib.igGetKeyPressedAmount -M.GetMouseCursor = lib.igGetMouseCursor -function M.GetMouseDragDelta(button,lock_threshold) - lock_threshold = lock_threshold or -1.0 - button = button or 0 - local nonUDT_out = ffi.new("ImVec2") - lib.igGetMouseDragDelta_nonUDT(nonUDT_out,button,lock_threshold) - return nonUDT_out -end -function M.GetMouseDragDelta_nonUDT2(button,lock_threshold) - lock_threshold = lock_threshold or -1.0 - button = button or 0 - return lib.igGetMouseDragDelta_nonUDT2(button,lock_threshold) -end -function M.GetMousePos() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetMousePos_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetMousePos_nonUDT2 = lib.igGetMousePos_nonUDT2 -function M.GetMousePosOnOpeningCurrentPopup() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetMousePosOnOpeningCurrentPopup_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetMousePosOnOpeningCurrentPopup_nonUDT2 = lib.igGetMousePosOnOpeningCurrentPopup_nonUDT2 -M.GetScrollMaxX = lib.igGetScrollMaxX -M.GetScrollMaxY = lib.igGetScrollMaxY -M.GetScrollX = lib.igGetScrollX -M.GetScrollY = lib.igGetScrollY -M.GetStateStorage = lib.igGetStateStorage -M.GetStyle = lib.igGetStyle -M.GetStyleColorName = lib.igGetStyleColorName -M.GetStyleColorVec4 = lib.igGetStyleColorVec4 -M.GetTextLineHeight = lib.igGetTextLineHeight -M.GetTextLineHeightWithSpacing = lib.igGetTextLineHeightWithSpacing -M.GetTime = lib.igGetTime -M.GetTreeNodeToLabelSpacing = lib.igGetTreeNodeToLabelSpacing -M.GetVersion = lib.igGetVersion -function M.GetWindowContentRegionMax() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetWindowContentRegionMax_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetWindowContentRegionMax_nonUDT2 = lib.igGetWindowContentRegionMax_nonUDT2 -function M.GetWindowContentRegionMin() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetWindowContentRegionMin_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetWindowContentRegionMin_nonUDT2 = lib.igGetWindowContentRegionMin_nonUDT2 -M.GetWindowContentRegionWidth = lib.igGetWindowContentRegionWidth -M.GetWindowDrawList = lib.igGetWindowDrawList -M.GetWindowHeight = lib.igGetWindowHeight -function M.GetWindowPos() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetWindowPos_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetWindowPos_nonUDT2 = lib.igGetWindowPos_nonUDT2 -function M.GetWindowSize() - local nonUDT_out = ffi.new("ImVec2") - lib.igGetWindowSize_nonUDT(nonUDT_out) - return nonUDT_out -end -M.GetWindowSize_nonUDT2 = lib.igGetWindowSize_nonUDT2 -M.GetWindowWidth = lib.igGetWindowWidth -function M.Image(user_texture_id,size,uv0,uv1,tint_col,border_col) - border_col = border_col or ImVec4(0,0,0,0) - tint_col = tint_col or ImVec4(1,1,1,1) - uv0 = uv0 or ImVec2(0,0) - uv1 = uv1 or ImVec2(1,1) - return lib.igImage(user_texture_id,size,uv0,uv1,tint_col,border_col) -end -function M.ImageButton(user_texture_id,size,uv0,uv1,frame_padding,bg_col,tint_col) - uv1 = uv1 or ImVec2(1,1) - bg_col = bg_col or ImVec4(0,0,0,0) - uv0 = uv0 or ImVec2(0,0) - tint_col = tint_col or ImVec4(1,1,1,1) - frame_padding = frame_padding or -1 - return lib.igImageButton(user_texture_id,size,uv0,uv1,frame_padding,bg_col,tint_col) -end -function M.Indent(indent_w) - indent_w = indent_w or 0.0 - return lib.igIndent(indent_w) -end -function M.InputDouble(label,v,step,step_fast,format,flags) - step = step or 0.0 - format = format or "%.6f" - step_fast = step_fast or 0.0 - flags = flags or 0 - return lib.igInputDouble(label,v,step,step_fast,format,flags) -end -function M.InputFloat(label,v,step,step_fast,format,flags) - step = step or 0.0 - format = format or "%.3f" - step_fast = step_fast or 0.0 - flags = flags or 0 - return lib.igInputFloat(label,v,step,step_fast,format,flags) -end -function M.InputFloat2(label,v,format,flags) - format = format or "%.3f" - flags = flags or 0 - return lib.igInputFloat2(label,v,format,flags) -end -function M.InputFloat3(label,v,format,flags) - format = format or "%.3f" - flags = flags or 0 - return lib.igInputFloat3(label,v,format,flags) -end -function M.InputFloat4(label,v,format,flags) - format = format or "%.3f" - flags = flags or 0 - return lib.igInputFloat4(label,v,format,flags) -end -function M.InputInt(label,v,step,step_fast,flags) - step = step or 1 - step_fast = step_fast or 100 - flags = flags or 0 - return lib.igInputInt(label,v,step,step_fast,flags) -end -function M.InputInt2(label,v,flags) - flags = flags or 0 - return lib.igInputInt2(label,v,flags) -end -function M.InputInt3(label,v,flags) - flags = flags or 0 - return lib.igInputInt3(label,v,flags) -end -function M.InputInt4(label,v,flags) - flags = flags or 0 - return lib.igInputInt4(label,v,flags) -end -function M.InputScalar(label,data_type,v,step,step_fast,format,flags) - step = step or nil - format = format or nil - step_fast = step_fast or nil - flags = flags or 0 - return lib.igInputScalar(label,data_type,v,step,step_fast,format,flags) -end -function M.InputScalarN(label,data_type,v,components,step,step_fast,format,flags) - step = step or nil - format = format or nil - step_fast = step_fast or nil - flags = flags or 0 - return lib.igInputScalarN(label,data_type,v,components,step,step_fast,format,flags) -end -function M.InputText(label,buf,buf_size,flags,callback,user_data) - callback = callback or nil - user_data = user_data or nil - flags = flags or 0 - return lib.igInputText(label,buf,buf_size,flags,callback,user_data) -end -function M.InputTextMultiline(label,buf,buf_size,size,flags,callback,user_data) - callback = callback or nil - user_data = user_data or nil - size = size or ImVec2(0,0) - flags = flags or 0 - return lib.igInputTextMultiline(label,buf,buf_size,size,flags,callback,user_data) -end -function M.InputTextWithHint(label,hint,buf,buf_size,flags,callback,user_data) - callback = callback or nil - user_data = user_data or nil - flags = flags or 0 - return lib.igInputTextWithHint(label,hint,buf,buf_size,flags,callback,user_data) -end -M.InvisibleButton = lib.igInvisibleButton -M.IsAnyItemActive = lib.igIsAnyItemActive -M.IsAnyItemFocused = lib.igIsAnyItemFocused -M.IsAnyItemHovered = lib.igIsAnyItemHovered -M.IsAnyMouseDown = lib.igIsAnyMouseDown -M.IsItemActivated = lib.igIsItemActivated -M.IsItemActive = lib.igIsItemActive -function M.IsItemClicked(mouse_button) - mouse_button = mouse_button or 0 - return lib.igIsItemClicked(mouse_button) -end -M.IsItemDeactivated = lib.igIsItemDeactivated -M.IsItemDeactivatedAfterEdit = lib.igIsItemDeactivatedAfterEdit -M.IsItemEdited = lib.igIsItemEdited -M.IsItemFocused = lib.igIsItemFocused -function M.IsItemHovered(flags) - flags = flags or 0 - return lib.igIsItemHovered(flags) -end -M.IsItemVisible = lib.igIsItemVisible -M.IsKeyDown = lib.igIsKeyDown -function M.IsKeyPressed(user_key_index,_repeat) - if _repeat == nil then _repeat = true end - return lib.igIsKeyPressed(user_key_index,_repeat) -end -M.IsKeyReleased = lib.igIsKeyReleased -function M.IsMouseClicked(button,_repeat) - _repeat = _repeat or false - return lib.igIsMouseClicked(button,_repeat) -end -M.IsMouseDoubleClicked = lib.igIsMouseDoubleClicked -M.IsMouseDown = lib.igIsMouseDown -function M.IsMouseDragging(button,lock_threshold) - lock_threshold = lock_threshold or -1.0 - button = button or 0 - return lib.igIsMouseDragging(button,lock_threshold) -end -function M.IsMouseHoveringRect(r_min,r_max,clip) - if clip == nil then clip = true end - return lib.igIsMouseHoveringRect(r_min,r_max,clip) -end -function M.IsMousePosValid(mouse_pos) - mouse_pos = mouse_pos or nil - return lib.igIsMousePosValid(mouse_pos) -end -M.IsMouseReleased = lib.igIsMouseReleased -M.IsPopupOpen = lib.igIsPopupOpen -M.IsRectVisible = lib.igIsRectVisible -M.IsRectVisibleVec2 = lib.igIsRectVisibleVec2 -M.IsWindowAppearing = lib.igIsWindowAppearing -M.IsWindowCollapsed = lib.igIsWindowCollapsed -function M.IsWindowFocused(flags) - flags = flags or 0 - return lib.igIsWindowFocused(flags) -end -function M.IsWindowHovered(flags) - flags = flags or 0 - return lib.igIsWindowHovered(flags) -end -M.LabelText = lib.igLabelText -M.LabelTextV = lib.igLabelTextV -function M.ListBoxStr_arr(label,current_item,items,items_count,height_in_items) - height_in_items = height_in_items or -1 - return lib.igListBoxStr_arr(label,current_item,items,items_count,height_in_items) -end -function M.ListBoxFnPtr(label,current_item,items_getter,data,items_count,height_in_items) - height_in_items = height_in_items or -1 - return lib.igListBoxFnPtr(label,current_item,items_getter,data,items_count,height_in_items) -end -M.ListBoxFooter = lib.igListBoxFooter -function M.ListBoxHeaderVec2(label,size) - size = size or ImVec2(0,0) - return lib.igListBoxHeaderVec2(label,size) -end -function M.ListBoxHeaderInt(label,items_count,height_in_items) - height_in_items = height_in_items or -1 - return lib.igListBoxHeaderInt(label,items_count,height_in_items) -end -M.LoadIniSettingsFromDisk = lib.igLoadIniSettingsFromDisk -function M.LoadIniSettingsFromMemory(ini_data,ini_size) - ini_size = ini_size or 0 - return lib.igLoadIniSettingsFromMemory(ini_data,ini_size) -end -M.LogButtons = lib.igLogButtons -M.LogFinish = lib.igLogFinish -M.LogText = lib.igLogText -function M.LogToClipboard(auto_open_depth) - auto_open_depth = auto_open_depth or -1 - return lib.igLogToClipboard(auto_open_depth) -end -function M.LogToFile(auto_open_depth,filename) - auto_open_depth = auto_open_depth or -1 - filename = filename or nil - return lib.igLogToFile(auto_open_depth,filename) -end -function M.LogToTTY(auto_open_depth) - auto_open_depth = auto_open_depth or -1 - return lib.igLogToTTY(auto_open_depth) -end -M.MemAlloc = lib.igMemAlloc -M.MemFree = lib.igMemFree -function M.MenuItemBool(label,shortcut,selected,enabled) - if enabled == nil then enabled = true end - shortcut = shortcut or nil - selected = selected or false - return lib.igMenuItemBool(label,shortcut,selected,enabled) -end -function M.MenuItemBoolPtr(label,shortcut,p_selected,enabled) - if enabled == nil then enabled = true end - return lib.igMenuItemBoolPtr(label,shortcut,p_selected,enabled) -end -M.NewFrame = lib.igNewFrame -M.NewLine = lib.igNewLine -M.NextColumn = lib.igNextColumn -M.OpenPopup = lib.igOpenPopup -function M.OpenPopupOnItemClick(str_id,mouse_button) - mouse_button = mouse_button or 1 - str_id = str_id or nil - return lib.igOpenPopupOnItemClick(str_id,mouse_button) -end -function M.PlotHistogramFloatPtr(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride) - graph_size = graph_size or ImVec2(0,0) - values_offset = values_offset or 0 - scale_max = scale_max or M.FLT_MAX - scale_min = scale_min or M.FLT_MAX - stride = stride or ffi.sizeof("float") - overlay_text = overlay_text or nil - return lib.igPlotHistogramFloatPtr(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride) -end -function M.PlotHistogramFnPtr(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size) - graph_size = graph_size or ImVec2(0,0) - values_offset = values_offset or 0 - scale_max = scale_max or M.FLT_MAX - scale_min = scale_min or M.FLT_MAX - overlay_text = overlay_text or nil - return lib.igPlotHistogramFnPtr(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size) -end -function M.PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride) - graph_size = graph_size or ImVec2(0,0) - values_offset = values_offset or 0 - scale_max = scale_max or M.FLT_MAX - scale_min = scale_min or M.FLT_MAX - stride = stride or ffi.sizeof("float") - overlay_text = overlay_text or nil - return lib.igPlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride) -end -function M.PlotLinesFnPtr(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size) - graph_size = graph_size or ImVec2(0,0) - values_offset = values_offset or 0 - scale_max = scale_max or M.FLT_MAX - scale_min = scale_min or M.FLT_MAX - overlay_text = overlay_text or nil - return lib.igPlotLinesFnPtr(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size) -end -M.PopAllowKeyboardFocus = lib.igPopAllowKeyboardFocus -M.PopButtonRepeat = lib.igPopButtonRepeat -M.PopClipRect = lib.igPopClipRect -M.PopFont = lib.igPopFont -M.PopID = lib.igPopID -M.PopItemWidth = lib.igPopItemWidth -function M.PopStyleColor(count) - count = count or 1 - return lib.igPopStyleColor(count) -end -function M.PopStyleVar(count) - count = count or 1 - return lib.igPopStyleVar(count) -end -M.PopTextWrapPos = lib.igPopTextWrapPos -function M.ProgressBar(fraction,size_arg,overlay) - overlay = overlay or nil - size_arg = size_arg or ImVec2(-1,0) - return lib.igProgressBar(fraction,size_arg,overlay) -end -M.PushAllowKeyboardFocus = lib.igPushAllowKeyboardFocus -M.PushButtonRepeat = lib.igPushButtonRepeat -M.PushClipRect = lib.igPushClipRect -M.PushFont = lib.igPushFont -M.PushIDStr = lib.igPushIDStr -M.PushIDRange = lib.igPushIDRange -M.PushIDPtr = lib.igPushIDPtr -M.PushIDInt = lib.igPushIDInt -M.PushItemWidth = lib.igPushItemWidth -M.PushStyleColorU32 = lib.igPushStyleColorU32 -M.PushStyleColor = lib.igPushStyleColor -M.PushStyleVarFloat = lib.igPushStyleVarFloat -M.PushStyleVarVec2 = lib.igPushStyleVarVec2 -function M.PushTextWrapPos(wrap_local_pos_x) - wrap_local_pos_x = wrap_local_pos_x or 0.0 - return lib.igPushTextWrapPos(wrap_local_pos_x) -end -M.RadioButtonBool = lib.igRadioButtonBool -M.RadioButtonIntPtr = lib.igRadioButtonIntPtr -M.Render = lib.igRender -function M.ResetMouseDragDelta(button) - button = button or 0 - return lib.igResetMouseDragDelta(button) -end -function M.SameLine(offset_from_start_x,spacing) - spacing = spacing or -1.0 - offset_from_start_x = offset_from_start_x or 0.0 - return lib.igSameLine(offset_from_start_x,spacing) -end -M.SaveIniSettingsToDisk = lib.igSaveIniSettingsToDisk -function M.SaveIniSettingsToMemory(out_ini_size) - out_ini_size = out_ini_size or nil - return lib.igSaveIniSettingsToMemory(out_ini_size) -end -function M.Selectable(label,selected,flags,size) - flags = flags or 0 - size = size or ImVec2(0,0) - selected = selected or false - return lib.igSelectable(label,selected,flags,size) -end -function M.SelectableBoolPtr(label,p_selected,flags,size) - size = size or ImVec2(0,0) - flags = flags or 0 - return lib.igSelectableBoolPtr(label,p_selected,flags,size) -end -M.Separator = lib.igSeparator -function M.SetAllocatorFunctions(alloc_func,free_func,user_data) - user_data = user_data or nil - return lib.igSetAllocatorFunctions(alloc_func,free_func,user_data) -end -M.SetClipboardText = lib.igSetClipboardText -M.SetColorEditOptions = lib.igSetColorEditOptions -M.SetColumnOffset = lib.igSetColumnOffset -M.SetColumnWidth = lib.igSetColumnWidth -M.SetCurrentContext = lib.igSetCurrentContext -M.SetCursorPos = lib.igSetCursorPos -M.SetCursorPosX = lib.igSetCursorPosX -M.SetCursorPosY = lib.igSetCursorPosY -M.SetCursorScreenPos = lib.igSetCursorScreenPos -function M.SetDragDropPayload(type,data,sz,cond) - cond = cond or 0 - return lib.igSetDragDropPayload(type,data,sz,cond) -end -M.SetItemAllowOverlap = lib.igSetItemAllowOverlap -M.SetItemDefaultFocus = lib.igSetItemDefaultFocus -function M.SetKeyboardFocusHere(offset) - offset = offset or 0 - return lib.igSetKeyboardFocusHere(offset) -end -M.SetMouseCursor = lib.igSetMouseCursor -function M.SetNextItemOpen(is_open,cond) - cond = cond or 0 - return lib.igSetNextItemOpen(is_open,cond) -end -M.SetNextItemWidth = lib.igSetNextItemWidth -M.SetNextWindowBgAlpha = lib.igSetNextWindowBgAlpha -function M.SetNextWindowCollapsed(collapsed,cond) - cond = cond or 0 - return lib.igSetNextWindowCollapsed(collapsed,cond) -end -M.SetNextWindowContentSize = lib.igSetNextWindowContentSize -M.SetNextWindowFocus = lib.igSetNextWindowFocus -function M.SetNextWindowPos(pos,cond,pivot) - cond = cond or 0 - pivot = pivot or ImVec2(0,0) - return lib.igSetNextWindowPos(pos,cond,pivot) -end -function M.SetNextWindowSize(size,cond) - cond = cond or 0 - return lib.igSetNextWindowSize(size,cond) -end -function M.SetNextWindowSizeConstraints(size_min,size_max,custom_callback,custom_callback_data) - custom_callback = custom_callback or nil - custom_callback_data = custom_callback_data or nil - return lib.igSetNextWindowSizeConstraints(size_min,size_max,custom_callback,custom_callback_data) -end -function M.SetScrollFromPosX(local_x,center_x_ratio) - center_x_ratio = center_x_ratio or 0.5 - return lib.igSetScrollFromPosX(local_x,center_x_ratio) -end -function M.SetScrollFromPosY(local_y,center_y_ratio) - center_y_ratio = center_y_ratio or 0.5 - return lib.igSetScrollFromPosY(local_y,center_y_ratio) -end -function M.SetScrollHereX(center_x_ratio) - center_x_ratio = center_x_ratio or 0.5 - return lib.igSetScrollHereX(center_x_ratio) -end -function M.SetScrollHereY(center_y_ratio) - center_y_ratio = center_y_ratio or 0.5 - return lib.igSetScrollHereY(center_y_ratio) -end -M.SetScrollX = lib.igSetScrollX -M.SetScrollY = lib.igSetScrollY -M.SetStateStorage = lib.igSetStateStorage -M.SetTabItemClosed = lib.igSetTabItemClosed -M.SetTooltip = lib.igSetTooltip -M.SetTooltipV = lib.igSetTooltipV -function M.SetWindowCollapsedBool(collapsed,cond) - cond = cond or 0 - return lib.igSetWindowCollapsedBool(collapsed,cond) -end -function M.SetWindowCollapsedStr(name,collapsed,cond) - cond = cond or 0 - return lib.igSetWindowCollapsedStr(name,collapsed,cond) -end -M.SetWindowFocus = lib.igSetWindowFocus -M.SetWindowFocusStr = lib.igSetWindowFocusStr -M.SetWindowFontScale = lib.igSetWindowFontScale -function M.SetWindowPosVec2(pos,cond) - cond = cond or 0 - return lib.igSetWindowPosVec2(pos,cond) -end -function M.SetWindowPosStr(name,pos,cond) - cond = cond or 0 - return lib.igSetWindowPosStr(name,pos,cond) -end -function M.SetWindowSizeVec2(size,cond) - cond = cond or 0 - return lib.igSetWindowSizeVec2(size,cond) -end -function M.SetWindowSizeStr(name,size,cond) - cond = cond or 0 - return lib.igSetWindowSizeStr(name,size,cond) -end -function M.ShowAboutWindow(p_open) - p_open = p_open or nil - return lib.igShowAboutWindow(p_open) -end -function M.ShowDemoWindow(p_open) - p_open = p_open or nil - return lib.igShowDemoWindow(p_open) -end -M.ShowFontSelector = lib.igShowFontSelector -function M.ShowMetricsWindow(p_open) - p_open = p_open or nil - return lib.igShowMetricsWindow(p_open) -end -function M.ShowStyleEditor(ref) - ref = ref or nil - return lib.igShowStyleEditor(ref) -end -M.ShowStyleSelector = lib.igShowStyleSelector -M.ShowUserGuide = lib.igShowUserGuide -function M.SliderAngle(label,v_rad,v_degrees_min,v_degrees_max,format) - v_degrees_min = v_degrees_min or -360.0 - v_degrees_max = v_degrees_max or 360.0 - format = format or "%.0f deg" - return lib.igSliderAngle(label,v_rad,v_degrees_min,v_degrees_max,format) -end -function M.SliderFloat(label,v,v_min,v_max,format,power) - power = power or 1.0 - format = format or "%.3f" - return lib.igSliderFloat(label,v,v_min,v_max,format,power) -end -function M.SliderFloat2(label,v,v_min,v_max,format,power) - power = power or 1.0 - format = format or "%.3f" - return lib.igSliderFloat2(label,v,v_min,v_max,format,power) -end -function M.SliderFloat3(label,v,v_min,v_max,format,power) - power = power or 1.0 - format = format or "%.3f" - return lib.igSliderFloat3(label,v,v_min,v_max,format,power) -end -function M.SliderFloat4(label,v,v_min,v_max,format,power) - power = power or 1.0 - format = format or "%.3f" - return lib.igSliderFloat4(label,v,v_min,v_max,format,power) -end -function M.SliderInt(label,v,v_min,v_max,format) - format = format or "%d" - return lib.igSliderInt(label,v,v_min,v_max,format) -end -function M.SliderInt2(label,v,v_min,v_max,format) - format = format or "%d" - return lib.igSliderInt2(label,v,v_min,v_max,format) -end -function M.SliderInt3(label,v,v_min,v_max,format) - format = format or "%d" - return lib.igSliderInt3(label,v,v_min,v_max,format) -end -function M.SliderInt4(label,v,v_min,v_max,format) - format = format or "%d" - return lib.igSliderInt4(label,v,v_min,v_max,format) -end -function M.SliderScalar(label,data_type,v,v_min,v_max,format,power) - power = power or 1.0 - format = format or nil - return lib.igSliderScalar(label,data_type,v,v_min,v_max,format,power) -end -function M.SliderScalarN(label,data_type,v,components,v_min,v_max,format,power) - power = power or 1.0 - format = format or nil - return lib.igSliderScalarN(label,data_type,v,components,v_min,v_max,format,power) -end -M.SmallButton = lib.igSmallButton -M.Spacing = lib.igSpacing -function M.StyleColorsClassic(dst) - dst = dst or nil - return lib.igStyleColorsClassic(dst) -end -function M.StyleColorsDark(dst) - dst = dst or nil - return lib.igStyleColorsDark(dst) -end -function M.StyleColorsLight(dst) - dst = dst or nil - return lib.igStyleColorsLight(dst) -end -M.Text = lib.igText -M.TextColored = lib.igTextColored -M.TextColoredV = lib.igTextColoredV -M.TextDisabled = lib.igTextDisabled -M.TextDisabledV = lib.igTextDisabledV -function M.TextUnformatted(text,text_end) - text_end = text_end or nil - return lib.igTextUnformatted(text,text_end) -end -M.TextV = lib.igTextV -M.TextWrapped = lib.igTextWrapped -M.TextWrappedV = lib.igTextWrappedV -M.TreeNodeStr = lib.igTreeNodeStr -M.TreeNodeStrStr = lib.igTreeNodeStrStr -M.TreeNodePtr = lib.igTreeNodePtr -function M.TreeNodeExStr(label,flags) - flags = flags or 0 - return lib.igTreeNodeExStr(label,flags) -end -M.TreeNodeExStrStr = lib.igTreeNodeExStrStr -M.TreeNodeExPtr = lib.igTreeNodeExPtr -M.TreeNodeExVStr = lib.igTreeNodeExVStr -M.TreeNodeExVPtr = lib.igTreeNodeExVPtr -M.TreeNodeVStr = lib.igTreeNodeVStr -M.TreeNodeVPtr = lib.igTreeNodeVPtr -M.TreePop = lib.igTreePop -M.TreePushStr = lib.igTreePushStr -function M.TreePushPtr(ptr_id) - ptr_id = ptr_id or nil - return lib.igTreePushPtr(ptr_id) -end -function M.Unindent(indent_w) - indent_w = indent_w or 0.0 - return lib.igUnindent(indent_w) -end -function M.VSliderFloat(label,size,v,v_min,v_max,format,power) - power = power or 1.0 - format = format or "%.3f" - return lib.igVSliderFloat(label,size,v,v_min,v_max,format,power) -end -function M.VSliderInt(label,size,v,v_min,v_max,format) - format = format or "%d" - return lib.igVSliderInt(label,size,v,v_min,v_max,format) -end -function M.VSliderScalar(label,size,data_type,v,v_min,v_max,format,power) - power = power or 1.0 - format = format or nil - return lib.igVSliderScalar(label,size,data_type,v,v_min,v_max,format,power) -end -M.ValueBool = lib.igValueBool -M.ValueInt = lib.igValueInt -M.ValueUint = lib.igValueUint -function M.ValueFloat(prefix,v,float_format) - float_format = float_format or nil - return lib.igValueFloat(prefix,v,float_format) -end -return M -----------END_AUTOGENERATED_LUA----------------------------- \ No newline at end of file diff --git a/moonloader/lib/mimgui/init.lua b/moonloader/lib/mimgui/init.lua deleted file mode 100644 index 78f8e57..0000000 --- a/moonloader/lib/mimgui/init.lua +++ /dev/null @@ -1,368 +0,0 @@ --- This file is part of mimgui project --- Licensed under the MIT License --- Copyright (c) 2018, FYP - -assert(getMoonloaderVersion() >= 025) - -local imgui = require 'mimgui.imgui' -local DX9 = require 'mimgui.dx9' -local ffi = require 'ffi' -local winmsg = require 'windows.message' -local memory = require 'memory' -local mimgui = {} - -local renderer = nil -local subscriptionsInitialize = {} -local subscriptionsNewFrame = {} -local eventsRegistered = false -local active = false -local cursorActive = false -local playerLocked = false -local iniFilePath = nil -local defaultGlyphRanges = nil - -setmetatable(mimgui, {__index = imgui, __newindex = function(t, k, v) - if imgui[k] then - print('[mimgui] Warning! Overwriting existing key "'..k..'"!') - end - rawset(t, k, v) -end}) - --- background "Shift" triggering fix -memory.fill(0x00531155, 0x90, 5, true) - -local function ShowCursor(show) - if show then - showCursor(true) - elseif cursorActive then - showCursor(false) - end - cursorActive = show -end - -local function LockPlayer(lock) - if lock then - lockPlayerControl(true) - elseif playerLocked then - lockPlayerControl(false) - end - playerLocked = lock -end - --- MoonLoader v.027 -if not isCursorActive then - isCursorActive = function() return cursorActive end -end - -local function InitializeRenderer() - -- init renderer - local hwnd = ffi.cast('HWND', readMemory(0x00C8CF88, 4, false)) - local d3ddevice = ffi.cast('LPDIRECT3DDEVICE9', getD3DDevicePtr()) - renderer = assert(DX9.new(d3ddevice, hwnd)) - renderer:SwitchContext() - - -- configure imgui - imgui.GetIO().ImeWindowHandle = nil -- default causes crash. TODO: why? - imgui.GetIO().LogFilename = nil - local confdir = getWorkingDirectory() .. [[\config\mimgui\]] - if not doesDirectoryExist(confdir) then - createDirectory(confdir) - end - iniFilePath = ffi.new('char[260]', confdir .. script.this.filename .. '.ini') - imgui.GetIO().IniFilename = iniFilePath - - -- change font - local fontFile = getFolderPath(0x14) .. '\\trebucbd.ttf' - assert(doesFileExist(fontFile), '[mimgui] Font "' .. fontFile .. '" doesn\'t exist!') - local builder = imgui.ImFontGlyphRangesBuilder() - builder:AddRanges(imgui.GetIO().Fonts:GetGlyphRangesCyrillic()) - builder:AddText([[‚„…†‡€‰‹‘’“”•–—™›№]]) - defaultGlyphRanges = imgui.ImVector_ImWchar() - builder:BuildRanges(defaultGlyphRanges) - imgui.GetIO().Fonts:AddFontFromFileTTF(fontFile, 14, nil, defaultGlyphRanges[0].Data) - - -- invoke initializers - for _, cb in ipairs(subscriptionsInitialize) do - cb() - end -end - -local function RegisterEvents() - addEventHandler('onD3DPresent', function() - if active then - if not renderer then - InitializeRenderer() - end - if renderer and not renderer.lost then - renderer:SwitchContext() - for _, sub in ipairs(subscriptionsNewFrame) do - if sub._render and sub._before then - sub:_before() - end - end - renderer:NewFrame() - local hideCursor = true - for _, sub in ipairs(subscriptionsNewFrame) do - if sub._render then - sub:_draw() - hideCursor = hideCursor and sub.HideCursor - end - end - if hideCursor and not isCursorActive() then - imgui.SetMouseCursor(imgui.lib.ImGuiMouseCursor_None) - end - renderer:EndFrame() - end - end - end) - - local keyState = {} - local WM_MOUSEHWHEEL = 0x020E - local mouseMsgs = { - [WM_MOUSEHWHEEL]=true, - [winmsg.WM_LBUTTONDOWN]=true, - [winmsg.WM_LBUTTONDBLCLK]=true, - [winmsg.WM_RBUTTONDOWN]=true, - [winmsg.WM_RBUTTONDBLCLK]=true, - [winmsg.WM_MBUTTONDOWN]=true, - [winmsg.WM_MBUTTONDBLCLK]=true, - [winmsg.WM_LBUTTONUP]=true, - [winmsg.WM_RBUTTONUP]=true, - [winmsg.WM_MBUTTONUP]=true, - [winmsg.WM_MOUSEWHEEL]=true, - [winmsg.WM_SETCURSOR]=true - } - local keyboardMsgs = { - [winmsg.WM_KEYDOWN]=true, - [winmsg.WM_SYSKEYDOWN]=true, - [winmsg.WM_KEYUP]=true, - [winmsg.WM_SYSKEYUP]=true, - [winmsg.WM_CHAR]=true - } - addEventHandler('onWindowMessage', function(msg, wparam, lparam) - if not renderer then - return - end - - if not mimgui.DisableInput then - local keyboard = keyboardMsgs[msg] - local mouse = mouseMsgs[msg] - if active and (keyboard or mouse) then - renderer:SwitchContext() - local io = imgui.GetIO() - renderer:WindowMessage(msg, wparam, lparam) - if (keyboard and io.WantCaptureKeyboard) or (mouse and io.WantCaptureMouse) then - if msg == winmsg.WM_KEYDOWN or msg == winmsg.WM_SYSKEYDOWN then - keyState[wparam] = false - consumeWindowMessage(true, true, true) - elseif msg == winmsg.WM_KEYUP or msg == winmsg.WM_SYSKEYUP then - if not keyState[wparam] then - consumeWindowMessage(true, true, true) - end - else - consumeWindowMessage(true, true, true) - end - end - end - end - - -- save key states to prevent key sticking - if msg == winmsg.WM_KILLFOCUS then - keyState = {} - elseif wparam < 256 then - if msg == winmsg.WM_KEYDOWN or msg == winmsg.WM_SYSKEYDOWN then - keyState[wparam] = true - elseif msg == winmsg.WM_KEYUP or msg == winmsg.WM_SYSKEYUP then - keyState[wparam] = false - end - end - end) - - addEventHandler('onD3DDeviceLost', function() - if renderer and not renderer.lost then - renderer:InvalidateDeviceObjects() - renderer.lost = true - end - end) - - addEventHandler('onD3DDeviceReset', function() - if renderer then - renderer.lost = false - end - end) - - addEventHandler('onScriptTerminate', function(scr) - if scr == script.this then - ShowCursor(false) - LockPlayer(false) - end - end) - - local updaterThread = lua_thread.create(function() - while true do - wait(0) - local activate, hideCursor, lockPlayer = false, true, false - if #subscriptionsNewFrame > 0 then - for i, sub in ipairs(subscriptionsNewFrame) do - if type(sub.Condition) == 'function' then - sub._render = sub.Condition() - else - sub._render = sub.Condition and true - end - if sub._render then - hideCursor = hideCursor and sub.HideCursor - lockPlayer = lockPlayer or sub.LockPlayer - end - activate = activate or sub._render - end - end - active = activate - ShowCursor(active and not hideCursor) - LockPlayer(active and lockPlayer) - end - end) - updaterThread.work_in_pause = true -end - -local function Unsubscribe(t, sub) - for i, v in ipairs(t) do - if v == sub then - table.remove(t, i) - return - end - end -end - -local function ImGuiEnum(name) - return setmetatable({__name = name}, {__index = function(t, k) - return imgui.lib[t.__name .. k] - end}) -end - ---- API --- -mimgui._VERSION = '1.7.0' -mimgui.DisableInput = false - -mimgui.ComboFlags = ImGuiEnum('ImGuiComboFlags_') -mimgui.Dir = ImGuiEnum('ImGuiDir_') -mimgui.ColorEditFlags = ImGuiEnum('ImGuiColorEditFlags_') -mimgui.Col = ImGuiEnum('ImGuiCol_') -mimgui.WindowFlags = ImGuiEnum('ImGuiWindowFlags_') -mimgui.NavInput = ImGuiEnum('ImGuiNavInput_') -mimgui.FocusedFlags = ImGuiEnum('ImGuiFocusedFlags_') -mimgui.Cond = ImGuiEnum('ImGuiCond_') -mimgui.BackendFlags = ImGuiEnum('ImGuiBackendFlags_') -mimgui.TreeNodeFlags = ImGuiEnum('ImGuiTreeNodeFlags_') -mimgui.StyleVar = ImGuiEnum('ImGuiStyleVar_') -mimgui.DrawCornerFlags = ImGuiEnum('ImDrawCornerFlags_') -mimgui.DragDropFlags = ImGuiEnum('ImGuiDragDropFlags_') -mimgui.SelectableFlags = ImGuiEnum('ImGuiSelectableFlags_') -mimgui.InputTextFlags = ImGuiEnum('ImGuiInputTextFlags_') -mimgui.MouseCursor = ImGuiEnum('ImGuiMouseCursor_') -mimgui.FontAtlasFlags = ImGuiEnum('ImFontAtlasFlags_') -mimgui.HoveredFlags = ImGuiEnum('ImGuiHoveredFlags_') -mimgui.ConfigFlags = ImGuiEnum('ImGuiConfigFlags_') -mimgui.DrawListFlags = ImGuiEnum('ImDrawListFlags_') -mimgui.DataType = ImGuiEnum('ImGuiDataType_') -mimgui.Key = ImGuiEnum('ImGuiKey_') - -function mimgui.OnInitialize(cb) - assert(type(cb) == 'function') - table.insert(subscriptionsInitialize, cb) - return {Unsubscribe = function() Unsubscribe(subscriptionsInitialize, cb) end} -end - -function mimgui.OnFrame(cond, cbBeforeFrame, cbDraw) - assert(type(cond) == 'function') - assert(type(cbBeforeFrame) == 'function') - if cbDraw then assert(type(cbDraw) == 'function') end - if not eventsRegistered then - RegisterEvents() - eventsRegistered = true - end - local sub = { - Condition = cond, - LockPlayer = false, - HideCursor = false, - _before = cbDraw and cbBeforeFrame or nil, - _draw = cbDraw or cbBeforeFrame, - _render = false, - } - function sub:Unsubscribe() - Unsubscribe(subscriptionsNewFrame, self) - end - function sub:IsActive() - return self._render - end - table.insert(subscriptionsNewFrame, sub) - return sub -end - -function mimgui.SwitchContext() - return renderer:SwitchContext() -end - -function mimgui.CreateTextureFromFile(path) - return renderer:CreateTextureFromFile(path) -end - -function mimgui.CreateTextureFromFileInMemory(src, size) - return renderer:CreateTextureFromFileInMemory(src, size) -end - -function mimgui.ReleaseTexture(tex) - return renderer:ReleaseTexture(tex) -end - -function mimgui.CreateFontsTexture() - return renderer:CreateFontsTexture() -end - -function mimgui.InvalidateFontsTexture() - return renderer:InvalidateFontsTexture() -end - -function mimgui.GetRenderer() - return renderer -end - -function mimgui.IsInitialized() - return renderer ~= nil -end - -function mimgui.StrCopy(dst, src, len) - if len or tostring(ffi.typeof(dst)):find('*', 1, true) then - ffi.copy(dst, src, len) - else - len = math.min(ffi.sizeof(dst) - 1, #src) - ffi.copy(dst, src, len) - dst[len] = 0 - end -end - -local new = {} -setmetatable(new, { - __index = function(self, key) - local basetype = ffi.typeof(key) - local mt = { - __index = function(self, sz) - return setmetatable({type = ffi.typeof('$[$]', self.type, sz)}, getmetatable(self)) - end, - __call = function(self, ...) - return self.type(...) - end - } - return setmetatable({type = ffi.typeof('$[1]', basetype), basetype = basetype}, { - __index = function(self, sz) - return setmetatable({type = ffi.typeof('$[$]', self.basetype, sz)}, mt) - end, - __call = mt.__call - }) - end, - __call = function(self, t, ...) - return ffi.new(t, ...) - end -}) -mimgui.new = new - -return mimgui diff --git a/moonloader/lib/ziplib.dll b/moonloader/lib/ziplib.dll deleted file mode 100644 index bf09dfbd36b4e1da136d02ad589c9be09a4ab3a6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 134787 zcmdqK4}4rznKynXO=#K%W`KYJ3Iqw7(h5O}wzS{?y=-J#cYqF{7Ay+gf-UxKCvDj! zko0CC*W1yoHg4T*ck8~mcGn7VO=&ExOxoCq7&V2gM9u1m(VcPPzHyC9)Vle7zt1`M z&YkI`u&e#~?%U6&lk@jE=lOG<^PF>@bMA`wbr>@Y!zjo9sVT$g!C(Fh%kQawT9AF# zr3cS4x@UdkvYx>5Z(O!=?L(VtH*EaKpKiQ=eeH+tf8>#m#A-kIVC}}HM`|B>q;}b# z+*!N+BM&@y)tP6`uG63+reQ1(1dUsJ*4=093K)CPk+gBfWpe^$ml%rzhOrL+k=Al9 zDunPqg1FIszl6(FzX^){mwyqJ__k=7;AI%Ksvaw_KK{v{j(~CT97Og6jO}Mga_OJJ zfYIRrKelM)kb9XRS(=ByC2zm zS&_H{J!2{U`u>HD)ybSalzn-cp#)bpC50yayFL zp%G|hR3YPz!t!CGA$-+Cs+`aev@|MF?!J@CC9k^Wj+KPHfInTxCmw4`l#8vC{t=9k z)aBNeD7W#!bszbVp?EWheDd(&lgizE^+EyydHIvp@HP~e3*UV8HH%ro=)4p^X`^#q6-vfmdi-wdr-5sxzQXoxNz0wDssUIAqBV71%V+HSt+8@@ayz=kyD`_8XN`GcAg4SeNuqmy$?kj9_9Bp2#+HCs%HQ&>127+y8p$&<} zlfkwxqFO%d7-I471=}2^R&HQ_V{@IAb@i!bb>*P9VXv&KM7-9nuA3UP#;U9e(jtH! zOV4$;3!`f~T;e_e3{w?E9-xe;q<4iFEBZZ8Dr9e)nwnB^RWkc95;}-4dlTxi?+4sU z{t=L@lX>;pfRSB*ax7A=iWvBl`5H1*Iiit$6Jc+5`Rj7v5NrS2e@;#1&g}62i{5R2 z>#jTPWA@9Cl=w^bdF>JV{-%dMBXW?8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