CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
[C++] Small Code Thread
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Harry" data-source="post: 33641" data-attributes="member: 35"><p>Player "Chams" are just body colours and can be found here: <a href="http://www.nextgenupdate.com/forums/black-ops-2-mods-cheats-guides/842680-1-19-updated-offsets-byes.html" target="_blank">[1.19] Updated Offsets + byes - NextGenUpdate</a></p><p></p><p>Check Box bools, </p><p>Draw this after drawing your menu's Shaders:</p><p>[CODE]DrawMenuBooleanText();[/CODE]</p><p></p><p>Function:</p><p>[CODE]void DrawMenuBooleanText()</p><p>{</p><p> char MMboolBuffer[1000];</p><p> snprintf(MMboolBuffer, sizeof(MMboolBuffer), "%s%s",</p><p> getBool(BOOLEAN),</p><p> getBool(BOOLEAN)</p><p> );</p><p> DrawText(MMboolBuffer, MenuX - (MenuWidth / 2) + 440, TextY, 0, 1, "normalFont", White, align_left);//Menu Text</p><p>}[/CODE]</p><p></p><p>getBool function:</p><p>[CODE]char* getBool(bool aBool)</p><p>{</p><p> if (aBool) return "^2ON\n";</p><p> else return "^1OFF\n";</p><p>}[/CODE]</p><p></p><p></p><p>If you wanna do checkboxes, you'll need to draw each line individually and as a shader... If you wanna do just text, then this will do fine</p></blockquote><p></p>
[QUOTE="Harry, post: 33641, member: 35"] Player "Chams" are just body colours and can be found here: [url="http://www.nextgenupdate.com/forums/black-ops-2-mods-cheats-guides/842680-1-19-updated-offsets-byes.html"][1.19] Updated Offsets + byes - NextGenUpdate[/url] Check Box bools, Draw this after drawing your menu's Shaders: [CODE]DrawMenuBooleanText();[/CODE] Function: [CODE]void DrawMenuBooleanText() { char MMboolBuffer[1000]; snprintf(MMboolBuffer, sizeof(MMboolBuffer), "%s%s", getBool(BOOLEAN), getBool(BOOLEAN) ); DrawText(MMboolBuffer, MenuX - (MenuWidth / 2) + 440, TextY, 0, 1, "normalFont", White, align_left);//Menu Text }[/CODE] getBool function: [CODE]char* getBool(bool aBool) { if (aBool) return "^2ON\n"; else return "^1OFF\n"; }[/CODE] If you wanna do checkboxes, you'll need to draw each line individually and as a shader... If you wanna do just text, then this will do fine [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
[C++] Small Code Thread
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top