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
ENDRESULT
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
C 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, <img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
- FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 2, "Server Information", open mod_serverinfo;, ;, ;, 1, <img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
- FRAME_CHOICE_BUTTON_FOCUS_VIS_EX( 4, "Play!", close self; open "team_marinesopfor";, ;, ;, 1, <img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
-
- // 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, <img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
- }
-
- 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, <img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
- }
-
- #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, <img src="https://www.itsmods.com/forum/images/smilies/wink.gif" alt="Wink" title="Wink" class="smilie smilie_2" />
- }
- }
ENDRESULT
(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