Release Easy Menu
#1
A lot of people wanted to know how to make an easy menu.. well this one is quite easy. I'm sure people can find out how to add buttons and such

Just look true it and change the CAPS things:
MENU NAME HERE
CONFIG NAME HERE
TITLE NAME HERE
HIGHEST IMAGE NAME HERE
LOWEST IMAGE NAME HERE
MIDDLE IMAGE NAME HERE


but post questions if you don't understand!! this thread is kinda made for questions XD

Code:
#include "ui/menudef.h" #include "ui_mp/common_macro.inc" #include "ui_mp/menustyle.inc" #include "ui_mp/choices_setup_teams.menu" { menuDef { name "MENU NAME HERE" rect 0 0 640 480 focuscolor COLOR_FOCUSED style WINDOW_STYLE_EMPTY blurWorld 7.0 onOpen { execNow exec "CONFIG NAME HERE"; } onEsc { play "mouse_click"; close self; open "team_marinesopfor"; } CHOICE_MENU_TITLE( TITLE NAME HERE ) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 1, "About Old School", open mod_information;, ;, ;, 1, ;) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 2, "Server Information", open mod_serverinfo;, ;, ;, 1, ;) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 4, "Play!", close self; open "team_marinesopfor";, ;, ;, 1, ;) // gradient_top itemDef { style WINDOW_STYLE_SHADER rect 0 0 854 75 HORIZONTAL_ALIGN_FULLSCREEN 0 background "gradient_top" visible 1 decoration } // gradient_bottom itemDef { style WINDOW_STYLE_SHADER rect 0 405 854 75 HORIZONTAL_ALIGN_FULLSCREEN 0 background "gradient_bottom" visible 1 decoration } itemDef { style WINDOW_STYLE_SHADER rect 60 -185 220 370 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER background "white" forecolor 0 0 0 0.8 border 1 bordersize 1.5 bordercolor 0.5 0.5 0.5 0.8 visible 1 decoration } itemDef { rect 70 70 200 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER forecolor 1 1 1 1 style WINDOW_STYLE_SHADER background "LOWEST IMAGE NAME HERE" visible 1 decoration } itemDef { rect 70 -50 200 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER forecolor 1 1 1 1 style WINDOW_STYLE_SHADER background "MIDDLE IMAGE NAME HERE" visible 1 decoration } itemDef { rect 70 -170 200 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER forecolor 1 1 1 1 style WINDOW_STYLE_SHADER background "HIGHEST IMAGE NAME HERE" visible 1 decoration } #include "ui/safearea.menu" } #include "ui_mp/popupstyle.inc" #include "ui/choices_setup_popmenu.menu" #undef POPUP_BUTTON_COUNT #define POPUP_BUTTON_COUNT 1 menuDef { SYSTEM_POPUP_SETUP_VIS( mod_information, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( "The point of this mod is to let people play with other guns then they normally do. Pick up weapons and perks from 'pickup points' to arm yourself.\n\nMod made by iAegle.", 1 ) FRAME_CHOICE_BUTTON_VIS_EX( 1, "@MENU_OK", close self;, 1, ;) } menuDef { SYSTEM_POPUP_SETUP_VIS( mod_serverinfo, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( ( dvarString( os_servernote ) ), 1 ) FRAME_CHOICE_BUTTON_VIS_EX( 1, "@MENU_OK", close self;, 1, ;) } #undef POPUP_BUTTON_COUNT #define POPUP_BUTTON_COUNT 3 menuDef { SYSTEM_POPUP_SETUP_VIS( mod_adminmenu, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( ( "Admin Menu\nYou can change settings in here." ), 1 ) CHOICE_DVARFLOATLIST( 1, "@OS_SETTING_WEAPON_RESPAWN", "os_weaponrespawntime", { "5" 5 "10" 10 "15" 15 "20" 20 "25" 25 "30" 30 }, ; ) CHOICE_DVARFLOATLIST( 2, "@OS_SETTING_PERK_RESPAWN", "os_perkrespawntime", { "5" 5 "10" 10 "15" 15 "20" 20 "25" 25 "30" 30 }, ; ) FRAME_CHOICE_BUTTON_VIS_EX( 3, "@MENU_OK", close self;, 1, ;) } }

ENDRESULT
[Image: 9A634C025D3A55767750FC0ACF9202DFD2A398BC]
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#2
(07-21-2011, 23:11)iAegle Wrote: A lot of people wanted to know how to make an easy menu.. well this one is quite easy. I'm sure people can find out how to add buttons and such

Just look true it and change the CAPS things:
MENU NAME HERE
CONFIG NAME HERE
TITLE NAME HERE
HIGHEST IMAGE NAME HERE
LOWEST IMAGE NAME HERE
MIDDLE IMAGE NAME HERE


but post questions if you don't understand!! this thread is kinda made for questions XD

Code:
#include "ui/menudef.h" #include "ui_mp/common_macro.inc" #include "ui_mp/menustyle.inc" #include "ui_mp/choices_setup_teams.menu" { menuDef { name "MENU NAME HERE" rect 0 0 640 480 focuscolor COLOR_FOCUSED style WINDOW_STYLE_EMPTY blurWorld 7.0 onOpen { execNow exec "CONFIG NAME HERE"; } onEsc { play "mouse_click"; close self; open "team_marinesopfor"; } CHOICE_MENU_TITLE( TITLE NAME HERE ) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 1, "About Old School", open mod_information;, ;, ;, 1, ;) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 2, "Server Information", open mod_serverinfo;, ;, ;, 1, ;) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 4, "Play!", close self; open "team_marinesopfor";, ;, ;, 1, ;) // gradient_top itemDef { style WINDOW_STYLE_SHADER rect 0 0 854 75 HORIZONTAL_ALIGN_FULLSCREEN 0 background "gradient_top" visible 1 decoration } // gradient_bottom itemDef { style WINDOW_STYLE_SHADER rect 0 405 854 75 HORIZONTAL_ALIGN_FULLSCREEN 0 background "gradient_bottom" visible 1 decoration } itemDef { style WINDOW_STYLE_SHADER rect 60 -185 220 370 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER background "white" forecolor 0 0 0 0.8 border 1 bordersize 1.5 bordercolor 0.5 0.5 0.5 0.8 visible 1 decoration } itemDef { rect 70 70 200 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER forecolor 1 1 1 1 style WINDOW_STYLE_SHADER background "LOWEST IMAGE NAME HERE" visible 1 decoration } itemDef { rect 70 -50 200 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER forecolor 1 1 1 1 style WINDOW_STYLE_SHADER background "MIDDLE IMAGE NAME HERE" visible 1 decoration } itemDef { rect 70 -170 200 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER forecolor 1 1 1 1 style WINDOW_STYLE_SHADER background "HIGHEST IMAGE NAME HERE" visible 1 decoration } #include "ui/safearea.menu" } #include "ui_mp/popupstyle.inc" #include "ui/choices_setup_popmenu.menu" #undef POPUP_BUTTON_COUNT #define POPUP_BUTTON_COUNT 1 menuDef { SYSTEM_POPUP_SETUP_VIS( mod_information, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( "The point of this mod is to let people play with other guns then they normally do. Pick up weapons and perks from 'pickup points' to arm yourself.\n\nMod made by iAegle.", 1 ) FRAME_CHOICE_BUTTON_VIS_EX( 1, "@MENU_OK", close self;, 1, ;) } menuDef { SYSTEM_POPUP_SETUP_VIS( mod_serverinfo, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( ( dvarString( os_servernote ) ), 1 ) FRAME_CHOICE_BUTTON_VIS_EX( 1, "@MENU_OK", close self;, 1, ;) } #undef POPUP_BUTTON_COUNT #define POPUP_BUTTON_COUNT 3 menuDef { SYSTEM_POPUP_SETUP_VIS( mod_adminmenu, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( ( "Admin Menu\nYou can change settings in here." ), 1 ) CHOICE_DVARFLOATLIST( 1, "@OS_SETTING_WEAPON_RESPAWN", "os_weaponrespawntime", { "5" 5 "10" 10 "15" 15 "20" 20 "25" 25 "30" 30 }, ; ) CHOICE_DVARFLOATLIST( 2, "@OS_SETTING_PERK_RESPAWN", "os_perkrespawntime", { "5" 5 "10" 10 "15" 15 "20" 20 "25" 25 "30" 30 }, ; ) FRAME_CHOICE_BUTTON_VIS_EX( 3, "@MENU_OK", close self;, 1, ;) } }

ENDRESULT
[Image: 9A634C025D3A55767750FC0ACF9202DFD2A398BC]

There is images? How we make it without?
Reply

#3
(07-21-2011, 23:14)Scripts18 Wrote:
(07-21-2011, 23:11)iAegle Wrote: A lot of people wanted to know how to make an easy menu.. well this one is quite easy. I'm sure people can find out how to add buttons and such

Just look true it and change the CAPS things:
MENU NAME HERE
CONFIG NAME HERE
TITLE NAME HERE
HIGHEST IMAGE NAME HERE
LOWEST IMAGE NAME HERE
MIDDLE IMAGE NAME HERE


but post questions if you don't understand!! this thread is kinda made for questions XD

Code:
#include "ui/menudef.h" #include "ui_mp/common_macro.inc" #include "ui_mp/menustyle.inc" #include "ui_mp/choices_setup_teams.menu" { menuDef { name "MENU NAME HERE" rect 0 0 640 480 focuscolor COLOR_FOCUSED style WINDOW_STYLE_EMPTY blurWorld 7.0 onOpen { execNow exec "CONFIG NAME HERE"; } onEsc { play "mouse_click"; close self; open "team_marinesopfor"; } CHOICE_MENU_TITLE( TITLE NAME HERE ) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 1, "About Old School", open mod_information;, ;, ;, 1, ;) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 2, "Server Information", open mod_serverinfo;, ;, ;, 1, ;) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 4, "Play!", close self; open "team_marinesopfor";, ;, ;, 1, ;) // gradient_top itemDef { style WINDOW_STYLE_SHADER rect 0 0 854 75 HORIZONTAL_ALIGN_FULLSCREEN 0 background "gradient_top" visible 1 decoration } // gradient_bottom itemDef { style WINDOW_STYLE_SHADER rect 0 405 854 75 HORIZONTAL_ALIGN_FULLSCREEN 0 background "gradient_bottom" visible 1 decoration } itemDef { style WINDOW_STYLE_SHADER rect 60 -185 220 370 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER background "white" forecolor 0 0 0 0.8 border 1 bordersize 1.5 bordercolor 0.5 0.5 0.5 0.8 visible 1 decoration } itemDef { rect 70 70 200 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER forecolor 1 1 1 1 style WINDOW_STYLE_SHADER background "LOWEST IMAGE NAME HERE" visible 1 decoration } itemDef { rect 70 -50 200 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER forecolor 1 1 1 1 style WINDOW_STYLE_SHADER background "MIDDLE IMAGE NAME HERE" visible 1 decoration } itemDef { rect 70 -170 200 100 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER forecolor 1 1 1 1 style WINDOW_STYLE_SHADER background "HIGHEST IMAGE NAME HERE" visible 1 decoration } #include "ui/safearea.menu" } #include "ui_mp/popupstyle.inc" #include "ui/choices_setup_popmenu.menu" #undef POPUP_BUTTON_COUNT #define POPUP_BUTTON_COUNT 1 menuDef { SYSTEM_POPUP_SETUP_VIS( mod_information, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( "The point of this mod is to let people play with other guns then they normally do. Pick up weapons and perks from 'pickup points' to arm yourself.\n\nMod made by iAegle.", 1 ) FRAME_CHOICE_BUTTON_VIS_EX( 1, "@MENU_OK", close self;, 1, ;) } menuDef { SYSTEM_POPUP_SETUP_VIS( mod_serverinfo, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( ( dvarString( os_servernote ) ), 1 ) FRAME_CHOICE_BUTTON_VIS_EX( 1, "@MENU_OK", close self;, 1, ;) } #undef POPUP_BUTTON_COUNT #define POPUP_BUTTON_COUNT 3 menuDef { SYSTEM_POPUP_SETUP_VIS( mod_adminmenu, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( ( "Admin Menu\nYou can change settings in here." ), 1 ) CHOICE_DVARFLOATLIST( 1, "@OS_SETTING_WEAPON_RESPAWN", "os_weaponrespawntime", { "5" 5 "10" 10 "15" 15 "20" 20 "25" 25 "30" 30 }, ; ) CHOICE_DVARFLOATLIST( 2, "@OS_SETTING_PERK_RESPAWN", "os_perkrespawntime", { "5" 5 "10" 10 "15" 15 "20" 20 "25" 25 "30" 30 }, ; ) FRAME_CHOICE_BUTTON_VIS_EX( 3, "@MENU_OK", close self;, 1, ;) } }

ENDRESULT
[Image: 9A634C025D3A55767750FC0ACF9202DFD2A398BC]

There is images? How we make it without?

Search for the itemDef {} functions with:

background HIGHEST IMAGE NAME HERE
background MIDDLE IMAGE NAME HERE
background LOWEST IMAGE NAME HERE

and completely remove those functions.

it should look like this
Code:
#include "ui/menudef.h" #include "ui_mp/common_macro.inc" #include "ui_mp/menustyle.inc" #include "ui_mp/choices_setup_teams.menu" { menuDef { name "MENU NAME HERE" rect 0 0 640 480 focuscolor COLOR_FOCUSED style WINDOW_STYLE_EMPTY blurWorld 7.0 onOpen { execNow exec "CONFIG NAME HERE"; } onEsc { play "mouse_click"; close self; open "team_marinesopfor"; } CHOICE_MENU_TITLE( TITLE NAME HERE ) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 1, "About Old School", open mod_information;, ;, ;, 1, ;) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 2, "Server Information", open mod_serverinfo;, ;, ;, 1, ;) FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 4, "Play!", close self; open "team_marinesopfor";, ;, ;, 1, ;) // gradient_top itemDef { style WINDOW_STYLE_SHADER rect 0 0 854 75 HORIZONTAL_ALIGN_FULLSCREEN 0 background "gradient_top" visible 1 decoration } // gradient_bottom itemDef { style WINDOW_STYLE_SHADER rect 0 405 854 75 HORIZONTAL_ALIGN_FULLSCREEN 0 background "gradient_bottom" visible 1 decoration } #include "ui/safearea.menu" } #include "ui_mp/popupstyle.inc" #include "ui/choices_setup_popmenu.menu" #undef POPUP_BUTTON_COUNT #define POPUP_BUTTON_COUNT 1 menuDef { SYSTEM_POPUP_SETUP_VIS( mod_information, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( "The point of this mod is to let people play with other guns then they normally do. Pick up weapons and perks from 'pickup points' to arm yourself.\n\nMod made by iAegle.", 1 ) FRAME_CHOICE_BUTTON_VIS_EX( 1, "@MENU_OK", close self;, 1, ;) } menuDef { SYSTEM_POPUP_SETUP_VIS( mod_serverinfo, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( ( dvarString( os_servernote ) ), 1 ) FRAME_CHOICE_BUTTON_VIS_EX( 1, "@MENU_OK", close self;, 1, ;) } #undef POPUP_BUTTON_COUNT #define POPUP_BUTTON_COUNT 3 menuDef { SYSTEM_POPUP_SETUP_VIS( mod_adminmenu, ;, ;, 1 ) SYSTEM_POPUP_TITLE_VIS( ( "Admin Menu\nYou can change settings in here." ), 1 ) CHOICE_DVARFLOATLIST( 1, "@OS_SETTING_WEAPON_RESPAWN", "os_weaponrespawntime", { "5" 5 "10" 10 "15" 15 "20" 20 "25" 25 "30" 30 }, ; ) CHOICE_DVARFLOATLIST( 2, "@OS_SETTING_PERK_RESPAWN", "os_perkrespawntime", { "5" 5 "10" 10 "15" 15 "20" 20 "25" 25 "30" 30 }, ; ) FRAME_CHOICE_BUTTON_VIS_EX( 3, "@MENU_OK", close self;, 1, ;) } }
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#4
ok thx alot again

to open it do we do like in your quickmessage?

self openmenu(MENU NAME); ?
Reply

#5
Thanks!

Any common menu names? Like the one when choosing a team / pausing the game?
Edit: How do I make someone open a menu lol
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#6
(07-21-2011, 23:26)AZUMIKKEL Wrote: Thanks!

Any common menu names? Like the one when choosing a team / pausing the game?
Edit: How do I make someone open a menu lol

Its probably the same as using quickmessages
Reply

#7
Will you marry me?
Reply

#8
thats thats thats AWESOME,
like MOTD but for black ops,
THNX DUDE LOVE IT
Reply

#9
some questions

what the exec config is for?
how we open it in-game?

to open another menu clicking on a buttom(similar to main menu) is it possible if yes how?
or like the quickmessage you click on something it close current menu and opens another
Reply

#10
(07-22-2011, 01:21)Scripts18 Wrote: some questions

what the exec config is for?
how we open it in-game?

to open another menu clicking on a buttom(similar to main menu) is it possible if yes how?
or like the quickmessage you click on something it close current menu and opens another

name "MENU NAME HERE"
Replace MENU NAME HERE with a menu name such as menu_customstuff and then somewhere, precache the menu:
precacheMenu("menu_customstuff");
and then simply use:
self openMenu("menu_customstuff");

I would assume you already know how to save the menu file and compile it into a fast file...
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Admin menu koren30 4 6,701 10-07-2013, 20:17
Last Post: Yamato
  [Tutorial] How-To, Mod menu picture-REVISED/no iwifix needed rotceh_dnih 52 42,206 09-28-2013, 02:08
Last Post: Monkey Arms
  Help How do I open the admin menu for GeKKos QS Mod? conorr 1 4,269 08-15-2013, 13:52
Last Post: Yamato
  Trying to compile a modified menu DidUknowiPwn 7 8,090 07-05-2013, 21:55
Last Post: DidUknowiPwn
  Preview Admin / Mod Menu Hologramm 5 9,091 05-29-2013, 00:35
Last Post: sleepunknot
  [Release] Easy Background Changer for MW3 V3.0 kokole 86 78,438 05-28-2013, 10:39
Last Post: fahdalkhairy
  Map Menu in Black Ops 1 EliTeEishiii 2 4,210 04-21-2013, 18:54
Last Post: Nekochan
  Menu base EliTeEishiii 1 4,033 04-17-2013, 16:10
Last Post: Nekochan
Rainbow [Release] [Contest] Scroll Menu iAegle 49 48,582 03-21-2013, 07:30
Last Post: jermC
Tongue [Release] Easy background changer for MW2 kokole 8 13,987 03-18-2013, 02:55
Last Post: 007promi

Forum Jump:


Users browsing this thread:

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.