menu "IP" 301 230 FROM_LEFT 1
resource
Label
{
name "Default"
rect 0 0 301 229
fgcolor 0.00 0.00 0.00 1.00
bgcolor 1.00 1.00 1.00 0.50
borderstyle "3D_BORDER"
}
resource
Button
{
title "Browse Servers"
name "Browse Servers"
rect 58 1 177 26
fgcolor 0.50 0.00 0.00 1.00
bgcolor 1.00 0.50 0.00 0.50
borderstyle "3D_BORDER"
stuffcommand "pushmenu joinnetgame;wait 250;widgetcommand netgamelist refreshserverlist"
shader "menu_button_trans"
hovershader "menu_button_glow"
clicksound "sound/menu/apply.wav"
font facfont-20
}
resource
Button
{
title "Connect to IP Address"
name "Connect to IP Address"
rect 58 26 177 28
fgcolor 0.00 0.00 1.00 1.00
bgcolor 1.00 0.50 0.00 0.50
borderstyle "3D_BORDER"
stuffcommand "menuconnect ui_connectip"
shader "menu_button_trans"
hovershader "menu_button_glow"
clicksound "sound/menu/apply.wav"
font facfont-20
}
resource
Field
{
title "ipaddy"
name "Default"
rect 1 53 300 32
fgcolor 1.00 0.00 0.00 1.00
bgcolor 0.75 0.75 0.75 0.50
borderstyle "3D_BORDER"
stuffcommand "connect"
clicksound "sound/menu/apply.wav"
font facfont-20
}
resource
Button
{
title "For Admin Only"
name "Default"
rect 93 127 107 37
fgcolor 1.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu TRAdmin"
}
resource
Button
{
title "Disconnect"
name "Default"
rect 107 163 82 30
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "RAISED"
stuffcommand "disconnect"
}
resource
Button
{
title "Reconnect"
name "Default"
rect 107 192 82 30
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "RAISED"
stuffcommand "reconnect"
}
resource
Button
{
title "Cancel"
name "Cancel"
rect 58 92 177 33
fgcolor 0.00 1.00 0.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "3D_BORDER"
stuffcommand "popmenu 0"
shader "menu_button_trans"
hovershader "menu_button_glow"
clicksound "sound/menu/back.wav"
font "facfont-20"
}
end.
Sorry for the stupid link,,,,
I will just paste the files here....
ui.pk3
/ui/menu.urc
Code: Select all
menu "Mod_class" 415 308 NONE 1
resource
Button
{
title "Soldier"
name "Default"
rect 7 77 66 29
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "3D_BORDER"
stuffcommand "primarydmweapon smg;join_team allies;popmenu 0;dm_playermodel american_Ranger"
}
end.
Class menu tutorial
I have decided to give you people a brief tutorial on how to make your own class menus in the game. I?ve known how to do this for over one year. I just wanted to share it with all the people. Class menus work like the menus in BF1942, if you don?t know what that is then let me explain, it only allows you to pick a class i.e. soldier, sniper, Lt, spy, heavy, medic. When you click one of those menus an assigned gun and model and usually a pack of supplies is given to you.
A basic Class Menu with 2 buttons. Erase //*TEXT HERE*\\ if you want to use the script
menu "Class" 415 308 NONE 1 //*This line gives the menu a name ?Class? so when you go into the console type in ?/pushmenu Class??. The ?NONE? can be changed to
FROM_BOTTOM, FROM_LEFT, FROM_TOP, FROM_RIGHT? all it means is that you can make the menu slide in from different places. The 1 means how long to wait before the menu opens up. The higher you go, i.e. 5,6,7,100? the slower the menu will open (negative numbers wont work)*\\
resource
Label //*This states what kind of object you are going to add to your menu, they range from: BindButton, Checkbox, Field, Label, List, Listbox, Slider.*\\
{ //*Start of the script*\\
name "Default" //*name of the object (you don?t have to give it one*\\
rect 0 0 417 311 //*this is the coordinates of the object. ?a b ccc ddd? a means to (0)left to right(10), b means (0)up to down(10), ccc means how wide it is, ddd, means how tall it is.*\\
fgcolor 0.00 0.00 0.00 1.00 //*ForeGround Color, you need to set these in order to use images. *\\
bgcolor 0.50 0.50 0.50 1.00 //*Background Color*\\
borderstyle "RAISED" //*this is basically a border style: 3D_BORDER, INDENT. RAISED, NONE are some of the words you can use.*\\
}
resource
Button
{
title "Soldier" //*Title of a button, You can push a button to do different things*\\
name "Default"
rect 7 77 66 29
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "3D_BORDER"
stuffcommand "primarydmweapon smg;join_team allies;popmenu 0;dm_playermodel american_Ranger" //*This means what command to use, in this case ?primarydmweapon smg? means what ever weapon has a class name of SMG you will get that weapon depending on your team. ?Join_team allies? means that you will join the team allies. ?Popmenu 0? means the menu will be closed. ?dm_playermodel American_Ranger? means that you will be an American ranger model.*\\
}
resource
Button
{
title "Medic"
name "Default"
rect 10 117 67 31
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "3D_BORDER"
stuffcommand "primarydmweapon rifle;join_team allies;popmenu 0;dm_playermodel allied_manon"
}
resource
Label
{
title "SMG"
name "Default"
rect 275 78 71 29
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "INDENT_BORDER"
}
resource
Label
{
title "Rifle"
name "Default"
rect 278 113 70 31
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "INDENT_BORDER"
}
end. //*Ends that whole menu script*\\
Here is a really simple script that will give you an SMG and put you on the Allies side and give you a American Ranger model.
Just try this script like this: save it as NAME.urc.
Create a folder called ?ui? and in this folder add your NAME.ui
Now zip this folder call it NAME.pk3
Place into your mohaa dir main/NAME.pk3
When you are ingame type in console
/Pushmenu Mod_class
This should open the meny below. Try to play around with this a few times. And different settings. Well good night, it is 3am in the morning.
menu "Mod_class" 415 308 NONE 1
resource
Button
{
title "Soldier"
name "Default"
rect 7 77 66 29
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "3D_BORDER"
stuffcommand "primarydmweapon smg;join_team allies;popmenu 0;dm_playermodel american_Ranger"
}
end.
/ui/ip.urc
Code: Select all
menu "IP" 301 230 FROM_LEFT 1
resource
Label
{
name "Default"
rect 0 0 301 229
fgcolor 0.00 0.00 0.00 1.00
bgcolor 1.00 1.00 1.00 0.50
borderstyle "3D_BORDER"
}
resource
Button
{
title "Browse Servers"
name "Browse Servers"
rect 58 1 177 26
fgcolor 0.50 0.00 0.00 1.00
bgcolor 1.00 0.50 0.00 0.50
borderstyle "3D_BORDER"
stuffcommand "pushmenu joinnetgame;wait 250;widgetcommand netgamelist refreshserverlist"
shader "menu_button_trans"
hovershader "menu_button_glow"
clicksound "sound/menu/apply.wav"
font facfont-20
}
resource
Button
{
title "Connect to IP Address"
name "Connect to IP Address"
rect 58 26 177 28
fgcolor 0.00 0.00 1.00 1.00
bgcolor 1.00 0.50 0.00 0.50
borderstyle "3D_BORDER"
stuffcommand "menuconnect ui_connectip"
shader "menu_button_trans"
hovershader "menu_button_glow"
clicksound "sound/menu/apply.wav"
font facfont-20
}
resource
Field
{
title "ipaddy"
name "Default"
rect 1 53 300 32
fgcolor 1.00 0.00 0.00 1.00
bgcolor 0.75 0.75 0.75 0.50
borderstyle "3D_BORDER"
stuffcommand "connect"
clicksound "sound/menu/apply.wav"
font facfont-20
}
resource
Button
{
title "For Admin Only"
name "Default"
rect 93 127 107 37
fgcolor 1.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu TRAdmin"
}
resource
Button
{
title "Disconnect"
name "Default"
rect 107 163 82 30
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "RAISED"
stuffcommand "disconnect"
}
resource
Button
{
title "Reconnect"
name "Default"
rect 107 192 82 30
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "RAISED"
stuffcommand "reconnect"
}
resource
Button
{
title "Cancel"
name "Cancel"
rect 58 92 177 33
fgcolor 0.00 1.00 0.00 1.00
bgcolor 0.50 0.50 0.50 0.00
borderstyle "3D_BORDER"
stuffcommand "popmenu 0"
shader "menu_button_trans"
hovershader "menu_button_glow"
clicksound "sound/menu/back.wav"
font "facfont-20"
}
end.
/ui/SDKMeny.urc
Code: Select all
menu "SDKMenu" 232 477 FROM_BOTTOM 1
resource
Label
{
name "Default"
rect 0 0 235 480
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.75 0.75 0.75 1.00
borderstyle "RAISED"
}
resource
Label
{
title "SDK Menu"
name "Default"
rect 0 0 231 26
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 0.50
borderstyle "INDENT_BORDER"
}
resource
Button
{
title "Advancedoptions"
name "Default"
rect 0 82 120 33
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu advancedoptions"
}
resource
Button
{
title "Animate2"
name "Default"
rect 0 119 120 29
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu animate2"
}
resource
Button
{
title "Audio options"
name "Default"
rect 0 151 120 34
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu audio_options"
}
resource
Button
{
title "CinemaMenu"
name "Default"
rect 0 186 120 32
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu CinemaQuickmenu"
}
resource
Button
{
title "Camera"
name "Default"
rect 0 219 120 34
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu camera"
}
resource
Button
{
title "Decals"
name "Default"
rect 0 254 120 37
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu decals"
}
resource
Button
{
title "Emitter"
name "Default"
rect 0 292 120 39
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu emitter"
}
resource
Button
{
title "Greytest"
name "Default"
rect 0 332 120 38
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu greytest"
}
resource
Button
{
title "LevelDesign"
name "Default"
rect 0 371 121 39
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu LevelDesign"
}
resource
Button
{
title "Smoke"
name "Default"
rect 0 411 121 33
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu smoke"
}
resource
Button
{
title "Cancel"
name "Default"
rect 131 82 98 32
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "RAISED"
stuffcommand "popmenu 0"
}
resource
Button
{
title "Zound"
name "Default"
rect 0 445 121 30
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.00 1.00 0.00 1.00
borderstyle "RAISED"
stuffcommand "pushmenu zound"
}
resource
Button
{
title "Created by Yarik "
name "Default"
rect 0 25 231 22
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.50 0.50 0.50 1.00
borderstyle "RAISED"
}
end.
Readme
-------
Menu Readme's
/////////////////////////////Game_settings.JPG\\\\\\\\\\\\\\\\\\\\\\\\
Take a look at the ziped image.
What you are seeing has NOT been edited with Photoshop or other photo editing utilities.
The top picture is what you see int he game, the botom picture is what I made.
What you are seeing is a small modification I made with the menus that I made.
//////////////////////////////////ui.pk3\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
To activate in game
Type in console
This is a Class Menu: It will make your player hold and smg and become allies, and a ranger
/pushmenu Mod_class
(tutorial file included: Class Meny Tutorial)
//////////////////////////////ip.pk3\\\\\\\\\\\\\\\\\\\
IF YOU PLAY THE DEMO:
THIS IS A SERVER BROWSER FOR MOHAA NET DEMO
put the ip.pk3 file into the main folder of the mohaa demo
Start the demo click MUTIPLAYER (the door on the right)--->Join Game--->Internet Game--->Browse Internet Servers
//////////////////////////ip1.pk3\\\\\\\\\\\\\\\\\\\\
This is in INGAME browser for the full version of MOHAA.
When you are playing a game you can type into console
pushemenu ip
If you dont want to keep typing it in then bind it to a key.
////////////////////////zzz_Developer.pk3\\\\\\\\\\\\\\\\\\\
WARNING USE zzz_Developer.pk3 AT OWN RISK
you are capable of screwing up your copy of mohaa to the point where you have to reinstall your whole game. BE SURE TO KNOW WHAT YOU ARE DOING, I am not responsible for what you do with this. It has lots of options.
This is a Developer menu for mohaa moders. Just type
pushmenu SDKMenu
in console and a Developers menu will pop up.
/////////////////Dialog Editor.exe\\\\\\\\\\\\\\\\\\\\
I am 100% that this file contains NO VIRUS'S unless someone hacked into my online website and changed the file.
It should be 264 KB (270,336 bytes) big.
This is a meny EDITING software. You can create your own menus with this, also read my tutorial included in this file.
If you have any questions comments email me at
yarikcod@paris.com
or visit the ------>planetmedal.com/map<------ Mohaa part of that site, go to the forums, I will be there.
All of these files except the Dialog Editor have been created by Yarik.
You may redistribute them in anyway you like, the only exeptions are
You MUST include this readme, you may NOT sell these files.
You may edit all of these files anyway you wish but you must then attach a file stating that you have changed certain items.
Copyright2004 Yaroslav K.
-----