well i am trying to have in the server options the WF rules
but something is still missing or weird cuz when i click on WF rules nothing is displayed in the server s screen
if some of you can fix it will be nice
thanks
I have 3 files in the PK3
1/wf_rules.menu
#include “ui/menudef.h”
// Defines //
#define WINDOW_X 40
#define WINDOW_Y 40
#define WINDOW_WIDTH 560
#define WINDOW_HEIGHT 400
#define GROUP_NAME “grpWFRules”
// Macros //
#include “ui/menumacros.h”
// WF Rules //
menuDef {
name “wf_rules”
visible 0
fullscreen 0
rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
style WINDOW_STYLE_FILLED
onESC {
close wf_rules;
}
// Window //
itemDef {
name “window”
group GROUP_NAME
rect 0 0 WINDOW_WIDTH WINDOW_HEIGHT
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_FULL
bordercolor .5 .5 .5 .5
visible 1
decoration
}
#define RULES_Y 6
LABELWHITE( 6, RULES_Y, (WINDOW_WIDTH-24), 10, “WF Rules
1 - spawnkilling is not allowed. This means that spawnkilling with Panzerfaust, Flamethrower, Mortar, Grenades, Rifle Grenades, Dynamite, Satchel Charges, Artillery and Airstrikes is forbidden. As a general rule, the spawn area is defined as the area from where the players spawn, up to the first fork in where they can go.
If the spawn is capturable, then any weapons can be used on it. A capturable spawn must have a flag which can be used to take control of the spawn. All other spawns are deemed as non-capturable, and so, no heavy weapsons allowed.”, .2, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )
LABELWHITE( 6, RULES_Y + 90, (WINDOW_WIDTH-24), 10,"A capturable spawn must have a flag which can be used to take control of the spawn. All other spawns are deemed as non-capturable, and so, no heavy weapsons allowed.
2 - No Trickjumping to get the objective.
This means using any sort of jump to get past an objective, eg. a gate which would normally need to be blown up. If you are an engineer, it will be assumed that you are trying to get to the objective if you make this jump.
3 - No Griefing.
Griefing is doing things simply to annoy your teammates. The main example of this is running on their landmines, as you know they won’t hurt you. Other ones might be blocking people purposely in doors, getting in the way of panzer/mortar shots, constantly knifing teammates to distract them etc.", .2, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )
LABELWHITE( 6, RULES_Y + 252, (WINDOW_WIDTH-24), 10, “4 - No swearing. Final.”, .2, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )
}
2/ingame_main_menu
#include “ui/menudef.h”
// Defines //
#define WINDOW_X 16
#define WINDOW_Y 16
//#define WINDOW_WIDTH 128
#define WINDOW_WIDTH 160
#define WINDOW_HEIGHT 200
#define GROUP_NAME “grpIngameMain”
// Macros //
#include “ui/menumacros.h”
// Main Menu //
menuDef {
name “ingame_main”
visible 0
fullscreen 0
rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
style WINDOW_STYLE_FILLED
onOpen {
// ydnar
conditionalscript ROldModeCheck 2
( “clearFocus ; open vid_confirm” )
( “clearFocus” )
}
onEsc {
close ingame_main ;
}
// Window //
WINDOW( “MAIN”, 50 )
// Buttons //
BUTTONEXT( 6, 32, WINDOW_WIDTH-12, 18, “VOTE”, .3, 14, uiScript clientCheckVote ;
conditionalScript cg_ui_novote 0
( “clearFocus ; open ingame_votedisabled” )
( “close ingame_main ; open ingame_vote” ),
cvarTest “authLevel” showCVar { RL_NONE } )
BUTTONEXT( 6, 32, WINDOW_WIDTH-12, 18, “REFEREE”, .3, 14, close ingame_main ; open ingame_vote, cvarTest “authLevel” showCVar { RL_REFEREE } )
BUTTONEXT( 6, 32, WINDOW_WIDTH-12, 18, “RCON”, .3, 14, close ingame_main ; open ingame_vote, cvarTest “authLevel” showCVar { RL_RCON } )
BUTTON( 6, 56, WINDOW_WIDTH-12, 18, “SERVER INFO”, .3, 14, clearFocus ; open ingame_serverinfo )
BUTTON( 6, 80, WINDOW_WIDTH-12, 18, “OPTIONS”, .3, 14, close ingame_main ; open options )
BUTTON( 6, 104, WINDOW_WIDTH-12, 18, “^?NO QUARTER^7”, .3, 14, close ingame_main ; open options_nq )
BUTTON( 6, 128, WINDOW_WIDTH-12, 18, “^1WF RULES^7”, .3, 14, close ingame_main ; open wf_rules )
BUTTON( 6, 152, WINDOW_WIDTH-12, 18, “DISCONNECT”, .3, 14, clearFocus ; open ingame_disconnect )
BUTTON( 6, 176, WINDOW_WIDTH-12, 18, “EXIT GAME”, .3, 14, clearFocus ; open quit )
}
3/menu.txt
// menu defs
//
{
loadMenu { “ui/global.menu” }
loadMenu { “ui/wf_rules.menu” }
loadMenu { “ui/main.menu” }
loadMenu { “ui/profile.menu” }
loadMenu { “ui/profile_create.menu” }
loadMenu { “ui/profile_create_initial.menu” }
loadMenu { “ui/profile_rename.menu” }
loadMenu { “ui/profile_delete.menu” }
loadMenu { “ui/profile_delete_error.menu” }
loadMenu { “ui/profile_create_error.menu” }
loadMenu { “ui/playonline.menu” }
loadMenu { “ui/playonline_connecttoip.menu” }
loadMenu { “ui/playonline_serverinfo.menu” }
loadMenu { “ui/playonline_disablepb.menu” }
loadMenu { “ui/playonline_enablepb.menu” }
loadMenu { “ui/hostgame.menu” }
loadMenu { “ui/hostgame_advanced.menu” }
loadMenu { “ui/hostgame_noquarter.menu” } //No Quarter Hostgame Options
loadMenu { “ui/hostgame_advanced_default.menu” }
loadMenu { “ui/hostgame_dedicated_warning.menu” }
loadMenu { “ui/mods.menu” } // fretn (rain) adding mods menu
loadMenu { “ui/viewreplay.menu” }
loadMenu { “ui/viewreplay_delete.menu” }
loadMenu { “ui/options.menu” }
loadMenu { “ui/options_nq.menu” } //No Quarter Menus
loadMenu { “ui/options_nq_controls.menu” } //No Quarter
loadMenu { “ui/options_nq_display.menu” } //No Quarter
loadMenu { “ui/options_nq_hud.menu” } //No Quarter
loadMenu { “ui/options_nq_sound.menu” } //No Quarter
loadMenu { “ui/options_customise_game.menu” }
loadMenu { “ui/options_customise_hud.menu” }
loadMenu { “ui/options_controls.menu” }
loadMenu { “ui/options_controls_default.menu” }
loadMenu { “ui/options_system.menu” }
loadMenu { “ui/options_system_gamma.menu” }
loadMenu { “ui/credits_splashdamage.menu” }
loadMenu { “ui/credits_idsoftware.menu” }
loadMenu { “ui/credits_activision.menu” }
loadMenu { “ui/credits_additional.menu” }
loadMenu { “ui/credits_et260.menu” }
loadMenu { “ui/credits_quit.menu” }
loadMenu { “ui/credits_no_quarter.menu” } //No Quarter Credits
loadMenu { “ui/quit.menu” }
// popups
loadMenu { “ui/popup_errormessage.menu” }
loadMenu { “ui/popup_errormessage_pb.menu” }
loadMenu { “ui/popup_hostgameerrormessage.menu” }
loadMenu { “ui/popup_autoupdate.menu” }
loadMenu { “ui/popup_password.menu” }
loadMenu { “ui/popup_serverredirect.menu”}
// video confirmation
loadMenu { “ui/vid_restart.menu” }
loadMenu { “ui/vid_confirm.menu” }
loadMenu { “ui/rec_restart.menu” }
// quickchats
loadMenu { “ui/wm_quickmessage.menu” }
loadMenu { “ui/wm_quickmessageAlt.menu” }
loadMenu { “ui/wm_ftquickmessage.menu” }
loadMenu { “ui/wm_ftquickmessageAlt.menu” }
// class menuu
loadMenu { “ui/wm_class.menu” }
loadMenu { “ui/wm_classAlt.menu” }
// ingame
loadMenu { “ui/ingame_main.menu” }
loadMenu { “ui/ingame_vote.menu” }
loadMenu { “ui/ingame_vote_disabled.menu” }
loadMenu { “ui/ingame_vote_misc.menu” }
loadMenu { “ui/ingame_vote_misc_refrcon.menu” }
loadMenu { “ui/ingame_vote_map.menu” }
loadMenu { “ui/ingame_vote_players.menu” }
loadMenu { “ui/ingame_vote_players_warn.menu” }
loadMenu { “ui/ingame_serverinfo.menu” }
loadMenu { “ui/ingame_disconnect.menu” }
loadMenu { “ui/ingame_messagemode.menu” }
loadMenu { “ui/ingame_tapout.menu” }
loadMenu { “ui/ingame_tapoutlms.menu” }
}


